/* Pages légales : lecture confortable */
.legal-page { max-width: 820px; margin: 0 auto; padding: 10px clamp(16px, 5vw, 40px) 60px; line-height: 1.65; font-size: 15.5px; }
.legal-page h1 { font-size: clamp(28px, 5vw, 40px); margin: 10px 0 4px; }
.legal-page h2 { font-size: 21px; margin: 34px 0 8px; }
.legal-page h3 { font-size: 17px; margin: 20px 0 6px; }
.legal-page p, .legal-page li { margin: 6px 0; }
.legal-page ul { padding-left: 22px; }
.legal-page .updated { opacity: .7; font-size: 13px; margin-bottom: 18px; }
.legal-page .card { border: 1px solid var(--line, rgba(0,0,0,.15)); border-radius: 12px; padding: 14px 18px; margin: 12px 0; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.legal-page th, .legal-page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); vertical-align: top; }
.legal-page .tbl { overflow-x: auto; }
.legal-page a { text-decoration: underline; }
.legal-page mark.todo { background: #f6c84c; color: #2a1d08; padding: 0 4px; border-radius: 4px; }
.legal-page .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }

/* Pages Ressources (guides, systèmes, générateur, FAQ) — 12 nov. 2026 */
.res-nav { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.res-page { max-width: 880px; }
.res-page .lead { font-size: 17px; line-height: 1.6; margin: 8px 0 18px; }
.res-page h2 { scroll-margin-top: 80px; color: var(--gold, #f0b93a); font-family: var(--display, inherit); font-size: 27px; letter-spacing: .3px; }
.res-page h3 { color: var(--text, inherit); }
.res-page code, .res-page kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: rgba(0,0,0,.28); border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.res-page kbd { border-bottom-width: 2px; }
.toc-box { border: 2px solid var(--line, rgba(255,255,255,.25)); border-radius: var(--hand-c, 14px); padding: 12px 18px; margin: 14px 0 8px; background: rgba(0,0,0,.16); }
.toc-box b { display: block; color: var(--gold, #f0b93a); margin-bottom: 4px; }
.toc-box ol { columns: 2 240px; column-gap: 28px; margin: 0; padding-left: 22px; }
.toc-box li { margin: 3px 0; break-inside: avoid; }
.callout { border-left: 4px solid var(--gold, #f0b93a); background: rgba(240,185,58,.09); border-radius: 0 12px 12px 0; padding: 10px 16px; margin: 16px 0; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.cards4 .card { margin: 0; background: rgba(0,0,0,.16); border-radius: var(--hand-d, 12px); }
.cards4 .card b { color: var(--gold, #f0b93a); }
.cards4 .card p { margin: 6px 0 0; font-size: 14.5px; }
ol.steps { list-style: none; counter-reset: st; padding-left: 0; }
ol.steps > li { counter-increment: st; position: relative; padding: 4px 0 4px 44px; margin: 8px 0; }
ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 3px; width: 30px; height: 30px; border-radius: var(--hand-o, 50%); background: var(--gold, #f0b93a); color: var(--pen, #1d1813); font-weight: 700; display: grid; place-items: center; }
ul.checks { list-style: none; padding-left: 0; }
ul.checks > li { position: relative; padding-left: 28px; }
ul.checks > li::before { content: '✔'; position: absolute; left: 4px; color: var(--ok, #8bbd56); font-weight: 700; }
.res-page th { color: var(--gold, #f0b93a); }
.faq-item { border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: 12px; margin: 8px 0; background: rgba(0,0,0,.14); }
.faq-item summary { cursor: pointer; padding: 10px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 38px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 6px; font-size: 22px; color: var(--gold, #f0b93a); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 16px 12px; margin: 0; }
.sys-card { border: 2px solid var(--line, rgba(255,255,255,.2)); border-radius: var(--hand-a, 14px); padding: 6px 20px 12px; margin: 18px 0; background: rgba(0,0,0,.14); scroll-margin-top: 80px; }
.sys-card h2 { margin-top: 12px; }
.sys-dice { color: var(--gold, #f0b93a); }
.sys-stats { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0 !important; margin: 8px 0; }
.sys-stats li { margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(240,185,58,.12); border: 1px solid rgba(240,185,58,.35); font-size: 14px; }
ul.lieux { columns: 2 300px; column-gap: 28px; }
ul.lieux li { break-inside: avoid; }
.res-more { margin-top: 26px; font-size: 14px; line-height: 1.9; opacity: .9; }
.res-more b { margin-right: 6px; }
@media (max-width: 640px) {
  .res-page .lead { font-size: 16px; }
  .res-page h2 { font-size: 24px; }
  .res-nav a:not(.btn) { font-size: 14px; }
  .res-page code { white-space: normal; }
}
.res-page .lead { max-width: none; font-style: normal; }
@media (max-width: 960px) { .l-nav .res-nav > a.btn { display: inline-flex; } }

/* ── Carnet de MJ (13 nov. 2026) : pages de contenu, voix de Maître Gaspard, captures ── */
.res-page.carnet { max-width: 1200px; }
@media (min-width: 1180px) {
  .res-page.carnet { display: grid; grid-template-columns: minmax(0, 860px) 250px; column-gap: 48px; justify-content: center; }
  .res-page.carnet > * { grid-column: 1; }
  .res-page.carnet > .carnet-toc { grid-column: 2; grid-row: 1 / span 400; align-self: start; position: sticky; top: 90px; display: block; }
  .carnet-fab { display: none !important; }
  .res-page.carnet .toc-box { display: none; }
}
.carnet-toc { display: none; font-size: 14px; border-left: 2px dashed var(--line, rgba(255,255,255,.3)); padding: 4px 0 4px 16px; max-height: calc(100vh - 120px); overflow: auto; }
.carnet-toc b { display: block; font-family: var(--display, inherit); font-weight: 400; font-size: 19px; color: var(--gold, #f0b93a); margin-bottom: 6px; }
.carnet-toc ol, .carnet-fab ol { list-style: none; margin: 0; padding: 0; }
.carnet-toc li { margin: 2px 0; }
.carnet-toc a, .carnet-fab a { display: block; padding: 4px 8px; border-radius: 8px; color: var(--text-2, #d3e4d8); text-decoration: none !important; line-height: 1.35; }
.carnet-toc a:hover, .carnet-fab a:hover { color: var(--gold, #f0b93a); }
.carnet-toc a.on, .carnet-fab a.on { color: var(--gold, #f0b93a); background: rgba(240, 185, 58, .1); font-weight: 700; }
.carnet-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--gold, #f0b93a); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
.carnet-fab { position: fixed; left: 12px; bottom: 12px; z-index: 55; max-width: calc(100vw - 24px); }
.carnet-fab > summary { list-style: none; cursor: pointer; font-family: var(--display, inherit); font-size: 17px; padding: 8px 16px; border-radius: var(--hand-a, 14px); background: var(--panel, #12352f); border: 2px solid var(--gold, #f0b93a); color: var(--text, #f3e7cc); box-shadow: 3px 4px 0 rgba(0, 0, 0, .4); }
.carnet-fab > summary::-webkit-details-marker { display: none; }
.carnet-fab[open] > ol { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); max-height: 60vh; overflow: auto; background: #0f2f2a; border: 2px solid var(--line, rgba(255,255,255,.3)); border-radius: var(--hand-b, 14px); padding: 8px; box-shadow: 6px 8px 0 rgba(0, 0, 0, .4); }
/* la voix de l'aubergiste */
.aub { position: relative; margin: 20px 0 22px; padding: 16px 20px 14px 22px; border: 2px solid rgba(240, 185, 58, .55); border-radius: var(--hand-b, 14px); background: linear-gradient(135deg, rgba(240, 185, 58, .12), rgba(0, 0, 0, .12)); box-shadow: 5px 7px 0 rgba(0, 0, 0, .28); }
.aub::before { content: '\201C'; position: absolute; left: 12px; top: -8px; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: var(--gold, #f0b93a); opacity: .5; }
.aub > b:first-child { display: block; font-family: var(--display, inherit); font-weight: 400; font-size: 20px; color: var(--gold, #f0b93a); margin: 0 0 4px 22px; }
.aub p { margin: 6px 0; font-style: italic; }
.aub .sign { display: block; text-align: right; font-size: 13.5px; opacity: .8; font-style: normal; margin-top: 6px; }
.astuce, .critique { margin: 16px 0; padding: 10px 16px 10px 18px; border-radius: 0 12px 12px 0; }
.astuce { border-left: 4px solid #8bbd56; background: rgba(139, 189, 86, .1); }
.critique { border-left: 4px solid #e0645a; background: rgba(224, 100, 90, .1); }
.astuce > b:first-child, .critique > b:first-child { display: block; font-family: var(--display, inherit); font-weight: 400; font-size: 18px; margin-bottom: 2px; }
.astuce > b:first-child { color: #b6e38a; }
.critique > b:first-child { color: #f2958d; }
.astuce p, .critique p { margin: 4px 0; }
figure.shot { margin: 18px 0 22px; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: var(--hand-b, 14px); border: 3px solid var(--text, #f3e7cc); box-shadow: 8px 11px 0 rgba(0, 0, 0, .35); background: #0b0a10; cursor: zoom-in; }
figure.shot.tall img { max-width: 320px; margin: 0 auto; }
figure.shot.mid img { max-width: 560px; margin: 0 auto; }
figure.shot figcaption { font-size: 14px; color: var(--text-2, #d3e4d8); margin-top: 10px; text-align: center; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.shot-pair figure.shot { margin: 10px 0; }
@media (max-width: 640px) { .shot-pair { grid-template-columns: minmax(0, 1fr); } }
.carnet-zoom { position: fixed; inset: 0; z-index: 80; background: rgba(4, 10, 9, .9); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.carnet-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.chap-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 8px; }
.chap-nav a { display: block; padding: 12px 16px; border: 2px solid var(--line, rgba(255,255,255,.3)); border-radius: var(--hand-a, 14px); text-decoration: none !important; background: rgba(0, 0, 0, .16); }
.chap-nav a:hover { border-color: var(--gold, #f0b93a); }
.chap-nav small { display: block; font-size: 13px; color: var(--text-2, #d3e4d8); }
.chap-nav b { font-family: var(--display, inherit); font-weight: 400; font-size: 19px; color: var(--gold, #f0b93a); }
.chap-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .chap-nav { grid-template-columns: 1fr; } .chap-nav .next { grid-column: 1; } }
.see-also { font-size: 14.5px; margin: 6px 0 14px; padding: 6px 12px; border: 1px dashed var(--line, rgba(255,255,255,.3)); border-radius: 10px; }
.see-also b { color: var(--gold, #f0b93a); }
@media (max-width: 960px) { .l-nav .res-nav > a[href="/ressources"] { display: inline-flex !important; } }

/* (16 nov. 2026) blocs du guide one-shot : tableau, exemple, astuce */
.rs-table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.rs-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.rs-table th, .rs-table td { border: 1.5px solid var(--line, rgba(255,255,255,.25)); padding: 8px 10px; text-align: left; vertical-align: top; }
.rs-table th { background: rgba(0,0,0,.22); color: var(--gold-2, #f5c96a); font-weight: 700; }
.rs-example { border-left: 4px solid var(--gold, #e8b44a); background: rgba(0,0,0,.18); padding: 12px 18px; margin: 14px 0; border-radius: 0 var(--hand-a, 12px) var(--hand-a, 12px) 0; }
.rs-example > b { display: block; color: var(--gold-2, #f5c96a); margin-bottom: 4px; }
.rs-tip { border: 2px dashed var(--line-2, rgba(255,255,255,.2)); padding: 10px 14px; border-radius: var(--hand-c, 12px); }
.rs-pack-cta { margin: 14px 0 28px; } .rs-pack-cta .btn { white-space: normal; }

/* Maître Gaspard dans la marge (16 nov. 2026, dessin d'Adrien, demande de Cléo) : PC large = sous le sommaire, dans la marge de droite,
   qui suit la lecture ; écran plus étroit et téléphone = à droite du texte d'accueil, plus petit. */
.gaspard-side { float: right; width: 150px; margin: -6px 0 10px 18px; text-align: center; shape-outside: margin-box; }
.gaspard-side img { display: block; width: 100%; height: auto; filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, .25)); }
.gaspard-side figcaption { font-size: 12.5px; line-height: 1.25; opacity: .75; margin-top: 4px; font-style: italic; }
.carnet-toc.with-art { max-height: none; overflow: visible; }
.gaspard-side + .aub { display: flow-root; }
.gaspard-side + .aub + * { clear: right; }
@media (min-width: 1180px) { .res-page.art-in-toc > .gaspard-side { display: none; } }
.carnet-toc .gaspard-side { float: none; width: 100%; max-width: 230px; margin: 22px 0 0 -6px; }
.carnet-toc .gaspard-side img { animation: gaspard-in .6s ease-out both; }
@keyframes gaspard-in { from { opacity: 0; transform: translateY(8px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .gaspard-side { width: 92px; margin: 0 -6px 6px 10px; } .gaspard-side figcaption { display: none; } }
@media (prefers-reduced-motion: reduce) { .carnet-toc .gaspard-side img { animation: none; } }
/* (19 nov. 2026) menu unique sur toutes les pages : sur téléphone, les pages de contenu gardent le bouton « Jouer maintenant » (l'accueil a déjà ses boutons dans le haut de page) */
/* (26 nov. 2026, Cléo : un seul menu, celui de l'accueil) : sur téléphone, comme sur l'accueil, « Jouer maintenant » laisse la place à Connexion / Créer un compte */
