/* Kudos — site vitrine · DA 1 « Nuit de fête »
   Mise en page : sections pleine largeur alternant Prune / Nuit profonde, contenu dans une colonne de 1240 px,
   confettis (carrés arrondis à 25 %) comme seul motif. Thème sombre assumé (une seule apparence). */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  /* Bases */
  --prune: #2B1E3F;          /* Nuit de fête : fonds forts */
  --nuit: #17111F;           /* sections profondes */
  --carte: #241A33;          /* cartes posées sur la nuit */
  --ligne: #3A2E4D;
  --creme: #FFFBF3;          /* texte principal, la nappe */
  --brume: #D9CCEA;          /* texte secondaire sur Prune */
  --fumee: #BFB3CF;          /* texte tertiaire */
  --encre: #1A1423;
  --braise: #E85D42;         /* le point DSV : action festive, point final */
  --braise-texte: #FF8A70;
  /* Confettis : une couleur par famille de fêtes */
  --hibiscus: #FF4FA3; --hibiscus-texte: #FF8CC4;
  --soleil: #FFD23F;
  --palme: #1FB58F;  --palme-texte: #5FD9B4;
  --lagune: #3A86FF; --lagune-texte: #8DB8FF;
  --soiree: #8C52FF; --soiree-texte: #B794FF;
  /* Phases de la console */
  --ph-prep: #9D8CFF; --ph-jourj: #C5F04A; --ph-souv: #FFB547; --on-phase: #141A33;
  /* Type */
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Quicksand", "Arial Rounded MT Bold", system-ui, sans-serif;
  /* Rythme */
  --gutter: clamp(16px, 4.5vw, 56px);
  --section: clamp(80px, 11vw, 144px);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-hover: 150ms; --t-open: 250ms; --t-fete: 600ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--nuit); }
body { margin: 0; background: var(--nuit); color: var(--creme); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--braise-texte); text-underline-offset: 3px; }
a:hover { color: #FFB3A3; }
:focus-visible { outline: 3px solid var(--lagune); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--braise); color: var(--encre); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-md); background: var(--creme); color: var(--prune); font-weight: 700; transition: top var(--t-open) var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Typographie ---------- */
.eyebrow { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 13px; line-height: 18px; letter-spacing: .2em; text-transform: uppercase; color: var(--soleil); }
.eyebrow--braise { color: var(--braise-texte); }
.eyebrow--brume { color: var(--fumee); }
.display { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.01em; }
.lead { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.62; color: var(--brume); }
.muted { color: var(--fumee); }
.point { color: var(--braise); display: inline-block; }
.small { font-size: 14px; line-height: 1.5; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--r-lg); border: 2px solid transparent; font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--t-hover) var(--ease), background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover), box-shadow var(--t-open) var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--festif { background: var(--braise); color: var(--encre); box-shadow: 0 0 0 0 rgba(232,93,66,.0); }
.btn--festif:hover { color: var(--encre); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(232,93,66,.7); }
.btn--clair { background: var(--creme); color: var(--prune); }
.btn--clair:hover { color: var(--prune); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--creme); border-color: rgba(255,251,243,.6); }
.btn--ghost:hover { color: var(--creme); border-color: var(--creme); background: rgba(255,251,243,.06); }
.btn--link { min-height: 44px; padding: 0 6px; background: none; color: var(--creme); }
.btn--link:hover { color: var(--creme); }
.btn--link svg { transition: transform var(--t-open) var(--ease); }
.btn--link:hover svg { transform: translateX(4px); }
.btn--block { width: 100%; }

/* ---------- Barre de progression + navigation ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; padding-top: env(safe-area-inset-top, 0px); pointer-events: none; }
.progress span { display: block; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--braise) 0 16.6%, var(--soleil) 0 33.3%, var(--palme) 0 50%, var(--lagune) 0 66.6%, var(--soiree) 0 83.3%, var(--hibiscus) 0); }
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color var(--t-open) var(--ease), box-shadow var(--t-open) var(--ease), transform var(--t-open) var(--ease); }
.nav.is-scrolled { background: rgba(23,17,31,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ligne); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; transition: transform var(--t-fete) var(--ease); }
.nav__logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); margin: 0; padding: 0; list-style: none; }
.nav__links a { position: relative; color: var(--creme); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--braise); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-open) var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 1.5px solid var(--ligne); background: transparent; color: var(--creme); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { position: relative; display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color var(--t-open); }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-open) var(--ease); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 920px) {
  .nav__links { position: fixed; left: 0; right: 0; top: calc(76px + env(safe-area-inset-top, 0px)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--nuit); border-bottom: 1px solid var(--ligne); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity var(--t-open), transform var(--t-open) var(--ease), visibility var(--t-open); }
  .nav__links a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--ligne); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: var(--nuit); }
  .nav__burger { display: inline-flex; }
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- Révélations au défilement (visibles au repos, animées si JS) ---------- */
.reveal { transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
html:not(.calme) .reveal.is-pending { opacity: 0; transform: translateY(28px); }
html:not(.calme) .reveal--left.is-pending { transform: translateX(-36px); }
html:not(.calme) .reveal--zoom.is-pending { transform: scale(.94); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); overflow: hidden; }
.section--prune { background: var(--prune); }
.section--nuit { background: var(--nuit); }
.section--line { border-top: 1px solid var(--ligne); }
.section__head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { align-items: center; text-align: center; margin-inline: auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ambient { position: absolute; inset: 0; pointer-events: none; }
.ambient canvas { width: 100%; height: 100%; display: block; }

/* ---------- 1. Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--prune); padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(72px, 9vw, 128px); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .display .w { display: inline-block; white-space: nowrap; }
html:not(.calme) .hero .display .w { animation: word-up 900ms var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes word-up { from { opacity: 0; transform: translateY(.6em) rotate(4deg); } to { opacity: 1; transform: none; } }
.rotator { margin: 0; font-weight: 600; font-size: 16px; color: var(--fumee); }
.rotator__word { display: inline-block; min-width: 9.5ch; font-weight: 700; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.rotator__word.is-out { opacity: 0; transform: translateY(-8px); }
.families { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; font-weight: 600; color: var(--fumee); }
.families li { display: inline-flex; align-items: center; gap: 8px; }
.families i { display: block; width: 10px; height: 10px; border-radius: 2.5px; }

.demo { position: relative; min-height: 580px; }
.console { position: absolute; left: 0; top: 24px; width: min(300px, 57%); display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); }
html:not(.calme) .console { animation: lift-in 900ms var(--ease) 500ms both; }
@keyframes lift-in { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.phase { align-self: flex-start; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; line-height: 20px; color: var(--on-phase); }
.phase--prep { background: var(--ph-prep); } .phase--jourj { background: var(--ph-jourj); } .phase--souv { background: var(--ph-souv); }
.console__title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.console__meta { font-size: 14px; font-weight: 600; color: var(--fumee); }
.counter { display: flex; align-items: baseline; gap: 10px; }
.counter b { font-family: var(--display); font-weight: 700; font-size: 60px; line-height: 1; font-variant-numeric: tabular-nums; transition: color 300ms; }
.counter b.is-bump { animation: bump 600ms var(--ease); color: var(--palme-texte); }
@keyframes bump { 30% { transform: scale(1.12); } }
.counter span { font-weight: 700; font-size: 15px; color: var(--fumee); }
.rsvp { display: flex; flex-direction: column; gap: 10px; }
.rsvp__head { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.rsvp__bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--ligne); }
.rsvp__bar span { display: block; height: 100%; transition: width 900ms var(--ease); }
.rsvp__legend { display: flex; gap: 14px; font-size: 13px; font-weight: 700; color: var(--fumee); }
.guests { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guests li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.guests li > span:nth-child(2) { flex: 1; min-width: 0; }
.ava { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; color: var(--encre); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-md); font-size: 13px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.chip i { display: block; width: 9px; height: 9px; border-radius: 2.25px; }
.chip--ok { background: #12362E; color: var(--palme-texte); } .chip--ok i { background: var(--palme); }
.chip--wait { background: #3D3310; color: var(--soleil); } .chip--wait i { background: var(--soleil); }
.chip--inv { background: #1C2A4A; color: var(--lagune-texte); } .chip--inv i { background: var(--lagune); }
.chip--in { background: #2E2250; color: var(--soiree-texte); } .chip--in i { background: var(--soiree); }
.chip--no { background: #4A1822; color: #FF8FA0; } .chip--no i { background: #FF6B81; }
.nudge { position: absolute; left: 12px; top: 486px; width: min(284px, 54%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--creme); color: var(--encre); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
html:not(.calme) .nudge { animation: lift-in 800ms var(--ease) 1100ms both, bob 3.6s ease-in-out 2s infinite alternate; }
@keyframes bob { to { transform: translateY(-10px); } }
.nudge p { margin: 0; flex: 1; font-weight: 700; font-size: 14px; line-height: 1.35; }
.nudge button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--prune); color: var(--creme); font-family: var(--sans); font-weight: 700; font-size: 14px; cursor: pointer; transition: transform var(--t-hover); }
.nudge button:hover { transform: translateY(-1px); }
.nudge.is-done button { background: var(--palme); color: var(--encre); }
.phone { position: absolute; right: 0; top: 0; width: min(246px, 46%); height: 548px; border-radius: 44px; border: 9px solid #0F0B15; background: var(--creme); color: var(--prune); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px -20px rgba(0,0,0,.65); }
html:not(.calme) .phone { animation: phone-in 1000ms var(--ease) 300ms both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(3deg); } to { opacity: 1; transform: none; } }
.phone__band { position: relative; height: 150px; background: var(--hibiscus); overflow: hidden; flex-shrink: 0; }
.phone__band i { position: absolute; display: block; border-radius: 25%; }
html:not(.calme) .phone__band i { animation: bob 3s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.phone__body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 16px; }
.phone__kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #C21E73; }
.phone__names { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.phone__date { font-size: 13px; font-weight: 600; color: #6B6178; }
.phone__q { margin-top: 8px; font-family: var(--display); font-weight: 500; font-size: 19px; }
.phone__slot { position: relative; margin-top: 8px; min-height: 96px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.phone__hint { font-size: 12px; font-weight: 600; color: #6B6178; }
.phone__done { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone__done p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--prune); }
html:not(.calme) .phone__done p { animation: rise 450ms var(--ease) 500ms both; }
html:not(.calme) .phone__done .point { animation: pop var(--t-fete) var(--ease) 850ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.6); } 100% { transform: scale(1); } }
.linkish { border: 0; background: none; padding: 6px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: #B8432C; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 1020px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .demo { max-width: 600px; width: 100%; margin-inline: auto; } }
@media (max-width: 560px) {
  .demo { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .console, .nudge, .phone { position: relative; left: auto; right: auto; top: auto; width: 100%; }
  .phone { height: auto; max-width: 300px; align-self: center; order: -1; }
  .phone__body { padding-bottom: 28px; }
}

/* ---------- 2. Problème : chaos rangé ---------- */
.chaos { position: relative; min-height: 560px; --p: 0; }
.bubble { position: absolute; left: 0; width: min(380px, 100%); display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 20px; background: var(--carte); border: 1px solid var(--ligne); transform: translate(calc(var(--x) * (1 - var(--p))), calc(var(--y) * (1 - var(--p)))) rotate(calc(var(--r) * (1 - var(--p)))); top: calc(var(--top) + (var(--slot) - var(--top)) * var(--p)); transition: border-color 400ms, background-color 400ms; will-change: transform; }
.bubble > i { display: block; flex-shrink: 0; margin-top: 6px; width: 12px; height: 12px; border-radius: 3px; }
.bubble b { display: block; font-weight: 700; font-size: 16px; line-height: 1.35; }
.bubble span { display: block; font-size: 14px; line-height: 1.45; color: var(--fumee); }
.chaos.is-sorted .bubble { border-color: rgba(31,181,143,.45); }
.chaos__tick { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: #12362E; color: var(--palme-texte); font-weight: 700; font-size: 14px; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 20px)); }
.punch { margin: 8px 0 0; max-width: 22ch; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; color: var(--soleil); text-wrap: balance; }
@media (max-width: 920px) { .chaos { min-height: 0; display: flex; flex-direction: column; gap: 12px; } .bubble { position: relative; top: auto !important; width: 100%; transform: none; } .chaos__tick { position: relative; align-self: flex-start; opacity: 1; transform: none; } }

/* ---------- 3. Promesse : fil des phases ---------- */
.track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 56px; }
.track__line { position: absolute; left: 12px; right: 12px; top: 18px; height: 4px; border-radius: 4px; background: var(--ligne); }
.track__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--t, 0) * 100%); border-radius: 4px; background: linear-gradient(90deg, var(--ph-prep), var(--ph-jourj) 50%, var(--ph-souv)); }
.track__dot { position: absolute; top: -10px; left: calc(var(--t, 0) * 100%); width: 24px; height: 24px; margin-left: -12px; border-radius: 6px; background: var(--braise); box-shadow: 0 0 0 6px rgba(232,93,66,.18); transform: rotate(calc(var(--t, 0) * 180deg)); }
.stage { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); transition: border-color 500ms, transform 500ms var(--ease), opacity 500ms; opacity: .55; }
.stage.is-lit { opacity: 1; transform: translateY(-6px); border-color: var(--c); }
.stage ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--brume); }
.stage li { display: flex; gap: 10px; align-items: baseline; }
.stage li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--c); transform: translateY(-1px); }
@media (max-width: 820px) { .track { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 36px; } .track__line { left: 10px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; } .track__fill { width: 100%; height: calc(var(--t, 0) * 100%); background: linear-gradient(180deg, var(--ph-prep), var(--ph-jourj) 50%, var(--ph-souv)); } .track__dot { top: calc(var(--t, 0) * 100%); left: -10px; margin: -12px 0 0; } }

/* ---------- 4. Fonctionnalités ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 32px; border-radius: var(--r-lg); background: var(--carte); border: 1px solid var(--ligne); }
.tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--creme); font-family: var(--sans); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color var(--t-open), color var(--t-open); }
.tab[aria-selected="true"] { background: var(--creme); color: var(--prune); }
.tab:hover:not([aria-selected="true"]) { background: rgba(255,251,243,.07); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); transition: transform var(--t-open) var(--ease), border-color var(--t-open); }
.feature:hover { transform: translateY(-4px); border-color: var(--c, var(--ligne)); }
.feature[hidden] { display: none; }
html:not(.calme) .feature.is-entering { animation: card-in 600ms var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.feature__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pastille { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--bg); color: var(--c); transition: transform var(--t-fete) var(--ease); }
.feature:hover .pastille { transform: rotate(-12deg) scale(1.06); }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.tag--now { background: #12362E; color: var(--palme-texte); }
.tag--soon { background: rgba(255,251,243,.08); color: var(--fumee); }
.feature p { margin: 0; color: var(--brume); font-size: 15px; line-height: 1.55; }
.feature__phase { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--fumee); }

/* ---------- 5. Gains ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 2px solid var(--ligne); }
.stat b { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 8vw, 104px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--c); }
.stat > span { color: var(--brume); font-weight: 600; line-height: 1.5; }
.calc { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-2xl); background: var(--carte); border: 1px solid var(--ligne); }
@media (max-width: 820px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc__fields { display: flex; flex-direction: column; gap: 26px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.range output { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--soleil); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--braise) var(--fill, 50%), var(--ligne) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--ligne); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--braise); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -10px; width: 28px; height: 28px; border-radius: 7px; background: var(--creme); border: 0; box-shadow: 0 4px 12px rgba(0,0,0,.4); transition: transform var(--t-hover); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 7px; background: var(--creme); border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: rotate(20deg) scale(1.1); }
.calc__out { position: relative; display: flex; flex-direction: column; gap: 6px; }
.calc__out strong { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__note { margin: 24px 0 0; font-size: 14px; color: var(--fumee); }

/* ---------- 6. Collaboration ---------- */
.network { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-inline: auto; }
.network svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.network__core { position: absolute; left: 50%; top: 50%; width: 44%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); text-align: center; }
.network__core b { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 2vw, 19px); line-height: 1.2; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brume); text-align: center; }
.node i { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: var(--encre); font-style: normal; font-weight: 700; font-size: 15px; box-shadow: 0 0 0 6px rgba(255,251,243,.04); }
html:not(.calme) .node i { animation: node-pulse 3.2s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes node-pulse { 50% { box-shadow: 0 0 0 12px rgba(255,251,243,0); transform: scale(1.06); } }
.benefits { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.benefits li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.benefits li::before { content: ""; width: 14px; height: 14px; border-radius: 3.5px; background: var(--c); transform: translateY(2px); }
.benefits b { color: var(--creme); }
.benefits span { color: var(--brume); }

/* ---------- 7. Marque & thèmes ---------- */
.themer { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.inv { --deep: #6E1A43; --eclat: #F7A8C8; --fond: #FBF4EF; width: min(320px, 100%); border-radius: 36px; border: 9px solid #0F0B15; background: var(--fond); color: var(--deep); overflow: hidden; box-shadow: 0 30px 80px -24px rgba(0,0,0,.7); transition: background-color var(--t-open), color var(--t-open); }
.inv__band { position: relative; height: 128px; background: var(--deep); transition: background-color var(--t-open); overflow: hidden; }
.inv__band i { position: absolute; display: block; border-radius: 25%; background: var(--eclat); transition: background-color var(--t-open), transform 600ms var(--ease); }
.inv__band .is-braise { background: var(--braise); }
.inv__logo { position: absolute; left: 18px; bottom: 14px; padding: 6px 10px; border-radius: 10px; background: var(--fond); font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--deep); transition: background-color var(--t-open), color var(--t-open); }
.inv__body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 20px 24px; text-align: center; }
.inv__body small { font-size: 11px; font-weight: 700; letter-spacing: .2em; opacity: .8; }
.inv__body strong { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.inv__body span { font-size: 13px; font-weight: 600; opacity: .75; }
.inv__btn { margin-top: 10px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 14px; background: var(--braise); color: var(--encre); font-weight: 700; font-size: 15px; }
.inv__foot { padding: 10px; border-top: 1px solid rgba(0,0,0,.08); font-size: 11px; font-weight: 600; text-align: center; opacity: .6; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 10px; border-radius: var(--r-lg); border: 2px solid var(--ligne); background: var(--carte); color: var(--creme); font-family: var(--sans); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color var(--t-hover), transform var(--t-hover); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--creme); }
.swatch i { display: block; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }

/* ---------- 8. Rentabilité : devis ---------- */
.quote { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-2xl); background: var(--creme); color: var(--encre); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.quote__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px dashed #E4DACB; font-weight: 700; }
.quote__head span:last-child { color: #6B6178; font-weight: 600; font-size: 14px; }
.quote__rows { margin: 0; padding: 8px 0 0; list-style: none; }
.quote__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EDE6DA; font-weight: 600; }
.quote__rows li span:last-child { color: #6B6178; font-variant-numeric: tabular-nums; }
html:not(.calme) .quote__rows li.is-pending { opacity: 0; transform: translateX(-14px); }
.quote__rows li { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.quote__total { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--prune); }
.quote__drop { position: absolute; right: -6px; top: -14px; width: 26px; height: 26px; border-radius: 6.5px; background: var(--soleil); transform: rotate(18deg); }
html:not(.calme) .quote.is-done .quote__drop { animation: drop-in 700ms var(--ease) both; }
@keyframes drop-in { from { transform: translateY(-120px) rotate(-40deg); opacity: 0; } 70% { transform: translateY(6px) rotate(24deg); opacity: 1; } to { transform: rotate(18deg); } }
.quote__note { margin: 14px 0 0; font-size: 13px; color: #6B6178; }
.args { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; counter-reset: arg; }
.args li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.args li::before { counter-increment: arg; content: counter(arg); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--carte); border: 1px solid var(--ligne); font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--soleil); }
.args b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.args span { color: var(--brume); }

/* ---------- 9. Cotonou ---------- */
.local { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .local { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .local { grid-template-columns: minmax(0, 1fr); } }
.local li { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); transition: transform var(--t-open) var(--ease); }
.local li:hover { transform: translateY(-4px) rotate(-1deg); }
.local ul { margin: 0; padding: 0; display: contents; }
.local i { display: block; width: 18px; height: 18px; border-radius: 4.5px; background: var(--c); transform: rotate(var(--r, 0deg)); }
.local b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.local span { font-size: 15px; color: var(--brume); line-height: 1.55; }

/* ---------- 10. Étapes ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); }
.step__n { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 13px; border: 2px solid var(--ligne); font-family: var(--display); font-weight: 700; font-size: 22px; transition: background-color 300ms, border-color 300ms, color 300ms; }
.step.is-lit .step__n { background: var(--braise); border-color: var(--braise); color: var(--encre); }
.step p { margin: 0; color: var(--brume); }
.hopper { position: absolute; top: 40px; left: 54px; width: 16px; height: 16px; border-radius: 4px; background: var(--soleil); pointer-events: none; opacity: 0; }
.founder-note { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); background: rgba(255,210,63,.1); border: 1px solid rgba(255,210,63,.3); color: var(--creme); font-weight: 600; }

/* ---------- 11. Preuve ---------- */
.origin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .origin { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-xl); background: var(--carte); border: 1px solid var(--ligne); }
.facts b { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c); }
.facts span { font-size: 14px; font-weight: 600; color: var(--brume); }

/* ---------- 12. Tarifs ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.founders { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-2xl); background: var(--creme); color: var(--prune); transform: rotate(-1.5deg); transition: transform var(--t-fete) var(--ease), box-shadow var(--t-fete) var(--ease); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.founders:hover { transform: rotate(0deg) translateY(-4px); }
.founders .eyebrow { color: #B8432C; }
.founders .h2 { color: var(--prune); font-size: clamp(32px, 4vw, 48px); }
.founders p { margin: 0; color: #4A3F5C; }
.founders ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.founders li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; font-weight: 700; color: var(--encre); }
.founders li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 3.5px; background: var(--c); }
.founders__conf { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.founders__conf i { position: absolute; display: block; border-radius: 25%; }
html:not(.calme) .founders__conf i { animation: bob 2.8s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.founders__left { font-size: 14px; font-weight: 700; color: #6B6178; }
.plans { display: flex; flex-direction: column; gap: 20px; }
.plan { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-2xl); background: var(--carte); border: 1px solid var(--ligne); }
.plan__price { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1; }
.plan__price small { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--fumee); }
.plan p { margin: 0; color: var(--brume); }
.plan__opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.plan__opts li { padding: 6px 12px; border-radius: 10px; background: rgba(255,251,243,.07); font-size: 14px; font-weight: 700; }

/* ---------- 13. Confiance ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.trust li { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--ligne); }
.trust svg { color: var(--palme-texte); }
.trust b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.trust span { color: var(--brume); font-size: 15px; }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 21px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; background: var(--carte); border: 1px solid var(--ligne); transition: transform var(--t-open) var(--ease), background-color var(--t-open); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--creme); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--braise); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--encre); }
.faq details p { margin: 0 0 22px; max-width: 66ch; color: var(--brume); }
html:not(.calme) .faq details[open] p { animation: rise 350ms var(--ease) both; }

/* ---------- 15. Appel final ---------- */
.final { position: relative; overflow: hidden; background: var(--prune); padding-block: var(--section) clamp(72px, 8vw, 104px); }
.final__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .final__grid { grid-template-columns: minmax(0, 1fr); } }
.final__copy { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 110px; }
@media (max-width: 920px) { .final__copy { position: static; } }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-2xl); background: var(--carte); border: 1px solid var(--ligne); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { padding: 0; font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 600; color: var(--fumee); }
.field input[type="text"], .field input[type="tel"] { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid #8A7CA3; background: var(--nuit); color: var(--creme); font-family: var(--sans); font-weight: 600; font-size: 16px; transition: border-color var(--t-hover), box-shadow var(--t-hover); }
.field input:focus { outline: none; border-color: var(--creme); box-shadow: 0 0 0 3px var(--lagune); }
.field input::placeholder { color: #8A7CA3; }
.field.has-error input { border: 2px solid #FF6B81; }
.field__err { font-size: 13px; font-weight: 700; color: #FF8FA0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--ligne); background: var(--nuit); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color var(--t-hover), background-color var(--t-hover), transform var(--t-hover); }
.choice span i { display: block; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c, var(--fumee)); transition: transform var(--t-open) var(--ease); }
.choice input:checked + span { border-color: var(--c, var(--creme)); background: rgba(255,251,243,.06); }
.choice input:checked + span i { transform: rotate(45deg) scale(1.2); }
.choice input:focus-visible + span { outline: 3px solid var(--lagune); outline-offset: 2px; }
.choice span:hover { transform: translateY(-1px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin: 0; font-size: 13px; color: var(--fumee); }
.form__done { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-2xl); background: var(--carte); border: 1px solid var(--ligne); }
.form__done h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.form__done .point { transform: scale(0); }
.form__done.is-landed .point { animation: pop var(--t-fete) var(--ease) both; }
.form__done p { margin: 0; color: var(--brume); }

/* ---------- 16. Pied de page ---------- */
.footer { background: var(--nuit); border-top: 1px solid var(--ligne); padding-block: 56px 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fumee); }
.footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--creme); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--braise-texte); }
.footer__sig { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--fumee); }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--ligne); background: transparent; color: var(--creme); font-family: var(--sans); font-weight: 700; font-size: 14px; cursor: pointer; }
.motion-toggle i { position: relative; display: block; width: 38px; height: 22px; border-radius: 7px; background: var(--ligne); transition: background-color var(--t-hover); }
.motion-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 4px; background: var(--fumee); transition: transform var(--t-hover) var(--ease), background-color var(--t-hover); }
.motion-toggle[aria-pressed="true"] i { background: var(--creme); }
.motion-toggle[aria-pressed="true"] i::after { transform: translateX(16px); background: var(--braise); }
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px; border-radius: var(--r-lg); background: var(--creme); color: var(--prune); font-weight: 700; text-decoration: none; box-shadow: 0 14px 40px -10px rgba(0,0,0,.6); transition: transform var(--t-open) var(--ease), opacity var(--t-open); }
.wa-float:hover { color: var(--prune); transform: translateY(-3px); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0 14px; } }

/* ---------- Calque global des confettis ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* ---------- Pages légales ---------- */
.legal-hero { position: relative; overflow: hidden; background: var(--prune); padding-top: calc(132px + env(safe-area-inset-top, 0px)); padding-bottom: 64px; }
.legal { padding-block: 64px 112px; }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .legal__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
@media (max-width: 860px) { .toc { position: static; } }
.toc a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--brume); text-decoration: none; font-weight: 600; }
.toc a:hover { background: var(--carte); color: var(--creme); }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { margin: 48px 0 14px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-family: var(--display); font-weight: 600; font-size: 20px; }
.prose p, .prose li { color: var(--brume); line-height: 1.75; }
.prose ul { padding-left: 20px; }
.prose li::marker { color: var(--braise); }
.prose strong { color: var(--creme); }
.prose .table-wrap { overflow-x: auto; margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ligne); vertical-align: top; color: var(--brume); }
.prose th { color: var(--creme); font-weight: 700; }
.draft-note { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 40px; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.35); color: var(--creme); font-size: 15px; }
.draft-note i { flex-shrink: 0; display: block; width: 14px; height: 14px; margin-top: 5px; border-radius: 3.5px; background: var(--soleil); }
.ph { padding: 1px 6px; border-radius: 6px; background: rgba(255,210,63,.12); color: var(--soleil); font-weight: 700; white-space: nowrap; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; background: var(--prune); position: relative; overflow: hidden; padding-block: 120px; }
.lost__in { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ---------- Animations coupées uniquement par le bouton « Animations » (classe .calme) ---------- */
html.calme *, html.calme *::before, html.calme *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
