/* lecteurs-jeu.css — « La route » de yeees.ch/lecteurs : le tableau de bord, la route des
   chapitres, le jeu du jour. Fichier à part plutôt que des classes Tailwind : le build statique
   ne connaît que les classes déjà utilisées, et une classe absente ne se voit qu'en production.
   Public : grands débutants, souvent âgés. Donc gros texte, gros boutons (56 px au moins),
   contrastes francs, et aucune animation pour qui les a coupées dans son système. */

:root {
    --lr-orange: #FF6B35; --lr-orange-fonce: #E64A19; --lr-menthe: #59CD90; --lr-menthe-fonce: #1F8A55;
    --lr-marine: #2E4057; --lr-or: #D4A574; --lr-creme: #FFFAF5; --lr-encre: #1F1B16; --lr-gris: #6B6B6B;
    --lr-route: #3A3F47; --lr-rose: #FFE0DA;
}

.lr { position: relative; padding: 28px 16px 40px; background: linear-gradient(180deg, rgba(89,205,144,.14) 0%, var(--lr-creme) 340px); }
.lr-wrap { max-width: 40rem; margin: 0 auto; }
.lr-sur { text-align: center; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 800; color: var(--lr-marine); margin: 0 0 10px; }
.lr-h1 { font-family: 'Urbanist', system-ui, sans-serif; text-align: center; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-size: 2.4rem; font-size: clamp(2.2rem, 8vw, 3.4rem); margin: 0 0 22px; }
.lr-h1 span { color: var(--lr-orange); display: block; }
.lr-h2 { font-family: 'Urbanist', system-ui, sans-serif; font-weight: 900; letter-spacing: -.02em; font-size: 1.6rem; line-height: 1.1; margin: 0; }
.lr-p { font-size: 1.15rem; line-height: 1.5; color: rgba(31,27,22,.8); margin: 6px 0 0; }

/* ── Boutons ── */
.lr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 14px 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 1.2rem; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.lr-btn:active { transform: scale(.97); }
.lr-btn:focus-visible, .lr-tuile:focus-visible, .lr-etape:focus-visible, .lr-choix:focus-visible, .lr-x:focus-visible { outline: 4px solid var(--lr-marine); outline-offset: 3px; }
.lr-btn-go { background: var(--lr-orange-fonce); color: #fff; box-shadow: 0 6px 0 #B23810, 0 12px 24px rgba(255,107,53,.3); }
.lr-btn-go:hover { background: #D84315; }
.lr-btn-go:active { box-shadow: 0 2px 0 #B23810; transform: translateY(4px); }
.lr-btn-vert { background: var(--lr-menthe-fonce); color: #fff; box-shadow: 0 6px 0 #146b40; }
.lr-btn-vert:active { box-shadow: 0 2px 0 #146b40; transform: translateY(4px); }
.lr-btn-doux { background: #fff; color: var(--lr-encre); border: 3px solid rgba(107,107,107,.25); }
.lr-btn-doux:hover { border-color: var(--lr-orange); }
.lr-btn[disabled] { opacity: .45; cursor: default; box-shadow: none; transform: none; }
.lr-plein { width: 100%; }
.lr-lien { background: none; border: 0; font: inherit; font-size: 1rem; color: var(--lr-marine); text-decoration: underline; cursor: pointer; padding: 10px; min-height: 44px; }

/* ── Cartes ── */
.lr-carte { background: #fff; border: 2px solid rgba(107,107,107,.14); border-radius: 28px; padding: 22px; margin-top: 16px; box-shadow: 0 10px 30px rgba(46,64,87,.08); }
.lr-carte-jeu { background: linear-gradient(135deg, #fff 0%, #FFF3EC 100%); border-color: rgba(255,107,53,.35); }
.lr-carte-fait { background: linear-gradient(135deg, #fff 0%, #EAF9F1 100%); border-color: rgba(89,205,144,.5); }
.lr-carte-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lr-carte-tete > div { min-width: 0; overflow-wrap: anywhere; }
.lr-gros-emoji { font-size: 2.8rem; line-height: 1; flex-shrink: 0; }
.lr-petit { font-size: .95rem; color: var(--lr-gris); margin: 2px 0 0; }

/* ── Le tableau : flamme, étoiles, niveau ── */
.lr-tableau { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lr-pastille { background: #fff; border: 2px solid rgba(107,107,107,.14); border-radius: 22px; padding: 14px 12px; text-align: center; }
.lr-pastille b { display: block; font-family: 'Urbanist', system-ui, sans-serif; font-size: 2rem; font-weight: 900; line-height: 1.05; }
.lr-pastille span { font-size: .95rem; color: var(--lr-gris); }
.lr-niveau { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; text-align: left; }
.lr-niveau .lr-gros-emoji { font-size: 2.6rem; }
.lr-niveau-txt { flex: 1; min-width: 0; }
.lr-niveau-txt strong { font-size: 1.2rem; font-weight: 900; }
.lr-barre { height: 14px; border-radius: 99px; background: #F1ECE6; overflow: hidden; margin: 8px 0 4px; }
.lr-barre i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--lr-or), var(--lr-orange)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.lr-legende { display: grid; gap: 4px; margin: 12px 4px 0; font-size: 1rem; line-height: 1.45; color: rgba(31,27,22,.75); }
.lr-alerte { margin-top: 12px; background: #FFF3EC; border: 2px dashed rgba(255,107,53,.5); border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 1.05rem; text-align: center; }

/* ── Le choix des appareils ── */
.lr-tuiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 14px 0; }
.lr-tuile { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 10px 18px; background: #fff; border: 3px solid rgba(107,107,107,.2); border-radius: 22px; font: inherit; font-size: 1.3rem; font-weight: 800; text-align: left; cursor: pointer; color: var(--lr-encre); }
.lr-tuile > span { min-width: 0; overflow-wrap: anywhere; }
.lr-tuile .lr-gros-emoji { font-size: 2rem; }
.lr-tuile .lr-coche { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(107,107,107,.3); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: transparent; flex-shrink: 0; }
.lr-tuile[aria-pressed="true"] { border-color: var(--lr-menthe-fonce); background: #EAF9F1; }
.lr-tuile[aria-pressed="true"] .lr-coche { background: var(--lr-menthe-fonce); border-color: var(--lr-menthe-fonce); color: #fff; }

/* ── La route ── */
.lr-route-tete { text-align: center; margin: 38px 0 6px; }
.lr-route { position: relative; padding: 10px 0 0; }
.lr-route svg.lr-asphalte { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lr-etapes { position: relative; list-style: none; margin: 0; padding: 0; }
.lr-etapes li { display: flex; justify-content: center; padding: 14px 0; }
.lr-etapes li.lr-x1 { justify-content: flex-end; padding-right: 6%; }
.lr-etapes li.lr-x3 { justify-content: flex-start; padding-left: 6%; }
.lr-etape { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--lr-encre); width: 9.5rem; -webkit-tap-highlight-color: transparent; }
.lr-rond { position: relative; width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: conic-gradient(var(--lr-menthe) calc(var(--lr-p, 0) * 1%), #E9E3DB 0); box-shadow: 0 6px 0 rgba(31,27,22,.12); transition: transform .15s; }
.lr-rond::before { content: ""; position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; border-radius: 50%; background: #fff; }
.lr-emo { position: relative; }
.lr-etape:hover .lr-rond { transform: scale(1.06); }
.lr-etape.lr-fini .lr-rond::before { background: #EAF9F1; }
.lr-etape.lr-ici .lr-rond { box-shadow: 0 0 0 6px rgba(255,107,53,.35), 0 6px 0 rgba(31,27,22,.12); }
.lr-etape-nom { font-weight: 900; font-size: 1.05rem; line-height: 1.15; text-align: center; background: rgba(255,250,245,.92); border-radius: 10px; padding: 2px 8px; }
.lr-etape-compte { font-size: .9rem; color: var(--lr-gris); font-weight: 700; background: rgba(255,250,245,.92); border-radius: 8px; padding: 0 6px; }
.lr-badge { position: absolute; top: -6px; right: -8px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid rgba(107,107,107,.18); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.lr-ici-pastille { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: #B83A0E; color: #fff; font-weight: 900; font-size: .95rem; padding: 5px 12px; border-radius: 99px; box-shadow: 0 4px 12px rgba(255,107,53,.4); animation: lr-saute 1.4s ease-in-out infinite; }
.lr-ici-pastille::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #B83A0E; }
.lr-etapes li.lr-a-ici { padding-top: 46px; }
.lr-arrivee .lr-rond { background: conic-gradient(var(--lr-or) calc(var(--lr-p, 0) * 1%), #E9E3DB 0); }
@keyframes lr-saute { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }

/* ── Le tiroir d'un chapitre et la fenêtre du jeu ── */
.lr-voile { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overscroll-behavior: contain; z-index: 90; background: rgba(31,27,22,.55); display: flex; align-items: flex-end; justify-content: center; animation: lr-apparait .18s ease-out; }
.lr-tiroir { background: var(--lr-creme); width: 100%; max-width: 40rem; max-height: 88vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 22px 18px 30px; animation: lr-monte .25s cubic-bezier(.2,.8,.2,1); }
.lr-tiroir-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lr-x { margin-left: auto; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(107,107,107,.25); background: #fff; font-size: 1.5rem; cursor: pointer; color: var(--lr-encre); }
.lr-lecons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lr-lecons a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; background: #fff; border: 2px solid rgba(107,107,107,.15); border-radius: 18px; color: var(--lr-encre); text-decoration: none; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.lr-lecons a:hover { border-color: var(--lr-orange); }
.lr-lecons .lr-puce { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(107,107,107,.25); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.lr-lecons .lr-lue .lr-puce { background: var(--lr-menthe-fonce); border-color: var(--lr-menthe-fonce); }
.lr-lecons .lr-suivante { border-color: var(--lr-orange); background: #FFF3EC; }
.lr-lecons .lr-min { margin-left: auto; flex-shrink: 0; font-size: .9rem; color: var(--lr-gris); font-weight: 600; }

.lr-jeu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overscroll-behavior: contain; z-index: 95; background: var(--lr-creme); overflow-y: auto; animation: lr-apparait .2s ease-out; }
.lr-jeu-cadre { max-width: 36rem; margin: 0 auto; padding: 16px 16px 40px; min-height: 100%; display: flex; flex-direction: column; }
.lr-jeu-haut { display: flex; align-items: center; gap: 12px; }
.lr-points { flex: 1; display: flex; gap: 8px; }
.lr-points i { flex: 1; height: 14px; border-radius: 99px; background: #E9E3DB; transition: background .3s; }
.lr-points i.lr-ok { background: var(--lr-menthe); }
.lr-points i.lr-pas { background: var(--lr-or); }
.lr-points i.lr-maintenant { background: var(--lr-orange); }
.lr-son { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(107,107,107,.25); background: #fff; font-size: 1.4rem; cursor: pointer; flex-shrink: 0; }
.lr-question { text-align: center; padding-top: 18px; flex: 1; display: flex; flex-direction: column; }
.lr-q-titre { font-family: 'Urbanist', system-ui, sans-serif; font-weight: 900; font-size: 1.8rem; font-size: clamp(1.6rem, 6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 16px; }
.lr-q-image { width: 170px; height: 170px; margin: 0 auto 18px; display: block; animation: lr-pop .35s cubic-bezier(.2,1.6,.4,1); }
.lr-q-phrase { font-size: 1.35rem; line-height: 1.45; background: #fff; border: 2px solid rgba(107,107,107,.15); border-radius: 22px; padding: 18px 20px; margin: 0 0 18px; text-align: left; animation: lr-pop .35s cubic-bezier(.2,1.6,.4,1); }
.lr-q-phrase mark { display: inline-block; min-width: 3.2em; text-align: center; background: var(--lr-rose); color: var(--lr-orange-fonce); border-bottom: 3px solid var(--lr-orange); border-radius: 8px 8px 2px 2px; padding: 0 6px; font-weight: 900; }
.lr-choix-liste { display: grid; gap: 12px; }
.lr-choix { min-height: 68px; padding: 14px 18px; border-radius: 20px; border: 3px solid rgba(107,107,107,.22); background: #fff; font: inherit; font-size: 1.3rem; font-weight: 800; color: var(--lr-encre); cursor: pointer; box-shadow: 0 5px 0 rgba(31,27,22,.1); transition: transform .1s; }
.lr-choix:hover:not([disabled]) { border-color: var(--lr-orange); }
.lr-choix:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 2px 0 rgba(31,27,22,.1); }
.lr-choix[disabled] { cursor: default; }
.lr-choix.lr-bon { background: #EAF9F1; border-color: var(--lr-menthe-fonce); color: #135c37; animation: lr-pop .35s; }
.lr-choix.lr-faux { background: #FFF6EC; border-color: var(--lr-or); color: #7a5a35; animation: lr-non .35s; }
.lr-choix.lr-pale { opacity: .45; }
.lr-retour { margin-top: 16px; border-radius: 22px; padding: 16px 18px; text-align: left; animation: lr-monte .25s cubic-bezier(.2,.8,.2,1); }
.lr-retour.lr-oui { background: #EAF9F1; border: 2px solid rgba(31,138,85,.35); }
.lr-retour.lr-non { background: #FFF6EC; border: 2px solid rgba(212,165,116,.6); }
.lr-retour strong { display: block; font-size: 1.35rem; font-weight: 900; margin-bottom: 4px; }
.lr-retour p { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.lr-retour .lr-btn { margin-top: 14px; }

.lr-fin { text-align: center; padding-top: 26px; }
.lr-trophee { font-size: 5.5rem; line-height: 1; animation: lr-pop .5s cubic-bezier(.2,1.6,.4,1); }
.lr-fin-etoiles { font-family: 'Urbanist', system-ui, sans-serif; font-size: 3rem; font-weight: 900; margin: 10px 0 0; }
.lr-fin-flamme { display: inline-block; margin-top: 14px; background: #FFF3EC; border: 2px solid rgba(255,107,53,.4); border-radius: 99px; padding: 10px 20px; font-weight: 900; font-size: 1.2rem; }
.lr-fin .lr-btn { margin-top: 14px; }
.lr-monte-niveau { margin-top: 18px; background: linear-gradient(135deg, #FFF3EC, #FFE0DA); border-radius: 22px; padding: 16px; font-size: 1.2rem; font-weight: 800; animation: lr-pop .5s .3s both cubic-bezier(.2,1.6,.4,1); }

.lr-toast { position: fixed; left: 50%; bottom: 24px; z-index: 99; transform: translateX(-50%); background: var(--lr-marine); color: #fff; padding: 14px 22px; border-radius: 22px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: lr-monte .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 32px); text-align: center; }
.lr-confettis { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
.lr-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.lr-bloque { overflow: hidden; }
/* Le bouton pour le lecteur d'écran : hors de la vue, il apparaît dès qu'il reçoit le focus. */
.lr-saut { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lr-saut:focus { position: static; width: 100%; height: auto; display: block; margin: 0 0 12px; padding: 14px 18px; min-height: 56px; background: var(--lr-marine); color: #fff; border: 0; border-radius: 18px; font: inherit; font-size: 1.1rem; font-weight: 800; text-align: left; outline: 4px solid var(--lr-orange-fonce); outline-offset: 2px; }

@keyframes lr-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes lr-monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lr-pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
@keyframes lr-non { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

@media (min-width: 640px) {
    .lr { padding-top: 40px; }
    .lr-tableau { grid-template-columns: 1fr 1fr 2fr; }
    .lr-niveau { grid-column: auto; }
    .lr-voile { align-items: center; }
    .lr-tiroir { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .lr *, .lr-jeu *, .lr-voile, .lr-tiroir, .lr-jeu, .lr-toast { animation: none !important; transition: none !important; }
}

/* ── Le mode « pas à pas » des leçons (livre-pas-a-pas.js) ── */
.lp-ouvrir-bloc { margin: 4px 0 20px; }
.lp-ouvrir { min-height: 64px; font-size: 1.25rem; }
.lp-ouvrir-aide { margin: 8px 0 0; text-align: center; font-size: .95rem; color: var(--lr-gris); }
.lp-barre { flex: 1; height: 14px; border-radius: 99px; background: #E9E3DB; overflow: hidden; }
.lp-barre i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--lr-menthe), var(--lr-menthe-fonce)); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.lp-scene { text-align: center; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.lp-num { margin: 0; font-weight: 900; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lr-menthe-fonce); }
.lp-etape { margin: 0; text-align: left; font-size: 1.45rem; font-size: clamp(1.35rem, 5.2vw, 1.7rem); line-height: 1.45; font-weight: 600; background: #fff; border: 2px solid rgba(107,107,107,.15); border-radius: 24px; padding: 20px 22px; animation: lr-pop .3s cubic-bezier(.2,1.6,.4,1); }
.lp-etape:focus, .lp-scene .lr-q-titre:focus { outline: none; }
.lp-bulle { margin: 0; text-align: left; background: #fff; border: 2px solid rgba(107,107,107,.15); border-radius: 22px; padding: 16px 18px; font-size: 1.15rem; line-height: 1.5; }
.lp-bulle strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.lp-bulle p { margin: 0; }
.lp-resume { font-weight: 600; font-size: 1.25rem; }
.lp-centre { text-align: center; }
.lp-visuels { text-align: left; }
.lp-ecouter { display: flex; justify-content: center; }
.lp-bloque { text-align: left; background: #FFFAF5; border: 2px dashed rgba(107,107,107,.3); border-radius: 18px; padding: 4px 16px; }
.lp-bloque summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; padding: 10px 0; min-height: 44px; }
.lp-bloque p { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.5; }
.lp-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; text-align: left; }
.lp-liste li { border-radius: 18px; padding: 14px 16px; font-size: 1.1rem; line-height: 1.5; }
.lp-secu li { background: #FFF3EC; border: 2px solid rgba(230,74,25,.3); }
.lp-astuces li { background: #EAF9F1; border: 2px solid rgba(31,138,85,.3); }
.lp-nav { display: flex; gap: 10px; margin-top: 6px; }
.lp-nav .lp-suite { flex: 1; }
.lp-nav-fin { flex-direction: column; }
.lp-fin-bloc { text-align: left; margin-top: 0 !important; }
@media (prefers-reduced-motion: reduce) { .lp-etape, .lp-barre i { animation: none !important; transition: none !important; } }

/* ── Les cartes du glossaire et de l'imagier (lecteurs-cartes.js) ── */
.lc-bloc { margin: 26px 0 28px; }
.lc-etiquette { text-align: center; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 900; color: var(--lr-marine); margin: 0 0 10px; }
.lc-carte-jour { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 190px; padding: 22px 18px; border-radius: 28px; border: 2px solid rgba(230,74,25,.25); background: linear-gradient(135deg, #FFF3EC, #FFE0DA); font: inherit; color: var(--lr-encre); cursor: pointer; box-shadow: 0 10px 28px rgba(46,64,87,.1); animation: lc-flip .35s ease-out; }
.lc-carte-jour.lc-retournee { background: #fff; border-color: rgba(31,138,85,.4); text-align: left; align-items: stretch; animation: lc-flip .35s ease-out; }
.lc-carte-jour:focus-visible { outline: 4px solid var(--lr-marine); outline-offset: 3px; }
@keyframes lc-flip { from { transform: perspective(800px) rotateY(80deg); opacity: .4; } to { transform: none; opacity: 1; } }
.lc-recto { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lc-emoji { font-size: 4rem; line-height: 1; }
.lc-image { width: 120px; height: 120px; }
.lc-mot { font-family: 'Urbanist', system-ui, sans-serif; font-weight: 900; font-size: 2rem; font-size: clamp(1.8rem, 7vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.lc-sous { font-size: .9rem; font-weight: 800; color: var(--lr-marine); background: rgba(255,255,255,.7); border-radius: 99px; padding: 2px 12px; }
.lc-indice { font-size: .95rem; color: var(--lr-gris); font-weight: 700; }
.lc-verso { text-align: left; }
.lc-verso-titre { margin: 0 0 6px; font-family: 'Urbanist', system-ui, sans-serif; font-weight: 900; font-size: 1.5rem; }
.lc-verso-texte { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.lc-verso-plus { margin: 10px 0 0; font-size: 1rem; line-height: 1.45; color: rgba(31,27,22,.75); }
.lc-verso-jeu { background: #fff; border: 2px solid rgba(31,138,85,.35); border-radius: 24px; padding: 18px 20px; animation: lc-flip .35s ease-out; }
.lc-verso-jeu:focus { outline: none; }
.lc-recto.lc-grand { background: linear-gradient(135deg, #FFF3EC, #FFE0DA); border: 2px solid rgba(230,74,25,.25); border-radius: 28px; padding: 26px 16px; }
.lc-reponses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-jeu { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .lc-carte-jour, .lc-verso-jeu { animation: none !important; } }

/* ── Le menu commun de l'espace lecteurs (lecteurs-menu.js) ── */
.lm-menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,250,245,.97); border-top: 1px solid rgba(107,107,107,.18); box-shadow: 0 -6px 20px rgba(46,64,87,.08); padding-bottom: env(safe-area-inset-bottom, 0); }
.lm-liste { list-style: none; margin: 0 auto; padding: 4px 4px; max-width: 40rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lm-onglet { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 60px; border-radius: 16px; color: var(--lr-gris); text-decoration: none; font-weight: 800; font-size: 1rem; -webkit-tap-highlight-color: transparent; }
.lm-onglet:hover { color: var(--lr-encre); }
.lm-onglet:focus-visible { outline: 3px solid var(--lr-marine); outline-offset: -3px; }
.lm-emoji { font-size: 1.5rem; line-height: 1.1; filter: grayscale(.6); opacity: .75; }
.lm-nom { overflow-wrap: anywhere; text-align: center; line-height: 1.1; }
.lm-actif { color: #B83A0E; background: #FFF0E8; }
.lm-actif .lm-emoji { filter: none; opacity: 1; }
.lm-badge { position: absolute; top: 2px; right: 4%; font-size: .78rem; font-weight: 900; color: #fff; background: #E64A19; border-radius: 99px; padding: 1px 5px; }
/* Ce qui était posé en bas de l'écran remonte au-dessus du menu. */
body.lm-avec-menu { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
body.lm-avec-menu .yz-a11y { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
/* Le bouton d'appel flottant prenait la place du contenu au-dessus du menu : sur ces pages, l'appel
   passe dans l'en-tête (icône 📞, le numéro reste lu par les lecteurs d'écran). */
body.lm-avec-menu > a.fixed[href^="tel:"] { display: none !important; }
body.lm-avec-menu header a[href^="tel:"] { display: inline-flex !important; font-size: 0 !important; padding: 10px 14px !important; min-height: 44px; }
body.lm-avec-menu header a[href^="tel:"]::before { content: "📞"; font-size: 1.25rem; line-height: 1; }
@media (min-width: 768px) { body.lm-avec-menu header a[href^="tel:"] { font-size: .875rem !important; padding: 12px 20px !important; } body.lm-avec-menu header a[href^="tel:"]::before { content: none; } }
body.lm-avec-menu .lr-toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media print { .lm-menu { display: none !important; } }

/* Le guide : dans une leçon, le bandeau d'accueil se retire (livre-cours.js, body.lc-dans-lecon). */
body.lc-dans-lecon #guide-accueil { display: none; }
/* Le choix iPhone / Android du premier écran. */
.lr-plateforme { margin-top: 4px; }
.lr-plateforme-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.lr-tuile-petite { min-height: 56px; padding: 8px; font-size: 1rem; justify-content: center; text-align: center; }
.lr-depuis { margin-bottom: 16px; }
/* Vieux iPhone (pas de gap en flex avant iOS 14.5, et @supports ne sait pas le détecter) : des
   marges, qui marchent partout, à la place du gap. */
.lp-nav { gap: 0; }
.lp-nav > * + * { margin-left: 10px; }
.lp-nav-fin > * + * { margin-left: 0; margin-top: 10px; }
/* La section « Les leçons en ligne » de /lecteurs répète la route : retirée quand le jeu tourne. */
body.lr-jeu-actif .lr-seulement-sans-jeu { display: none; }
/* Premier écran de /lecteurs : le titre d'accueil se retire, la question tient dans l'écran. */
body.lr-premier-ecran .lr-sur, body.lr-premier-ecran .lr-h1 { display: none; }
body.lr-premier-ecran .lr { padding-top: 14px; }
body.lr-premier-ecran .lr-carte { margin-top: 0; padding: 18px; }
/* L'appli « Mon livre » sur l'écran d'accueil. */
.lr-installer { margin-bottom: 8px; }
.lr-installer-icone { display: block; width: 96px; height: 96px; border-radius: 22px; margin: 4px auto 14px; box-shadow: 0 8px 20px rgba(31,27,22,.25); }
.lr-installer-etapes { list-style: decimal; margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 1.1rem; line-height: 1.5; }
.lr-installer-prop { margin-top: 16px; text-align: left; }

