/* Diagnostic IA v2 : forme inspirée de speyy.com (26/10/2026) : ivoire, nuit, peinture chaude,
   trame de points, Instrument Serif XXL et italique d'accent, pilules sombres, effet à chaque clic.
   Jetons repris de DEV/Speyy-landing-page-v3/src/app/globals.css. */

:root {
  --ivory: #F5F0EB;
  --paper: #FBF8F3;
  --ink: #1A1714;
  --ink-soft: #5B544C;
  --ink-faint: #8C847A;
  --terra: #AA4F13;
  --terra-soft: #D9A27C;
  --gold: #C4A265;
  --night: #14110F;
  --night-2: #1E1A16;
  --night-ink: #EFE8DE;
  --light: #F2C27B;
  --line: rgba(26, 23, 20, 0.12);
  --line-night: rgba(239, 232, 222, 0.14);
  --serif: "Instrument Serif", "Apple Garamond", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 8px; }
.cache { display: none !important; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
em { font-style: italic; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 24px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(0.96); }
a.btn { text-decoration: none; }
.btn-sombre { background: var(--ink); color: var(--ivory); box-shadow: 0 10px 30px -12px rgba(26,23,20,.6); }
.btn-sombre:hover { background: #2a2520; }
.btn-sombre .fleche { transition: transform .3s var(--ease); }
.btn-sombre:hover .fleche { transform: translateX(4px); }
.btn-clair { background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px -14px rgba(0,0,0,.5); }
.btn-clair:hover { background: #fff; }
.btn-fantome { background: transparent; color: var(--ink-soft); padding: 10px 14px; }
.btn-fantome:hover { color: var(--ink); background: rgba(26,23,20,.05); }
.nuit .btn-fantome { color: rgba(239,232,222,.7); }
.nuit .btn-fantome:hover { color: var(--night-ink); background: rgba(239,232,222,.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.occupe { pointer-events: none; }
.btn.occupe .fleche { animation: respire 1s var(--ease-io) infinite; }

/* ---------- navigation en pilule ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 1px 0 rgba(26,23,20,.06), 0 12px 40px -18px rgba(26,23,20,.45);
  max-width: calc(100vw - 24px);
  transition: background .4s, box-shadow .4s;
}
.nav-marque { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.nav-marque b { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; }
.nav-marque span { color: var(--ink-faint); font-size: 10px; }
.nav-etapes { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-etapes li {
  font-size: 13px; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  display: flex; gap: 7px; align-items: center; transition: background .35s var(--ease), color .35s; white-space: nowrap;
}
.nav-etapes li i { font-style: normal; font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.nav-etapes li.actif { background: var(--ink); color: var(--ivory); }
.nav-etapes li.fait { color: var(--ink); }
@media (max-width: 900px) {
  .nav { gap: 10px; padding-left: 16px; }
  .nav-marque span { display: none; }
  .nav-etapes li:not(.actif) { display: none; }
}

/* ---------- écrans ---------- */
.ecran { min-height: 100svh; position: relative; }
.ecran.entre { animation: entree .9s var(--ease) backwards; }
@keyframes entree { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.nuit { background: var(--night); color: var(--night-ink); }

/* titres qui montent derrière un masque */
.ligne { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ligne > span { display: inline-block; }
.monte .ligne > span { animation: monte 1.1s var(--ease) both; }
.monte .ligne:nth-child(2) > span { animation-delay: .12s; }
.monte .ligne:nth-child(3) > span { animation-delay: .24s; }
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
.apparait { animation: apparait .9s var(--ease) both; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes respire { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- accueil ---------- */
.hero { overflow: hidden; display: flex; align-items: center; color: var(--ivory); }
.hero-peinture {
  position: absolute; inset: -2%; background: url("assets/paysage.jpg") center 60% / cover no-repeat;
  animation: derive 24s ease-in-out infinite alternate; transform-origin: 60% 60%;
}
@keyframes derive { from { transform: scale(1.0) translate3d(0,0,0); } to { transform: scale(1.07) translate3d(-1.2%, -0.6%, 0); } }
.hero-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,15,.82) 0%, rgba(20,17,15,.62) 38%, rgba(20,17,15,.12) 70%, rgba(20,17,15,0) 100%),
    linear-gradient(0deg, rgba(20,17,15,.55) 0%, rgba(20,17,15,0) 40%);
}
.hero-grille {
  position: relative; width: 100%; padding: 120px var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  max-width: 1480px; margin: 0 auto;
}
.hero .surtitre { color: rgba(245,240,235,.75); margin: 0 0 22px; }
.titre-xxl {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 0.95;
  font-size: clamp(54px, 8.2vw, 132px); margin: 0;
}
.titre-xxl em, .titre-xl em { color: var(--light); }
.hero-sous { max-width: 560px; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: rgba(245,240,235,.86); margin: 28px 0 32px; }
.champ-site {
  display: flex; align-items: center; gap: 6px; max-width: 620px;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.champ-site:focus-within { box-shadow: 0 0 0 3px rgba(242,194,123,.55), 0 24px 60px -24px rgba(0,0,0,.7); }
.champ-site .mono { color: var(--ink-faint); letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.champ-site input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 17px; padding: 12px 0; }
.champ-site input::placeholder { color: var(--ink-faint); }
.hero-description { max-width: 620px; margin-top: 14px; }
.hero-description p { color: var(--light); margin: 0 0 8px; }
.hero-description textarea {
  width: 100%; border: 0; border-radius: 20px; padding: 14px 18px; background: var(--paper); color: var(--ink); resize: vertical;
}
.hero-message { min-height: 22px; margin: 14px 0 0; color: rgba(245,240,235,.8); font-size: 14px; }
.hero-confidentialite { margin: 10px 0 0; font-size: 13px; color: rgba(245,240,235,.7); }
.lien { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien:hover { color: var(--light); }
.dialogue { border: 0; border-radius: var(--radius); padding: 30px 30px 24px; max-width: 560px; width: calc(100vw - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.dialogue::backdrop { background: rgba(20,17,15,.55); }
.dialogue h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 16px; }
.dialogue dl { margin: 0 0 22px; }
.dialogue dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-top: 14px; }
.dialogue dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.hero-etapes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 34px 0 0; color: rgba(245,240,235,.7); }
.hero-etapes b { color: var(--light); font-weight: 500; margin-right: 6px; }

.carte-echelle {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 26px 26px 20px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); max-width: 470px; justify-self: end; width: 100%;
}
.carte-echelle-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.carte-echelle-tete h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; }
.carte-echelle-tete .mono { color: var(--ink-faint); font-size: 10px; }
.stades { list-style: none; margin: 0; padding: 0; }
.stades li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 10px; border-radius: 14px; transition: background .5s var(--ease), color .5s;
}
.stades .n { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--ink-faint); transition: color .5s; }
.stades .t b { display: block; font-weight: 500; font-size: 14px; }
.stades .t span { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.stades .d { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-faint); text-transform: uppercase; text-align: right; }
.stades li.allume { background: var(--ink); color: var(--ivory); }
.stades li.allume .n { color: var(--light); }
.stades li.allume .t span, .stades li.allume .d { color: rgba(245,240,235,.72); }
.carte-echelle-pied { margin: 12px 4px 0; font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 980px) {
  .hero-grille { grid-template-columns: 1fr; padding-top: 108px; }
  .carte-echelle { justify-self: start; }
  .hero-voile { background: linear-gradient(180deg, rgba(20,17,15,.78) 0%, rgba(20,17,15,.6) 55%, rgba(20,17,15,.75) 100%); }
}
@media (max-width: 520px) {
  .champ-site { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 18px; }
  .champ-site input { flex-basis: 60%; }
  .champ-site .btn { width: 100%; justify-content: center; }
  .carte-echelle { padding: 20px 16px 14px; }
  .stades li { grid-template-columns: 28px 1fr; }
  .stades .d { display: none; }
}

/* ---------- lecture du site (nuit) ---------- */
.lecture { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.toile-points { position: absolute; inset: 0; width: 100%; height: 100%; }
.lecture-centre { position: relative; width: min(760px, 100%); padding: 120px var(--gutter) 80px; }
.lecture-centre .mono { color: var(--light); margin: 0 0 16px; }
.titre-xl { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.0; font-size: clamp(42px, 6vw, 84px); margin: 0; overflow-wrap: anywhere; }
.lecture-phase { color: rgba(239,232,222,.75); font-size: 17px; margin: 18px 0 30px; }
.pages-lues { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-night); }
.pages-lues li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line-night);
  animation: apparait .7s var(--ease) both;
}
.pages-lues .i { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.pages-lues .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pages-lues .u { font-family: var(--mono); font-size: 11px; color: rgba(239,232,222,.45); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pages-lues .ok { color: var(--light); }
.analyse { margin-top: 34px; }
.analyse-ligne { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.analyse-ligne b { font-weight: 500; font-size: 18px; }
.chrono { font-family: var(--mono); color: var(--light); font-size: 13px; }
.citation { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: rgba(239,232,222,.9); margin: 22px 0 0; min-height: 3.8em; transition: opacity .6s; }
.citation small { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .1em; color: rgba(239,232,222,.45); margin-top: 10px; text-transform: uppercase; }
@media (max-width: 520px) { .pages-lues .u { display: none; } .pages-lues li { grid-template-columns: 30px 1fr; } }

/* ---------- pans ---------- */
.clair { background: var(--ivory); }
.pans { padding: 120px var(--gutter) 140px; max-width: 1360px; margin: 0 auto; }
.pans-tete .mono { color: var(--terra); margin: 0 0 18px; }
.pans-tete .titre-xl em { color: var(--terra); }
.pans-activite { font-size: 18px; color: var(--ink-soft); max-width: 760px; margin: 18px 0 0; }
.faits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.faits li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ink-soft); max-width: 100%; }
.consigne { margin: 44px 0 20px; font-size: 15px; color: var(--ink-soft); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.consigne b { color: var(--ink); font-weight: 500; }
.grille-pans { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; perspective: 1400px; }
.carte-pan {
  position: relative; background: var(--paper); border-radius: 24px; padding: 22px 22px 20px;
  border: 1px solid var(--line); cursor: pointer; text-align: left;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s;
  animation: carte 0.9s var(--ease) backwards;
  transform-style: preserve-3d;
}
@keyframes carte { from { opacity: 0; transform: translateY(30px) rotateX(8deg); } to { opacity: 1; transform: none; } }
.carte-pan:hover { box-shadow: 0 30px 60px -30px rgba(26,23,20,.45); }
.carte-pan-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.carte-pan-haut .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--terra); }
.bascule { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; background: var(--ivory); font-size: 12.5px; }
.bascule i { width: 26px; height: 16px; border-radius: 999px; background: var(--ink); position: relative; transition: background .3s; }
.bascule i::after { content: ""; position: absolute; top: 2px; left: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); transition: left .3s var(--ease); }
.carte-pan h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; }
.carte-pan ul { list-style: none; padding: 0; margin: 0 0 16px; }
.carte-pan li { position: relative; padding: 7px 0 7px 18px; font-size: 14px; border-top: 1px dashed var(--line); }
.carte-pan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.carte-pan .pourquoi { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--ink-soft); margin: 0; }
.carte-pan.retire { opacity: .5; }
.carte-pan.retire .bascule i { background: #c9c1b6; }
.carte-pan.retire .bascule i::after { left: 2px; }
.carte-pan.retire h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.carte-ajout { border: 1.5px dashed rgba(26,23,20,.25); background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 220px; cursor: default; }
.carte-ajout h3 { margin: 0; }
.carte-ajout .rangee { display: flex; gap: 8px; }
.carte-ajout input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 12px 16px; outline: none; }
.carte-ajout input:focus { border-color: var(--terra); }
.carte-ajout .btn { padding: 12px 18px; }
.barre-bas {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 18px; background: var(--paper); border-radius: 999px;
  padding: 8px 8px 8px 24px; box-shadow: 0 20px 50px -20px rgba(26,23,20,.5); max-width: calc(100vw - 24px);
}
.barre-bas .compte { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.barre-bas .compte b { color: var(--ink); font-weight: 500; }
@media (max-width: 520px) { .barre-bas .compte { display: none; } .barre-bas { padding-left: 8px; } }

/* ---------- questions ---------- */
.questions { padding: 104px var(--gutter) 60px; }
.q-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 64px); max-width: 1360px; margin: 0 auto; align-items: start; }
.q-fil { height: 3px; background: rgba(26,23,20,.08); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.q-fil span { display: block; height: 100%; background: var(--terra); width: 0; transition: width .8s var(--ease); }
.q-chapitre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink-soft); margin-bottom: 22px; flex-wrap: wrap; }
.q-chapitre b { color: var(--terra); font-weight: 500; }

.q-ouverture { margin-bottom: 30px; }
.q-ouverture h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 92px); line-height: .95; letter-spacing: -0.025em; margin: 0 0 18px; }
.q-ouverture h2 em { color: var(--terra); }
.q-ouverture ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.q-ouverture li { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 13px; font-size: 13px; }
.q-ouverture p { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 720px; }

.suivi-travaux { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.suivi-travaux span {
  font-size: 12.5px; border-radius: 999px; padding: 6px 12px; border: 1px solid var(--line); color: var(--ink-soft);
  display: inline-flex; gap: 8px; align-items: center; transition: all .4s var(--ease);
}
.suivi-travaux span b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; }
.suivi-travaux span.encours { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.suivi-travaux span.fait { background: var(--paper); color: var(--ink); }
.suivi-travaux span.fait b { color: var(--terra); }

.echelle-test { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.echelons { display: flex; gap: 5px; }
.echelons i {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-style: normal; font-family: var(--serif); font-size: 20px; color: var(--ink-faint);
  border: 1px solid var(--line); background: transparent; transition: all .5s var(--ease);
}
.echelons i.acquis { background: var(--ink); color: var(--light); border-color: var(--ink); }
.echelons i.teste { border-color: var(--terra); color: var(--terra); animation: pulse 1.6s var(--ease-io) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(170,79,19,.0); } 50% { box-shadow: 0 0 0 5px rgba(170,79,19,.14); } }
.echelle-test .mono { color: var(--ink-soft); letter-spacing: .1em; }

.q-travail { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); color: var(--terra); margin: 0 0 6px; line-height: 1.15; }
.q-texte { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 14px; max-width: 900px; }
.q-aide { color: var(--ink-soft); font-size: 15px; max-width: 760px; margin: 0 0 26px; line-height: 1.55; }
.q-options { display: grid; gap: 10px; max-width: 900px; }
.option {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px;
  transition: transform .35s var(--ease), border-color .3s, background .3s, color .3s, box-shadow .35s var(--ease);
  animation: apparait .6s var(--ease) backwards;
}
.option:hover { transform: translateX(6px); border-color: rgba(26,23,20,.4); box-shadow: 0 16px 34px -24px rgba(26,23,20,.5); }
.option .touche {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft); background: var(--ivory); transition: all .3s;
}
.option:hover .touche { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.option .txt { font-size: 16px; line-height: 1.45; padding-top: 3px; }
.option .ex { display: block; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-soft); margin-top: 6px; }
.option.choisie { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: scale(0.99); }
.option.choisie .touche { background: var(--terra); color: var(--ivory); border-color: var(--terra); }
.option.choisie .ex { color: rgba(245,240,235,.7); }
.q-options.sort .option:not(.choisie) { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.q-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; max-width: 900px; flex-wrap: wrap; }
.q-pied .mono { color: var(--ink-faint); letter-spacing: .08em; text-transform: none; font-size: 12px; }

.q-carte { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; }
.q-carte-tete { display: flex; justify-content: space-between; align-items: baseline; }
.q-carte-tete h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.q-carte-tete .mono { color: var(--terra); font-size: 10px; display: flex; align-items: center; gap: 6px; }
.q-carte-tete .mono::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); animation: respire 1.6s infinite; }
.q-carte svg { width: 100%; height: auto; display: block; margin: 6px 0 4px; }
.liste-pans { list-style: none; margin: 0; padding: 0; }
.liste-pans li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-faint); transition: color .4s; }
.liste-pans li .v { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.liste-pans li.encours { color: var(--ink); }
.liste-pans li.encours .v { color: var(--terra); }
.liste-pans li.fini { color: var(--ink); }
.liste-pans li.fini .v { color: var(--ink); font-weight: 500; }

.annonce {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; background: var(--ink); color: var(--ivory);
  border-radius: 20px; padding: 14px 18px; max-width: 340px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6);
  animation: annonce 3.2s var(--ease) both; pointer-events: none;
}
.annonce .mono { color: var(--light); font-size: 10px; display: block; margin-bottom: 4px; }
.annonce b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
@keyframes annonce { 0% { opacity: 0; transform: translateY(20px) scale(.96); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

/* radar commun */
.radar text { font-family: var(--sans); }
.radar .anneau { fill: none; stroke: var(--line); }
.radar .axe { stroke: var(--line); }
.radar .axe.actif { stroke: var(--terra); stroke-width: 1.5; }
.radar .grad { fill: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.radar .zone { fill: rgba(170,79,19,.16); stroke: var(--terra); stroke-width: 2; stroke-linejoin: round; }
.radar .pt { fill: var(--terra); }
.radar .etq { fill: var(--ink-soft); font-size: 11px; }
.radar .etq.actif { fill: var(--ink); font-weight: 600; }
.radar .val { fill: var(--ink); font-family: var(--mono); font-size: 10px; }

@media (max-width: 1080px) {
  .q-grille { grid-template-columns: 1fr; }
  .q-carte { position: relative; top: 0; order: -1; display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 14px; }
  .q-carte-tete { grid-column: 1 / -1; }
  .q-carte svg { margin: 0; }
  .radar .etq, .radar .val, .radar .grad { display: none; }
  .liste-pans li { padding: 5px 0; font-size: 12.5px; }
}
@media (max-width: 520px) {
  .questions { padding-top: 92px; }
  .q-carte { grid-template-columns: 96px 1fr; }
  .liste-pans li:not(.encours) { display: none; }
  .liste-pans li.encours { border-top: 0; }
  .option { grid-template-columns: 28px 1fr; padding: 14px; gap: 10px; }
  .option .touche { width: 26px; height: 26px; }
  .echelons i { width: 32px; height: 32px; font-size: 17px; }
  .q-pied .mono { display: none; }
  .annonce { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- résultat ---------- */
.res-nuit { position: relative; overflow: hidden; padding: 120px var(--gutter) 90px; min-height: 100svh; display: flex; align-items: center; }
.res-grille { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1400px; margin: 0 auto; width: 100%; }
.res-score .mono { color: var(--light); margin: 0 0 18px; }
.res-note { display: flex; align-items: baseline; gap: 14px; }
.res-note .chiffre { font-family: var(--serif); font-size: clamp(120px, 16vw, 230px); line-height: .85; letter-spacing: -0.04em; }
.res-note .sur { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 42px); color: rgba(239,232,222,.6); }
.res-stade { font-family: var(--serif); font-size: clamp(30px, 3vw, 46px); line-height: 1.05; margin: 26px 0 12px; }
.res-stade em { color: var(--light); }
.res-def { font-size: 17px; color: rgba(239,232,222,.8); max-width: 520px; margin: 0 0 22px; line-height: 1.55; }
.res-fiab { color: rgba(239,232,222,.5) !important; letter-spacing: .08em !important; text-transform: none !important; font-size: 12px !important; }
.res-radar svg { width: 100%; height: auto; display: block; }
.nuit .radar .anneau, .nuit .radar .axe { stroke: var(--line-night); }
.nuit .radar .grad { fill: rgba(239,232,222,.4); }
.nuit .radar .zone { fill: rgba(242,194,123,.16); stroke: var(--light); }
.nuit .radar .pt { fill: var(--light); }
.nuit .radar .etq { fill: rgba(239,232,222,.88); font-size: 13px; }
.nuit .radar .val { fill: var(--light); font-size: 12px; }
.res-defile { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(239,232,222,.5); }
.res-defile::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: rgba(239,232,222,.4); animation: respire 1.8s infinite; }

.res-suite { max-width: 1240px; margin: 0 auto; padding: 100px var(--gutter) 60px; }
.res-bloc { margin-bottom: 96px; }
.res-bloc > .mono { color: var(--terra); margin: 0 0 14px; }
.res-bloc > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 14px; }
.res-bloc > h2 em { color: var(--terra); }
.res-bloc > p.intro { color: var(--ink-soft); font-size: 17px; max-width: 720px; margin: 0 0 34px; }

.frise { position: relative; padding: 10px 0 0; }
.frise-piste { position: relative; height: 2px; background: var(--ink); margin: 0 2% ; }
.frise-graduations { position: relative; height: 70px; margin: 0 2%; }
.frise-graduations div { position: absolute; top: 10px; transform: translateX(-50%); text-align: center; width: 120px; }
.frise-graduations b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.frise-graduations span { font-size: 11px; color: var(--ink-faint); }
.frise-pans { position: relative; margin: 0 2%; }
.frise-pan { position: absolute; width: 0; height: 30px; transition: left 1.2s var(--ease); }
.frise-pan i { position: absolute; left: -6px; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px rgba(170,79,19,.14); }
.frise-pan span { position: absolute; bottom: 18px; left: 0; transform: translateX(var(--decal, -50%)); font-size: 12.5px; white-space: nowrap; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.frise-pan span b { font-family: var(--mono); font-weight: 500; font-size: 11px; margin-left: 6px; }
.frise-pan.global { z-index: 2; }
.frise-pan.global i { background: var(--ink); box-shadow: 0 0 0 5px rgba(26,23,20,.15); width: 14px; height: 14px; left: -7px; }
.frise-pan.global span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.frise-pan.global .tige { position: absolute; left: -0.5px; top: 30px; width: 0; border-left: 1px dashed var(--ink); }
.frise-graduations div { line-height: 1.25; }
.cartes-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.carte-res { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.carte-res:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -32px rgba(26,23,20,.45); }
.carte-res-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.carte-res h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.05; margin: 0; }
.carte-res .grosse { font-family: var(--serif); font-size: 54px; line-height: .85; white-space: nowrap; }
.carte-res .grosse small { font-size: 18px; color: var(--ink-faint); font-style: italic; }
.jauge { position: relative; height: 8px; border-radius: 8px; background: rgba(26,23,20,.07); margin: 18px 0 8px; overflow: hidden; }
.jauge span { position: absolute; inset: 0 auto 0 0; background: var(--terra); border-radius: 8px; width: 0; transition: width 1.4s var(--ease); }
.jauge-etq { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: .06em; }
.carte-res .resume { font-size: 14px; color: var(--ink-soft); margin: 14px 0 6px; }
.carte-res details summary { cursor: pointer; font-size: 13.5px; color: var(--ink); padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.carte-res details summary::-webkit-details-marker { display: none; }
.carte-res details summary::before { content: "+"; font-family: var(--mono); width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; transition: transform .3s; }
.carte-res details[open] summary::before { content: "\2212"; }
.travail-res { padding: 10px 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.travail-res b { font-weight: 500; font-size: 14px; }
.travail-res .st { font-family: var(--mono); font-size: 11px; color: var(--terra); white-space: nowrap; }
.travail-res p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.methode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.methode div { border-top: 2px solid var(--ink); padding-top: 16px; }
.methode b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.methode p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 820px) { .methode { grid-template-columns: 1fr; } }

.fin { position: relative; overflow: hidden; border-radius: 36px; margin: 0 var(--gutter) 40px; padding: clamp(48px, 7vw, 100px) clamp(24px, 5vw, 80px); max-width: 1320px; }
@media (min-width: 1400px) { .fin { margin-left: auto; margin-right: auto; } }
.fin .toile-points { opacity: .9; }
.fin-texte { position: relative; max-width: 760px; }
.fin-texte .titre-xl em { color: var(--light); }
.fin-texte p { color: rgba(239,232,222,.75); font-size: 17px; margin: 18px 0 30px; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 980px) {
  .res-grille { grid-template-columns: 1fr; }
  .res-nuit { padding-top: 104px; }
}
@media (max-width: 520px) {
  .cartes-res { grid-template-columns: 1fr; }
  .frise-graduations span { display: none; }
  .frise-graduations div { width: 40px; }
  .carte-res .grosse { font-size: 44px; }
}

/* ---------- gerbe de points au clic ---------- */
.gerbe { position: fixed; z-index: 100; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-peinture { animation: none; }
}
