/* ============================================
   2AI v2 — Dark Premium Magazine
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #0A0908; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.65;
  color: #E8E4DA; background: #0A0908;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  perspective: 1500px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: #B89968; color: #0A0908; }

/* --- Tokens --- */
:root {
  --bg: #0A0908;
  --bg-elev: #131110;
  --bg-elev-2: #1C1916;
  --line: #2A2622;
  --line-strong: #3A352F;
  --text: #F5F2EA;
  --text-2: #C2BDB1;
  --text-3: #837E72;
  --text-muted: #5C574E;
  --gold: #B89968;
  --gold-light: #D4B884;
  --gold-soft: rgba(184, 153, 104, .12);
  --accent: #B89968;
  --max-w: 1480px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* --- Typography (simple, modern, sans-serif uniquement) --- */
.serif { font-family: 'Inter', -apple-system, sans-serif; font-weight: 300; }
h1, h2, h3, h4, h5 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300; line-height: 1.08; letter-spacing: -.025em;
  color: var(--text);
}
.italic { font-style: normal; font-weight: 400; color: var(--gold); }

/* Display titles */
.display-xl { font-size: clamp(2.4rem, 7.5vw, 6.5rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 200; }
.display-l  { font-size: clamp(2rem, 5.5vw, 4.8rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 250; }
.display-m  { font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 300; }
.display-s  { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 400; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 250; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 400; line-height: 1.25; }
h4 { font-size: clamp(1.05rem, 1.7vw, 1.2rem); font-weight: 500; line-height: 1.35; }
h1 + h1, h2 + h2 { margin-top: 0.1em; }
p { color: var(--text-2); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text); line-height: 1.55; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .35em;
  color: var(--gold);
}
.eyebrow.bordered::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--gold); margin-right: 16px; vertical-align: middle;
  transform: translateY(-2px);
}

/* --- Layout --- */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }
.text-center { text-align: center; }
section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }

/* --- Buttons & links --- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .25em;
  border-radius: 0;
  transition: all .35s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold); color: var(--bg);
}
.btn-gold:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(184, 153, 104, .3);
}
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-text {
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--gold); border-bottom: 1px solid var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-text:hover { gap: 14px; }
.btn-text::after { content: "→"; transition: transform .3s ease; }

/* --- Top Nav (floating) --- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .3s ease, background .3s ease, backdrop-filter .3s ease;
  pointer-events: none;
}
.topnav > * { pointer-events: auto; }
.topnav.scrolled {
  padding: 16px var(--gutter);
  background: rgba(10, 9, 8, .75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand img { width: 42px; height: auto; filter: brightness(0) invert(1); opacity: .92; transition: opacity .3s ease; }
.brand:hover img { opacity: 1; }
.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--text); line-height: 1.2; letter-spacing: .12em;
  display: flex; flex-direction: column; gap: 6px;
}
.brand-name span {
  font-family: 'Inter', sans-serif;
  font-size: .55rem; font-weight: 500; letter-spacing: .3em;
  color: var(--text-3); text-transform: uppercase;
  margin-top: 0;
}
.topnav-actions { display: flex; align-items: center; gap: 24px; }
.topnav-cta {
  font-family: 'Inter', sans-serif;
  font-size: .75rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}
.topnav-cta:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; background: transparent;
  transition: border-color .3s ease, background .3s ease;
}
.menu-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.menu-btn span {
  width: 16px; height: 1px; background: var(--text); transition: all .3s ease;
}
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* --- Overlay menu --- */
.overlay-menu {
  position: fixed; inset: 0; z-index: 70;
  background: #0A0908;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--gutter);
  transform: translateY(-100%); transition: transform .6s cubic-bezier(.7,0,.3,1);
}
.overlay-menu.open { transform: translateY(0); }
.overlay-menu nav { display: flex; flex-direction: column; gap: 6px; }
.overlay-menu nav a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 200; color: var(--text); line-height: 1.15;
  letter-spacing: -.02em;
  position: relative;
  transition: color .3s ease, padding-left .4s ease;
  display: inline-block;
}
.overlay-menu nav a::before {
  content: ""; position: absolute; left: 0; bottom: .25em;
  width: 0; height: 1px; background: var(--gold); transition: width .4s ease;
}
.overlay-menu nav a:hover { color: var(--gold); padding-left: 24px; }
.overlay-menu nav a:hover::before { width: 16px; }
.overlay-menu nav .index {
  font-family: 'Inter', sans-serif; font-size: .65rem;
  letter-spacing: .3em; color: var(--text-3);
  vertical-align: super; margin-right: 18px;
}
.overlay-menu footer {
  position: absolute; bottom: 32px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: .8rem; color: var(--text-3);
  border-top: 1px solid var(--line); padding-top: 24px;
}
.overlay-menu footer a:hover { color: var(--gold); }

/* --- HERO --- */
.hero {
  height: 100vh; min-height: 700px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(48px, 8vh, 100px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.45) 0%, rgba(10,9,8,.2) 50%, rgba(10,9,8,.95) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; }
.hero-meta {
  display: flex; align-items: center; gap: 20px; margin-bottom: 36px;
  font-family: 'Inter', sans-serif;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-2); flex-wrap: wrap; row-gap: 10px;
}
.hero-meta span { display: inline-flex; align-items: center; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-title { color: var(--text); margin-bottom: 36px; }
.hero-sub {
  max-width: 580px; font-size: 1.05rem; color: var(--text-2);
  margin-top: 40px; margin-bottom: 44px; line-height: 1.75;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; font-family: 'Inter', sans-serif;
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--text-3); writing-mode: vertical-rl;
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Marquee / numbers strip --- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.marquee-item {
  font-family: 'Inter', sans-serif; font-size: .75rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--text-2);
  display: flex; align-items: center; gap: 16px;
}
.marquee-item strong {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 1.6rem; color: var(--text); letter-spacing: 0;
}
.marquee-item .sep { color: var(--gold); font-weight: 700; }

/* --- Section heading (editorial) --- */
.section-head { margin-bottom: clamp(48px, 7vh, 96px); }
.section-head .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; row-gap: 16px;
}
.section-head h2 { max-width: 900px; }
.section-head .meta {
  font-family: 'Inter', sans-serif; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; padding-top: 8px;
}
.section-head .sub { margin-top: 28px; color: var(--text-2); max-width: 720px; }
.project-row-info h3 { line-height: 1.1; word-break: normal; overflow-wrap: break-word; }
.gp .info h3 { line-height: 1.15; word-break: normal; }
.eyebrow + h2, .eyebrow + h1, .eyebrow + h3 { margin-top: 24px; }

/* --- Projects gallery (HOME) --- */
.projects-feed { padding: clamp(60px, 10vh, 140px) 0; }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(80px, 14vh, 180px);
  position: relative;
}
.project-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
.project-row:nth-child(even) .project-row-img { order: 2; }
.project-row:nth-child(even) .project-row-info { order: 1; }
.project-row-img {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden; background: var(--bg-elev);
}
.project-row-img a { display: block; height: 100%; }
.project-row-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.project-row-img:hover img { transform: scale(1.04); }
.project-row-img .number {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: 'Inter', sans-serif; font-size: 2.5rem;
  color: var(--text); opacity: .85; line-height: 1;
}
.project-row-info { padding: 12px 0; }
.project-row-info .cat {
  font-family: 'Inter', sans-serif; font-size: .7rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 14px;
}
.project-row-info .cat::before {
  content: ""; width: 24px; height: 1px; background: var(--gold);
}
.project-row-info h3 {
  font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 16px;
  line-height: 1.05;
}
.project-row-info .loc {
  font-family: 'Inter', sans-serif; font-size: .92rem;
  color: var(--text-3); letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 28px;
}
.project-row-info p {
  color: var(--text-2); margin-bottom: 32px; line-height: 1.75;
  max-width: 500px;
}
.project-specs-inline {
  display: flex; gap: 32px; margin-bottom: 36px;
  padding-top: 24px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.project-specs-inline .item .l {
  display: block; font-family: 'Inter', sans-serif;
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.project-specs-inline .item .v {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem; color: var(--text); letter-spacing: .01em;
}

@media (max-width: 900px) {
  .project-row,
  .project-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-row:nth-child(even) .project-row-img { order: unset; }
  .project-row:nth-child(even) .project-row-info { order: unset; }
}

/* --- Quote / Manifesto --- */
.manifesto {
  background: var(--bg-elev); position: relative; overflow: hidden;
}
.manifesto::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 1px;
  height: 80px; background: var(--gold); transform: translateX(-50%);
}
.manifesto-content { text-align: center; max-width: 1000px; margin: 0 auto; }
.manifesto blockquote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-style: italic; font-weight: 400;
  color: var(--text); line-height: 1.25;
  margin: 32px 0;
}
.manifesto blockquote em {
  font-style: normal; color: var(--gold); font-weight: 500;
}
.manifesto cite {
  font-family: 'Inter', sans-serif; font-size: .8rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-3); font-style: normal;
  display: inline-block; margin-top: 24px;
}

/* --- Services list (editorial) --- */
.services-feed { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 40px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.service-row:hover { background: rgba(184, 153, 104, .03); }
.service-row .n {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem; color: var(--gold); letter-spacing: .05em;
}
.service-row h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0;
}
.service-row .arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all .3s ease;
}
.service-row:hover .arrow {
  border-color: var(--gold); color: var(--gold); transform: rotate(-45deg);
}
.service-detail-text {
  grid-column: 2; color: var(--text-3); font-size: .92rem;
  max-height: 0; overflow: hidden; transition: max-height .5s ease, padding .5s ease;
}

@media (max-width: 700px) {
  .service-row { grid-template-columns: 50px 1fr auto; gap: 20px; padding: 32px 0; }
  .service-row .n { font-size: 1rem; }
}

/* --- About / Editorial split --- */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; gap: 48px; }
}
.editorial-img { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-elev); }
.editorial-img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-text .lead { margin-bottom: 28px; color: var(--text); }
.editorial-text p { color: var(--text-2); margin-bottom: 18px; line-height: 1.75; }
.editorial-text .signature {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.editorial-text .signature .name {
  font-family: 'Inter', sans-serif; font-size: 1.3rem; color: var(--text);
}
.editorial-text .signature .role {
  display: block; font-family: 'Inter', sans-serif; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  margin-top: 6px;
}

/* --- CTA band --- */
.cta-section {
  background: var(--bg-elev-2); text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 153, 104, .12), transparent 60%);
}
.cta-section > .wrap { position: relative; }
.cta-section h2 { margin-bottom: 24px; }
.cta-section p { color: var(--text-2); max-width: 600px; margin: 0 auto 48px; font-size: 1.1rem; }
.cta-section .actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer {
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 96px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.2fr;
  gap: 56px; margin-bottom: 80px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 24px; max-width: 400px; }
.footer-brand img { width: 130px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { color: var(--text-3); font-size: .92rem; line-height: 1.7; }
.footer h5 {
  font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .3em; color: var(--gold);
  margin-bottom: 24px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-family: 'Inter', sans-serif; font-size: 1.05rem;
  color: var(--text-2); transition: color .3s ease, padding-left .3s ease;
  display: inline-block;
}
.footer-links a:hover { color: var(--gold); padding-left: 8px; }
.footer-contact li {
  margin-bottom: 14px; color: var(--text-2); font-size: .92rem; line-height: 1.5;
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: .75rem; color: var(--text-muted);
  letter-spacing: .15em; text-transform: uppercase;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all .3s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }

/* --- Page header (interior pages) --- */
.page-header {
  padding-top: 180px; padding-bottom: 80px;
  border-bottom: 1px solid var(--line); position: relative;
}
.page-header .crumb {
  font-family: 'Inter', sans-serif; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 32px;
}
.page-header .crumb a:hover { color: var(--gold); }
.page-header .crumb span { margin: 0 12px; opacity: .5; }
.page-header h1 { margin-bottom: 28px; max-width: 1000px; }
.page-header p.lead { max-width: 720px; color: var(--text-2); }

/* --- Project detail page --- */
.project-hero {
  height: 90vh; min-height: 600px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.project-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.5) 0%, transparent 30%, rgba(10,9,8,.95) 100%);
}
.project-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0 var(--gutter) 80px;
  z-index: 2;
}
.project-hero-content .crumb { color: var(--text-2); margin-bottom: 32px; }
.project-hero-content h1 { color: var(--text); max-width: 1000px; }
.project-meta-bar {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.project-meta-bar .item .l {
  font-family: 'Inter', sans-serif; font-size: .65rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  display: block; margin-bottom: 8px;
}
.project-meta-bar .item .v {
  font-family: 'Inter', sans-serif; font-size: 1.3rem;
  color: var(--text); letter-spacing: .01em;
}
.project-narrative {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
}
@media (max-width: 900px) { .project-narrative { grid-template-columns: 1fr; gap: 32px; } }
.project-narrative h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.project-narrative p { line-height: 1.85; color: var(--text-2); margin-bottom: 18px; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .project-gallery { grid-template-columns: 1fr; } }
.project-gallery .g-img {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: var(--bg-elev);
}
.project-gallery .g-img.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }

.project-nav {
  border-top: 1px solid var(--line); padding-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.project-nav a {
  display: block; padding: 24px 0;
  border-top: 1px solid transparent; transition: border-color .3s ease;
}
.project-nav a:hover { border-top-color: var(--gold); }
.project-nav a .dir {
  font-family: 'Inter', sans-serif; font-size: .65rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.project-nav a .name {
  font-family: 'Inter', sans-serif; font-size: 1.8rem;
  color: var(--text); transition: color .3s ease;
}
.project-nav a:hover .name { color: var(--gold); }
.project-nav a.next { text-align: right; }
.project-nav a.next .dir { justify-content: flex-end; }

/* --- FAQ accordion --- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left; padding: 32px 48px 32px 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text); position: relative;
  background: transparent; border: none;
}
.faq-q::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 1.6rem;
  color: var(--gold); font-family: 'Inter', sans-serif;
  font-weight: 200; transition: transform .3s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .5s ease, padding .5s ease;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 32px; }
.faq-a p { color: var(--text-2); line-height: 1.85; margin-bottom: 14px; max-width: 800px; }

/* --- Process timeline --- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.timeline-step {
  padding: 32px 24px 32px 0; border-top: 1px solid var(--line);
  position: relative;
}
.timeline-step::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 40px; height: 1px; background: var(--gold);
}
.timeline-step .n {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem; color: var(--gold); margin-bottom: 12px;
  display: block;
}
.timeline-step h4 { color: var(--text); margin-bottom: 12px; }
.timeline-step .duration {
  font-family: 'Inter', sans-serif; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 14px;
}
.timeline-step p { color: var(--text-3); font-size: .9rem; line-height: 1.6; }

/* --- Contact form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info h3 { margin-bottom: 32px; }
.contact-info ul li {
  padding: 22px 0; border-top: 1px solid var(--line);
}
.contact-info ul li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .l {
  font-family: 'Inter', sans-serif; font-size: .65rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  display: block; margin-bottom: 8px;
}
.contact-info .v {
  font-family: 'Inter', sans-serif; font-size: 1.3rem;
  color: var(--text); transition: color .3s ease;
}
.contact-info a:hover .v { color: var(--gold); }
.form { display: flex; flex-direction: column; gap: 24px; }
.form-group label {
  display: block; font-family: 'Inter', sans-serif; font-size: .65rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px;
}
.form-control {
  width: 100%; padding: 14px 0; background: transparent;
  border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .3s ease;
}
.form-control:focus { outline: none; border-bottom-color: var(--gold); }
.form-control::placeholder { color: var(--text-muted); font-style: italic; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-success { color: var(--gold); padding: 16px 0; display: none; }
.form-success.show { display: block; }

/* --- WhatsApp chat widget --- */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px rgba(37, 211, 102, .35);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
  border: none;
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.06); color: #fff;
  box-shadow: 0 20px 48px rgba(37, 211, 102, .5);
}
.wa-float svg { width: 28px; height: 28px; transition: opacity .25s ease, transform .25s ease; }
.wa-float .wa-close-icon {
  position: absolute; opacity: 0; transform: rotate(-90deg);
  width: 24px; height: 24px; line-height: 1; font-size: 28px; font-weight: 200;
  display: flex; align-items: center; justify-content: center;
}
.wa-float.open .wa-icon { opacity: 0; transform: rotate(90deg); }
.wa-float.open .wa-close-icon { opacity: 1; transform: rotate(0); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float.open::before { display: none; }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 600px) { .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; } }

/* Notification badge */
.wa-badge {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #EF4444; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 600;
  border: 2px solid #0A0908;
  animation: wa-badge-pop .5s cubic-bezier(.5,2,.5,1) .8s backwards;
}
@keyframes wa-badge-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.wa-float.open .wa-badge { display: none; }

/* Chat panel */
.wa-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 89;
  width: 360px; max-width: calc(100vw - 36px);
  max-height: 75vh;
  background: #0A0908;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.92);
  transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
}
.wa-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .wa-panel {
    bottom: 84px; right: 12px; left: 12px;
    width: auto; max-width: none;
    max-height: 70vh;
  }
}

/* Header */
.wa-header {
  background: #075E54;
  color: #fff;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.wa-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(37,211,102,.15), transparent 40%);
  pointer-events: none;
}
.wa-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
  position: relative;
}
.wa-avatar::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: #25D366; border-radius: 50%;
  border: 2px solid #075E54;
}
.wa-header-text { flex: 1; position: relative; }
.wa-name {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem;
  color: #fff; line-height: 1.2;
}
.wa-status {
  font-size: .72rem; color: rgba(255,255,255,.75);
  margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.wa-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #25D366; display: inline-block;
  animation: wa-online 2s ease-in-out infinite;
}
@keyframes wa-online {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Body — WhatsApp-like background */
.wa-body {
  flex: 1; overflow-y: auto;
  background:
    linear-gradient(rgba(8, 12, 20, .92), rgba(8, 12, 20, .92)),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,.015) 20px 21px),
    repeating-linear-gradient(-45deg, transparent 0 20px, rgba(255,255,255,.015) 20px 21px);
  padding: 24px 18px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.wa-msg {
  max-width: 85%; background: #1F2C34;
  color: #E9EDEF;
  padding: 10px 14px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  font-size: .92rem; line-height: 1.5;
  position: relative;
  opacity: 0; transform: translateY(8px);
  animation: wa-msg-in .5s forwards;
}
.wa-msg:nth-child(2) { animation-delay: .3s; }
@keyframes wa-msg-in {
  to { opacity: 1; transform: translateY(0); }
}
.wa-msg time {
  display: block; margin-top: 4px;
  font-size: .65rem; color: rgba(233,237,239,.55);
  text-align: right;
}
.wa-msg-typing {
  display: inline-flex; gap: 4px; padding: 12px 16px;
  background: #1F2C34; border-radius: 14px; border-top-left-radius: 4px;
  align-self: flex-start;
}
.wa-msg-typing span {
  width: 6px; height: 6px; background: rgba(233,237,239,.5); border-radius: 50%;
  animation: wa-typing 1.2s ease-in-out infinite;
}
.wa-msg-typing span:nth-child(2) { animation-delay: .2s; }
.wa-msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wa-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Quick replies */
.wa-quick {
  padding: 8px 14px 14px;
  background: rgba(8, 12, 20, .92);
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.wa-quick-label {
  font-size: .7rem; color: rgba(255,255,255,.5);
  letter-spacing: .15em; text-transform: uppercase;
  padding: 4px 0;
}
.wa-quick a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: #1F2C34;
  color: #E9EDEF;
  padding: 11px 16px;
  border-radius: 22px;
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  border: 1px solid rgba(255,255,255,.04);
}
.wa-quick a:hover {
  background: #25D366; color: #fff;
  transform: translateX(2px);
}
.wa-quick a svg {
  width: 14px; height: 14px; opacity: .6;
  transition: opacity .2s ease, transform .2s ease;
}
.wa-quick a:hover svg { opacity: 1; transform: translateX(2px); }

/* Footer "Powered by" */
.wa-footer {
  padding: 8px 14px;
  background: #0E1A23;
  font-size: .68rem; color: rgba(255,255,255,.4);
  text-align: center;
  letter-spacing: .1em;
}
.wa-footer strong { color: rgba(255,255,255,.7); font-weight: 600; }

/* --- Lead popup (dark) --- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 9, 8, .85); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  overflow-y: auto;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }
.popup-card {
  background: var(--bg-elev); max-width: 560px; width: 100%;
  display: grid; grid-template-columns: 1fr 1.2fr;
  border: 1px solid var(--gold); position: relative;
  transform: translateY(40px) scale(.92);
  transition: transform .5s cubic-bezier(.2,.9,.3,1.1);
  margin: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(184,153,104,.15);
}
.popup-overlay.show .popup-card { transform: translateY(0) scale(1); }
@media (max-width: 600px) { .popup-card { grid-template-columns: 1fr; } }
.popup-visual {
  background-size: cover; background-position: center;
  min-height: 240px;
  position: relative;
}
.popup-visual::after {
  content: "Cadeau pour vous";
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); color: var(--bg);
  padding: 4px 12px; font-size: .65rem;
  letter-spacing: .25em; text-transform: uppercase; font-weight: 600;
}
.popup-body { padding: 40px 32px; }
.popup-body .eyebrow { margin-bottom: 12px; }
.popup-body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.popup-body p { color: var(--text-2); font-size: .9rem; margin-bottom: 24px; line-height: 1.6; }
.popup-form input {
  width: 100%; padding: 12px 0; margin-bottom: 16px;
  background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font-size: .95rem;
}
.popup-form input:focus { outline: none; border-bottom-color: var(--gold); }
.popup-form input::placeholder { color: var(--text-muted); }
.popup-form button { width: 100%; }

/* Close button — bien visible sur mobile, taille tactile 44px+ */
.popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  background: rgba(10,9,8,.85);
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease;
  z-index: 5; font-size: 1.5rem; line-height: 1;
  font-family: 'Inter', sans-serif; font-weight: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.popup-close:hover, .popup-close:focus {
  background: var(--gold); color: var(--bg); transform: scale(1.1);
}

/* Hint pour fermeture en bas du popup */
.popup-card::after {
  content: "Tapez en dehors pour fermer";
  position: absolute; bottom: -32px; left: 0; right: 0;
  text-align: center;
  color: rgba(245,242,234,.6);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 600px) {
  .popup-overlay { padding: 16px; align-items: flex-start; padding-top: 60px; }
  .popup-card {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .popup-visual { min-height: 140px; }
  .popup-visual::after { font-size: .58rem; padding: 3px 9px; }
  .popup-body { padding: 28px 22px 24px; }
  .popup-body h3 { font-size: 1.25rem; }
  .popup-body p { font-size: .88rem; }
  .popup-close {
    width: 48px; height: 48px; font-size: 1.6rem;
    top: 10px; right: 10px;
  }
  .popup-card::after { display: none; }
}

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Helpers --- */
.bg-elev { background: var(--bg-elev); }
.bg-elev-2 { background: var(--bg-elev-2); }
.no-scroll { overflow: hidden; }

/* ============================================
   EFFETS 3D · Profondeur · Parallax
   ============================================ */

/* Stack global perspective */
main { transform-style: preserve-3d; }

/* Hero — parallax (JS-driven on .hero-bg) */
.hero-bg {
  will-change: transform;
  transform: translateZ(0) scale(1.08);
  transition: transform .1s linear;
}
.hero-content { transform: translateZ(40px); }

/* Project cards — 3D tilt on hover */
.project-row-img {
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}
.project-row-img:hover {
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 60px -20px rgba(184, 153, 104, .25);
}
.project-row-img .number {
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
  transform: translateZ(30px);
}

/* Grid project cards (galerie projets) */
.gp {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  box-shadow: 0 15px 40px -20px rgba(0,0,0,.6);
}
.gp:hover {
  transform: translateZ(20px) translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.8), 0 0 0 1px rgba(184, 153, 104, .2);
}
.gp .gp-overlay { transform-style: preserve-3d; }
.gp:hover .num,
.gp:hover .info { transform: translateZ(20px); }
.gp .num,
.gp .info { transition: transform .5s ease; }

/* Service rows — 3D push effect */
.service-row {
  transform-style: preserve-3d;
  transition: transform .4s ease, background .3s ease, padding .3s ease;
}
.service-row:hover {
  transform: translateZ(10px);
  padding-left: 16px;
}

/* Reveal with 3D pop forward */
.reveal {
  opacity: 0;
  transform: translateY(60px) translateZ(-50px) rotateX(8deg);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1);
  transform-origin: center bottom;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0) rotateX(0deg);
}

/* Big numbers / display titles — pop-out shadow */
.display-xl, .display-l {
  text-shadow:
    0 1px 0 rgba(184, 153, 104, .15),
    0 6px 30px rgba(0, 0, 0, .5);
}

/* Hero scroll indicator — depth */
.hero-scroll { transform: translateX(-50%) translateZ(60px); }

/* Marquee — subtle hover lift */
.marquee-item { transition: transform .3s ease, color .3s ease; }
.marquee-item:hover { transform: translateY(-3px); color: var(--gold); }

/* Buttons — 3D press */
.btn { transform: translateZ(0); will-change: transform; }
.btn:active { transform: translateZ(-4px) translateY(2px); }
.btn-gold:hover {
  box-shadow: 0 20px 40px rgba(184, 153, 104, .3), 0 0 0 1px var(--gold-light);
}

/* Manifesto blockquote — float in */
.manifesto blockquote {
  transform-style: preserve-3d;
  transform: translateZ(20px);
}

/* Project hero (page projet) — Ken Burns slow zoom */
.project-hero {
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { background-size: 110% 110%; background-position: center; }
  100% { background-size: 120% 120%; background-position: center bottom; }
}

/* Floating WA button — extra 3D */
.wa-float {
  transform: translateZ(0);
  will-change: transform;
}

/* Mouse-tilt cards — class added by JS */
.tilt {
  transition: transform .12s ease-out;
  transform-style: preserve-3d;
}

/* Respecter les préférences utilisateur sur les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { transform: none; }
  .project-hero { animation: none; }
}

/* ============================================
   FIX MOBILE — Désactivation effets 3D + ajustements
   ============================================ */

@media (hover: none), (max-width: 768px) {
  /* Désactiver perspective + 3D effects qui causent stutter sur mobile */
  body { perspective: none; }
  main { transform-style: flat; }
  .reveal {
    transform: translateY(30px);
  }
  .reveal.visible {
    transform: translateY(0);
  }
  /* Pas de tilt 3D sur tactile */
  .project-row-img, .gp, .project-detail-img {
    transform-style: flat !important;
  }
  .project-row-img:hover, .gp:hover {
    transform: none !important;
  }
  /* Désactiver Ken Burns animation sur mobile (CPU) */
  .project-hero { animation: none; }
  /* Désactiver parallax sur mobile */
  .hero-bg { transform: none !important; }
}

@media (max-width: 768px) {
  /* Display titles plus raisonnables */
  .display-xl { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1; }
  .display-l  { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.15; }
  .display-m  { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.2; }
  h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* Padding sections moins agressif */
  section { padding: 60px 0; }
  :root { --gutter: 18px; }

  /* Topnav serré sur mobile */
  .topnav { padding: 14px var(--gutter); }
  .brand img { width: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-name span { font-size: .5rem; letter-spacing: .25em; }
  .topnav-cta { font-size: .65rem; padding: 6px 0; }
  .topnav-actions { gap: 14px; }
  .menu-btn { width: 38px; height: 38px; }

  /* Hero */
  .hero { min-height: 90vh; padding-bottom: 60px; }
  .hero-meta { font-size: .62rem; gap: 12px; margin-bottom: 24px; letter-spacing: .2em; }
  .hero-sub { font-size: .95rem; margin-top: 24px; margin-bottom: 28px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; padding: 14px; font-size: .75rem; }
  .hero-scroll { display: none; }

  /* Marquee */
  .marquee { padding: 18px 0; gap: 12px; }
  .marquee-item { font-size: .65rem; letter-spacing: .15em; }
  .marquee-item strong { font-size: 1.2rem; }

  /* Project rows */
  .project-row { margin-bottom: 56px; gap: 24px; }
  .project-row-info h3 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .project-row-info .cat { font-size: .62rem; letter-spacing: .2em; }
  .project-specs-inline { gap: 18px; }
  .project-specs-inline .item .v { font-size: 1rem; }

  /* Manifesto */
  .manifesto blockquote { font-size: clamp(1.2rem, 4.5vw, 1.6rem); line-height: 1.35; }

  /* Service rows */
  .service-row { padding: 24px 0; grid-template-columns: 40px 1fr 36px; gap: 14px; }
  .service-row .n { font-size: .9rem; }
  .service-row h3 { font-size: clamp(1.2rem, 4.5vw, 1.6rem); }
  .service-row .arrow { width: 36px; height: 36px; font-size: .85rem; }

  /* Timeline */
  .timeline-step { padding: 24px 12px 24px 0; }
  .timeline-step .n { font-size: 1.1rem; }
  .timeline-step h4 { font-size: 1.1rem; }
  .timeline-step p { font-size: .85rem; }

  /* Editorial */
  .editorial { gap: 32px; }
  .editorial-img { aspect-ratio: 4/3; }

  /* FAQ */
  .faq-q { padding: 18px 36px 18px 0; font-size: 1.05rem; }
  .faq-item.open .faq-a { padding-bottom: 18px; }
  .faq-a p { font-size: .92rem; line-height: 1.7; }

  /* Contact form */
  .contact-info ul li { padding: 16px 0; }
  .contact-info .l { letter-spacing: .2em; }
  .contact-info .v { font-size: 1.1rem; }
  .form-control { font-size: 16px; } /* iOS zoom prevention */

  /* CTA section */
  .cta-section { padding: 80px 0; }
  .cta-section .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-section .actions .btn { width: 100%; justify-content: center; }

  /* Overlay menu */
  .overlay-menu { padding: 0 var(--gutter); }
  .overlay-menu nav { gap: 4px; }
  .overlay-menu footer {
    flex-direction: column; align-items: flex-start; gap: 12px;
    bottom: 24px; font-size: .72rem;
  }

  /* Page header */
  .page-header { padding-top: 110px; padding-bottom: 48px; }
  .page-header .crumb { margin-bottom: 20px; font-size: .65rem; letter-spacing: .2em; }
  .page-header h1 { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 18px; }

  /* Project hero (pages projets) */
  .project-hero { height: 70vh; min-height: 420px; }
  .project-hero-content { padding-bottom: 36px; }
  .project-hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .project-meta-bar { padding: 20px 0; gap: 18px; }
  .project-meta-bar .item .v { font-size: 1rem; }

  /* Footer */
  .footer { padding: 64px 0 24px; }
  .footer-grid { gap: 32px; margin-bottom: 48px; }
  .footer-brand img { width: 100px; }
  .footer h5 { margin-bottom: 16px; }

  /* WhatsApp float plus discret */
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }

  /* Popup lead magnet */
  .popup-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .popup-visual { min-height: 160px; }
  .popup-body { padding: 28px 22px; }
  .popup-body h3 { font-size: 1.25rem; }

  /* Sections head */
  .section-head { margin-bottom: 40px; }
  .section-head .row { row-gap: 12px; }
  .section-head .meta { font-size: .65rem; }
  .eyebrow { font-size: .65rem; letter-spacing: .25em; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .display-xl { font-size: clamp(2rem, 9vw, 2.8rem); }
  .display-l  { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .hero { padding-bottom: 40px; }
  .topnav-cta { display: none; } /* Cache "Devis 48h" pour gain de place — accessible via menu */
  .marquee-item strong { font-size: 1.05rem; }
}
