/* =========================================================
   ExamenCode — feuille de style
   ========================================================= */
:root {
  --nuit: #0a1430;
  --nuit-2: #13214a;
  --bleu: #2257e8;
  --bleu-fonce: #1640b8;
  --bleu-pale: #edf2ff;
  --jaune: #ffcc1f;
  --jaune-fonce: #f2b800;
  --vert: #10a36a;
  --vert-pale: #e3f7ee;
  --rouge: #e5483b;
  --rouge-pale: #fde8e6;
  --texte: #111a2f;
  --gris: #5b6479;
  --gris-clair: #8a93a6;
  --fond: #f4f6fb;
  --carte: #ffffff;
  --bord: #e1e6ef;
  --rayon: 18px;
  --ombre: 0 1px 2px rgba(10, 20, 48, .06), 0 8px 24px rgba(10, 20, 48, .06);
  --ombre-forte: 0 30px 60px -20px rgba(10, 20, 48, .45);
  --titre: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--bleu); }
h1, h2, h3 { font-family: var(--titre); letter-spacing: -.02em; line-height: 1.1; }

.conteneur { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bord);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.entete.sombre { background: rgba(10, 20, 48, .82); border-bottom-color: rgba(255, 255, 255, .08); }
.entete.sombre .logo, .entete.sombre .nav a:not(.btn) { color: #fff; }
.entete.sombre .nav a:not(.btn):hover { color: var(--jaune); }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--titre); font-weight: 800; font-size: 1.4rem;
  text-decoration: none; color: var(--texte); letter-spacing: -.03em;
}
.logo b { color: var(--bleu); font-weight: 800; }
.entete.sombre .logo b { color: var(--jaune); }
.logo-icone {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--jaune); display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.logo-icone svg { width: 20px; height: 20px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--gris); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--bleu); }
.nav a.btn { color: var(--texte); padding: 10px 18px; font-size: .95rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  background: var(--bleu); color: #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--bleu-fonce); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-jaune { background: var(--jaune); color: var(--texte); box-shadow: 0 10px 30px -10px rgba(255, 204, 31, .8); }
.btn-jaune:hover { background: var(--jaune-fonce); }
.btn-contour { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 2px var(--bleu); }
.btn-contour:hover { background: var(--bleu-pale); }
.btn-fantome { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-fantome:hover { background: rgba(255, 255, 255, .18); }
.btn-grand { padding: 18px 30px; font-size: 1.08rem; border-radius: 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* =========================================================
   ACCUEIL
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(34, 87, 232, .55), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 204, 31, .14), transparent 60%),
    var(--nuit);
  color: #fff;
  margin-top: -68px; padding: 140px 0 120px;
}
.hero::after { /* ligne de route */
  content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 60px, transparent 60px 110px);
  animation: route 1.6s linear infinite; opacity: .45;
}
@keyframes route { to { background-position: -110px 0; } }

.hero .conteneur { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.pastille {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  padding: 7px 14px 7px 8px; border-radius: 99px; font-size: .88rem; font-weight: 600;
  margin-bottom: 22px;
}
.pastille b { background: var(--jaune); color: var(--texte); padding: 2px 9px; border-radius: 99px; font-size: .78rem; }

.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); margin: 0 0 22px; font-weight: 800; }
.hero h1 .surligne { color: var(--jaune); white-space: nowrap; }
.hero .accroche { font-size: 1.2rem; color: rgba(255, 255, 255, .8); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.garanties { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .72); font-size: .92rem; }
.garanties li::before { content: "✓"; color: var(--jaune); font-weight: 800; margin-right: 7px; }

/* Maquette d'une question dans le hero */
.maquette { position: relative; perspective: 1400px; }
.maquette-carte {
  background: #fff; color: var(--texte); border-radius: 22px; overflow: hidden;
  box-shadow: var(--ombre-forte), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform .5s ease;
}
.maquette:hover .maquette-carte { transform: rotateY(-3deg) rotateX(1deg); }
.maquette-haut { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 700; font-size: .9rem; }
.maquette-haut .chrono-mini { color: var(--bleu); }
.maquette-barre { height: 5px; background: var(--bord); }
.maquette-barre div { height: 100%; width: 62%; background: var(--bleu); }
.maquette-carte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.maquette-corps { padding: 18px; }
.maquette-corps p { margin: 0 0 12px; font-weight: 700; }
.maquette-rep { display: flex; align-items: center; gap: 10px; border: 2px solid var(--bord); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: .92rem; }
.maquette-rep span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--fond); font-weight: 800; font-size: .8rem; flex: none; }
.maquette-rep.on { border-color: var(--bleu); background: var(--bleu-pale); }
.maquette-rep.on span { background: var(--bleu); color: #fff; }

.flottant {
  position: absolute; background: #fff; color: var(--texte); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--ombre-forte); font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; gap: 10px;
  animation: flotte 5s ease-in-out infinite;
}
.flottant small { display: block; color: var(--gris); font-weight: 500; font-size: .78rem; }
.flottant .rond { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.flottant.f1 { left: -40px; bottom: -26px; }
.flottant.f1 .rond { background: var(--vert-pale); color: var(--vert); }
.flottant.f2 { right: -20px; top: -22px; animation-delay: -2.5s; }
.flottant.f2 .rond { background: #fff6d6; }
@keyframes flotte { 50% { transform: translateY(-10px); } }

/* ---------- Chiffres ---------- */
.chiffres { margin-top: -54px; position: relative; z-index: 2; }
.chiffres-grille {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre);
  border: 1px solid var(--bord);
}
.chiffre { padding: 26px 22px; text-align: center; }
.chiffre + .chiffre { border-left: 1px solid var(--bord); }
.chiffre strong { display: block; font-family: var(--titre); font-size: 2.3rem; font-weight: 800; color: var(--bleu); line-height: 1.1; }
.chiffre span { color: var(--gris); font-size: .93rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-titre { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.surtitre { display: inline-block; color: var(--bleu); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section h2, .section-titre h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 14px; font-weight: 800; }
.section-titre p, .sous-titre { color: var(--gris); font-size: 1.1rem; margin: 0; }
.sous-titre { text-align: center; margin-bottom: 40px; }

/* ---------- Défilé de photos ---------- */
.defile { padding: 80px 0 0; overflow: hidden; }
.defile-piste { display: flex; gap: 18px; width: max-content; animation: defile 70s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-piste figure { margin: 0; width: 300px; flex: none; border-radius: 16px; overflow: hidden; position: relative; box-shadow: var(--ombre); }
.defile-piste img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.defile-piste figcaption {
  position: absolute; left: 10px; bottom: 10px; background: rgba(10, 20, 48, .78); color: #fff;
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px;
}
@keyframes defile { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- Démo interactive ---------- */
.demo { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--bord); }
.demo-image { position: relative; }
.demo-image img { width: 100%; height: 100%; object-fit: cover; }
.demo-image .etiquette-photo { position: absolute; top: 16px; left: 16px; background: var(--jaune); color: var(--texte); font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 99px; }
.demo-corps { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.demo-corps h3 { font-size: 1.45rem; margin: 0 0 20px; }
.demo-compteur { position: absolute; top: 16px; right: 16px; background: rgba(10, 20, 48, .78); color: #fff; font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 99px; }
.demo-image img { transition: opacity .2s; }
.demo-retour { border-radius: 14px; padding: 16px 18px; margin-top: 8px; display: none; animation: apparait .3s ease; }
.demo-retour.visible { display: block; }
.demo-retour.ok { background: var(--vert-pale); }
.demo-retour.ko { background: var(--rouge-pale); }
.demo-retour strong { display: block; margin-bottom: 4px; }
.demo-retour p { margin: 0 0 12px; color: var(--texte); font-size: .95rem; }
.demo-retour a { font-weight: 700; }
.reponse.juste { border-color: var(--vert); background: var(--vert-pale); }
.reponse.juste .lettre { background: var(--vert); color: #fff; border-color: var(--vert); }
.reponse.erreur { border-color: var(--rouge); background: var(--rouge-pale); }
.reponse.erreur .lettre { background: var(--rouge); color: #fff; border-color: var(--rouge); }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Étapes ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: etape; }
.etape { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 30px; position: relative; box-shadow: var(--ombre); }
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--nuit); color: var(--jaune); font-family: var(--titre); font-weight: 800; font-size: 1.3rem;
  margin-bottom: 18px;
}
.etape h3 { margin: 0 0 8px; font-size: 1.25rem; }
.etape p { margin: 0; color: var(--gris); }

/* ---------- Bloc sombre « correction » ---------- */
.bloc-sombre { background: var(--nuit); color: #fff; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; }
.bloc-sombre::before { content: ""; position: absolute; width: 500px; height: 500px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(34, 87, 232, .5), transparent 65%); }
.bloc-sombre > * { position: relative; }
.bloc-sombre h2 { color: #fff; margin: 0 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.bloc-sombre .surtitre { color: var(--jaune); }
.bloc-sombre p { color: rgba(255, 255, 255, .75); font-size: 1.08rem; }
.liste-check { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.liste-check li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); }
.liste-check li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--jaune); color: var(--nuit); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 1px; }

.apercu-correction { background: #fff; color: var(--texte); border-radius: 18px; padding: 22px; box-shadow: var(--ombre-forte); transform: rotate(1.5deg); }
.apercu-correction .ligne { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.apercu-correction img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.apercu-correction p.q { margin: 6px 0 0; font-weight: 700; font-size: .98rem; color: var(--texte); }
.apercu-correction ul { list-style: none; padding: 0; margin: 12px 0; font-size: .93rem; }
.apercu-correction li { padding: 5px 0; color: var(--gris); }
.apercu-correction li.bonne { color: var(--vert); font-weight: 700; }
.apercu-correction li.fausse { color: var(--rouge); text-decoration: line-through; }
.apercu-correction .explication { font-size: .9rem; }
.apercu-correction .explication { color: var(--texte); }

/* ---------- Thèmes ---------- */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.theme {
  background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 18px;
  display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.theme:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.theme i { font-style: normal; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; flex: none; background: var(--bleu-pale); }

/* ---------- Tarifs ---------- */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tarif {
  background: #fff; border: 1px solid var(--bord); border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; position: relative; box-shadow: var(--ombre);
}
.tarif h3 { margin: 0; font-size: 1.2rem; }
.tarif .desc { color: var(--gris); font-size: .93rem; margin: 6px 0 0; }
.tarif .prix { font-family: var(--titre); font-size: 3rem; font-weight: 800; margin: 18px 0 4px; line-height: 1; letter-spacing: -.03em; }
.tarif .par-jour { color: var(--gris); font-size: .88rem; margin-bottom: 18px; }
.tarif ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; display: grid; gap: 10px; align-content: start; }
.tarif li { position: relative; padding-left: 24px; color: var(--texte); font-size: .96rem; }
.tarif li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 800; }
.tarif .btn { width: 100%; }
.tarif.vedette { background: var(--nuit); color: #fff; border-color: var(--nuit); transform: scale(1.04); box-shadow: var(--ombre-forte); }
.tarif.vedette .desc, .tarif.vedette .par-jour { color: rgba(255, 255, 255, .65); }
.tarif.vedette li { color: rgba(255, 255, 255, .92); }
.tarif.vedette li::before { color: var(--jaune); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--jaune); color: var(--texte); font-weight: 800; font-size: .8rem;
  padding: 5px 14px; border-radius: 99px;
}
.barre { text-decoration: line-through; color: var(--gris-clair); font-size: 1.2rem; font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.note-tarif { text-align: center; color: var(--gris); font-size: .9rem; margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--bleu); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--gris); }

/* ---------- Appel final ---------- */
.appel-final {
  position: relative; overflow: hidden; border-radius: 28px; padding: 80px 40px; text-align: center; color: #fff;
  background: linear-gradient(rgba(10, 20, 48, .72), rgba(10, 20, 48, .9)), url("../images/photos-perso/q378.jpg") center / cover;
}
.appel-final h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 14px; }
.appel-final p { color: rgba(255, 255, 255, .82); font-size: 1.12rem; margin: 0 auto 30px; max-width: 560px; }

/* ---------- Pied ---------- */
.pied { padding: 48px 0; color: var(--gris); font-size: .9rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.pied a { color: var(--gris); }
.pied p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
.js .revele { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .revele.vu { opacity: 1; transform: none; }

/* =========================================================
   EXAMEN
   ========================================================= */
.examen { max-width: 820px; margin: 28px auto 60px; padding: 0 20px; }
.examen.large { max-width: 1100px; }

.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.carte h3 { margin: 8px 0; }
.carte p { color: var(--gris); }
.aide { color: var(--gris); font-size: .92rem; }

/* Liste des examens */
.liste-titre { margin: 8px 0 6px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.grille-examens { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.carte-examen { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.carte-examen:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(10, 20, 48, .3); }
.carte-examen .vignette { position: relative; }
.carte-examen .vignette img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carte-examen.verrouille .vignette img { filter: grayscale(.6) brightness(.65); }
.carte-examen .vignette .etiquette { position: absolute; top: 12px; left: 12px; }
.carte-examen .vignette .numero { position: absolute; right: 14px; bottom: 8px; color: #fff; font-family: var(--titre); font-weight: 800; font-size: 2.4rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); line-height: 1; }
.carte-examen .contenu { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.carte-examen h3 { margin: 0; font-size: 1.12rem; }
.carte-examen p { margin: 0 0 14px; font-size: .9rem; }
.carte-examen .btn { margin-top: auto; width: 100%; padding: 12px; }

.bandeau-offre { margin-top: 22px; background: var(--nuit); color: #fff; border-radius: var(--rayon); padding: 22px 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bandeau-offre p { margin: 0; color: rgba(255, 255, 255, .8); }
.bandeau-offre strong { color: #fff; font-size: 1.1rem; display: block; }

/* Écran de départ */
.depart { text-align: center; padding: 0; overflow: hidden; }
.depart img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.depart .contenu { padding: 32px 28px 36px; }
.depart h1 { margin: 0 0 18px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.regles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.regles li { background: var(--fond); border: 1px solid var(--bord); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }

/* Question */
.barre-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; gap: 12px; }
.barre-haut .quitter { color: var(--gris); text-decoration: none; font-weight: 600; font-size: .9rem; }
.compteur { font-family: var(--titre); font-size: 1.15rem; }
.compteur span { color: var(--gris-clair); }
.chrono {
  display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid var(--bord); padding: 5px 14px 5px 5px; border-radius: 99px;
}
.chrono svg { width: 28px; height: 28px; transform: rotate(-90deg); }
.chrono circle { fill: none; stroke-width: 4; }
.chrono .fond-cercle { stroke: var(--bord); }
.chrono .arc { stroke: var(--bleu); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.chrono.urgent { color: var(--rouge); }
.chrono.urgent .arc { stroke: var(--rouge); }
.progression { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin-bottom: 18px; }
.progression i { height: 6px; border-radius: 3px; background: var(--bord); }
.progression i.fait { background: var(--bleu); }
.progression i.actuel { background: var(--jaune); }

.visuel {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon);
  display: flex; align-items: center; justify-content: center;
  height: 300px; margin-bottom: 22px; padding: 24px; box-shadow: var(--ombre);
}
.visuel img { max-height: 100%; max-width: 100%; object-fit: contain; }
.visuel.photo { height: auto; padding: 0; overflow: hidden; }
.visuel.photo img { width: 100%; aspect-ratio: 16 / 9; max-height: none; object-fit: cover; }

.question { font-size: 1.3rem; font-weight: 700; margin: 0 0 16px; font-family: var(--titre); letter-spacing: -.01em; line-height: 1.3; }
.question2 { margin-top: 26px; }

.reponse {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--carte); border: 2px solid var(--bord); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  font: inherit; font-size: 1.02rem; text-align: left; color: var(--texte);
  transition: border-color .12s, background .12s, transform .12s;
}
.reponse:hover { border-color: #a9bcf3; }
.reponse:active { transform: scale(.995); }
.reponse:disabled { cursor: default; }
.reponse .lettre {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800;
  background: var(--fond); border: 1px solid var(--bord);
}
.reponse.choisie { border-color: var(--bleu); background: var(--bleu-pale); }
.reponse.choisie .lettre { background: var(--bleu); color: #fff; border-color: var(--bleu); }

.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 18px; }
.actions .boutons { display: flex; gap: 10px; }
.raccourcis { color: var(--gris-clair); font-size: .82rem; }
.raccourcis kbd { background: #fff; border: 1px solid var(--bord); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font: inherit; font-weight: 700; color: var(--gris); }

@media (min-width: 981px) {
  .examen.en-cours { max-width: 1200px; }
  .zone-question { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
  .col-visuel { position: sticky; top: 88px; }
  .col-visuel .visuel { margin-bottom: 0; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .boutons .btn { flex: 1; }
}

/* Résultats */
.resultat { text-align: center; padding: 40px 24px; }
.resultat.reussi { background: linear-gradient(180deg, var(--vert-pale), #fff 70%); }
.resultat.rate { background: linear-gradient(180deg, var(--rouge-pale), #fff 70%); }
.resultat .message { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; margin: 0 0 18px; color: var(--texte); }
.anneau { width: 170px; height: 170px; margin: 0 auto 10px; position: relative; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 12; }
.anneau .fond-cercle { stroke: rgba(10, 20, 48, .08); }
.anneau .arc { stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.reussi .anneau .arc { stroke: var(--vert); }
.rate .anneau .arc { stroke: var(--rouge); }
.anneau .valeur { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--titre); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.anneau .valeur small { display: block; font-size: 1rem; color: var(--gris); font-weight: 600; margin-top: 4px; }
.resultat .boutons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

.bilan-themes { margin-top: 16px; }
.bilan-themes h2 { font-size: 1.25rem; margin: 0 0 16px; }
.ligne-theme { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 12px; font-size: .93rem; font-weight: 600; }
.ligne-theme .jauge { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--fond); overflow: hidden; }
.ligne-theme .jauge div { height: 100%; border-radius: 99px; background: var(--vert); }
.ligne-theme .jauge div.moyen { background: var(--jaune); }
.ligne-theme .jauge div.faible { background: var(--rouge); }

.filtres { display: flex; gap: 8px; margin: 28px 0 14px; flex-wrap: wrap; }
.filtre { border: 1px solid var(--bord); background: #fff; border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--gris); }
.filtre.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }

.correction .carte { margin-bottom: 14px; padding: 0; overflow: hidden; }
.correction .entete-q { display: grid; grid-template-columns: 220px 1fr; }
.correction .entete-q img { width: 100%; height: 100%; min-height: 124px; object-fit: cover; }
.correction .entete-q img.panneau { object-fit: contain; padding: 16px; background: var(--fond); }
.correction .entete-q .texte-q { padding: 18px 20px; }
.correction .carte .question { font-size: 1.05rem; margin: 8px 0 0; }
.correction .details { padding: 0 20px 18px; }
.etiquette { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.etiquette.ok { background: var(--vert-pale); color: var(--vert); }
.etiquette.ko { background: var(--rouge-pale); color: var(--rouge); }
.etiquette.sombre { background: rgba(10, 20, 48, .78); color: #fff; }
.correction ul { margin: 12px 0; padding: 0; list-style: none; }
.correction li { padding: 6px 0 6px 28px; position: relative; color: var(--gris); }
.correction li::before { content: "○"; position: absolute; left: 4px; }
.correction li.bonne { color: var(--vert); font-weight: 700; }
.correction li.bonne::before { content: "✓"; }
.correction li.fausse { color: var(--rouge); }
.correction li.fausse::before { content: "✕"; }
.ta-rep { font-size: .78rem; font-weight: 700; background: var(--fond); color: var(--gris); padding: 1px 8px; border-radius: 99px; margin-left: 6px; display: inline-block; }
.explication { background: #fffaea; border: 1px solid #fbe9a8; border-radius: 12px; padding: 14px 16px; margin-top: 6px; color: var(--texte); font-size: .96rem; }

.paywall { text-align: center; padding: 48px 28px; background: var(--nuit); color: #fff; border: 0; margin-top: 16px; }
.paywall h2 { margin-top: 0; color: #fff; font-size: 1.8rem; }
.paywall p { color: rgba(255, 255, 255, .78); }
.paywall a:not(.btn) { color: rgba(255, 255, 255, .7); }

/* ---------- Pages texte (crédits) ---------- */
table { width: 100%; border-collapse: collapse; background: var(--carte); font-size: .85rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
.tableau { overflow-x: auto; }
.page-texte { max-width: 760px; }
.page-texte h1 { font-size: 2.4rem; }
.page-texte h2 { font-size: 1.5rem; margin-top: 36px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero .conteneur { grid-template-columns: 1fr; gap: 48px; }
  .maquette { max-width: 520px; margin: 0 auto; width: 100%; }
  .bloc-sombre { grid-template-columns: 1fr; padding: 44px 28px; gap: 36px; }
  .tarifs { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tarif.vedette { transform: none; order: -1; }
  .demo { grid-template-columns: 1fr; }
  .demo-image img { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 110px 0 100px; }
  .hero .accroche { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .flottant.f1 { left: -4px; bottom: -24px; }
  .flottant.f2 { right: -4px; top: -20px; }
  .maquette-carte, .maquette:hover .maquette-carte { transform: none; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .chiffre:nth-child(3) { border-left: 0; }
  .chiffre:nth-child(n+3) { border-top: 1px solid var(--bord); }
  .chiffre strong { font-size: 1.9rem; }
  .section { padding: 68px 0; }
  .etapes { grid-template-columns: 1fr; }
  .themes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .theme { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: .88rem; }
  .demo-corps { padding: 24px; }
  .defile { padding-top: 60px; }
  .defile-piste figure { width: 230px; }
  .appel-final { padding: 56px 22px; border-radius: 22px; }
  .bloc-sombre { border-radius: 22px; }
  .apercu-correction { transform: none; }
  .visuel { height: 220px; }
  .question { font-size: 1.15rem; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .boutons .btn { flex: 1; }
  .raccourcis { display: none; }
  .correction .entete-q { grid-template-columns: 1fr; }
  .correction .entete-q img { aspect-ratio: 16 / 9; height: auto; }
  .correction .entete-q img.panneau { aspect-ratio: auto; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revele { opacity: 1; transform: none; }
}
