/* ═══ Trouver mon Don — 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') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond12-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Semibold.woff2') 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;
  --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%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.5; color: var(--encre);
  background: var(--marbre) url('img/marbre-doux.webp') center top / 100% auto repeat-y;
  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.porte .barre, body.porte #btn-carnet { display: none; }
body::before { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(253,250,242,.35), rgba(253,250,242,.55)); pointer-events: none; z-index: 0; }
.entete, .vue, .barre, .pas-vue, .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: 36px; } h2 { font-size: 28px; } h3 { font-size: 22px; }
p { margin: 0 0 12px; }
a { color: var(--or-sombre); }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
.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; }

/* ── 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: rgba(253,250,242,.55); 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: rgba(253,250,242,.82); 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: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--or); font-weight: 600; }
.marque-titre { font-family: var(--serif); font-size: 21px; }
.boule { width: 28px; height: 28px; flex: none; background: url(img/boule-or.webp) 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-btn { 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; }

/* ── vue ── */
.vue { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
@media (min-width: 760px) { .vue { padding: 32px 24px 48px; } .hero { aspect-ratio: 16 / 9; } .hero h1 { font-size: 48px; } }
.chargement { text-align: center; padding: 60px 0; color: var(--encre-pale); }
.sur-titre { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--or); font-weight: 600; margin-bottom: 6px; }
.intro { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--encre-douce); }
.intro-petite { font-size: 16px; color: var(--encre-douce); margin: 4px 0 12px; }
.section { margin-top: 32px; }
.section > h2 { margin-bottom: 16px; }

/* ── 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: 20px; 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: linear-gradient(158deg, rgba(255,253,249,.95), rgba(248,243,233,.88)); color: #4a3520; font-family: var(--sans); font-size: 17px; 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: 16px; padding: 10px; min-height: 44px; }

/* ── 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 { position: relative; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 3; background: var(--sable); }
.hero 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(253,250,242,.96) 0%, rgba(253,250,242,.84) 30%, rgba(253,250,242,.4) 50%, rgba(253,250,242,0) 64%); }
.hero .texte { position: absolute; top: 22px; left: 18px; right: 18px; text-align: center; animation: souffle .6s ease-out .15s both; }
.hero h1 { font-size: 40px; letter-spacing: .4px; }
@keyframes souffle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .sous { text-wrap: balance; font-family: var(--serif); font-style: italic; font-size: 19px; color: #6b4e0c; margin-top: 6px; text-shadow: 0 1px 10px rgba(253,250,242,.95), 0 0 2px rgba(253,250,242,.9); }
.attention { padding: 14px 16px; margin: 12px 0; font-size: 16px; color: var(--encre-douce); }
.attention b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--encre); margin-bottom: 4px; }

/* ── l'avancée : l'anneau d'or et le prochain pas ── */
@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; margin-bottom: 16px; font-family: var(--serif); font-size: 22px; 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 .5s ease-out; flex: none; }
.anneau::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: rgba(253,250,242,.96); }
.anneau span { position: relative; }
.avance { display: flex; align-items: center; gap: 16px; padding: 16px; margin-top: 16px; }
.avance .anneau { margin: 0; }
.avance .t { flex: 1; min-width: 0; }
.avance b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.avance small { display: block; font-size: 15px; color: var(--encre-douce); margin-top: 4px; }
.avance .sur-titre { margin-bottom: 2px; }
.mon-don { margin-top: 12px; padding: 18px 18px 20px; text-align: center; border-color: var(--or-clair); background: linear-gradient(180deg, #fffdf8, #fbf3de); }
.mon-don .grand { font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--encre); white-space: pre-wrap; overflow-wrap: anywhere; }
.reponse-carte { margin-top: 12px; padding: 16px 18px; border-color: var(--or-clair); }
.reponse-carte p { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; }

/* ── le chemin : rangées ── */
.mvt { margin-top: 20px; }
.mvt .sur-titre { margin-bottom: 8px; }
.ligne { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; 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 { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.ligne .t { flex: 1; min-width: 0; }
.ligne h3 { font-size: 19px; line-height: 1.15; }
.ligne .meta { font-size: 13px; color: var(--or); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.ligne .etat { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--or); font-size: 24px; }
.ligne .etat.fait { background: url(img/boule-or.webp) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(125,90,16,.35)); }
.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); }
.ligne, .vignette { transition: transform .15s; }
button.ligne:active, .vignette:active { transform: scale(.97); transition-duration: .12s; }
.rev { opacity: 0; transform: translateY(14px); }
.rev.vu { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }

/* ── le mode pas : un geste par écran, comme le mode cuisine ── */
.pas-vue { position: fixed; inset: 0; z-index: 40; background: linear-gradient(rgba(253,250,242,.7), rgba(253,250,242,.7)), var(--marbre) url('img/marbre-doux.webp') center top / 100% auto repeat-y; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.pas-vue[hidden] { display: none; }
.pas-vue::before { content: ''; position: absolute; inset: -24px; z-index: -1; background: var(--plat, none) center / cover; filter: blur(22px) saturate(1.05); opacity: .3; pointer-events: none; }
.pas-vue .haut { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--filet); background: rgba(253,250,242,.9); }
.pas-vue .haut .titre { font-family: var(--serif); font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.pas-vue .fermer { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--filet); background: var(--pierre); font-size: 26px; line-height: 1; color: var(--encre-douce); }
.pas-vue .corps { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 24px; overflow-y: auto; animation: entrer .25s ease-out; }
.pas-vue .corps.haut-aligne { justify-content: flex-start; }
.pas-vue .numero { font-family: var(--serif); font-size: 22px; color: var(--or); letter-spacing: 1px; margin-bottom: 14px; }
.pas-vue .etape { font-family: var(--serif); font-size: clamp(30px, 8vw, 46px); line-height: 1.25; color: var(--encre); }
.parole { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(23px, 6.2vw, 30px); line-height: 1.38; color: var(--encre); }
.ingr-rappel { margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--encre-douce); }
.ingr-rappel b { color: var(--or); font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; font-size: 12px; display: block; margin-bottom: 6px; }
.pas-vue .bas { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; padding: 14px 16px 18px; background: rgba(253,250,242,.92); border-top: 1px solid var(--filet); }
.pas-vue .bas > * { min-height: 76px; font-size: 22px; border-radius: 18px; }
.pas-vue .bas .lingot { font-size: 24px; padding-inline: 12px; text-align: center; }
.pas-vue .fin-texte { text-align: center; }
.pas-vue .fin-texte .etape { font-size: clamp(32px, 8vw, 50px); }
@keyframes entrer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pluie { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.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); } }
.pas-vue > .pluie { z-index: 3; }

/* la voix de Maha : un lecteur dessiné, jamais le contrôle du navigateur */
.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: rgba(253,250,242,.96); }
.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: 26px; color: var(--or-sombre); line-height: 1.1; }
.voix-t .source { font-size: 14px; 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: 15px; 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); }
.voix.fini .temps::after { content: ' ✓'; color: var(--or); }

/* pratiquer : l'orbe qui respire */
.orbe-respire { display: grid; place-items: center; margin: 30px 0 6px; height: 150px; position: relative; }
.orbe-respire::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(232,192,120,.55) 0%, rgba(232,192,120,.18) 45%, rgba(232,192,120,0) 70%); animation: halo 5s ease-in-out infinite; }
.orbe-respire i { position: relative; width: 96px; height: 96px; background: url(img/boule-or-grande.webp) center / contain no-repeat; filter: drop-shadow(0 8px 14px rgba(125,90,16,.35)); animation: respire 5s ease-in-out infinite; }
@keyframes respire { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.08); } }
@keyframes halo { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .95; transform: scale(1.1); } }

/* écrire : où j'en suis, et mes mots */
.marches { display: grid; gap: 8px; margin: 4px 0 14px; }
.marche { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 14px; text-align: left; border-radius: 14px; border: 1px solid var(--filet); background: var(--pierre); color: var(--encre); font-size: 18px; line-height: 1.25; box-shadow: var(--ombre); }
.marche i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--or); }
.marche[aria-checked="true"] { border-color: var(--or-clair); }
.marche[aria-checked="true"] i { border-color: transparent; background: url(img/boule-or.webp) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(125,90,16,.35)); }
.aide { font-size: 16px; color: var(--encre-douce); margin: 0 0 18px; }
.ecrire label { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.ecrire textarea { width: 100%; min-height: 150px; resize: vertical; padding: 14px 16px; border: 1px solid var(--filet); border-radius: 14px; background: var(--pierre); color: var(--encre); font: inherit; font-size: 19px; line-height: 1.5; box-shadow: inset 0 1px 3px rgba(74,48,12,.06); }
.ecrire textarea:focus { outline: none; border-color: var(--or-clair); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.ecrire textarea::placeholder { color: var(--encre-pale); opacity: .8; }
.note { font-size: 15px; color: var(--encre-douce); margin: 12px 0 0; line-height: 1.5; }
.note a { color: var(--or-sombre); }

/* ── le carnet ── */
.carnet-tete { text-align: center; padding-bottom: 6px; }
.carnet-tete .boule.grande { margin-bottom: 10px; }
.entree { padding: 16px 18px 18px; margin-top: 10px; }
.entree .texte { font-size: 19px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.entree .revoir { display: inline-block; margin-top: 10px; font-size: 15px; color: var(--or-sombre); background: none; border: 0; padding: 6px 0; min-height: 36px; text-decoration: underline; }
.vide { text-align: center; padding: 40px 16px; color: var(--encre-pale); font-family: var(--serif); font-size: 20px; }

/* ── la barre du bas ── */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: rgba(253,250,242,.96); 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: 12px; 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: #fff8e6; padding: 12px 20px; border-radius: 14px; font-size: 16px; box-shadow: var(--ombre); z-index: 45; max-width: calc(100% - 32px); text-align: center; }
.toast[hidden] { display: none; }
body.porte .toast { bottom: 24px; }

/* ── installer ── */
.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: 15px; color: var(--encre-douce); flex: 1; }
.install b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--encre); }
.install .lingot { min-height: 48px; padding: 8px 18px; font-size: 18px; }
.pied { margin-top: 40px; text-align: center; font-size: 15px; color: var(--encre-pale); }
.pied a { color: var(--or-sombre); }
.pied small { display: block; margin-top: 8px; font-size: 13px; }

/* ── l'École : la suite naturelle ── */
.ecole-appel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 24px; text-decoration: none; color: var(--encre); }
.ecole-appel img { width: 90px; height: auto; flex: none; }
.ecole-appel div { flex: 1; min-width: 0; font-size: 15px; color: var(--encre-douce); }
.ecole-appel b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--encre); line-height: 1.15; margin-bottom: 4px; }
.ecole-appel span { font-size: 24px; color: var(--or); }
.ecole-tete { text-align: center; padding-bottom: 8px; position: relative; }
.ecole-tete .logo { width: 180px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(125,90,16,.22)); }
.ecole-tete::before { content: ''; position: absolute; left: 50%; top: 74px; width: 250px; height: 250px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(232,192,120,.55) 0%, rgba(232,192,120,.18) 45%, rgba(232,192,120,0) 70%); opacity: .6; animation: halo2 4s ease-in-out infinite; z-index: -1; pointer-events: none; }
@keyframes halo2 { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .95; transform: translate(-50%, -50%) scale(1.08); } }
.ecole-tete .intro { margin-top: 12px; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 560px) { .grille { grid-template-columns: 1fr 1fr 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: 18px; line-height: 1.15; }
.vignette .meta { font-size: 13px; color: var(--or); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.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, rgba(253,250,242,.35), rgba(253,250,242,.7)), url('img/marbre-doux.webp') 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); }
.ecole-liens { margin-top: 28px; }
.feuille { position: fixed; inset: 0; z-index: 42; }
.feuille[hidden] { display: none; }
.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, rgba(255,253,248,.5), rgba(255,252,245,.62)), url('img/marbre-premium.webp') 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; }
@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: 24px; margin-bottom: 8px; }
.feuille p { font-size: 17px; color: var(--encre-douce); margin-bottom: 16px; }
.feuille .large { width: 100%; margin-bottom: 10px; }

/* ── la porte (sans lien personnel) ── */
.comment { padding: 6px 18px 10px; margin-top: 24px; }
.comment h3 { padding-top: 14px; }
.comment ul { list-style: none; margin: 8px 0 0; padding: 0; }
.comment li { position: relative; padding: 12px 0 12px 32px; border-top: 1px dotted var(--filet); font-size: 18px; }
.comment li:first-child { border-top: 0; }
.comment li::before { content: ''; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; background: url(img/boule-or.webp) center / contain no-repeat; filter: drop-shadow(0 1px 1.5px rgba(125,90,16,.35)); }
.echantillon { padding: 16px 18px 12px; margin-top: 16px; }
.echantillon .sur-titre { margin-bottom: 10px; }

/* ── 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, #f4ecda 35%, #fffdf8 50%, #f4ecda 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: #fdfaf2 url(img/marbre-doux.webp) center / cover; pointer-events: none; animation: ouv-sort .5s ease 1.1s forwards; }
#ouverture i { width: 132px; height: 132px; background: url(img/boule-or-grande.webp) 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; } }
.bat { animation: battre .6s ease-out; }
@keyframes battre { 0% { transform: scale(1); } 30% { transform: scale(1.4); } 55% { transform: scale(.9); } 100% { transform: scale(1); } }

@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; }
}
@media print {
  html, body { background: #fff !important; } body::before { display: none; }
  .entete, .barre, .pas-vue, .feuille, .toast, .saut, #ouverture, .pied, .actions, .install, .ecole-appel, .revoir { display: none !important; }
  .carte { box-shadow: none; break-inside: avoid; } .vue { max-width: none; padding: 0; }
}

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

/* [TOUCHER 21/10, Brice] plus de carré qui s'allume au toucher : chaque bouton répond par sa propre forme */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], summary, label { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }

/* ═══ Le Laboratoire — ce qui s'ajoute au langage de Mon Don ═══ */
.credit { font-size: 14px; color: var(--encre-pale); margin-top: 6px; }

/* l'étoile : six branches, données réelles */
.etoile-carte { padding: 16px 12px 12px; text-align: center; }
.etoile-svg { width: 100%; max-width: 340px; height: auto; margin: 0 auto; display: block; }
.etoile-svg .grille { fill: none; stroke: var(--filet); stroke-width: 1; }
.etoile-svg .axe { stroke: var(--filet); stroke-width: 1; }
.etoile-svg .zone1 { fill: rgba(212,175,55,.28); stroke: #b8902d; stroke-width: 2.2; stroke-linejoin: round; transition: d .6s; }
.etoile-svg .zone2 { fill: rgba(42,33,24,.06); stroke: #4a3a26; stroke-width: 1.8; stroke-dasharray: 5 4; stroke-linejoin: round; }
.etoile-svg .pt { fill: #fff6d2; stroke: #b8902d; stroke-width: 2; }
.etoile-svg text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; fill: var(--encre-douce); }
.etoile-svg text.val { font-family: var(--serif); font-size: 13px; text-transform: none; letter-spacing: 0; fill: var(--or-sombre); font-weight: 400; }
.etoile-total { font-family: var(--serif); font-size: 30px; color: var(--encre); margin-top: 4px; }
.etoile-total small { display: block; font-family: var(--sans); font-size: 14px; color: var(--encre-pale); margin-top: 2px; }
.legende { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--encre-douce); margin-top: 8px; }
.legende i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; background: #b8902d; border-radius: 2px; }
.legende i.deux { background: repeating-linear-gradient(90deg, #4a3a26 0 5px, transparent 5px 9px); }
.jauges { margin-top: 8px; }
.jauge { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px dotted var(--filet); font-size: 16px; }
.jauge:first-child { border-top: 0; }
.jauge b { font-weight: 400; font-family: var(--serif); font-size: 19px; }
.jauge .n { font-family: var(--serif); color: var(--or-sombre); font-size: 19px; }
.jauge .barre-j { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--sable); overflow: hidden; }
.jauge .barre-j i { display: block; height: 100%; background: var(--lingot); border-radius: 4px; transition: width .6s ease-out; }

/* le miroir : une affirmation par écran, cinq réponses larges */
.affirmation { font-family: var(--serif); font-size: clamp(26px, 6.6vw, 34px); line-height: 1.3; color: var(--encre); margin: 10px 0 26px; }
.echelle { display: grid; gap: 8px; }
.echelle button { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; text-align: left; border-radius: 14px; border: 1px solid var(--filet); background: var(--pierre); color: var(--encre); font-size: 18px; box-shadow: var(--ombre); }
.echelle button b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; color: var(--or-sombre); border: 1.5px solid var(--or); font-weight: 400; }
.echelle button[aria-pressed="true"] { border-color: var(--or-clair); background: linear-gradient(180deg, #fffdf8, #fbf3de); }
.echelle button[aria-pressed="true"] b { background: var(--lingot); border-color: transparent; color: #3a2708; }
.compteur { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--or); font-weight: 600; margin-bottom: 8px; }

/* les archétypes : des cartes qu'on reconnaît */
.arche { display: block; width: 100%; text-align: left; padding: 14px 16px; margin-top: 10px; border-radius: 16px; border: 1px solid var(--filet); background: var(--pierre); color: var(--encre); box-shadow: var(--ombre); font: inherit; }
.arche h3 { font-size: 22px; }
.arche .ph { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--or-sombre); margin: 2px 0 6px; }
.arche p { font-size: 15.5px; color: var(--encre-douce); margin: 0; line-height: 1.45; }
.arche .reco { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--encre-douce); }
.arche .reco i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--or); flex: none; }
.arche[aria-pressed="true"] { border-color: var(--or-clair); background: linear-gradient(180deg, #fffdf8, #fbf3de); }
.arche[aria-pressed="true"] .reco i { border-color: transparent; background: url(img/boule-or.webp) center / contain no-repeat; }
.arche .score { float: right; font-family: var(--serif); color: var(--or); font-size: 15px; }
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; align-items: end; margin: 14px 0 4px; }
.podium .place { text-align: center; padding: 14px 8px 12px; border-radius: 16px; border: 1px solid var(--filet); background: var(--pierre); box-shadow: var(--ombre); }
.podium .place.un { border-color: var(--or-clair); background: linear-gradient(180deg, #fffdf8, #fbf3de); padding-top: 22px; }
.podium .rang { font-family: var(--serif); font-size: 15px; color: var(--or); letter-spacing: 1.5px; text-transform: uppercase; }
.podium .nom { font-family: var(--serif); font-size: 19px; line-height: 1.15; margin-top: 6px; }
.podium .un .nom { font-size: 23px; }
.podium .boule { margin: 0 auto 6px; }
.podium .un .boule { width: 40px; height: 40px; }

/* le retournement : saboteur → allié */
.flip { perspective: 1200px; margin: 10px 0 18px; }
.flip .face { border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--pierre); box-shadow: var(--ombre); padding: 22px 20px; text-align: center; backface-visibility: hidden; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.flip .dos { position: absolute; inset: 0; transform: rotateY(180deg); border-color: var(--or-clair); background: linear-gradient(180deg, #fffdf8, #fbf3de); display: flex; flex-direction: column; justify-content: center; }
.flip .cadre { position: relative; }
.flip.tourne .face.devant { transform: rotateY(-180deg); } .flip.tourne .dos { transform: rotateY(0); }
.flip .etiq { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--or); font-weight: 600; }
.flip .grand { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin: 8px 0 6px; }
.flip .qual { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--or-sombre); }

/* les champs rapides (une question par écran) */
.champ-rapide label { display: block; font-family: var(--serif); font-size: clamp(23px, 6vw, 29px); line-height: 1.3; margin: 0 0 14px; }
.champ-rapide input[type=text], .champ-rapide input[type=number], .ecrire input[type=text] { 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: 19px; }
.champ-rapide input:focus, .ecrire input:focus { outline: none; border-color: var(--or-clair); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.chips button { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--filet); background: var(--pierre); color: var(--encre); font-size: 16px; }
.chips button[aria-pressed="true"] { background: var(--lingot); border-color: transparent; color: #3a2708; }
.calcul { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 8px 0 6px; }
.calcul span { text-align: center; font-family: var(--serif); font-size: 24px; color: var(--or-sombre); }
.resultat { text-align: center; font-family: var(--serif); font-size: clamp(40px, 12vw, 64px); color: var(--encre); margin: 10px 0 2px; }
.resultat small { display: block; font-family: var(--sans); font-size: 15px; color: var(--encre-pale); }
.deux-choix { display: grid; gap: 10px; margin-top: 10px; }
.deux-choix button { min-height: 64px; border-radius: 16px; border: 1px solid var(--filet); background: var(--pierre); font-family: var(--serif); font-size: 21px; color: var(--encre); padding: 10px 16px; box-shadow: var(--ombre); }
.deux-choix button[aria-pressed="true"] { background: var(--lingot); border-color: transparent; color: #3a2708; }
.liste-choix { display: grid; gap: 8px; }
.liste-choix button { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; text-align: left; border-radius: 14px; border: 1px solid var(--filet); background: var(--pierre); color: var(--encre); font-size: 17px; line-height: 1.3; box-shadow: var(--ombre); }
.liste-choix button i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--or); }
.liste-choix button[aria-pressed="true"] { border-color: var(--or-clair); }
.liste-choix button[aria-pressed="true"] i { border-color: transparent; background: url(img/boule-or.webp) center / contain no-repeat; }
.compte { text-align: center; font-family: var(--serif); font-size: clamp(44px, 14vw, 72px); color: var(--encre); font-variant-numeric: tabular-nums lining-nums; margin: 6px 0; }
.compte small { display: block; font-family: var(--sans); font-size: 15px; color: var(--encre-pale); }
.compte.fini { color: var(--or-sombre); }

/* le contrat des 7 jours */
.jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 18px; }
.jours span { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--filet); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; color: var(--encre-pale); background: var(--pierre); }
.jours span.fait { background: url(img/boule-or.webp) center / contain no-repeat; border-color: transparent; color: transparent; filter: drop-shadow(0 1px 2px rgba(125,90,16,.35)); }
.jours span.ici { border-color: var(--or-clair); color: var(--or-sombre); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.jour-ligne { padding: 12px 14px; margin-top: 8px; }
.jour-ligne b { font-family: var(--serif); font-weight: 400; font-size: 19px; display: block; }
.jour-ligne p { font-size: 15.5px; color: var(--encre-douce); margin: 4px 0 0; white-space: pre-wrap; }

/* les succès */
.succes-vue { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(42,33,24,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.succes-vue[hidden] { display: none; }
.succes-carte { position: relative; width: 100%; max-width: 420px; text-align: center; padding: 34px 24px 24px; border-radius: 24px; border: 1px solid rgba(212,175,55,.7); background: linear-gradient(180deg, rgba(255,253,248,.6), rgba(255,252,245,.75)), url('img/marbre-premium.webp') center / cover; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: monter .35s ease-out; overflow: hidden; }
.succes-carte .etiq { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--or); font-weight: 600; }
.succes-carte h2 { font-size: 32px; margin: 8px 0 10px; }
.succes-carte p { font-size: 17px; color: var(--encre-douce); }
.succes-carte .boule.grande { width: 84px; height: 84px; animation: battre .8s ease-out; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--filet); background: var(--pierre); font-size: 14px; color: var(--encre-douce); }
.badge i { width: 22px; height: 22px; border-radius: 50%; background: url(img/boule-or.webp) center / contain no-repeat; flex: none; }
.badge.verrou { opacity: .5; } .badge.verrou i { background: var(--sable); border: 1px solid var(--filet); }

/* le défi en cours, le terrain */
.defi { margin-top: 12px; padding: 16px 18px; border-color: var(--or-clair); }
.defi .texte { font-family: var(--serif); font-size: 21px; line-height: 1.35; margin: 4px 0 12px; }
.defi .actions { margin: 0; }

/* le visuel à poster */
.visuel { margin-top: 14px; }
.visuel canvas { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); display: block; background: var(--sable); }
.visuel .modeles { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.visuel .modeles button { flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--filet); background: var(--pierre); font-size: 15px; }
.visuel .modeles button[aria-pressed="true"] { background: var(--lingot); border-color: transparent; color: #3a2708; }

/* le soin */
.soin-carte { padding: 20px 18px 18px; text-align: center; }
.soin-carte .boule.grande { margin-bottom: 10px; }
.soin-carte .versions { text-align: left; margin: 14px 0 6px; padding: 0; list-style: none; }
.soin-carte .versions li { padding: 10px 0; border-top: 1px dotted var(--filet); font-size: 16px; display: flex; justify-content: space-between; gap: 10px; }
.soin-carte .versions li b { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.soin-carte .versions li span { color: var(--encre-pale); flex: none; }
.profil { padding: 16px 18px; margin-top: 12px; }
.profil .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.profil .deux button { min-height: 52px; border-radius: 14px; border: 1px solid var(--filet); background: var(--pierre); font-size: 17px; color: var(--encre); }
.profil .deux button[aria-pressed="true"] { background: var(--lingot); border-color: transparent; color: #3a2708; }
.pas-vue .corps.large { padding-inline: 18px; }

/* ═══ la carte des quatre Univers ═══ */
.anneau.petit { width: 58px; height: 58px; font-size: 15px; margin: 0; flex: none; }
.univers-ligne { align-items: center; }
.univers-ligne .t h3 { font-size: 20px; }
details.dim { background: var(--pierre); border: 1px solid var(--filet); border-radius: 14px; padding: 4px 14px 10px; margin-top: 8px; }
details.dim summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 50px; font-size: 17px; }
details.dim summary::-webkit-details-marker { display: none; }
details.dim summary b { font-family: var(--serif); font-weight: 400; font-size: 21px; }
details.dim summary small { display: block; color: var(--encre-pale); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
details.dim summary .n { font-family: var(--serif); color: var(--or-sombre); font-size: 19px; flex: none; }
details.dim[open] summary { border-bottom: 1px dotted var(--filet); margin-bottom: 6px; }

/* ═══ plus de style : cartes-héros d'Univers, étoile qui se dessine, lettrines, pratique sur marbre, soin verrouillé ═══ */
.univers-carte { display: block; text-decoration: none; color: var(--encre); background: var(--pierre); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); margin-top: 14px; transition: transform .18s, box-shadow .18s; }
.univers-carte:active { transform: scale(.985); }
.univers-carte .ph { position: relative; aspect-ratio: 16 / 9; background: var(--sable); overflow: hidden; }
.univers-carte .ph img { width: 100%; height: 100%; object-fit: cover; animation: ken 22s ease-out forwards; }
.univers-carte .ph .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253,250,242,0) 40%, rgba(253,250,242,.55) 80%, rgba(253,250,242,.92) 100%); }
.univers-carte .ph .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; }
.univers-carte .ph .poussiere i:nth-child(1) { left: 14%; top: 72%; } .univers-carte .ph .poussiere i:nth-child(2) { left: 36%; top: 84%; animation-delay: 1.8s; } .univers-carte .ph .poussiere i:nth-child(3) { left: 58%; top: 78%; animation-delay: 3.4s; } .univers-carte .ph .poussiere i:nth-child(4) { left: 76%; top: 88%; animation-delay: 5s; } .univers-carte .ph .poussiere i:nth-child(5) { left: 90%; top: 70%; animation-delay: 6.6s; }
.univers-carte .ph .anneau { position: absolute; right: 14px; bottom: 12px; margin: 0; width: 64px; height: 64px; font-size: 16px; box-shadow: 0 0 0 4px rgba(253,250,242,.7), 0 6px 18px rgba(125,90,16,.35), 0 0 24px rgba(232,192,120,.55); }
.univers-carte .t { padding: 12px 16px 14px; }
.univers-carte h3 { font-size: 26px; line-height: 1.1; }
.univers-carte small { display: block; color: var(--encre-pale); font-size: 14px; margin-top: 4px; }
.univers-carte .sur-titre { margin-bottom: 4px; }
.hero.univers-hero { aspect-ratio: 16 / 10; }
.hero.univers-hero .texte { top: auto; bottom: 18px; }
.hero.univers-hero .voile { background: linear-gradient(180deg, rgba(253,250,242,0) 30%, rgba(253,250,242,.55) 70%, rgba(253,250,242,.96) 100%); }
.hero.univers-hero h1 { text-shadow: 0 1px 12px rgba(253,250,242,.95); }
/* l'étoile se dessine, puis rayonne */
.etoile-svg .zone1 { stroke-dasharray: 100; stroke-dashoffset: 100; animation: tracer 1.4s ease-out .2s forwards, rayonner 4s ease-in-out 1.6s infinite; filter: drop-shadow(0 0 6px rgba(212,175,55,.55)); }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes rayonner { 0%, 100% { filter: drop-shadow(0 0 5px rgba(212,175,55,.45)); } 50% { filter: drop-shadow(0 0 14px rgba(212,175,55,.85)); } }
.etoile-svg .pt { animation: souffle .6s ease-out 1.3s both; }
.etoile-carte { position: relative; overflow: hidden; }
.etoile-carte::before { content: ''; position: absolute; left: 50%; top: 42%; width: 260px; height: 260px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(232,192,120,.45) 0%, rgba(232,192,120,.12) 50%, transparent 70%); animation: halo 5s ease-in-out infinite; pointer-events: none; }
.etoile-carte > * { position: relative; }
/* paroles en lettrine */
.parole.lettrine { position: relative; padding-left: 30px; font-style: italic; }
.parole.lettrine::before { content: '«'; position: absolute; left: 0; top: -14px; font-size: 54px; line-height: 1; color: var(--or-clair); font-style: normal; opacity: .9; }
.parole.lettrine::after { content: ' »'; color: var(--or-clair); }
/* la pratique du jour sur marbre premium */
.carte.defi { background: linear-gradient(180deg, rgba(255,253,248,.72), rgba(255,252,245,.86)), url('img/marbre-premium.webp') center / cover; border-color: rgba(212,175,55,.6); }
/* le soin, verrouillé tant que la Capsule n'est pas à soi */
.barre a.verrou { opacity: .4; }
.barre a.verrou::after { content: ''; position: absolute; right: 14px; top: 8px; width: 11px; height: 13px; background: url(img/boule-or.webp) center / contain no-repeat; opacity: .8; }
.dim .carte.defi { background: var(--pierre); border-color: var(--filet); }

/* ═══ LA VOIE : statut, jour du jour, route en or, récompense, succès expliqués, clips vidéo ═══ */
.statut { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; margin-top: 6px; }
.st-niv { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--pierre); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); }
.st-niv .anneau { margin: 0; width: 64px; height: 64px; font-size: 24px; }
.st-niv b { font-family: var(--serif); font-weight: 400; font-size: 24px; display: block; line-height: 1.1; }
.st-niv small { display: block; font-size: 13px; color: var(--encre-pale); margin-top: 2px; }
.st-serie { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 86px; padding: 10px; border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--pierre); box-shadow: var(--ombre); }
.st-serie i { width: 30px; height: 30px; background: url(img/boule-or.webp) center / contain no-repeat; filter: grayscale(1) opacity(.5); }
.st-serie.vive i { filter: drop-shadow(0 0 8px rgba(232,192,120,.9)); animation: battre 1.6s ease-in-out infinite; }
.st-serie b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; margin-top: 4px; }
.st-serie small { font-size: 11px; color: var(--encre-pale); text-align: center; }
.jour-carte { position: relative; overflow: hidden; margin-top: 14px; border-color: var(--or-clair); }
.jour-carte .jc-ph { height: 150px; background: var(--photo) center / cover; position: relative; }
.jour-carte .jc-ph .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253,250,242,0) 30%, rgba(255,253,248,1) 100%); }
.jour-carte .jc-t { padding: 4px 18px 16px; }
.jour-carte h2 { font-size: 32px; margin: 2px 0 6px; }
.jour-carte .actions { margin: 10px 0 6px; grid-template-columns: 1fr; }
.jour-carte.demain { padding: 16px 18px; background: linear-gradient(180deg, rgba(255,253,248,.72), rgba(255,252,245,.86)), url('img/marbre-premium.webp') center / cover; }
.pratique-courte { margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--filet); }
.pratique-courte p { font-family: var(--serif); font-size: 19px; line-height: 1.35; margin: 4px 0 10px; }
.route { display: block; margin: 6px auto 0; overflow: visible; }
.route .trace { fill: none; stroke: var(--filet); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.route .trace-or { fill: none; stroke: url(#or-cadenas); stroke: #c9a253; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(212,175,55,.6)); transition: stroke-dasharray 1s ease-out; }
.route .noeud circle { fill: var(--pierre); stroke: var(--filet); stroke-width: 2; }
.route .noeud.fait circle { fill: #e8c078; stroke: #b8902d; }
.route .noeud.ici circle { fill: #f4d58a; stroke: #a07840; stroke-width: 3; filter: drop-shadow(0 4px 10px rgba(125,90,16,.4)); }
.route .noeud.ici .halo { fill: none; stroke: rgba(212,175,55,.45); stroke-width: 2; animation: ondeR 2.2s ease-out infinite; }
@keyframes ondeR { 0% { r: 28; opacity: .9; } 100% { r: 44; opacity: 0; } }
.route .noeud .num { font-family: var(--serif); font-size: 16px; fill: var(--encre); text-anchor: middle; }
.route .noeud.ici .num { font-size: 20px; }
.route .noeud.ferme .num { fill: var(--encre-pale); }
.route .noeud.ferme circle { stroke-dasharray: 3 3; }
.route .noeud .lab { font-family: var(--sans); font-size: 13px; fill: var(--encre-douce); }
.route .noeud.ferme .lab { fill: var(--encre-pale); }
.route .noeud.ici .lab { font-weight: 600; fill: var(--encre); }
.route .noeud .sem { font-family: var(--sans); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; fill: var(--or); font-weight: 600; }
.route .noeud { cursor: pointer; }
.succes-liste { display: grid; gap: 8px; }
.succes-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--filet); background: var(--pierre); }
.succes-ligne i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: url(img/boule-or.webp) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(125,90,16,.35)); }
.succes-ligne.verrou i { background: var(--sable); border: 1px solid var(--filet); filter: none; }
.succes-ligne b { font-family: var(--serif); font-weight: 400; font-size: 19px; display: block; }
.succes-ligne small { display: block; font-size: 13.5px; color: var(--encre-pale); line-height: 1.35; }
.succes-ligne.verrou b { color: var(--encre-douce); }
.recomp { font-size: 16px; color: var(--encre); background: rgba(255,253,248,.7); border: 1px solid var(--filet); border-radius: 12px; padding: 10px 12px; }
.comment summary { list-style: none; cursor: pointer; } .comment summary::-webkit-details-marker { display: none; } .comment summary h3 { padding-top: 10px; }
.clip-cadre { position: relative; border-radius: 14px; overflow: hidden; background: #1a140c; margin: 0 0 12px; aspect-ratio: 16 / 9; box-shadow: var(--ombre); }
.clip-cadre video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.clip-cadre .clip-voile { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(212,175,55,.5), inset 0 -40px 60px rgba(26,20,12,.45); }

.parole-verrou { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; opacity: .85; }
.parole-verrou .cadenas { width: 26px; height: 32px; flex: none; }
.parole-verrou b { font-family: var(--serif); font-weight: 400; font-size: 17px; display: block; color: var(--encre-douce); }
.parole-verrou small { font-size: 13px; color: var(--encre-pale); }

.reponse-carte.lahiri { border-color: var(--or-clair); background: linear-gradient(180deg, rgba(255,253,248,.8), rgba(255,252,245,.9)), url('img/marbre-premium.webp') center / cover; margin-top: 14px; padding: 16px 18px; }
.reponse-carte.lahiri p { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin: 6px 0 8px; }
body.porte .univers-carte .ph .anneau { display: none; }
