/* ==========================================================================
   CNAM BS1 — PAGE D'ACCUEIL
   Même vocabulaire que le poste de saisie (encre, papier, vert CNAM) en plus
   éditorial : grands titres serrés, trame millimétrée, feuille BS1 en vitrine.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper:       #F6F5F1;
  --paper-2:     #EFEDE6;
  --surface:     #FFFFFF;
  --line:        #E4E2DB;
  --line-strong: #D2CFC5;

  --ink:   #131A16;
  --ink-2: #3B4540;
  --ink-3: #66706A;

  --brand:       #0B6E3D;
  --brand-hover: #095B32;
  --brand-deep:  #073F23;
  --brand-tint:  #E9F4ED;
  --brand-line:  #B9DBC6;
  --brand-glow:  rgba(22, 160, 93, 0.16);

  --form-green: #22A452;
  --form-tint:  #DDF1E3;
  --stamp:      #2E4FA3;

  --font-ui:    'Geist', 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'Geist Mono', 'JetBrains Mono', Consolas, monospace;
  --font-print: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --radius:    16px;
  --radius-lg: 24px;
  --shadow-card:  0 1px 2px rgba(19, 26, 22, 0.05), 0 8px 24px -12px rgba(19, 26, 22, 0.12);
  --shadow-lift:  0 1px 2px rgba(19, 26, 22, 0.06), 0 22px 44px -18px rgba(19, 26, 22, 0.26);
  --shadow-paper: 0 0 0 1px rgba(19, 26, 22, 0.06), 0 2px 4px rgba(19, 26, 22, 0.05), 0 30px 60px -22px rgba(7, 63, 35, 0.38);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 12px;
  font: 500 15px/1.2 var(--font-ui); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 2px rgba(7, 63, 35, 0.3), 0 10px 24px -10px rgba(11, 110, 61, 0.7);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 2px rgba(7, 63, 35, 0.3), 0 14px 30px -10px rgba(11, 110, 61, 0.8); }
.btn-primary .ico { width: 20px; height: 20px; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-ghost .ico { transition: transform .2s var(--ease); }
.btn-ghost:hover .ico { transform: translateX(3px); }

.btn-quiet { background: transparent; color: var(--ink-2); min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn-quiet:hover { color: var(--ink); background: rgba(19, 26, 22, 0.05); }

.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #F0F7F2; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.btn-stack small { font-size: 12px; font-weight: 400; opacity: .78; letter-spacing: 0; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(246, 245, 241, 0.9); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font: 500 11px/1.3 var(--font-mono); color: var(--ink-3); letter-spacing: 0.04em; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(19, 26, 22, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ==========================================================================
   HÉROS
   ========================================================================== */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; }

/* Trame millimétrée + halo vert, estompés vers les bords */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 110, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 110, 61, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(11, 110, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 110, 61, 0.035) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 760px; height: 760px; right: -160px; top: -220px; pointer-events: none;
  background: radial-gradient(circle, var(--brand-glow), transparent 62%);
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; margin-bottom: 28px;
  border: 1px solid var(--brand-line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px; font-weight: 500; color: var(--brand-deep);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #16A05D; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #16A05D; opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 72px); letter-spacing: -0.045em; line-height: 1.02; }
h1 em {
  font-style: normal; color: var(--brand); white-space: nowrap;
  background: linear-gradient(transparent 72%, rgba(22, 160, 93, 0.18) 72%, rgba(22, 160, 93, 0.18) 92%, transparent 92%);
}

.lead { margin-top: 24px; max-width: 34em; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.cta-meta + .cta-meta { margin-top: 4px; }
.os-note {
  margin-top: 12px; max-width: 30em; padding: 10px 14px;
  border-radius: 10px; background: var(--brand-tint); border: 1px solid var(--brand-line);
  font-size: 13.5px; color: var(--brand-deep);
}

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof .ico { width: 18px; height: 18px; color: var(--brand); }

/* --- Feuille BS1 en vitrine ------------------------------------------------ */
.hero-visual { position: relative; margin: 0; }
.sheet-stage { position: relative; padding: 26px 0 0 26px; max-width: 470px; margin-left: auto; }

/* Recto glissé sous le verso, pour la profondeur */
.sheet-stage::before {
  content: ""; position: absolute; left: 60px; right: -28px; top: 54px; bottom: -30px;
  background: #FBFBF8; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(19, 26, 22, 0.05), 0 20px 40px -24px rgba(7, 63, 35, 0.3);
  transform: rotate(4deg);
}

.sheet {
  position: relative; aspect-ratio: 210 / 297;
  background: #fff; border-radius: 3px;
  box-shadow: var(--shadow-paper);
}

.ruler { position: absolute; pointer-events: none; color: var(--ink-3); }
.ruler path { stroke: currentColor; stroke-width: .22; fill: none; opacity: .7; }
.ruler text { font: 500 2.1px var(--font-mono); fill: currentColor; }
.ruler-h { left: 26px; right: 0; top: 4px; width: calc(100% - 26px); height: auto; }
.ruler-v { left: 4px; top: 26px; height: calc(100% - 26px); width: auto; }

.bs1 { width: 100%; height: auto; border-radius: 3px; }
.bs1 .paper { fill: #fff; }
.bs1 .form text { font-family: 'Times New Roman', Times, serif; font-weight: 700; fill: var(--form-green); }
.bs1 .line, .bs1 .frame { fill: none; stroke: var(--form-green); stroke-width: .32; }
.bs1 .frame { stroke-width: .4; }
.bs1 .dots { fill: none; stroke: var(--form-green); stroke-width: .45; stroke-dasharray: .05 .9; stroke-linecap: round; }
.bs1 .band { fill: var(--form-green); }
.bs1 .form .band-text { font-family: Arial, 'Helvetica Neue', sans-serif; font-size: 3.4px; letter-spacing: .12px; fill: #fff; }
.bs1 .form .band-small { font-size: 1.95px; fill: #fff; }
.bs1 .form .lbl { font-size: 2.5px; }
.bs1 .form .note { font-size: 2.25px; }
.bs1 .side { fill: var(--form-tint); }
.bs1 .form .side-text { font-size: 2.25px; }
.bs1 .form .head { font-size: 1.95px; font-weight: 600; }
.bs1 .form .vignettes {
  font-family: 'Arial Narrow', Arial, sans-serif; font-weight: 400; font-size: 11.5px;
  fill: none; stroke: var(--form-green); stroke-width: .22; letter-spacing: -.4px;
}

.bs1 .ink {
  font-family: var(--font-print); font-weight: 500; font-size: 2.75px; fill: #10170F;
  animation: ink-in .5s var(--ease) both;
  animation-delay: calc(0.9s + var(--i) * 45ms);
}
.bs1 .stamp { opacity: 0; animation: stamp-in .45s cubic-bezier(.3, 1.6, .5, 1) 2.05s both; transform-box: fill-box; transform-origin: center; }
.bs1 .stamp ellipse { fill: none; stroke: var(--stamp); stroke-width: .32; }
.bs1 .stamp text { font: 600 1.45px var(--font-ui); fill: var(--stamp); letter-spacing: .05px; }
.bs1 .sign {
  fill: none; stroke: #1F3C8C; stroke-width: .34; stroke-linecap: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .9s ease-out 2.35s forwards;
}

/* L'impression ne démarre que lorsque la feuille est à l'écran (voir js/landing.js) */
.js .sheet:not(.play) *, .js .sheet:not(.play) .scan { animation-play-state: paused; }

/* Tête d'impression qui balaie la feuille */
.scan {
  position: absolute; left: -6px; right: -6px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #16A05D 18%, #16A05D 82%, transparent);
  box-shadow: 0 0 18px 4px rgba(22, 160, 93, 0.45);
  opacity: 0; pointer-events: none;
  animation: scan 2.6s cubic-bezier(.45, .05, .35, 1) .5s both;
}

/* Repères de calibrage */
.mark { position: absolute; pointer-events: none; opacity: 0; animation: fade-up .5s var(--ease) 2.5s both; }
.mark-name { left: 27.2%; top: 13.2%; }
.cross {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px;
  background:
    linear-gradient(#E0457B, #E0457B) center / 1px 100% no-repeat,
    linear-gradient(#E0457B, #E0457B) center / 100% 1px no-repeat;
}
.cross::after { content: ""; position: absolute; inset: 3px; border: 1px solid #E0457B; border-radius: 50%; }
.chip {
  position: absolute; left: 12px; bottom: 10px; white-space: nowrap;
  padding: 4px 9px; border-radius: 7px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: 0;
  box-shadow: 0 6px 16px -6px rgba(19, 26, 22, 0.5);
}

.toast {
  position: absolute; left: -34px; bottom: 15%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(19, 26, 22, 0.06), 0 18px 40px -14px rgba(19, 26, 22, 0.35);
  opacity: 0; animation: fade-up .6s var(--ease) 3s both;
}
.toast-ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff;
}
.toast-ico .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.toast-text { display: flex; flex-direction: column; line-height: 1.3; }
.toast-text strong { font-size: 14px; font-weight: 600; }
.toast-text span { font-size: 11.5px; color: var(--ink-3); }

.hero-visual figcaption {
  max-width: 440px; margin: 44px 0 0 auto; padding-left: 26px;
  font-size: 12.5px; color: var(--ink-3); text-align: center;
}

/* ==========================================================================
   BANDEAU CHIFFRES
   ========================================================================== */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; border-left: 1px solid var(--line); }
.strip-grid > div:first-child { border-left: 0; padding-left: 0; }
.strip strong { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--brand); }
.strip span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 120px 0; }
.section-paper { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
h2 { font-size: clamp(32px, 3.8vw, 48px); }
.section-lead { margin-top: 18px; font-size: 17.5px; color: var(--ink-2); text-wrap: pretty; }
.section-lead a { color: var(--brand); text-underline-offset: 3px; }

/* --- Fonctionnalités --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px 28px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.feature-ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}
.feature-ico .ico { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* --- Étapes --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; counter-reset: none; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--brand);
}
.step-num { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--brand); letter-spacing: .06em; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { font-size: 16px; color: var(--ink-2); max-width: 22em; }

/* --- Éditions --- */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.edition {
  display: flex; flex-direction: column;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--paper-2); border: 1px solid var(--line);
}
.edition-main {
  background: var(--surface); border-color: var(--brand-line);
  box-shadow: 0 0 0 4px var(--brand-tint), var(--shadow-lift);
}
.edition-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.edition-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; }
.edition-ico .ico { width: 24px; height: 24px; }
.edition-ico-soft { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge {
  padding: 5px 11px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-deep);
  font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand-line);
}
.edition h3 { font-size: 28px; }
.edition-lead { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.checks { list-style: none; margin: 28px 0 32px; display: grid; gap: 12px; flex: 1; align-content: start; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.checks .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--brand); stroke-width: 2.1; }
.btn-store { margin-top: 10px; }
.btn-store:hover .ico { transform: none; }
.edition-meta { margin-top: 14px; font-size: 12px; color: var(--ink-3); text-align: center; overflow-wrap: anywhere; }

/* --- Confidentialité --- */
.section-dark {
  position: relative; overflow: hidden;
  background: var(--brand-deep); color: #fff;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 30%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 20% 30%, #000, transparent 70%);
}
.section-dark::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; bottom: -380px; pointer-events: none;
  background: radial-gradient(circle, rgba(34, 164, 82, 0.35), transparent 65%);
}
.privacy { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.kicker-light { color: #8FD9AC; }
.privacy h2 { max-width: 14em; }
.privacy-copy p { margin-top: 22px; max-width: 32em; font-size: 17.5px; color: rgba(255, 255, 255, 0.78); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  color: #fff; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 3px;
  transition: border-color .2s, gap .2s var(--ease);
}
.text-link:hover { border-color: #fff; gap: 12px; }
.text-link .ico { width: 18px; height: 18px; }

.privacy-facts { list-style: none; display: grid; gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.privacy-facts li { display: flex; align-items: center; gap: 24px; padding: 26px 30px; background: rgba(7, 50, 28, 0.82); }
.privacy-facts strong { font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: #8FD9AC; min-width: 40px; }
.privacy-facts span { font-size: 16px; color: rgba(255, 255, 255, 0.82); }

/* --- FAQ --- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .ico { width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--brand); }
.faq details p { padding: 0 48px 26px 0; font-size: 16px; color: var(--ink-2); }

/* --- Appel final --- */
.final { padding: 0 0 120px; }
.final-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 32px; border-radius: 32px; color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(34, 164, 82, 0.55), transparent 70%),
    linear-gradient(160deg, #0D7A44, var(--brand-deep));
  box-shadow: 0 40px 80px -40px rgba(7, 63, 35, 0.7);
}
.final-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
}
.final-card > * { position: relative; }
.final-card img { margin: 0 auto 28px; border-radius: 16px; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45); }
.final-card h2 { max-width: 16em; margin: 0 auto; }
.final-card p { max-width: 34em; margin: 18px auto 0; font-size: 17.5px; color: rgba(255, 255, 255, 0.8); }
.cta-center { justify-content: center; }
.final-card .final-meta { margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }
.final-meta a { color: #fff; text-underline-offset: 3px; }

/* --- Pied de page --- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 7px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand strong { font-size: 15px; font-weight: 600; }
.footer-brand span { font-size: 13.5px; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-legal { padding-bottom: 36px; }
.footer-legal p { padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

.footer-links a, .footer-links button {
  font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.footer-links button:hover { color: var(--brand); }
button.text-link { background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 500; cursor: pointer; }

/* ==========================================================================
   FENÊTRE À PROPOS · MENTIONS LÉGALES · CONFIDENTIALITÉ
   ========================================================================== */
.about-dialog {
  width: min(720px, calc(100% - 32px)); max-height: min(780px, calc(100% - 48px));
  margin: auto; padding: 0; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(19, 26, 22, 0.08), 0 40px 80px -24px rgba(19, 26, 22, 0.45);
  overflow: hidden;
}
.about-dialog[open] { display: flex; flex-direction: column; animation: dialog-in .3s var(--ease); }
.about-dialog::backdrop {
  background: rgba(13, 22, 17, 0.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.about-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 28px 18px;
}
.about-dialog-head h2 { font-size: 24px; letter-spacing: -0.025em; }
.about-dialog-head p { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.about-close {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s;
}
.about-close:hover { border-color: var(--ink-3); color: var(--ink); }
.about-close .ico { width: 16px; height: 16px; stroke-width: 2.2; }

.about-tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; flex: none; }
.about-tabs button {
  position: relative; padding: 10px 12px 12px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font: 500 14px/1.2 var(--font-ui); color: var(--ink-3); white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.about-tabs button:hover { color: var(--ink); }
.about-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

.about-dialog-body { padding: 24px 28px 30px; overflow-y: auto; overscroll-behavior: contain; }
.prose h3 { margin: 22px 0 6px; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; }
.prose h3:first-child { margin-top: 0; }
.prose p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .about-highlight {
  margin-bottom: 18px; padding: 14px 16px; border-radius: 12px;
  background: var(--brand-tint); border: 1px solid var(--brand-line); color: var(--brand-deep);
}
.prose .about-updated { margin-top: 20px; font-size: 13px; color: var(--ink-3); }
.about-loading { color: var(--ink-3); }

@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   APPARITION & ANIMATIONS
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n + 2), .steps .reveal:nth-child(2), .editions .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n + 3), .steps .reveal:nth-child(3) { transition-delay: .16s; }

@keyframes ink-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.35); } to { opacity: .85; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scan {
  0%   { top: 0; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.6); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scan { display: none; }
}

/* ==========================================================================
   ÉCRANS MOYENS ET PETITS
   ========================================================================== */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { max-width: 680px; }
  .sheet-stage, .hero-visual figcaption { margin-left: auto; margin-right: auto; }
  .hero-visual figcaption { padding-left: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .privacy, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid .section-head { position: static; }
}

@media (max-width: 760px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div { padding: 22px 16px; }
  .strip-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps, .editions { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .section { padding: 88px 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 60px; gap: 12px; }
  .nav-webapp { display: none; }
  .hero { padding: 44px 0 72px; }
  .eyebrow { font-size: 12px; margin-bottom: 22px; }
  .lead { font-size: 17px; }
  .cta-row .btn-lg { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px; }
  .edition { padding: 28px 22px; }
  .sheet-stage { padding: 20px 0 0 20px; }
  .ruler-h { left: 20px; width: calc(100% - 20px); top: 2px; }
  .ruler-v { top: 20px; height: calc(100% - 20px); left: 2px; }
  .sheet-stage::before { left: 40px; right: -12px; }
  .toast { left: -8px; padding: 10px 14px 10px 10px; }
  .toast-text strong { font-size: 13px; }
  .privacy-facts li { padding: 22px; }
  .privacy-facts strong { font-size: 42px; }
  .faq summary { font-size: 16.5px; }
  .faq details p { padding-right: 0; }
  .final { padding-bottom: 72px; }
  .final-card { padding: 56px 20px; border-radius: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
