/* =========================================================
   Cédric Eblin : nutrition de précision & biohacking
   Design system + composants. Aucune dépendance externe.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* couleurs */
  --ink:        #091310;
  --ink-2:      #0E1F1A;
  --ink-3:      #15302A;
  --forest:     #11362F;
  --mint:       #4FD1A5;
  --mint-soft:  #B9EFDC;
  --amber:      #E8B04B;
  --amber-soft: #F7E3BC;
  --bone:       #FAF7F2;
  --bone-2:     #F1ECE3;
  --line:       #DED7CA;
  --text:       #16211D;
  --text-soft:  #5A6B65;
  --white:      #FFFFFF;

  /* typographie */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* échelle d'espacement (base 4) */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 140px;

  /* divers */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow:    0 2px 4px rgba(9,19,16,.04), 0 12px 32px rgba(9,19,16,.07);
  --shadow-lg: 0 4px 10px rgba(9,19,16,.06), 0 30px 70px rgba(9,19,16,.13);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p  { margin: 0 0 var(--s3); }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

/* ---------- 3. Utilitaires ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section { padding: var(--s8) 0; position: relative; }
.section--tight { padding: var(--s7) 0; }
.section--dark { background: var(--ink); color: var(--bone); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--bone2 { background: var(--bone-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: var(--s3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5;
}
.section--dark .eyebrow { color: var(--mint); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--text-soft); line-height: 1.6; }
.section--dark .lead { color: #BFCFC9; }
.accent { color: var(--mint); }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: .97rem; font-weight: 600; letter-spacing: -.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.btn--primary { background: var(--forest); color: var(--white); box-shadow: 0 10px 28px rgba(17,54,47,.26); }
.btn--primary:hover { background: #0C2A24; box-shadow: 0 16px 36px rgba(17,54,47,.32); }
.btn--mint { background: var(--mint); color: #06231B; box-shadow: 0 10px 28px rgba(79,209,165,.3); }
.btn--mint:hover { background: #41C295; }
.btn--ghost { border-color: rgba(250,247,242,.35); color: var(--bone); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--white); }
.btn--outline:hover { border-color: var(--forest); }
.btn--amber { background: var(--amber); color: #33230A; box-shadow: 0 10px 28px rgba(232,176,75,.3); }
.btn--amber:hover { background: #DBA23C; }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- 5. En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250,247,242,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand small { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .93rem; white-space: nowrap; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--forest); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: var(--s3); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); position: relative; }
.burger span { position: absolute; left: 12px; width: 18px; height: 1.6px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 6. Héros ---------- */
.hero {
  position: relative; color: var(--bone); background: var(--ink);
  padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 150%;
  background:
    radial-gradient(42% 50% at 18% 12%, rgba(79,209,165,.26), transparent 70%),
    radial-gradient(38% 45% at 88% 8%, rgba(232,176,75,.16), transparent 72%),
    radial-gradient(60% 60% at 60% 95%, rgba(17,54,47,.9), transparent 70%);
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 .serif-it { color: var(--mint-soft); }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #C6D6D0; max-width: 46ch; margin-top: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(250,247,242,.16); }
.hero__meta div { max-width: 190px; }
.hero__meta strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--white); }
.hero__meta span { font-size: .85rem; color: #9FB3AC; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  border: 1px solid rgba(79,209,165,.4); border-radius: 999px;
  background: rgba(79,209,165,.1); color: var(--mint-soft);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.badge-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(79,209,165,.22); }

/* carte de mesure du héros */
.probe {
  background: rgba(250,247,242,.055); border: 1px solid rgba(250,247,242,.14);
  border-radius: var(--radius-lg); padding: var(--s4); backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.probe__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.probe__head h2 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; color: var(--white); }
.probe__head span { font-size: .76rem; color: #93A8A1; letter-spacing: .08em; text-transform: uppercase; }
.probe__chart { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: rgba(9,19,16,.45); }
.probe__legend { display: flex; gap: var(--s4); margin-top: var(--s3); font-size: .82rem; color: #A8BCB5; }
.probe__legend b { color: var(--white); font-weight: 600; }
.probe__legend i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 7px; }
.probe__note { font-size: .74rem; color: #7E948D; margin: var(--s3) 0 0; }

/* ---------- 7. Bandeau de mots-clés ---------- */
.strip { background: var(--forest); color: var(--mint-soft); padding: 15px 0; overflow: hidden; }
.strip__track { display: flex; gap: var(--s5); white-space: nowrap; animation: slide 38s linear infinite; }
.strip__track span { font-size: .84rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; opacity: .85; }
.strip__track span::after { content: "·"; margin-left: var(--s5); opacity: .5; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Grilles & cartes ---------- */
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5) var(--s4); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFC6B5; }
.card__num {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--forest);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: var(--s3); background: var(--bone);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-soft); font-size: .97rem; margin: 0; }
.card--dark { background: rgba(250,247,242,.05); border-color: rgba(250,247,242,.14); color: #C6D6D0; }
.card--dark:hover { border-color: rgba(79,209,165,.5); }
.card--dark p { color: #AFC3BC; }
.card--dark .card__num { background: rgba(79,209,165,.12); border-color: rgba(79,209,165,.35); color: var(--mint); }
.card--amber { background: #FFFDF8; border-color: var(--amber-soft); }
.card--amber .card__num { background: var(--amber-soft); border-color: #EBCF95; color: #8A6316; }

.feature { display: flex; gap: var(--s3); align-items: flex-start; }
.feature__icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--mint-soft); color: #0B3C2E;
}
.section--dark .feature__icon { background: rgba(79,209,165,.16); color: var(--mint); }
.feature h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.feature p { font-size: .94rem; color: var(--text-soft); margin: 0; }
.section--dark .feature p { color: #A8BCB5; }

/* liste à coches */
.checks li { position: relative; padding-left: 30px; margin-bottom: 11px; font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.checks--amber li::before { border-color: var(--amber); }

/* ---------- 9. Image / visuel ---------- */
.visual {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--ink-2), var(--forest) 60%, #0A2C24);
  box-shadow: var(--shadow-lg); padding: var(--s5);
}
.visual--light { background: var(--white); border: 1px solid var(--line); }
.quote-mark { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--mint); opacity: .5; }

/* ---------- 10. Pôle diabète ---------- */
.pole {
  background: linear-gradient(170deg, #FFFCF4, #FDF6E7 70%, #FBF1DB);
  border-top: 1px solid var(--amber-soft); border-bottom: 1px solid var(--amber-soft);
}
.pole .eyebrow { color: #96701C; }
.notice {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--white); border: 1px solid var(--amber-soft); border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm); padding: var(--s4); font-size: .93rem; color: var(--text-soft);
}
.notice strong { color: var(--text); }

/* ---------- 11. Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: start; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4) var(--s4); display: flex; flex-direction: column; height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan--featured {
  background: var(--ink); border-color: var(--ink); color: #C6D6D0;
  box-shadow: var(--shadow-lg); position: relative; padding-top: var(--s6);
}
.plan--featured h3 { color: var(--white); }
.plan--featured .plan__price { color: var(--white); }
.plan--featured .checks li::before { border-color: var(--mint); }
.plan--featured .plan__sub, .plan--featured .plan__foot { color: #9FB3AC; }
.plan__tag {
  position: absolute; top: var(--s3); left: 50%; transform: translateX(-50%);
  background: var(--mint); color: #06231B; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.plan--amber { border-color: var(--amber-soft); background: #FFFDF8; }
.plan__kicker { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.plan--featured .plan__kicker { color: var(--mint); }
.plan--amber .plan__kicker { color: #96701C; }
.plan h3 { margin: var(--s2) 0 var(--s3); }
.plan__price { font-family: var(--serif); font-size: 2.7rem; font-weight: 600; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.plan__price span { font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--text-soft); }
.plan--featured .plan__price span { color: #9FB3AC; }
.plan__sub { font-size: .87rem; color: var(--text-soft); margin: var(--s2) 0 var(--s4); }
.plan ul { margin-bottom: var(--s4); }
.plan .btn { margin-top: auto; }
.plan__foot { font-size: .8rem; color: var(--text-soft); margin: var(--s3) 0 0; text-align: center; }

.price-note {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4);
  margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line);
}
.price-note h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
.price-note p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* ---------- 12. FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: var(--s4) 0;
}
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; font-family: var(--sans); font-size: 1.4rem; font-weight: 400;
  line-height: 1; color: var(--text-soft); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-top: var(--s3); color: var(--text-soft); font-size: .98rem; max-width: 68ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- 13. CTA final ---------- */
.cta-band { background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: -60% -5%; 
  background: radial-gradient(38% 42% at 28% 62%, rgba(79,209,165,.20), transparent 72%),
              radial-gradient(34% 38% at 80% 66%, rgba(232,176,75,.13), transparent 72%);
}
.cta-band .wrap { position: relative; }

/* ---------- 14. Formulaire ---------- */
.form { display: grid; gap: var(--s4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(79,209,165,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { font-size: .8rem; color: var(--text-soft); }
.form__consent { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--text-soft); }
.form__consent input { margin-top: 3px; }
.form__status { font-size: .9rem; padding: var(--s3); border-radius: var(--radius-sm); display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #EAF8F2; border: 1px solid var(--mint); color: #0B3C2E; }

.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4); box-shadow: var(--shadow);
}
.contact-list li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--bone-2); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 3px; font-weight: 600; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--forest); text-decoration: underline; }
.map-ph {
  margin-top: var(--s4); border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--bone-2);
}

/* ---------- 15. Pied de page ---------- */
.footer { background: var(--ink); color: #9FB3AC; padding: var(--s7) 0 var(--s5); font-size: .93rem; }
.footer a:hover { color: var(--mint); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s5); }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 0 0 var(--s3); }
.footer li { margin-bottom: 9px; }
.footer .brand { color: var(--white); }
.footer .brand small { color: #7E948D; }
.footer__bottom {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(250,247,242,.12);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); justify-content: space-between; font-size: .85rem;
}
.footer__legal { max-width: 60ch; color: #7E948D; font-size: .84rem; margin-top: var(--s3); }

/* ---------- 16. Fil d'Ariane + en-tête de page ---------- */
.page-head { background: var(--ink); color: var(--bone); padding: clamp(60px,8vw,110px) 0 clamp(50px,6vw,80px); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 160%;
  background: radial-gradient(40% 55% at 15% 20%, rgba(79,209,165,.2), transparent 70%),
              radial-gradient(35% 45% at 85% 0%, rgba(232,176,75,.13), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-head p { color: #C6D6D0; max-width: 60ch; margin-top: var(--s4); font-size: clamp(1.02rem,1.3vw,1.18rem); }
.crumbs { font-size: .85rem; color: #8FA59E; margin-bottom: var(--s4); }
.crumbs a:hover { color: var(--mint); }
.crumbs span { opacity: .5; margin: 0 8px; }

/* ---------- 17. Révélation au défilement ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .split, .split--wide-left { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan--featured { padding-top: var(--s6); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
  .price-note { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bone); border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--s4) var(--s4); transform: translateY(-120%);
    transition: transform .4s var(--ease); box-shadow: var(--shadow);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--bone-2); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__cta .btn { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .section { padding: var(--s7) 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--s3) var(--s4); }
  .hero__meta div { max-width: none; flex: 1 1 140px; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .wrap { padding: 0 20px; }
}

/* ---------- 19. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Tableau comparatif ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.tbl th, .tbl td { padding: 15px var(--s3); text-align: left; border-bottom: 1px solid var(--bone-2); }
.tbl thead th { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); background: var(--bone); }
.tbl tbody th { font-weight: 600; color: var(--text); width: 36%; }
.tbl td { color: var(--text-soft); }
.tbl .is-featured { background: #F3FBF7; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl .yes { color: #0E7A5A; font-weight: 600; }
.tbl .no { color: #9AA6A2; }

/* ---------- 21. Correctifs de rythme vertical ---------- */
h2 + p, h2 + .lead, h3 + p, h1 + p { margin-top: var(--s3); }
.page-head h1 + p { margin-top: var(--s4); }
.cta-band .lead, .cta-band p { color: #BFCFC9; }
.strip__track { padding-left: var(--s4); }
.steps-num { list-style: none; padding: 0; }
@media (max-width: 560px) {
  .badge-pill { font-size: .74rem; padding: 6px 14px 6px 10px; }
}


/* ---------- 22. Tunnel : le parcours en etapes ---------- */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); position: relative; }
.funnel::before {
  content: ""; position: absolute; top: 21px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, var(--line), var(--line)); z-index: 0;
}
.section--dark .funnel::before { background: rgba(250,247,242,.18); }
.step { position: relative; z-index: 1; }
.step__dot {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); color: var(--forest);
  margin-bottom: var(--s3);
}
.section--dark .step__dot { background: var(--ink); border-color: rgba(79,209,165,.4); color: var(--mint); }
.step--key .step__dot { background: var(--mint); border-color: var(--mint); color: #06231B; }
.step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 5px; }
.step p { font-size: .92rem; color: var(--text-soft); margin: 0; }
.section--dark .step p { color: #A8BCB5; }
.step__tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mint); margin-top: 8px; }

/* ---------- 23. Formulaire en 3 etapes ---------- */
.fstep[hidden] { display: none; }
.fprog { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.fprog__bar { flex: 1; height: 4px; border-radius: 99px; background: var(--bone-2); overflow: hidden; }
.fprog__fill { display: block; height: 100%; width: 33.33%; background: var(--mint); transition: width .4s var(--ease); }
.fprog__txt { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap; }
.fnav { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.fnav .btn { width: auto; }
.fdone { display: none; }
.fdone.is-visible { display: block; }
.fdone__card {
  background: var(--white); border: 1px solid var(--mint); border-radius: var(--radius);
  padding: var(--s5) var(--s4); box-shadow: var(--shadow);
}
.fdone__card h3 { margin-bottom: var(--s3); }
.radio-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.radio-row label {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .92rem;
  cursor: pointer; background: var(--white); transition: border-color .2s var(--ease), background .2s var(--ease);
}
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-row label:has(input:checked) { border-color: var(--forest); background: var(--bone-2); font-weight: 600; }
.radio-row label:hover { border-color: var(--forest); }

/* ---------- 24. Encart offre (ancrage de prix) ---------- */
.offer {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s4) var(--s5); box-shadow: var(--shadow);
}
.offer__price { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--text); line-height: 1; }
.offer__price small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-top: 7px; }
.offer p { margin: 0; font-size: .96rem; color: var(--text-soft); }
.offer strong { color: var(--text); }
.section--dark .offer { background: rgba(250,247,242,.05); border-color: rgba(250,247,242,.14); }
.section--dark .offer__price { color: var(--white); }
.section--dark .offer p { color: #AFC3BC; }

@media (max-width: 1024px) {
  .funnel { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
  .funnel::before { display: none; }
  .offer { grid-template-columns: 1fr; text-align: left; gap: var(--s3); }
  .offer .btn { width: 100%; }
}
@media (max-width: 560px) {
  .funnel { grid-template-columns: 1fr; }
}

/* ---------- 25. Correctifs ---------- */
[hidden] { display: none !important; }
.contact-card .funnel::before { display: none; }

.offer--stack { grid-template-columns: 1fr; text-align: left; }
.offer--stack .btn { width: 100%; }

.section--dark .offer strong, .section--dark .offer p strong { color: var(--white); }
