/* Teranga — DA : base Casa di CV claire (bleu) + touches du Sénégal (vert, jaune, rouge : liserés, accents, réussites)
   + motif façon wax maison (MOTIF, app.js). Décision d'Adilson du 04/12/2026. Jaune jamais en texte sur fond clair.
   Clair par défaut. Mode nuit = réglage du profil (classe .nuit sur <html>, posée avant l'affichage par index.html). */
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jakarta-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: "Jakarta"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  /* couleurs Casa di CV */
  --bleu: #003893; --bleu-2: #0a4fc4; --nuit: #062a6b; --nuit-2: #0b3a8c; --ciel: #e8eefb;
  /* touches du Sénégal (couleurs exactes du drapeau : décor seulement ; textes = variantes foncées plus bas) */
  --sn-vert: #00853F; --sn-jaune: #FDEF42; --sn-rouge: #E31B23;
  --rouge: var(--sn-rouge); --rouge-texte: #b8141b; --jaune: var(--sn-jaune); --jaune-pale: #fff9cc; --encre-jaune: #0b1f45;
  /* rôles (anciens noms gardés : le JS s'en sert dans quelques styles en ligne) */
  --sable: #fbf7ef; --sable-2: #f3ecdf; --carte: #ffffff; --texte: #0b1f45; --doux: #56607a; --bord: #e6dccb;
  --kriolu: #003893;                  /* le kriolu affiché : bleu Casa di CV, gras */
  --lien: #0a4fc4;
  --ocean: var(--bleu); --ocean-fonce: var(--nuit); --ocean-pale: var(--ciel);
  --soleil: var(--jaune); --soleil-pale: var(--jaune-pale);
  --corail: #b42318; --corail-pale: #fde8e6;
  --vert: #007a3a; --vert-pale: #e3f4ea;          /* vert du Sénégal assombri : AA sur blanc, sable et vert pâle */
  --ambre: #7a5300; --ambre-pale: #fff1c2;
  --violet: #4b3aa8; --violet-pale: #eeebfb;
  --btn: var(--bleu); --btn-txt: #ffffff; --btn-appui: var(--bleu-2);
  --hero-a: #062a6b; --hero-b: #003893;
  --voile: rgba(6, 18, 45, .45);
  --ombre: none;
  --ombre-flotte: 0 6px 20px rgba(6, 26, 64, .12);
  --rond: 18px;
  --titre: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
html.nuit {
  --sable: #0a1530; --sable-2: #0f1c3d; --carte: #13213f; --texte: #eef2fb; --doux: #b3bed6; --bord: #2a3a60;
  --kriolu: #a9c6ff; --lien: #a9c6ff;
  --ciel: #1b2f5c; --jaune-pale: #3a3112;
  --ocean: #a9c6ff; --ocean-fonce: #06122b; --ocean-pale: #1b2f5c;
  --soleil: var(--sn-jaune); --soleil-pale: #3a3112; --rouge-texte: #ff9a94;
  --corail: #ffb4aa; --corail-pale: #43201d;
  --vert: #8fe0ae; --vert-pale: #12301f;
  --ambre: #ffd36b; --ambre-pale: #3d2f0c;
  --violet: #cbc0ff; --violet-pale: #262048;
  --btn: #8fb3ff; --btn-txt: #061a40; --btn-appui: #a9c6ff;
  --hero-a: #06122b; --hero-b: #0b2a66;
  --voile: rgba(0, 0, 0, .6);
  --ombre-flotte: 0 6px 20px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--sable); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--titre); color: var(--texte); background: var(--sable);
       padding-bottom: calc(88px + env(safe-area-inset-bottom)); min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .titre { font-family: var(--titre); font-weight: 800; letter-spacing: -.02em; }
p { line-height: 1.5; }
main { max-width: 620px; margin: 0 auto; padding: 0 16px 28px; animation: entree .25s ease; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::selection { background: var(--ciel); }

/* ---------- en-tête (bleu nuit Casa di CV + liseré vert-jaune-rouge du Sénégal + motif wax) ---------- */
.hero { background: linear-gradient(165deg, var(--hero-a) 0%, var(--hero-b) 100%); color: #fff;
        padding: calc(20px + env(safe-area-inset-top)) 20px 34px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--sn-vert) 0 33.4%, var(--sn-jaune) 33.4% 66.7%, var(--sn-rouge) 66.7%); }
.hero .motif { position: absolute; right: -30px; top: -20px; width: 190px; opacity: .2; pointer-events: none; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.15; }
.hero p { margin: 6px 0 0; font-size: 16px; color: rgba(255,255,255,.9); }
.hero .rangee { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.anneau { width: 82px; height: 82px; flex: none; position: relative; }
.anneau svg { transform: rotate(-90deg); }
.anneau .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--titre);
               font-weight: 800; font-size: 20px; line-height: 1; }
.anneau .val small { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; color: rgba(255,255,255,.9); }
.barre-haut { background: var(--hero-a); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
              display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; min-height: 64px; }
.barre-haut h1 { font-size: 19px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-haut button { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 19px; flex: none; }
.barre-haut button:active { background: rgba(255,255,255,.24); }
.remonte { margin-top: 4px; position: relative; z-index: 2; }

/* ---------- cartes ---------- */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rond); padding: 18px; margin-top: 12px; color: var(--texte); }
.carte h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.carte p { margin: 6px 0 0; color: var(--doux); font-size: 16px; }
.cliquable { display: block; width: 100%; text-align: left; transition: transform .12s ease, background .12s; font: inherit; }
.cliquable:active { transform: scale(.985); }
button.carte:active { background: var(--sable-2); }
.section { font-family: var(--titre); font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--texte); margin: 32px 2px 2px; line-height: 1.3; }
.moment { display: flex; gap: 14px; align-items: center; }
.moment .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; flex: none; }
.moment .corps { flex: 1; min-width: 0; }
.moment .corps p { font-size: 15px; }
.moment .etat { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.etat.fait { background: var(--vert-pale); color: var(--vert); }
.etat.afaire { background: var(--ambre-pale); color: var(--ambre); }
.i-ocean { background: var(--ciel); } .i-soleil { background: var(--jaune-pale); } .i-corail { background: var(--corail-pale); }
.i-vert { background: var(--vert-pale); } .i-violet { background: var(--violet-pale); }
.mini-barre { height: 8px; border-radius: 4px; background: var(--sable-2); margin-top: 10px; overflow: hidden; }
html.nuit .mini-barre { background: var(--bord); }
.mini-barre i { display: block; height: 100%; border-radius: 4px; background: var(--btn); transition: width .4s ease; }
.mini-barre.vert i { background: var(--vert); }

.phrase-jour { background: var(--carte); }
.phrase-jour .k, .proverbe .k { font-family: var(--titre); font-size: 22px; font-weight: 800; color: var(--kriolu); margin-top: 8px; line-height: 1.3; }
.etiquette { font-size: 14px; font-weight: 700; color: var(--doux); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--carte); border: 1px solid var(--bord); border-radius: 16px; padding: 14px 8px; text-align: center; }
.stat b { display: block; font-family: var(--titre); font-size: 24px; font-weight: 800; color: var(--kriolu); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--doux); line-height: 1.3; display: block; margin-top: 2px; }

/* ---------- grilles ---------- */
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tuile { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 14px; text-align: left; position: relative; min-height: 104px; color: var(--texte); }
.tuile:active { background: var(--sable-2); }
.tuile .e { font-size: 26px; } .tuile b { display: block; font-family: var(--titre); font-weight: 800; font-size: 16px; line-height: 1.3; margin-top: 6px; }
.tuile small { color: var(--doux); font-size: 14px; }
.pastille { position: absolute; top: 10px; right: 10px; background: var(--jaune); color: var(--encre-jaune); border-radius: 10px; font-size: 13px;
            padding: 1px 8px; font-weight: 800; }

/* chemin des leçons */
.chemin { position: relative; margin-top: 12px; }
.chemin::before { content: ""; position: absolute; left: 33px; top: 30px; bottom: 30px; width: 3px; background: var(--bord); border-radius: 2px; }
.etape-l { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 18px; border: 0; background: none; width: 100%; text-align: left; position: relative; min-height: 64px; }
.etape-l:active { background: var(--carte); }
.etape-l .num { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 21px;
                background: var(--carte); border: 3px solid var(--bord); position: relative; z-index: 1; }
.etape-l.fini .num { border-color: var(--vert); background: var(--vert-pale); }
.etape-l.encours .num { border-color: var(--jaune); background: var(--jaune-pale); }
.etape-l.suivante .num { border-color: var(--btn); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,56,147,.35); } 50% { box-shadow: 0 0 0 8px rgba(0,56,147,0); } }
.etape-l b { font-family: var(--titre); font-weight: 800; display: block; font-size: 16.5px; line-height: 1.3; }
.etape-l small { color: var(--doux); font-size: 14.5px; display: block; line-height: 1.4; margin-top: 2px; }

/* ---------- exercice ---------- */
.progression { height: 8px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; flex: 1; }
.progression i { display: block; height: 100%; background: var(--jaune); border-radius: 4px; transition: width .3s ease; }
.question { font-family: var(--titre); font-size: 24px; font-weight: 700; line-height: 1.3; margin: 8px 0 0; color: var(--texte); }
.consigne { color: var(--doux); font-size: 15px; margin: 0; }
.reponse { margin-top: 20px; padding-top: 18px; border-top: 2px dashed var(--bord); animation: entree .2s ease; }
.kriolu { font-family: var(--titre); font-size: 26px; font-weight: 800; color: var(--kriolu); line-height: 1.3; margin: 0; }
.sous-titre { color: var(--doux); font-size: 16px; margin: 6px 0 0; }
.note-gram { background: var(--violet-pale); color: var(--texte); border-radius: 12px; padding: 12px 14px; font-size: 16px; margin-top: 14px; line-height: 1.5; }
.btn { display: block; border: 0; border-radius: 14px; padding: 14px 18px; min-height: 52px; font-weight: 700; font-size: 16.5px; width: 100%; margin-top: 16px;
       background: var(--btn); color: var(--btn-txt); transition: transform .08s, background .12s; line-height: 1.3; text-align: center; }
.btn:active { transform: scale(.98); background: var(--btn-appui); }
.btn.secondaire { background: var(--carte); color: var(--texte); border: 1.5px solid var(--bord); }
html.nuit .btn.secondaire { border-color: #4a5c86; }
.btn.secondaire:active { background: var(--sable-2); }
.btn.soleil { background: var(--jaune); color: var(--encre-jaune); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.ecouter { border: 0; background: var(--ciel); color: var(--kriolu); border-radius: 999px; padding: 10px 18px; min-height: 48px; font-weight: 700;
           font-size: 15.5px; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; }
.ecouter:active { filter: brightness(.95); }
[hidden], .sans-voix { display: none !important; }   /* 🔊 masqué quand le texte n'a pas de vraie voix */
.ecouter.joue { animation: ondes 1s infinite; }
@keyframes ondes { 0%,100% { box-shadow: 0 0 0 0 rgba(0,56,147,.3); } 50% { box-shadow: 0 0 0 6px rgba(0,56,147,0); } }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.notes button { border: 0; border-radius: 14px; padding: 12px 2px; min-height: 56px; font-weight: 800; font-size: 15px; color: #fff; line-height: 1.2; }
.notes small { display: block; font-weight: 600; font-size: 12.5px; margin-top: 3px; }
.n0 { background: #b42318; } .n1 { background: #9a5200; } .n2 { background: #1f7a4d; } .n3 { background: var(--bleu); }
html.nuit .notes button { color: #0a1530; }
html.nuit .n0 { background: #ffb4aa; } html.nuit .n1 { background: #ffc98a; } html.nuit .n2 { background: #8fe0ae; } html.nuit .n3 { background: #a9c6ff; }
.badge { display: inline-block; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-top: 12px;
         background: var(--ambre-pale); color: var(--ambre); }
.badge.ok { background: var(--vert-pale); color: var(--vert); }
.lien { background: none; border: 0; color: var(--lien); font-size: 15.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
        padding: 6px 0; margin: 10px 14px 0 0; min-height: 44px; }
textarea, input[type=search], input[type=text], input[type=email], input[type=password], input[type=number] {
        width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; min-height: 50px; border-radius: 10px;
        border: 1.5px solid var(--bord); background: var(--carte); color: var(--texte); outline: none; }
html.nuit textarea, html.nuit input { border-color: #4a5c86; }
textarea:focus, input:focus { border-color: var(--btn); box-shadow: 0 0 0 3px rgba(10,79,196,.15); }
::placeholder { color: var(--doux); opacity: .85; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

/* choix (QCM) */
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.choix button { border: 1.5px solid var(--bord); background: var(--carte); border-radius: 14px; padding: 14px 10px; min-height: 56px; font-weight: 700;
                font-family: var(--titre); font-size: 18px; color: var(--texte); }
html.nuit .choix button { border-color: #4a5c86; }
.choix button:active { background: var(--sable-2); }
.choix button.bon { border-color: var(--vert); background: var(--vert-pale); color: var(--vert); }
.choix button.faux { border-color: var(--corail); background: var(--corail-pale); color: var(--corail); }
.choix button:disabled { cursor: default; }
.trou { display: inline-block; min-width: 54px; border-bottom: 3px solid var(--jaune); color: var(--texte); text-align: center; }

/* onglets d'étapes de leçon */
.etapes { display: flex; gap: 6px; margin: 16px 0 4px; }
.etapes button { flex: 1; border: 1px solid var(--bord); background: var(--carte); border-radius: 12px; padding: 8px 2px; min-height: 48px;
                 font-size: 14px; font-weight: 700; color: var(--doux); line-height: 1.2; }
.etapes button.actif { background: var(--btn); border-color: var(--btn); color: var(--btn-txt); }
.etapes button.fait:not(.actif) { color: var(--vert); }
.explication p { color: var(--texte); font-size: 16px; margin: 0 0 12px; line-height: 1.6; }
.explication code, .k-bleu { font-family: var(--titre); font-weight: 800; color: var(--kriolu); background: var(--ciel);
                              padding: 1px 6px; border-radius: 6px; font-size: .97em; }
.regle { background: var(--jaune-pale); color: var(--texte); border-radius: 14px; padding: 14px 16px; font-weight: 600; margin: 0 0 16px; line-height: 1.5; }
.exemple { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--bord); }
.exemple:first-child { border-top: 0; padding-top: 4px; }
.exemple .t { flex: 1; } .exemple .t b { font-family: var(--titre); font-weight: 800; color: var(--kriolu); font-size: 17.5px; line-height: 1.35; display: block; }
.exemple .t span { display: block; color: var(--doux); font-size: 15.5px; margin-top: 2px; }
.exemple .t em { display: block; color: var(--violet); font-size: 14.5px; font-style: normal; margin-top: 4px; }
.rond { border: 0; background: var(--ciel); width: 48px; height: 48px; border-radius: 50%; flex: none; font-size: 17px; color: var(--kriolu); }
.rond.plus { background: var(--vert-pale); color: var(--vert); font-weight: 800; font-size: 21px; }
html.nuit .rond:not(.plus) { background: #dbe5fb; color: #061a40; }   /* l'émoji 🔊 est gris foncé : fond clair en nuit pour qu'il se voie */

/* découpage des textes longs (lignes courtes) */
.points-txt { list-style: none; margin: 8px 0 0; padding: 0; }
.points-txt li { position: relative; padding-left: 18px; margin-top: 8px; color: inherit; line-height: 1.5; }
.points-txt li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); }
html.nuit .points-txt li::before { background: var(--jaune); }
ol.points-txt { counter-reset: n; }
ol.points-txt li { padding-left: 34px; counter-increment: n; min-height: 26px; }
ol.points-txt li::before { content: counter(n); width: 24px; height: 24px; top: 0; left: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800;
                           background: var(--ciel); color: var(--kriolu); border-radius: 50%; }
html.nuit ol.points-txt li::before { background: var(--ciel); }
.carte .points-txt li { color: var(--doux); font-size: 16px; }
.tuto .points-txt { text-align: left; max-width: 420px; color: var(--doux); font-size: 17px; }

/* écoute */
.ligne-ecoute { padding: 16px 0; border-top: 1px solid var(--bord); }
.ligne-ecoute:first-child { border-top: 0; }
.ligne-ecoute.active .mots { color: var(--kriolu); }
.mots { font-family: var(--titre); font-size: 19px; font-weight: 700; line-height: 1.55; color: var(--texte); }
.mots span { cursor: pointer; border-radius: 6px; padding: 0 1px; }
.mots span:hover, .mots span.vu { background: var(--jaune-pale); }
.trad { color: var(--doux); font-size: 16px; margin-top: 4px; }
.trad.cachee { filter: blur(6px); cursor: pointer; user-select: none; }
.outils-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.puce { border: 1.5px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 999px; padding: 8px 14px; min-height: 44px; font-size: 15px; font-weight: 600; }
html.nuit .puce { border-color: #4a5c86; }
.puce.actif { background: var(--ciel); color: var(--kriolu); border-color: var(--btn); font-weight: 800; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.source { font-size: 14px; color: var(--doux); margin-top: 8px; }

/* feuille du bas (mot touché) */
.voile { position: fixed; inset: 0; background: var(--voile); z-index: 20; animation: fondu .15s; }
@keyframes fondu { from { opacity: 0; } }
.feuille { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--carte); color: var(--texte); border-radius: 24px 24px 0 0;
           padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 78vh; overflow: auto; animation: monte .2s ease; max-width: 620px; margin: 0 auto;
           box-shadow: var(--ombre-flotte); }
@keyframes monte { from { transform: translateY(100%); } }
.feuille .poignee { width: 42px; height: 5px; background: var(--bord); border-radius: 3px; margin: 0 auto 12px; }

/* fluidité */
.chrono { width: 220px; height: 220px; margin: 18px auto 6px; position: relative; }
.chrono svg { transform: rotate(-90deg); }
.chrono .temps { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titre); font-size: 46px; font-weight: 800; }
.chrono .temps small { display: block; font-size: 15px; color: var(--doux); font-weight: 600; text-align: center; }
.manche { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.manche span { width: 40px; height: 8px; border-radius: 4px; background: var(--bord); }
.manche span.ok { background: var(--vert); } .manche span.en { background: var(--jaune); }

/* journal */
.correction { padding: 12px 0; border-top: 1px solid var(--bord); }
.correction:first-child { border-top: 0; }
.avant { color: var(--corail); text-decoration: line-through; text-decoration-thickness: 2px; }
.apres { color: var(--vert); font-weight: 700; }
.phrase-corr { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--bord); align-items: flex-start; }
.phrase-corr:first-child { border-top: 0; }
.phrase-corr .ic { font-size: 18px; } .phrase-corr .t { flex: 1; }
.attente { text-align: center; padding: 30px 10px; }
.vague { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.vague i { width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); animation: saut 1s infinite ease-in-out; }
.vague i:nth-child(2) { animation-delay: .15s; background: var(--jaune); } .vague i:nth-child(3) { animation-delay: .3s; background: var(--rouge); }
@keyframes saut { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* fin de série */
.fin { text-align: center; padding: 26px 18px; }
.fin .gros { font-family: var(--titre); font-size: 54px; font-weight: 800; color: var(--vert); line-height: 1; margin: 8px 0; }
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 30; border-radius: 2px; animation: tombe linear forwards; pointer-events: none; }
@keyframes tombe { to { transform: translateY(105vh) rotate(720deg); opacity: .7; } }

/* navigation du bas */
nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--carte); border-top: 1px solid var(--bord);
      display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: var(--ombre-flotte); }
nav button { flex: 1; border: 0; background: none; padding: 6px 0; min-height: 56px; font-size: 12.5px; font-weight: 700; color: var(--doux);
             border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
nav button .i { font-size: 22px; line-height: 1.2; filter: grayscale(1); opacity: .7; transition: .15s; }
nav button.actif { color: var(--kriolu); background: var(--ciel); font-weight: 800; }
nav button.actif .i { filter: none; opacity: 1; transform: scale(1.08); }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px);
         background: var(--texte); color: var(--sable); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-align: center;
         animation: entree .2s; box-shadow: var(--ombre-flotte); }
.vide { color: var(--doux); text-align: center; padding: 30px 10px; }
.resultat { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--bord); color: var(--texte); }
.resultat:first-child { border-top: 0; }
.resultat .t { flex: 1; } .resultat b { font-family: var(--titre); font-weight: 800; color: var(--kriolu); font-size: 17px; line-height: 1.35; }
.resultat small { display: block; color: var(--doux); font-size: 15px; margin-top: 2px; }
.carte .question, .carte .regle, .carte .explication p { color: var(--texte); }
.carte .kriolu { color: var(--kriolu); }
.carte .sous-titre { color: var(--doux); }
.note-gram code, .exemple em code, .regle code { font-family: var(--titre); font-weight: 800; color: var(--kriolu);
  background: rgba(255,255,255,.6); padding: 0 5px; border-radius: 5px; }
html.nuit .note-gram code, html.nuit .exemple em code, html.nuit .regle code { background: rgba(255,255,255,.08); }

/* =================================================================== version vendue (comptes, présentation, profil) */
body.sans-nav { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
:focus-visible { outline: 3px solid var(--bleu-2); outline-offset: 2px; }
html.nuit :focus-visible { outline-color: var(--jaune); }
.hero :focus-visible, .barre-haut :focus-visible { outline-color: var(--jaune); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* chargement (squelette) */
.chargement { padding-top: 16px; }
.sq { height: 92px; border-radius: var(--rond); margin-top: 12px; background: linear-gradient(90deg, var(--sable-2) 0%, var(--carte) 50%, var(--sable-2) 100%);
      background-size: 200% 100%; animation: lueur 1.2s infinite linear; }
.sq-hero { height: 150px; margin: 0 -16px; border-radius: 0; background: linear-gradient(165deg, var(--hero-a), var(--hero-b)); animation: none; }
.sq.court { width: 60%; height: 40px; }
@keyframes lueur { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* bandeau essai / alerte */
.bandeau-essai { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; background: var(--jaune-pale);
                 border: 1px solid color-mix(in srgb, var(--jaune) 60%, transparent); font-size: 15px; padding: 12px 16px; min-height: 52px; color: var(--texte); }
.bandeau-essai b { color: var(--kriolu); white-space: nowrap; }
.bandeau-alerte { background: var(--corail-pale); font-size: 15px; }

/* logo (rond bleu Casa di CV + nom) */
.logo-app { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 800; font-size: 19px; color: #fff; }
.logo-app img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; flex: none; }
.logo-app small { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: 0; }

/* page de présentation */
.hero-accueil { padding: calc(14px + env(safe-area-inset-top)) 20px 44px; text-align: center; }
.hero-accueil h1 { font-size: 30px; line-height: 1.15; margin: 18px auto 0; max-width: 460px; position: relative; z-index: 1; }
.hero-accueil p { font-size: 17px; max-width: 440px; margin: 12px auto 0; position: relative; z-index: 1; }
.hero-accueil .btn { max-width: 420px; position: relative; z-index: 1; margin: 22px auto 0; }
.hero-accueil .motif { width: 240px; right: -90px; top: 60px; opacity: .12; }
.selecteur-langue { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; position: relative; z-index: 1; }
.selecteur-langue button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700;
                           min-width: 44px; min-height: 40px; padding: 4px 8px; }
.selecteur-langue button.actif { background: #fff; color: var(--bleu); }
.logo-accueil { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; position: relative; z-index: 1;
                font-family: var(--titre); font-weight: 800; font-size: 21px; }
.logo-accueil img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(0,0,0,.25); }
.btn-clair { display: block; margin: 12px auto 0; background: none; border: 0; color: #fff; font-weight: 700; font-size: 16px;
             text-decoration: underline; text-underline-offset: 4px; min-height: 48px; position: relative; z-index: 1; }
.accueil .carte h3 { font-size: 18px; }
.exemple-accueil { text-align: center; }
.mention-voix { font-size: 14px; color: var(--doux); text-align: center; margin: 24px 8px 0; line-height: 1.5; }
.pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin-top: 14px; }
.pied .lien { margin: 0 6px; font-size: 14.5px; color: var(--doux); font-weight: 600; }

/* offres */
.offre { position: relative; text-align: left; }
.offre .prix { font-family: var(--titre); font-size: 34px; font-weight: 800; color: var(--kriolu); margin-top: 4px; }
.offre .prix small { font-size: 16px; color: var(--doux); font-weight: 600; }
.offre.meilleure { border: 2px solid var(--jaune); }
.ruban { position: absolute; top: 14px; right: 14px; background: var(--jaune); color: var(--encre-jaune); font-weight: 800; font-size: 13px;
         padding: 4px 10px; border-radius: 999px; }
.occupe { opacity: .6; pointer-events: none; }

/* premier lancement */
.pas-depart { display: flex; gap: 6px; justify-content: center; margin: 16px 0 2px; }
.pas-depart i { width: 34px; height: 6px; border-radius: 3px; background: var(--bord); }
.pas-depart i.fait { background: var(--vert); } .pas-depart i.en { background: var(--btn); }
.choix-ile { display: grid; gap: 10px; margin-top: 14px; }
.choix-ile button { border: 1.5px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 16px; padding: 14px 16px; text-align: left; min-height: 60px; }
html.nuit .choix-ile button { border-color: #4a5c86; }
.choix-ile button b { display: block; font-family: var(--titre); font-weight: 800; font-size: 17px; }
.choix-ile button small { display: block; color: var(--doux); font-size: 15px; margin-top: 2px; line-height: 1.4; }
.choix-ile button.actif { border: 2px solid var(--btn); background: var(--ciel); }
.choix-ile.grand button { padding: 18px; }
.tuto { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
        padding: calc(30px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto;
        animation: entree .3s ease; position: relative; }
.tuto .passer { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 16px; margin: 0; }
.tuto-ico { font-size: 62px; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: var(--ciel); }
.tuto h1 { font-size: 27px; margin: 26px 0 0; line-height: 1.2; }
.tuto > p, .tuto p { color: var(--doux); font-size: 17px; margin: 12px 0 0; }
.tuto .points { display: flex; gap: 8px; margin: 30px 0 6px; }
.tuto .points i { width: 8px; height: 8px; border-radius: 4px; background: var(--bord); transition: width .2s; }
.tuto .points i.en { width: 24px; background: var(--btn); }

/* formulaires */
.formulaire label { display: block; font-weight: 700; font-size: 15.5px; margin-top: 16px; }
.formulaire label input { margin-top: 6px; }
.formulaire label.case { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 44px; }
.formulaire label.case input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; }
.aide { display: block; color: var(--doux); font-size: 14px; margin-top: 4px; font-weight: 500; }
.erreur { color: var(--corail) !important; font-weight: 700; margin-top: 12px !important; }
details { margin-top: 14px; } details summary { cursor: pointer; color: var(--lien); font-weight: 700; font-size: 15.5px; min-height: 44px; display: flex; align-items: center; }
details input { margin-top: 8px; }
.ligne-champ { display: flex; gap: 8px; margin-top: 10px; }
.btn.petit { width: auto; margin: 0; padding: 0 20px; }

/* carnet */
.phrase-carnet { padding: 12px 0; border-top: 1px solid var(--bord); }
.phrase-carnet:first-of-type { border-top: 0; }
.phrase-carnet .ligne { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.phrase-carnet .ligne b { flex: 1; }
.phrase-carnet input { padding: 10px 12px; }

/* profil */
.liens-profil { padding: 4px 18px; }
.liens-profil .resultat { width: 100%; border: 0; border-top: 1px solid var(--bord); background: none; justify-content: space-between; align-items: center; min-height: 52px; font-size: 16px; font-weight: 600; }
.liens-profil .resultat:first-child { border-top: 0; }
.liens-profil .resultat > span:last-child { color: var(--doux); font-size: 20px; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; background: var(--sable-2); border-radius: 14px; padding: 4px; }
html.nuit .segment { background: var(--sable); }
.segment button { border: 0; background: none; border-radius: 11px; min-height: 48px; font-weight: 700; font-size: 15.5px; color: var(--doux); }
.segment button.actif { background: var(--carte); color: var(--texte); box-shadow: 0 1px 3px rgba(6,26,64,.15); }
html.nuit .segment button.actif { background: #2a3d68; }
.legal h3 { margin: 22px 0 6px; font-size: 17px; } .legal h3:first-child { margin-top: 0; }
.legal p { color: var(--texte); font-size: 16px; margin: 8px 0 0; }

/* admin */
.stats-4 { grid-template-columns: repeat(2, 1fr); }
.tableau-wrap { overflow-x: auto; padding: 10px 12px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; color: var(--doux); font-weight: 700; padding: 6px 6px; border-bottom: 2px solid var(--bord); }
.tableau td { padding: 8px 6px; border-top: 1px solid var(--bord); vertical-align: top; }
.tableau td small { color: var(--doux); }
.tableau tr.inactif { opacity: .5; }

/* =================================================================== gamification (parcours, trophées, famille, bilan, contenus) */
.pilules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; opacity: 1 !important; }
.pilule { background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 11px; font-size: 14px; font-weight: 700; color: #fff; }
.objectif-atteint { background: var(--vert-pale); color: var(--vert); font-weight: 700; text-align: center; font-size: 16px; padding: 14px 16px; border-color: transparent; }
.voyage-jour .mini-barre i { background: var(--jaune); }
html:not(.nuit) .voyage-jour .mini-barre i { background: #d4a900; }
.moment > span:last-child:not(.etat) { color: var(--doux); font-size: 24px; }
.proverbe { border-left: 1px solid var(--bord); }
.gain { font-weight: 700; color: var(--ambre) !important; margin-top: 8px !important; }
.centre { text-align: center; }

/* niveau */
.pastille-niveau { flex: none; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14); border: 3px solid var(--jaune);
                   display: grid; place-content: center; text-align: center; font-family: var(--titre); color: #fff; }
.pastille-niveau b { font-size: 24px; line-height: 1; } .pastille-niveau small { font-size: 12px; color: rgba(255,255,255,.9); }

/* carte du Sénégal (10 étapes) — viewBox de 1 040 de large : textes en unités de la carte */
.carte-voyage { padding: 10px; }
.carte-iles { width: 100%; height: auto; display: block; border-radius: 14px; }
.carte-senegal .fond-carte { fill: #e6eef4; }
.carte-senegal .pays { fill: #f6ead2; stroke: #b98d4a; stroke-width: 3; stroke-linejoin: round; }
.carte-senegal .gambie { fill: #e9e3d6; stroke: #b98d4a; stroke-width: 2; stroke-dasharray: 6 5; }
.carte-iles .route { fill: none; stroke: #00853F; stroke-width: 4; stroke-dasharray: 3 11; stroke-linecap: round; opacity: .6; }
.carte-iles .marque { stroke: #fff; stroke-width: 4; transition: fill .4s; }
.carte-iles .ile.ouverte .marque { fill: #00853F; }
.carte-iles .ile.fermee .marque { fill: #9aa3b2; }
.carte-iles .ile.ouverte { cursor: pointer; }
.carte-iles .ile.ouverte:focus { outline: none; } .carte-iles .ile.ouverte:focus .marque { stroke: var(--texte); stroke-width: 6; }
.carte-iles text { font: 700 30px var(--titre); fill: #1d2a22; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 8px; stroke-linejoin: round; }
.carte-iles .ile.fermee text { fill: #59627a; font-weight: 600; }
.carte-iles .point-ile { fill: #E31B23; stroke: #fff; stroke-width: 3; }
.carte-iles .anneau-ile { fill: none; stroke: #E31B23; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: anneau-ile 2s infinite ease-out; }
@keyframes anneau-ile { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.carte-iles.mini { max-width: 340px; margin: 0 auto; }
.escale { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 8px 4px; }
.escale h3 { margin: 2px 0 0; }
.critere { margin-top: 14px; }
.ligne-crit { display: flex; justify-content: space-between; gap: 8px; font-size: 15.5px; }
.ligne-crit b { color: var(--doux); font-size: 14px; white-space: nowrap; }
.critere.ok .ligne-crit b { color: var(--vert); }
.stats-points .stat b { font-size: 21px; }
.aide-joker { margin: 10px 4px 0; font-size: 14px; }
.liens-profil .compte { color: var(--doux); font-size: 15px; }
.liste-iles { padding: 4px 12px; }
.ligne-ile { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 12px 0; border-top: 1px solid var(--bord); text-align: left; min-height: 60px; color: var(--texte); }
.ligne-ile:first-child { border-top: 0; }
.ligne-ile:disabled { cursor: default; color: inherit; opacity: 1; }
.ligne-ile .num-ile { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-family: var(--titre);
                      background: var(--sable-2); color: var(--doux); font-size: 15px; }
html.nuit .ligne-ile .num-ile { background: var(--bord); }
.ligne-ile.ouverte .num-ile { background: var(--jaune-pale); font-size: 19px; }
.ligne-ile .t { flex: 1; min-width: 0; } .ligne-ile b { display: block; font-family: var(--titre); font-weight: 800; font-size: 16.5px; }
.ligne-ile small { display: block; color: var(--doux); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.ligne-ile:not(.ouverte) b { color: var(--doux); }
.bareme summary { cursor: pointer; min-height: 44px; list-style: none; } .bareme summary::-webkit-details-marker { display: none; }
.bareme summary::after { content: " ›"; color: var(--doux); }
.ligne-bareme { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--bord); font-size: 15.5px; }
.ligne-bareme b { color: var(--vert); white-space: nowrap; }

/* fiche d'île / célébrations */
.fiche-ile .titre-fiche { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.emoji-fiche { font-size: 34px; width: 64px; height: 64px; border-radius: 20px; background: var(--jaune-pale); display: grid; place-items: center; flex: none; }
.fiche-ile h3 { margin: 0; font-size: 23px; } .fiche-ile small { color: var(--doux); font-size: 15px; }
.texte-fiche { color: var(--texte); font-size: 16px; line-height: 1.55; margin: 14px 0 8px; }
.texte-fiche .points-txt li { color: var(--texte); }
.etiquette.centre { text-align: center; margin-bottom: 8px; color: var(--rouge-texte); }
html.nuit .etiquette.centre { color: var(--jaune); }
.trophee-gagne { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bord); }
.trophee-gagne:first-of-type { border-top: 0; }
.trophee-gagne .medaille { font-size: 28px; width: 56px; height: 56px; }
.trophee-gagne b { display: block; font-family: var(--titre); font-weight: 800; font-size: 17px; } .trophee-gagne small { color: var(--doux); font-size: 15px; }
.trophee-gagne.grand .medaille { width: 72px; height: 72px; font-size: 36px; }
.trophee-gagne.verrou .medaille { filter: grayscale(1); opacity: .55; }

/* trophées */
.medaille { display: grid; place-items: center; border-radius: 50%; flex: none;
            background: radial-gradient(circle at 35% 30%, #fffbe6, var(--jaune-pale) 60%); box-shadow: inset 0 0 0 3px var(--jaune); }
.grille-trophees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.trophee { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 12px 6px 10px; text-align: center; display: flex;
           flex-direction: column; align-items: center; gap: 4px; min-height: 144px; color: var(--texte); }
.trophee .medaille { width: 54px; height: 54px; font-size: 26px; }
.trophee:not(.obtenu) .medaille { filter: grayscale(1); opacity: .45; box-shadow: inset 0 0 0 3px var(--bord); background: var(--sable); }
.trophee b { font-family: var(--titre); font-weight: 800; font-size: 13.5px; line-height: 1.25; }
.trophee small { color: var(--doux); font-size: 13px; }
.trophee.obtenu small { color: var(--vert); font-weight: 700; }
.trophee .mini-barre { width: 70%; margin-top: auto; height: 6px; }

/* famille */
.groupe .defi { background: var(--ciel); border-radius: 14px; padding: 14px; }
.defi-texte { color: var(--texte) !important; font-weight: 700; font-size: 16px !important; }
.mini-barre.epaisse { height: 10px; border-radius: 5px; } .mini-barre.epaisse i { border-radius: 5px; background: var(--btn); }
.mini-barre.epaisse.vert i { background: var(--vert); }
.classement { list-style: none; padding: 0; margin: 6px 0 0; }
.classement li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--bord); }
.classement li:first-child { border-top: 0; }
.classement .rang { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sable-2); font-weight: 800; font-size: 13px; flex: none; }
html.nuit .classement .rang { background: var(--bord); }
.classement li:first-child .rang { background: var(--jaune); color: var(--encre-jaune); }
.classement .nom { flex: 1; font-weight: 700; } .classement .nom small { color: var(--doux); font-weight: 500; font-size: 14px; }
.classement .jours { color: var(--vert); font-size: 10px; letter-spacing: 1px; }
.classement b { font-family: var(--titre); font-weight: 800; color: var(--kriolu); min-width: 40px; text-align: right; }
.classement li.moi { background: var(--jaune-pale); border-radius: 12px; padding-left: 8px; padding-right: 8px; border-top-color: transparent; }
.calmes { margin-top: 8px !important; }
.code-groupe { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--bord); }
.code-groupe .code { font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: 3px; color: var(--kriolu); font-weight: 700; }

/* bilan */
.onglets-semaine { margin-top: 14px; }
.stat small { display: block; font-size: 13px; font-weight: 700; }
.stat .hausse { color: var(--vert); } .stat .baisse { color: var(--doux); }
.histo { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 130px; align-items: end; margin-top: 12px; }
.histo .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.histo .col i { display: block; width: 100%; max-width: 30px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--btn); }
.histo .col small { color: var(--doux); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.histo .col .v { font-size: 12px; color: var(--doux); font-weight: 700; min-height: 14px; }
.pilier-bilan { margin-top: 14px; }
.barre-pilier { position: relative; height: 12px; border-radius: 6px; background: var(--sable-2); margin-top: 6px; }
html.nuit .barre-pilier { background: var(--bord); }
.barre-pilier i { display: block; height: 100%; border-radius: 6px; background: var(--btn); transition: width .4s; }
.barre-pilier i.ok { background: var(--vert); }
.barre-pilier .cible { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--texte); opacity: .5; }
.liste-bilan { margin: 8px 0 0; padding-left: 20px; color: var(--texte); font-size: 16px; }
.liste-bilan li { margin-top: 6px; }
.prochain-objectif { border: 2px solid var(--jaune); }

/* objectif quotidien */
.choix-objectif { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; width: 100%; }
.choix-objectif button { border: 1.5px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 16px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; min-height: 96px; }
html.nuit .choix-objectif button { border-color: #4a5c86; }
.choix-objectif b { font-family: var(--titre); font-weight: 800; font-size: 26px; line-height: 1; } .choix-objectif small { color: var(--doux); font-size: 13px; }
.choix-objectif span { font-size: 12.5px; color: var(--doux); margin-top: 4px; line-height: 1.25; }
.choix-objectif button.actif { border: 2px solid var(--btn); background: var(--ciel); }
.tuto .btn.secondaire { max-width: 420px; }
.tuto .btn { max-width: 420px; }

/* positionnement / quiz */
.choix-long { grid-template-columns: 1fr; }
.choix-long button { font-family: inherit; font-size: 16px; font-weight: 600; text-align: left; padding: 14px; line-height: 1.4; }
.notes-3 { grid-template-columns: repeat(3, 1fr); }

/* contenus */
.champ-recherche { display: flex !important; align-items: center; gap: 10px; color: var(--doux); font-size: 16px; padding: 15px 18px; min-height: 56px; }
.bientot { display: flex; gap: 14px; align-items: center; background: var(--vert-pale); border: 1px dashed color-mix(in srgb, var(--vert) 45%, transparent); }
.bientot .e { font-size: 28px; } .bientot b { font-family: var(--titre); font-weight: 800; }
.tuile-large { min-height: 112px; }
.tuile.lue { opacity: .8; }
.liste-contenus { padding: 4px 16px; }
.liste-contenus .resultat { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; align-items: center; }
.liste-contenus .resultat:first-child { border-top: 0; }
.liste-contenus .resultat > span:last-child { color: var(--doux); font-size: 22px; }
.liste-contenus .meta { margin-top: 4px; font-size: 14px; }
.k-doux { font-style: italic; }
.fil { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.bulle { background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; padding: 12px 14px; max-width: 92%; animation: entree .25s ease; }
.bulle.gauche { align-self: flex-start; border-bottom-left-radius: 6px; }
.bulle.droite { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--ciel); border-color: transparent; }
.bulle .qui { font-size: 13px; font-weight: 800; color: var(--rouge-texte); }
html.nuit .bulle .qui { color: #ffb4aa; }
.bulle .mots { font-size: 18px; }
.bulle.a-toi { border: 2px solid var(--jaune); }
.bulle.reussie { border-color: var(--vert); } .bulle.presque { border-color: #c47a00; } .bulle.ratee { border-color: var(--corail); }
.fiche-culture p { color: var(--texte); font-size: 16px; margin: 10px 0 0; line-height: 1.6; }
.fiche-culture .bloc-culture { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bord); }
.fiche-culture .bloc-culture:first-of-type { border-top: 0; padding-top: 0; }
.fiche-culture .bloc-culture h4 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--texte); }
.lecteur .paragraphe .mots { font-size: 19.5px; line-height: 1.65; }

/* nuit : carte du Sénégal */
html.nuit .carte-senegal .fond-carte { fill: #0d1a2e; }
html.nuit .carte-senegal .pays { fill: #2a2a22; stroke: #8a7550; }
html.nuit .carte-senegal .gambie { fill: #1c2230; stroke: #8a7550; }
html.nuit .carte-iles .route { stroke: #5fd394; opacity: .55; }
html.nuit .carte-iles .marque { stroke: #0d1a2e; }
html.nuit .carte-iles .ile.ouverte .marque { fill: #2fb36a; }
html.nuit .carte-iles .ile.fermee .marque { fill: #5a6378; }
html.nuit .carte-iles text { fill: #eef2fb; stroke: rgba(10,20,40,.85); }
html.nuit .carte-iles .ile.fermee text { fill: #b3bed6; }
html.nuit .medaille { background: radial-gradient(circle at 35% 30%, #5a4a1a, var(--jaune-pale) 60%); }

/* leçon : exemples en cartes séparées, explications en lignes courtes */
.carte.exemple, .carte.exemple:first-child { display: flex; border-top: 1px solid var(--bord); padding: 14px 16px; margin-top: 10px; }
.explication .points-txt { margin: 0 0 14px; }
.explication .points-txt li { color: var(--texte); font-size: 16px; }
.explication > p:last-child, .explication > .points-txt:last-child { margin-bottom: 0; }
.consigne-ecrire { margin-top: 8px; }
.consigne-ecrire p, .consigne-ecrire li { color: var(--texte) !important; font-size: 16px; }

/* ---- feuille « mot touché » (04/12, front) : sens en clair d'abord, gras réservé au mot touché ---- */
.feuille .mot-tete { margin: 0 0 4px; font-size: 24px; font-weight: 800; font-family: var(--titre); }
.sens { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--bord); }
.mot-tete + .sens { border-top: 0; }
.sens .t { flex: 1; min-width: 0; }
.sens-fr { font-size: 17px; font-weight: 600; color: var(--texte); line-height: 1.35; }
.sens-k { margin-top: 4px; color: var(--kriolu); font-size: 16px; line-height: 1.45; font-weight: 400; }
.sens-k b, .sens-ex b { font-weight: 800; }
.sens-k i { font-style: normal; color: var(--doux); }
.sens-k small, .sens-ex span:not(.k) { color: var(--doux); font-size: 14px; }
.sens-ex { margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--bord); font-size: 15px; line-height: 1.45; }
.sens-ex .k { display: block; color: var(--kriolu); font-style: italic; }
.sens-ex span:not(.k) { display: block; }
.sens-suite .sens:first-child { border-top: 1px solid var(--bord); }
.feuille .voir-plus { display: block; margin: 4px 0 8px; min-height: 44px; }
/* reprise et contenus du jour */
.carte.reprendre .etat { white-space: nowrap; }
.carte-du-jour .etiquette { margin-bottom: 2px; }
.carte-du-jour p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grille.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille.grille-3 .tuile b { font-size: 14px; }

/* ---- onboarding (relève b, 04/12) ---- */
.onb-titre { font-family: var(--titre); font-size: 25px; line-height: 1.2; margin: 18px 0 6px; text-align: center; }
.onb-texte { color: var(--doux); text-align: center; margin: 0 0 6px; }
.onb-etiq { display: block; text-align: center; margin-top: 14px; }
.onb-choix { display: grid; gap: 10px; margin-top: 14px; }
.onb-choix button { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--carte); color: var(--texte);
  border: 2px solid var(--bord); border-radius: 16px; padding: 12px 14px; min-height: 58px; font: inherit; cursor: pointer; }
.onb-choix button.actif { border-color: var(--btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 25%, transparent); }
.onb-choix .e { font-size: 26px; width: 34px; text-align: center; flex: none; }
.onb-choix .t { display: flex; flex-direction: column; } .onb-choix .t small { color: var(--doux); margin-top: 2px; }
.onb-passer { display: block; margin: 16px auto 0; }
.promesse { margin-top: 16px; } .promesse p { margin: 6px 0 0; color: var(--texte); }
.decouverte { text-align: center; padding: 22px 16px; } .decouverte .kriolu { font-size: 26px; margin-top: 12px; }
.decouverte .consigne { margin-top: 14px; }
label.case-consent, .formulaire label.case-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; text-align: left; cursor: pointer; }
.formulaire label.case-consent input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--btn); }
.case-consent span { display: flex; flex-direction: column; font-size: 15px; } .case-consent small { color: var(--doux); margin-top: 3px; font-weight: 400; }
/* ---- marque Casa di CV + partage ---- */
.logo-accueil span small { display: block; font-family: var(--corps, inherit); font-weight: 600; font-size: 12px; opacity: .85; letter-spacing: .02em; }
.logo-accueil span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.signature { margin-top: 22px; text-align: center; }
.signature-marque { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--doux); }
.signature-marque img { border-radius: 50%; }
.carte-marque .marque-tete { display: flex; align-items: center; gap: 12px; }
.carte-marque .marque-tete img { border-radius: 50%; }
.carte-marque .marque-tete div { display: flex; flex-direction: column; } .carte-marque small { color: var(--doux); }
.carte-marque p { margin: 10px 0 4px; }
a.puce { text-decoration: none; }
.partage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.partage-actions .btn { margin: 0; text-align: center; text-decoration: none; }
.feuille input[readonly] { width: 100%; margin-top: 10px; }

.promesse .promesse-offert { margin-top: 10px; font-size: 14px; }
/* ---- freemium : serrure sur un contenu payant (la carte reste visible : la carotte) ---- */
.verrouille { position: relative; }
.verrouille .etat { display: none; }   /* carte payante : la serrure remplace le badge « soir »/« midi » */
.verrouille .serrure { position: absolute; top: 8px; right: 10px; font-size: 14px; line-height: 1; padding: 4px 6px; border-radius: 999px;
  background: var(--soleil, #FDEF42); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.verrouille .num, .verrouille .e, .verrouille .ico { filter: grayscale(.6); opacity: .75; }

/* page abonnement (Front d, 04/12) : chiffres de /api/offre */
.carte-cadeau { background: var(--jaune-pale); border-color: var(--jaune); }
.carte-cadeau b { color: var(--texte); font-size: 17px; }
.liste-complet { list-style: none; margin: 10px 0 0; padding: 0; }
.liste-complet li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--bord); color: var(--texte); font-size: 16px; line-height: 1.4; }
.liste-complet li:first-child { border-top: 0; }
.liste-complet li span { flex: 0 0 22px; text-align: center; }

/* page abonnement : case « accès immédiat et renonciation à la rétractation » (Front f, 04/12) */
.abo-renonce { margin: 4px 2px 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid transparent; }
.abo-renonce input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--btn); }
.abo-renonce span { font-size: 14px; font-weight: 500; }
.abo-renonce.a-cocher { border-color: var(--rouge, #c8102e); background: color-mix(in srgb, var(--rouge, #c8102e) 8%, transparent); }

/* bandeau cookies (arrivée par un lien d'affilié ou de parrainage) : Accepter et Refuser à égalité, pas de croix */
.bandeau-cookies { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; max-width: 560px; margin: 0 auto;
  background: var(--carte); color: var(--texte); border: 1px solid var(--bord); border-radius: 16px; padding: 12px;
  box-shadow: 0 8px 30px rgba(6, 18, 45, .22); font-size: 14px; line-height: 1.4; }
body:not(.sans-nav) .bandeau-cookies { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.bandeau-cookies p { margin: 0; }
.bandeau-cookies .lien { font-size: 14px; padding: 10px 0; margin: -10px 0; white-space: nowrap; }
.bandeau-cookies .bc-boutons { display: flex; gap: 8px; margin-top: 10px; }
.bandeau-cookies .bc-boutons .btn { flex: 1; min-height: 44px; margin: 0; padding: 8px 12px; font-size: 15px; }
body.avec-bandeau { padding-bottom: 150px; }
