/* ============================================================
   ENCRIO — styles.css
   « Le Trait Plein » — un seul fichier, variables :root.
   ============================================================ */

:root {
  /* Neutres — le papier */
  --papier-000: #FAF9F6;
  --papier-100: #F1EFE9;
  --papier-200: #E4E1D6;
  --papier-300: #CFC9B8;
  --grisaille-600: #6B6A61;
  --encre-950: #161A21;

  /* Bleu encre — marque */
  --encre-700: #1F3A63;
  --encre-600: #2C4F82;
  --encre-100: #E4EBF5;

  /* Statuts — la jauge */
  --stock-plein: #2E7D5B;      --stock-plein-bg: #E4F0E9;
  --seuil-ambre: #B8752E;      --seuil-ambre-bg: #F6EBDC;
  --rupture: #A83E32;          --rupture-bg: #F5E4E1;

  /* Dégradés signature */
  --gradient-papier: linear-gradient(135deg, #FAF9F6 0%, #F1EFE9 55%, #E9EEF4 100%);
  --gradient-encre: linear-gradient(180deg, #FFFFFF 0%, #F1EFE9 100%);

  /* Typo */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Rayons */
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-full: 999px;

  /* Élévation */
  --shadow-sm: 0 1px 2px rgba(22,26,33,.05);
  --shadow-md: 0 6px 20px rgba(22,26,33,.08), 0 2px 6px rgba(22,26,33,.05);
  --shadow-lg: 0 14px 32px -14px rgba(22,26,33,.22);
  --ring-focus: 0 0 0 3px rgba(184,117,46,.35);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 120ms; --dur: 220ms; --dur-enter: 380ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(22px, 5vw, 64px);
  --pad-x: calc(var(--gutter) + env(safe-area-inset-left));
  --pad-r: calc(var(--gutter) + env(safe-area-inset-right));
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--encre-950);
  background: var(--papier-000);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` et non `hidden` : le tiroir de nav mobile est en position fixed à
     translateX(100%), donc il déborde de 330px à droite quand il est fermé.
     Avec `hidden`, ce débordement reste SCROLLABLE (scrollWidth 705 pour une
     fenêtre de 375) : le focus sur le bouton de fermeture, un swipe ou un
     script pouvaient faire glisser toute la page latéralement — d'où l'effet
     « la page derrière le menu défile / se recharge ». `clip` découpe sans
     créer de conteneur de défilement : plus aucun panoramique horizontal
     possible. L'axe vertical reste `visible`, donc la page scrolle toujours
     normalement et la propagation body -> viewport est conservée (c'est elle
     qui fait fonctionner le verrou .no-scroll ci-dessous). */
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--encre-700); text-decoration: none; }
a:hover { color: var(--encre-600); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--encre-950); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typo tokens ---------- */
.display  { font: 600 clamp(2.6rem, 4.8vw, 3.9rem)/1.06 var(--font-display); letter-spacing: -.015em; }
.h1       { font: 600 clamp(1.9rem, 3.2vw, 2.6rem)/1.12 var(--font-display); letter-spacing: -.01em; }
.h2       { font: 600 clamp(1.4rem, 2.2vw, 1.8rem)/1.18 var(--font-display); }
.lead     { font: 400 1.2rem/1.55 var(--font-body); color: var(--grisaille-600); }
.small    { font-size: .875rem; line-height: 1.55; }
.num-tabular{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .74rem/1.3 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--encre-600);
  margin: 0 0 16px;
}
.overline .trait { margin: 0; }
.stamp {
  font: 500 .8125rem/1.4 var(--font-mono); color: var(--grisaille-600);
  letter-spacing: .01em; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.stamp b { color: var(--stock-plein); }

/* ---------- Trait signature ---------- */
.trait { width: 44px; height: 2px; background: var(--encre-950); border: 0; flex: 0 0 auto; }
.trait--pointille { width: 44px; height: 0; border-top: 2px dashed var(--rupture); background: none; opacity: .7; }
hr.trait-section { border: 0; border-top: 2px solid var(--encre-950); opacity: .08; width: 100%; margin: 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-r); }
.section   { padding-block: clamp(60px, 8vw, 116px); }
.section--mist { background: var(--papier-100); }
.section__head { max-width: 60ch; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head .lead { margin-top: 14px; }

.grid-field {
  background-color: var(--papier-100);
  background-image: linear-gradient(rgba(22,26,33,.045) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(22,26,33,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Buttons ---------- */
.btn {
  font: 600 1rem var(--font-body); border-radius: var(--r-md);
  padding: 14px 24px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer; border: 0; text-decoration: none; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--encre-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--encre-600); color: #fff; transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 0; box-shadow: var(--ring-focus); }
.btn-ghost { background: #fff; color: var(--encre-950); border: 1.5px solid var(--papier-300); }
.btn-ghost:hover { border-color: var(--encre-950); background: var(--papier-100); }
.btn-lg { padding: 16px 30px; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--encre-950); }
.header__inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 14px var(--pad-r) 14px var(--pad-x);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--encre-950); }
.brand:hover { color: var(--encre-950); }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__name { font: 600 1.375rem/1 var(--font-display); letter-spacing: -.02em; color: var(--encre-700); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav__link { font: 500 .95rem var(--font-body); color: var(--grisaille-600); }
.nav__link:hover { color: var(--encre-950); }
.header__cta { margin-left: 8px; }
.nav__sep { width: 1px; height: 26px; background: var(--papier-300); }
.nav-toggle { display: none; }
.nav__head { display: none; }
.nav-close { display: none; }
.nav-backdrop { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--gradient-papier); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px);
  align-items: center; padding-block: clamp(52px, 8vw, 100px);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 44ch; }
.hero__cta { display: flex; gap: 12px; margin: 28px 0 22px; flex-wrap: wrap; }
.hero__proof { display: flex; gap: 10px; flex-wrap: wrap; }

/* Carte-preuve (jauges) du hero */
.proof-card {
  background: #fff; border: 1px solid var(--papier-300); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 440px; margin-inline: auto; width: 100%;
}
.proof-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--papier-200); background: var(--papier-100);
  font: 500 .8125rem var(--font-mono); color: var(--grisaille-600);
}
.proof-card__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.proof-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--papier-200); font: 500 .8125rem var(--font-mono); color: var(--grisaille-600);
}

/* Jauge de niveau — composant signature */
.jauge { position: relative; height: 10px; background: var(--papier-200); border-radius: 2px; overflow: hidden; }
.jauge__fill { height: 100%; background: var(--stock-plein); border-radius: 2px; transition: width .6s var(--ease); }
.jauge__fill.jauge__fill--seuil { background: var(--seuil-ambre); }
.jauge__fill.jauge__fill--rupture { background: var(--rupture); }
.jauge__seuil { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--encre-950); opacity: .45; }
.jauge__legende { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: .85rem; color: var(--grisaille-600); }
.jauge__legende b { color: var(--encre-950); font-size: .95rem; }

/* Badges de statut */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-sm); font: 600 .78rem var(--font-body); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.badge--ok { background: var(--stock-plein-bg); color: var(--stock-plein); }
.badge--ok .badge__dot { background: var(--stock-plein); }
.badge--seuil { background: var(--seuil-ambre-bg); color: var(--seuil-ambre); }
.badge--seuil .badge__dot { background: var(--seuil-ambre); }
.badge--rupture { background: var(--rupture-bg); color: var(--rupture); }
.badge--rupture .badge__dot { background: var(--rupture); }

/* ---------- Bande de réassurance ---------- */
.reassure { border-top: 1px solid var(--papier-300); border-bottom: 1px solid var(--papier-300); background: #fff; }
.reassure__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-block: 34px; text-align: center;
}
.stat__num { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1 var(--font-display); color: var(--encre-700); }
.stat__label { font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grisaille-600); margin-top: 8px; }

/* ---------- Problème ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain-card {
  background: #fff; border: 1px solid var(--papier-200); border-left: 3px solid var(--rupture);
  border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm);
}
.pain-card h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 500; }
.pain-card p { color: var(--grisaille-600); }
.pain-quote { font-style: italic; color: var(--encre-950); }

/* ---------- Solution ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--papier-200); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--encre-100);
  display: grid; place-items: center; color: var(--encre-700); margin-bottom: 16px;
}
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 500; }
.feature p { color: var(--grisaille-600); }
.feature em { font-style: normal; font-weight: 600; color: var(--encre-700); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; }
.step__num {
  width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--encre-950); color: var(--papier-000);
  font: 600 1.0625rem var(--font-mono); display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 500; }
.step p { color: var(--grisaille-600); font-size: .95rem; }

/* ---------- Objections ---------- */
.objections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.objection {
  background: #fff; border: 1px solid var(--papier-200); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.objection h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--encre-700); font-weight: 500; }
.objection p { color: var(--grisaille-600); }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--papier-200); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
}
.testimonial__quote { color: var(--encre-950); font-size: 1.03rem; line-height: 1.55; }
.testimonial__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: var(--r-full); flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font: 600 .95rem var(--font-body);
  background: var(--encre-700);
}
.avatar--amber { background: var(--seuil-ambre); }
.avatar--green { background: var(--stock-plein); }
.testimonial__name { font-weight: 600; color: var(--encre-950); font-size: .95rem; }
.testimonial__role { color: var(--grisaille-600); font-size: .8125rem; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--gradient-papier); text-align: center; }
.cta-final .lead { max-width: 52ch; margin: 16px auto 32px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--papier-200); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 500 1.0625rem var(--font-display); color: var(--encre-950);
}
.faq__q:hover { color: var(--encre-700); }
.faq__chev { flex: 0 0 auto; transition: transform var(--dur) var(--ease); color: var(--grisaille-600); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 0 22px; color: var(--grisaille-600); max-width: 68ch; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.reassure-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.reassure-item { display: flex; gap: 14px; align-items: flex-start; }
.reassure-item__ico {
  width: 38px; height: 38px; border-radius: var(--r-md); background: var(--stock-plein-bg); color: var(--stock-plein);
  display: grid; place-items: center; flex: 0 0 auto;
}
.reassure-item__ico svg { width: 20px; height: 20px; }
.reassure-item h3 { font-size: 1rem; margin-bottom: 3px; font-weight: 500; }
.reassure-item p { color: var(--grisaille-600); font-size: .9375rem; }

.form-card {
  background: #fff; border: 1px solid var(--papier-200); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 .875rem var(--font-body); color: var(--encre-950); margin-bottom: 7px; }
.field .req { color: var(--rupture); }
.input, .textarea, .select {
  width: 100%; font: 400 1rem var(--font-body); color: var(--encre-950);
  background: #fff; border: 1.5px solid var(--papier-300); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--encre-700); box-shadow: 0 0 0 3px var(--encre-100); }
.textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8125rem; color: var(--grisaille-600); margin-top: 4px; }
.form-success {
  display: none; background: var(--stock-plein-bg); border: 1px solid var(--stock-plein); color: var(--stock-plein);
  border-radius: var(--r-md); padding: 18px 20px; font-weight: 600; margin-bottom: 18px;
}
.form-success.is-visible { display: flex; gap: 10px; align-items: center; }

/* ---------- Bloc de rappel (pages contenu) ---------- */
.callout {
  background: var(--papier-100); border: 1px solid var(--papier-200); border-left: 3px solid var(--encre-700);
  border-radius: var(--r-md); padding: 24px 28px; box-shadow: var(--shadow-sm);
}

/* ---------- Prose (pages contenu) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 44px 0 14px; }
.prose h3 { margin: 30px 0 10px; font-size: 1.2rem; }
.prose p { color: var(--grisaille-600); margin-bottom: 16px; }
.prose ul.ticks { margin: 12px 0 20px; display: grid; gap: 10px; }
.prose ul.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--encre-950); }
.tick {
  flex: 0 0 22px; height: 22px; border-radius: 5px; background: var(--stock-plein-bg); color: var(--stock-plein);
  display: grid; place-items: center; margin-top: 2px;
}
.tick svg { width: 14px; height: 14px; }
.page-hero { background: var(--gradient-encre); border-bottom: 1px solid var(--papier-300); }
.page-hero .container { padding-block: clamp(46px, 7vw, 84px); text-align: center; }
.page-hero .lead { max-width: 60ch; margin: 16px auto 0; }

/* ---------- Imagerie (photos réelles + fallback CSS) ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--gradient-papier); border: 1px solid var(--papier-300);
  box-shadow: var(--shadow-md);
}
.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.94) contrast(1.05) brightness(.99);
  transition: transform var(--dur-enter) var(--ease);
}
.media--framed { box-shadow: var(--shadow-lg); }
.media--tint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(31,58,99,.12), rgba(46,125,91,.08));
  pointer-events: none;
}

/* Bande visuelle « showcase » (solution / offre) */
.showcase {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.showcase--reverse { grid-template-columns: .95fr 1.05fr; }
.showcase--reverse .showcase__media { order: -1; }
.showcase__media { aspect-ratio: 4/3; }
.showcase h2 { margin-bottom: 12px; }
.showcase p { color: var(--grisaille-600); }
.showcase .stamp { margin-top: 18px; }
@media (max-width: 860px) {
  .showcase, .showcase--reverse { grid-template-columns: 1fr; }
  .showcase--reverse .showcase__media { order: 0; }
}

/* Bande photo pleine largeur (page contenu) */
.strip-media { max-width: 760px; margin: 32px auto; aspect-ratio: 16/7; }
.strip-media figcaption {
  font: 500 .78rem var(--font-mono); color: var(--grisaille-600); text-align: center; margin-top: 10px;
}

/* ---------- Tableau de réassort (page reassort) ---------- */
.reassort-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--papier-200); border-radius: var(--r-lg); overflow: hidden; }
.reassort-table th, .reassort-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--papier-200); }
.reassort-table th { background: var(--papier-100); font: 600 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grisaille-600); }
.reassort-table td { font-size: .95rem; color: var(--encre-950); }
.reassort-table tr:last-child td { border-bottom: 0; }
.reassort-table .jauge { width: 120px; }
.reassort-table td.num { font-family: var(--font-mono); }

/* ---------- Pricing tiers ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: #fff; border: 1px solid var(--papier-200); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.price-card--mid { border-color: var(--encre-700); box-shadow: var(--shadow-md); position: relative; }
.price-card--mid::before { content: "Le plus choisi"; position: absolute; top: -12px; left: 24px; background: var(--encre-700); color: #fff; font: 600 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-sm); }
.price-card h3 { font-size: 1.15rem; font-weight: 500; }
.price-card__range { font: 600 2rem/1 var(--font-display); color: var(--encre-700); }
.price-card__range span { font: 500 .95rem var(--font-body); color: var(--grisaille-600); }
.price-card ul { display: grid; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--encre-950); }

/* ---------- Footer ---------- */
.footer { background: var(--encre-950); color: #cfd3da; padding-block: clamp(48px, 6vw, 72px); }
.footer a { color: #b7c0cd; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: #8d93a1; margin-top: 12px; max-width: 34ch; font-size: .9375rem; }
.footer__col h4 { font: 600 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #7d8492; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .9375rem; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8125rem; color: #7d8492;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-grid, .steps, .objections, .testimonials, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: clamp(36px, 8vw, 56px); }
  /* Pas de `order` ici : en mobile on garde l'ordre naturel du DOM — titre,
     accroche et CTA d'abord, carte illustration ensuite. Un `order: -1` sur
     .hero__media faisait remonter l'illustration au-dessus du texte, si bien
     que le visiteur voyait une carte de jauges avant de savoir ce qu'on vend. */
  .reassure__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px;
    background: #fff; border: 1.5px solid var(--papier-300); border-radius: var(--r-sm);
    cursor: pointer; color: var(--encre-950); flex: 0 0 auto;
  }

  .nav {
    /* .header porte un backdrop-filter : il devient donc le bloc conteneur des
       descendants position:fixed. Sans hauteur explicite, top/bottom se calent
       sur les 73px du header et le panneau est réduit à un bandeau. */
    position: fixed; top: 0; right: 0; bottom: 0;
    height: 100vh; height: 100dvh;
    width: min(88vw, 340px); margin-left: 0;
    background: #fff; z-index: 60;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--pad-r) calc(24px + env(safe-area-inset-bottom)) var(--gutter);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
    visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--papier-200);
  }
  .nav__title { font: 600 .75rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grisaille-600); }
  .nav-close {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    margin-right: -8px; background: none; border: 0; border-radius: var(--r-sm);
    color: var(--encre-950); cursor: pointer;
  }
  .nav-close:hover { background: var(--papier-100); }

  .nav__sep { display: none; }
  .nav__link {
    display: flex; align-items: center; min-height: 48px; padding: 4px 0;
    font-size: 1.0625rem; color: var(--encre-950); border-bottom: 1px solid var(--papier-200);
  }
  .header__cta {
    margin: 20px 0 0; justify-content: center; width: 100%;
    padding: 15px 24px; font-size: 1.0625rem;
  }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(22,26,33,.45); backdrop-filter: blur(1px);
    opacity: 0; transition: opacity var(--dur) var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; }
  /* Sans cette règle, le `display: block` ci-dessus l'emporte sur l'attribut
     [hidden] de l'UA : le backdrop reste un calque invisible en position fixed
     (z-index 55) qui intercepte tous les clics de la page en mobile. */
  .nav-backdrop[hidden] { display: none; }
}

@media (max-width: 560px) {
  .problem-grid, .feature-grid, .steps, .objections, .testimonials, .pricing-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  /* Pied de page : pas la grille desktop rétrécie. La marque prend toute la
     largeur, puis les trois listes (4, 2 et 3 entrées — assez courtes pour
     tenir dans ~150px) passent sur deux colonnes. Empilées, elles donnaient un
     pied de page de 937px à faire défiler pour neuf liens. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bar { flex-direction: column; gap: 8px; }

  .hero .lead { max-width: none; }
  /* « réapprovisionnées » mesure 370px pour 360px disponibles à 375px de large :
     sans césure le mot dépassait et se faisait rogner par le clip horizontal. */
  .hero .display { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
  .hero__cta { gap: 10px; margin: 24px 0 20px; }

  .cta-final .lead { margin-bottom: 26px; }

  .btn-lg { width: 100%; justify-content: center; }

  .reassure__grid { gap: 22px 16px; padding-block: 28px; }

  .btn { min-height: 48px; }
  /* Cible les liens de liste uniquement : le sélecteur `.footer a` précédent
     écrasait aussi le `inline-flex` de .brand (logo et nom désalignés en bas de
     page). Cible tactile portée à 44px (WCAG 2.5.8) au lieu des ~33px mesurés. */
  .footer__col li a { display: inline-flex; align-items: center; min-height: 44px; padding: 2px 0; }
  .footer__col ul { gap: 0; }
  .faq__q { padding: 20px 0; min-height: 56px; }

  .showcase .media--framed { display: none; }
  .strip-media { display: none; }
  .grid-field { background-image: none; }
  .reassort-table { display: block; overflow-x: auto; }

  .stamp { row-gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
