/* ═══ Giri Académie — l'application : le même langage que Giri Cuisine. Marbre lumineux, or, EB Garamond & Lato. ═══ */
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond12-Regular.woff2?v=2b') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond12-Italic.woff2?v=2b') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Regular.woff2?v=2b') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Italic.woff2?v=2b') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Semibold.woff2?v=2b') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --marbre: #fdfaf2; --pierre: #fffdf8; --sable: #f4ecda;
  --or: #b8902d; --or-clair: #d4af37; --or-sombre: #8a6512; --filet: #e2d2a4;
  --encre: #2a2118; --encre-douce: #4a3a26; --encre-pale: #76603f;
  --voile: rgba(253,250,242,.55); --voile-fort: rgba(253,250,242,.92); --voile-doux: rgba(253,250,242,.35);
  --fond: #fdfaf2 url('img/marbre-doux-portrait.webp?v=1') center / cover no-repeat;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --barre-h: 64px; --rayon: 18px;
  --ombre: 0 2px 6px rgba(74,48,12,.08), 0 10px 26px rgba(74,48,12,.10);
  --lingot: linear-gradient(135deg, #F4D58A 0%, #E8C078 42%, #C9A253 72%, #A07840 100%);
  color-scheme: light;
}
/* [NUIT-BLEUE 14/10] La nuit = le Marbre de nuit du portail (bleu nuit, pierre pierre-nuit.webp, or) — le brun #17120c est banni (Maha : « le truc marron »). La nuit : velours sombre, l'or reste. Déclenchée par le réglage de la personne, ou par son téléphone. */
:root[data-theme="nuit"] { --marbre: #0b1426; --pierre: #14203a; --sable: #1b2a48; --filet: #4d4428; --encre: #edf1f8; --encre-douce: #c9d2e3; --encre-pale: #93a0b8; --or-sombre: #e2bf63;
  --voile: rgba(11,20,38,.6); --voile-fort: rgba(11,20,38,.93); --voile-doux: rgba(11,20,38,.45); --ombre: 0 2px 6px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.4);
  --fond: linear-gradient(rgba(8,14,28,.25), rgba(8,14,28,.45)), url('img/pierre-nuit-portrait.webp?v=1') center / cover no-repeat #0b1426; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="jour"]) { --marbre: #0b1426; --pierre: #14203a; --sable: #1b2a48; --filet: #4d4428; --encre: #edf1f8; --encre-douce: #c9d2e3; --encre-pale: #93a0b8; --or-sombre: #e2bf63;
    --voile: rgba(11,20,38,.6); --voile-fort: rgba(11,20,38,.93); --voile-doux: rgba(11,20,38,.45); --ombre: 0 2px 6px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.4);
    --fond: linear-gradient(rgba(8,14,28,.25), rgba(8,14,28,.45)), url('img/pierre-nuit-portrait.webp?v=1') center / cover no-repeat #0b1426; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* iPhone et iPad : la taille de texte choisie dans les réglages (Dynamic Type) devient la base de toute l'application */
@supports (font: -apple-system-body) { html[data-texte="auto"] { font: -apple-system-body; } }
html[data-texte="grand"] { font-size: 112.5%; } html[data-texte="tresgrand"] { font-size: 125%; }
body { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.5; color: var(--encre); background: var(--fond); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--barre-h) + env(safe-area-inset-bottom)); min-height: 100vh; }
body.porte { padding-bottom: 24px; }
body::before { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, var(--voile-doux), var(--voile)); pointer-events: none; z-index: 0; }
.entete, .vue, .barre, .cours, .toast { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--encre); line-height: 1.12; text-wrap: balance; }
h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.375rem; }
p { margin: 0 0 12px; }
a { color: var(--or-sombre); }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
.saut { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; }
.saut:focus { left: 8px; z-index: 50; }
:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── en-tête ── */
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--voile); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s; }
.entete.voilee { background: var(--voile-fort); border-bottom-color: var(--filet); box-shadow: 0 8px 24px rgba(74,48,12,.07); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque-t { display: flex; flex-direction: column; line-height: 1.05; }
.marque-giri { font-size: 0.6875rem; letter-spacing: 3px; text-transform: uppercase; color: var(--or); font-weight: 600; }
.marque-titre { font-family: var(--serif); font-size: 1.3125rem; }
.boule { width: 28px; height: 28px; flex: none; background: url(img/boule-or.webp?v=2b) center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(125,90,16,.35)); }
.boule.grande { width: 56px; height: 56px; margin: 0 auto 16px; }
.entete-droite { display: flex; gap: 8px; }
.entete-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filet); background: var(--pierre); color: var(--or-sombre); display: grid; place-items: center; text-decoration: none; padding: 0; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lingot); color: #3a2708; font-size: 0.75rem; font-weight: 600; line-height: 20px; text-align: center; border: 1px solid rgba(160,120,64,.55); }

/* ── vue ── */
.vue { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
@media (min-width: 760px) { .vue { padding: 32px 24px 48px; } .hero h1 { font-size: 2.125rem; } }
@media (min-width: 1100px) { .vue { max-width: 1000px; } }
.chargement { text-align: center; padding: 60px 0; color: var(--encre-pale); }
.sur-titre { font-size: 0.8125rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--or); font-weight: 600; margin-bottom: 6px; }
.intro { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; color: var(--encre-douce); }
.intro-petite { font-size: 1rem; color: var(--encre-douce); margin: 4px 0 12px; }
.section { margin-top: 32px; }
.section > h2 { margin-bottom: 16px; }
.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-tete h2 { margin: 0; }
.section-tete a { font-size: 0.9375rem; white-space: nowrap; }

/* ── boutons ── */
.lingot { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; border-radius: 16px; border: 1px solid rgba(160,120,64,.55); font-family: var(--serif); font-size: 1.25rem; color: #3a2708; text-decoration: none; background: var(--lingot); box-shadow: 0 2px 6px rgba(74,48,12,.12), 0 10px 26px rgba(74,48,12,.18), inset 0 1px 0 rgba(255,255,255,.55); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.lingot.respire::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.lingot:hover, .lingot:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(74,48,12,.16), 0 14px 32px rgba(74,48,12,.22), inset 0 1px 0 rgba(255,255,255,.55); }
.lingot:active { transform: translateY(0); }
.lingot[disabled] { opacity: .5; box-shadow: none; }
.lingot.large { width: 100%; }
.creux { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; border-radius: 16px; border: 1px solid rgba(160,120,64,.45); background: var(--pierre); color: var(--encre); font-family: var(--sans); font-size: 1.0625rem; text-decoration: none; }
.creux[disabled] { opacity: .45; }
.creux.large { width: 100%; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.actions .lingot { grid-column: 1 / -1; }
.nu { border: 0; background: transparent; color: var(--encre-pale); font-size: 1rem; padding: 10px; min-height: 44px; }
.ligne, .vignette, .carte-f { transition: transform .15s; }
button.ligne:active, .vignette:active, a.carte-f:active { transform: scale(.97); transition-duration: .12s; }

/* ── cartes, héros, poussière d'or ── */
.carte { background: var(--pierre); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.logo-tete { text-align: center; padding: 4px 0 14px; }
.logo-tete .logo { width: 180px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(125,90,16,.22)); animation: souffle .6s ease-out both; }
.hero { display: block; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--pierre); border: 1px solid var(--filet); text-decoration: none; color: var(--encre); }
.hero .ph { position: relative; aspect-ratio: 16 / 9; background: var(--sable); overflow: hidden; }
.hero .ph img { width: 100%; height: 100%; object-fit: cover; animation: ken 20s ease-out forwards; }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero .poussiere i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle, #fff6d2 0%, #e8c078 55%, transparent 72%); box-shadow: 0 0 6px 1px rgba(232,192,120,.55); opacity: 0; animation: flotter 9s ease-in-out infinite; pointer-events: none; }
.hero .poussiere i:nth-child(1) { left: 12%; top: 70%; animation-delay: 0s; } .hero .poussiere i:nth-child(2) { left: 28%; top: 82%; animation-delay: 1.6s; width: 4px; height: 4px; } .hero .poussiere i:nth-child(3) { left: 47%; top: 76%; animation-delay: 3.1s; } .hero .poussiere i:nth-child(4) { left: 63%; top: 86%; animation-delay: 4.4s; width: 6px; height: 6px; } .hero .poussiere i:nth-child(5) { left: 78%; top: 72%; animation-delay: 5.8s; } .hero .poussiere i:nth-child(6) { left: 90%; top: 80%; animation-delay: 7.2s; width: 4px; height: 4px; } .hero .poussiere i:nth-child(7) { left: 38%; top: 90%; animation-delay: 2.3s; }
@keyframes flotter { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 60% { opacity: .5; } 100% { opacity: 0; transform: translateY(-140px) translateX(10px); } }
.hero .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,12,0) 55%, rgba(23,18,12,.22) 100%); }
.hero .texte { padding: 14px 16px 16px; animation: souffle .6s ease-out .15s both; }
.hero h1 { font-size: clamp(1.375rem, 6vw, 1.875rem); letter-spacing: .2px; }
.hero .sous { text-wrap: balance; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--encre-douce); margin-top: 4px; }
.hero .sceau { position: absolute; right: 14px; bottom: 14px; width: 64px; height: 64px; }   /* en coin : l'affiche porte déjà son titre au centre */
@keyframes souffle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.attention { padding: 14px 16px; margin: 12px 0; font-size: 1rem; color: var(--encre-douce); }
.attention b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--encre); margin-bottom: 4px; }

/* ── le sceau de lecture : jamais le contrôle du navigateur ── */
.sceau { width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(160,120,64,.55); background: var(--lingot); box-shadow: 0 2px 6px rgba(74,48,12,.15), 0 8px 18px rgba(74,48,12,.25), inset 0 1px 0 rgba(255,255,255,.55); display: grid; place-items: center; padding: 0; }
.sceau svg { width: 32px; height: 32px; fill: #3a2708; margin-left: 4px; }
.sceau.petit { width: 48px; height: 48px; } .sceau.petit svg { width: 20px; height: 20px; margin-left: 3px; }

/* ── l'avancée : l'anneau d'or ── */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.anneau { --p: 0; position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem; color: var(--or-sombre); background: conic-gradient(#c9a253, #f4d58a calc(var(--p) * 1%), var(--filet) 0); box-shadow: 0 2px 6px rgba(125,90,16,.18); transition: --p .6s ease-out; flex: none; }
.anneau::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--pierre); }
.anneau span { position: relative; }
.anneau.petit { width: 48px; height: 48px; font-size: 0.875rem; } .anneau.petit::before { inset: 5px; }
.avance { display: flex; align-items: center; gap: 16px; padding: 16px; margin-top: 16px; }
.avance .t { flex: 1; min-width: 0; }
.avance b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.15; }
.avance small { display: block; font-size: 0.9375rem; color: var(--encre-douce); margin-top: 4px; }
.jauge { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(226,210,164,.55); }
.jauge i { display: block; height: 100%; background: var(--lingot); width: var(--w, 0%); transition: width .6s ease-out; }

/* ── la grille des formations ── */
.univers { margin-top: 24px; }
.univers .sur-titre { margin-bottom: 10px; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 560px) { .grille { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
@media (min-width: 1100px) { .grille { grid-template-columns: repeat(4, 1fr); } }
.vignette { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left; padding: 0; text-decoration: none; color: var(--encre); background: var(--pierre); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); font: inherit; }
.vignette .ph { position: relative; aspect-ratio: 4 / 3; background: var(--sable); overflow: hidden; }
.vignette .ph img { width: 100%; height: 100%; object-fit: cover; }
.vignette .t { padding: 10px 12px 12px; }
.vignette h3 { font-size: 1.125rem; line-height: 1.15; }
.vignette .meta { font-size: 0.84375rem; color: var(--or); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.vignette .fini { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: url(img/boule-or.webp?v=2b) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(125,90,16,.35)); }
.verrou .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.verrou[data-vu="ok"] .ph::after { animation: sheen 1.6s ease-out .2s 1 both; }
.verrou .voile-marbre { position: absolute; inset: 0; background: linear-gradient(180deg, var(--voile-doux), var(--voile)), url('img/marbre-doux.webp?v=2b') center / cover; opacity: .82; }
.verrou img { filter: saturate(.75); }
.cadenas { width: 44px; height: 53px; filter: drop-shadow(0 3px 6px rgba(125,90,16,.35)); }
.verrou .cadenas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); }
.verrou .t h3 { color: var(--encre-douce); }
.bientot { opacity: .75; }

/* ── le sommaire : rangées de leçons ── */
.module { margin-top: 22px; }
.module .sur-titre { margin-bottom: 8px; }
.module .note { font-size: 0.9375rem; color: var(--encre-douce); margin: -2px 0 10px; }
.ligne { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px; text-align: left; text-decoration: none; color: var(--encre); background: var(--pierre); border: 1px solid var(--filet); border-radius: 14px; font: inherit; }
.ligne + .ligne { margin-top: 8px; }
.ligne img, .ligne .ph-vide { width: 84px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: var(--sable); }
.ligne .ph-vide { display: grid; place-items: center; color: var(--or); font-size: 1.375rem; }
.ligne .t { flex: 1; min-width: 0; }
.ligne .t { display: block; } .ligne .lt { display: block; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.18; color: var(--encre); text-wrap: balance; } .ligne .meta { display: block; }
.ligne .meta { font-size: 0.84375rem; color: var(--or); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.ligne .etat { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--or); font-size: 1.5rem; }
.ligne .etat.fait { background: url(img/boule-or.webp?v=2b) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(125,90,16,.35)); }
.ligne .etat.encours { width: 28px; height: 28px; }
.ligne .cadenas { width: 22px; height: 27px; }
.ligne.ici { border-color: var(--or-clair); box-shadow: var(--ombre); }
.ligne.verrouillee { opacity: .7; cursor: default; }
.ligne.verrouillee img { filter: saturate(.5); }
.rev { opacity: 0; transform: translateY(14px); }
.rev.vu { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
.f-tete { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 16 / 9; background: var(--sable); }
.f-tete img { width: 100%; height: 100%; object-fit: cover; }
.f-titre { padding: 16px 4px 0; }
.f-titre h1 { font-size: clamp(1.625rem, 7vw, 2.25rem); }

/* ── le mode cours : la leçon prend tout l'écran, un geste par écran ── */
.cours { position: fixed; inset: 0; z-index: 40; background: var(--fond); display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.cours::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--voile-doux), var(--voile)); pointer-events: none; }
.cours > * { position: relative; }
.cours .haut { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--filet); background: var(--voile-fort); }
.cours .haut .titre { font-family: var(--serif); font-size: 1.1875rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.cours .haut .titre small { display: block; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--or); font-weight: 600; }
.cours .fermer, .cours .rond { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--filet); background: var(--pierre); font-size: 1.5rem; line-height: 1; color: var(--encre-douce); display: grid; place-items: center; padding: 0; }
.cours .rond svg { width: 22px; height: 22px; }
.cours .corps { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: entrer .25s ease-out; }
.cours .lecon { max-width: 900px; margin: 0 auto; padding: 0 0 24px; }
@media (min-width: 760px) { .cours .lecon { padding: 20px 24px 32px; } }
.video { position: relative; aspect-ratio: 16 / 9; background: #0e0b07; overflow: hidden; }
@media (min-width: 760px) { .video { border-radius: var(--rayon); box-shadow: var(--ombre); } }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.video .sceau { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video .reprise { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(23,18,12,.72); color: #fff8e6; font-size: 0.875rem; padding: 6px 12px; border-radius: 12px; white-space: nowrap; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .duree { position: absolute; right: 10px; top: 10px; background: rgba(23,18,12,.72); color: #fff8e6; font-size: 0.875rem; padding: 4px 9px; border-radius: 10px; }
.lecon-corps { padding: 18px 16px 0; }
@media (min-width: 760px) { .lecon-corps { padding: 20px 0 0; } }
.lecon-corps h1 { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 6px; }
.lecon-meta { font-size: 0.875rem; color: var(--encre-pale); margin-bottom: 14px; }
.module-note { padding: 12px 16px; margin: 0 0 14px; font-size: 1rem; color: var(--encre-douce); }
.contenu { margin-top: 8px; }
.contenu iframe { display: block; width: 100%; border: 0; min-height: 120px; background: transparent; border-radius: 14px; }
.contenu .html { font-size: 1.125rem; line-height: 1.6; }
.contenu .html img { border-radius: 12px; }
.audio-carte { padding: 16px 18px 12px; margin: 0 0 16px; }
.piece { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-top: 12px; text-decoration: none; color: var(--encre); }
.piece b { font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; display: block; }
.piece small { color: var(--encre-douce); font-size: 0.875rem; }
.piece span { font-size: 1.5rem; color: var(--or); margin-left: auto; }
.suite { margin-top: 24px; }
.cours .bas { display: grid; grid-template-columns: minmax(128px, 1fr) 2fr; gap: 12px; padding: 12px 16px 16px; background: var(--voile-fort); border-top: 1px solid var(--filet); }
.cours .bas > * { min-height: 64px; font-size: 1.1875rem; border-radius: 18px; }
.cours .bas .lingot { font-size: 1.3125rem; padding-inline: 12px; text-align: center; }
.cours .bas .creux { padding-inline: 10px; font-size: 1rem; white-space: nowrap; }
@keyframes entrer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pluie { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.pluie i { position: absolute; top: -14px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff6d2 0%, #e8c078 45%, #b8902d 85%); box-shadow: 0 0 6px rgba(232,192,120,.7); opacity: 0; animation: tomber 2s ease-in forwards; }
@keyframes tomber { 0% { opacity: 0; transform: translateY(0) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(100vh) rotate(300deg); } }
.fin-carte { text-align: center; padding: 22px 18px; margin-top: 18px; border-color: var(--or-clair); }
.fin-carte .boule.grande { margin-bottom: 8px; }
.fin-carte h2 { font-size: 1.625rem; }
/* tablette et grand écran : le sommaire à côté de la leçon */
@media (min-width: 1000px) {
  .cours .corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; }
  .cours .lecon { max-width: none; padding: 20px 24px 32px 32px; }
  .cours .sommaire-lat { border-left: 1px solid var(--filet); background: var(--voile-doux); padding: 20px 18px 40px; overflow-y: auto; }
  .cours .sommaire-lat .ligne img, .cours .sommaire-lat .ligne .ph-vide { width: 64px; height: 44px; }
  .cours .sommaire-lat .ligne h3 { font-size: 1rem; }
}
@media (max-width: 999px) { .cours .sommaire-lat { display: none; } }

/* ── la voix : un lecteur dessiné (leçons audio) ── */
.voix { display: flex; align-items: center; gap: 16px; margin: 4px 0 6px; }
.jouer-anneau { --p: 0; position: relative; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#c9a253, #f4d58a calc(var(--p) * 1%), var(--filet) 0); box-shadow: 0 2px 6px rgba(125,90,16,.18); }
.jouer-anneau::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--pierre); }
.jouer { position: relative; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(160,120,64,.55); background: var(--lingot); box-shadow: 0 2px 6px rgba(74,48,12,.15), 0 8px 18px rgba(74,48,12,.2), inset 0 1px 0 rgba(255,255,255,.55); display: grid; place-items: center; padding: 0; }
.jouer svg { width: 30px; height: 30px; fill: #3a2708; }
.jouer .lire { margin-left: 3px; } .jouer .pause { display: none; }
.voix.joue .jouer .lire { display: none; } .voix.joue .jouer .pause { display: block; }
.voix.joue .jouer-anneau { animation: onde 2.4s ease-out infinite; }
@keyframes onde { 0% { box-shadow: 0 2px 6px rgba(125,90,16,.18), 0 0 0 0 rgba(212,175,55,.55); } 100% { box-shadow: 0 2px 6px rgba(125,90,16,.18), 0 0 0 14px rgba(212,175,55,0); } }
.voix-t { flex: 1; min-width: 0; }
.voix-t .temps { font-family: var(--serif); font-size: 1.625rem; color: var(--or-sombre); line-height: 1.1; }
.voix-t .source { font-size: 0.875rem; color: var(--encre-pale); margin-top: 4px; line-height: 1.3; }
.recul { flex: none; min-width: 56px; min-height: 56px; border-radius: 50%; border: 1px solid var(--filet); background: var(--pierre); color: var(--or-sombre); font-size: 0.9375rem; font-weight: 600; line-height: 1.1; padding: 0 6px; }
.curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 2px 0 0; }
.curseur::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--filet); }
.curseur::-moz-range-track { height: 6px; border-radius: 3px; background: var(--filet); }
.curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; border: 1px solid rgba(160,120,64,.6); background: var(--lingot); box-shadow: 0 2px 5px rgba(74,48,12,.25); }
.curseur::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(160,120,64,.6); background: #E8C078; box-shadow: 0 2px 5px rgba(74,48,12,.25); }

/* ── la porte : se connecter ── */
.porte-carte { padding: 22px 20px 20px; margin-top: 8px; text-align: center; }
.porte-carte .intro { margin-bottom: 18px; }
.champ { display: block; width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--filet); border-radius: 14px; background: var(--pierre); color: var(--encre); font: inherit; font-size: 1.125rem; box-shadow: inset 0 1px 3px rgba(74,48,12,.06); margin: 0 0 10px; }
.champ:focus { outline: none; border-color: var(--or-clair); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.champ::placeholder { color: var(--encre-pale); opacity: .8; }
.etiquette { display: block; text-align: left; font-size: 0.875rem; letter-spacing: 1px; text-transform: uppercase; color: var(--or); font-weight: 600; margin: 6px 0 6px 4px; }
.ou { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--encre-pale); font-size: 0.875rem; letter-spacing: 2px; text-transform: uppercase; }
.ou::before, .ou::after { content: ''; flex: 1; height: 1px; background: var(--filet); }
.google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; border-radius: 14px; border: 1px solid var(--filet); background: var(--pierre); color: var(--encre); text-decoration: none; font-size: 1.0625rem; }
.google svg { width: 22px; height: 22px; }
.erreur { color: #9b2c1f; font-size: 0.9375rem; margin: 4px 0 10px; text-align: left; }
:root[data-theme="nuit"] .erreur { color: #f0a090; }
.porte-aide { font-size: 0.9375rem; color: var(--encre-douce); margin: 14px 0 0; }
.porte-aide a { color: var(--or-sombre); }

/* ── notifications, recherche, moi ── */
.notif { display: flex; gap: 12px; padding: 14px 16px; margin-top: 10px; text-decoration: none; color: var(--encre); }
.notif .pastille { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--filet); margin-top: 9px; }
.notif.nonlue .pastille { background: var(--lingot); box-shadow: 0 0 6px rgba(212,175,55,.6); }
.notif b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; line-height: 1.2; }
.notif p { margin: 4px 0 0; font-size: 0.9375rem; color: var(--encre-douce); }
.notif small { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--encre-pale); }
.vide { text-align: center; padding: 40px 16px; color: var(--encre-pale); font-family: var(--serif); font-size: 1.25rem; }
.resultats .ligne { margin-top: 8px; }
.resultats .ligne .meta { text-transform: none; letter-spacing: 0; color: var(--encre-pale); font-weight: 400; }
.compte { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 8px; }
.compte .boule { width: 48px; height: 48px; }
.compte b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; line-height: 1.15; }
.compte small { font-size: 0.875rem; color: var(--encre-douce); overflow-wrap: anywhere; }
.bascule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; }
.bascule button { min-height: 48px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--encre-douce); font-size: 1rem; }
.bascule button[aria-pressed="true"] { background: var(--lingot); color: #3a2708; border-color: rgba(160,120,64,.55); font-weight: 600; }
.liens { margin-top: 12px; }
.liens a, .liens button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; border-top: 1px solid var(--filet); background: transparent; color: var(--encre); text-decoration: none; font-size: 1.0625rem; text-align: left; }
.liens a:first-child, .liens button:first-child { border-top: 0; }
.liens span { margin-left: auto; color: var(--or); font-size: 1.375rem; }
.install { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px; }
.install .ic { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.install p { margin: 0; font-size: 0.9375rem; color: var(--encre-douce); flex: 1; }
.install b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--encre); }
.install .lingot { min-height: 48px; padding: 8px 18px; font-size: 1.125rem; }
.pied { margin-top: 40px; text-align: center; font-size: 0.9375rem; color: var(--encre-pale); }
.pied a { color: var(--or-sombre); }
.pied small { display: block; margin-top: 8px; font-size: 0.8125rem; }
.horsligne { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 19; text-align: center; font-size: 0.875rem; padding: 6px 12px; background: var(--sable); color: var(--encre-douce); border-bottom: 1px solid var(--filet); }

/* ── la feuille du bas ── */
.feuille { position: fixed; inset: 0; z-index: 42; }
.feuille .fond { position: absolute; inset: 0; background: rgba(42,33,24,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.feuille .panneau { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: linear-gradient(180deg, var(--voile), var(--voile-fort)), url('img/marbre-premium.webp?v=2b') center / cover; border-top: 1px solid rgba(212,175,55,.6); border-radius: 22px 22px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; box-shadow: 0 -10px 40px rgba(74,48,12,.25); animation: monter .28s ease-out; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
@keyframes monter { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.feuille .poignee { width: 44px; height: 5px; border-radius: 3px; background: var(--filet); margin: 0 auto 14px; }
.feuille .cadenas { width: 54px; height: 65px; margin: 0 auto 8px; display: block; }
.feuille h2 { font-size: 1.5rem; margin-bottom: 8px; }
.feuille p { font-size: 1.0625rem; color: var(--encre-douce); margin-bottom: 16px; }
.feuille .large { width: 100%; margin-bottom: 10px; }

/* ── la barre du bas ── */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: var(--voile-fort); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--filet); padding-bottom: env(safe-area-inset-bottom); }
.barre a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: var(--barre-h); text-decoration: none; color: var(--encre-pale); font-size: 0.8125rem; font-weight: 600; letter-spacing: .3px; }
.barre a svg { width: 26px; height: 26px; }
.barre a.actif { color: var(--or-sombre); }
.barre a.actif svg { color: var(--or); }
.toast { position: fixed; left: 50%; bottom: calc(var(--barre-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--encre); color: var(--marbre); padding: 12px 20px; border-radius: 14px; font-size: 1rem; box-shadow: var(--ombre); z-index: 45; max-width: calc(100% - 32px); text-align: center; }
body.porte .toast { bottom: 24px; }

/* ── transitions, squelettes, ouverture ── */
.vue { view-transition-name: vue; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(vue) { animation: sortir .12s ease-in both; }
::view-transition-new(vue) { animation: entrer .22s ease-out both; }
.vue.entree { animation: entrer .22s ease-out; }
@keyframes sortir { to { opacity: 0; } }
.sq { border-radius: var(--rayon); background: linear-gradient(100deg, var(--sable) 35%, var(--pierre) 50%, var(--sable) 65%) 0 0 / 220% 100%; animation: miroiter 1.5s linear infinite; margin: 0 auto 16px; }
@keyframes miroiter { to { background-position: -120% 0; } }
.chargement .sq.logo { width: 180px; height: 148px; } .chargement .sq.hero { aspect-ratio: 4 / 3; } .chargement .sq.btn { height: 56px; }
#ouverture { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--fond); pointer-events: none; animation: ouv-sort .5s ease 1.1s forwards; }
#ouverture i { width: 132px; height: 132px; background: url(img/boule-or-grande.webp?v=2b) center / contain no-repeat; filter: drop-shadow(0 10px 18px rgba(125,90,16,.38)); animation: ouv-bat 1.1s ease-in-out both; }
@keyframes ouv-bat { 0% { opacity: 0; transform: scale(.82); } 45% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ouv-sort { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rev { opacity: 1; transform: none; } #ouverture { display: none; }
}

/* ═══ v2 — 12/10/2026 : design, ergonomie, accessibilité ═══ */
/* masqué à l'œil, lu par le lecteur d'écran */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr:focus { position: static !important; width: auto; height: auto; clip: auto; }
.liste-nue { list-style: none; margin: 0; padding: 0; }
mark { background: rgba(212,175,55,.35); color: inherit; border-radius: 3px; padding: 0 2px; }
.fleche { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.fleche.g { margin-right: 4px; }

/* encoches : rien ne passe sous la caméra, en portrait comme en paysage */
.entete { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.vue { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.barre { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.cours { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* cibles tactiles : 44 px au moins, partout */
.marque { min-height: 44px; }
.section-tete a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; font-size: 1rem; text-decoration: none; font-weight: 600; }
.pied a, .porte-aide a { display: inline-block; padding: 12px 2px; }
.porte-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 10px; }
.porte-liens a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--or-sombre); }
.ligne { min-height: 76px; }

/* ── l'accueil : le salut, puis l'essentiel au premier écran ── */
.salut { padding: 6px 0 14px; }
.salut h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
.univers-nom { margin: 22px 0 10px; }
.accueil-grille > div:empty { display: none; }
.hero h2 { font-size: clamp(1.375rem, 6vw, 1.875rem); line-height: 1.15; }
.hero .jauge { height: 6px; }
.certif { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 12px; text-decoration: none; color: var(--encre); border-color: var(--or-clair); }
.certif .boule { width: 40px; height: 40px; }
.certif .t { flex: 1; min-width: 0; } .certif b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.certif small { display: block; color: var(--encre-douce); font-size: .875rem; margin-top: 2px; }
.certif .fleche { color: var(--or); }

/* ── la formation : le bouton en une ligne, la leçon dessous ── */
.f-titre h1 { margin-top: 2px; }
.cta { margin: 16px 0 8px; }
.cta .lingot { font-size: 1.375rem; }
.cta-suite { text-align: center; margin: 10px 8px 0; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--encre-douce); text-wrap: balance; }
.module h3.sur-titre { font-family: var(--sans); font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.ligne .etat .fleche { color: var(--or); }
.ligne.verrouillee { width: 100%; font: inherit; color: var(--encre); }
.ok-txt { color: var(--or-sombre); font-weight: 600; }
.compte-r { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; margin-left: 6px; border-radius: 14px; background: var(--sable); border: 1px solid var(--filet); font-family: var(--sans); font-size: .875rem; color: var(--or-sombre); vertical-align: middle; }
.parole-res .extrait { display: block; margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: var(--encre-douce); font-style: italic; }
.vide-petit, .chargement-petit { color: var(--encre-pale); font-size: 1rem; padding: 8px 2px; }
.cherche .aide, .aide { font-size: .9375rem; color: var(--encre-douce); margin: -2px 2px 8px; }

/* ── la nuit : les marbres des formations deviennent velours (l'or reste or, l'encre devient claire) ── */
/* [UNIE 14/10] inversion des marbres retirée : elle les rendait bruns la nuit */
/* [UNIE 14/10] inversion des marbres retirée : elle les rendait bruns la nuit */

/* ── le mode cours ── */
.cours .haut .titre span { display: block; overflow: hidden; text-overflow: ellipsis; }
.cours .bas .creux { gap: 4px; }
.cours .bas .lingot .fleche { margin-left: 4px; }
.notes { padding: 14px 16px 10px; margin-top: 18px; }
.notes textarea { width: 100%; min-height: 110px; resize: vertical; padding: 12px 14px; border: 1px solid var(--filet); border-radius: 14px; background: var(--marbre); color: var(--encre); font: inherit; font-size: 1.0625rem; line-height: 1.5; }
.notes textarea:focus { outline: none; border-color: var(--or-clair); box-shadow: 0 0 0 3px rgba(212,175,55,.3); }
.note-etat { min-height: 1.4em; margin: 6px 2px 0; font-size: .875rem; color: var(--encre-pale); }
.enchaine { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; background: rgba(23,18,12,.82); color: #fff8e6; animation: entrer .25s ease-out; }
.enchaine .sur-titre { color: #f4d58a; }
.enchaine b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 5vw, 1.75rem); line-height: 1.2; max-width: 30ch; }
.enchaine .compte-a { margin: 4px 0 10px; font-size: 1rem; opacity: .9; }
.ench-btns { display: flex; gap: 10px; } .ench-btns > * { min-height: 48px; padding: 10px 18px; font-size: 1.0625rem; }
.vitesse { font-size: .9375rem; }

/* ── la porte ── */
.pour { margin: -2px 0 8px 4px; text-align: left; font-size: .9375rem; color: var(--encre-douce); overflow-wrap: anywhere; }
.mdp-zone { position: relative; }
.mdp-zone .champ { padding-right: 56px; }
.voir { position: absolute; right: 4px; top: 4px; width: 48px; height: 48px; border: 0; background: transparent; color: var(--encre-pale); display: grid; place-items: center; border-radius: 12px; }
.voir svg { width: 24px; height: 24px; }
.voir[aria-pressed="true"] { color: var(--or-sombre); }
.champ[aria-invalid="true"] { border-color: #b3412e; }

/* ── moi : les réglages ── */
.bascule button { min-height: 52px; font-size: .9375rem; line-height: 1.2; padding: 6px 4px; }
.bascule button[aria-checked="true"] { background: var(--lingot); color: #3a2708; border-color: rgba(160,120,64,.55); font-weight: 600; }
.reglage { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.reglage > div { flex: 1; min-width: 0; } .reglage b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.reglage small { display: block; font-size: .9375rem; color: var(--encre-douce); margin-top: 2px; }
.interrupteur { flex: none; position: relative; width: 60px; height: 36px; border-radius: 18px; border: 1px solid var(--filet); background: var(--sable); padding: 0; transition: background .2s; }
.interrupteur i { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--pierre); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur[aria-checked="true"] { background: var(--lingot); border-color: rgba(160,120,64,.55); }
.interrupteur[aria-checked="true"] i { transform: translateX(24px); }
.interrupteur[disabled] { opacity: .45; }
.liens a { gap: 12px; } .liens .fleche { margin-left: auto; color: var(--or); }
.entree { padding: 14px 16px 12px; margin-top: 10px; }
.entree h3 { font-size: 1.25rem; } .entree h3 a { color: var(--encre); text-decoration: none; display: inline-block; padding: 4px 0; }
.entree .texte { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; font-size: 1.0625rem; }
.entree small { color: var(--encre-pale); font-size: .875rem; }

/* ── focus visible, net, sur tout ce qui se touche ── */
a:focus-visible, button:focus-visible, .champ:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; border-radius: 10px; }
h1:focus, h2:focus { outline: none; }

/* ── téléphone en paysage : la vidéo prend la hauteur, le reste se fait discret ── */
@media (orientation: landscape) and (max-height: 540px) {
  .cours .haut { padding-top: 8px; padding-bottom: 6px; } .cours .fermer, .cours .rond { width: 44px; height: 44px; }
  .cours .video { aspect-ratio: 16 / 9; height: calc(100vh - 52px - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); width: auto; max-width: 100%; margin: 0 auto; border-radius: 0; }
  .cours .bas { padding-top: 6px; padding-bottom: 6px; } .cours .bas > * { min-height: 48px; }
  .barre a { min-height: 52px; padding: 4px; } :root { --barre-h: 52px; }
  .hero .ph { aspect-ratio: 21 / 9; }
}

/* ── tablette et grand écran : la barre devient un rail, l'accueil se pose sur deux colonnes ── */
@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: calc(104px + env(safe-area-inset-left)); }
  body.porte { padding-left: 0; }
  .barre { top: 0; bottom: 0; right: auto; width: calc(104px + env(safe-area-inset-left)); flex-direction: column; justify-content: center; gap: 6px; border-top: 0; border-right: 1px solid var(--filet); padding: 0 0 0 env(safe-area-inset-left); }
  .barre a { flex: 0 0 auto; min-height: 76px; font-size: .875rem; }
  .barre a.actif::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lingot); }
  .toast { bottom: 24px; }
  .vue { max-width: 1120px; padding-top: 28px; }
  .accueil-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .accueil-grille .avance { margin-top: 0; }
  .grille { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .f-tete { max-height: 360px; aspect-ratio: auto; height: 34vw; }
}
@media (min-width: 1280px) { .grille { grid-template-columns: repeat(4, 1fr); } }
@media (forced-colors: active) { .lingot, .sceau, .interrupteur[aria-checked="true"] { border: 2px solid ButtonText; } .jauge i { background: Highlight; } }

/* contraste AA : l'or de texte est l'or sombre (5,3:1 sur le marbre) ; l'or clair reste aux filets et aux ornements */
.sur-titre, .vignette .meta, .ligne .meta, .marque-giri { color: var(--or-sombre); }
.sur-titre { font-family: var(--sans); font-weight: 600; }
h2.sur-titre, h3.sur-titre { font-size: .8125rem; line-height: 1.3; margin: 0 0 10px; }
:root[data-theme="nuit"] .hero .texte .sur-titre { color: var(--or-sombre); }
.bascule button { white-space: normal; }
.etiquette { color: var(--or-sombre); }

/* finitions vues à l'écran (12/10) */
.ligne .meta, .vignette .meta { text-transform: none; letter-spacing: .2px; font-size: .875rem; }
.ligne .meta::first-letter { text-transform: uppercase; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; cursor: pointer; background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2 2 12' stroke='%238a6512' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.en-cours { padding: 12px 16px 6px; margin-top: 12px; }
.en-cours a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--filet); text-decoration: none; color: var(--encre); }
.en-cours h2 + a { border-top: 0; }
.en-cours .t { flex: 1; min-width: 0; } .en-cours b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.2; }
.en-cours small { display: block; font-size: .8125rem; color: var(--encre-pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-cours .anneau.petit { width: 44px; height: 44px; font-size: .6875rem; } .en-cours .fleche { color: var(--or); }

/* ── l'Atelier (Maha) ── */
.atelier-entree { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px; text-decoration: none; color: var(--encre); border-color: var(--or-clair); background: linear-gradient(180deg, var(--pierre), var(--sable)); }
.atelier-entree .t { flex: 1; } .atelier-entree b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; } .atelier-entree small { color: var(--encre-douce); font-size: .9375rem; } .atelier-entree .fleche { color: var(--or); }
.onglets-at { grid-template-columns: 1fr 1fr; margin: 14px 0; }
.onglets-at a { display: grid; place-items: center; min-height: 48px; border-radius: 12px; text-decoration: none; color: var(--encre-douce); font-size: 1rem; }
.onglets-at a[aria-selected="true"] { background: var(--lingot); color: #3a2708; font-weight: 600; }
.chiffres-at { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.chiffres-at .carte { padding: 12px 10px; text-align: center; }
.chiffres-at b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; color: var(--or-sombre); line-height: 1.1; }
.chiffres-at span { font-size: .8125rem; color: var(--encre-douce); line-height: 1.25; display: block; }
.eleve-l .avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lingot); color: #3a2708; font-family: var(--serif); font-size: 1.375rem; }
.extrait-at { display: block; font-size: .8125rem; color: var(--encre-pale); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-nom { overflow-wrap: anywhere; }
.fiche-f { margin-top: 10px; } .fiche-f > a { display: block; padding: 14px 16px; text-decoration: none; color: var(--encre); }
.fiche-tete { display: flex; align-items: center; gap: 12px; } .fiche-tete .t { flex: 1; min-width: 0; } .fiche-tete b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; line-height: 1.2; }
.fiche-tete small { color: var(--encre-douce); font-size: .875rem; }
.fiche-l { margin: 8px 0 0; font-size: .9375rem; color: var(--encre-douce); }
.fiche-f.retiree { opacity: .7; }
.orig { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .75rem; font-weight: 600; background: var(--sable); border: 1px solid var(--filet); color: var(--or-sombre); }
.orig-achat { background: var(--lingot); color: #3a2708; border-color: rgba(160,120,64,.55); }
@media (min-width: 900px) { .chiffres-at { max-width: 640px; } }
.orig-abonnement { background: var(--or-sombre); color: var(--pierre); border-color: var(--or-sombre); } .orig-historique { opacity: .8; }
/* [MOBILE-B 2026-10-14] interrupteur : zone de doigt de 44 px sans changer le dessin */
.interrupteur::after { content: ""; position: absolute; inset: -6px -2px; }

/* [UNIE 14/10] L'École dans l'appli : Lahiri en grand, puis six portes au pouce (2 colonnes, 88 px de haut minimum) */
.ecole-lahiri { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; text-decoration: none; color: var(--encre); border-color: var(--or-clair); background: linear-gradient(160deg, var(--pierre), var(--sable)); }
.ecole-lahiri .boule { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #e8c76a 40%, #a67c1e); box-shadow: 0 0 22px rgba(232,199,106,.45); }
.ecole-lahiri .t { flex: 1; } .ecole-lahiri b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.375rem; } .ecole-lahiri small { display: block; color: var(--encre-douce); font-size: .9375rem; line-height: 1.4; margin-top: 2px; } .ecole-lahiri .fleche { color: var(--or); }
.ecole-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) { .ecole-grille { grid-template-columns: repeat(3, 1fr); } }
.ecole-tuile { display: flex; flex-direction: column; gap: 10px; min-height: 104px; padding: 14px; border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--pierre); box-shadow: var(--ombre); text-decoration: none; color: var(--encre); }
.ecole-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--or); border: 1px solid var(--or-clair); background: rgba(212,175,55,.08); }
.ecole-ico svg { width: 22px; height: 22px; }
.ecole-t b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.125rem; line-height: 1.2; } .ecole-t small { display: block; margin-top: 3px; color: var(--encre-pale); font-size: .875rem; line-height: 1.3; }
.ecole-tuile:active, .ecole-lahiri:active { transform: scale(.98); }

/* [UNIE 14/10] Gestes du cours + Questions & réponses, dans la leçon de l'appli */
.gestes-cours, .qr { padding: 18px 16px; margin-top: 16px; }
.gc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gc-tete h2 { margin: 0; } .gc-compte { margin: 0; color: var(--encre-douce); font-size: .9375rem; } .gc-compte b { color: var(--or); font-size: 1.25rem; font-family: var(--serif); }
.gc-aide { color: var(--encre-douce); font-size: .9375rem; margin: 8px 0 12px; }
.gc-liste { list-style: none; margin: 0; padding: 0; }
.gc-item { border-top: 1px solid var(--filet); } .gc-item:first-child { border-top: 0; }
.gc-ligne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 2px; border: 0; background: none; color: var(--encre); text-align: left; font: inherit; cursor: pointer; }
.gc-num { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--or-clair); color: var(--or); font-family: var(--serif); font-size: 1.0625rem; }
.gc-num svg { width: 18px; height: 18px; } .acquis .gc-num { background: var(--lingot); color: #3a2808; border-color: transparent; }
.gc-lib { flex: 1; font-size: 1rem; line-height: 1.35; } .gc-tc { flex: 0 0 auto; color: var(--or); font-size: .875rem; font-variant-numeric: tabular-nums; }
.gc-fiche { padding: 2px 2px 16px 46px; } .gc-cr { color: var(--encre-douce); font-size: .9375rem; margin: 0 0 8px; }
.gc-q { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--or-clair); font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--encre); background: rgba(212,175,55,.06); border-radius: 0 10px 10px 0; }
.gc-act { display: flex; flex-wrap: wrap; gap: 10px; } .gc-act .lingot { min-height: 48px; padding: 10px 18px; font-size: 1rem; }
.gc-sais { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; } .gc-sais svg { width: 18px; height: 18px; opacity: .35; } .gc-sais[aria-checked="true"] { border-color: var(--or); color: var(--or); } .gc-sais[aria-checked="true"] svg { opacity: 1; }
.qr h2 { margin: 0 0 12px; } .qr-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--lingot); color: #3a2808; font-size: .8125rem; margin-left: 6px; vertical-align: 2px; }
.qr textarea { width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--filet); background: var(--sable); color: var(--encre); font: inherit; font-size: 1rem; resize: vertical; }
.qr textarea:focus { outline: 2px solid var(--or-clair); outline-offset: 1px; }
.qr-envoi { display: flex; justify-content: flex-end; margin: 10px 0 6px; } .qr-envoi .lingot { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.qr-fil { border-top: 1px solid var(--filet); padding: 14px 0 6px; }
.qr-msg.rep { margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--or-clair); margin-top: 10px; }
.qr-qui { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .qr-qui small { color: var(--encre-pale); font-size: .8125rem; }
.qr-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sable); border: 1px solid var(--filet); color: var(--or); font-family: var(--serif); }
.maitre .qr-av { background: var(--lingot); color: #3a2808; border-color: transparent; }
.qr-badge { font-size: .75rem; letter-spacing: .04em; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--or-clair); color: var(--or); }
.qr-texte { margin: 8px 0 4px; font-size: 1rem; line-height: 1.55; color: var(--encre); overflow-wrap: anywhere; }
.qr-act { display: flex; gap: 14px; } .qr-lien { border: 0; background: none; color: var(--or); font: inherit; font-size: .9375rem; min-height: 44px; padding: 0 2px; cursor: pointer; } .qr-lien.suppr { color: var(--encre-pale); }
.qr-repondre { margin: 6px 0 8px 18px; display: grid; gap: 8px; } .qr-repondre textarea { min-height: 64px; } .qr-repondre .creux { justify-self: end; min-height: 46px; padding: 8px 18px; }
.qr-vide { color: var(--encre-douce); font-size: .9375rem; margin: 10px 0 0; }

.ecole-lahiri .boule-img { flex: 0 0 60px; width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(232,190,90,.35)); }
.liens .mosaique { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 36px; }
/* [UNIE 14/10] le focus posé par l appli sur le titre (pour les lecteurs d écran) ne se dessine pas : seul le clavier le montre */
[tabindex="-1"]:focus, h1:focus, h2:focus { outline: none !important; box-shadow: none !important; }

/* [UNIVERS-D-ABORD 20/10] choix de l'univers dans Formations */
.univers-choix { margin-top: 12px; }
.univers-choix .univers-emoji { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; font-size: 2rem; border-radius: 50%; background: var(--pierre); border: 1px solid var(--or-clair); }
.univers-choix small.nb-formations { color: var(--or); font-size: .875rem; margin-top: 6px; }
.retour-univers { display: inline-block; margin-bottom: 14px; }
/* [VIGNETTES-16-9 20/10] les images des formations sont toutes en 1600×900 : cadre au même format (plus de titres rognés), une par ligne sur téléphone */
.vignette .ph { aspect-ratio: 16 / 9; }
@media (max-width: 559px) { .grille { grid-template-columns: 1fr; gap: 16px; } .vignette .t { padding: 12px 16px 14px; } .vignette h3 { font-size: 1.25rem; } }

/* [MARBRE-SANS-RACCORD 20/10] une seule pierre fixe qui couvre l'écran (avant : tuiles empilées, raccords visibles) */
body { background: #fdfaf2; }
:root[data-theme="nuit"] body { background: #0b1426; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) body { background: #0b1426; } }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--fond); pointer-events: none; }
/* [TOUCHER-SANS-CARRE 20/10] plus de rectangle de surbrillance Android au toucher (cloche, loupe, tout lien) ; retour rond à la place */
html { -webkit-tap-highlight-color: transparent; }
.entete-btn { transition: transform .12s ease, background .12s ease; }
.entete-btn:active { transform: scale(.92); background: var(--sable); }

/* [PHOTO-PROFIL 20/10] le rond du profil, dans Moi */
.compte .avatar { position: relative; flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .12s; }
.compte .avatar:active { transform: scale(.94); }
.compte .avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px var(--or-clair), 0 4px 12px rgba(74,48,12,.2); }
.compte .avatar .boule { display: block; width: 64px; height: 64px; }
.avatar-appareil { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lingot); color: #3a2708; border: 2px solid var(--pierre); }
.compte small.avatar-aide { display: block; margin-top: 4px; color: var(--or-sombre); font-size: .8125rem; }

/* [LAHIRI-PREMIUM 20/10] Lahiri dans l'appli — le geste fort : la grande boule d'or qui respire à l'arrivée,
   puis chaque réponse lue comme une page (lettrine d'or), les sources montrées par la vraie image du cours. Jour et nuit par les jetons. */
.lahiri { display: flex; flex-direction: column; min-height: calc(100vh - 180px); }
/* — l'arrivée — */
.lh-sanctuaire { text-align: center; padding: 6px 8px 4px; }
.lh-orbe { position: relative; width: 150px; height: 150px; margin: 4px auto 10px; }
.lh-orbe::before { content: ''; position: absolute; inset: -34px; border-radius: 50%; background: radial-gradient(circle, rgba(244,213,138,.55) 0%, rgba(232,190,90,.22) 38%, rgba(232,190,90,0) 70%); animation: lh-halo 5s ease-in-out infinite; }
.lh-orbe img { position: relative; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 26px rgba(140,98,20,.35)); animation: lh-flotte 6s ease-in-out infinite; }
@keyframes lh-halo { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes lh-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.lh-sanctuaire h1 { font-size: 3.75rem; line-height: 1; letter-spacing: .5px; margin-top: 2px; }
.lh-orn { margin: 10px 0 8px; color: var(--or); font-size: .875rem; letter-spacing: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.lh-orn::before, .lh-orn::after { content: ''; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.lh-orn::after { transform: scaleX(-1); }
.lh-promesse { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; color: var(--encre-douce); max-width: 30ch; margin: 0 auto 22px; }
/* — les premières questions : une en majesté, les autres en liste — */
.lh-amorces .sur-titre { margin: 0 2px 10px; }
.lh-amorce { font: inherit; color: var(--encre); text-align: left; cursor: pointer; }
.lh-amorce small { display: block; font-size: .75rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--or-sombre); font-weight: 600; margin-bottom: 4px; }
.lh-amorce.vedette { display: block; width: 100%; padding: 20px 20px 18px; border-radius: 22px; border: 1px solid var(--or-clair); background: linear-gradient(165deg, var(--pierre) 0%, var(--sable) 100%); box-shadow: var(--ombre), inset 0 1px 0 rgba(255,255,255,.5); margin-bottom: 12px; }
.lh-amorce.vedette > span { display: block; font-family: var(--serif); font-size: 1.625rem; line-height: 1.22; }
.lh-amorce.vedette i { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-style: normal; font-weight: 600; font-size: .9375rem; color: var(--or-sombre); }
.lh-amorce.vedette i .fleche { width: 18px; height: 18px; }
.lh-amorces-liste { background: var(--pierre); border: 1px solid var(--filet); border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; }
.lh-amorces-liste .lh-amorce { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-top: 1px solid var(--filet); background: transparent; padding: 14px 16px; min-height: 64px; }
.lh-amorces-liste .lh-amorce:first-child { border-top: 0; }
.lh-amorces-liste .t { flex: 1; min-width: 0; } .lh-amorces-liste .t > span { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; }
.lh-amorces-liste .fleche { flex: 0 0 18px; width: 18px; height: 18px; color: var(--or); }
.lh-amorce:active, .lh-t:active, .lh-affiche:active { transform: scale(.985); }
/* — l'en-tête de la conversation — */
.lh-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--filet); }
.lh-tete .boule-img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(232,190,90,.4)); }
.lh-tete-t { flex: 1; min-width: 0; } .lh-tete .sur-titre { margin-bottom: 2px; } .lh-tete h1 { font-size: 2rem; }
.lh-neuf { flex: 0 0 auto; font: 600 .8125rem/1.2 var(--sans); color: var(--or-sombre); text-align: center; border: 1px solid var(--filet); border-radius: 14px; padding: 8px 12px; min-height: 44px; background: var(--pierre); }
/* — la conversation — */
.lh-fil { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-bottom: 14px; }
.lh-msg { display: flex; flex-direction: column; max-width: 100%; scroll-margin-top: 80px; animation: entrer .3s ease-out; }
.lh-msg.moi { align-items: flex-end; }
.lh-msg.moi .lh-bulle { max-width: 86%; background: var(--sable); border: 1px solid var(--filet); border-radius: 20px 20px 6px 20px; padding: 11px 16px; white-space: pre-wrap; font-size: 1.0625rem; line-height: 1.45; }
.lh-sig { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 4px; font-size: .75rem; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; color: var(--or-sombre); }
.lh-sig img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(232,190,90,.4)); }
.lh-msg.lahiri .lh-bulle { position: relative; background: var(--pierre); border: 1px solid var(--filet); border-radius: 6px 22px 22px 22px; padding: 20px 20px 18px; box-shadow: var(--ombre); font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--encre); }
.lh-msg.lahiri .lh-bulle::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--or-clair), transparent); }
.lh-bulle .lettrine { float: left; font-size: 3.5em; line-height: .8; padding: 5px 6px 0 0; color: var(--or-sombre); }
.lh-tete-sous { margin: 2px 0 0; font-size: .875rem; color: var(--encre-douce); }
.lh-bulle p { margin: 0 0 12px; } .lh-bulle p:last-child { margin-bottom: 0; }
.lh-bulle h3 { font-size: 1.375rem; margin: 16px 0 6px; color: var(--or-sombre); } .lh-bulle h3:first-child { margin-top: 0; }
.lh-msg.lahiri .lh-bulle strong { font-weight: 400; color: var(--or-sombre); }   /* Garamond sans gras : l'or souligne, pas l'épaisseur */
.lh-bulle em { font-style: italic; }
.lh-bulle ul, .lh-bulle ol { margin: 0 0 12px; padding-left: 22px; } .lh-bulle li { margin: 5px 0; } .lh-bulle li::marker { color: var(--or); }
.lh-bulle blockquote { margin: 12px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--or); font-style: italic; font-size: 1.3125rem; color: var(--encre-douce); }
.lh-msg.attente .lh-bulle { display: flex; align-items: center; gap: 14px; color: var(--encre-douce); font-size: 1.125rem; }
.lh-points { display: inline-flex; gap: 6px; } .lh-points i { width: 9px; height: 9px; border-radius: 50%; background: var(--or-clair); animation: lh-souffle 1.4s infinite ease-in-out; }
.lh-points i:nth-child(2) { animation-delay: .2s; } .lh-points i:nth-child(3) { animation-delay: .4s; }
@keyframes lh-souffle { 0%, 80%, 100% { opacity: .25; transform: scale(.75); } 40% { opacity: 1; transform: scale(1.1); } }
/* les minutes citées dans le texte */
.lh-cite { display: inline-flex; align-items: center; gap: 4px; vertical-align: 2px; margin: 0 2px; padding: 2px 10px 2px 8px; min-height: 30px; border-radius: 15px; border: 1px solid rgba(160,120,64,.45); background: var(--sable); color: var(--or-sombre); font: 600 .875rem var(--sans); font-variant-numeric: tabular-nums; line-height: 1; }
.lh-cite .lire { width: 11px; height: 11px; fill: currentColor; }
/* — les sources — */
.lh-sources { margin-top: 14px; }
.lh-sources-t { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: .75rem; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; color: var(--or-sombre); }
.lh-sources-t::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--or-clair), transparent); }
.lh-source { background: var(--pierre); border: 1px solid var(--filet); border-radius: 20px; padding: 8px; margin-bottom: 10px; box-shadow: var(--ombre); }
.lh-affiche { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sable); cursor: pointer; }
.lh-affiche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-affiche-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,4,0) 35%, rgba(20,12,4,.78) 100%); }
.lh-affiche .sceau { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); }
.lh-affiche-t { position: absolute; left: 14px; right: 14px; bottom: 12px; text-align: left; color: #fdf8ec; }
.lh-affiche-t small { display: block; font-size: .75rem; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; color: #f1d58e; }
.lh-affiche-t b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.lh-source:has(.lh-lecteur) .lh-affiche { display: none; }
.lh-temps { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px 4px; }
.lh-t { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 15px 6px 11px; border-radius: 21px; border: 1px solid rgba(160,120,64,.45); background: var(--pierre); color: var(--or-sombre); font: 600 .9375rem var(--sans); font-variant-numeric: tabular-nums; }
.lh-t .lire { width: 13px; height: 13px; fill: currentColor; }
.lh-t.on { background: var(--lingot); color: #3a2708; border-color: transparent; box-shadow: 0 2px 8px rgba(74,48,12,.2); }
.lh-lecteur { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0e0b07; scroll-margin-bottom: 160px; }
.lh-lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lh-jauge { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.16); pointer-events: none; }
.lh-jauge b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #D9B96A, #F4DFA6); transition: width .35s linear; }
.lh-source.ecrite { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.lh-src-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sable); color: var(--or-sombre); border: 1px solid var(--filet); }
.lh-src-ico svg { width: 20px; height: 20px; }
.lh-src-t { flex: 1; min-width: 0; } .lh-src-t small { display: block; font-size: .75rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; color: var(--or-sombre); }
.lh-src-t b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1875rem; line-height: 1.25; } .lh-src-t em { display: block; font-style: normal; font-size: .875rem; color: var(--encre-douce); margin-top: 2px; }
/* — la saisie, collée au pouce — */
.lh-saisie { position: sticky; bottom: calc(var(--barre-h) + env(safe-area-inset-bottom) + 10px); z-index: 20; display: flex; align-items: flex-end; gap: 8px; padding: 7px; margin-top: 8px; background: var(--voile-fort); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--or-clair); border-radius: 28px; box-shadow: 0 2px 6px rgba(74,48,12,.08), 0 14px 34px rgba(74,48,12,.16); transition: box-shadow .2s; }
.lh-saisie:focus-within { box-shadow: 0 0 0 4px rgba(212,175,55,.22), 0 14px 34px rgba(74,48,12,.18); }
.lh-saisie textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: var(--encre); font: 1.125rem/1.4 var(--serif); padding: 11px 6px 11px 14px; max-height: 160px; outline: none; }
.lh-saisie textarea::placeholder { color: var(--encre-pale); font-style: italic; }
.lh-envoi { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(160,120,64,.55); background: var(--lingot); color: #3a2708; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(74,48,12,.22), inset 0 1px 0 rgba(255,255,255,.55); }
.lh-envoi svg { width: 22px; height: 22px; } .lh-envoi:disabled { opacity: .45; }
body:has(#lh-q:focus) .barre { display: none; }
body:has(#lh-q:focus) .lh-saisie { bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .lh-orbe::before, .lh-orbe img, .lh-points i, .lh-msg { animation: none; } }
@media (min-width: 900px) { .lh-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .lh-sources-t { grid-column: 1 / -1; } .lh-source { margin-bottom: 0; } }
/* [ENTETE-FONDU 20/10] la barre du haut ne coupe plus la page d’un trait : un voile qui se fond dans la pierre (jour et nuit) */
.entete, .entete.voilee { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
.entete::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -30px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--voile-fort) 0%, var(--voile-fort) 52%, var(--voile) 76%, transparent 100%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); opacity: .75; transition: opacity .3s; }
.entete.voilee::before { opacity: 1; }
.entete-btn { background: var(--voile-fort); border-color: var(--filet); box-shadow: 0 2px 8px rgba(74,48,12,.10); }

/* [SAISIE-FIXE 20/10] la saisie de Lahiri reste posée au-dessus du menu, quoi qu’on fasse défiler */
.lh-saisie { position: fixed; left: 12px; right: 12px; max-width: 736px; margin: 0 auto; bottom: calc(var(--barre-h) + env(safe-area-inset-bottom) + 10px); z-index: 25; }
.lahiri { padding-bottom: 92px; }
/* [FIN-DE-FIL 20/10] on ne défile plus dans le vide : le dernier message s’arrête juste au-dessus de la saisie */
.lahiri { min-height: 0; padding-bottom: 60px; }
.lahiri.accueil { min-height: calc(100vh - 180px); }
.lh-fil { padding-bottom: 0; }

/* [CLAVIER 20/10] clavier ouvert : la saisie se pose AU-DESSUS du clavier (--clavier mesuré par visualViewport, 0 si la page rétrécit déjà) */
body:has(#lh-q:focus) .lh-saisie { bottom: calc(var(--clavier, 0px) + 8px); }

/* [SOUS-PARTIES 20/10] un univers en chapitres : titre serif, filet d'or, nombre de formations */
.partie { margin-top: 26px; }
.partie:first-of-type { margin-top: 18px; }
.partie-tete { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; padding-bottom: 10px; margin-bottom: 14px; }
.partie-tete::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--or-clair), var(--filet) 45%, transparent); }
.partie-tete h2 { font-size: 1.625rem; line-height: 1.15; grid-column: 1; }
.partie-tete p { grid-column: 1; margin: 3px 0 0; font-size: .9375rem; color: var(--encre-douce); }
.partie-nb { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 17px; display: grid; place-items: center; border: 1px solid var(--filet); background: var(--pierre); color: var(--or-sombre); font: 600 .9375rem var(--sans); }
.partie-note { padding: 16px 18px; border-color: var(--or-clair); } .partie-note p { margin: 0; line-height: 1.5; } .partie-note p + p { margin-top: 6px; } .partie-note b { color: var(--or-sombre); font-weight: 600; }

/* [PARTIES-REPLIEES 20/10] parties repliables, une seule ouverte */
.partie { margin-top: 12px; } .partie:first-of-type { margin-top: 18px; }
summary.partie-tete { list-style: none; cursor: pointer; grid-template-columns: 1fr auto auto; align-items: center; margin-bottom: 0; padding: 12px 2px; -webkit-tap-highlight-color: transparent; }
summary.partie-tete::-webkit-details-marker { display: none; }
summary.partie-tete h2 { font-size: 1.375rem; }
.partie[open] > summary.partie-tete { margin-bottom: 14px; }
.partie-nb { grid-row: 1 / span 2; }
.partie-chev { grid-column: 3; grid-row: 1 / span 2; width: 10px; height: 10px; margin: 0 6px 4px 4px; border-right: 2px solid var(--or-sombre); border-bottom: 2px solid var(--or-sombre); transform: rotate(45deg); transition: transform .2s ease; }
.partie[open] .partie-chev { transform: rotate(-135deg); margin-bottom: -4px; }
summary.partie-tete:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 6px; }
/* [PARTIES-PLAQUES 20/10, Maha] chaque partie sur une plaque de pierre : lisible au-dessus des veines du marbre */
details.partie { background: var(--pierre); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre), inset 0 1px 0 rgba(255,255,255,.55); overflow: hidden; transition: border-color .2s ease; }
details.partie[open] { border-color: var(--or-clair); background: linear-gradient(180deg, var(--pierre) 0%, var(--pierre) 60%, var(--sable) 100%); }
details.partie > summary.partie-tete { padding: 16px 16px 15px 18px; margin: 0; }
details.partie > summary.partie-tete::after { display: none; }
details.partie[open] > summary.partie-tete { margin: 0; border-bottom: 1px solid var(--filet); }
details.partie > summary.partie-tete h2 { color: var(--encre); }
details.partie > summary.partie-tete p { color: var(--encre-douce); }
details.partie > .grille, details.partie > .partie-note { margin: 14px; }
details.partie > .partie-note { box-shadow: none; }

/* [UNIVERS-PREMIUM 20/10, Maha] cartes des univers : un chapitre de livre précieux */
.univers-choix { position: relative; gap: 16px; padding: 20px 18px 20px 16px; margin-top: 14px; border: 1px solid var(--or-clair); border-radius: 20px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--pierre) 93%, transparent) 0%, color-mix(in srgb, var(--sable) 88%, transparent) 100%), url(/app/assets/img/marbre-premium.webp?v=2b) center / cover;
  box-shadow: var(--ombre), inset 0 0 0 4px color-mix(in srgb, var(--pierre) 70%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--or-clair) 45%, transparent); }
.univers-choix::before { content: ; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(232,199,106,.28), transparent 70%); pointer-events: none; }
.univers-num { flex: 0 0 58px; align-self: stretch; display: grid; place-items: center; padding-right: 14px; border-right: 1px solid color-mix(in srgb, var(--or-clair) 60%, transparent);
  font-family: var(--serif); font-size: 2.25rem; line-height: 1; letter-spacing: .02em; background: linear-gradient(170deg, #f3dc94 0%, #c99a2e 45%, #8a6512 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.univers-choix small.univers-st { margin: 0 0 4px; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or-sombre); }
.univers-choix b { font-size: 1.5rem; line-height: 1.15; }
.univers-choix small.nb-formations { margin-top: 8px; font-style: italic; font-family: var(--serif); font-size: 1rem; color: var(--encre-douce); }
.univers-choix > svg, .univers-choix .fleche { color: var(--or); }
:root[data-theme="nuit"] .univers-choix { background: linear-gradient(155deg, color-mix(in srgb, var(--pierre) 80%, transparent), color-mix(in srgb, var(--sable) 82%, transparent)), url(/app/assets/img/pierre-nuit-portrait.webp) center / cover; }
:root[data-theme="nuit"] .univers-num { background-image: linear-gradient(170deg, #fbe7a8 0%, #e2bf63 50%, #b8902d 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="jour"]) .univers-choix { background: linear-gradient(155deg, color-mix(in srgb, var(--pierre) 80%, transparent), color-mix(in srgb, var(--sable) 82%, transparent)), url(/app/assets/img/pierre-nuit-portrait.webp) center / cover; }
  :root:not([data-theme="jour"]) .univers-num { background-image: linear-gradient(170deg, #fbe7a8 0%, #e2bf63 50%, #b8902d 100%); } }
.ligne.bientot { padding-left: 18px; border-style: dashed; }

/* [ACCUEIL-BIENVENUE 20/10] mot de bienvenue + « Toutes les applis » */
.bienvenue { display: flex; gap: 16px; align-items: flex-start; padding: 20px 18px; border-color: var(--or-clair); background: linear-gradient(160deg, var(--pierre), var(--sable)); box-shadow: var(--ombre), inset 0 1px 0 rgba(255,255,255,.5); }
.bienvenue .bv-boule { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(232,190,90,.4)); }
.bienvenue .sur-titre { margin: 2px 0 6px; }
.bienvenue .bv-mot { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--encre); }
.bienvenue .bv-sig { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--or-sombre); text-align: right; }
.toutes-applis { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; text-decoration: none; color: var(--encre); border-color: var(--or-clair); }
.toutes-applis .mosaique { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.toutes-applis .t { flex: 1; } .toutes-applis b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; } .toutes-applis small { color: var(--encre-douce); font-size: .9375rem; }
.toutes-applis .fleche { color: var(--or); }
.toutes-applis:active { transform: scale(.98); }
/* [MES-ESPACES 20/10] */
.liens.espaces button { text-align: left; font: inherit; cursor: pointer; padding: 12px 16px; }
.liens.espaces .mosaique { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; }
.liens.espaces .vide-ic { display: block; background: var(--sable); }
.liens.espaces .t { flex: 1; min-width: 0; } .liens.espaces b { display: block; font-weight: 600; font-size: 1.0625rem; } .liens.espaces small { display: block; color: var(--encre-douce); font-size: .875rem; line-height: 1.35; margin-top: 2px; }
.liens.espaces button.ouvre { opacity: .55; }

.toutes-applis.en-bas { margin-top: 28px; }   /* [ORDRE-ACCUEIL 20/10] */

/* [TOUCHER-PAUSE 20/10] toucher la vidéo = pause / lecture ; la bande des commandes (bas) reste au lecteur Bunny */
.video-tap { position: absolute; left: 0; right: 0; top: 0; bottom: 64px; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; display: grid; place-items: center; }
.video-tap-ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(14,11,7,.55) center / 26px no-repeat; opacity: 0; transform: scale(.7); }
.video-tap[data-etat="pause"] .video-tap-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5h3.5v14H7zM13.5 5H17v14h-3.5z' fill='%23f3dc94'/%3E%3C/svg%3E"); }
.video-tap[data-etat="lecture"] .video-tap-ic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l11 7-11 7z' fill='%23f3dc94'/%3E%3C/svg%3E"); }
.video-tap.flash .video-tap-ic { animation: tap-flash .7s ease-out; }
@keyframes tap-flash { 0% { opacity: .95; transform: scale(.8); } 60% { opacity: .9; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.15); } }
/* [TIRER-RAFRAICHIR 20/10] */
.tirer { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 8px); z-index: 60; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--pierre); border: 1px solid var(--or-clair); box-shadow: var(--ombre); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.tirer img { width: 30px; height: 30px; object-fit: contain; }
.tirer.pret { border-color: var(--or); box-shadow: var(--ombre), 0 0 18px rgba(232,199,106,.55); }
.tirer.recharge img { animation: tirer-tourne .8s linear infinite; }
@keyframes tirer-tourne { to { transform: rotate(360deg); } }

/* [RECAP-SANS-BANDE 20/10, Maha] le récap se déclare « clair » : son cadre aussi, sinon Chrome peint un fond blanc opaque en thème foncé */
iframe[srcdoc] { color-scheme: only light; }

/* [MEDITATION-PREMIUM 20/10, Maha] */
.audio-carte { padding: 22px 18px 16px; border-color: var(--or-clair); background: linear-gradient(170deg, var(--pierre), var(--sable)); box-shadow: var(--ombre), inset 0 1px 0 rgba(255,255,255,.4); }
.med { text-align: center; }
.med-source { margin: 0 0 6px; }
.med-titre { margin: 0 auto 18px; max-width: 22ch; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; color: var(--encre); text-wrap: balance; }
.med .voix { justify-content: center; gap: 26px; margin: 0 0 10px; }
.med-saut { flex: none; width: 58px; height: 58px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--or-clair); background: color-mix(in srgb, var(--pierre) 80%, transparent); color: var(--or-sombre); box-shadow: 0 2px 6px rgba(74,48,12,.10), inset 0 1px 0 rgba(255,255,255,.4); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease; }
.med-saut svg { width: 34px; height: 34px; } .med-saut text { font: 600 12.5px var(--sans); fill: currentColor; }
.med-saut:active { transform: scale(.92); }
.med .curseur { margin-top: 6px; }
.med .temps { font-family: var(--serif); font-size: 1.125rem; color: var(--or-sombre); font-variant-numeric: tabular-nums; margin-top: 2px; }
/* [AIME-QR 20/10] */
.qr-aime { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--encre-pale); font: inherit; font-size: .9375rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qr-aime svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.qr-aime.oui { color: var(--or); } .qr-aime.oui svg { fill: currentColor; animation: aime-pop .35s ease; }
@keyframes aime-pop { 50% { transform: scale(1.3); } }
/* [TIROIR-QR 20/10] au-delà de deux questions, la liste se replie */
.qr-tiroir > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; margin-top: 12px; border: 1px solid var(--filet); border-radius: 14px; background: var(--pierre); color: var(--or-sombre); font-weight: 600; font-size: 1rem; }
.qr-tiroir > summary::-webkit-details-marker { display: none; }
.qr-tiroir > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s ease; }
.qr-tiroir[open] > summary::after { transform: rotate(-135deg); margin: 4px 4px 0 0; }

/* [AVATAR-CENTRE 20/10, Maha] lettre centrée dans le rond (la serif a des jambages qui la décalaient) */
.qr-av { font-family: var(--sans); font-weight: 600; font-size: .9375rem; line-height: 1; padding: 0; }

/* [FAVORIS 20/10] */
.haut .rond.fav { cursor: pointer; font: inherit; padding: 0; } .haut .rond.fav svg { width: 22px; height: 22px; transition: transform .2s ease; }
.haut .rond.fav.oui { color: var(--or); } .haut .rond.fav.oui svg path { fill: currentColor; } .haut .rond.fav.oui svg { animation: aime-pop .35s ease; }
.favoris-liste .fav-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sable); border: 1px solid var(--or-clair); color: var(--or); font-size: 1rem; }
.favoris-liste .t { flex: 1; min-width: 0; } .favoris-liste b { display: block; font-weight: 600; font-size: 1.0625rem; } .favoris-liste small { display: block; color: var(--encre-douce); font-size: .875rem; margin-top: 2px; }

/* [META-PREMIUM 20/10, Maha] la ligne sous le titre : petites capitales dorées, losanges d’or */
.lecon-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or-sombre); margin: 4px 0 16px; }
.lecon-meta .meta-sep { width: 5px; height: 5px; background: var(--or-clair); transform: rotate(45deg); opacity: .8; }
.lecon-meta .ok-txt { letter-spacing: .14em; }

/* [PROFS-BIENTOT 21/10] page des profs non officielle (Maha) : grisé, non cliquable */
.bientot{opacity:.45;filter:grayscale(1);pointer-events:none;cursor:default}

/* [GUIDANCE-TIROIRS 22/10] le contenu du tiroir, lisible fermé, deux lignes au plus */
summary.partie-tete p.partie-contenu { font-size: .9375rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* [ERGO-PLAY 24/10] tour d'ergonomie Play : interrupteur des notifications lisible de nuit (piste et pastille
   se fondaient dans le bleu), et les univers « Bientôt dans l'École » lisibles sans paraître cliquables. */
:root[data-theme="nuit"] .interrupteur { border-color: rgba(226,191,99,.55); background: #0b1426; }
:root[data-theme="nuit"] .interrupteur i { background: #e2bf63; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="jour"]) .interrupteur { border-color: rgba(226,191,99,.55); background: #0b1426; }
  :root:not([data-theme="jour"]) .interrupteur i { background: #e2bf63; }
}
.bientot { opacity: .62; }
