/* Rompiche, site vitrine. Palette reprise de l'app (src/theme.ts). */
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --nuit: #0E1747;
  --nuit-profonde: #08102F;
  --surface: #18245E;
  --surface-haute: #223074;
  --bord: #2E3D8A;
  --lavande: #8B7CF6;
  --lavande-fonce: #6A5AE0;
  --pervenche: #A9C1FF;
  --etoile: #FFD95A;
  --etoile-fonce: #E0B530;
  --creme: #FFF6E5;
  --rose: #F7A8B8;
  --menthe: #58D6A8;
  --corail: #FF7A7A;
  --texte: #F4F2FF;
  --texte-doux: #A7ADD6;
  --texte-pale: #6E76A8;
  --rayon: 22px;
  --rayon-xl: 30px;
  --largeur: 1160px;
  --gouttiere: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--nuit-profonde);
  background-image:
    radial-gradient(1200px 700px at 75% -10%, #22307499 0%, transparent 60%),
    linear-gradient(180deg, var(--nuit) 0%, var(--nuit-profonde) 55%, #050A22 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pervenche); text-underline-offset: 3px; }
a:hover { color: var(--texte); }
h1, h2, h3 { font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--etoile); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--etoile); color: var(--nuit); padding: 10px 16px; border-radius: 12px; font-weight: 900;
}
.evitement:focus { top: 12px; }

#ciel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.degrade {
  background: linear-gradient(100deg, var(--pervenche) 0%, var(--lavande) 45%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pervenche); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 900; margin-bottom: 14px;
}
.surtitre--rose { color: var(--rose); }
.chapo { color: var(--texte-doux); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 60ch; }
.note { color: var(--texte-pale); font-size: .9rem; text-align: center; margin-top: 28px; }

/* ---------- Boutons, style 3D de l'app ---------- */
.btn {
  --fond: var(--surface-haute); --ombre: var(--bord); --couleur: var(--texte);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem;
  color: var(--couleur); background: var(--fond); text-decoration: none;
  border: 0; border-radius: 16px; padding: 14px 24px; cursor: pointer;
  box-shadow: 0 5px 0 var(--ombre);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
}
.btn:hover { filter: brightness(1.08); color: var(--couleur); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ombre); }
.btn--jaune { --fond: var(--etoile); --ombre: var(--etoile-fonce); --couleur: var(--nuit); }
.btn--violet { --fond: var(--lavande); --ombre: var(--lavande-fonce); --couleur: #fff; }
.btn--contour { --fond: transparent; --ombre: var(--bord); box-shadow: inset 0 0 0 2px var(--bord), 0 5px 0 var(--bord); }
.btn--petit { padding: 10px 16px; font-size: .8rem; border-radius: 14px; box-shadow: 0 4px 0 var(--ombre); }

.boutons { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.boutons--centre { justify-content: center; }

.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 16px;
  background: #000; color: #fff; border: 1.5px solid #ffffff40;
  line-height: 1.15; font-weight: 800; font-size: 1.15rem; position: relative; cursor: default;
  user-select: none;
}
.badge-store svg { width: 28px; height: 28px; flex: none; }
.badge-store small { display: block; font-size: .72rem; font-weight: 700; opacity: .8; letter-spacing: .02em; }
.badge-store--fantome { background: #ffffff0d; border-color: var(--bord); color: var(--texte-doux); }
.badge-store--fantome svg { color: var(--pervenche); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px var(--gouttiere); transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.entete.est-defile { background: #0b1238cc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 #ffffff12; }
.entete__in { max-width: var(--largeur); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 900; font-size: 1.3rem; }
.marque img { border-radius: 10px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--texte-doux); text-decoration: none; font-weight: 800; font-size: .98rem; }
.nav a:hover { color: var(--texte); }
@media (max-width: 860px) { .nav { display: none; } .entete .btn { margin-left: auto; } }

/* ---------- Accroche ---------- */
.accroche {
  position: relative; min-height: min(100svh, 900px);
  max-width: var(--largeur); margin: 0 auto;
  padding: 120px var(--gouttiere) 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}
.accroche h1 { margin-bottom: 22px; }
.pastille-lune { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -4px -1px 0 0 var(--etoile); transform: rotate(-20deg); }
.puces-accroche { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--texte-doux); font-size: .95rem; }
.puces-accroche li { display: inline-flex; align-items: center; gap: 8px; }
.puces-accroche li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); box-shadow: 0 0 10px var(--menthe); }

.accroche__scene { position: relative; display: grid; place-items: center; min-height: 460px; }
.lune {
  position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #a9c1ff30 0%, #8b7cf61f 38%, transparent 70%);
  filter: blur(4px);
}
.lucie-hero { position: relative; margin: 0; display: grid; justify-items: center; }
.lucie-bouton { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; position: relative; z-index: 2; }
.lucie-bouton img { width: clamp(220px, 30vw, 380px); }
.lucie-bouton img, .lucie-bouton canvas { filter: drop-shadow(0 18px 30px #0008); }
.lucie-bouton:active { scale: .96; }
.nuage-socle {
  width: clamp(240px, 30vw, 340px); height: 54px; margin-top: -46px; border-radius: 50%;
  background: radial-gradient(closest-side, #a9c1ff59, transparent);
  filter: blur(6px); animation: respire 6s ease-in-out infinite;
}
.bulle {
  position: relative; background: var(--surface); border: 2px solid var(--bord);
  border-radius: 20px; padding: 14px 18px; font-weight: 800; color: var(--texte); line-height: 1.35;
  box-shadow: 0 10px 30px #0006;
}
.bulle--hero { max-width: 270px; margin-bottom: 4px; justify-self: end; transform: translateX(10%); z-index: 3; }
.bulle--hero::after {
  content: ""; position: absolute; left: 34%; bottom: -11px; width: 18px; height: 18px;
  background: var(--surface); border-right: 2px solid var(--bord); border-bottom: 2px solid var(--bord);
  transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.bulle.pop { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.compteur { position: absolute; bottom: 12px; margin: 0; color: var(--texte-pale); font-weight: 800; font-size: .9rem; min-height: 1.5em; }

.flotte { animation: flotte 6s ease-in-out infinite; }
.flotte--lente { animation-duration: 8s; }

.fleche-bas {
  position: absolute; left: 50%; bottom: 26px; width: 30px; height: 48px; margin-left: -15px;
  border: 2px solid var(--bord); border-radius: 20px;
}
.fleche-bas span { position: absolute; left: 50%; top: 10px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pervenche); animation: molette 2s ease-in-out infinite; }

@media (max-width: 860px) {
  .accroche { grid-template-columns: 1fr; padding-top: 100px; text-align: center; gap: 10px; }
  .accroche__texte { order: 2; }
  .accroche__scene { order: 1; min-height: 0; padding-top: 10px; }
  .chapo { margin-inline: auto; }
  .accroche .boutons, .puces-accroche { justify-content: center; }
  .bulle--hero { justify-self: center; transform: none; font-size: .95rem; }
  .fleche-bas { display: none; }
  .compteur { position: static; }
}

/* Nuages qui dérivent à cheval sur la fin de l'accroche : le masque les fond dans le ciel, sans bord net. */
.nuages {
  position: absolute; left: 50%; bottom: -170px; width: 100vw; height: 340px; margin-left: -50vw;
  pointer-events: none; overflow: hidden; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 46%, transparent 88%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 46%, transparent 88%);
}
.nuages__couche { position: absolute; left: 0; width: 3200px; background: url("../assets/img/nuages.svg") repeat-x 0 100% / 1600px 100%; }
.nuages__couche--loin { top: 30px; bottom: 0; opacity: .22; animation: derive 160s linear infinite; filter: blur(3px); }
.nuages__couche--pres { top: 120px; bottom: 0; opacity: .3; animation: derive 100s linear infinite reverse; filter: blur(1.5px); }
#test .carte-test { position: relative; z-index: 1; }

.beta { margin: 14px 0 0; color: var(--texte-pale); font-size: .92rem; font-weight: 700; }

/* Lucie animée : vidéo recomposée dans un canvas, à la place de l'image fixe */
.lucie-video { position: absolute; pointer-events: none; }
.cachee-par-video { opacity: 0; }

/* ---------- Sections ---------- */
.section { max-width: var(--largeur); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gouttiere); }
#test { padding-top: 0; }
.section--etroite { max-width: 980px; }
.section__tete { text-align: center; margin: 0 auto 50px; max-width: 760px; }
.section__tete .chapo { margin-inline: auto; }

.reveler { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveler.visible { opacity: 1; transform: none; }

/* ---------- Test de réalité ---------- */
.carte-test {
  display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center;
  background: linear-gradient(160deg, var(--surface) 0%, #121c4f 100%);
  border: 2px solid var(--bord); border-radius: var(--rayon-xl); padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 60px #0005;
}
.carte-test h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.carte-test p { color: var(--texte-doux); }
.carte-test__lucie img { width: 100%; max-width: 220px; margin: 0 auto; }
.horloge {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 10px; padding: 18px 22px; border-radius: 18px;
  background: var(--nuit-profonde); border: 2px solid var(--bord);
}
.horloge__heure { font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--etoile); transition: filter .4s, transform .4s; }
.horloge__legende { color: var(--texte-doux); font-weight: 800; }
.horloge.reve .horloge__heure { color: var(--rose); filter: blur(1.2px); animation: tremble .18s steps(2) infinite; }
@media (max-width: 700px) {
  .carte-test { grid-template-columns: 1fr; text-align: center; }
  .carte-test__lucie img { max-width: 150px; }
  .horloge { justify-content: center; }
  .carte-test .boutons { justify-content: center; }
}

/* ---------- Fonctions ---------- */
.grille-fonctions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fonction {
  position: relative; background: var(--surface); border: 2px solid var(--bord); border-radius: var(--rayon);
  padding: 26px 26px 22px; box-shadow: 0 6px 0 #0c1440;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.fonction:hover { transform: translateY(-6px); border-color: var(--lavande); }
.fonction img { width: 120px; height: 120px; margin: -8px 0 6px -10px; }
.fonction p { color: var(--texte-doux); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .grille-fonctions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grille-fonctions { grid-template-columns: 1fr; gap: 14px; }
  .fonction { display: grid; grid-template-columns: 84px 1fr; column-gap: 12px; padding: 18px; }
  .fonction img { width: 84px; height: 84px; margin: 0; }
  .fonction h3 { align-self: center; margin: 0; text-align: left; }
  .fonction p { grid-column: 1 / -1; margin-top: 8px; }
}

/* ---------- Journée ---------- */
.frise { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.frise::before {
  content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #FFB37A, var(--etoile), var(--rose), var(--lavande));
  opacity: .5;
}
.etape { position: relative; text-align: center; }
.etape__ciel {
  display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid var(--nuit-profonde); position: relative; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bord), 0 14px 30px #0006;
}
.etape__ciel::after { content: ""; position: absolute; border-radius: 50%; }
.etape--matin .etape__ciel { background: linear-gradient(180deg, #6A5AE0 0%, #F7A8B8 65%, #FFB37A 100%); }
.etape--matin .etape__ciel::after { width: 34px; height: 34px; background: #FFE29A; bottom: -12px; box-shadow: 0 0 24px #FFD95A; }
.etape--jour .etape__ciel { background: linear-gradient(180deg, #7FA8FF 0%, #A9C1FF 100%); }
.etape--jour .etape__ciel::after { width: 30px; height: 30px; background: var(--etoile); top: 18px; box-shadow: 0 0 26px var(--etoile); }
.etape--soir .etape__ciel { background: linear-gradient(180deg, #3A1450 0%, #8B4A8C 60%, #F7A8B8 100%); }
.etape--soir .etape__ciel::after { width: 28px; height: 28px; background: #FFB37A; bottom: 6px; box-shadow: 0 0 22px #FF7A7A; }
.etape--nuit .etape__ciel { background: radial-gradient(circle at 30% 30%, #223074, var(--nuit-profonde)); }
.etape--nuit .etape__ciel::after { width: 30px; height: 30px; background: transparent; box-shadow: inset -9px -2px 0 0 var(--etoile); transform: rotate(-20deg); }
.etape__moment { color: var(--etoile); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 6px; }
.etape h3 { font-size: 1.2rem; margin-bottom: 8px; }
.etape p:last-child { color: var(--texte-doux); font-size: .98rem; }
@media (max-width: 860px) {
  .frise { grid-template-columns: 1fr; gap: 26px; max-width: 520px; margin: 0 auto; }
  .frise::before { top: 40px; bottom: 40px; left: 46px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, #FFB37A, var(--etoile), var(--rose), var(--lavande)); }
  .etape { display: grid; grid-template-columns: 96px 1fr; gap: 18px; text-align: left; align-items: center; }
  .etape__ciel { margin: 0; }
}

/* ---------- Aperçus ---------- */
.apercus { max-width: none; padding-inline: 0; }
.apercus .section__tete { padding-inline: var(--gouttiere); }
.carrousel {
  display: flex; gap: clamp(18px, 3vw, 34px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px max(var(--gouttiere), calc((100vw - var(--largeur)) / 2 + var(--gouttiere))) 34px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carrousel::-webkit-scrollbar { display: none; }
.telephone { flex: none; width: clamp(220px, 23vw, 280px); margin: 0; scroll-snap-align: center; text-align: center; }
.telephone img {
  width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; border-radius: 34px;
  border: 7px solid #1d2552; outline: 2px solid #3a4890; outline-offset: -1px;
  box-shadow: 0 30px 60px #0008, 0 0 0 1px #000 inset;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.telephone:hover img { transform: translateY(-8px) rotate(-1deg); }
.telephone figcaption { margin-top: 16px; color: var(--texte-doux); font-weight: 800; }
.carrousel__nav { display: flex; justify-content: center; gap: 14px; }
.rond {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--texte); border: 2px solid var(--bord); box-shadow: 0 4px 0 var(--bord);
}
.rond svg { width: 22px; height: 22px; }
.rond:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bord); }

/* ---------- Chemin des leçons ---------- */
.chemin { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 14px 22px; }
.chemin li {
  display: flex; align-items: center; gap: 16px; font-weight: 900; font-size: 1.12rem;
  background: var(--surface); border: 2px solid var(--bord); border-radius: 20px; padding: 12px 18px 12px 12px;
  box-shadow: 0 5px 0 #0c1440;
}
.chemin li:nth-child(n+6) { transform: translateY(28px); }
.chemin span {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--nuit); font-size: 1.1rem; box-shadow: 0 4px 0 color-mix(in srgb, var(--c), #000 30%);
}
@media (max-width: 700px) {
  .chemin { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; max-width: 520px; }
  .chemin li:nth-child(n+6) { transform: none; }
  .chemin li:nth-child(odd) { margin-right: 10%; }
  .chemin li:nth-child(even) { margin-left: 10%; }
}

/* ---------- Science ---------- */
.vedette {
  display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center;
  background: radial-gradient(600px 300px at 0% 0%, #f7a8b81f, transparent 70%), var(--surface);
  border: 2px solid var(--bord); border-radius: var(--rayon-xl); padding: clamp(24px, 4vw, 44px); margin-bottom: 22px;
}
.vedette h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.vedette p { color: var(--texte-doux); }
.vedette .prudence { font-size: .95rem; border-left: 3px solid var(--rose); padding-left: 14px; }
.vedette__lucie img { width: 100%; max-width: 260px; margin: 0 auto; }
@media (max-width: 760px) { .vedette { grid-template-columns: 1fr; } .vedette__lucie img { max-width: 170px; } }

.grille-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.chiffre { background: var(--surface); border: 2px solid var(--bord); border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; }
.chiffre p { color: var(--texte-doux); font-size: .97rem; }
.chiffre__valeur { margin-bottom: 10px; }
.chiffre__valeur span { font-size: 2rem; font-weight: 900; color: var(--etoile); line-height: 1.1; }
.chiffre__valeur small { font-size: 1rem; color: var(--texte-doux); font-weight: 800; }
.lien-source { margin-top: auto; font-weight: 800; font-size: .9rem; }
@media (max-width: 960px) { .grille-chiffres { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille-chiffres { grid-template-columns: 1fr; } }

/* ---------- Sommeil ---------- */
.carte-sommeil {
  display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center;
  background: linear-gradient(160deg, #13245a, #0f1a4a); border: 2px solid var(--bord); border-radius: var(--rayon-xl);
  padding: clamp(24px, 4vw, 44px);
}
.carte-sommeil h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.liste-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--texte-doux); }
.liste-coches li { padding-left: 34px; position: relative; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--menthe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E1747' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.liste-coches strong { color: var(--texte); }
@media (max-width: 700px) { .carte-sommeil { grid-template-columns: 1fr; } .carte-sommeil img { max-width: 140px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 2px solid var(--bord); border-radius: 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--lavande); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 900; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--pervenche); border-bottom: 3px solid var(--pervenche); transform: rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--texte-doux); }

/* ---------- Fin ---------- */
.fin { text-align: center; padding: clamp(60px, 9vw, 110px) var(--gouttiere) clamp(80px, 10vw, 130px); }
.fin img { width: clamp(220px, 26vw, 300px); margin: 0 auto 10px; filter: drop-shadow(0 20px 40px #0009); }
.fin h2 { max-width: 760px; margin-inline: auto; }
.fin .chapo { margin-inline: auto; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid #ffffff14; padding: 40px var(--gouttiere) 50px; color: var(--texte-pale); font-size: .92rem; }
.pied__in { max-width: var(--largeur); margin: 0 auto; display: grid; gap: 14px; justify-items: center; text-align: center; }
.pied nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.pied nav a { color: var(--texte-doux); font-weight: 800; }
.pied p { margin: 0; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px var(--gouttiere) 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--texte-doux); }
.legal strong { color: var(--texte); }
.a-completer { background: #FFD95A26; color: var(--etoile); border-radius: 6px; padding: 0 6px; font-weight: 800; }

/* ---------- Animations ---------- */
@keyframes derive { from { transform: translateX(0); } to { transform: translateX(-1600px); } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes respire { 0%, 100% { opacity: .7; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(.92); } }
@keyframes pop { from { scale: .85; opacity: .4; } to { scale: 1; opacity: 1; } }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes tremble { 0% { transform: translate(0, 0); } 100% { transform: translate(1px, -1px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveler { opacity: 1; transform: none; }
}
