/* Site public Sota. Charte (cahier des charges 2.4) : fond clair, vert forêt #1F6B45 en accent
   unique, police Inter, hiérarchie par la taille et la graisse, beaucoup d'espace, pas de rouge
   (orange pour les erreurs). Contrastes vérifiés : texte #1D1D1F et #5E5E63 sur blanc, blanc sur #1F6B45. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fond: #FFFFFF; --gris: #F5F5F7; --trait: #E8E8ED; --texte: #1D1D1F; --doux: #5E5E63;
  --accent: #1F6B45; --accent-fonce: #174F33; --accent-clair: #E8F2EC;
  --erreur: #C2410C; --erreur-fonce: #7C2D12; --erreur-clair: #FDF0E7;
  --rayon: 24px; --large: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.55; color: var(--texte); background: var(--fond); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
.icone { width: 22px; height: 22px; stroke-width: 1.75; flex: none; }
.conteneur { max-width: var(--large); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--texte); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.lien-evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; gap: 28px; height: 60px; }
.marque { font-weight: 700; font-size: 21px; letter-spacing: -0.4px; color: var(--texte); text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--texte); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.entete .bouton { padding: 9px 18px; font-size: 15px; }
.menu-bouton { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--texte); min-width: 44px; min-height: 44px; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--trait); padding: 8px 24px 16px; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--trait); }
  .menu-bouton { display: block; }
  .entete .bouton { display: none; }
}

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 14px 26px; border-radius: 980px; border: 0; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; background: var(--accent); color: #fff; }
.bouton:hover { background: var(--accent-fonce); }
.bouton.second { background: var(--gris); color: var(--texte); }
.bouton.second:hover { background: var(--trait); }
.bouton[disabled] { opacity: 0.5; cursor: not-allowed; }
.lien-fleche { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* Sections */
section { padding: 96px 0; }
section.gris { background: var(--gris); }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -1px; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 21px; letter-spacing: -0.3px; margin: 0 0 8px; }
.chapo { font-size: clamp(18px, 2vw, 21px); color: var(--doux); max-width: 640px; margin: 0 0 32px; }
.centre { text-align: center; }
.centre .chapo { margin-left: auto; margin-right: auto; }
.petit { font-size: 14px; color: var(--doux); }

/* Accueil */
.heros { padding: 72px 0 96px; }
.heros .conteneur { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.heros .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 860px) { .heros .conteneur { grid-template-columns: 1fr; } section { padding: 64px 0; } }
.telephone { margin: 0 auto; width: 300px; border-radius: 44px; background: #1D1D1F; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.18); }
.telephone .ecran { border-radius: 34px; background: #000; color: #fff; padding: 28px 22px; min-height: 520px; }
.telephone .etiq { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #A1A1A6; }
.telephone .gros { font-size: 72px; font-weight: 200; line-height: 1; margin: 8px 0; }
.telephone .vert { color: #7FD1A3; }
.telephone .ligne { display: flex; justify-content: space-between; border-top: 1px solid #2C2C2E; padding: 14px 0; font-size: 15px; }
.telephone .seance { margin-top: 18px; background: #1C1C1E; border-radius: 18px; padding: 16px; font-size: 15px; }
.telephone .seance b { display: block; margin: 4px 0; }
.telephone .cta { margin-top: 14px; background: #fff; color: #000; text-align: center; border-radius: 980px; padding: 12px; font-weight: 600; font-size: 15px; }

.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; }
.gris .carte { border-color: transparent; }
.carte .tag { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.carte p { color: var(--doux); margin: 0 0 16px; flex: 1; }
.etape .n { font-size: 44px; font-weight: 200; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.atout .icone { color: var(--accent); width: 28px; height: 28px; margin-bottom: 14px; }

.copie { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .copie { grid-template-columns: 1fr; } }
.note { font-size: 64px; font-weight: 200; line-height: 1; }
.note small { font-size: 22px; color: var(--doux); }
.barre { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--trait); }
.faute { background: var(--erreur-clair); color: var(--erreur-fonce); border-radius: 14px; padding: 14px 16px; margin-top: 12px; font-size: 15px; }
.faute s { color: var(--erreur); }
.faute b { color: var(--accent-fonce); }

/* Question et quiz */
.question { max-width: 640px; margin: 0 auto; }
.choix { display: grid; gap: 10px; margin: 20px 0; }
.choix button { text-align: left; font: inherit; font-size: 17px; padding: 15px 18px; border-radius: 14px; border: 2px solid var(--gris); background: var(--gris); color: var(--texte); cursor: pointer; min-height: 52px; }
.choix button:hover:not([disabled]) { border-color: var(--trait); background: #fff; }
.choix button.bonne { background: var(--accent-clair); border-color: var(--accent); color: var(--accent-fonce); }
.choix button.fausse { background: var(--erreur-clair); border-color: var(--erreur); color: var(--erreur-fonce); }
.choix button[disabled] { cursor: default; }
.verdict { font-weight: 600; margin: 0 0 6px; }
.explication { color: var(--doux); margin: 0 0 20px; }
.progres { height: 4px; background: var(--trait); border-radius: 4px; overflow: hidden; margin: 12px 0 28px; }
.progres span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.score { font-size: 96px; font-weight: 200; line-height: 1; }

/* Tarifs */
.onglets { display: inline-flex; background: var(--trait); border-radius: 980px; padding: 4px; margin-bottom: 36px; }
.onglets button { border: 0; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 26px; border-radius: 980px; background: transparent; color: var(--doux); cursor: pointer; min-height: 44px; }
.onglets button[aria-selected="true"] { background: #fff; color: var(--texte); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.formule { border: 2px solid var(--trait); }
.formule.recommandee { border-color: var(--accent); }
.formule .badge { align-self: flex-start; background: var(--accent-clair); color: var(--accent-fonce); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 980px; margin-bottom: 10px; }
.formule .prix { font-size: 44px; font-weight: 300; letter-spacing: -1px; margin: 10px 0 4px; }
.formule .prix small { font-size: 16px; color: var(--doux); font-weight: 400; }
.formule ul { list-style: none; padding: 0; margin: 12px 0 24px; flex: 1; }
.formule li { display: flex; gap: 10px; padding: 6px 0; color: var(--texte); }
.formule li .icone { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }

/* Actualités */
.actu { border-top: 1px solid var(--trait); padding: 20px 0; }
.actu .meta { font-size: 13px; color: var(--doux); }
.actu h3 { margin: 6px 0; font-size: 19px; }
.actu p { margin: 0 0 6px; color: var(--doux); }
.officiel { color: var(--accent-fonce); background: var(--accent-clair); border-radius: 980px; padding: 2px 8px; font-weight: 600; }

/* Formulaires */
.formulaire { display: grid; gap: 14px; max-width: 460px; }
.formulaire label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
input, select { font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 1px solid #C7C7CC; background: #fff; color: var(--texte); min-height: 48px; }
.message { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.message.erreur { background: var(--erreur-clair); color: var(--erreur-fonce); }
.message.ok { background: var(--accent-clair); color: var(--accent-fonce); }
.option { display: flex; gap: 12px; align-items: center; border: 2px solid var(--trait); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }
.option input { min-height: auto; width: 20px; height: 20px; accent-color: var(--accent); }
.option .prix-option { margin-left: auto; font-weight: 600; }

/* Pages de texte (légal, concours) */
.texte { max-width: 760px; }
.texte h2 { font-size: 26px; letter-spacing: -0.4px; margin-top: 40px; }
.texte li { margin: 6px 0; }
.a-completer { background: #FFF4CC; padding: 0 4px; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--trait); vertical-align: top; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); padding: 32px 0 48px; font-size: 14px; color: var(--doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.pied a { color: var(--doux); }
.pied .droite { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .progres span { transition: none; } }

/* Ajustements après relecture visuelle */
.grille.trois { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.centre .carte { text-align: left; }
.gris .choix button { background: #fff; border-color: #fff; }
.gris .choix button.bonne { background: var(--accent-clair); border-color: var(--accent); }
.gris .choix button.fausse { background: var(--erreur-clair); border-color: var(--erreur); }
[aria-disabled="true"].bouton { cursor: default; }

/* ---------- Récit au défilement (accueil) ---------- */
.heros-recit { padding: 96px 0 72px; }
.heros-recit .chapo { margin-left: auto; margin-right: auto; }
.centre-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.indice-defilement { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; color: var(--doux); text-decoration: none; font-size: 15px; }
.indice-defilement .icone { animation: rebond 2s ease-in-out infinite; }
@keyframes rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.recit { padding-top: 32px; }
.recit-intro { margin-bottom: 24px; }
.recit-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.recit-scene { position: sticky; top: calc(50vh - 300px); height: 600px; align-self: start; order: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.recit-chapitres { order: 1; }
.chapitre { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity .4s ease; }
.chapitre.actif { opacity: 1; }
.chapitre:last-child { min-height: 70vh; }
.chapitre .jour { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .5px; }
.chapitre h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.8px; margin: 8px 0 12px; }
.chapitre p { color: var(--doux); font-size: 19px; max-width: 460px; margin: 0 0 20px; }

.frise { width: 300px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--doux); }
.frise-jour { color: var(--accent); min-width: 52px; }
.frise-barre { flex: 1; height: 4px; background: var(--trait); border-radius: 4px; overflow: hidden; }
.frise-barre span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s ease; }

.recit .telephone { margin: 0; }
.recit .ecran { position: relative; overflow: hidden; height: 520px; min-height: 0; }
.scene { position: absolute; inset: 28px 22px; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.scene.actif { opacity: 1; transform: none; }
.scene .gros small { font-size: 22px; color: #A1A1A6; }
.scene .petit-gros { font-size: 34px; font-weight: 300; line-height: 1.15; margin: 14px 0 18px; }
.scene .chrono { font-size: 52px; font-variant-numeric: tabular-nums; }
.ambre { color: #FFD60A; }
.jauge { display: grid; grid-template-columns: 1fr 70px 40px; align-items: center; gap: 8px; font-size: 14px; padding: 10px 0; border-top: 1px solid #2C2C2E; }
.jauge i { height: 6px; background: #2C2C2E; border-radius: 6px; overflow: hidden; }
.jauge b { display: block; height: 100%; background: #7FD1A3; border-radius: 6px; }
.jauge b.l62 { width: 62%; } .jauge b.l55 { width: 55%; } .jauge b.l38 { width: 38%; background: #FFD60A; }
.jauge em { font-style: normal; color: #A1A1A6; text-align: right; }
.semaines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 6px; }
.semaines b { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 10px; background: #1C1C1E; color: #A1A1A6; font-weight: 500; font-size: 14px; }
.semaines b.fait { background: #174F33; color: #fff; }
.semaines b.ici { background: #fff; color: #000; font-weight: 700; }
.scene .q { font-size: 18px; line-height: 1.4; margin: 14px 0; }
.rep { border-radius: 12px; background: #1C1C1E; padding: 11px 14px; margin: 8px 0; font-size: 15px; }
.rep.bonne { background: #174F33; color: #fff; box-shadow: inset 0 0 0 2px #7FD1A3; }
.expli { font-size: 13px; color: #A1A1A6; margin: 12px 0; line-height: 1.45; }
.faute-sombre { margin-top: 14px; background: #2A1A10; color: #FFB27A; border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.45; }
.faute-sombre s { color: #FF7A1A; } .faute-sombre b { color: #7FD1A3; }
.coche { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #2C2C2E; font-size: 15px; }
.coche::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #174F33; box-shadow: inset 0 0 0 5px #7FD1A3; flex: none; }

@media (max-width: 860px) {
  .recit-grille { grid-template-columns: 1fr; gap: 0; }
  .recit-scene { order: 0; top: 64px; height: auto; z-index: 1; background: linear-gradient(#fff 82%, rgba(255,255,255,0)); padding: 8px 0 18px; gap: 10px; }
  .recit .telephone { width: 240px; border-radius: 34px; padding: 9px; }
  .recit .ecran { height: 372px; border-radius: 26px; }
  .jauge { grid-template-columns: 1fr 54px 34px; gap: 6px; }
  .faute-sombre, .expli { font-size: 11px; padding: 8px; margin-top: 8px; }
  .scene .seance b { font-size: 12px; }
  .scene[data-scene="2"] .seance + .seance { display: none; }
  .scene { inset: 18px 15px; font-size: 13px; }
  .scene .gros { font-size: 48px; }
  .scene .chrono { font-size: 34px; }
  .scene .petit-gros { font-size: 24px; }
  .scene .q { font-size: 14px; margin: 8px 0; }
  .rep, .coche, .ligne, .jauge { padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
  .seance { font-size: 12px; padding: 10px; }
  .telephone .cta { padding: 8px; font-size: 12px; }
  .frise { width: 240px; }
  .chapitre { min-height: 46vh; justify-content: flex-start; padding-top: 8px; position: relative; z-index: 0; }
  .chapitre:last-child { min-height: 60vh; }
  .chapitre p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .chapitre, .frise-barre span { transition: none; }
  .indice-defilement .icone { animation: none; }
}

.marque img { vertical-align: middle; margin-right: 8px; }
