/* Capenia : identité visuelle.
   Deux voix, une couleur chacune : bleu pour le parent, jaune pour l'ado. Là où elles se recoupent, le vert.
   Le motif des deux cercles porte une information : plus ils se recouvrent, plus les regards s'accordent. */

@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --encre: #12112E;
  --bleu: #4338F0;
  --bleu-pale: #E9E7FF;
  --jaune: #FFC940;
  --jaune-pale: #FFF3CF;
  --vert: #12A27C;
  --vert-pale: #DBF5EC;
  --rose: #EE4F7B;
  --fond: #F6F5FB;
  --blanc: #FFFFFF;
  --gris: #62617F;
  --trait: #DDDBEC;
  --titre: "Bricolage", "Figtree", system-ui, sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 18px;
  --voix: var(--bleu);
  --voix-pale: var(--bleu-pale);
  --sur-voix: #fff;
  --large: 68rem;
  --etroit: 40rem;
}
.voix-ado { --voix: var(--jaune); --voix-pale: var(--jaune-pale); --sur-voix: var(--encre); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.voix-ado :focus-visible { outline-color: var(--encre); }
.discret { color: var(--gris); font-size: .95rem; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.page { max-width: var(--large); margin: 0 auto; padding: 0 1.25rem; }
.etroit { max-width: var(--etroit); }
.bloc { padding: clamp(3rem, 8vw, 6rem) 0; }
.bloc > h2 { margin-bottom: 1.5rem; }
.pile > * + * { margin-top: 1.25rem; }

/* ---------- en-tête, pied */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.logo { font: 750 1.45rem/1 var(--titre); letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.logo svg { height: 1.35rem; width: auto; }
.entete nav { display: flex; gap: 1.25rem; align-items: center; font-weight: 550; font-size: .98rem; }
.entete nav a { text-decoration: none; white-space: nowrap; }
@media (max-width: 30rem) { .entete nav { gap: .9rem; font-size: .9rem; } }
.entete nav a:hover { text-decoration: underline; }
.pied { border-top: 1.5px solid var(--trait); margin-top: 4rem; padding: 2rem 0 3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .95rem; color: var(--gris); }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* ---------- boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.4rem; padding: .8rem 1.6rem; border: 0; border-radius: 999px; background: var(--encre); color: #fff; font: 650 1.08rem/1.2 var(--texte); text-decoration: none; transition: transform .12s ease; }
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton--voix { background: var(--voix); color: var(--sur-voix); }
.bouton--clair { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton--petit { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .98rem; }
.bouton[disabled] { opacity: .35; pointer-events: none; }
.lien-bouton { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- le motif : deux cercles */
.duo { display: inline-block; height: 1.5rem; width: auto; vertical-align: middle; flex: none; }
.duo .b { fill: var(--bleu); } .duo .j { fill: var(--jaune); } .duo .v { fill: var(--vert); }

/* ---------- accueil */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--bleu); }
.hero .chapo { font-size: 1.22rem; line-height: 1.5; max-width: 34rem; margin: 1.5rem 0 2rem; }
.hero .rassure { margin-top: .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero-figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-figure text { font-family: var(--titre); font-weight: 650; }
.hero-figure .cb { fill: var(--bleu); animation: vient-gauche 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-figure .cj { fill: var(--jaune); animation: vient-droite 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-figure .cv { fill: var(--vert); animation: apparait .6s 1.1s both; }
.hero-figure .et { animation: apparait .6s 1.3s both; }
@keyframes vient-gauche { from { transform: translateX(-70px); } }
@keyframes vient-droite { from { transform: translateX(70px); } }
@keyframes apparait { from { opacity: 0; } }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.15fr .85fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.moments { display: grid; gap: 1rem; counter-reset: moment; }
.moment { background: var(--blanc); border-radius: var(--rayon); padding: 1.6rem; counter-increment: moment; position: relative; }
.moment::before { content: counter(moment); font: 750 3.2rem/1 var(--titre); color: var(--trait); display: block; margin-bottom: .6rem; }
.moment h3 { margin-bottom: .5rem; }
.moment .tarif { display: inline-block; margin-top: .9rem; font-weight: 650; padding: .2rem .7rem; border-radius: 999px; background: var(--vert-pale); color: #0b5a3f; font-size: .92rem; }
.moment .tarif--payant { background: var(--bleu-pale); color: #2A22A8; }
@media (min-width: 50rem) { .moments { grid-template-columns: repeat(3, 1fr); } }

.bande { background: var(--encre); color: #fff; }
.bande .discret { color: #B9B8D6; }
.bande--jaune { background: var(--jaune); color: var(--encre); }
.bande--bleu { background: var(--bleu); color: #fff; }

.situations { display: grid; gap: 1rem; }
.situation { border: 1.5px solid rgba(255,255,255,.22); border-radius: var(--rayon); padding: 1.4rem 1.5rem; }
.situation h3 { margin-bottom: .4rem; }
.situation p { color: #D5D4EC; }
@media (min-width: 46rem) { .situations { grid-template-columns: 1fr 1fr; } }

.deux-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .deux-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.promesses { display: grid; gap: 1.75rem; }
.promesses h3 { margin-bottom: .35rem; }
@media (min-width: 50rem) { .promesses { grid-template-columns: repeat(3, 1fr); } }

.offre { background: var(--blanc); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 2rem; }
.offre .prix { font: 750 clamp(3.2rem, 9vw, 5rem)/1 var(--titre); letter-spacing: -0.04em; }
.offre .prix small { font: 500 1rem/1.3 var(--texte); letter-spacing: 0; color: var(--gris); display: block; margin-top: .5rem; }
.coches li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.coches li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--vert); }
.coches li::after { content: ""; position: absolute; left: .36rem; top: .58em; width: .42rem; height: .22rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@media (min-width: 52rem) { .offre { grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; } }

.fondateur { font-size: 1.15rem; line-height: 1.6; }
.fondateur .signature { font-family: var(--titre); font-weight: 650; margin-top: 1.5rem; }

details.faq { border-bottom: 1.5px solid var(--trait); }
details.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 650 1.15rem/1.3 var(--titre); list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; font-size: 1.5rem; font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 0 1.25rem; }

/* ---------- cartes et éléments communs des espaces */
.carte { background: var(--blanc); border-radius: var(--rayon); padding: clamp(1.25rem, 3.5vw, 2rem); }
.carte--voix { background: var(--voix-pale); }
.carte--jaune { background: var(--jaune-pale); }
.carte--bleu { background: var(--bleu-pale); }
.carte--vert { background: var(--vert-pale); }
.carte--trait { background: transparent; border: 1.5px dashed var(--trait); }
.carte > h2, .carte > h3 { margin-bottom: .8rem; }
.carte h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.sur-titre { font-weight: 650; color: var(--gris); margin-bottom: .5rem; font-size: .98rem; }

.espace { padding: 1rem 0 2rem; }
.espace > h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 1rem 0 1.25rem; }
.onglets { display: flex; gap: .4rem; background: var(--blanc); padding: .35rem; border-radius: 999px; width: fit-content; max-width: 100%; margin: .5rem 0 1.5rem; overflow-x: auto; }
.onglets a { padding: .55rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.onglets a[aria-current] { background: var(--encre); color: #fff; }

.citation { font: 600 clamp(1.25rem, 3.4vw, 1.6rem)/1.3 var(--titre); letter-spacing: -0.01em; }
.bulle { background: var(--jaune); color: var(--encre); border-radius: 22px 22px 22px 6px; padding: 1.1rem 1.3rem; font: 600 1.15rem/1.35 var(--titre); max-width: 34rem; }
.bulle + .bulle { margin-top: .6rem; }
.question-soir { background: var(--encre); color: #fff; border-radius: var(--rayon); padding: clamp(1.5rem, 4vw, 2.25rem); }
.question-soir .citation { margin-top: .5rem; }
.question-soir .sur-titre { color: #B9B8D6; }

.regards li { display: grid; grid-template-columns: 3.6rem 1fr; column-gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1.5px solid var(--trait); }
.regards li > :first-child { grid-row: span 2; }
@media (min-width: 40rem) { .regards li { grid-template-columns: 3.6rem 1fr auto; } .regards li > :first-child { grid-row: auto; } }
.regards li:last-child { border-bottom: 0; }
.regards .nom { font-weight: 600; flex: 1; }
.regards .etat { font-size: .92rem; color: var(--gris); }
.regards .duo { width: 3.6rem; height: auto; }
.regards .ferme { color: var(--gris); }
.legende { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--gris); margin-top: 1rem; }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende .duo { height: 1rem; }

.liste li { padding-left: 1.4rem; position: relative; margin-bottom: .6rem; max-width: 66ch; }
.liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--voix); }
.voix-ado .liste li::before { background: var(--encre); }
.eviter { border-left: 4px solid var(--rose); padding-left: 1rem; }

.etapes li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0 1rem; padding-bottom: 1.4rem; position: relative; }
.etapes li::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--voix); margin-top: .28rem; box-shadow: 0 0 0 4px var(--voix-pale); }
.etapes li::after { content: ""; position: absolute; left: calc(.55rem - 1px); top: 1.7rem; bottom: .2rem; width: 2px; background: var(--trait); }
.etapes li:last-child::after { display: none; }
.etapes .quand { font: 650 1.08rem/1.3 var(--titre); }
.etapes .rappel { font-size: .9rem; color: var(--gris); margin-top: .25rem; }

details.plie { border-top: 1.5px solid var(--trait); }
details.plie:last-of-type { border-bottom: 1.5px solid var(--trait); }
details.plie summary { cursor: pointer; padding: .95rem 2rem .95rem 0; font-weight: 650; list-style: none; position: relative; }
details.plie summary::-webkit-details-marker { display: none; }
details.plie summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-size: 1.4rem; font-weight: 400; }
details.plie[open] summary::after { content: "−"; }
details.plie > div { padding: 0 0 1.25rem; }
.sources { font-size: .9rem; color: var(--gris); margin-top: 1rem; }
.mots dt { font-weight: 650; margin-top: .9rem; }
.mots dd { margin: 0; max-width: 66ch; }

.invitation { background: var(--jaune); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.5rem); }
.invitation .message { background: #fff; border-radius: 20px 20px 20px 6px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; font-size: 1.05rem; white-space: pre-line; max-width: 34rem; overflow-wrap: anywhere; }
.invitation .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.vente { background: var(--bleu); color: #fff; border-radius: 28px; padding: clamp(1.5rem, 4.5vw, 3rem); }
.vente h2 { margin-bottom: 1rem; }
.vente .coches li::before { background: var(--jaune); }
.vente .coches li::after { border-color: var(--encre); }
.vente .bouton { background: var(--jaune); color: var(--encre); margin-top: 1.5rem; }
.vente .discret { color: #D5D9FF; }
.verrou { display: inline-block; width: .85em; height: .7em; border-radius: 2px; background: currentColor; position: relative; margin-right: .45em; vertical-align: baseline; }
.verrou::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 90%; height: .5em; border: 2px solid currentColor; border-bottom: 0; border-radius: .4em .4em 0 0; }

.bandeau { background: var(--encre); color: #fff; padding: .7rem 1.25rem; text-align: center; font-weight: 550; font-size: .98rem; }
.alerte { background: #FFE9EE; border-radius: 14px; padding: .9rem 1.1rem; font-weight: 550; }

/* ---------- pistes */
.piste { background: var(--blanc); border-radius: var(--rayon); padding: clamp(1.2rem, 3.5vw, 1.75rem); }
.piste-tete { display: flex; gap: 1rem; align-items: flex-start; }
.picto { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 16px; background: var(--voix-pale); display: grid; place-items: center; font-size: 1.6rem; }
.piste h3 { margin-bottom: .2rem; }
.piste .fiche { margin-top: 1rem; }
.fiche h4 { font: 650 1rem/1.3 var(--texte); margin: 1.1rem 0 .4rem; }
.fiche h4:first-child { margin-top: 0; }
.reagir { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.2rem; border: 0; padding: 0; }
.reagir label { position: relative; }
.reagir input { position: absolute; opacity: 0; inset: 0; }
.reagir span { display: grid; place-items: center; text-align: center; min-height: 3.2rem; padding: .5rem; border-radius: 14px; background: var(--fond); font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer; border: 2px solid transparent; }
.reagir input:checked + span { background: var(--encre); color: #fff; }
.reagir input:focus-visible + span { border-color: var(--bleu); }
.etiquettes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.etiquette { font-size: .88rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px; background: var(--fond); }
.etiquette--bleu { background: var(--bleu-pale); color: #2A22A8; }
.etiquette--jaune { background: var(--jaune-pale); color: #5c4700; }
.etiquette--vert { background: var(--vert-pale); color: #0b5a3f; }
.etiquette--encre { background: var(--encre); color: #fff; }
.metiers { list-style: none; padding: 0; margin: .5rem 0 .75rem; display: grid; gap: .5rem; }
.metiers li { border-radius: 14px; background: var(--fond); }
.metiers summary { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .75rem .9rem; cursor: pointer; list-style: none; }
.metiers summary::-webkit-details-marker { display: none; }
.metiers summary::after { content: "+"; font-weight: 700; color: var(--gris); margin-left: .25rem; }
.metiers details[open] summary::after { content: "−"; }
.metiers summary .metier-duree { margin-left: auto; }
.metiers details > span { display: block; padding: 0 .9rem .5rem; }
.metiers details > span:last-child { padding-bottom: .85rem; }
.metier-nom { font-weight: 650; }
.metier-duree { font-size: .9rem; font-weight: 600; color: #2A22A8; text-align: right; }
.metier-raisons { grid-column: 1 / -1; font-size: .92rem; font-weight: 600; color: #0b5a3f; }
.metier-accroche { grid-column: 1 / -1; font-size: .97rem; }
.metier-voies a { white-space: nowrap; }
.metier-voies { grid-column: 1 / -1; font-size: .92rem; color: #55537a; }
.etiquette--rose { background: #FFE2E9; color: #9c1f41; }
.grille { display: grid; gap: 1rem; }
@media (min-width: 50rem) { .grille--2 { grid-template-columns: 1fr 1fr; } .grille--3 { grid-template-columns: repeat(3, 1fr); } }
.numerote { counter-reset: n; }
.numerote li { counter-increment: n; padding-left: 2.4rem; position: relative; margin-bottom: .8rem; max-width: 64ch; }
.numerote li::before { content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font: 700 .9rem/1 var(--titre); }

/* ---------- questionnaire : un écran par question */
.q-corps { min-height: 100dvh; display: flex; flex-direction: column; background: var(--fond); }
.q-tete { padding: 1rem 1.25rem .5rem; max-width: 46rem; width: 100%; margin: 0 auto; }
.q-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; }
.q-retour { background: none; border: 0; font-weight: 600; padding: .4rem 0; visibility: hidden; }
.q-retour.visible { visibility: visible; }
.chemin { position: relative; height: 40px; margin-top: .5rem; --p: 0; }
.chemin::before { content: ""; position: absolute; left: 18px; right: 18px; top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--trait) 0 6px, transparent 6px 12px); }
.chemin i { position: absolute; top: 0; width: 40px; height: 40px; transition: left .5s cubic-bezier(.3,1.3,.5,1), right .5s cubic-bezier(.3,1.3,.5,1); }
.chemin svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 1.5px rgba(18,17,46,.22)); }
.chemin .moi { z-index: 1; }
.role-parent .chemin .moi { left: calc(var(--p) * (50% - 30px)); }
.role-parent .chemin .autre { right: 0; opacity: .45; }
.role-ado .chemin .moi { right: calc(var(--p) * (50% - 30px)); }
.role-ado .chemin .autre { left: calc(50% - 30px); }
/* Les personnages : ils clignent des yeux, sautent à chaque question et sourient quand on répond. */
.chemin .yeux { transform-box: fill-box; transform-origin: center; animation: cligne 4.2s infinite; }
.chemin .autre .yeux { animation-delay: 1.7s; }
.chemin .sourire, .chemin.content .moi .bouche { opacity: 0; }
.chemin.content .moi .sourire { opacity: 1; }
.chemin.saute .moi svg { animation: saute .55s cubic-bezier(.3,.7,.4,1); }
@keyframes cligne { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes saute { 0% { transform: translateY(0) scale(1,1); } 20% { transform: translateY(2px) scale(1.12,.86); } 50% { transform: translateY(-11px) scale(.94,1.08) rotate(-6deg); } 80% { transform: translateY(1px) scale(1.08,.92); } 100% { transform: none; } }
.chemin-bulle { position: absolute; top: 2px; white-space: nowrap; font: 650 .82rem/1 var(--texte); font-style: normal; background: var(--encre); color: #fff; padding: .45rem .7rem; border-radius: 12px; }
.role-parent .chemin-bulle { right: 52px; }
.role-ado .chemin-bulle { left: 0; }
.chemin-bulle[hidden] { display: none; }
.chemin-bulle.visible { animation: bulle 2.6s ease both; }
@keyframes bulle { 0% { opacity: 0; transform: scale(.6); } 10% { opacity: 1; transform: scale(1.06); } 16%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

.q-main { flex: 1; display: flex; padding: 1rem 1.25rem 2rem; max-width: 46rem; width: 100%; margin: 0 auto; }
.ecran { display: none; flex-direction: column; width: 100%; }
.ecran.actif { display: flex; animation: entre .28s ease both; }
@keyframes entre { from { opacity: 0; transform: translateY(10px); } }
/* Passage d'une question à l'autre : la question glisse, puis les réponses se posent une par une, comme des pièces de feutrine. */
.ecran.actif > h1, .ecran.actif > .section, .ecran.actif > .intro, .ecran.actif > .aide { animation: glisse .38s cubic-bezier(.2,.8,.2,1) both; }
.ecran.actif.retour-arriere > h1, .ecran.actif.retour-arriere > .section, .ecran.actif.retour-arriere > .intro, .ecran.actif.retour-arriere > .aide { animation-name: glisse-retour; }
@keyframes glisse { from { opacity: 0; transform: translateX(34px) rotate(1.2deg); } }
@keyframes glisse-retour { from { opacity: 0; transform: translateX(-34px) rotate(-1.2deg); } }
.ecran.actif .options > *, .ecran.actif .ligne-matiere, .ecran.actif .echelle, .ecran.actif .poles > * { animation: se-pose .42s cubic-bezier(.25,1.35,.5,1) both; }
.ecran.actif .options > :nth-child(1), .ecran.actif .ligne-matiere:nth-child(1) { animation-delay: .06s; }
.ecran.actif .options > :nth-child(2), .ecran.actif .ligne-matiere:nth-child(2) { animation-delay: .10s; }
.ecran.actif .options > :nth-child(3), .ecran.actif .ligne-matiere:nth-child(3) { animation-delay: .14s; }
.ecran.actif .options > :nth-child(4), .ecran.actif .ligne-matiere:nth-child(4) { animation-delay: .18s; }
.ecran.actif .options > :nth-child(5), .ecran.actif .ligne-matiere:nth-child(5) { animation-delay: .22s; }
.ecran.actif .options > :nth-child(6), .ecran.actif .ligne-matiere:nth-child(6) { animation-delay: .26s; }
.ecran.actif .options > :nth-child(7), .ecran.actif .ligne-matiere:nth-child(7) { animation-delay: .30s; }
.ecran.actif .options > :nth-child(n+8) { animation-delay: .34s; }
@keyframes se-pose { from { opacity: 0; transform: translateY(16px) scale(.94) rotate(-1.5deg); } }
.option.pose, .point.pose, .signe.pose { animation: appuie .32s cubic-bezier(.3,1.5,.5,1) !important; }
@keyframes appuie { 0% { transform: scale(1); } 35% { transform: scale(.94); } 70% { transform: scale(1.03); } 100% { transform: none; } }
.confettis { position: fixed; z-index: 50; width: 0; height: 0; pointer-events: none; }
.confettis i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 3px; animation: confetti .7s cubic-bezier(.15,.7,.3,1) both; }
@keyframes confetti { from { opacity: 1; transform: none; } 70% { opacity: 1; } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.5); } }
/* La pause entre deux parties : une image de la série, posée de travers, qui flotte doucement. */
.vignette { width: min(74%, 17rem); height: auto; border-radius: 26px; margin: 4vh auto 0; display: block; box-shadow: 0 14px 30px -14px rgba(18,17,46,.45); animation: vignette .6s cubic-bezier(.25,1.4,.5,1) both, flotte 5s 1s ease-in-out infinite; }
.vignette[hidden] { display: none; }
.vignette + .mediateur { margin-top: 1.5rem; }
@keyframes vignette { from { opacity: 0; transform: translateY(26px) rotate(-7deg) scale(.86); } to { transform: rotate(-2deg); } }
.ecran .section { font-weight: 650; color: var(--gris); margin-bottom: .5rem; }
.ecran .intro { color: var(--gris); margin-bottom: .75rem; }
.ecran h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 650; margin-bottom: .6rem; }
.ecran .aide { color: var(--gris); margin-bottom: 1rem; }
.options { display: grid; gap: .6rem; margin-top: 1.1rem; }
.option { width: 100%; text-align: left; min-height: 3.6rem; padding: .9rem 1.2rem; border-radius: 16px; border: 2px solid transparent; background: var(--blanc); font-weight: 550; font-size: 1.08rem; line-height: 1.3; transition: transform .1s ease, background .15s ease; }
.option:hover { border-color: var(--encre); }
.option:active { transform: scale(.985); }
.option[aria-pressed="true"] { background: var(--voix); color: var(--sur-voix); border-color: var(--voix); }
.option--vide { background: transparent; border: 2px dashed var(--trait); color: var(--gris); }
.tuiles { grid-template-columns: 1fr 1fr; }
.tuiles .option { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; min-height: 6rem; font-size: 1rem; padding: .85rem 1rem; }
.tuiles .option .p { font-size: 1.6rem; line-height: 1; }
.tuiles .option--vide { grid-column: 1 / -1; min-height: 3.4rem; justify-content: center; }
@media (min-width: 36rem) { .tuiles { grid-template-columns: repeat(3, 1fr); } }
.echelle { margin-top: 1.25rem; }
.echelle .points { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; position: relative; }
.echelle .points::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 50%; height: 2px; background: var(--trait); }
.point { position: relative; border-radius: 50%; border: 2.5px solid var(--encre); background: var(--blanc); width: 3.6rem; height: 3.6rem; padding: 0; transition: transform .12s ease, background .15s ease; }
.point:nth-child(2), .point:nth-child(4) { width: 2.9rem; height: 2.9rem; }
.point:nth-child(3) { width: 2.3rem; height: 2.3rem; }
.point:hover { transform: scale(1.08); }
.point[aria-pressed="true"] { background: var(--voix); border-color: var(--voix); box-shadow: 0 0 0 5px var(--voix-pale); }
.voix-ado .point[aria-pressed="true"] { border-color: var(--encre); }
.echelle .milieu { text-align: center; color: var(--gris); font-size: .92rem; margin-top: 1.1rem; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pole { min-height: 7.5rem; border-radius: 20px; border: 2px solid transparent; background: var(--blanc); padding: 1rem; font: 650 1.12rem/1.25 var(--titre); text-align: left; display: flex; align-items: flex-end; transition: transform .1s ease; }
.pole:last-child { text-align: right; justify-content: flex-end; }
.pole:hover { border-color: var(--encre); }
.pole:active { transform: scale(.97); }
.q-temps { font-size: .92rem; font-weight: 600; color: var(--gris); }
.replique, .parole { background: var(--encre); color: #fff; border-radius: 20px 20px 20px 6px; padding: .8rem 1.1rem; font-weight: 550; max-width: 30rem; width: fit-content; }
.replique { margin-bottom: 1.25rem; font-size: 1rem; animation: entre .35s .1s ease both; }
.replique[hidden] { display: none; }
.ecran--pause { justify-content: center; }
.mediateur { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 12vh; }
.mediateur .avatar svg { height: 2rem; width: auto; display: block; }
.parole { font: 600 clamp(1.3rem, 5vw, 1.7rem)/1.3 var(--titre); padding: 1.3rem 1.5rem; border-radius: 26px 26px 26px 8px; animation: entre .4s .15s ease both; }
.parole:focus { outline: none; }
.ecran--pause .q-pied { margin-top: 2.5rem; }
.option[hidden] { display: none; }
.legende-grille { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; font-size: .9rem; color: var(--gris); margin: .25rem 0 1rem; }
.grille-matieres { background: var(--blanc); border-radius: var(--rayon); padding: .25rem 1rem; }
.ligne-matiere { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1.5px solid var(--trait); }
.ligne-matiere:last-child { border-bottom: 0; }
.ligne-matiere .nom { font-weight: 600; line-height: 1.25; font-size: .98rem; }
.signes { display: flex; gap: .3rem; flex: none; }
.signe { width: 2.75rem; height: 2.75rem; border-radius: 12px; border: 2px solid transparent; background: var(--fond); font-size: 1.35rem; line-height: 1; padding: 0; filter: grayscale(1); opacity: .8; transition: transform .1s ease; }
.signe:hover { opacity: 1; filter: none; }
.signe[aria-pressed="true"] { background: var(--voix); border-color: var(--encre); filter: none; opacity: 1; transform: scale(1.08); }
.q-pied { margin-top: auto; padding-top: 1.75rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.champ { width: 100%; min-height: 3.6rem; padding: .8rem 1.1rem; border-radius: 16px; border: 2px solid var(--trait); font: inherit; font-size: 1.15rem; background: var(--blanc); color: var(--encre); margin-top: 1rem; }
.champ:focus { outline: none; border-color: var(--encre); }
.case { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.2rem; cursor: pointer; }
.case input { width: 1.5rem; height: 1.5rem; margin-top: .15rem; accent-color: var(--encre); flex: none; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--encre); color: #fff; padding: .8rem 1.2rem; border-radius: 14px; font-weight: 550; max-width: calc(100% - 2rem); z-index: 10; }
.toast[hidden] { display: none; }

/* ---------- entrée ado */
.ado-entree { min-height: 100dvh; background: var(--jaune); display: grid; place-items: center; padding: 2rem 1.25rem; }
.ado-entree .boite { max-width: 32rem; }
.ado-entree .logo svg circle:nth-child(2) { fill: #fff; }
.ado-entree h1 { font-size: clamp(2.4rem, 10vw, 3.8rem); margin-bottom: 1.25rem; }
.ado-entree .promesses-ado li { background: rgba(255,255,255,.55); border-radius: 16px; padding: .9rem 1.1rem; margin-bottom: .6rem; font-weight: 550; }
.cadre-apercu { border: 3px solid var(--encre); border-radius: 26px; padding: clamp(1rem, 3vw, 1.75rem); background: var(--fond); --voix: var(--bleu); --voix-pale: var(--bleu-pale); --sur-voix: #fff; }
.cadre-apercu .pile > * + * { margin-top: 1rem; }
.barre-valider { position: sticky; bottom: 0; background: var(--jaune); padding: 1rem 1.25rem; margin: 2rem -1.25rem 0; display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- administration, démo */
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--blanc); border-radius: 14px; overflow: hidden; }
table.t th, table.t td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--trait); }
table.t th { font-weight: 650; background: var(--fond); }
.tunnel { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.tunnel div { background: var(--blanc); border-radius: 14px; padding: .9rem 1rem; }
.tunnel b { display: block; font: 750 1.8rem/1.1 var(--titre); }
select.champ { appearance: auto; }
.demo-forme { display: grid; gap: .75rem; }
@media (min-width: 46rem) { .demo-forme { grid-template-columns: 1fr 1fr auto; align-items: end; } .demo-forme .champ { margin-top: .3rem; } }

/* ---------- accueil : panneau d'ouverture, illustrations, comparatif, aperçus */
.hero { background: var(--encre); color: #fff; border-radius: 36px; padding: clamp(1.75rem, 5vw, 4rem); margin: .5rem 0 0; gap: 2rem; }
.hero h1 .l2 { color: var(--jaune); }
.hero .chapo { color: #DAD8F2; }
.hero .bouton { background: var(--jaune); color: var(--encre); }
.hero a { color: #fff; }
.hero .rassure { color: #B5B2DA; max-width: 30rem; }
.hero .rassure strong { color: #fff; font-weight: 650; }
.hero-figure svg { max-width: 30rem; margin: 0 auto; }
.illus { display: block; width: 100%; height: auto; }
.moment .illus { max-width: 9rem; margin-bottom: 1rem; }
.moment::before { display: none; }
.moment .rang { font: 700 .95rem/1 var(--titre); color: var(--gris); display: block; margin-bottom: .4rem; }
.situation { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.1rem; align-items: start; }
.situation .illus { width: 3.5rem; }
.comparatif { display: grid; gap: 1rem; }
.comparatif > div { border-radius: 28px; padding: clamp(1.4rem, 3.5vw, 2.25rem); }
.comparatif .gratuit { background: var(--blanc); }
.comparatif .suite { background: var(--bleu); color: #fff; }
.comparatif .suite .coches li::before { background: var(--jaune); }
.comparatif .suite .coches li::after { border-color: var(--encre); }
.comparatif .suite .bouton { background: var(--jaune); color: var(--encre); margin-top: 1.25rem; }
.comparatif h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.comparatif .tarif-grand { font: 750 2.6rem/1 var(--titre); letter-spacing: -.03em; margin: .4rem 0 1.1rem; }
.comparatif .tarif-grand small { font: 500 1rem/1.3 var(--texte); letter-spacing: 0; opacity: .8; margin-left: .4rem; }
@media (min-width: 52rem) { .comparatif { grid-template-columns: 1fr 1fr; } }
.apercu-suite { display: grid; gap: 1rem; }
@media (min-width: 56rem) { .apercu-suite { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.apercu-suite .carte { border: 1.5px solid var(--trait); }
.cta-fixe { position: fixed; left: 0; right: 0; bottom: 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(246,245,251,.94); backdrop-filter: blur(8px); border-top: 1.5px solid var(--trait); display: flex; gap: .75rem; align-items: center; justify-content: space-between; z-index: 5; }
.cta-fixe span { font-size: .9rem; line-height: 1.25; color: var(--gris); }
.cta-fixe .bouton { min-height: 2.9rem; padding: .5rem 1.2rem; font-size: 1rem; white-space: nowrap; }
@media (min-width: 50rem) { .cta-fixe { display: none; } }
@media (max-width: 49.99rem) { .avec-cta-fixe { padding-bottom: 5rem; } }

/* ---------- espace parent : ce qui attend derrière la suite */
.vente { background: var(--encre); }
.vente .discret { color: #B5B2DA; }
.vente .accroche { color: #DAD8F2; margin-bottom: 1.5rem; max-width: 40rem; }
.prets { display: grid; gap: .75rem; margin: 0 0 1.75rem; }
@media (min-width: 46rem) { .prets { grid-template-columns: repeat(3, 1fr); } }
.pret { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16); border-radius: 20px; padding: 1.1rem 1.2rem; }
.pret b { display: block; font: 750 2.2rem/1 var(--titre); color: var(--jaune); margin-bottom: .35rem; }
.pret .flou { display: grid; gap: .4rem; margin-top: .8rem; }
.pret .flou i { display: block; height: .6rem; border-radius: 99px; background: rgba(255,255,255,.28); filter: blur(2.5px); }
.pret .flou i:nth-child(2) { width: 78%; } .pret .flou i:nth-child(3) { width: 55%; }
.vente .prix-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.vente .prix-ligne .bouton { margin-top: 0; }
.vente .prix-ligne p { margin: 0; color: #DAD8F2; max-width: 26rem; font-size: .98rem; }
.rappel-suite { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; background: var(--bleu-pale); border-radius: var(--rayon); padding: 1rem 1.25rem; }
.rappel-suite p { margin: 0; font-weight: 550; }
.hero h1 { text-wrap: wrap; font-size: clamp(2.1rem, 5vw, 3.5rem); }

/* ---------- suivi (administration) */
.titre-admin { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.tunnel .taux { display: block; font-size: .85rem; color: var(--gris); margin-top: .2rem; }
.tunnel .recette { background: var(--encre); color: #fff; }
.defile { overflow-x: auto; border-radius: 14px; }
table.t td, table.t th { white-space: nowrap; text-align: right; }
table.t td:first-child, table.t th:first-child { text-align: left; font-weight: 600; }
table.t th { white-space: normal; min-width: 5.5rem; vertical-align: bottom; font-size: .85rem; line-height: 1.25; }
table.t td.zero { color: #B9B7CF; }
.barre { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--trait); margin: 0; max-width: none; }
.barre:last-child { border-bottom: 0; }
.espace .grille--3 .mots dt { font: 750 1.5rem/1.2 var(--titre); }
.carte code, .discret code { background: var(--fond); padding: .1rem .35rem; border-radius: 6px; font-size: .9em; }

/* ---------- confort d'usage */
html { -webkit-tap-highlight-color: transparent; }
:target { scroll-margin-top: 4.75rem; }
.evitement { position: absolute; left: 1rem; top: -4rem; background: var(--encre); color: #fff; padding: .7rem 1rem; border-radius: 10px; z-index: 20; }
.evitement:focus { top: 1rem; }
.bouton[aria-busy="true"] { opacity: .6; }
.bouton[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* le fil d'étapes des espaces */
.fil { display: flex; gap: .35rem; margin: .25rem 0 1.25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
.fil::-webkit-scrollbar { display: none; }
.fil li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--gris); white-space: nowrap; padding: .3rem .75rem .3rem .3rem; border-radius: 999px; background: rgba(255,255,255,.6); }
.fil .rond { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--titre); background: var(--trait); color: var(--gris); flex: none; }
.fil .rond svg { width: .95rem; height: .95rem; }
.fil .fait .rond { background: var(--vert); color: #fff; }
.fil .ici { background: var(--blanc); color: var(--encre); box-shadow: 0 0 0 1.5px var(--encre); }
.fil .ici .rond { background: var(--encre); color: #fff; }
@media (max-width: 40rem) { .fil li:not(.ici) .nom { display: none; } .fil li:not(.ici) { padding: .3rem; } }

/* le sommaire d'une longue page */
.sommaire { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1.25rem; position: sticky; top: 0; z-index: 4; padding: .6rem 0; background: linear-gradient(var(--fond) 80%, transparent); }
.sommaire::-webkit-scrollbar { display: none; }
.sommaire a { white-space: nowrap; text-decoration: none; font-size: .92rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; background: var(--blanc); border: 1.5px solid var(--trait); }
.sommaire a:hover { border-color: var(--encre); }

/* questionnaire : le bouton Continuer reste à portée de pouce */
.q-temps { display: inline-flex; gap: .25rem; }
.pied-collant .ecran.actif .q-pied { position: sticky; bottom: 0; margin: 1.25rem -1.25rem -2rem; padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--fond) 22%); z-index: 3; }
.pied-collant .toast { bottom: 5.5rem; }
.pole.retenu { background: var(--voix); color: var(--sur-voix); border-color: var(--voix); }
.voix-ado .pole.retenu { border-color: var(--encre); }

/* pistes : ce qui est fait, ce qui reste */
.piste { transition: box-shadow .2s ease; }
.piste.faite { box-shadow: inset 4px 0 0 var(--vert); }
.piste.oubliee { box-shadow: 0 0 0 3px var(--rose); }
.barre-envoi { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0 calc(.9rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--fond) 25%); z-index: 3; }
.invitation .actions .bouton { min-height: 3rem; padding: .6rem 1.2rem; font-size: 1rem; }

/* impression du plan */
@media print {
  body { background: #fff; font-size: 11pt; }
  .entete nav, .pied, .onglets, .fil, .sommaire, .hors-impression, .cta-fixe, details.plie summary::after, .barre-envoi { display: none !important; }
  details.plie > div { display: block; }
  .carte, .piste { break-inside: avoid; border: 1px solid #bbb; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* ---------- mouvement */
/* La scène d'ouverture respire doucement : les deux réponses montent vers ce qu'elles ont en commun. */
.hero-figure .trait { animation: monte 2.6s linear infinite; }
.hero-figure .commun { transform-origin: 240px 92px; animation: respire 4.5s ease-in-out infinite; }
.hero-figure .telephone-g { animation: flotte 5s ease-in-out infinite; }
.hero-figure .telephone-d { animation: flotte 5s ease-in-out -2.5s infinite; }
@keyframes monte { to { stroke-dashoffset: -24; } }
@keyframes respire { 50% { transform: scale(1.045); } }
@keyframes flotte { 50% { transform: translateY(-5px); } }

/* Apparition au défilement, uniquement si le script a marqué la page. */
.anime [data-anime="suite"] > * { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.anime [data-anime="suite"].vu > * { opacity: 1; transform: none; }
.anime [data-anime="suite"].vu > :nth-child(2) { transition-delay: .08s; }
.anime [data-anime="suite"].vu > :nth-child(3) { transition-delay: .16s; }
.anime [data-anime="suite"].vu > :nth-child(4) { transition-delay: .24s; }
.anime [data-anime="suite"].vu > :nth-child(5) { transition-delay: .32s; }
.anime [data-anime="suite"].vu > :nth-child(n+6) { transition-delay: .4s; }
.anime .regards[data-anime] .duo { transform: scaleX(1.5); transition: transform .8s cubic-bezier(.2,.7,.2,1) .25s; }
.anime .regards[data-anime].vu .duo { transform: none; }

@media (hover: hover) {
  .moment, .apercu-suite .carte, .situation { transition: transform .2s ease, box-shadow .2s ease; }
  .moment:hover, .apercu-suite .carte:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(18,17,46,.45); }
  .situation:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.5); }
}

/* ---------- photos */
.photo { display: block; width: 100%; height: auto; border-radius: 28px; object-fit: cover; }
.photo--ouverture { aspect-ratio: 16 / 9; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 93%, transparent);
  mask-composite: intersect; }
@media (min-width: 56rem) { .hero:has(.hero-figure--image) { grid-template-columns: 1fr 1fr; } .hero-figure--image { margin-right: clamp(-2.5rem, -3vw, -1rem) !important; } }
.ado-entree-image { max-width: 20rem; margin: 2rem auto 0; }
@media (min-width: 60rem) { .ado-entree:has(.ado-entree-image) { grid-template-columns: minmax(0, 32rem) minmax(0, 24rem); justify-content: center; gap: 4rem; } .ado-entree-image { max-width: none; margin: 0; } }
.photo--bandeau { border-radius: 0; max-height: 34rem; object-position: 50% 20%; }
.photo--portrait { max-width: 13rem; aspect-ratio: 1; border-radius: 50%; margin-top: 1.5rem; }

/* ---------- raccourcis clavier : visibles seulement sur un ordinateur */
.aide-clavier { display: none; }
@media (hover: hover) and (min-width: 56rem) {
  .aide-clavier { display: block; text-align: center; font-size: .85rem; color: var(--gris); padding: 0 1rem 1.25rem; margin: 0 auto; }
  .ecran .options { counter-reset: touche; }
  .ecran .option[data-valeur]:not([hidden]) { counter-increment: touche; position: relative; padding-right: 3.2rem; }
  .ecran .option[data-valeur]:not([hidden])::after { content: counter(touche); position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 7px; border: 1.5px solid var(--trait); display: grid; place-items: center; font: 650 .8rem/1 var(--titre); color: var(--gris); background: var(--fond); }
  .ecran .tuiles .option[data-valeur]:not([hidden])::after { top: .9rem; transform: none; }
  .ecran .option[aria-pressed="true"]::after { border-color: transparent; background: rgba(255,255,255,.25); color: inherit; }
}
[tabindex="-1"]:focus { outline: none; }

/* ---------- gratuit et payant : que l'on comprenne où s'arrête le gratuit */
.cadenas { width: .95em; height: .95em; vertical-align: -.1em; flex: none; }
.fil .ferme { opacity: .75; }
.fil .ferme .rond { background: var(--encre); color: var(--jaune); }
.fil .fil-prix { background: var(--jaune); color: var(--encre); font-weight: 700; padding: .3rem .8rem; }
@media (max-width: 40rem) { .fil li.fil-prix { padding: .3rem .7rem; } }
.trois-moments { background: var(--blanc); border-radius: 28px; padding: clamp(1.2rem, 4vw, 2rem); border: 2px solid var(--encre); }
.trois-moments-titre { font: 650 clamp(1.15rem, 4vw, 1.4rem)/1.3 var(--titre); margin-bottom: 1rem; }
.trois-moments ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 52rem) { .trois-moments ol { grid-template-columns: repeat(3, 1fr); } }
.trois-moments li { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--fond); }
.trois-moments li > span:last-child { font-size: .95rem; color: #55537a; }
.trois-moments li.fait { background: var(--vert-pale); }
.trois-moments li.ici { background: var(--bleu-pale); }
.trois-moments li.ferme { background: var(--encre); color: #fff; }
.trois-moments li.ferme > span:last-child { color: #DAD8F2; }
.moment-etat { font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.trois-moments li.fait .moment-etat { color: #0b5a3f; }
.trois-moments li.ferme .moment-etat { color: var(--jaune); }
.trois-moments-pied { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.trois-moments-pied p { margin: 0; max-width: 34rem; }
.trois-moments-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; }
.avant-achat { background: #fff; color: var(--encre); border-radius: 22px; padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; max-width: 34rem; }
.apercu-titre { font-size: .85rem; font-weight: 700; color: var(--gris); margin-bottom: .8rem; }
.apercu-piste { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.apercu-piste div { display: flex; flex-direction: column; }
.apercu-piste strong { font: 650 1.2rem/1.2 var(--titre); }
.apercu-piste span { font-size: .9rem; color: var(--gris); }
.avant-achat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.avant-achat li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .9rem; border-radius: 12px; background: var(--fond); }
.avant-achat li span { font-size: .9rem; font-weight: 600; color: #2A22A8; white-space: nowrap; }
.avant-achat li.cache-flou { filter: blur(5px); user-select: none; opacity: .8; }
.apercu-reste { margin: .9rem 0 0; font-size: .95rem; font-weight: 600; display: flex; gap: .45rem; align-items: baseline; }
.cta-suite { background: var(--encre); border-top: 0; }
.cta-suite span { color: #DAD8F2; } .cta-suite strong { color: #fff; }
.cta-suite .bouton { background: var(--jaune); color: var(--encre); }
@media (max-width: 49.99rem) { body:has(.cta-suite) .espace { padding-bottom: 5.5rem; } }
.liste-fermee { list-style: none; padding: 0; margin: .9rem 0 1rem; display: grid; gap: .5rem; }
.liste-fermee li { display: flex; gap: .6rem; align-items: baseline; background: rgba(255,255,255,.6); border-radius: 14px; padding: .8rem 1rem; }
@media (max-width: 40rem) { .trois-moments li { padding: .75rem 1rem; } .trois-moments li > span:last-child { display: none; } }
.pret--fort { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.pret--fort b { color: var(--encre); }
.pret--fort .flou i { background: rgba(18,17,46,.3); }
.code-invitation { margin-top: 1rem; color: #DAD8F2; }
.code-invitation summary { cursor: pointer; font-size: .95rem; text-decoration: underline; }
.code-invitation form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; align-items: center; }
.code-invitation input { min-height: 2.9rem; border-radius: 12px; border: 0; padding: .4rem .9rem; font: inherit; max-width: 14rem; }
.vente .code-invitation .bouton { margin-top: 0; background: #fff; }
.metiers summary .metier-duree { white-space: nowrap; }

/* ---------------------------------------------------------------- vente : prochaines dates, rendez-vous, décision */
.dates-classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: .9rem; margin-top: 1.5rem; }
.dates-classes a { display: flex; flex-direction: column; gap: .3rem; background: var(--blanc); border-radius: 20px; padding: 1.1rem 1.25rem; text-decoration: none; color: inherit; border: 2px solid transparent; }
.dates-classes a:hover, .dates-classes a:focus-visible { border-color: var(--encre); }
.dates-classes strong { font: 650 1.15rem/1.2 var(--titre); }
.dates-classes .quand { font-weight: 650; color: var(--bleu); }
.dates-classes span:last-child { font-size: .95rem; color: var(--gris); }
.vente .apres-achat { margin-top: 1.25rem; color: #DAD8F2; font-size: .98rem; max-width: 40rem; }
.decision { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.decision fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.decision legend { font: 650 1.1rem/1.3 var(--titre); margin-bottom: .6rem; padding: 0; }
.decision .groupe { font-weight: 650; margin: .6rem 0 0; font-size: .95rem; color: var(--gris); }
.decision label { display: flex; gap: .75rem; align-items: flex-start; background: var(--blanc); border-radius: 14px; padding: .8rem 1rem; cursor: pointer; border: 2px solid transparent; }
.decision label:hover { border-color: var(--encre); }
.decision label:has(input:checked) { border-color: var(--encre); background: #fff; }
.decision input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--encre); flex: none; }
.decision .bouton { justify-self: start; }
@media print { .invitation.hors-impression { display: none !important; } }
.etapes .numerote li { display: block; padding-bottom: 0; }
.etapes .numerote li::before { margin-top: 0; box-shadow: none; }
.etapes .numerote li::after { display: none; }
@media (max-width: 430px) { .entete nav { gap: .45rem; font-size: .86rem; } .entete nav a { padding-left: 0; padding-right: 0; } }
