/* ======== FONTS ======== */
@font-face { font-family: 'Nourd'; src: url('fonts/nourd_light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nourd'; src: url('fonts/nourd_regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nourd'; src: url('fonts/nourd_semi_bold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nourd'; src: url('fonts/nourd_bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nourd'; src: url('fonts/nourd_heavy.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ======== TOKENS ======== */
:root {
  /* Brand colors from charte */
  --rouge: #DA7166;
  --orange: #F3AA95;
  --rouge-deep: #B85248;
  --rouge-soft: #F5D9D2;

  /* Neutrals */
  --ink: #14110F;
  --ink-2: #2A2522;
  --ink-3: #4A413C;
  --paper: #FBF8F4;
  --paper-2: #F2EBE3;
  --paper-3: #E8DDD0;
  --rule: rgba(20,17,15,0.12);
  --rule-strong: rgba(20,17,15,0.22);

  --accent: var(--rouge);
  --accent-2: var(--orange);

  /* Type */
  --font-sans: 'Nourd', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --max-w: 1440px;
  --content-w: 1200px;

  --radius: 4px;
  --radius-lg: 12px;
}

/* Terminal direction = main/only direction */
:root, [data-direction="terminal"] {
  --paper: #0E0D0C;
  --paper-2: #161412;
  --paper-3: #1F1B18;
  --ink: #F5EFE7;
  --ink-2: #C9C0B5;
  --ink-3: #8A8276;
  --rule: rgba(245,239,231,0.10);
  --rule-strong: rgba(245,239,231,0.22);
}

/* ======== RESET ======== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ======== TYPOGRAPHY ======== */
.display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display-2 {
  font-weight: 900;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.h3 {
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

/* ======== LAYOUT ======== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; }
.section--tight { padding-top: clamp(36px, 4vw, 60px); padding-bottom: clamp(36px, 4vw, 60px); }

/* ======== NAV ======== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.nav__brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--accent);
  transition: right 320ms cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__cta {
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 200ms ease, background 200ms ease;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1;
  transition: all 220ms cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--accent); }
.btn--ghost { border: 1.5px solid var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: white; }
.btn--accent:hover { background: var(--rouge-deep); transform: translateY(-2px); }
.btn .arrow { transition: transform 240ms cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* ======== TAG / CHIP ======== */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--rouge-deep);
}
[data-direction="terminal"] .tag { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--orange); }
.tag .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: pulse 2.4s infinite ease-in-out; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(0.7); } }

/* ======== UTILITY ======== */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--rule); width: 100%; }

/* Reveal animation (for IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* Marquee */
.marquee { display: flex; gap: 60px; animation: marquee 28s linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Placeholder image */
.ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--ink) 4%, transparent) 18px 19px),
    var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
}

/* Footer */
footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 48px) 32px;
}
footer .ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: var(--max-w); margin: 0 auto; }
@media (max-width: 800px) { footer .ftr-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; font-weight: 500; margin-bottom: 16px; font-family: var(--font-mono); }
footer a { display: block; padding: 6px 0; opacity: 0.85; font-size: 14px; }
footer a:hover { opacity: 1; color: var(--accent-2); }
footer .ftr-bottom { max-width: var(--max-w); margin: 64px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; opacity: 0.5; font-size: 12px; font-family: var(--font-mono); }

/* ======== DIRECTION 1 - INFRASTRUCTURE (editorial) ======== */
[data-direction="infrastructure"] .hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
}
[data-direction="infrastructure"] .hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
[data-direction="infrastructure"] .hero__title {
  font-weight: 900;
  font-size: clamp(64px, 13vw, 220px);
  margin-top: clamp(20px, 3vw, 40px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}
[data-direction="infrastructure"] .hero__title .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 80px;
  padding-top: 32px; border-top: 1px solid var(--rule-strong);
}
.hero__meta .cell { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.hero__meta .cell .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.12em; }
.hero__meta .cell .v { font-size: clamp(18px, 1.4vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
@media (max-width: 800px) { .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ======== DIRECTION 2 - TERMINAL ======== */
[data-direction="terminal"] body, [data-direction="terminal"] {
  background: var(--paper);
  color: var(--ink);
}
[data-direction="terminal"] .hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
[data-direction="terminal"] .hero__title {
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-top: clamp(20px, 3vw, 40px);
}
[data-direction="terminal"] .grid-bg { display: none; }

/* ======== DIRECTION 3 - ATELIER ======== */
[data-direction="atelier"] {
  --paper: #F4ECE0;
  --paper-2: #EBDFCD;
  --paper-3: #DEC9AE;
}
[data-direction="atelier"] .hero {
  padding-top: 140px;
  padding-bottom: 80px;
}
[data-direction="atelier"] .hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 140px);
  margin-top: clamp(20px, 3vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
[data-direction="atelier"] .hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ======== SPECIFIC SECTION STYLES (shared) ======== */
.svc-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease, background 320ms ease;
  overflow: hidden;
  cursor: pointer;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.svc-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }
.svc-card h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.svc-card p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.svc-card .more { margin-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.svc-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.svc-card:hover::after { transform: scaleX(1); }

/* Process steps */
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step-row:last-child { border-bottom: 1px solid var(--rule); }
.step-row .num { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); letter-spacing: 0.08em; padding-top: 4px; }
.step-row h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.step-row p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) {
  .step-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Big quote */
.bigquote {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.bigquote em { color: var(--accent); font-style: italic; font-weight: 400; }

/* Stat block */
.stat {
  padding: 32px 16px;
  border-top: 1px solid var(--rule);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat .v {
  font-size: clamp(56px, 7vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.stat .k {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Cursor follower */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 1;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  transition: opacity 400ms ease;
  opacity: 0;
}
[data-direction="terminal"] .cursor-glow { opacity: 0.8; }

/* Logo wall */
.logos-wall {
  display: flex; gap: 64px; align-items: center; opacity: 0.55;
}
.logos-wall .logo-item {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ============ Direction-specific overrides for sections ============ */
[data-direction="terminal"] .svc-card {
  background: var(--paper-2);
  border-color: var(--rule);
}
[data-direction="terminal"] .svc-card:hover { background: var(--paper-3); }
[data-direction="terminal"] .svc-card .num { color: var(--accent-2); }

/* Live status bar (terminal only) */
.status-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex; gap: 24px; justify-content: center;
  transform: translateY(-100%);
  transition: transform 360ms ease;
}
[data-direction="terminal"] .status-bar { transform: translateY(0); }
[data-direction="terminal"] .nav { top: 28px; }
.status-bar .live { color: #6FCF8E; }
.status-bar .live::before { content: '●'; margin-right: 6px; animation: pulse 1.6s infinite; }

/* HERO art (logo monogram huge) */
.brand-monogram {
  position: absolute;
  right: -40px; top: 100px;
  width: clamp(280px, 40vw, 620px);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* fondu sur les bords pour éviter le clip brutal */
  mask-image: linear-gradient(to right, black 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 92%);
}
[data-direction="atelier"] .brand-monogram { opacity: 0.12; }
[data-direction="terminal"] .brand-monogram { opacity: 0.08; }

/* CTA banner */
.cta-banner {
  border: 1px solid var(--rule-strong);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 80px);
  background: var(--paper-2);
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end;
}
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } }

/* coverage block */
.coverage {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  padding: 48px;
  overflow: hidden;
}

/* Map dots animation */
.dot-pulse {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.dot-pulse::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: dotpulse 2.4s infinite;
}
@keyframes dotpulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Service details accordion */
.svc-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 2fr 1fr;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background 200ms ease, padding 240ms cubic-bezier(.2,.7,.2,1);
}
.svc-row:hover { padding-left: 12px; }
.svc-row:last-child { border-bottom: 1px solid var(--rule); }
.svc-row .num { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; letter-spacing: 0.1em; }
.svc-row .name { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.015em; }
.svc-row .desc { color: var(--ink-2); font-size: 14px; }
.svc-row .arr { justify-self: end; opacity: 0; transform: translateX(-8px); transition: all 240ms cubic-bezier(.2,.7,.2,1); }
.svc-row:hover .arr { opacity: 1; transform: translateX(0); }
@media (max-width: 800px) {
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .svc-row .arr { display: none; }
}

/* Process timeline (vertical, terminal feel) */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: var(--rule-strong);
}
.timeline-step {
  position: relative;
  padding-bottom: 32px;
}
.timeline-step::before {
  content: ''; position: absolute; left: -32px; top: 8px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--paper);
}

/* Buttons row hero */
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}

/* Page enter */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: pageIn 600ms ease; }

/* About / Differentiateur cards */
.diff-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.diff-cell {
  padding: 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.diff-cell:nth-child(2n) { border-right: 0; }
.diff-cell:nth-last-child(-n+2) { border-bottom: 0; }
.diff-cell .num {
  font-family: var(--font-mono); color: var(--accent);
  font-size: 12px; letter-spacing: 0.12em; margin-bottom: 12px;
}
.diff-cell h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.diff-cell p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 800px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-cell { border-right: 0; }
  .diff-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .diff-cell:last-child { border-bottom: 0; }
}

/* small select (direction switcher floating) */
.dir-pill {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  font-family: var(--font-mono); font-size: 12px;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.dir-pill button {
  padding: 8px 16px; border-radius: 999px; opacity: 0.6;
  transition: all 220ms ease;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.dir-pill button:hover { opacity: 1; }
.dir-pill button.active { background: var(--accent); color: white; opacity: 1; }

/* HR with label */
.hr-label {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.hr-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* CONTACT FORM */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.form-row input, .form-row textarea, .form-row select {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 220ms ease;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 120px; }

/* Pricing cards */
.price-card {
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--paper);
  transition: all 320ms cubic-bezier(.2,.7,.2,1);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card.featured .price { color: var(--accent-2); }
.price-card .price { font-size: 56px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.price-card .features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card .features li { font-size: 14px; padding-left: 24px; position: relative; }
.price-card .features li::before { content: '+'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }

/* SCROLL PROGRESS */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 80ms linear;
}
[data-direction="terminal"] .nav.is-stuck { background: color-mix(in srgb, var(--paper) 80%, transparent); }


/* ================================================================
   RESPONSIVE — mobile-first, breakpoints : 480 / 768 / 1024 / 1280
   ================================================================ */

/* ---- Hamburger ---- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  z-index: 101;
  flex-shrink: 0;
}
.nav__hamburger span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Menu plein écran ---- */
.nav__mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 48px);
  gap: 0;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 14px 0;
  color: var(--ink);
  opacity: 0.35;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  transition: opacity 200ms ease;
}
.nav__mobile-menu a:last-of-type { border-bottom: none; }
.nav__mobile-menu a[aria-current="page"],
.nav__mobile-menu a:hover { opacity: 1; }
.nav__mobile-cta {
  margin-top: 28px;
  opacity: 1 !important;
  border: none !important;
  align-self: flex-start;
}

/* ---- Classes grille responsive (desktop) ---- */
.r-two-col        { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px,5vw,64px); margin-bottom: clamp(32px,4vw,56px); }
.r-two-col-eq     { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,48px); align-items: center; }
.r-two-col-about  { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,5vw,64px); }
.r-two-col-contact{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); }
.r-svc-acc-hd     { display: grid; grid-template-columns: 60px 1fr auto; gap: 32px; padding-top: 32px; padding-bottom: 32px; cursor: pointer; align-items: center; }
.r-svc-acc-bd     { padding-bottom: 32px; padding-left: 92px; display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.r-info-grid      { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.coverage-map     { position: relative; aspect-ratio: 4/5; max-height: 480px; }

/* ---- Cursor glow corrigé ---- */
.cursor-glow {
  width: clamp(200px, 40vw, 480px);
  height: clamp(200px, 40vw, 480px);
}

/* ================================================================
   ≤ 1024px — tablette large
   ================================================================ */
@media (max-width: 1024px) {
  .r-two-col        { grid-template-columns: 1fr 1fr; }
  .r-two-col-contact{ gap: clamp(32px,4vw,56px); }
  .grid-3           { grid-template-columns: repeat(2, 1fr); }
  footer .ftr-grid  { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

/* ================================================================
   ≤ 768px — tablette / grand mobile
   ================================================================ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Nav */
  .nav__links   { display: none; }
  .nav__cta     { display: none; }
  .nav__hamburger { display: flex; }
  [data-direction="terminal"] .nav { top: 0; }

  /* Hero – les sections sans inline style utilisent cette règle */
  .hero { padding-top: clamp(80px,12vw,110px) !important; padding-bottom: clamp(40px,6vw,64px) !important; }

  /* Hero padding classes pour hero sous-pages (remplace inline style) */
  .hero--sub { padding-top: clamp(80px,12vw,110px) !important; padding-bottom: 40px !important; }

  /* Titres */
  [data-direction="terminal"] .hero__title     { font-size: clamp(30px,9vw,54px); line-height: 1.05; word-break: break-word; }
  [data-direction="infrastructure"] .hero__title{ font-size: clamp(40px,10vw,72px); }
  [data-direction="atelier"] .hero__title       { font-size: clamp(36px,9vw,64px); }
  .display   { font-size: clamp(38px, 9vw, 64px)  !important; line-height: 0.96; }
  .display-2 { font-size: clamp(28px, 7vw, 48px)  !important; line-height: 1.0; }
  .h2        { font-size: clamp(24px, 5.5vw, 36px); }
  .lede      { font-size: clamp(15px, 3.5vw, 18px); }
  .bigquote  { font-size: clamp(20px, 5vw, 32px); }

  /* Tag — multi-ligne gracieux */
  .tag {
    white-space: normal;
    line-height: 1.5;
    align-items: flex-start;
    border-radius: 12px;
    max-width: 100%;
  }

  /* Brand monogram */
  .brand-monogram { width: clamp(120px, 38vw, 220px); right: -8px; top: 56px; opacity: 0.04; }

  /* Hero meta → 2 colonnes */
  .hero__meta { grid-template-columns: repeat(2,1fr) !important; gap: 20px; margin-top: 40px; }
  .hero__meta .cell .v { font-size: 16px; }

  /* Boutons hero pleine largeur */
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section        { padding-top: clamp(40px,8vw,72px); padding-bottom: clamp(40px,8vw,72px); }
  .section--tight { padding-top: clamp(32px,6vw,52px); padding-bottom: clamp(32px,6vw,52px); }

  /* Grilles */
  .r-two-col        { grid-template-columns: 1fr; gap: 28px; margin-bottom: 24px; }
  .r-two-col-eq     { grid-template-columns: 1fr; gap: 36px; }
  .r-two-col-about  { grid-template-columns: 1fr; gap: 36px; }
  .r-two-col-contact{ grid-template-columns: 1fr; gap: 44px; }
  .r-svc-acc-hd     { grid-template-columns: 36px 1fr auto; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .r-svc-acc-bd     { padding-left: 0; grid-template-columns: 1fr; gap: 12px; }
  .r-info-grid      { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .stat { padding-top: 20px; padding-bottom: 20px; }

  /* HR-label */
  .hr-label { margin-bottom: 16px; }

  /* Step row */
  .step-row { gap: 8px; }
  .step-row h3 { font-size: clamp(18px, 4.5vw, 26px); }

  /* Diff grid */
  .diff-grid { grid-template-columns: 1fr; }
  .diff-cell { border-right: 0; padding: 24px 20px; }
  .diff-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .diff-cell:last-child { border-bottom: 0; }

  /* CTA banner */
  .cta-banner { grid-template-columns: 1fr; padding: clamp(24px,5vw,40px); gap: 24px; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* Coverage */
  .coverage { padding: 24px 20px; }

  /* Svc card */
  .svc-card { padding: 24px; }

  /* Svc row (home) */
  .svc-row { grid-template-columns: 1fr; gap: 6px; }
  .svc-row .num { text-align: center; }
  .svc-row .arr { display: none; }

  /* Price cards */
  .price-card { padding: 24px 20px; }
  .price-card .price { font-size: 40px; }
  .price-card .features li { font-size: 13px; }

  /* Status bar */
  .status-bar { font-size: 9px; gap: 8px; letter-spacing: 0.02em; padding: 5px 12px; }

  /* Footer */
  footer { padding: clamp(40px,7vw,72px) clamp(20px,4vw,32px) 28px; }
  footer .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer .ftr-bottom { margin-top: 40px; flex-direction: column; gap: 8px; }

  /* Form */
  .form-row input, .form-row textarea, .form-row select { padding: 10px 0; font-size: 15px; }
}

/* ================================================================
   ≤ 480px — petit mobile
   ================================================================ */
@media (max-width: 480px) {
  .status-bar { display: none; }

  /* Tag — encore plus compact sur très petit écran */
  .tag { font-size: 9.5px; padding: 5px 10px; letter-spacing: 0.07em; white-space: nowrap; overflow: hidden; max-width: 100%; }

  /* Hero meta → 2 colonnes */
  .hero__meta { grid-template-columns: 1fr 1fr !important; }

  /* Grilles */
  .r-info-grid { grid-template-columns: 1fr 1fr; }

  /* Footer → 1 colonne */
  footer .ftr-grid { grid-template-columns: 1fr; gap: 28px; }

  /* CTA buttons */
  .btn { font-size: 14px; padding: 12px 18px; }

  /* Coverage map — masquer la carte SVG sur très petit écran */
  .coverage-map { display: none; }

  /* Svc acc header tags — masquer sur petit mobile */
  .r-svc-acc-hd .svc-tags { display: none; }

  /* Sections encore plus serrées */
  .section        { padding-top: clamp(32px,7vw,56px); padding-bottom: clamp(32px,7vw,56px); }
  .section--tight { padding-top: clamp(24px,5vw,40px); padding-bottom: clamp(24px,5vw,40px); }
}
