/* Site vitrine Premiers pas numériques — styles communs à index.html et structures.html. */
/* Polices hébergées sur le site (licence SIL OFL 1.1, voir polices/OFL-*.txt) : aucun appel à Google Fonts.
   Sous-ensembles latin (le français) et latin-ext (téléchargé seulement si une lettre rare apparaît). */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/atkinson-400-latin.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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/atkinson-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("polices/atkinson-700-latin.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: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("polices/atkinson-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("polices/source-serif-4-600-700-latin.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: "Source Serif 4"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("polices/source-serif-4-600-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Polices de secours aux mesures des vraies polices, affichées le temps qu'elles arrivent :
   le texte ne se réorganise plus au chargement (Source Serif 4 est ~19 % plus étroite que Georgia).
   Valeurs mesurées dans le navigateur : largeur d'un même texte, hauteurs au-dessus et sous la ligne. */
@font-face { font-family: "Source Serif repli"; src: local("Georgia"); font-weight: 400 600;
  size-adjust: 81.2%; ascent-override: 128%; descent-override: 42%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif repli"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 700;
  size-adjust: 81.2%; ascent-override: 128%; descent-override: 42%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson repli"; src: local("Arial"), local("ArialMT"); font-weight: 400;
  size-adjust: 98.6%; ascent-override: 96%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson repli"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700;
  size-adjust: 99.7%; ascent-override: 95%; descent-override: 29%; line-gap-override: 0%; }

/* Page d'accueil : un bandeau bleu canard avec l'ordinateur et le smartphone de l'apprenant
   dessinés, puis des bandes alternées (papier / feuille) aux couleurs des formations. */
:root {
  --papier: #f6f2ea;
  --feuille: #fffdf9;
  --encre: #1f2a2e;
  --encre-douce: #525e63;
  --canard: #1f5f6b;
  --canard-fonce: #163f47;
  --canard-clair: #dbe9ea;
  --ocre: #b9832a;
  --ocre-vif: #e0a93e;
  --ocre-clair: #f7ead0;
  --trait: #ddd4c4;
  --ocre-texte: #85591a;  /* ocre lisible sur fond clair (contraste ≥ 4,5) */
  /* Couleurs des formations (reprises de l'application) */
  --t-ordinateur: #b85c38;
  --t-smartphone: #2f5d8a;
  --t-demarches: #5e7d4f;
  --t-internet: #7a4b6e;
  /* Bandeau d'ouverture : bleu canard dans les deux thèmes */
  --bandeau: #163f47;
  --bandeau-texte: #f6f2ea;
  --bandeau-doux: #b9d3d6;
  --ecran: #fffdf9;
  --ecran-encre: #1f2a2e;
  --sur-teinte: #fff;  /* texte posé sur une couleur de formation ou sur le bleu canard */
  --affichage: "Source Serif 4", "Source Serif repli", Georgia, "Times New Roman", serif;
  --texte: "Atkinson Hyperlegible", "Atkinson repli", "Segoe UI", Verdana, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #15191b; --feuille: #1d2326; --encre: #ece6da; --encre-douce: #b4aca0;
    --canard: #7cc0c9; --canard-fonce: #a9d8dd; --canard-clair: #22393d;
    --ocre: #e0b04d; --ocre-vif: #e0b04d; --ocre-clair: #3a2f1c; --trait: #343c40; --ocre-texte: #e0b04d;
    --t-ordinateur: #d77a55; --t-smartphone: #6d9ad0; --t-demarches: #8fb07e; --t-internet: #b884a8;
    --bandeau: #0f2b31; --bandeau-texte: #ece6da; --bandeau-doux: #9fc0c4; --ecran: #242b2f; --ecran-encre: #ece6da;
    --sur-teinte: #15191b;  /* les teintes sont claires en thème sombre : texte foncé dessus */
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #15191b; --feuille: #1d2326; --encre: #ece6da; --encre-douce: #b4aca0;
  --canard: #7cc0c9; --canard-fonce: #a9d8dd; --canard-clair: #22393d;
  --ocre: #e0b04d; --ocre-vif: #e0b04d; --ocre-clair: #3a2f1c; --trait: #343c40; --ocre-texte: #e0b04d;
  --t-ordinateur: #d77a55; --t-smartphone: #6d9ad0; --t-demarches: #8fb07e; --t-internet: #b884a8;
  --bandeau: #0f2b31; --bandeau-texte: #ece6da; --bandeau-doux: #9fc0c4; --ecran: #242b2f; --ecran-encre: #ece6da;
  --sur-teinte: #15191b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* l'attribut hidden l'emporte toujours sur les display des composants */
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 1.125rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--affichage); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ocre-vif); outline-offset: 3px; }

/* Chaque bande occupe toute la largeur ; son contenu reste dans une colonne centrée. */
.bande { padding-inline: 16px; padding-block: 4.5rem; }
.colonne { max-width: 66rem; margin: 0 auto; display: grid; gap: 2rem; min-width: 0; }
.bande-feuille { background: var(--feuille); }

/* ---------- Bandeau d'ouverture ---------- */
.ouverture { background: var(--bandeau); color: var(--bandeau-texte); padding-block: 1.5rem 5rem; position: relative; overflow: hidden; }
.ouverture::before { /* grand cercle ocre en fond, rappel du bouton de la souris */
  content: ""; position: absolute; width: 38rem; height: 38rem; border-radius: 50%;
  right: -12rem; top: -9rem; background: radial-gradient(circle, rgba(224, 169, 62, 0.22), rgba(224, 169, 62, 0) 70%);
}
.ouverture .colonne { position: relative; }
.duo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center; margin-top: 2.5rem; }
.duo h1 { font-size: clamp(2.25rem, 5.8vw, 3.75rem); line-height: 1.04; letter-spacing: -0.015em; color: var(--bandeau-texte); }
.duo h1 em { font-style: normal; color: var(--ocre-vif); white-space: nowrap; }  /* « pas à pas » ne se coupe jamais */
.duo .texte { display: grid; gap: 1.4rem; }
.sous-titre { font-size: 1.3rem; color: var(--bandeau-doux); max-width: 25.25rem; } /* en rem, pas en ch : la largeur ne change pas avec la police */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.badges li { padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.95rem; color: var(--bandeau-texte); }

/* Scène : un écran d'ordinateur et un smartphone, dessinés en CSS */
.scene { position: relative; min-height: 22rem; }
.moniteur { position: relative; width: min(100%, 26rem); margin-left: auto; }
.moniteur .cadre { background: #10181b; border-radius: 14px; padding: 12px 12px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.moniteur .affichage { background: var(--ecran); color: var(--ecran-encre); border-radius: 6px; aspect-ratio: 16 / 10.5; display: grid; place-items: center; overflow: hidden; }
.moniteur .pied { width: 26%; height: 2.4rem; margin: 0 auto; background: linear-gradient(#10181b, #263238); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.connexion { display: grid; justify-items: center; gap: 0.45rem; text-align: center; padding: 0.6rem; }
.pastille { width: 3rem; height: 3rem; border-radius: 50%; background: var(--t-smartphone); color: var(--sur-teinte); display: grid; place-items: center; font-family: var(--affichage); font-size: 1.5rem; font-weight: 700; }
.connexion .bonjour { font-family: var(--affichage); font-weight: 700; font-size: 1.15rem; }
.connexion .consigne { font-size: 0.78rem; color: var(--encre-douce); }
.points { display: flex; gap: 0.45rem; }
.points span { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--canard); }
.points .plein { background: var(--canard); }
.pave { display: grid; grid-template-columns: repeat(3, 2.3rem); gap: 0.3rem; }
.pave span { height: 1.7rem; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; border: 1px solid var(--trait); background: var(--papier); }
.pave .presse { background: var(--canard); border-color: var(--canard); color: var(--sur-teinte); }

.telephone { position: absolute; left: 0; bottom: -1.5rem; width: 9.5rem; background: #10181b; border-radius: 22px; padding: 9px; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75); transform: rotate(-6deg); }
.telephone .affichage { background: var(--ecran); color: var(--ecran-encre); border-radius: 15px; padding: 0.8rem 0.6rem; display: grid; gap: 0.5rem; }
.telephone .barre { height: 4px; width: 34%; margin: 0 auto 0.2rem; border-radius: 4px; background: var(--trait); }
.lecon-mini { border-radius: 10px; border: 1px solid var(--trait); border-top: 5px solid var(--t-ordinateur); padding: 0.5rem; display: grid; gap: 0.25rem; }
.lecon-mini b { font-family: var(--affichage); font-size: 0.85rem; }
.etoiles { color: var(--ocre-vif); letter-spacing: 0.05em; font-size: 0.9rem; }
.bouton-mini { border-radius: 8px; background: var(--t-ordinateur); color: var(--sur-teinte); font-size: 0.7rem; font-weight: 700; text-align: center; padding: 0.3rem; }
.curseur { position: absolute; right: 21%; top: 54%; width: 26px; height: 32px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); animation: survol 4s ease-in-out infinite; }
@keyframes survol { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 10px); } }

/* ---------- Promesses ---------- */
.promesses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.promesse { display: grid; gap: 0.7rem; align-content: start; }
.promesse .rond { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--ocre-clair); display: grid; place-items: center; }
.promesse p { color: var(--encre-douce); }

/* ---------- Formations ---------- */
.formations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.formation { border-radius: 16px; overflow: hidden; background: var(--feuille); border: 1px solid var(--trait); display: grid; grid-template-rows: auto 1fr; }
.formation .visuel { background: var(--teinte); height: 7.5rem; display: grid; place-items: center; position: relative; }
.formation .visuel::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 9rem; height: 9rem; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.formation .corps { padding: 1.1rem 1.1rem 1.3rem; display: grid; gap: 0.4rem; align-content: start; border-top: 4px solid var(--teinte); }
.formation p { font-size: 0.97rem; color: var(--encre-douce); }
.f-ordinateur { --teinte: var(--t-ordinateur); }
.f-smartphone { --teinte: var(--t-smartphone); }
.f-demarches { --teinte: var(--t-demarches); }
.f-internet { --teinte: var(--t-internet); }

/* ---------- Comment ça marche : vraie séquence en trois temps ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.etape { counter-increment: etape; display: grid; gap: 0.8rem; align-content: start; }
.illus { background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; height: 9.5rem; display: grid; place-items: center; position: relative; overflow: hidden; }
.etape h3::before { content: counter(etape) ". "; color: var(--ocre-texte); }
.etape p { color: var(--encre-douce); }
/* 1. les vignettes de prénoms */
.vignettes { display: flex; gap: 0.6rem; }
.vignette { display: grid; justify-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; }
.vignette i { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: var(--sur-teinte); font-family: var(--affichage); font-size: 1.2rem; }
.vignette.choisie i { outline: 3px solid var(--ocre-vif); outline-offset: 2px; }
/* 2. une petite fenêtre avec le geste montré */
.fenetre { width: 72%; border-radius: 8px; background: var(--feuille); border: 1px solid var(--trait); overflow: hidden; }
.fenetre .titre { background: var(--canard); height: 1.1rem; display: flex; justify-content: flex-end; gap: 4px; padding: 3px 6px; }
.fenetre .titre span { width: 0.55rem; height: 0.55rem; border-radius: 2px; background: rgba(255, 255, 255, 0.7); }
.fenetre .contenu { height: 3.6rem; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--canard); }
.illus .curseur-petit { position: absolute; right: 27%; top: 22%; width: 20px; height: 25px; animation: survol 4s ease-in-out infinite; }
/* 3. étoiles et médaille */
.recompense { display: flex; align-items: center; gap: 1rem; }
.recompense .grandes-etoiles { color: var(--ocre-vif); font-size: 2rem; letter-spacing: 0.05em; }
.medaille { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f2cf7b, #b9832a); display: grid; place-items: center; color: #fff; font-size: 1.5rem; box-shadow: 0 0 0 5px var(--ocre-clair); }

/* ---------- Pour qui ---------- */
.publics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.public { border-radius: 16px; padding: 1.6rem 1.4rem; display: grid; gap: 0.6rem; align-content: start; background: var(--feuille); border: 1px solid var(--trait); }
.public .qui { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ocre-texte); }
.public p { color: var(--encre-douce); font-size: 1rem; }

/* ---------- Démo animée : une leçon de bout en bout, jouée par un curseur ---------- */
.demo-tete { display: grid; gap: 0.5rem; text-align: center; justify-items: center; }
.demo-tete p { color: var(--encre-douce); }
.demo-cadre { width: 100%; max-width: 52rem; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--trait); background: var(--feuille); box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.45); }
.demo-barre { display: flex; align-items: center; gap: 6px; padding: 0.55rem 0.9rem; background: var(--bandeau); color: var(--bandeau-texte); font-size: 0.85rem; }
.demo-barre span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.demo-barre b { margin-left: 0.5rem; font-family: var(--affichage); }
.demo-ecran { position: relative; height: clamp(21rem, 52vw, 29rem); overflow: hidden; background: var(--feuille); }
.scene-d { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.8rem; padding: 1.2rem; text-align: center; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.scene-d.actif { opacity: 1; visibility: visible; }
.d-titre { font-family: var(--affichage); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.2; }
.d-petit { color: var(--encre-douce); font-size: 1rem; }
.d-prenoms { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.d-prenom { display: grid; justify-items: center; gap: 0.4rem; font-weight: 700; padding: 0.7rem; min-width: 5.5rem; border-radius: 14px; border: 2px solid var(--trait); background: var(--papier); transition: transform 0.15s, border-color 0.2s; }
.d-prenom i { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: var(--sur-teinte); font-style: normal; font-family: var(--affichage); font-size: 1.4rem; }
.d-prenom.choisi { border-color: var(--ocre-vif); }
.appuye { transform: scale(0.94); }
.d-points { display: flex; gap: 0.6rem; }
.d-points span { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--canard); transition: background 0.2s; }
.d-points .plein { background: var(--canard); }
.d-pave { display: grid; grid-template-columns: repeat(3, 3rem); gap: 0.4rem; }
.d-pave span { height: 2.3rem; border-radius: 8px; display: grid; place-items: center; font-weight: 700; border: 1px solid var(--trait); background: var(--papier); transition: background 0.15s, color 0.15s, transform 0.15s; }
.d-pave span.appuye { background: var(--canard); color: var(--feuille); }
.d-cartes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
.d-carte { flex: 1 1 8.5rem; max-width: 11rem; display: grid; gap: 0.4rem; padding: 0.9rem; text-align: left; border-radius: 14px; border: 1px solid var(--trait); border-top: 6px solid var(--teinte); background: var(--papier); }
.d-etoiles { color: var(--ocre-vif); }
.d-continuer { border-radius: 8px; background: var(--teinte); color: #fff; font-weight: 700; text-align: center; padding: 0.35rem; font-size: 0.9rem; transition: transform 0.15s; }
.d-continuer.discret { background: transparent; color: var(--encre-douce); border: 1px solid var(--trait); }
.d-voix { display: flex; align-items: center; gap: 0.5rem; color: var(--canard); font-weight: 700; font-size: 0.95rem; }
.d-ondes { display: flex; align-items: center; gap: 3px; height: 1.2rem; }
.d-ondes i { width: 4px; height: 30%; border-radius: 2px; background: var(--canard); }
.parle .d-ondes i { animation: onde 0.8s ease-in-out infinite; }
.parle .d-ondes i:nth-child(2) { animation-delay: 0.15s; }
.parle .d-ondes i:nth-child(3) { animation-delay: 0.3s; }
.parle .d-ondes i:nth-child(4) { animation-delay: 0.45s; }
@keyframes onde { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.d-vert { background: #2e7d4f; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 0.8rem 1.6rem; border-radius: 12px; box-shadow: 0 6px 0 #1f5a38; transition: transform 0.15s, box-shadow 0.15s; }
.d-vert.appuye { transform: translateY(4px); box-shadow: 0 2px 0 #1f5a38; }
.d-bravo { font-weight: 700; color: var(--t-demarches); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.d-grandes-etoiles span { display: inline-block; font-size: 3rem; line-height: 1; color: var(--trait); transition: color 0.3s; }
.d-grandes-etoiles .allume { color: var(--ocre-vif); animation: eclat 0.5s; }
@keyframes eclat { 50% { transform: scale(1.35); } }
.d-medaille { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--ocre-clair); font-weight: 700; opacity: 0; transform: scale(0.8); transition: opacity 0.4s, transform 0.4s; }
.d-bravo.visible, .d-medaille.visible { opacity: 1; transform: none; }
.demo-curseur { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.3, 1); }
.demo-curseur svg { display: block; width: 28px; height: 34px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.demo-curseur .rond-clic { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--ocre-vif); opacity: 0; }
.demo-curseur.clic .rond-clic { animation: ondulation 0.45s ease-out; }
@keyframes ondulation { from { opacity: 1; transform: scale(0.3); } to { opacity: 0; transform: scale(1.4); } }
.demo-commandes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; }
.demo-bouton { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; border: 2px solid var(--canard); background: var(--canard); color: var(--feuille); padding: 0.45rem 1.1rem; }
.demo-etapes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.demo-etapes button { font: inherit; font-size: 0.95rem; cursor: pointer; border-radius: 999px; border: 1px solid var(--trait); background: var(--feuille); color: var(--encre); padding: 0.35rem 0.95rem; min-height: 2.75rem; }
.demo-etapes button[aria-current="step"] { background: var(--ocre-clair); border-color: var(--ocre); font-weight: 700; }
.demo-legende { text-align: center; color: var(--encre-douce); max-width: 40rem; margin: 0 auto; min-height: 3.2em; }

/* Démo formateur : onglets en haut, scènes plus larges, alignées à gauche */
.demo-ecran-admin { display: flex; flex-direction: column; height: clamp(23rem, 52vw, 30rem); }
.a-onglets { display: flex; gap: 0.3rem; padding: 0.6rem 0.8rem 0; border-bottom: 1px solid var(--trait); overflow: hidden; }
.a-onglets span { padding: 0.4rem 0.7rem; font-size: 0.85rem; font-weight: 700; white-space: nowrap; color: var(--encre-douce); border-radius: 8px 8px 0 0; transition: background 0.3s; }
.a-onglets span.actif { background: var(--canard-clair); color: var(--canard-fonce); }
.a-zone { position: relative; flex: 1; }
.a-scene { justify-items: stretch; text-align: left; gap: 0.6rem; padding: 0.9rem 1.2rem; max-width: 36rem; margin: 0 auto; }
.a-titre { font-family: var(--affichage); font-weight: 700; font-size: 1.15rem; }
.a-petit { color: var(--encre-douce); font-size: 0.9rem; }
.a-cache { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s; }
.a-cache.visible { opacity: 1; transform: none; }
.a-ligne { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 0.7rem; align-items: center; padding: 0.4rem 0.6rem; border-radius: 8px; font-size: 0.92rem; transition: background 0.3s, transform 0.15s; }
.a-ligne.choisi { background: var(--ocre-clair); }
.a-barre { height: 0.55rem; border-radius: 999px; background: var(--trait); overflow: hidden; }
.a-barre i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--canard); transition: width 1.2s ease-out 0.3s; }
.actif .a-barre i { width: var(--v); }
.a-etat { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--canard-clair); color: var(--canard-fonce); }
.a-etat.aide { background: var(--ocre-clair); color: var(--ocre-texte); }
.a-note { font-size: 0.9rem; padding: 0.55rem 0.8rem; border-left: 4px solid var(--ocre-vif); background: var(--papier); border-radius: 0 8px 8px 0; }
.a-graph { display: flex; align-items: flex-end; justify-content: center; gap: 1.5rem; height: 8.5rem; border-bottom: 2px solid var(--trait); }
.a-col { width: 3.5rem; height: 100%; display: flex; align-items: flex-end; transition: transform 0.15s; }
.a-baton { width: 100%; height: 0; border-radius: 8px 8px 0 0; background: var(--b); transition: height 1s ease-out; }
.actif .a-baton { height: var(--h); }
.a-col:nth-child(2) .a-baton { transition-delay: 0.2s; }
.a-col:nth-child(3) .a-baton { transition-delay: 0.4s; }
.a-libelles { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.8rem; font-weight: 700; }
.a-libelles span { width: 3.5rem; text-align: center; }
.a-cases { display: grid; gap: 0.15rem; }
.a-case { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.5rem; border-radius: 8px; font-size: 0.95rem; transition: transform 0.15s; }
.a-case::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; font-size: 0.8rem; color: var(--feuille); border: 2px solid var(--encre-douce); border-radius: 4px; }
.a-case.coche::before { content: "✓"; background: var(--canard); border-color: var(--canard); }
.a-bouton { justify-self: start; padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 700; background: var(--canard); color: var(--feuille); border: 2px solid var(--canard); transition: transform 0.15s; }
.a-bouton.discret { background: transparent; color: var(--canard); }
.a-ok { color: var(--t-demarches); font-weight: 700; font-size: 0.92rem; }
.a-texte { min-height: 3.2rem; padding: 0.5rem 0.7rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier); color: var(--encre); font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; }
.a-fil { display: grid; gap: 0.5rem; }
.a-msg { justify-self: start; max-width: 85%; padding: 0.5rem 0.8rem; border-radius: 12px 12px 12px 4px; border: 1px solid var(--trait); background: var(--papier); font-size: 0.92rem; }
.a-msg b { display: block; font-size: 0.78rem; color: var(--canard); }
.a-msg.moi { justify-self: end; background: var(--canard-clair); border-radius: 12px 12px 4px 12px; }
.a-saisie { display: flex; gap: 0.5rem; align-items: center; }
.a-saisie .a-texte { flex: 1; min-height: 2.4rem; font-family: var(--texte); font-size: 0.9rem; }
@media (max-width: 30rem) {
  .a-onglets { gap: 0.1rem; padding-inline: 0.4rem; }
  .a-onglets span { padding: 0.35rem 0.4rem; font-size: 0.72rem; }
}

/* ---------- Appels à l'action, rôles, questions ---------- */
.surtitre { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.surtitre li { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--bandeau); background: var(--ocre-vif); padding: 0.3rem 0.85rem; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.bouton-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 2px solid transparent; }
.bouton-cta.principal { background: var(--ocre-vif); color: #1f2a2e; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
.bouton-cta.principal:hover { background: #ecbb5a; }
.bouton-cta.secondaire { color: var(--bandeau-texte); border-color: rgba(255, 255, 255, 0.45); }
.bouton-cta.secondaire:hover { border-color: var(--bandeau-texte); }
.bouton-cta.clair { background: var(--canard); color: var(--feuille); }
.bouton-cta.contour { color: var(--canard); border-color: var(--canard); }
.promesses-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.role { display: grid; gap: 0.7rem; align-content: start; padding: 1.6rem 1.4rem; border-radius: 16px; background: var(--feuille); border: 1px solid var(--trait); }
.role .qui { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ocre-texte); }
.role p { color: var(--encre-douce); font-size: 1rem; }
.role ul { margin: 0; padding-left: 1.1rem; color: var(--encre-douce); font-size: 0.98rem; }
.role .bouton-cta { justify-self: start; font-size: 1rem; padding: 0.65rem 1.1rem; margin-top: 0.3rem; }
.encadre-sylvain { display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--canard-clair); }
.encadre-sylvain p { color: var(--encre); }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.question { padding: 1.4rem; border-radius: 16px; border: 1px solid var(--trait); background: var(--feuille); display: grid; gap: 0.5rem; align-content: start; }
.question .bulle-msg { justify-self: start; max-width: 100%; padding: 0.6rem 0.9rem; border-radius: 14px 14px 14px 4px; background: var(--papier); border: 1px solid var(--trait); font-size: 0.98rem; }
.question .bulle-msg.reponse { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--canard-clair); }
.question p { color: var(--encre-douce); }
.final { background: var(--bandeau); color: var(--bandeau-texte); text-align: center; }
.final .colonne { justify-items: center; }
.final h2 { color: var(--bandeau-texte); }
.final p { color: var(--bandeau-doux); max-width: 36rem; }
.final .actions { justify-content: center; }
@media (max-width: 56rem) {
  .promesses-4, .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .promesses-4, .questions { grid-template-columns: 1fr; }
  .encadre-sylvain { flex-direction: column; align-items: flex-start; }
}

/* ---------- Créer un compte : deux grandes portes ---------- */
.comptes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 56rem; width: 100%; margin: 0 auto; }
.compte-carte { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.8rem 1.6rem; border-radius: 18px; background: var(--papier); border: 2px solid var(--trait); color: var(--encre); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.compte-carte:hover, .compte-carte:focus-visible { border-color: var(--canard); transform: translateY(-2px); }
.compte-carte .qui { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ocre-texte); }
.compte-carte strong { font-family: var(--affichage); font-size: 1.5rem; }
.compte-texte { color: var(--encre-douce); }
.compte-carte .bouton-cta { align-self: flex-start; margin-top: auto; font-size: 1rem; }
.compte-deja a { color: var(--canard); font-weight: 700; display: inline-block; padding: 0.7rem 0.3rem; } /* cible de 44 px au moins */
.compte-deja { text-align: center; color: var(--encre-douce); }
@media (max-width: 40rem) { .comptes { grid-template-columns: 1fr; } }


@media (max-width: 56rem) {
  .duo { grid-template-columns: 1fr; gap: 3rem; }
  .scene { min-height: 0; padding-bottom: 2rem; }
  .moniteur { margin: 0 auto; }
  .formations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promesses, .etapes, .publics { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .formations { grid-template-columns: 1fr; }
  .telephone { width: 8rem; left: -4px; }
}
@media (prefers-reduced-motion: reduce) { .curseur, .curseur-petit { animation: none; } }

/* ================= Refonte : icônes, navigation, nouvelles sections ================= */
.ic { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; fill: currentColor; }
/* Icône dans une pastille : trait bleu canard, fond du duotone en ocre (signature de la marque) */
.pastille-ic { width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--canard-clair); color: var(--canard); --ic-fond: var(--ocre-vif); --ic-opacite: 0.45; }
.pastille-ic .ic { width: 1.9rem; height: 1.9rem; }
.pastille-ic.ronde { border-radius: 50%; background: var(--ocre-clair); color: var(--canard-fonce); }

/* Ouverture */
.h1-sujet { display: block; margin-bottom: 0.9rem; font-family: var(--texte); font-size: clamp(0.95rem, 1.5vw, 1.05rem); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ocre-vif); line-height: 1.4; }
.rassurances { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; margin: 0; padding: 0; color: var(--bandeau-texte); font-size: 1rem; }
.rassurances li { display: inline-flex; align-items: center; gap: 0.45rem; }
.rassurances .ic { color: var(--ocre-vif); width: 1.15rem; height: 1.15rem; }
.bouton-cta .ic { width: 1.15em; height: 1.15em; }
.lecon-mini b .ic, .d-carte b .ic, .d-petit .ic { width: 1.1em; height: 1.1em; color: var(--canard); --ic-fond: var(--ocre-vif); --ic-opacite: 0.4; }
.d-medaille .ic { width: 1.6rem; height: 1.6rem; color: var(--ocre-texte); --ic-fond: var(--ocre-vif); --ic-opacite: 0.5; }

/* Chiffres-clés */
.chiffres { background: var(--feuille); border-bottom: 1px solid var(--trait); padding: 1.6rem 16px; }
.chiffres ul { max-width: 66rem; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.chiffres li { display: grid; gap: 0.15rem; text-align: center; color: var(--encre-douce); font-size: 1rem; }
.chiffres strong { font-family: var(--affichage); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--canard); line-height: 1.1; }
@media (max-width: 40rem) { .chiffres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cartes génériques à icône (avantages, valeurs, aidants) */
.cartes-ic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.cartes-ic.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartes-ic.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carte-ic { display: grid; gap: 0.7rem; align-content: start; padding: 1.5rem 1.4rem; border-radius: 18px; background: var(--feuille); border: 1px solid var(--trait); }
.bande-feuille .carte-ic { background: var(--papier); }
.carte-ic p { color: var(--encre-douce); font-size: 1.02rem; }
@media (max-width: 56rem) { .cartes-ic, .cartes-ic.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .cartes-ic, .cartes-ic.deux, .cartes-ic.quatre { grid-template-columns: 1fr; } }

.intro { display: grid; gap: 0.8rem; max-width: 46rem; }
.intro.centre { text-align: center; justify-items: center; margin: 0 auto; }
.intro p { color: var(--encre-douce); font-size: 1.15rem; }
.surligne { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocre-texte); }
.actions.centre { justify-content: center; }
.lien-fort { color: var(--canard); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0; }
.lien-fort .ic { width: 1.1em; height: 1.1em; }

/* Formations : grande icône blanche sur la couleur de la formation */
.formation .visuel .ic { width: 3.6rem; height: 3.6rem; color: #fff; --ic-fond: #fff; --ic-opacite: 0.28; position: relative; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)); }

/* Pour un proche */
.proche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.proche .citation { padding: 1.8rem; border-radius: 20px; background: var(--canard-clair); display: grid; gap: 1rem; }
.proche .citation p { font-family: var(--affichage); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.35; color: var(--canard-fonce); }
.liste-ic { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.liste-ic li { display: flex; gap: 1rem; align-items: flex-start; }
.liste-ic li p { color: var(--encre-douce); }
.liste-ic strong { display: block; color: var(--encre); font-size: 1.1rem; }
@media (max-width: 56rem) { .proche { grid-template-columns: 1fr; gap: 2rem; } }

/* Médaille de l'étape 3, rôles, encadré Sylvain */
.medaille .ic { width: 1.9rem; height: 1.9rem; color: #fff; --ic-fond: #fff; --ic-opacite: 0.3; }
.role .pastille-ic, .compte-carte .pastille-ic { margin-bottom: 0.2rem; }
.encadre-sylvain .pastille-ic { width: 4rem; height: 4rem; border-radius: 50%; background: var(--feuille); }

/* Structures (section et page dédiée) */
.bande-structures { background: var(--bandeau); color: var(--bandeau-texte); }  /* bandeau : reste foncé en thème sombre */
.bande-structures h2, .bande-structures h3 { color: var(--bandeau-texte); }
.bande-structures .intro p, .bande-structures .carte-ic p { color: var(--bandeau-doux); }
.bande-structures .surligne { color: var(--ocre-vif); }
.bande-structures .carte-ic { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.bande-structures .pastille-ic { background: rgba(255, 255, 255, 0.1); color: var(--bandeau-texte); }
.bande-structures .lien-fort { color: var(--ocre-vif); }

/* FAQ */
.faq { display: grid; gap: 0.8rem; max-width: 52rem; width: 100%; margin: 0 auto; }
.faq details { border: 1px solid var(--trait); border-radius: 16px; background: var(--feuille); }
.bande-feuille .faq details { background: var(--papier); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.12rem; min-height: 3.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 1.3rem; height: 1.3rem; color: var(--canard); transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--encre-douce); display: grid; gap: 0.6rem; }

/* Étapes numérotées (page structures) */
.marches { counter-reset: marche; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.marches li { counter-increment: marche; display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem 1.4rem; border-radius: 18px; background: var(--feuille); border: 1px solid var(--trait); }
.marches li::before { content: counter(marche); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ocre-vif); color: var(--encre); font-family: var(--affichage); font-weight: 700; font-size: 1.3rem; }
.marches p { color: var(--encre-douce); }
@media (max-width: 56rem) { .marches { grid-template-columns: 1fr; } }
.lieux { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.lieux li { padding: 0.5rem 1rem; border-radius: 999px; background: var(--feuille); border: 1px solid var(--trait); font-weight: 700; font-size: 1rem; }
.sources { font-size: 0.95rem; color: var(--encre-douce); }
.sources a { color: var(--canard); }

/* Pied de page */
footer { background: var(--bandeau); color: var(--bandeau-doux); padding: 3rem 16px 2rem; font-size: 1rem; }
footer .colonne { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
footer .marque-pied strong { display: block; color: var(--bandeau-texte); font-family: var(--affichage); font-size: 1.25rem; margin-bottom: 0.5rem; }
footer h2 { font-family: var(--texte); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bandeau-texte); margin-bottom: 0.6rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
footer a, footer .lien-bouton { color: var(--bandeau-texte); display: inline-block; padding: 0.6rem 0; font: inherit; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
footer .bas { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.2rem; font-size: 0.92rem; }
@media (max-width: 56rem) { footer .colonne { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { footer .colonne { grid-template-columns: 1fr; } }

/* Bandeau de cookies (affiché seulement si Google Ads est activé dans site.js) */
.bandeau-cookies { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 46rem; margin: 0 auto; padding: 1.3rem 1.4rem;
  border-radius: 18px; background: var(--feuille); color: var(--encre); border: 1px solid var(--trait); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); display: grid; gap: 0.9rem; }
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { color: var(--encre-douce); font-size: 1rem; }
.bandeau-cookies .actions button { font: inherit; font-weight: 700; cursor: pointer; padding: 0.7rem 1.3rem; border-radius: 999px; border: 2px solid var(--canard); min-height: 2.9rem; }
.bandeau-cookies .accepter { background: var(--canard); color: var(--feuille); }
.bandeau-cookies .refuser { background: transparent; color: var(--canard); }
.bandeau-cookies h2 { font-size: 1.25rem; }

/* ---------- Pages légales ---------- */
.ouverture.courte { padding-block: 1.5rem 3rem; }
.ouverture.courte h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; color: var(--bandeau-texte); margin-top: 2rem; }
.ouverture.courte .chapeau { color: var(--bandeau-doux); font-size: 1.15rem; max-width: 44rem; margin-top: 0.8rem; }
.texte-legal { max-width: 46rem; width: 100%; margin: 0 auto; display: grid; gap: 1rem; }
.texte-legal h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.texte-legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.texte-legal h3 { font-size: 1.15rem; margin-top: 0.6rem; }
.texte-legal p, .texte-legal li { color: var(--encre); }
.texte-legal ul { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.texte-legal a { color: var(--canard); font-weight: 700; overflow-wrap: anywhere; }
.fiche { padding: 1.2rem 1.4rem;
  border-radius: 16px; background: var(--feuille); border: 1px solid var(--trait); }
.fiche dl { display: grid; grid-template-columns: minmax(11rem, auto) 1fr; gap: 0.35rem 1.2rem; margin: 0; }
.fiche dt { font-weight: 700; color: var(--encre-douce); }
.fiche dd { margin: 0; overflow-wrap: anywhere; }
.fiche .titre-fiche { font-size: 1.25rem; color: var(--canard-fonce); margin: 0 0 0.6rem; }
@media (max-width: 36rem) { .fiche dl { grid-template-columns: 1fr; gap: 0.1rem; } .fiche dd { margin-bottom: 0.5rem; } }
.essentiel { padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--canard-clair); display: grid; gap: 0.8rem; }
.essentiel h2 { margin: 0; padding: 0; border: 0; }
.mise-a-jour { color: var(--encre-douce); font-size: 0.95rem; }


/* ---------- En-tête : barre claire, fixe, sur une seule ligne ---------- */
html { scroll-padding-top: 5rem; scroll-behavior: smooth; }  /* défilement doux ; les ancres ne passent pas sous la barre */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.barre-haut { position: sticky; top: 0; z-index: 40; background: var(--feuille); border-bottom: 1px solid var(--trait); padding: 0 16px; transition: box-shadow 0.2s; }
.barre-haut.defile { box-shadow: 0 6px 22px -14px rgba(0, 0, 0, 0.45); }
.entete { max-width: 66rem; margin: 0 auto; min-height: 4.25rem; display: flex; align-items: center; gap: 2rem; }
.marque { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; flex: none; white-space: nowrap;
  font-family: var(--affichage); font-weight: 700; font-size: 1.15rem; color: var(--canard-fonce); text-decoration: none; }
.marque .logo { color: var(--canard); }
.menu { display: flex; gap: 0.4rem; list-style: none; margin: 0 auto 0 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem; border-radius: 999px; white-space: nowrap;
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.menu a:hover { background: var(--canard-clair); color: var(--canard-fonce); }
.menu a[aria-current="page"] { background: var(--canard-clair); color: var(--canard-fonce); }
.entete-actions { display: flex; align-items: center; gap: 0.4rem; flex: none; margin-left: auto; }
.lien-connexion { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.85rem; border-radius: 999px; white-space: nowrap;
  color: var(--canard); font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.lien-connexion:hover { background: var(--canard-clair); }
.lien-connexion .ic { width: 1.15rem; height: 1.15rem; }
.bouton-entete { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 999px; white-space: nowrap;
  background: var(--canard); color: var(--feuille); font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.bouton-entete:hover { background: var(--canard-fonce); }
.ouverture { padding-top: 0.5rem; }
@media (max-width: 60rem) { .menu { display: none; } }
@media (max-width: 40rem) {
  /* Téléphone : le nom sur deux lignes (« Premiers pas » / « numériques »), plus d'air autour. */
  .barre-haut { padding: 0 20px; }
  .entete { gap: 0.75rem; min-height: 4.75rem; padding-block: 0.55rem; }
  .bouton-entete { display: none; }   /* le logo et « Se connecter » suffisent */
  .marque { gap: 0.7rem; font-size: 1.12rem; line-height: 1.12; }
  .marque span { white-space: normal; max-width: 6.6em; }
  .marque .logo { width: 24px; height: 33px; }
  .lien-connexion { padding: 0 0.95rem; border: 2px solid var(--canard-clair); }
}
@media (max-width: 23rem) {  /* petits téléphones (320 px) : tout tient sans déborder */
  .barre-haut { padding: 0 14px; }
  .lien-connexion { padding: 0 0.8rem; }
  .lien-connexion .ic { display: none; }
}

/* ---------- Guides pratiques ---------- */
.fil ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; list-style: none; margin: 1.6rem 0 0; padding: 0; font-size: 0.98rem; color: var(--bandeau-doux); }
/* Liens et page courante sur la même ligne : le lien est plus haut (zone à toucher), on centre tout. */
.fil li { display: flex; align-items: center; min-height: 2.6rem; }
.fil li + li::before { content: "›"; margin-right: 0.5rem; color: var(--bandeau-doux); }
.fil a { color: var(--bandeau-texte); display: inline-block; padding: 0.5rem 0; }
.ouverture.courte .h1-sujet { margin: 1.2rem 0 0; }
.ouverture.courte h1 + .chapeau, .ouverture.courte .h1-sujet + h1 { margin-top: 0.6rem; }
.infos-guide { color: var(--bandeau-doux); font-size: 0.98rem; margin-top: 1rem; }
.article-guide { font-size: 1.15rem; }
.article-guide p, .article-guide li { line-height: 1.7; }
.article-guide ol { counter-reset: etape-guide; list-style: none; padding-left: 0; gap: 0.8rem; }
.article-guide ol > li { counter-increment: etape-guide; position: relative; padding: 0.9rem 1rem 0.9rem 3.6rem; border-radius: 14px; background: var(--feuille); border: 1px solid var(--trait); }
.article-guide ol > li::before { content: counter(etape-guide); position: absolute; left: 0.9rem; top: 0.8rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--canard); color: var(--feuille); font-weight: 700; font-size: 1rem; }
.encadre { padding: 1.1rem 1.3rem; border-left: 5px solid var(--ocre-vif); border-radius: 0 14px 14px 0; background: var(--ocre-clair); display: grid; gap: 0.5rem; }
.entrainement { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 1.5rem; padding: 1.6rem; border-radius: 20px; background: var(--canard-clair); }
.entrainement h2 { margin: 0 0 0.4rem; padding: 0; border: 0; font-size: 1.4rem; }
.entrainement p { margin-bottom: 1rem; }
.entrainement .pastille-ic { background: var(--feuille); }
@media (max-width: 36rem) { .entrainement { flex-direction: column; } }
.sources-guide ul { font-size: 1rem; }
.article-guide .faq { max-width: none; }
.article-guide .faq details { background: var(--feuille); }
.titre-theme { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0.5rem 0 1.1rem; }
.titre-theme .ic { width: 1.6rem; height: 1.6rem; color: var(--canard); --ic-fond: var(--ocre-vif); --ic-opacite: 0.4; }
.grille-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.carte-guide { height: 100%; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem 1.4rem; border-radius: 18px; background: var(--feuille);
  border: 1px solid var(--trait); border-top: 5px solid var(--teinte); color: var(--encre); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.bande-feuille .carte-guide { background: var(--papier); }
.carte-guide:hover, .carte-guide:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.5); }
.carte-guide strong { font-family: var(--affichage); font-size: 1.25rem; line-height: 1.3; }
.theme-guide { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocre-texte); }
.resume-guide { color: var(--encre-douce); font-size: 1rem; }
.lire-guide { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--canard); font-weight: 700; padding-top: 0.4rem; }
.grille-guides.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; margin-inline: auto; }
#guides .actions { margin-top: 1.6rem; }
@media (max-width: 56rem) { .grille-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .grille-guides, .grille-guides.deux { grid-template-columns: 1fr; } }
.h1-sujet .pastille-ic { display: inline-grid; width: 2.2rem; height: 2.2rem; border-radius: 50%; vertical-align: middle; margin-right: 0.45rem; }
.h1-sujet .pastille-ic .ic { width: 1.2rem; height: 1.2rem; }
/* ---------- Guides : filtres par thématique et pagination ---------- */
.filtres-themes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filtre-theme { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px;
  border: 2px solid var(--trait); background: var(--feuille); color: var(--encre); font-weight: 700; text-decoration: none; }
.filtre-theme .ic { width: 1.2rem; height: 1.2rem; color: var(--teinte, var(--canard)); --ic-fond: var(--teinte, var(--canard)); --ic-opacite: 0.25; }
.filtre-theme:hover { border-color: var(--teinte, var(--canard)); }
.filtre-theme[aria-current="page"] { background: var(--canard); border-color: var(--canard); color: var(--feuille); }
.filtre-theme[aria-current="page"] .ic { color: var(--feuille); --ic-fond: var(--feuille); }
.resume-liste { color: var(--encre-douce); font-size: 1rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 1rem; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 2.9rem; min-height: 2.9rem; padding: 0 0.9rem; border-radius: 999px; font-weight: 700; }
.pagination a { border: 2px solid var(--trait); background: var(--feuille); color: var(--canard); text-decoration: none; }
.pagination a:hover { border-color: var(--canard); }
.pagination [aria-current="page"] { background: var(--canard); color: var(--feuille); }
.pagination .page-ellipse { min-width: 1.5rem; padding: 0; color: var(--encre-douce); }

/* ---------- Menu sur téléphone et tablette : bouton « Menu » et panneau ---------- */
.bouton-menu { display: none; align-items: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1rem; border-radius: 999px; flex: none;
  border: 2px solid var(--canard-clair); background: var(--feuille); color: var(--canard-fonce); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.bouton-menu[aria-expanded="true"] { background: var(--canard); border-color: var(--canard); color: var(--feuille); }
.seulement-tel { display: none; }
@media (max-width: 60rem) {
  .bouton-menu { display: inline-flex; order: 3; }
  .entete-actions { margin-left: auto; }
  .lien-connexion { display: none; }  /* « Se connecter » est dans le menu : la barre ne déborde pas sur tablette */
  .menu { display: none; }
  .menu.ouvert { display: grid; gap: 0.35rem; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0.8rem 20px 1.2rem;
    background: var(--feuille); border-bottom: 1px solid var(--trait); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.45); }
  .menu.ouvert a { display: flex; min-height: 3.3rem; padding: 0 1rem; border-radius: 14px; font-size: 1.15rem; }
  .menu.ouvert .seulement-tel { display: block; }
  .menu.ouvert .menu-inscription { justify-content: center; margin-top: 0.4rem; background: var(--canard); color: var(--feuille); }
}
@media (max-width: 40rem) {
  .entete-actions { display: none; }  /* « Se connecter » et l'inscription passent dans le menu */
  .bouton-menu { margin-left: auto; }
}
