/* ═══ 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; }
