/* =========================================================
   TOM SEPVAL — DESIGN SYSTEM MONOCHROME
   Tokens repris de la charte fournie (tokens/*.css)
   ========================================================= */

:root {
  /* Ink ramp */
  --ink-900: #0a0a0a;
  --ink-800: #161616;
  --ink-700: #2b2b2b;
  --ink-600: #454545;

  /* Grey ramp */
  --grey-500: #6b6b6b;
  --grey-400: #8f8f8f;
  --grey-300: #c4c4c4;
  --grey-200: #e4e4e4;
  --grey-100: #f0f0f0;
  --grey-50:  #f7f6f4;

  /* Paper */
  --paper: #ffffff;
  --paper-warm: #faf9f7;

  /* Semantic aliases */
  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--grey-500);
  --text-faint: var(--grey-400);
  --text-inverse: var(--paper);

  --surface-page: var(--paper-warm);
  --surface-card: var(--paper);
  --surface-sunken: var(--grey-50);
  --surface-fill: var(--grey-100);
  --surface-invert: var(--ink-900);

  --border-hair: var(--grey-200);
  --border-strong: var(--grey-300);
  --border-ink: var(--ink-900);

  --focus-ring: var(--ink-900);

  /* Fonts */
  --display: 'Poppins', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

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

  /* Radii — restrained, nearly square */
  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --radius-pill: 999px;
  --radius: var(--radius-lg);

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-sm: 0 1px 3px rgba(10,10,10,0.06), 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 8px 24px rgba(10,10,10,0.07);
  --shadow-lg: 0 24px 60px rgba(10,10,10,0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms; --dur-base: 220ms; --dur-slow: 420ms;

  /* Layout */
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Réduire le mouvement ne veut pas dire supprimer tout retour visuel :
   on neutralise les déplacements et les animations, on garde les fondus
   de couleur et d'opacité qui aident à comprendre l'interface. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, background-color, border-color, color, box-shadow !important;
    transition-duration: 150ms !important;
  }
}

/* Surfaces translucides rendues opaques quand l'utilisateur demande
   moins de transparence. */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-hair);
  }
  .site-header::after { display: none; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: var(--leading-normal, 1.55);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}
/* Le tracking et l'interligne suivent la taille : serrés sur les grands
   titres, ouverts sur les petits. Une valeur unique serait fausse
   quelque part — ici elle l'était sur les titres de cartes. */
h1 { line-height: 1.08; letter-spacing: -0.03em; }
h2 { line-height: 1.15; letter-spacing: -0.02em; }
h3, h4 { line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Le halo gris par défaut d'iOS double le retour au toucher que l'on
   dessine nous-même — on le neutralise partout. */
a, button, label, summary { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Photographies en couleur — l'interface reste monochrome,
   les photos apportent la vie. */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--border-strong);
  display: inline-block;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* 0.85 et non 0.6 comme dans le cas d'école : le contenu qui défile
     dessous est lui-même clair (cartes blanches, pill de recherche), et
     empiler deux surfaces claires translucides rend le texte de nav
     fantomatique. Le matériau reste perceptible, sans le bruit. */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
/* Scroll edge effect : le contenu se fond progressivement sous le header
   flottant au lieu d'être coupé net par un trait de 1px. Le dégradé porte
   sur le flou, pas sur une couleur — il fonctionne donc au-dessus de
   n'importe quel fond de section. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; }
.logo img { height: 22px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  color: var(--text-body);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--text-strong);
}
.nav-links a:active { opacity: 0.55; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink-900);
}

.nav-cta {
  background: var(--ink-900);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-cta:hover { background: var(--ink-700); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-toggle:active { transform: scale(0.92); background: var(--surface-fill); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--pad) 24px;
    border-bottom: 1px solid var(--border-hair);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transform-origin: top right;
    transition: transform 0.22s var(--ease-out), opacity 0.22s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; border-top: 1px solid var(--border-hair); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .nav-cta { display: inline-block; margin-top: 12px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: none;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

/* Le retour arrive au press, pas au relâchement — c'est le seul signal
   dont dispose un visiteur au téléphone, où :hover n'existe pas. */
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[disabled]:active { transform: none; }

.btn-primary { background: var(--ink-900); color: var(--paper); }
.btn-primary:hover { background: var(--ink-700); }

.btn-ghost { background: transparent; color: var(--text-strong); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--grey-100); border-color: var(--border-strong); }
.btn-ghost:active { background: var(--grey-200); }

.cta-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-note::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-900);
  display: inline-block;
  flex-shrink: 0;
}

/* =========================================================
   HERO
   ========================================================= */

.hero { position: relative; padding: 96px var(--pad) 72px; overflow: hidden; }
.hero-blob { display: none; } /* pas d'accent chromatique dans ce système */

.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }

.hero-searchbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 14px;
  font-family: var(--body);
  color: var(--text-muted);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.hero-searchbar svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-700); stroke-width: 1.5; }
.hero-searchbar .cursor {
  display: inline-block; width: 1.5px; height: 15px;
  background: var(--ink-900); animation: blink 1.1s ease-in-out infinite;
}
/* Fondu court aux extrémités plutôt qu'un saut de luminosité brut :
   le curseur respire au lieu de clignoter. */
@keyframes blink {
  0%, 40%  { opacity: 1; }
  46%, 90% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  max-width: 17ch;
  margin-bottom: 26px;
  font-weight: 600;
}
.hero-sub { font-size: 18px; max-width: 56ch; color: var(--text-body); margin-bottom: 34px; }
.hero-cta-row { display: flex; flex-direction: column; align-items: flex-start; }
.hero-cta-row .btn + .btn-ghost { margin-top: 12px; }
@media (min-width: 640px) {
  .hero-cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .hero-cta-row .btn + .btn-ghost { margin-top: 0; }
  .hero-cta-row .cta-note { flex-basis: 100%; }
}

/* =========================================================
   SECTIONS
   ========================================================= */

section { padding: var(--space-9) var(--pad); }
section.tight { padding: var(--space-8) var(--pad); }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 16px; }

/* =========================================================
   PROBLEME (section noire pleine largeur)
   ========================================================= */

.problem-bg { background: var(--ink-900); color: var(--paper); }
.problem-bg .eyebrow { color: var(--grey-400); }
.problem-bg .eyebrow::before { background: rgba(255,255,255,0.24); }
.problem-bg h2 { color: var(--paper); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
}
.problem-card { background: var(--ink-900); padding: 38px 32px; }
.problem-card .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 18px;
  display: block;
  letter-spacing: 0.06em;
}
.problem-card strong {
  font-family: var(--display);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--paper);
}
.problem-card p { font-size: 15px; color: rgba(255,255,255,0.62); }

@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CIBLES
   ========================================================= */

.targets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: 12px; }

.target-card {
  background: var(--surface-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.target-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.target-card:active { transform: translateY(-1px) scale(0.995); }

.target-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.target-card h3 { font-size: 1.22rem; font-weight: 600; }
.target-card p { font-size: 15px; color: var(--text-muted); }

.target-card .micro-cta {
  margin-top: auto;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.target-card .micro-cta svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.target-card:hover .micro-cta svg { transform: translateX(3px); }

@media (max-width: 900px) { .targets-grid { grid-template-columns: 1fr; } }

/* =========================================================
   EXEMPLES CONCRETS
   ========================================================= */

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: 12px; }

.case-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-hair);
}
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms var(--ease-out); }
.case-card:hover img { transform: scale(1.04); }
.case-card:active img { transform: scale(1.02); }
.case-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.88) 100%);
}
.case-content { position: relative; z-index: 1; padding: 24px; color: var(--paper); }
.case-content .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 8px; display: block;
}
.case-content h3 { font-size: 1.14rem; margin-bottom: 8px; font-weight: 600; line-height: 1.2; color: var(--paper); }
.case-content p { font-size: 14px; color: rgba(255,255,255,0.72); }

@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } .case-card { aspect-ratio: 4/3; } }

/* =========================================================
   AUDIT — 6 AXES (section noire pleine largeur)
   ========================================================= */

.audit-bg {
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--radius-lg);
  margin: 0 var(--pad);
  padding: 72px var(--pad);
  width: auto;
}
.audit-bg .eyebrow { color: var(--grey-400); }
.audit-bg .eyebrow::before { background: rgba(255,255,255,0.24); }
.audit-bg .section-head h2 { color: var(--paper); }
.audit-bg .section-head p { color: rgba(255,255,255,0.68); }

.axes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: 8px; margin-bottom: var(--space-7); }
.axis { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); padding: 22px 20px; }
.axis .n { font-family: var(--mono); font-size: 12px; color: var(--grey-400); margin-bottom: 10px; display: block; letter-spacing: 0.06em; }
.axis strong { font-family: var(--display); display: block; font-size: 1rem; margin-bottom: 6px; font-weight: 600; color: var(--paper); }
.axis p { font-size: 14px; color: rgba(255,255,255,0.66); }

.audit-bg .btn-primary { background: var(--paper); color: var(--ink-900); }
.audit-bg .btn-primary:hover { background: var(--grey-100); }
.audit-bg .cta-note { color: rgba(255,255,255,0.6); }
.audit-bg .cta-note::before { background: var(--paper); }

@media (max-width: 900px) { .axes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .axes-grid { grid-template-columns: 1fr; }
  .audit-bg { padding: 48px 24px; border-radius: var(--radius-lg); margin: 0 12px; }
}

/* =========================================================
   APPROCHE
   ========================================================= */

.approach { display: grid; grid-template-columns: 300px 1fr 1.3fr; gap: 48px; align-items: center; }

/* Duo de portraits : photo principale + silhouette décalée qui la chevauche */
.approach-duo { position: relative; padding-bottom: 56px; padding-right: 36px; }
.approach-duo .duo-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.approach-duo .duo-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 4px solid var(--paper);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.approach-photo img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; }

.approach-words { display: flex; flex-direction: column; gap: 2px; }
.approach-words span {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  color: var(--ink-900);
}
.approach-words span:nth-child(2) { color: var(--text-muted); margin-left: 26px; }
.approach-words span:nth-child(3) { color: var(--text-faint); font-weight: 500; }

.approach-text .eyebrow { margin-bottom: 16px; }
.approach-text p { font-size: 17px; color: var(--text-body); max-width: 46ch; }

@media (max-width: 980px) {
  .approach { grid-template-columns: 1fr; gap: 28px; }
  .approach-words span:nth-child(2) { margin-left: 0; }
  .approach-duo { max-width: 300px; }
}

/* =========================================================
   FORMULAIRE
   ========================================================= */

.form-section { background: var(--surface-sunken); }
.form-card {
  background: var(--paper);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.form-pitch h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.form-pitch p { color: var(--text-muted); margin-bottom: 24px; }
.form-pitch ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form-pitch li { display: flex; gap: 10px; font-size: 15px; }
.form-pitch li::before { content: "—"; color: var(--ink-900); font-weight: 600; flex-shrink: 0; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; font-family: var(--mono); letter-spacing: 0.04em; color: var(--text-body); }
.field input, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); font-family: var(--body); font-size: 15px;
  background: var(--surface-sunken); color: var(--text-strong);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus { border-color: var(--ink-900); outline: none; background: var(--paper); }

.form-status { font-size: 14px; margin-top: 12px; min-height: 20px; font-family: var(--body); }
.form-status.ok { color: var(--ink-900); font-weight: 600; }
.form-status.err { color: #b4483a; font-weight: 600; }

@media (max-width: 860px) { .form-card { grid-template-columns: 1fr; padding: 32px 24px; } }

/* =========================================================
   FOOTER
   ========================================================= */

footer { background: var(--ink-900); color: rgba(255,255,255,0.66); padding: 56px var(--pad) 28px; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 24px;
}
.footer-logo { margin-bottom: 10px; }
.footer-logo img { height: 20px; width: auto; filter: invert(1) brightness(1.6); }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--paper); }
.footer-col a:active { opacity: 0.55; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; font-family: var(--mono); }

/* =========================================================
   PAGES INTÉRIEURES
   ========================================================= */

.page-hero { padding: 64px var(--pad) 56px; background: var(--surface-sunken); border-bottom: 1px solid var(--border-hair); }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 18ch; margin-top: 16px; }
.page-hero .hero-sub { margin-top: 20px; margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.step {
  position: relative;
  padding: 28px 26px 26px;
  background: var(--surface-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 14px 30px rgba(0,0,0,0.07);
}
.step .step-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hair);
  border-radius: 50%;
  color: var(--text-strong);
  margin-bottom: 18px;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.step .step-icon svg { width: 20px; height: 20px; }
.step:hover .step-icon { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.step .step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.step p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .step, .step .step-icon { transition: none; }
  .step:hover { transform: none; }
}

.case-detail { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 48px; align-items: center; }
.case-detail img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 3 / 4; /* format natif des photos : aucun étirement */
  object-fit: cover;
  object-position: center;
}
.case-detail .eyebrow { margin-bottom: 16px; }
.case-detail h3 { font-size: 1.5rem; margin-bottom: 16px; }
.case-detail p { color: var(--text-muted); margin-bottom: 14px; }
.case-detail.reverse { grid-template-columns: 1fr minmax(260px, 380px); }
.case-detail.reverse .img-col { order: 2; }
.case-detail.reverse .text-col { order: 1; }

@media (max-width: 860px) {
  .case-detail, .case-detail.reverse { grid-template-columns: 1fr; }
  .case-detail.reverse .img-col, .case-detail.reverse .text-col { order: unset; }
  .case-detail img { max-width: 380px; margin: 0 auto; }
}

.portfolio-note {
  background: var(--surface-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.portfolio-note img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 1; object-fit: cover; }
.portfolio-note .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 8px; }
.portfolio-note h4 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.portfolio-note p { font-size: 14px; color: var(--text-muted); }

@media (max-width: 600px) { .portfolio-note { grid-template-columns: 1fr; } }

.faq { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.faq-item { border-top: 1px solid var(--border-hair); }
.faq-item:last-child { border-bottom: 1px solid var(--border-hair); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--text-strong);
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.faq-q:active { opacity: 0.6; }
.faq-q .plus { font-size: 1.2rem; color: var(--text-faint); transition: transform var(--dur-base) var(--ease-out); flex-shrink: 0; margin-left: 20px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
/* La hauteur est déduite du contenu (0fr → 1fr) au lieu d'un plafond
   arbitraire : plus rien n'est tronqué, et la durée est réellement
   consommée quelle que soit la longueur de la réponse. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { padding-bottom: 22px; color: var(--text-muted); font-size: 15px; max-width: 66ch; }

.final-cta {
  background: var(--ink-900); color: var(--paper);
  border-radius: var(--radius-lg);
  margin: 0 var(--pad);
  padding: 64px var(--pad);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.final-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 20ch; margin-bottom: 14px; color: var(--paper); }
.final-cta p { color: rgba(255,255,255,0.68); max-width: 50ch; margin-bottom: 30px; }
.final-cta .btn-primary { background: var(--paper); color: var(--ink-900); }
.final-cta .btn-primary:hover { background: var(--grey-100); }

@media (max-width: 600px) { .final-cta { padding: 48px 24px; margin: 0 12px; border-radius: var(--radius-lg); } }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; font-family: var(--mono);
  color: var(--text-muted); margin-bottom: 18px;
}
.back-link svg { width: 14px; height: 14px; }
.back-link { transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.back-link:hover { color: var(--text-strong); }
.back-link:active { opacity: 0.5; }

/* =========================================================
   RÉVÉLATION AU SCROLL — modules texte + photo
   Sobre : fondu + léger glissement. Une seule fois.
   Sans JS, tout reste visible (progressive enhancement).
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* La photo part avec un très léger zoom qui se pose */
.reveal-img {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal-img.is-visible {
  opacity: 1;
  transform: scale(1);
}
/* will-change n'est posé qu'au moment où le mouvement est imminent, puis
   retiré à la fin de la transition (voir main.js) : sur une page portfolio,
   le garder en permanence sur 40 éléments coûte une couche compositeur
   par élément, pour rien. */
.reveal.will-animate,
.reveal-img.will-animate { will-change: opacity, transform; }
/* Le texte suit la photo d'un souffle */
.reveal-delay { transition-delay: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   CAS CLIENT ÉDITORIAL — texte pleine largeur + galerie
   façon magazine d'architecture
   ========================================================= */
.case-editorial-head { max-width: 62ch; margin-bottom: 40px; }
.case-editorial-head h3 { margin: 14px 0 16px; }
.case-editorial-head p { margin-bottom: 12px; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 290px;
  gap: 14px;
}
.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}
/* Grande photo paysage : 2 colonnes en haut à gauche */
.case-gallery .g-wide { grid-column: 1 / 3; }
/* Photo portrait : colonne de droite sur toute la hauteur */
.case-gallery .g-tall { grid-column: 3 / 4; grid-row: 1 / 3; }

.case-gallery-caption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 860px) {
  .case-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .case-gallery .g-wide { grid-column: 1 / 3; }
  .case-gallery .g-tall { grid-column: auto; grid-row: auto; }
}

/* Variante 5 photos : la photo forte au centre sur toute la
   hauteur, deux photos de chaque côté */
.case-gallery--five .g-center { grid-column: 2 / 3; grid-row: 1 / 3; }

@media (max-width: 860px) {
  .case-gallery--five .g-center { grid-column: 1 / 3; grid-row: auto; }
}

/* =========================================================
   PORTFOLIO PLAQUETTE — pages posées côte à côte
   ========================================================= */
.portfolio-brochure { margin-top: 72px; }
.portfolio-brochure-head { max-width: 62ch; margin-bottom: 28px; }
.portfolio-brochure-head .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 10px;
}
.portfolio-brochure-head h4 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
.portfolio-brochure-head p { font-size: 14.5px; color: var(--text-muted); }

.brochure-pages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.brochure-pages img {
  width: 100%;
  height: auto;
  aspect-ratio: 728 / 1000; /* format A4 natif des pages */
  object-fit: cover;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.brochure-pages img:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 14px 30px rgba(0,0,0,0.09);
}

@media (max-width: 860px) {
  .brochure-pages { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .brochure-pages img { transition: none; }
  .brochure-pages img:hover { transform: none; }
}

/* Variantes de planches portfolio selon le format des pages */
.brochure-pages.pages-landscape { grid-template-columns: repeat(2, 1fr); }
.brochure-pages.pages-landscape img { aspect-ratio: 1400 / 990; }

.brochure-pages.pages-two { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.brochure-pages.pages-two img { aspect-ratio: 778 / 1100; }

.brochure-pages.pages-covering { grid-template-columns: 1fr; max-width: 720px; gap: 10px; }
.brochure-pages.pages-covering img {
  aspect-ratio: auto;
  height: auto;
  background: #fff;
  padding: 10px 16px;
}

@media (max-width: 860px) {
  .brochure-pages.pages-landscape { grid-template-columns: 1fr; }
}

/* Panneaux verticaux de webdesign (page découpée en 3) */
.brochure-pages.pages-web { grid-template-columns: repeat(3, 1fr); max-width: 860px; gap: 12px; }
.brochure-pages.pages-web img { aspect-ratio: 643 / 1100; }

/* Propositions de logos : cartes blanches, logo posé au centre */
.brochure-pages.pages-logos { grid-template-columns: repeat(3, 1fr); }
.brochure-pages.pages-logos img {
  aspect-ratio: auto;
  height: 130px;
  object-fit: contain;
  background: #fff;
  padding: 22px 26px;
}

@media (max-width: 860px) {
  .brochure-pages.pages-web { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brochure-pages.pages-logos { grid-template-columns: 1fr; }
  .brochure-pages.pages-logos img { height: 110px; }
}

/* Après l'apparition, main.js retire les classes .reveal / .reveal-img :
   l'élément retrouve alors ses propres transitions de survol, sans qu'on
   ait besoin d'une règle d'override plus spécifique. Les anciennes règles
   ici écrasaient la transition d'opacité pendant l'apparition elle-même,
   ce qui faisait surgir les cartes d'un coup avant de les faire glisser. */

/* =========================================================
   HERO AVEC COLLAGE — texte à gauche, visuel en haut à droite
   ========================================================= */
.hero-with-visual {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-visual { display: flex; justify-content: flex-end; }
.hero-visual img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

@media (max-width: 900px) {
  .hero-with-visual { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { justify-content: center; }
  .hero-visual img { max-width: 280px; }
}

.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--text-strong); }
