:root {
  color-scheme: dark;
  --fond: #060e24;
  --carte: #0d1a3c;
  --texte: #eef2fb;
  --doux: #9aabd1;
  --primaire: #e6c26a;
  --sur-primaire: #060e24;
  --or: #e6c26a;
  --ligne: #1e3066;
  --vert: #3fb97a;
  --orange: #f0a13a;
  --rouge: #ef5b52;
  --rayon: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 50% -10%, #12275c 0%, var(--fond) 60%) fixed, var(--fond); color: var(--texte);
  font: 17px/1.55 ui-rounded, "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino", Georgia, serif; line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
.entete { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-family: Georgia, serif; font-size: 18px; color: var(--primaire); }
.progres { height: 4px; background: var(--ligne); margin: 0 20px; border-radius: 4px; overflow: hidden; }
.progres-barre { height: 100%; width: 0; background: var(--or); transition: width .35s ease; }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 20px 32px; outline: none; }
.pied { text-align: center; color: var(--doux); font-size: 13px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 28px 22px; }
.lead { color: var(--doux); }
.etiquette { display: inline-block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--or); margin-bottom: 14px; }
.question { font-size: 22px; line-height: 1.4; margin: 0 0 28px; font-family: Georgia, serif; }
.question strong { color: var(--primaire); font-weight: 700; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn {
  appearance: none; border: 2px solid var(--primaire); background: transparent; color: var(--primaire);
  font: inherit; font-weight: 600; padding: 16px 18px; border-radius: 14px; cursor: pointer; min-height: 56px;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--primaire); color: var(--sur-primaire); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .lien:focus-visible, select:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.btn.plein { background: var(--primaire); color: var(--sur-primaire); }
.btn.plein:hover { opacity: .9; }
.btn.large { width: 100%; }
.btn.choisi { background: var(--primaire); color: var(--sur-primaire); }
.lien { background: none; border: 0; color: var(--doux); font: inherit; padding: 12px 4px; cursor: pointer; margin-top: 14px; }
.groupe { margin-bottom: 26px; }
.groupe > p { margin: 0 0 10px; font-weight: 600; }
select { width: 100%; font: inherit; padding: 14px; border-radius: 12px; border: 2px solid var(--ligne); background: var(--carte); color: var(--texte); }
.liste { padding-inline-start: 1.1em; margin: .4em 0 0; }
.liste li { margin: .35em 0; }
.feu { display: flex; justify-content: center; margin: 4px 0 20px; }
.feu svg { width: 96px; height: auto; }
.feu .lampe { fill: var(--ligne); opacity: .55; }
.feu.rouge .r, .feu.orange .o, .feu.vert .v { opacity: 1; }
.feu.rouge .r { fill: var(--rouge); }
.feu.orange .o { fill: var(--orange); }
.feu.vert .v { fill: var(--vert); }
.resultat h1 { text-align: center; font-size: 34px; margin-bottom: .1em; }
.resultat .sous { text-align: center; font-weight: 600; margin: 0 0 18px; }
.resultat.rouge h1, .resultat.rouge .sous { color: var(--rouge); }
.resultat.orange h1, .resultat.orange .sous { color: var(--orange); }
.resultat.vert h1, .resultat.vert .sous { color: var(--vert); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.puces li { border: 1px solid var(--or); color: var(--primaire); padding: 6px 12px; border-radius: 99px; font-size: 15px; }
.bloc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.bloc h2 { font-size: 19px; }
.alerte { border-radius: 14px; border: 2px solid var(--rouge); padding: 16px; margin-bottom: 18px; }
.alerte h2 { color: var(--rouge); font-size: 19px; margin-bottom: .3em; }
.petit { color: var(--doux); font-size: 14px; }
@media (max-width: 420px) { .question { font-size: 20px; } .resultat h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Page de question : Oui / Non toujours en bas de l'écran */
main:has(.carte-question) { display: flex; flex-direction: column; }
.carte-question { flex: 1; display: flex; flex-direction: column; min-height: calc(100dvh - 150px); }
.carte-question .question { flex: 1; display: flex; align-items: center; font-size: clamp(28px, 8vw, 38px); line-height: 1.3; margin: 0 0 24px; }
.carte-question .question > span, .carte-question .question { overflow-wrap: anywhere; }
.carte-question .choix { margin-top: auto; gap: 14px; }
.carte-question .btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; font-size: 28px; border-radius: 20px; }
.led { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.btn.oui { border-color: var(--vert); color: #d6f7e6; background: rgba(63, 185, 122, .12); box-shadow: 0 0 22px rgba(63, 185, 122, .25) inset; }
.btn.oui .led { background: var(--vert); box-shadow: 0 0 10px 3px rgba(63, 185, 122, .8); }
.btn.oui:hover, .btn.oui.choisi { background: rgba(63, 185, 122, .3); color: #fff; }
.btn.non { border-color: var(--rouge); color: #ffdad7; background: rgba(239, 91, 82, .12); box-shadow: 0 0 22px rgba(239, 91, 82, .25) inset; }
.btn.non .led { background: var(--rouge); box-shadow: 0 0 10px 3px rgba(239, 91, 82, .8); }
.btn.non:hover, .btn.non.choisi { background: rgba(239, 91, 82, .3); color: #fff; }

/* Pages de résultat : blocs, halo et boutons d'action */
.resultat { --n: var(--vert); display: grid; gap: 16px; }
.resultat.orange { --n: var(--orange); }
.resultat.rouge { --n: var(--rouge); }
.resultat > * { animation: monte .5s ease both; }
.resultat > *:nth-child(2) { animation-delay: .08s; }
.resultat > *:nth-child(3) { animation-delay: .16s; }
.resultat > *:nth-child(4) { animation-delay: .24s; }
.resultat > *:nth-child(5) { animation-delay: .32s; }
.resultat > *:nth-child(6) { animation-delay: .4s; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero { text-align: center; padding: 8px 0 4px; }
.hero h1 { font-size: 40px; color: var(--n); margin: 0 0 .1em; }
.hero .sous { color: var(--n); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.hero .message { font-size: 20px; margin: 0; }
.feu { position: relative; }
.feu .halo { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--n) 55%, transparent) 0%, transparent 65%); animation: halo 2.6s ease-in-out infinite; }
.feu svg { position: relative; }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.tuiles { display: grid; gap: 10px; }
.tuile { display: flex; align-items: center; gap: 14px; background: var(--carte); border: 1px solid var(--ligne); border-inline-start: 4px solid var(--n); border-radius: 16px; padding: 14px 16px; }
.tuile p { margin: 0; font-weight: 600; line-height: 1.35; }
.tuile .ico { font-size: 28px; flex: none; }
.bloc-carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px; padding: 18px; }
.bloc-carte h2 { font-size: 18px; margin-bottom: .5em; color: var(--or); }
.bloc-carte p { margin: 0; font-size: 18px; }
.bloc-carte.conseil { background: linear-gradient(135deg, color-mix(in srgb, var(--n) 22%, var(--carte)), var(--carte)); border-color: color-mix(in srgb, var(--n) 55%, var(--ligne)); }
.bloc-carte .puces { margin-top: 4px; }
.puces li { background: color-mix(in srgb, var(--or) 10%, transparent); }
.ctas { display: grid; gap: 12px; }
.cta { display: flex; flex-direction: column; gap: 2px; text-decoration: none; text-align: center; padding: 18px 16px; border-radius: 18px; border: 2px solid var(--or); color: var(--texte); transition: transform .1s ease; }
.cta strong { font-size: 19px; }
.cta span { font-size: 14px; opacity: .85; }
.cta.plein { background: var(--or); color: var(--sur-primaire); animation: pulse 2.4s ease-in-out infinite; }
.cta:active { transform: scale(.98); }
.cta:focus-visible { outline: 3px solid var(--texte); outline-offset: 3px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--or) 55%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.avertissement { text-align: center; margin: 6px 0 0; }
.alerte { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .resultat > *, .feu .halo, .cta.plein { animation: none !important; } }
.partage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.partage-actions .btn { flex: 1 1 120px; min-height: 48px; padding: 12px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.partage .btn.plein { color: var(--sur-primaire); }

/* Page de paiement */
.paiement { display: grid; gap: 16px; }
.paiement > * { animation: monte .5s ease both; }
.demo { text-align: center; font-size: 13px; color: var(--sur-primaire); background: var(--orange); border-radius: 99px; padding: 4px 12px; margin: 0 auto; }
.logo-attente { --n: var(--or); position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.logo-attente .halo { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--n) 45%, transparent) 0%, transparent 65%); animation: halo 2.6s ease-in-out infinite; }
.logo-attente img { position: relative; border-radius: 24px; }
.paiement .hero h1 { color: var(--texte); font-size: 34px; }
.prix { appearance: none; width: 100%; cursor: pointer; position: relative; overflow: hidden; font: inherit; color: var(--texte); text-align: center;
  background: var(--carte); border: 1.5px solid color-mix(in srgb, var(--or) 70%, transparent); border-radius: 20px; padding: 20px 18px;
  animation: led-boite 2.6s ease-in-out infinite; transition: transform .1s ease; }
.prix:active { transform: scale(.98); }
.prix:focus-visible { outline: 3px solid var(--texte); outline-offset: 3px; }
.prix::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--or) 28%, transparent), transparent); animation: led-reflet 3.6s ease-in-out infinite; }
.prix strong { display: block; font: 700 46px/1.1 ui-rounded, "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--texte); }
@keyframes led-boite { 0%, 100% { box-shadow: 0 0 10px 0 color-mix(in srgb, var(--or) 25%, transparent), inset 0 0 14px 0 color-mix(in srgb, var(--or) 10%, transparent); }
  50% { box-shadow: 0 0 26px 3px color-mix(in srgb, var(--or) 50%, transparent), inset 0 0 22px 0 color-mix(in srgb, var(--or) 20%, transparent); } }
@keyframes led-reflet { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .prix, .prix::after { animation: none !important; } }
.prix span { display: block; margin-top: 6px; color: var(--doux); font-size: 15px; letter-spacing: .02em; }
.paiement .cta { width: 100%; font: inherit; cursor: pointer; }
.puces-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.puces-liste li { position: relative; padding-inline-start: 38px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.puces-liste li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--or); }
.puces-liste li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 6px; width: 6px; height: 12px; border: solid var(--sur-primaire); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.secu { text-align: center; margin: 0; }
@media (prefers-reduced-motion: reduce) { .paiement > *, .logo-attente .halo { animation: none !important; } }

/* Écrans de transition entre les parties */
.chapitre { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 22px 22px; flex: 1; min-height: calc(100dvh - 150px); }
main:has(.chapitre) { display: flex; flex-direction: column; }
.chapitre .anneau { margin-top: auto; }
.chapitre .btn { margin-top: auto; }
.chapitres-apercu { display: grid; gap: 18px; }
.chapitres-apercu .chapitre { min-height: 0; }
.chapitre h1 { font-size: 34px; margin: 0; }
.chapitre .message { font-size: 19px; margin: 0; color: var(--doux); }
.anneau { position: relative; width: 150px; height: 150px; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau-fond, .anneau-arc { fill: none; stroke-width: 9; }
.anneau-fond { stroke: var(--ligne); }
.anneau-arc { stroke: var(--or); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.3, .7, .2, 1); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--or) 60%, transparent)); }
.anneau-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 700 34px ui-rounded, "Avenir Next", system-ui, sans-serif; }
.chapitres-apercu { display: grid; gap: 18px; }
.etiquette .pct { float: inline-end; color: var(--doux); }
@media (prefers-reduced-motion: reduce) { .anneau-arc { transition: none; } }

.desc { text-align: center; color: var(--doux); font-size: 17px; margin: -8px 0 20px; }

/* Choix de la langue */
.choix-langue { text-align: center; padding: 32px 22px; flex: 1; min-height: calc(100dvh - 150px); display: flex; flex-direction: column; justify-content: center; }
main:has(.choix-langue) { display: flex; flex-direction: column; }
.choix-langue h1 { font-size: 34px; margin-bottom: .2em; }
.langues { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.langue { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 140px; font: inherit; color: var(--texte);
  background: var(--fond); border: 2px solid var(--ligne); border-radius: 20px; cursor: pointer; transition: transform .1s ease, border-color .15s ease, box-shadow .15s ease; }
.langue:hover, .langue:focus-visible { border-color: var(--or); box-shadow: 0 0 18px color-mix(in srgb, var(--or) 30%, transparent); outline: none; }
.langue:active { transform: scale(.97); }
.drapeau { font-size: 46px; line-height: 1; }
.langue-nom { font-size: 22px; font-weight: 700; }
.langue-info { margin-top: 20px; display: grid; gap: 12px; }
.langue-info p { margin: 0; font-size: 18px; color: var(--doux); }

/* Page « Mon histoire » */
.apropos { display: grid; gap: 22px; }
.apropos > * { animation: monte .5s ease both; }
.apropos > *:nth-child(2) { animation-delay: .1s; }
.apropos > *:nth-child(3) { animation-delay: .2s; }
.apropos > *:nth-child(4) { animation-delay: .3s; }
.apropos .hero h1 { color: var(--texte); font-size: 32px; margin-top: 8px; }
.gros-chiffre { display: grid; justify-items: center; margin: 18px auto 6px; }
.gros-chiffre small { text-transform: uppercase; letter-spacing: .14em; color: var(--doux); font-size: 13px; }
.gros-chiffre strong { font: 700 56px/1 ui-rounded, "Avenir Next", system-ui, sans-serif; color: var(--texte); letter-spacing: -.03em; }
.gros-chiffre span { color: var(--or); font-weight: 600; font-size: 18px; letter-spacing: .04em; padding-top: 6px; margin-top: 8px; border-top: 1px solid color-mix(in srgb, var(--or) 60%, transparent); min-width: 120px; text-align: center; }
.tampon { justify-self: center; display: grid; gap: 2px; text-align: center; padding: 14px 30px; border: 3px solid var(--or); border-radius: 16px; transform: rotate(-3deg);
  color: var(--or); font: 800 26px/1.1 ui-rounded, "Avenir Next", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 0 0 4px var(--fond), 0 0 0 6px color-mix(in srgb, var(--or) 50%, transparent); }
.tampon span:last-child { font-size: 15px; letter-spacing: .12em; }
.techno { text-align: center; margin: 0; }
.signature { margin: 8px 0 0; text-align: center; font: 600 26px/1.2 "Iowan Old Style", Palatino, Georgia, serif; color: var(--texte); }
.signature::before { content: ""; display: block; width: 48px; height: 2px; margin: 0 auto 14px; background: var(--or); }
 }
@media (prefers-reduced-motion: reduce) { .apropos > * { animation: none !important; } }

/* Formulaire de carte intégré (champs fournis par Stripe) */
.prix-fixe { cursor: default; animation: led-boite 2.6s ease-in-out infinite; }
.formulaire-carte { display: grid; gap: 14px; text-align: start; }
.formulaire-carte label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--doux); }
.ligne-champs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.champ-stripe { background: var(--carte); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 16px 14px; min-height: 54px; transition: border-color .15s ease, box-shadow .15s ease; }
.champ-stripe.actif { border-color: var(--or); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 25%, transparent); }
.portefeuille { display: grid; gap: 12px; }
.portefeuille-bouton { min-height: 56px; }
.maquette-portefeuille { display: grid; place-items: center; min-height: 56px; border-radius: 12px; background: #fff; color: #111; font-weight: 700; letter-spacing: .04em; }
.ou-carte { margin: 0; text-align: center; font-size: 14px; color: var(--doux); display: flex; align-items: center; gap: 12px; }
.ou-carte::before, .ou-carte::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.formulaire-carte .cta { width: 100%; font: inherit; cursor: pointer; }
.formulaire-carte .cta:disabled { opacity: .45; cursor: not-allowed; animation: none; }
.erreur-paiement { min-height: 1.4em; color: var(--rouge); text-align: start; margin: 0; }

/* Paiement réussi + compte à rebours */
.reussite { justify-content: center; }
.reussite h1 { color: var(--vert); margin: 8px 0 0; }
.coche { position: relative; width: 110px; height: 110px; border-radius: 50%; border: 5px solid var(--vert); background: color-mix(in srgb, var(--vert) 14%, transparent);
  box-shadow: 0 0 32px color-mix(in srgb, var(--vert) 45%, transparent); animation: entre .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.coche::after { content: ""; position: absolute; left: 33px; top: 16px; width: 26px; height: 52px; border: solid var(--vert); border-width: 0 8px 8px 0; transform: rotate(45deg); border-radius: 3px; }
.reussite .message { font-size: 22px; min-height: 1.4em; }
.reussite .message.pret { color: var(--or); font-weight: 700; }
.decompte { font: 800 120px/1 ui-rounded, "Avenir Next", system-ui, sans-serif; color: var(--or); min-height: 130px; text-shadow: 0 0 30px color-mix(in srgb, var(--or) 50%, transparent); }
.decompte.pop { animation: pop-chiffre .9s ease-out both; }
@keyframes entre { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pop-chiffre { 0% { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(.85); opacity: .35; } }
.erreur-paiement strong { display: block; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .coche, .decompte.pop { animation: none !important; } }

.resultats-apercu { display: grid; gap: 44px; }
.resultats-apercu > .resultat { padding-bottom: 36px; border-bottom: 2px dashed var(--ligne); }
.resultats-apercu > .resultat > * { animation: none; }
.maquette-champ { color: var(--texte-doux, #8d9ab8); opacity: .7; }

.portrait { margin: 14px auto 6px; text-align: center; }
.portrait img { width: 168px; height: 168px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 3px solid var(--or); box-shadow: 0 0 0 6px color-mix(in srgb, var(--or) 18%, transparent), 0 10px 30px rgba(0,0,0,.45); }
.portrait figcaption { margin-top: 10px; font: 600 18px/1.2 "Iowan Old Style", Palatino, Georgia, serif; color: var(--texte); }
.avant { display: grid; gap: 22px; }

.citation { margin: 18px 0 14px; padding: 4px 6px; text-align: center; font: 600 24px/1.35 "Iowan Old Style", Palatino, Georgia, serif; color: var(--or); }

.bilan { text-align: center; }
.langues > .langue:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Arabe : les lettres sont liées, pas d'espacement entre elles ; étiquettes plus grandes pour rester lisibles */
:root[lang="ar"] .etiquette, :root[lang="ur"] .etiquette { font-size: 20px; letter-spacing: 0; font-weight: 700; }
:root[lang="ar"] .tampon span, :root[lang="ar"] .gros-chiffre span, :root[lang="ur"] .tampon span, :root[lang="ur"] .gros-chiffre span { letter-spacing: 0; }
:root[lang="ar"] .apropos .etiquette, :root[lang="ur"] .apropos .etiquette { font-size: 36px; margin-bottom: 18px; }

.message.fort { font-weight: 700; color: var(--texte); }
.citation { padding: 16px 14px; border-block: 2px solid var(--or); margin: 22px 0 10px; }

/* Page « Mon histoire » : le titre de la page est un vrai gros titre, dans toutes les langues */
.apropos .etiquette { font-size: 34px; font-weight: 700; letter-spacing: .01em; text-transform: none; margin-bottom: 18px; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
:root[lang="ar"] .apropos .etiquette, :root[lang="ur"] .apropos .etiquette { font-size: 36px; letter-spacing: 0; font-family: inherit; }

/* Page de choix de langue : tout remonte pour que les sept langues soient visibles sans défiler ; les drapeaux gardent leur taille */
body:has(.choix-langue) .entete { font-size: 26px; padding: 16px 20px 6px; }
body:has(.choix-langue) .entete img { width: 34px; height: 34px; }
main:has(.choix-langue) { padding-top: 6px; padding-bottom: 16px; }
.choix-langue { min-height: 0; justify-content: flex-start; padding: 16px 18px 18px; }
.choix-langue h1 { font-size: 24px; margin: 0 0 .25em; }
.choix-langue .lead { font-size: 14px; margin: 0 0 4px; line-height: 1.5; }
.choix-langue .langues { margin-top: 12px; gap: 10px; }
.choix-langue .langue { min-height: 100px; gap: 6px; }

/* Légende des 3 niveaux (page « Avant de commencer ») */
.legende { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--carte); }
.legende-titre { margin: 0 0 4px; text-align: center; font-weight: 700; color: var(--or); }
.legende-ligne { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); }
.legende-ligne div { display: grid; gap: 2px; }
.legende-ligne strong { font-size: 18px; }
.legende-ligne span:not(.led) { color: var(--doux); font-size: 15px; }
.legende .led { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.legende .vert .led { background: #4bd08b; box-shadow: 0 0 14px 2px rgba(75,208,139,.55); }
.legende .orange .led { background: #f0a23a; box-shadow: 0 0 14px 2px rgba(240,162,58,.55); }
.legende .rouge .led { background: #ef5b52; box-shadow: 0 0 14px 2px rgba(239,91,82,.55); }
.legende .vert strong { color: #4bd08b; } .legende .orange strong { color: #f0a23a; } .legende .rouge strong { color: #ef5b52; }

.transparence { text-align: center; max-width: 34em; margin-inline: auto; }

/* Lisibilité : textes, boutons et points importants plus gros (beaucoup de personnes ont une vue fatiguée) */
:root { --doux: #b3c0e0; }
body { font-size: 19px; line-height: 1.6; }
.btn { font-size: 20px; min-height: 58px; }
.btn.plein, .cta.plein { font-size: 22px; font-weight: 700; min-height: 64px; }
.petit { font-size: 16px; }
.pied { font-size: 15px; }
.etiquette { font-size: 16px; }
.hero .message { font-size: 22px; }
.hero .sous { font-size: 20px; }
.puces-liste li { font-size: 21px; }
.puces li { font-size: 17px; }
.bloc-carte p, .bloc h2, .bloc-carte h2 { font-size: 20px; }
.cta strong { font-size: 22px; }
.cta span { font-size: 16px; }
.desc { font-size: 19px; }
.formulaire-carte label { font-size: 17px; }
.demo { font-size: 15px; }
.tampon span:last-child { font-size: 17px; }
.partage-actions .btn { font-size: 18px; min-height: 54px; }
.legende-titre { font-size: 20px; }
.legende-ligne strong { font-size: 22px; }
.legende-ligne span:not(.led) { font-size: 18px; }
.legende .led { width: 30px; height: 30px; }
.choix-langue .lead { font-size: 15px; }
.langue-nom { font-size: 24px; }
.erreur-paiement { font-size: 17px; }
.groupe p { font-size: 20px; font-weight: 600; }
select { font-size: 19px; min-height: 54px; }

/* Page « Avant de commencer » : tout remonté pour voir vert, orange et rouge ensemble sans défiler */
main:has(.avant) { padding-top: 4px; }
.avant { gap: 12px; }
.avant .hero { margin: 0; }
.avant .hero .etiquette { font-size: 14px; margin-bottom: 2px; }
.avant .hero h1 { font-size: 28px; margin: 0 0 2px; }
.avant .hero .message { font-size: 17px; line-height: 1.35; }
.avant .legende { padding: 10px 12px; gap: 8px; }
.avant .legende-titre { font-size: 18px; margin: 0; }
.avant .legende-ligne { padding: 8px 12px; gap: 12px; }
.avant .legende-ligne strong { font-size: 21px; line-height: 1.15; }
.avant .legende-ligne span:not(.led) { font-size: 17px; line-height: 1.25; }
.avant .legende .led { width: 28px; height: 28px; }

/* Affiche « Deviens partenaire » (bas du résultat, français) */
.affiche { position: relative; margin: 14px 0 6px; padding: 34px 20px 30px; text-align: center; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1a3f8f 0%, #0a1740 55%, #060e24 100%); border: 1px solid #2f4fa6; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.affiche::before { content: ""; position: absolute; left: 50%; top: 0; width: 120px; height: 3px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #7aa5ff, transparent); }
.affiche h2 { margin: 0 0 16px; font: 700 28px/1.2 "Iowan Old Style", Palatino, Georgia, serif; color: #fff; letter-spacing: .01em; }
.affiche p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; color: #c9d6f5; }
.affiche .l2 { color: #fff; font-weight: 700; }
.affiche .l3 { margin-bottom: 22px; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: #8fb3ff; font-weight: 700; }
.btn-partenaire { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 32px; border-radius: 99px; border: 0; font-family: inherit; font-weight: 800; font-size: 20px; line-height: 1; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #5b8def, #7a4bff); box-shadow: 0 0 0 0 rgba(122, 140, 255, .55); animation: pulseP 2.4s infinite; }
@keyframes pulseP { 0% { box-shadow: 0 0 0 0 rgba(122, 140, 255, .55); } 70% { box-shadow: 0 0 0 18px rgba(122, 140, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(122, 140, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-partenaire { animation: none; } }
