/* Le guide public du jeu (/guide/). Des pages a lire, servies avec le site et
   lisibles sans compte : c'est ce que Google indexe en plus de la vitrine.
   Un seul aspect, le sombre du jeu : la page a ses couleurs, elle ne suit pas
   le theme de l'appareil. */
@font-face {
    font-family: Cinzel; font-weight: 400 900; font-display: swap;
    src: url('/assets/polices/cinzel-latin.woff2') format('woff2');
}
:root {
    --fond: #14100b;
    --fond-2: #1d170f;
    --cadre: #3d3020;
    --cadre-or: #7a5d2a;
    --texte: #ecdfc4;
    --texte-doux: #c3b394;
    --discret: #9a8a6c;
    --or: #e2bc66;
    --or-vif: #f3d68c;
    --rouge: #c8604a;
    --titre: Cinzel, Georgia, 'Times New Roman', serif;
    --lecture: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--fond); color: var(--texte);
    font: 17px/1.65 var(--lecture);
    -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-vif); text-underline-offset: 3px; }
a:hover { color: #fff1c6; }

/* --- la barre du haut --- */
.gd-barre {
    position: sticky; top: 0; z-index: 5;
    background: rgba(20, 16, 11, 0.94); backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--cadre);
}
.gd-barre-in {
    max-width: 1080px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; gap: 14px;
}
.gd-marque {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    font-family: var(--titre); font-weight: 700; color: var(--or); letter-spacing: 0.04em;
    white-space: nowrap;
}
.gd-marque img { width: 30px; height: 30px; }
.gd-barre-lien { margin-left: auto; color: var(--texte-doux); text-decoration: none; font-size: 0.92rem; white-space: nowrap; }
.gd-jouer {
    display: inline-block; padding: 9px 18px; border-radius: 8px; text-decoration: none;
    font-family: var(--titre); font-weight: 700; letter-spacing: 0.05em; font-size: 0.9rem;
    color: #1b1209; background: linear-gradient(180deg, #f0cf7a, #c39a3e);
    border: 1px solid #f7e2a6; box-shadow: 0 4px 14px rgba(212, 168, 79, 0.25);
    white-space: nowrap;
}
.gd-jouer:hover { color: #1b1209; filter: brightness(1.08); }
@media (max-width: 560px) {
    .gd-barre-lien { display: none; }
    .gd-jouer { margin-left: auto; padding: 8px 12px; font-size: 0.8rem; }
    .gd-marque span { font-size: 0.95rem; }
}

/* --- le haut d'une page --- */
.gd-tete { position: relative; overflow: hidden; border-bottom: 1px solid var(--cadre); }
.gd-tete picture, .gd-tete > img { position: absolute; inset: 0; }
.gd-tete picture img, .gd-tete > img { width: 100%; height: 100%; object-fit: cover; }
.gd-tete::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,16,11,0.35) 0%, rgba(20,16,11,0.75) 55%, var(--fond) 100%);
}
.gd-tete-in {
    position: relative; z-index: 1; max-width: 820px; margin: 0 auto;
    padding: 96px 16px 34px;
}
.gd-fil { font-size: 0.85rem; color: var(--texte-doux); margin: 0 0 10px; }
.gd-fil a { color: var(--texte-doux); }
.gd-tete h1 {
    font-family: var(--titre); font-weight: 700; color: var(--or-vif);
    font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 12px;
    text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.gd-chapeau { font-size: 1.12rem; color: var(--texte); margin: 0; max-width: 62ch; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

/* --- le texte --- */
.gd-page { max-width: 820px; margin: 0 auto; padding: 18px 16px 40px; }
.gd-sommaire {
    background: var(--fond-2); border: 1px solid var(--cadre); border-radius: 10px;
    padding: 14px 18px; margin: 10px 0 26px;
}
.gd-sommaire b { font-family: var(--titre); color: var(--or); font-size: 0.85rem; letter-spacing: 0.06em; }
.gd-sommaire ol { margin: 6px 0 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; }
.gd-sommaire li { margin: 2px 0; break-inside: avoid; }
.gd-page h2 {
    font-family: var(--titre); color: var(--or); font-size: 1.5rem; line-height: 1.25;
    margin: 38px 0 10px; text-wrap: balance; scroll-margin-top: 70px;
}
.gd-page h3 { font-size: 1.08rem; color: var(--or-vif); margin: 22px 0 6px; }
.gd-page p { margin: 0 0 14px; max-width: 68ch; }
.gd-page ul, .gd-page ol { margin: 0 0 16px; padding-left: 22px; max-width: 66ch; }
.gd-page li { margin: 4px 0; }
.gd-page strong { color: #fff3d6; }
.gd-figure {
    margin: 18px 0 24px; border: 1px solid var(--cadre); border-radius: 10px; overflow: hidden;
    background: var(--fond-2);
}
.gd-figure figcaption { padding: 9px 14px; font-size: 0.86rem; color: var(--discret); }
.gd-astuce {
    margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--or);
    background: rgba(226, 188, 102, 0.07); border-radius: 0 8px 8px 0;
}
.gd-astuce p:last-child { margin-bottom: 0; }
.gd-astuce b:first-child { font-family: var(--titre); color: var(--or); letter-spacing: 0.04em; }
.gd-tableau-cadre { overflow-x: auto; margin: 10px 0 20px; }
.gd-tableau { border-collapse: collapse; min-width: 100%; font-size: 0.95rem; }
.gd-tableau th, .gd-tableau td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--cadre); vertical-align: top; }
.gd-tableau th { color: var(--or); font-weight: 600; white-space: nowrap; }
.gd-etages { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 24px; }
.gd-etages figure { margin: 0; background: var(--fond-2); border: 1px solid var(--cadre); border-radius: 8px; overflow: hidden; }
.gd-etages figcaption { text-align: center; font-size: 0.82rem; color: var(--texte-doux); padding: 4px 6px 7px; }

/* --- l'appel a jouer et la suite --- */
.gd-appel {
    margin: 40px 0 10px; padding: 24px 20px; text-align: center; border-radius: 12px;
    background: linear-gradient(180deg, #241c12, #1b150e); border: 1px solid var(--cadre-or);
}
.gd-appel h2 { margin: 0 0 6px; }
.gd-appel p { margin: 0 auto 16px; color: var(--texte-doux); }
.gd-appel .gd-jouer { font-size: 1rem; padding: 12px 26px; }
.gd-suite { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 0; }
.gd-suite a {
    display: block; padding: 12px 14px; border: 1px solid var(--cadre); border-radius: 10px;
    background: var(--fond-2); text-decoration: none; color: var(--texte);
}
.gd-suite a:hover { border-color: var(--cadre-or); }
.gd-suite small { display: block; color: var(--discret); font-size: 0.8rem; }
.gd-suite b { font-family: var(--titre); color: var(--or); }
.gd-suite .gd-apres { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .gd-suite { grid-template-columns: 1fr; } .gd-suite .gd-apres { grid-column: 1; } }

/* --- le sommaire du guide (page d'accueil) --- */
.gd-chapitres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0 10px; }
.gd-chapitre {
    display: flex; flex-direction: column; text-decoration: none; color: var(--texte);
    background: var(--fond-2); border: 1px solid var(--cadre); border-radius: 12px; overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.gd-chapitre:hover { border-color: var(--cadre-or); color: var(--texte); transform: translateY(-2px); }
.gd-chapitre img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gd-chapitre div { padding: 12px 14px 16px; }
.gd-chapitre h2 { font-size: 1.12rem; margin: 0 0 6px; }
.gd-chapitre p { font-size: 0.93rem; color: var(--texte-doux); margin: 0; }
.gd-accueil .gd-page { max-width: 1080px; }
.gd-accueil .gd-intro { max-width: 70ch; }

/* --- le pied --- */
.gd-pied { border-top: 1px solid var(--cadre); color: var(--discret); font-size: 0.85rem; }
.gd-pied-in { max-width: 1080px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.gd-pied a { color: var(--texte-doux); }
.gd-pied nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gd-chapitre { transition: none; } }
