/* ==================================================================
   Cabinet TRAC, styles principaux
   Palette : ivoire F9F6EE, vert profond 006039, cuivre D49A76,
             anthracite 2A2A2A, gris moyen 6B6B6B.
   Typographies : Poppins (titres et logo), Outfit (corps de texte).
   ================================================================== */

:root {
  --ivoire: #F9F6EE;
  --ivoire-2: #F2ECDC;
  --ivoire-3: #E9E3CE;

  --vert: #006039;
  --vert-2: #004A2C;
  --vert-3: #003820;
  --vert-4: #002214;
  --vert-hi: #0A7A4A;

  --cuivre: #D49A76;
  --cuivre-hi: #F3CFAE;
  --cuivre-hi-2: #FFE9D0;
  --cuivre-lo: #B87B57;
  --cuivre-lo-2: #8F5B3E;

  --anthracite: #1D1D1F;
  --gris: #6E6E73;
  --gris-2: #86868B;
  --filet: #E2D9C0;

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Poppins', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--anthracite);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "kern";
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
img { max-width: 100%; display: block; }

::selection { background: var(--cuivre); color: var(--vert-3); }

/* ==================================================================
   NAV STICKY (frosted glass)
   ================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 34, 20, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(249, 246, 238, 0.08);
  color: var(--ivoire);
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 62px;
  gap: 40px;
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 100%;
  transition: opacity 260ms var(--ease-apple);
}
.nav-brand:hover { opacity: 0.82; }
.nav-brand img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 2px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(249, 246, 238, 0.78);
}
.nav-links a {
  position: relative;
  padding: 18px 18px;
  transition: color 260ms var(--ease-apple);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 12px;
  height: 1px;
  background: var(--cuivre);
  transition: left 420ms var(--ease-apple), right 420ms var(--ease-apple);
}
.nav-links a:hover { color: var(--ivoire); }
.nav-links a:hover::after { left: 18px; right: 18px; }
.nav-links a.active { color: var(--ivoire); }
.nav-links a.active::after { left: 18px; right: 18px; background: var(--cuivre); }

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--vert-3);
  background: var(--cuivre-hi);
  border-radius: 100px;
  transition: background 300ms var(--ease-apple),
              transform 200ms var(--ease-apple);
}
.nav-cta:hover { background: var(--cuivre-hi-2); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta .arr { font-weight: 300; transition: transform 300ms var(--ease-apple); }
.nav-cta:hover .arr { transform: translateX(3px); }

/* --- Bouton burger (mobile) --- */
.nav-toggle {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
  margin-right: -8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--ivoire);
  border-radius: 2px;
  transition: transform 320ms var(--ease-apple),
              opacity 220ms var(--ease-apple),
              top 320ms var(--ease-apple);
}
.nav-toggle-bar:nth-child(1) { top: 13px; }
.nav-toggle-bar:nth-child(2) { top: 19px; }
.nav-toggle-bar:nth-child(3) { top: 25px; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* --- Panneau mobile --- */
.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 90; /* sous la barre de nav (100) : la croix reste cliquable */
  overflow-y: auto;
  background: linear-gradient(180deg, var(--vert-4) 0%, var(--vert-3) 50%, var(--vert-2) 100%);
  padding: 96px clamp(28px, 8vw, 56px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 340ms var(--ease-apple),
              transform 400ms var(--ease-apple),
              visibility 0s linear 400ms;
}
.nav-mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 340ms var(--ease-apple),
              transform 400ms var(--ease-apple),
              visibility 0s linear 0s;
}
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-links a {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.02em;
  color: var(--ivoire);
  padding: 12px 0;
  border-bottom: 1px solid rgba(249, 246, 238, 0.08);
  transition: color 260ms var(--ease-apple),
              padding-left 260ms var(--ease-apple);
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active {
  color: var(--cuivre-hi);
  padding-left: 12px;
}
.nav-mobile-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 22px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-3);
  background: var(--cuivre-hi);
  border-radius: 100px;
}
.nav-mobile-cta .arr { font-weight: 300; font-size: 15px; }

/* Blocage du scroll quand le panneau est ouvert */
html.is-nav-locked,
html.is-nav-locked body {
  overflow: hidden;
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 62px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(10, 122, 74, 0.5) 0%, rgba(10, 122, 74, 0) 55%),
    radial-gradient(65% 55% at 50% 55%, rgba(212, 154, 118, 0.16) 0%, rgba(212, 154, 118, 0) 60%),
    linear-gradient(180deg,
      var(--vert-4) 0%,
      var(--vert-3) 18%,
      var(--vert-2) 38%,
      var(--vert) 55%,
      var(--vert-2) 72%,
      var(--vert-3) 88%,
      var(--vert-4) 100%);
  color: var(--ivoire);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.96  0 0 0 0 0.93  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 94vw);
  height: 600px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 224, 195, 0.22) 0%, rgba(255, 224, 195, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(24px, 5vw, 72px);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 60px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-left: 0.5em;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 154, 118, 0.65), transparent);
}

/* --- Scène du hero : logo cuivre TRAC. + décodage tapé au curseur --- */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
  min-height: clamp(260px, 34vw, 460px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.hero-logo-wrap {
  display: block;
  width: 100%;
  max-width: min(760px, 74vw);
}

/* Le logo est piloté par la variable --reveal (0 → 1) mise à jour
   à chaque frame par le JS, au rythme exact de l'écriture.
   Dévoilement gauche → droite à bord adouci, fondu et léger lever. */
.hero-logo {
  --reveal: 0;
  display: block;
  width: 100%;
  height: auto;
  opacity: min(1, calc(var(--reveal) * 1.6));
  transform: translateY(calc((1 - var(--reveal)) * 10px))
             scale(calc(0.975 + var(--reveal) * 0.025));
  -webkit-mask-image: linear-gradient(90deg,
    #000 calc(var(--reveal) * 145% - 45%),
    transparent calc(var(--reveal) * 145%));
          mask-image: linear-gradient(90deg,
    #000 calc(var(--reveal) * 145% - 45%),
    transparent calc(var(--reveal) * 145%));
  filter: drop-shadow(0 10px 60px rgba(212, 154, 118, 0.28))
          drop-shadow(0 3px 12px rgba(0, 0, 0, 0.35));
  will-change: opacity, transform, mask-image;
  user-select: none;
  pointer-events: none;
}
.hero-logo.is-revealed {
  --reveal: 1;
  -webkit-mask-image: none;
          mask-image: none;
  will-change: auto;
}

/* Ligne de décodage : bloc centré, le curseur suit le texte en ligne.
   Sur écran étroit le JS insère un retour à la ligne (deux lignes). */
.hero-decode-line {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 26px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivoire);
  white-space: nowrap;
  min-height: 1.3em;
  line-height: 1.3;
}
.hero-typewriter-text,
.hero-typewriter-rest {
  display: inline;
  white-space: pre-line;
}
/* Le texte restant à écrire occupe déjà sa place, invisible :
   les lettres apparaissent à leur position définitive, sans décalage. */
.hero-typewriter-rest { visibility: hidden; }
.hero-typewriter-cursor {
  display: inline-block;
  width: clamp(11px, 1vw, 15px);
  height: clamp(22px, 2.1vw, 30px);
  background: var(--ivoire);
  vertical-align: -0.18em;
  margin-left: 7px;
  border-radius: 1px;
  box-shadow: 0 0 14px rgba(249, 246, 238, 0.45);
  animation: cursor-blink 1s steps(1) infinite;
  transition: width 620ms var(--ease-apple),
              height 620ms var(--ease-apple),
              margin 620ms var(--ease-apple),
              vertical-align 620ms var(--ease-apple),
              box-shadow 620ms var(--ease-apple);
}
.hero-typewriter-cursor.is-settled {
  width: clamp(6px, 0.55vw, 9px);
  height: clamp(6px, 0.55vw, 9px);
  vertical-align: baseline;
  margin-left: 8px;
  animation: none;
  opacity: 1;
  box-shadow: 0 0 6px rgba(249, 246, 238, 0.4);
}

@keyframes cursor-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-tagline {
  margin: 80px auto 0;
  max-width: 44ch;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: rgba(249, 246, 238, 0.86);
  text-wrap: balance;
}
.hero-tagline .hl {
  color: var(--cuivre-hi);
  font-weight: 400;
}

.hero-scroll {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(249, 246, 238, 0.5);
  padding-left: 0.4em;
}
.hero-scroll .line {
  display: inline-block;
  width: 48px; height: 1px;
  background: rgba(249, 246, 238, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--cuivre-hi), transparent);
  transform: translateX(-100%);
  animation: scroll-hint 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ==================================================================
   SECTIONS APPLE-LIKE
   ================================================================== */

.section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(24px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}

.section-ivoire { background: var(--ivoire); color: var(--anthracite); }
.section-ivoire-2 { background: var(--ivoire-2); color: var(--anthracite); }
.section-vert {
  background: linear-gradient(180deg, var(--vert-3) 0%, var(--vert-2) 50%, var(--vert-3) 100%);
  color: var(--ivoire);
  isolation: isolate;
}
.section-vert::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 80% at 50% 50%, rgba(212, 154, 118, 0.14), transparent 60%);
  pointer-events: none;
}

.section-inner {
  max-width: 1120px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding-left: 0.42em;
  color: var(--vert);
}
.section-vert .section-eyebrow { color: var(--cuivre); }

.section-title {
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(50px, 6.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: inherit;
  text-wrap: balance;
  margin: 0 auto 34px;
  max-width: 18ch;
}
.section-title .accent {
  color: var(--vert);
  font-weight: 300;
}
.section-vert .section-title .accent {
  color: var(--cuivre-hi);
  font-weight: 300;
}

.section-lede {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 auto;
  color: var(--gris);
  text-wrap: balance;
}
.section-vert .section-lede { color: rgba(249, 246, 238, 0.82); }

.section-cta {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ivoire);
  background: var(--vert);
  border-radius: 100px;
  transition: background 300ms var(--ease-apple),
              transform 180ms var(--ease-apple);
}
.section-cta:hover { background: var(--vert-2); }
.section-cta:active { transform: scale(0.97); }
.section-cta .arr {
  font-weight: 300; font-size: 16px;
  transition: transform 320ms var(--ease-apple);
}
.section-cta:hover .arr { transform: translateX(4px); }

.section-vert .section-cta {
  background: var(--cuivre-hi);
  color: var(--vert-3);
}
.section-vert .section-cta:hover { background: var(--cuivre-hi-2); }

.section-cta-ghost {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  color: var(--vert);
  padding: 12px 4px;
  position: relative;
}
.section-cta-ghost .arr { transition: transform 320ms var(--ease-apple); }
.section-cta-ghost:hover .arr { transform: translateX(4px); }

.anchor { scroll-margin-top: 80px; }

/* --- Prestations : deux blocs feature --- */
.prest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 80px;
  text-align: left;
}
.prest-card {
  background: var(--ivoire);
  border-radius: 28px;
  padding: 56px 48px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--filet);
  transition: transform 500ms var(--ease-apple),
              box-shadow 500ms var(--ease-apple);
}
.prest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(0, 96, 57, 0.18);
}
.prest-card .card-eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cuivre-lo);
  padding-left: 0.32em;
  margin-bottom: 20px;
}
.prest-card h3 {
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--vert);
  margin: 0 0 24px;
}
.prest-card .card-lede {
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gris);
  max-width: 40ch;
  margin: 0 0 40px;
}
.prest-card .card-items {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prest-card .card-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: baseline;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--anthracite);
}
.prest-card .card-item .idx {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cuivre-lo);
  padding-top: 2px;
}

/* --- Audit d'entrée : produit vedette centré --- */
.entry-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}
.entry-price {
  margin: 20px 0 40px;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(140px, 15vw, 220px);
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(160deg,
    #FFF5E5 0%,
    #FFE9D0 25%,
    #F3CFAE 45%,
    #E5B392 70%,
    #D49A76 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 40px rgba(255, 220, 180, 0.5));
}
.entry-price .euro {
  font-size: 0.42em;
  vertical-align: 0.85em;
  margin-left: 12px;
  font-weight: 200;
}
.entry-clause {
  display: block;
  max-width: 42ch;
  margin: 30px auto 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 246, 238, 0.6);
  line-height: 1.7;
}

/* --- Chiffres : grille de 4 --- */
.stat-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--filet);
  text-align: center;
}
.stat {
  padding: 48px 24px 12px;
  border-right: 1px solid var(--filet);
}
.stat:last-child { border-right: none; }
.stat .val {
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(56px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--vert);
  margin-bottom: 20px;
  display: block;
}
.stat .val .unit {
  font-weight: 300;
  font-size: 0.48em;
  color: var(--cuivre-lo);
  margin-left: 4px;
  letter-spacing: 0;
}
.stat .lbl {
  font-family: var(--font);
  font-weight: 400;
  font-size: 14.5px;
  color: var(--anthracite);
  line-height: 1.55;
  max-width: 24ch;
  display: block;
  margin: 0 auto;
}
.stat-source {
  display: block;
  margin-top: 48px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--vert-3);
  color: rgba(249, 246, 238, 0.72);
  padding: 100px 0 44px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 20% 30%, rgba(212, 154, 118, 0.08), transparent 60%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer .brand-block img.footer-mark {
  width: auto;
  height: 44px;
  margin-bottom: 26px;
}
.footer .brand-block p {
  max-width: 34ch;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(249, 246, 238, 0.82);
  margin: 0 0 24px;
}
.footer .brand-block small {
  font-family: var(--font);
  font-size: 12px;
  color: rgba(249, 246, 238, 0.55);
  line-height: 1.6;
  display: block;
  max-width: 42ch;
}
.footer h4 {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 8px 0 22px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; font-size: 14px; font-weight: 300; }
.footer a { transition: color 260ms var(--ease-apple); }
.footer a:hover { color: var(--ivoire); }

.footer-baseline {
  position: relative;
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 28px clamp(24px, 5vw, 72px) 0;
  border-top: 1px solid rgba(249, 246, 238, 0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 246, 238, 0.42);
}

/* ==================================================================
   RESPONSIVE
   Base = desktop >= 1024 px
   Tablet = 640 à 1023 px
   Mobile = < 640 px
   Small = < 360 px
   ================================================================== */

/* ---------- Tablette (640 à 1023 px) ---------- */
@media (max-width: 1023px) {
  .site-nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    height: 58px;
    gap: 20px;
  }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }

  .hero { padding-top: 58px; }
  .hero-center { padding: 28px clamp(20px, 4vw, 48px); }

  .section {
    min-height: auto;
    padding: 96px clamp(24px, 4vw, 56px);
  }

  .prest-grid { gap: 18px; }
  .prest-card { padding: 44px 36px; min-height: 480px; }

  .entry-audit-inner,
  .autodiag-inner { column-gap: 40px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat {
    padding: 40px 24px;
    border-right: 1px solid var(--filet);
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--filet); }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
  }
  .footer .brand-block { grid-column: 1 / -1; }
}

/* ---------- Écrans étroits (<= 820 px) : décodage sur deux lignes ---------- */
@media (max-width: 820px) {
  .hero-decode-line {
    white-space: normal;
    min-height: 2.6em;
    font-size: 20px;
  }
}

/* ---------- Mobile (< 640 px) ---------- */
@media (max-width: 639px) {
  body { font-size: 16px; }

  .site-nav-inner {
    grid-template-columns: auto auto;
    height: 56px;
    padding: 0 20px;
  }
  .nav-brand img { height: 20px; }

  .hero { padding-top: 56px; }
  .hero-center { padding: 24px 20px; }
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    margin-bottom: 34px;
    white-space: nowrap;
  }
  .hero-eyebrow::before,
  .hero-eyebrow::after { display: none; }

  .hero-stage {
    min-height: 0;
    gap: 26px;
    padding: 0;
  }
  .hero-logo-wrap { max-width: 88vw; }

  .hero-decode-line {
    font-size: 15px;
    letter-spacing: 0.18em;
  }
  .hero-typewriter-cursor {
    width: 9px;
    height: 17px;
    margin-left: 4px;
  }
  .hero-typewriter-cursor.is-settled {
    width: 5px;
    height: 5px;
    margin-left: 6px;
  }

  .hero-tagline {
    margin-top: 44px;
    font-size: 15px;
    line-height: 1.55;
    max-width: 34ch;
    padding: 0 8px;
  }

  .hero-scroll {
    padding: 28px 0 24px;
    font-size: 9.5px;
    letter-spacing: 0.32em;
  }
  .hero-scroll .line { width: 34px; }

  .section { padding: 72px 20px; }

  .section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.32em;
    margin-bottom: 28px;
    gap: 10px;
  }
  .section-eyebrow::before { width: 20px; }

  .section-title {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.05;
    margin-bottom: 22px;
    max-width: 15ch;
  }

  .section-lede {
    font-size: 16px;
    line-height: 1.55;
    max-width: 38ch;
  }

  .section-cta {
    margin-top: 40px;
    padding: 15px 26px;
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  .section-cta .arr { font-size: 15px; }

  .prest-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 56px;
  }
  .prest-card {
    padding: 34px 26px;
    min-height: auto;
    border-radius: 22px;
  }
  .prest-card .card-eyebrow { font-size: 10px; letter-spacing: 0.28em; }
  .prest-card h3 { font-size: 34px; margin-bottom: 18px; }
  .prest-card .card-lede { font-size: 15px; margin-bottom: 28px; }
  .prest-card .card-items { gap: 14px; }
  .prest-card .card-item {
    grid-template-columns: 22px 1fr;
    font-size: 14.5px;
  }

  /* Audit d'entrée */
  .entry-inner { padding: 0 6px; }
  .entry-price {
    font-size: clamp(84px, 24vw, 130px);
    margin: 14px 0 28px;
  }
  .entry-clause {
    font-size: 11px;
    letter-spacing: 0.1em;
    max-width: 32ch;
  }

  /* Auto-diagnostic */
  .autodiag-inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
    text-align: center;
  }
  .autodiag .diag-cta { justify-self: center; }

  /* Stats : grille 2 x 2 centrée */
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 48px;
    text-align: center;
    border-top: 1px solid var(--filet);
  }
  .stat,
  .stat:nth-child(2n),
  .stat:last-child {
    padding: 28px 10px;
    border-right: none;
    border-bottom: none;
  }
  .stat:nth-child(odd) { border-right: 1px solid var(--filet); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--filet); }
  .stat .val {
    font-size: clamp(38px, 11vw, 52px);
    margin-bottom: 12px;
  }
  .stat .lbl {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    max-width: 18ch;
    margin: 0 auto;
  }
  .stat-source {
    margin-top: 32px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-align: center;
    line-height: 1.7;
  }

  /* Footer */
  .footer { padding: 64px 0 28px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding: 0 24px;
  }
  .footer .brand-block { grid-column: 1 / -1; }
  .footer .brand-block img.footer-mark { height: 46px; margin-bottom: 20px; }
  .footer .brand-block p { font-size: 15.5px; max-width: none; margin: 0; }
  .footer-inner > div:last-child { grid-column: 1 / -1; }
  .footer h4 { margin: 0 0 14px; }
  .footer li { font-size: 15px; padding: 7px 0; }
  .footer-baseline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 24px 0;
    margin-top: 44px;
    font-size: 10.5px;
  }
}

/* ---------- Very small (< 360 px) ---------- */
@media (max-width: 359px) {
  .hero-decode-line {
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .hero-tagline {
    font-size: 14.5px;
    max-width: 30ch;
  }
  .section-title { font-size: 28px; }
  .section-lede { font-size: 15px; }
  .prest-card { padding: 26px 20px; }
  .prest-card h3 { font-size: 28px; }
  .entry-price { font-size: 78px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat,
  .stat:nth-child(odd) { border-right: none; }
  .stat:not(:last-child) { border-bottom: 1px solid var(--filet); }
  .stat .lbl { max-width: 26ch; }
}

/* ---------- Touch specific (pas de hover) ---------- */
@media (hover: none) {
  .prest-card:hover {
    transform: none;
    box-shadow: none;
  }
  .offer-item:hover { padding-left: 0; }
  .trac-title:hover { filter: initial; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
