/* ============================================================================
   Règles de Cataclysme : habillage v5 du contenu généré depuis le livre.
   Le contenu HTML vient de scripts/build_regles.js et ne porte aucun style :
   tout est appliqué ici, pour que le livre reste un document d'impression
   (thème parchemin) et le site un document d'écran (thème sombre).
   Charte : docs/charte-graphique-cataclysme.md
   ========================================================================== */

.regles-page {
    max-width: 1200px;
    margin: 90px auto 4rem;
    padding: 0 1.25rem;
    font-family: 'Crimson Text', serif;
    color: var(--blue-100);
}

/* root_v2.css centre tous les h1/h2 du site et pousse 30px de marge sur les h2.
   Les règles se lisent en colonne de texte : tout est aligné à gauche. */
.regles-page h1,
.regles-page h2,
.regles-page h3,
.regles-page h4 {
    text-align: left;
    margin-top: 0;
}

/* ------------------------------------------------------------------ en-tête */

.regles-hero {
    background: var(--blue-900-transparent);
    border: 1px solid var(--blue-500);
    padding: 1.6rem 2rem 1.4rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.regles-hero::before,
.regles-hero::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.regles-hero::before {
    top: 8px; left: 8px;
    border-top: 2px solid rgba(245, 197, 66, 0.25);
    border-left: 2px solid rgba(245, 197, 66, 0.25);
}
.regles-hero::after {
    bottom: 8px; right: 8px;
    border-bottom: 2px solid rgba(245, 197, 66, 0.25);
    border-right: 2px solid rgba(245, 197, 66, 0.25);
}

.regles-hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.5rem;
}

.regles-hero .sous-titre {
    color: rgba(223, 234, 242, 0.7);
    font-size: 1.05rem;
    margin: 0;
    max-width: 60ch;
}

/* ---------------------------------------------------------------- recherche */

.regles-recherche {
    width: 100%;
    background: var(--blue-800);
    border: 1px solid var(--blue-500);
    border-radius: 0;
    padding: 0.75rem 1rem;
    color: var(--blue-100);
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1.25rem;
}
.regles-recherche::placeholder { color: rgba(223, 234, 242, 0.35); }
.regles-recherche:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.15);
}

.regles-compteur {
    font-size: 0.85rem;
    color: rgba(223, 234, 242, 0.45);
    margin-top: 0.5rem;
    min-height: 1.2em;
}

/* ------------------------------------------------------------- sommaire */

.regles-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 1rem;
}

/* Carte en colonne : le pied est poussé en bas par le chapô, ce qui aligne les
   pieds de toutes les cartes d'une même ligne même quand les textes diffèrent. */
.regles-carte {
    display: flex;
    flex-direction: column;
    /* Fond très opaque : l'image de fond du site est claire par endroits
       (coucher de soleil) et mangeait le contraste du texte. */
    background: rgba(0, 24, 44, 0.97);
    border: 1px solid var(--blue-500);
    padding: 1.1rem 1.25rem 0.9rem;
    text-decoration: none;
    color: inherit;
    min-height: 168px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.regles-carte:hover {
    border-color: rgba(245, 197, 66, 0.45);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 197, 66, 0.05);
    transform: translateY(-2px);
}

.regles-carte-tete {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.regles-carte-num {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(245, 197, 66, 0.35);
    flex: 0 0 auto;
    transition: color 0.2s ease;
}
.regles-carte:hover .regles-carte-num { color: var(--gold); }

.regles-carte h2 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-100);
    margin: 0 !important;
    line-height: 1.3;
}
.regles-carte:hover h2 { color: var(--gold); }

.regles-carte p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(223, 234, 242, 0.6);
    line-height: 1.5;
}

.regles-carte-sections {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(10, 61, 102, 0.6);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(87, 158, 217, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.regles-carte-fleche { color: rgba(245, 197, 66, 0.4); font-size: 0.85rem; }
.regles-carte:hover .regles-carte-fleche { color: var(--gold); }

/* --------------------------------------------------------- renvoi de chapitre */
.regles-renvoi {
    margin-top: 2rem;
    padding: 1.1rem 1.25rem;
    background: rgba(10, 61, 102, 0.3);
    border: 1px solid var(--blue-500);
    border-left: 3px solid var(--blue-200);
}
.regles-renvoi-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(87, 158, 217, 0.8);
    margin-bottom: 0.6rem;
}
.regles-renvoi-liens { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.regles-renvoi-liens a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--blue-800);
    border: 1px solid var(--blue-500);
    color: var(--blue-100);
    text-decoration: none;
    font-size: 0.98rem;
    transition: all 0.2s ease;
}
.regles-renvoi-liens a:hover {
    border-color: rgba(245, 197, 66, 0.5);
    color: var(--gold);
    background: rgba(245, 197, 66, 0.06);
}

/* ------------------------------------------------------- page de chapitre */

.regles-layout {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.regles-nav {
    width: 250px;
    flex: 0 0 250px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--blue-900-transparent);
    border: 1px solid var(--blue-500);
    padding: 1rem;
}

.regles-nav-titre {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(245, 197, 66, 0.15);
}

.regles-nav a {
    display: block;
    padding: 0.4rem 0.6rem;
    color: rgba(223, 234, 242, 0.7);
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}
.regles-nav a:hover {
    color: var(--blue-100);
    background: rgba(245, 197, 66, 0.05);
    border-left-color: rgba(245, 197, 66, 0.4);
}
.regles-nav a.actif {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(245, 197, 66, 0.08);
}

.regles-corps {
    flex: 1;
    min-width: 0;
    background: var(--blue-900-transparent);
    border: 1px solid var(--blue-500);
    padding: 2rem 2.25rem;
}

/* ------------------------------------------- contenu importé depuis le livre */

.regles-corps h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 2.25rem 0 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(245, 197, 66, 0.2);
    scroll-margin-top: 90px;
}
.regles-corps h3:first-child { margin-top: 0; }

.regles-corps h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-200);
    margin: 1.6rem 0 0.6rem;
    scroll-margin-top: 90px;
}

.regles-corps p {
    line-height: 1.7;
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
}

.regles-corps strong { color: var(--gold); font-weight: 600; }
.regles-corps em { color: rgba(223, 234, 242, 0.85); }

.regles-corps ul, .regles-corps ol { line-height: 1.7; padding-left: 1.4rem; }
.regles-corps li { margin-bottom: 0.35rem; }

/* Formules : le cœur mécanique, mis en évidence */
.regles-corps .formule {
    background: var(--blue-800);
    border: 1px solid rgba(245, 197, 66, 0.3);
    border-left: 3px solid var(--gold);
    padding: 0.9rem 1.1rem;
    margin: 1.1rem 0;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--blue-100);
    white-space: pre-line;
    overflow-x: auto;
}

/* Encadrés : commentaire de conception, ton plus bas que le corps */
.regles-corps .encadre {
    background: rgba(10, 61, 102, 0.35);
    border: 1px solid var(--blue-500);
    border-left: 3px solid var(--blue-200);
    padding: 1.1rem 1.25rem;
    margin: 1.4rem 0;
}
.regles-corps .encadre .titre {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-200);
    margin-bottom: 0.55rem;
}
.regles-corps .encadre p:last-child { margin-bottom: 0; }
.regles-corps .encadre p { font-size: 1rem; }

/* Tables : la plus grosse part du livre */
.regles-tableau-scroll { overflow-x: auto; margin: 1.1rem 0; }

.regles-corps table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 35, 64, 0.5);
    border: 1px solid var(--blue-500);
    font-size: 0.97rem;
}

.regles-corps caption {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-200);
    text-align: left;
    padding: 0 0 0.5rem;
}

.regles-corps thead th {
    background: var(--blue-800);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--blue-500);
    white-space: nowrap;
}

.regles-corps tbody td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(10, 61, 102, 0.45);
    vertical-align: top;
    line-height: 1.5;
}
.regles-corps tbody tr:last-child td { border-bottom: none; }
.regles-corps tbody tr:nth-child(even) { background: var(--blue-100-05); }
.regles-corps tbody tr:hover { background: rgba(245, 197, 66, 0.05); }

.regles-corps td.num, .regles-corps th.num { text-align: center; white-space: nowrap; }
.regles-corps tbody td.num { font-family: 'Cinzel', serif; color: var(--blue-100); }

/* --------------------------------------------------------- pied de chapitre */

.regles-pied {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.regles-lien-nav {
    flex: 1;
    background: var(--blue-900-transparent);
    border: 1px solid var(--blue-500);
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: var(--blue-100);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.regles-lien-nav:hover {
    border-color: rgba(245, 197, 66, 0.45);
    background: rgba(245, 197, 66, 0.04);
}
.regles-lien-nav .sens {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(87, 158, 217, 0.75);
    margin-bottom: 0.2rem;
}
.regles-lien-nav .titre { font-size: 1rem; }
.regles-lien-nav.suivant { text-align: right; }
.regles-lien-nav.vide { visibility: hidden; }

/* ------------------------------------------------------------- surlignage */

mark.regles-hit {
    background: rgba(245, 197, 66, 0.28);
    color: var(--blue-100);
    padding: 0 2px;
}

/* ============================================================================
   Outils : schémas et calculateurs propres au site, rendus après le chapitre.
   Ils ne viennent pas du livre et se distinguent visuellement du corps de règle.
   ========================================================================== */

.regles-outil {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(10, 61, 102, 0.25);
    border: 1px solid rgba(245, 197, 66, 0.28);
    border-top: 3px solid var(--gold);
}

.regles-outil-titre {
    font-family: 'Cinzel', serif;
    font-size: 1rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.6rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.regles-outil-intro {
    color: rgba(223, 234, 242, 0.72);
    margin-bottom: 1.1rem !important;
}

.regles-outil-note {
    margin: 1rem 0 0 !important;
    font-size: 0.92rem !important;
    color: rgba(223, 234, 242, 0.55);
    font-style: italic;
}

/* ------------------------------------------------------------- commandes */

.outil-controles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(10, 61, 102, 0.6);
}

.outil-champ {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-200);
}
.outil-champ input[type="range"] { width: 170px; accent-color: var(--gold); }
.outil-champ output {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
}
.outil-champ select {
    background: var(--blue-800);
    border: 1px solid var(--blue-500);
    color: var(--blue-100);
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
}
.outil-champ-cases {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    text-transform: none;
    letter-spacing: 0.02em;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    color: rgba(223, 234, 242, 0.85);
    cursor: pointer;
}
.outil-champ-cases input { accent-color: var(--gold); width: 16px; height: 16px; }

/* --------------------------------------------------------------- matrice */

/* Quatre colonnes imposées, et non auto-fit : c'est une matrice 4 × 4, un pôle
   qui passe à la ligne détruit ce que le schéma sert à montrer. Les libellés
   sont courts, la compression tient jusqu'aux petits écrans. */
.matrice {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.matrice-pole {
    border: 1px solid var(--blue-500);
    background: rgba(0, 35, 64, 0.55);
    display: flex;
    flex-direction: column;
}

.matrice-entete {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.55rem;
    color: var(--gold);
    background: var(--blue-800);
    border-bottom: 1px solid var(--blue-500);
}

.matrice-case {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid rgba(10, 61, 102, 0.5);
    transition: background 0.2s ease;
}
.matrice-case:hover { background: rgba(245, 197, 66, 0.05); }

.matrice-code {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(87, 158, 217, 0.85);
}
.matrice-nom {
    display: block;
    font-size: 1rem;
    color: var(--blue-100);
    line-height: 1.25;
}
.matrice-role {
    display: block;
    font-size: 0.85rem;
    color: rgba(223, 234, 242, 0.5);
    font-style: italic;
}

.matrice-pied {
    margin-top: auto;
    padding: 0.6rem 0.7rem;
    background: rgba(10, 61, 102, 0.45);
    border-top: 1px solid rgba(245, 197, 66, 0.2);
    text-align: center;
}
.matrice-pied-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(223, 234, 242, 0.45);
}
.matrice-pied-valeur {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
}
.matrice-pied-detail {
    display: block;
    font-size: 0.78rem;
    color: rgba(223, 234, 242, 0.45);
}

/* -------------------------------------------------------------- segments */

.seg-frise {
    display: flex;
    gap: 4px;
    margin: 0.5rem 0 1rem;
    flex-wrap: wrap;
}

.seg-case {
    flex: 1 1 60px;
    min-width: 52px;
    height: 62px;
    border: 1px solid var(--blue-500);
    background: var(--blue-800);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}
.seg-index {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(223, 234, 242, 0.75);
}
.seg-case-libre { border-style: dashed; opacity: 0.65; }
.seg-case-avance { border-color: rgba(245, 197, 66, 0.5); }

.seg-case-attaque .seg-index { color: var(--blue-900); }
.seg-attaque-0 { background: var(--gold); border-color: var(--gold); }
.seg-attaque-1 { background: var(--brand); border-color: var(--brand); }
.seg-attaque-2 { background: var(--blue-200); border-color: var(--blue-200); }
.seg-attaque-3 { background: var(--red-200); border-color: var(--red-200); }
.seg-attaque-4 { background: var(--yellow-200); border-color: var(--yellow-200); }

/* Le numéro d'attaque est écrit dans la case : cinq attaques pour quatre
   teintes, la couleur seule ne suffit plus à dire où commence chaque coup. */
.seg-numero {
    position: absolute;
    top: 3px;
    left: 5px;
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(0, 28, 51, 0.65);
}
.seg-case-libre .seg-numero { color: rgba(223, 234, 242, 0.35); }

.seg-resume {
    padding: 0.75rem 0.9rem;
    background: var(--blue-800);
    border-left: 3px solid var(--gold);
    font-size: 1rem;
    color: var(--blue-100);
}
.seg-resume strong { color: var(--gold); }

/* --------------------------------------------------- calculateur de caracs */

.calc-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 0.75rem;
}

.calc-pole {
    border: 1px solid var(--blue-500);
    background: rgba(0, 35, 64, 0.5);
}

.calc-pole-entete {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0.65rem;
    background: var(--blue-800);
    border-bottom: 1px solid var(--blue-500);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.calc-groupe { color: var(--blue-200); font-size: 0.85rem; }

.calc-ligne {
    display: grid;
    grid-template-columns: 1fr 58px 34px 34px;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid rgba(10, 61, 102, 0.45);
}
.calc-ligne:last-child { border-bottom: none; }
.calc-ligne label { font-size: 0.93rem; color: rgba(223, 234, 242, 0.85); }

.calc-ligne-entete {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background: rgba(10, 61, 102, 0.3);
}
.calc-ligne-entete span {
    font-family: 'Cinzel', serif;
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(223, 234, 242, 0.42);
    text-align: center;
}
.calc-ligne-entete span:last-child { text-align: right; }

.calc-valeur {
    background: var(--blue-800);
    border: 1px solid var(--blue-500);
    color: var(--blue-100);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.25rem;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
}
.calc-valeur:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.15);
}

.calc-mod {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-align: center;
    color: var(--blue-200);
}
.calc-cout {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-align: right;
    color: rgba(223, 234, 242, 0.6);
}
.calc-cout-rendu { color: var(--brand); }

.calc-budget {
    background: var(--blue-800);
    border: 1px solid var(--blue-500);
    padding: 0.6rem 0.85rem;
    min-width: 190px;
}
.calc-budget-ligne {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(223, 234, 242, 0.65);
    padding: 0.15rem 0;
}
.calc-budget-total {
    border-top: 1px solid rgba(245, 197, 66, 0.25);
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    color: var(--blue-100);
}
.calc-budget-total strong { color: var(--gold); font-family: 'Cinzel', serif; }

.calc-total {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
    border-left: 3px solid var(--blue-500);
    background: var(--blue-800);
}
.calc-total-ok { border-left-color: var(--brand); }
.calc-total-juste { border-left-color: var(--gold); }
.calc-total-depasse { border-left-color: var(--red-400); }
.calc-total-depasse strong { color: var(--red-200); }

/* ------------------------------------------------------------ déplacement */

.dep-table { width: 100%; border-collapse: collapse; }
.dep-table thead th {
    background: var(--blue-800);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: left;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--blue-500);
}
.dep-table td {
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid rgba(10, 61, 102, 0.45);
}
/* Cinzel n'a pas de bas-de-casse : réservé aux nombres, jamais aux libellés. */
.dep-table .num { text-align: center; font-family: 'Cinzel', serif; }
.dep-table .texte {
    text-align: center;
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: rgba(223, 234, 242, 0.6);
}
.dep-table tr.dep-interdit td { color: rgba(223, 234, 242, 0.32); }
.dep-table tr.dep-interdit td:first-child { text-decoration: line-through; }

/* --------------------------------------------------------------- responsive */


@media (max-width: 900px) {
    .regles-layout { flex-direction: column; }
    .regles-nav {
        width: 100%;
        flex: none;
        position: static;
        max-height: none;
    }
    .regles-corps { padding: 1.25rem; }
    .regles-page { margin-top: 75px; }
    .matrice, .calc-grille { grid-template-columns: 1fr; }
    .regles-pied { flex-direction: column; }
    .regles-lien-nav.suivant { text-align: left; }
    .regles-lien-nav.vide { display: none; }
    .outil-controles { gap: 0.9rem; }
    .outil-champ input[type="range"] { width: 100%; }
}
