/* ==========================================================================
   POLICES AUTO-HEBERGEES : Pirata One (titres) et Lora (texte), licence SIL OFL 1.1
   Fichiers dans templates/elluria_pure_refonte/fonts/
   ========================================================================== */
@font-face {
  font-family: 'Pirata One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 115%;
  src: url('../fonts/pirata-one-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lora-latin-700-normal.woff2') format('woff2');
}

/* ======================================================================== */
/* ELLURIA TÉNÉBRIS - elluria.css
   Feuille de style unique du site : fusion de toutes les anciennes feuilles.

   MODE D'EMPLOI
   - Cherche "PARTIE 08" (par exemple) pour aller directement à une partie.
   - L'ORDRE DES PARTIES COMPTE : quand deux règles se contredisent, la plus
     basse dans le fichier gagne. Ne déplace pas les parties les unes par rapport
     aux autres. Cet ordre est celui dans lequel index.php chargeait les feuilles.
   - Les couleurs et polices se changent dans la PARTIE 02 (variables), et nulle
     part ailleurs.
   - Les anciens fichiers (user.css, Menus.css...) ne sont plus chargés par le
     site : les modifier ne change plus rien. Modifie ce fichier à la place.

   SOMMAIRE
   PARTIE 01  template.css                 Structure générale : fond, bannière, menu, colonnes, boutons, pied de page, adaptation mobile
   PARTIE 02  variables.css                SOURCE UNIQUE des couleurs et des polices (variables --et-...)
   PARTIE 03  fiche-personnage.css         Fiche personnage (page A4, colonnes, statistiques, impression)
   PARTIE 04  codex-hub.css                Page d'accueil du Codex (cartes, sceaux de navigation)
   PARTIE 05  chapitre.css                 Pages chapitre (mise en page, bloc achat, lightbox, survol)
   PARTIE 06  securise.css                 Articles sécurisés réservés aux membres
   PARTIE 07  arcanes-terre-ciel.css       Fiches Royaumes, Villes, Encyclopédie du monde
   PARTIE 08  Menus.css                    Menu principal, panneau Mon espace, triptyque, bouton Menu mobile
   PARTIE 09  Gauche.css                   Modules sous l'article, colonne gauche, portrait du Scribe, aide à la navigation
   PARTIE 10  presentation.css             Articles de présentation (accueil, cycles, médias, codex)
   PARTIE 11  profil.css                   Pages profil, inscription, modification de compte
   PARTIE 12  plan-du-site.css             Plan du site (OSMap)
   PARTIE 13  Alignements.css              Couleurs par alignement moral (Lumière, Équilibre, Ombre)
   PARTIE 14  Acces-restreint.css          Badge cadenas des contenus à accès restreint
   PARTIE 15  codex-concept.css            Fiches Codex (atc-...), tuiles du hub, galerie
   PARTIE 16  Bestiaire.css                Fiches Codex et Bestiaire (créatures, infobox, concordance)
   PARTIE 17  audio-player.css             Lecteur audio du Journal d'Élise
   PARTIE 18  banniere-commercial.css      Bannières commerciales horizontale et verticale
   PARTIE 19  page-illustrations.css       Les Ateliers d'Élluria : illustration isolée et page de présentation
   PARTIE 20  Les-medias.css               Classeur à onglets (Médias, Ateliers)
   PARTIE 21  Page-de-soutien.css          Page de soutien
   PARTIE 22  Enquete-sandy.css            Page Enquête de Sandy (iframe)
   PARTIE 23  user.css                     Réglages finaux : accueil, Matomo, mobile, bouton de soutien, colonne gauche supprimée
   PARTIE 24  banniere-livre.css           Bannière du livre en vrai texte (.etb-), 2 mises en page selon la largeur
   ======================================================================== */

/* Polices Google (EB Garamond, Paytone One, Cinzel, Kalam) : elles ne sont plus
   chargées ici mais dans index.php (balise <link> + preconnect), ce qui évite
   une chaîne de téléchargements et accélère l'affichage. Pour changer de
   police, modifier l'adresse Google Fonts dans index.php. */


/* ######################################################################## */
/* PARTIE 01 / 23 : template.css
   Structure générale : fond, bannière, menu, colonnes, boutons, pied de page, adaptation mobile
   ######################################################################## */

/* Import des polices Google Fonts */
/* (le chargement des polices de ce fichier a été déplacé tout en haut de elluria.css) */

/* ==========================================================================
   ELLURIA PURE - VERSION AUGMENTÉE (ESTHÉTIQUE FANTASY)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* --- Conteneur principal --- */
    --largeur-site: 90%;
    --largeur-max: 1920px;
    --espace-haut-contenu: 20px;
    --gap-colonnes: 1%;
    /* --- Largeurs des colonnes --- */
    --largeur-gauche: 20%;
    --largeur-centre: 66%;
    --largeur-droite: 8%;
}

/* ==========================================================================
   1. L'ATMOSPHÈRE GÉNÉRALE
   ========================================================================== */
body.site {
    background-color: var(--et-abysse);
    background-image: url('/images/Elluria_tenebris/Template/arriere_plan_1.webp');
    background-repeat: repeat;
    background-position: top left;
    background-attachment: scroll;
    background-size: auto;
    color: var(--et-parchemin);
    font-family: var(--et-font-texte);
    font-size: 19px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. TYPOGRAPHIE
   ========================================================================== */
h1,
h2,
h3,
h4,
.tck-article-title {
    font-family: var(--et-font-display);
    color: var(--et-or);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Suppression de la lettrine */
.colonne-centre p:first-of-type::first-letter {
    all: unset;
}

/* ==========================================================================
   3. EN-TÊTE ET MENU
   ========================================================================== */

/* Bannière 100% */
.zone-banniere {
    position: relative;
    width: 100%;
    min-height: 25vh;
    max-height: 25vh;
    background: url('/images/Elluria_tenebris/Template/Banniere/Bureau_des_curiosites.webp') center center no-repeat;
    background-size: cover;
    border-bottom: 2px solid var(--et-or);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Logo aligné sur le conteneur 90% */
.zone-banniere .moduletable {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc((100% - var(--largeur-site)) / 2);
    width: 20%;
    z-index: 10;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.zone-banniere .moduletable img {
    width: 100%;
    height: auto;
    max-height: 22vh;
    object-fit: contain;
    display: block;
}

/* Menu 100% avec contenu centré à 90% */
.zone-menu {
    width: 100%;
    background: url('../images/barre-outils.png') center center repeat-x;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.5);
    border-bottom: 2px solid rgba(var(--et-or-rgb), 0.5);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-menu > div,
.zone-menu > nav,
.zone-menu > ul {
    width: var(--largeur-site);
    max-width: var(--largeur-max);
    display: flex;
    align-items: center;
}

/* ==========================================================================
   4. ZONE CENTRALE
   ========================================================================== */
.zone-centrale {
    width: var(--largeur-site);
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: var(--espace-haut-contenu) 0 50px 0;
    display: flex;
    gap: var(--gap-colonnes);
    align-items: flex-start;
}

/* Colonne centre */
.colonne-centre {
    flex: 1 1 0;
    max-width: none;
    background: var(--et-verre-fume);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--et-or-rgb), 0.4);
    border-radius: 15px 0 15px 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    min-width: 0;
}

/* Complément article */
.complement-article {
    flex-basis: 100%;
    width: 100%;
    background: var(--et-verre-fume);
    border: 1px solid rgba(var(--et-or-rgb), 0.3);
    border-radius: 10px 0 10px 0;
    padding: 20px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}

/* ==========================================================================
   5. COLONNES LATÉRALES
   ========================================================================== */
.colonne-gauche {
    flex: 0 0 var(--largeur-gauche);
    max-width: var(--largeur-gauche);
}

.colonne-droite {
    flex: 0 0 var(--largeur-droite);
    max-width: var(--largeur-droite);
}

.colonne-gauche h3,
.colonne-droite h3 {
    background: url('../images/Titre-de-module.png') no-repeat left center;
    background-size: contain;
    padding: 10px 10px 10px 45px;
    border-left: 3px solid var(--et-or);
}

/* ==========================================================================
   6. BOUTONS D'ACTION
   ========================================================================== */
.btn,
.readmore a {
    display: inline-block;
    background: linear-gradient(135deg, var(--et-or-sombre) 0%, var(--et-or-lumineux) 50%, var(--et-or-sombre) 100%);
    border: 1px solid var(--et-abysse);
    color: var(--et-abysse);
    font-weight: bold;
    border-radius: 5px;
    padding: 8px 20px;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover,
.readmore a:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px var(--et-or);
}

/* ==========================================================================
   7. PIED DE PAGE
   ========================================================================== */
.zone-pied-page {
    width: 100%;
    border-top: 2px solid rgba(var(--et-or-rgb), 0.4);
    background: rgba(var(--et-fond-pied-rgb), 0.9);
    padding: 40px 0 0 0;
}

.pied-pentaptyque,
.pied-copyright {
    width: var(--largeur-site);
    max-width: var(--largeur-max);
    margin-left: auto;
    margin-right: auto;
}

.pied-pentaptyque {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--gap-colonnes);
    margin-bottom: 30px;
}

.pied-col {
    flex: 1 1 0;
    min-width: 0;
    color: var(--et-parchemin);
    font-size: 0.9em;
}

.pied-col h3 {
    font-size: 1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.3);
}

.pied-col a {
    color: var(--et-or);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pied-col a:hover {
    color: var(--et-or-lumineux);
}

.pied-copyright {
    border-top: 1px solid rgba(var(--et-or-rgb), 0.2);
    padding: 15px 0;
    text-align: center;
    font-size: 0.8em;
    color: rgba(var(--et-parchemin-rgb), 0.6);
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

/* Tablette */
@media (max-width: 1024px) {
    :root {
        --largeur-site: 95%;
        --largeur-gauche: 25%;
        --largeur-centre: 60%;
        --largeur-droite: 12%;
        --gap-colonnes: 1%;
    }

    .pied-pentaptyque {
        flex-wrap: wrap;
    }

    .pied-col {
        flex: 0 0 calc(33.33% - var(--gap-colonnes));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --largeur-site: 100%;
        --gap-colonnes: 0;
    }

    .zone-banniere .moduletable {
        left: 2%;
        width: 35%;
    }

    .zone-centrale {
        flex-direction: column;
        padding: 10px 2% 30px 2%;
    }

    .colonne-gauche,
    .colonne-centre,
    .colonne-droite {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .zone-menu > div,
    .zone-menu > nav,
    .zone-menu > ul {
        flex-direction: column;
        width: 100%;
    }

    .pied-pentaptyque {
        flex-direction: column;
    }

    .pied-col {
        flex: 0 0 100%;
    }

    .zone-banniere {
        min-height: 15vh;
        max-height: 15vh;
    }

    h1,
    h2,
    h3 {
        letter-spacing: 0;
    }
}

/* ######################################################################## */
/* PARTIE 02 / 23 : variables.css
   SOURCE UNIQUE des couleurs et des polices (variables --et-...)
   ######################################################################## */

/* ==========================================================================
   ÉLLURIA TÉNÉBRIS - VARIABLES.CSS
   SOURCE UNIQUE des couleurs et des polices du site.
   Pour changer une couleur partout : la modifier ICI, et nulle part ailleurs.
   Convention : --nom = couleur ; --nom-rgb = même couleur en R, G, B
   (pour rgba(var(--nom-rgb), .5)).
   ========================================================================== */

/* Polices chargées ici : Cinzel et Kalam.
   EB Garamond et Paytone One sont chargées par template.css. */
/* (le chargement des polices de ce fichier a été déplacé tout en haut de elluria.css) */

:root {

    /* --- MARQUE DU SITE --- */
    --et-fond-profond: #0e1a2b;   /* Bleu nuit profond */
    --et-fond-profond-rgb: 14, 26, 43;
    --et-fond-moyen: #111925;   /* Bleu nuit moyen */
    --et-fond-moyen-rgb: 38, 57, 76;
    --et-parchemin: #cbb994;   /* Parchemin beige */
    --et-parchemin-rgb: 203, 185, 148;
    --et-or: #d6b161;   /* Or ancien */
    --et-or-rgb: 214, 177, 97;
    --et-clair: #f5f5f5;   /* Blanc cassé */
    --et-clair-rgb: 245, 245, 245;
    --et-or-vif: #f0cc6a;   /* Or lumineux au survol */
    --et-or-vif-rgb: 240, 204, 106;
    --et-bordure: #0c1624;   /* Bordure sombre */
    --et-bordure-rgb: 12, 22, 36;
    --et-abysse: #0a1422;   /* Bleu abysse (verre fumé, fenêtres) */
    --et-abysse-rgb: 10, 20, 34;
    --et-or-lumineux: #fcd06f;   /* Or très clair (dégradé des boutons) */
    --et-or-lumineux-rgb: 252, 208, 111;
    --et-or-sombre: #8c7542;   /* Or sombre (dégradé des boutons) */
    --et-or-sombre-rgb: 140, 117, 66;
    --et-fond-pied-rgb: 5, 10, 18;   /* Fond du pied de page */

    /* --- FICHES (générateurs de fiches) --- */
    --et-or-fiche: #c9a84c;   /* Or des fiches */
    --et-or-fiche-rgb: 201, 168, 76;
    --et-parchemin-fiche: #e4d9c8;   /* Parchemin clair des fiches */
    --et-parchemin-fiche-rgb: 228, 217, 200;
    --et-fiche-fond: #0c1220;   /* Fond général d'une fiche */
    --et-fiche-carte: #111928;   /* Fond des cartes */
    --et-fiche-carte-alt: #0f1622;   /* Fond des cartes, variante */
    --et-fiche-fond-noir: #080e18;   /* Fond des infobulles */
    --et-fiche-texte-discret: #8a7f6d;   /* Texte atténué */
    --et-fiche-texte-pale: #4a4438;   /* Texte très atténué */
    --et-fiche-section-fond-rgb: 30, 24, 10;   /* Fond de section par défaut */
    --et-fiche-avertissement-rgb: 180, 80, 80;   /* Puce d'avertissement */

    /* --- ALIGNEMENTS (accent, puis fond de section) --- */
    --et-align-lumiere-1: #e8ecd8;   /* Accent lumiere-1 */
    --et-align-lumiere-1-rgb: 232, 236, 216;
    --et-align-lumiere-1-fond-rgb: 38, 42, 34;   /* Fond de section lumiere-1 */
    /* lumiere-2 : l'accent est l'or des fiches (--et-or-fiche) */
    --et-align-lumiere-2-fond-rgb: 40, 30, 10;   /* Fond de section lumiere-2 */
    --et-align-lumiere-3: #4e9a4e;   /* Accent lumiere-3 */
    --et-align-lumiere-3-rgb: 78, 154, 78;
    --et-align-lumiere-3-fond-rgb: 18, 38, 18;   /* Fond de section lumiere-3 */
    --et-align-lumiere-4: #c87941;   /* Accent lumiere-4 */
    --et-align-lumiere-4-rgb: 200, 121, 65;
    --et-align-lumiere-4-fond-rgb: 46, 26, 10;   /* Fond de section lumiere-4 */
    --et-align-equilibre-1: #6a9a8a;   /* Accent equilibre-1 */
    --et-align-equilibre-1-rgb: 106, 154, 138;
    --et-align-equilibre-1-fond-rgb: 18, 34, 30;   /* Fond de section equilibre-1 */
    --et-align-equilibre-2: #7a7060;   /* Accent equilibre-2 */
    --et-align-equilibre-2-rgb: 122, 112, 96;
    --et-align-equilibre-2-fond-rgb: 22, 20, 16;   /* Fond de section equilibre-2 */
    --et-align-equilibre-3: #8a7050;   /* Accent equilibre-3 */
    --et-align-equilibre-3-rgb: 138, 112, 80;
    --et-align-equilibre-3-fond-rgb: 26, 20, 12;   /* Fond de section equilibre-3 */
    --et-align-ombre-1: #7a5060;   /* Accent ombre-1 */
    --et-align-ombre-1-rgb: 122, 80, 96;
    --et-align-ombre-1-fond-rgb: 22, 12, 16;   /* Fond de section ombre-1 */
    --et-align-ombre-2: #7a3a3a;   /* Accent ombre-2 */
    --et-align-ombre-2-rgb: 122, 58, 58;
    --et-align-ombre-2-fond-rgb: 22, 8, 8;   /* Fond de section ombre-2 */
    --et-align-ombre-3: #6858a8;   /* Accent ombre-3 */
    --et-align-ombre-3-rgb: 104, 88, 168;
    --et-align-ombre-3-fond-rgb: 10, 8, 22;   /* Fond de section ombre-3 */
    --et-align-ombre-4: #4a3858;   /* Accent ombre-4 */
    --et-align-ombre-4-rgb: 74, 56, 88;
    --et-align-ombre-4-fond-rgb: 6, 4, 12;   /* Fond de section ombre-4 */

    /* --- CODEX HUB --- */
    --et-hub-gris-fonce: #3a3428;
    --et-hub-gris-fonce-rgb: 58, 52, 40;
    --et-hub-gris-moyen: #5a5248;
    --et-hub-gris-clair: #9a9080;
    --et-hub-gris-neutre: #7a7060;   /* Même valeur que l'accent équilibre-2 */
    --et-hub-or-terne: #b09050;
    --et-hub-turquoise: #5bb8a0;   /* Badge ouvert */
    --et-hub-turquoise-rgb: 91, 184, 160;
    --et-hub-mauve: #7a7090;   /* Badge bientôt (texte) */
    --et-hub-mauve-fond-rgb: 120, 110, 150;   /* Badge bientôt (fond et bordure) */

    /* --- BESTIAIRE (types, dangerosité, bible) --- */
    --et-type-faune: #6aaa50;
    --et-type-faune-rgb: 106, 170, 80;
    --et-type-magique: #8a6faa;
    --et-type-magique-rgb: 138, 111, 170;
    --et-type-tenebres: #aa4040;
    --et-type-tenebres-rgb: 170, 64, 64;
    --et-type-vegetale: #5a9060;
    --et-type-vegetale-rgb: 90, 144, 96;
    --et-type-monture: #8a7040;
    --et-type-monture-rgb: 138, 112, 64;
    --et-type-hybride: #7a7a40;
    --et-type-hybride-rgb: 122, 122, 64;
    --et-type-entite: #6060aa;
    --et-type-entite-rgb: 96, 96, 170;
    --et-danger-1: #4e9a4e;   /* Crânes de dangerosité, niveau 1 */
    --et-danger-2: #8aaa40;   /* niveau 2 */
    --et-danger-3: #c9a84c;   /* niveau 3 */
    --et-danger-4: #c07040;   /* niveau 4 */
    --et-danger-5: #a03030;   /* niveau 5 */
    --et-bible-fond-rgb: 80, 10, 10;   /* Bloc bible, fond */
    --et-bible-titre: #c06060;   /* Bloc bible, titre */

    /* --- BADGES DE STATUT --- */
    --et-statut-complet-fond-rgb: 40, 80, 40;   /* Complet / canon */
    --et-statut-complet-bord: #3a6a3a;
    --et-statut-complet-texte: #80c080;
    --et-statut-ebauche-fond-rgb: 40, 40, 40;   /* Ébauche */
    --et-statut-ebauche-texte-rgb: 180, 170, 155;
    --et-statut-encours-fond-rgb: 80, 60, 20;   /* En cours */
    --et-statut-todo-fond-rgb: 139, 58, 42;   /* À faire */
    --et-statut-todo-bord: #6a3a2a;
    --et-statut-todo-texte: #c07060;

    /* --- MESSAGES (Membership Pro) --- */
    --et-erreur-fond-rgb: 180, 40, 40;   /* Erreur, fond et bordure */
    --et-erreur-texte: #e08080;
    --et-succes-fond-rgb: 40, 140, 80;   /* Succès, fond et bordure */
    --et-succes-texte: #80c890;
    --et-encre: #1a1a1a;   /* Texte sombre sur bouton doré */
    --et-parchemin-terne: #a99a76;   /* Libellés de formulaire */

    /* --- PAGES SPÉCIFIQUES --- */
    --et-media-texte: #bcad8d;   /* Classeur des médias, texte */
    --et-media-texte-rgb: 188, 173, 141;
    --et-media-onglet: #152436;   /* Classeur des médias, onglet */
    --et-media-panneau: transparent;   /* Classeur : fond des pages, transparent */
    --et-journal-brun: #5a3410;   /* Journal audio, texte */
    --et-journal-brun-rgb: 90, 52, 16;
    --et-journal-titre: #4a2a0e;   /* Journal audio, titre */
    --et-journal-date: #6b4423;   /* Journal audio, date */
    --et-journal-survol-rgb: 245, 237, 216;   /* Journal audio, survol */
    --et-elt-creme: #f2ece0;   /* Bannière commerciale, crème */
    --et-elt-creme-rgb: 242, 236, 224;
    --et-elt-or-survol: #e9cd92;   /* Bannière commerciale, or au survol */
    --et-elt-or-rgb: 217, 183, 121;   /* Bannière commerciale, or */
    --et-illu-titre: #e8d5a0;   /* Page illustrations, titre */
    --et-illu-texte-rgb: 220, 210, 190;   /* Page illustrations, texte */
    --et-etiquette-encre: #1a1206;   /* Étiquette de chapitre */
    --et-scribe-texte: #c8b99a;   /* Note du scribe */

    /* --- POLICES --- */
    --et-font-titre: 'Cinzel', Georgia, serif;   /* Titres et étiquettes */
    --et-font-titre-decore: 'Cinzel Decorative', 'Cinzel', serif;   /* Titres décoratifs */
    --et-font-texte: 'EB Garamond', Georgia, serif;   /* Texte courant */
    --et-font-display: 'Paytone One', sans-serif;   /* Gros titres du template */
    --et-font-manuscrit: 'Kalam', cursive;   /* Écriture manuscrite (journal audio) */

    /* --- VERRE FUMÉ --- */
    --et-verre-fume: rgba(var(--et-abysse-rgb), 0.85);

    /* --- ALIAS DE COMPATIBILITÉ ---
       Anciens noms de template.css, conservés au cas où une page ou un module
       les utiliserait encore. Ne pas s'en servir pour de nouveaux styles. */
    --bleu-abysse: var(--et-abysse);
    --or-ancien: var(--et-or);
    --or-lumineux: var(--et-or-lumineux);
    --ivoire-parchemin: var(--et-parchemin);
    --verre-fume: rgba(var(--et-abysse-rgb), 0.85);
}

/* ######################################################################## */
/* PARTIE 03 / 23 : fiche-personnage.css
   Fiche personnage (page A4, colonnes, statistiques, impression)
   ######################################################################## */

/* ─────────────────────────────────────────────────────────────
   ÉLLURIA TÉNÉBRIS — Fiche personnage.
   Structure d'origine (bandeau vertical + deux colonnes),
   posée sur une page A4 qui pagine sans jamais couper un bloc.
   ───────────────────────────────────────────────────────────── */

/* ==========================================================================
   SOMMAIRE (cherche le numero suivi d'un point, ex. "03.")
   01. BASE DE LA FICHE
   02. ALIGNEMENTS
   03. PAGINATION
   04. OSSATURE
   05. HAUTEUR DE LA FICHE ET DÉFILEMENT
   06. COLONNE GAUCHE
   07. IDENTITÉ ET PHYSIQUE
   08. STATISTIQUES
   09. SIGNES, TRAITS, MARQUES
   10. VIDE-POCHE
   11. COLONNE DROITE
   12. CHAPEAU D'INTRODUCTION
   13. RÉFÉRENCES ET TÉLÉCHARGEMENT PDF
   14. REPLI ÉTROIT (CONTAINER QUERY)
   15. IMPRESSION (A4)
   ========================================================================== */
/* ==========================================================================
   01. BASE DE LA FICHE
   Variables locales (--gold, --bg, --char-accent...), conteneur, réinitialisations.
   ========================================================================== */

.cs-sheet {
    --gold: #c9a84c;
    --gold-dim: rgba(201, 168, 76, .18);
    --gold-border: rgba(201, 168, 76, .28);
    --bg: #0c1220;
    --card: #111928;
    --card-alt: #0f1622;
    --text: #e4d9c8;
    --text-muted: #8a7f6d;
    --text-faint: #4a4438;
    --char-accent: #c9a84c;
    --char-accent-rgb: 201, 168, 76;
    --char-accent-dim: rgba(201, 168, 76, .22);
    --char-section-bg: rgba(30, 24, 10, .55);
    width: 100%;
    margin: 0 auto;
    container-type: inline-size;
    position: relative;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .01em;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--gold-border);
}

.cs-sheet,
.cs-sheet *,
.cs-sheet *::before,
.cs-sheet *::after {
    box-sizing: border-box;
}

.cs-sheet div,
.cs-sheet section {
    margin-top: 0;
    margin-bottom: 0;
}

.cs-sheet p {
    margin: 0 0 .7rem;
}

.cs-sheet p:last-child {
    margin-bottom: 0;
}

.cs-sheet img {
    max-width: 100%;
}

.cs-section-title,
.cs-stat-name,
.cs-id-label,
.cs-char-sub,
.cs-bio-section-name,
.cs-obj-title,
.cs-pocket-name,
.cs-document-meta,
.cs-chapeau-title,
.cs-refs-title {
    font-family: 'Cinzel', serif;
}

.cs-char-name {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
}

/* ==========================================================================
   02. ALIGNEMENTS
   Alignements
   Mêmes sélecteurs redéfinis dans Alignements.css (valeurs différentes) : ce dernier est chargé après et l'emporte.
   ========================================================================== */

.cs-sheet.cs-lumiere-1 {
    --char-accent: #e8ecd8;
    --char-accent-rgb: 232, 236, 216;
    --char-accent-dim: rgba(232, 236, 216, .18);
    --char-section-bg: rgba(38, 42, 34, .60);
}

.cs-sheet.cs-lumiere-2 {
    --char-accent: #c9a84c;
    --char-accent-rgb: 201, 168, 76;
    --char-accent-dim: rgba(201, 168, 76, .22);
    --char-section-bg: rgba(40, 30, 10, .55);
}

.cs-sheet.cs-lumiere-3 {
    --char-accent: #4e9a4e;
    --char-accent-rgb: 78, 154, 78;
    --char-accent-dim: rgba(78, 154, 78, .22);
    --char-section-bg: rgba(18, 38, 18, .55);
}

.cs-sheet.cs-lumiere-4 {
    --char-accent: #c87941;
    --char-accent-rgb: 200, 121, 65;
    --char-accent-dim: rgba(200, 121, 65, .22);
    --char-section-bg: rgba(46, 26, 10, .55);
}

.cs-sheet.cs-equilibre-1 {
    --char-accent: #6a9a8a;
    --char-accent-rgb: 106, 154, 138;
    --char-accent-dim: rgba(106, 154, 138, .22);
    --char-section-bg: rgba(18, 34, 30, .55);
}

.cs-sheet.cs-equilibre-2 {
    --char-accent: #7a7060;
    --char-accent-rgb: 122, 112, 96;
    --char-accent-dim: rgba(122, 112, 96, .22);
    --char-section-bg: rgba(22, 20, 16, .55);
}

.cs-sheet.cs-equilibre-3 {
    --char-accent: #8a7050;
    --char-accent-rgb: 138, 112, 80;
    --char-accent-dim: rgba(138, 112, 80, .22);
    --char-section-bg: rgba(26, 20, 12, .58);
}

.cs-sheet.cs-ombre-1 {
    --char-accent: #7a5060;
    --char-accent-rgb: 122, 80, 96;
    --char-accent-dim: rgba(122, 80, 96, .25);
    --char-section-bg: rgba(22, 12, 16, .65);
}

.cs-sheet.cs-ombre-2 {
    --char-accent: #7a3a3a;
    --char-accent-rgb: 122, 58, 58;
    --char-accent-dim: rgba(122, 58, 58, .25);
    --char-section-bg: rgba(22, 8, 8, .70);
}

.cs-sheet.cs-ombre-3 {
    --char-accent: #6858a8;
    --char-accent-rgb: 104, 88, 168;
    --char-accent-dim: rgba(104, 88, 168, .25);
    --char-section-bg: rgba(10, 8, 22, .75);
}

.cs-sheet.cs-ombre-4 {
    --char-accent: #4a3858;
    --char-accent-rgb: 74, 56, 88;
    --char-accent-dim: rgba(74, 56, 88, .30);
    --char-section-bg: rgba(6, 4, 12, .88);
}

/* ==========================================================================
   03. PAGINATION
   Pagination : aucun bloc coupé en deux
   ========================================================================== */

.cs-identity-block,
.cs-physique,
.cs-stats-col,
.cs-signs,
.cs-flat-section,
.cs-bio-section,
.cs-obj-item,
.cs-pensee-item,
.cs-stat-row,
.cs-id-row,
.cs-pocket-slot,
.cs-chapeau,
.cs-refs,
.cs-footer {
    page-break-inside: avoid;
    break-inside: avoid;
}

/* ==========================================================================
   04. OSSATURE
   Ossature
   ========================================================================== */

.cs-vertical-banner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    background: var(--char-section-bg);
    border-left: 1px solid var(--char-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cs-vertical-banner span {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--char-accent);
    letter-spacing: .22em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.cs-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--gold-border);
    margin-right: 32px;
}

/* ==========================================================================
   05. HAUTEUR DE LA FICHE ET DÉFILEMENT
   Hauteur de la fiche calée sur la colonne de gauche (écran)
   La colonne de droite a une hauteur définie nulle : elle ne participe
   donc pas au calcul de la rangée, qui est dictée par la gauche seule.
   min-height:100% la fait ensuite remplir exactement cette hauteur.
   ========================================================================== */

/* Le plancher de la rangée est calculé par le générateur d'après le
   nombre réel de sections de droite (style inline sur .cs-main-grid) :
   une fiche courte reste courte, une fiche riche reste lisible. */
.cs-right-col {
    height: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.cs-right-col > .cs-char-name-banner {
    flex: 0 0 auto;
}

/* Chaque section garde sa hauteur naturelle et ne fait que se contracter
   si la place manque : pas de section courte étirée sur 1000px. */
.cs-right-col > .cs-flat-section {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
}

.cs-right-col > .cs-flat-section > .cs-section-title {
    flex: 0 0 auto;
}

/* Chaque section défile indépendamment de ses voisines. */
.cs-bio-inner,
.cs-transfo-inner,
.cs-traits-grid,
.cs-document-inner,
.cs-obj-grid,
.cs-pensee-grid {
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--char-accent-rgb), .55) rgba(0, 0, 0, .25);
}

.cs-bio-inner::-webkit-scrollbar,
.cs-transfo-inner::-webkit-scrollbar,
.cs-traits-grid::-webkit-scrollbar,
.cs-document-inner::-webkit-scrollbar,
.cs-obj-grid::-webkit-scrollbar,
.cs-pensee-grid::-webkit-scrollbar {
    width: 6px;
}

.cs-bio-inner::-webkit-scrollbar-track,
.cs-transfo-inner::-webkit-scrollbar-track,
.cs-traits-grid::-webkit-scrollbar-track,
.cs-document-inner::-webkit-scrollbar-track,
.cs-obj-grid::-webkit-scrollbar-track,
.cs-pensee-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .25);
}

.cs-bio-inner::-webkit-scrollbar-thumb,
.cs-transfo-inner::-webkit-scrollbar-thumb,
.cs-traits-grid::-webkit-scrollbar-thumb,
.cs-document-inner::-webkit-scrollbar-thumb,
.cs-obj-grid::-webkit-scrollbar-thumb,
.cs-pensee-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--char-accent-rgb), .55);
    border-radius: 3px;
}

/* ==========================================================================
   06. COLONNE GAUCHE
   ========================================================================== */

.cs-left-col {
    border-right: 1px solid var(--gold-border);
    background: var(--card);
}

.cs-portrait {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 1px solid var(--gold-border);
}

.cs-section-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--char-section-bg);
    padding: 6px 16px;
    border-bottom: 1px solid rgba(201, 168, 76, .15);
    margin: 0 0 10px;
    display: block;
}

.cs-flat-section {
    border-bottom: 1px solid var(--gold-border);
}

.cs-flat-section:last-child {
    border-bottom: none;
}

/* ==========================================================================
   07. IDENTITÉ ET PHYSIQUE
   Identité & physique
   ========================================================================== */

.cs-identity-block {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--gold-border);
}

.cs-id-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin-bottom: 4px;
    padding: 0 16px;
}

.cs-id-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--gold);
    opacity: .75;
    white-space: nowrap;
    padding-top: 3px;
}

.cs-id-value {
    font-size: 15px;
    color: var(--text);
}

.cs-physique {
    border-bottom: 1px solid var(--gold-border);
    padding-bottom: 10px;
}

.cs-physique .cs-id-value {
    font-size: 13px;
    color: var(--text-muted);
}

.cs-physique-detail {
    padding: 4px 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   08. STATISTIQUES
   Statistiques
   ========================================================================== */

.cs-stats-col {
    border-bottom: 1px solid var(--gold-border);
    padding-bottom: 10px;
}

.cs-stats-list {
    padding: 0 16px;
}

.cs-stat-row {
    display: grid;
    grid-template-columns: 100px 1fr 26px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cs-stat-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .04em;
}

.cs-stat-bar-bg {
    height: 7px;
    background: rgba(0, 0, 0, .3);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
    display: block;
}

.cs-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--char-accent);
    width: var(--bar-val, 0%);
    display: block;
}

.cs-stat-val {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--char-accent);
    text-align: right;
}

.cs-stat-hidden .cs-stat-bar-fill {
    width: 0 !important;
}

.cs-stat-hidden .cs-stat-bar-bg {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .05) 3px, transparent 3px, transparent 7px);
}

.cs-stat-hidden .cs-stat-val {
    color: var(--text-faint);
    letter-spacing: .04em;
}

.cs-stat-hidden .cs-stat-name {
    letter-spacing: .20em;
    color: var(--text-faint);
}

/* ==========================================================================
   09. SIGNES, TRAITS, MARQUES
   Signes, traits, marques
   ========================================================================== */

.cs-signs {
    border-bottom: 1px solid var(--gold-border);
    padding-bottom: 12px;
}

.cs-signs-inner {
    padding: 0 16px;
}

.cs-sign-item {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 14px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.5;
}

.cs-sign-item::before {
    content: '◆';
    position: absolute;
    left: 0;
    font-size: 6px;
    top: 6px;
    color: var(--char-accent);
}

.cs-sign-frag::before {
    color: rgba(180, 80, 80, .85);
}

/* ==========================================================================
   10. VIDE-POCHE
   Vide-Poche : 3 icônes toujours visibles, infobulle au survol et au tap
   ========================================================================== */

.cs-pocket-row {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 2px 12px 12px;
    justify-content: space-between;
}

.cs-pocket-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.cs-pocket-chip {
    width: 46px;
    height: 46px;
    border: 1px solid var(--char-accent);
    border-radius: 50%;
    background: rgba(var(--char-accent-rgb), .08);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    padding: 0;
    font-family: inherit;
}

.cs-pocket-chip:focus {
    outline: 2px solid var(--char-accent);
    outline-offset: 2px;
}

.cs-pocket-name {
    font-size: 8px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Infobulle ancrée sur la rangée, jamais sur l'icône : elle reste
   dans la feuille quel que soit l'objet survolé (pas de débordement). */
.cs-pocket-tip {
    position: absolute;
    bottom: calc(100% - 4px);
    left: 0;
    right: 0;
    width: auto;
    background: #080e18;
    border: 1px solid var(--char-accent);
    padding: 10px 12px;
    z-index: 30;
    display: none;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .75);
}

.cs-pocket-slot:hover .cs-pocket-tip,
.cs-pocket-slot:focus-within .cs-pocket-tip {
    display: block;
}

.cs-pocket-tip-name {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gold);
    margin-bottom: 4px;
}

.cs-pocket-tip p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   11. COLONNE DROITE
   Colonne droite
   ========================================================================== */

.cs-char-name-banner {
    background: var(--char-section-bg);
    border-bottom: 1px solid var(--char-accent);
    padding: 11px 18px 9px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-char-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--char-accent);
    letter-spacing: .05em;
    line-height: 1;
}

.cs-char-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: .14em;
    margin-left: auto;
}

.cs-bio-inner,
.cs-transfo-inner {
    padding: 0 18px 12px;
}

.cs-bio-section {
    margin-bottom: 12px;
}

.cs-bio-section:last-child {
    margin-bottom: 0;
}

.cs-bio-section-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.cs-bio-section p,
.cs-transfo-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.cs-note-journal {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(201, 168, 76, .04);
    border-left: 2px solid rgba(201, 168, 76, .30);
}

.cs-note-journal .cs-bio-section-name {
    color: rgba(201, 168, 76, .55);
    font-size: 9px;
    letter-spacing: .18em;
}

.cs-note-journal p {
    font-size: 14px;
    font-style: italic;
    color: rgba(228, 217, 200, .60);
}

.cs-transformation,
.cs-traits {
    background: var(--card-alt);
}

.cs-transfo-section {
    margin-bottom: 10px;
}

.cs-transfo-section:last-child {
    margin-bottom: 0;
}

.cs-traits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 18px 14px;
}

.cs-document {
    background: rgba(var(--char-accent-rgb), .05);
}

.cs-document-inner {
    padding: 0 18px 14px;
}

.cs-document-meta {
    font-size: 9px;
    letter-spacing: .10em;
    color: var(--text-faint);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--char-accent-dim);
}

.cs-document-inner p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cs-document-inner p strong {
    color: var(--text);
}

.cs-obj-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 14px 12px;
}

.cs-obj-grid[data-cols="2"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cs-obj-grid[data-cols="3"] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.cs-obj-item {
    padding: 10px 12px;
    background: rgba(201, 168, 76, .03);
    border: 1px solid rgba(201, 168, 76, .10);
}

.cs-obj-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .08em;
    margin-bottom: 5px;
}

.cs-obj-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cs-pensee {
    background: var(--card-alt);
}

/* Grille qui suit le nombre réel de fragments : 1 → pleine largeur,
   2 → deux colonnes, 3 → trois, 4+ → repli sur plusieurs lignes. */
.cs-pensee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0 16px 14px;
}

.cs-pensee-item {
    padding-left: 8px;
    border-left: 1px solid rgba(var(--char-accent-rgb), .20);
}

.cs-pensee-item p {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* ==========================================================================
   12. CHAPEAU D'INTRODUCTION
   Chapeau d'introduction — hors zone verrouillée
   ========================================================================== */

.cs-chapeau {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-right: 32px;
    padding: 14px 18px;
    background: rgba(var(--char-accent-rgb), .05);
    border-bottom: 1px solid var(--char-accent-dim);
}

.cs-chapeau-icon {
    flex: 0 0 30px;
    height: 40px;
    border: 1px solid var(--char-accent);
    position: relative;
    background: rgba(0, 0, 0, .35);
}

.cs-chapeau-icon::before {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: 7px;
    height: 1px;
    background: var(--char-accent);
    box-shadow: 0 5px 0 var(--char-accent), 0 10px 0 var(--char-accent), 0 15px 0 rgba(var(--char-accent-rgb), .5), 0 20px 0 rgba(var(--char-accent-rgb), .5);
}

.cs-chapeau-body {
    flex: 1;
    min-width: 0;
}

.cs-chapeau-title {
    font-size: 10px;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--char-accent);
    margin-bottom: 6px;
}

.cs-chapeau-body p {
    font-size: 15px;
    color: var(--text-muted);
}

.cs-chapeau-warn {
    display: block;
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid var(--char-accent-dim);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: .10em;
    color: var(--gold);
}

/* ==========================================================================
   13. RÉFÉRENCES ET TÉLÉCHARGEMENT PDF
   Références — hors zone verrouillée, toujours cliquables
   ========================================================================== */

.cs-refs {
    margin-right: 32px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gold-border);
}

.cs-refs-title {
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.cs-refs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.cs-refs-list a {
    font-size: 14px;
    color: var(--char-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--char-accent-dim);
}

.cs-refs-list a:hover {
    border-bottom-color: var(--char-accent);
}

.cs-pdf-download {
    padding: 9px 16px;
    margin-right: 32px;
    border-bottom: 1px solid var(--gold-border);
    text-align: center;
}

.cs-pdf-download a {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: .18em;
    color: rgba(201, 168, 76, .50);
    text-decoration: none;
    padding: 6px 18px;
    border: 1px solid rgba(201, 168, 76, .18);
}

.cs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 46px 8px 16px;
    background: var(--char-section-bg);
    border-top: 1px solid var(--char-accent);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: .10em;
    color: var(--text-faint);
}

/* ==========================================================================
   14. REPLI ÉTROIT (CONTAINER QUERY)
   Repli étroit piloté par la largeur de la FEUILLE, pas du viewport :
   l'aperçu à l'échelle garde donc toujours la vraie mise en page A4.
   ========================================================================== */

@container (max-width: 540px) {
    .cs-main-grid {
        grid-template-columns: 1fr;
        margin-right: 0;
        min-height: 0 !important;
    }

    .cs-left-col {
        border-right: none;
        border-bottom: 1px solid var(--gold-border);
    }

    /* En pile verticale, chaque colonne retrouve sa hauteur naturelle. */
    .cs-right-col {
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .cs-right-col > .cs-flat-section {
        display: block;
        min-height: 0;
    }

    .cs-bio-inner,
    .cs-transfo-inner,
    .cs-traits-grid,
    .cs-document-inner,
    .cs-obj-grid,
    .cs-pensee-grid {
        overflow: visible;
        max-height: none;
        min-height: 0;
    }

    .cs-vertical-banner {
        display: none;
    }

    .cs-chapeau,
    .cs-refs,
    .cs-pdf-download {
        margin-right: 0;
    }

    .cs-traits-grid,
    .cs-pensee-grid {
        grid-template-columns: 1fr;
    }

    .cs-obj-grid[data-cols] {
        grid-template-columns: 1fr;
    }

    .cs-char-name {
        font-size: 19px;
    }

    .cs-footer {
        padding-right: 16px;
        flex-direction: column;
        gap: 3px;
        text-align: center;
    }
}

/* ==========================================================================
   15. IMPRESSION (A4)
   L'A4 n'existe qu'à l'impression : à l'écran la fiche est fluide,
   elle prend toute la largeur de son conteneur.
   ========================================================================== */

@media print {
    @page  {
        size: A4;
        margin: 12mm;
    }

    .cs-sheet {
        width: auto;
        border: none;
        font-size: 11.5pt;
    }

    .cs-pocket-tip {
        display: none;
    }

    /* Aucun contenu tronqué à l'impression : le défilement interne est annulé. */
    .cs-main-grid {
        align-items: start;
        min-height: 0 !important;
    }

    .cs-right-col {
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .cs-right-col > .cs-flat-section {
        display: block;
        min-height: 0;
    }

    .cs-bio-inner,
    .cs-transfo-inner,
    .cs-traits-grid,
    .cs-document-inner,
    .cs-obj-grid,
    .cs-pensee-grid {
        overflow: visible !important;
        max-height: none !important;
        min-height: 0 !important;
    }
}

/* ######################################################################## */
/* PARTIE 04 / 23 : codex-hub.css
   Page d'accueil du Codex (cartes, sceaux de navigation)
   ######################################################################## */

/* ============================================================
   ÉLLURIA TÉNÉBRIS — Codex d'Aotearoa
   Fichier : codex-hub.css
   Rôle    : Styles de la page hub du Codex
   ============================================================ */

/* ================================================================
   RESET ISOLÉ
   ================================================================ */
.codex-hub *,
.codex-hub *::before,
.codex-hub *::after {
    box-sizing: border-box;
}

.codex-hub a {
    text-decoration: none;
}

.codex-hub div,
.codex-hub p,
.codex-hub span {
    margin-top: 0;
    margin-bottom: 0;
}

/* ================================================================
   CONTENEUR RACINE
   ================================================================ */
.codex-hub {
    font-family: var(--et-font-texte);
    font-size: 26px;
    line-height: 1.5;
    color: var(--et-parchemin-fiche);
    max-width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   INTRO — VOIX DE L'ENQUÊTEUR
   ================================================================ */
.codex-intro {
    border-left: 2px solid rgba(var(--et-or-fiche-rgb), .35);
    padding: 4px 0 4px 22px;
    margin-bottom: 36px;
}

.codex-intro-label {
    display: block;
    font-family: var(--et-font-titre);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(var(--et-or-fiche-rgb), .45);
    margin: 0 0 16px;
}

.codex-intro p {
    font-size: 27px;
    line-height: 1.5;
    color: var(--et-hub-gris-neutre);
    margin: 0 0 14px;
    font-style: italic;
}

.codex-intro p:last-child {
    margin-bottom: 0;
}

.codex-intro em {
    color: var(--et-or-fiche);
    font-style: normal;
}

.codex-intro strong {
    color: var(--et-hub-or-terne);
    font-weight: 500;
}

.codex-illustrations-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(var(--et-or-fiche-rgb), .04);
    border: 1px solid rgba(var(--et-or-fiche-rgb), .12);
    border-radius: 6px;
    font-size: 23px;
    color: var(--et-hub-gris-moyen);
    font-style: italic;
    line-height: 1.5;
}

.codex-illustrations-note em {
    color: rgba(var(--et-or-fiche-rgb), .6);
    font-style: normal;
}

/* ================================================================
   PORTRAIT DU NARRATEUR DANS L'INTRO
   Le portrait flotte à gauche, le texte l'enveloppe. Sous 560px, il
   se centre au-dessus du texte. Pour le réduire : changer width et
   height ci-dessous (200px par défaut, défini dans Gauche.css).
   ================================================================ */
.codex-intro .narrateur-cadre {
    float: left;
    margin: 4px 26px 12px 0;
}

.codex-illustrations-note {
    clear: both;
}

@media (max-width: 560px) {
    .codex-intro .narrateur-cadre {
        float: none;
        margin: 0 auto 16px;
    }
}

/* ================================================================
   INTRO EN DEUX COLONNES
   Le texte se répartit sur deux colonnes ; l'étiquette et l'encadré
   des illustrations restent sur toute la largeur. Sous 860px, retour
   à une seule colonne.
   ================================================================ */
.codex-intro {
    column-count: 2;
    column-gap: 44px;
}

.codex-intro-label,
.codex-illustrations-note {
    column-span: all;
}

.codex-intro p {
    break-inside: avoid;
}

@media (max-width: 860px) {
    .codex-intro {
        column-count: 1;
    }
}

/* ================================================================
   SÉPARATEUR ORNEMENTAL
   ================================================================ */
.codex-sep {
    text-align: center;
    margin: 32px 0;
    color: rgba(var(--et-or-fiche-rgb), .25);
    letter-spacing: .5em;
    font-size: 11px;
    user-select: none;
}

/* ================================================================
   NAVIGATION — 3 SCEAUX D'ENTRÉE
   ================================================================ */
.codex-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.codex-nav-lien {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 14px;
    background: var(--et-fiche-carte-alt);
    border: 1px solid rgba(var(--et-or-fiche-rgb), .2);
    border-radius: 8px;
    text-align: center;
    color: var(--et-parchemin-fiche);
    text-decoration: none;
    overflow: hidden;
    transition: border-color .3s, transform .25s, box-shadow .3s;
}

.codex-nav-lien::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--et-or-fiche-rgb), .4), transparent);
}

.codex-nav-lien:hover {
    border-color: rgba(var(--et-or-fiche-rgb), .45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    color: var(--et-parchemin-fiche);
}

.codex-nav-lien.active {
    border-color: rgba(var(--et-or-fiche-rgb), .5);
    background: rgba(var(--et-or-fiche-rgb), .06);
}

.codex-nav-lien.active .codex-nav-titre {
    color: var(--et-or);
}

.codex-nav-sceau {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
    transition: transform .3s, filter .3s;
}

.codex-nav-lien:hover .codex-nav-sceau {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 6px 18px rgba(var(--et-or-fiche-rgb), .3));
}

.codex-nav-titre {
    font-family: var(--et-font-titre);
    font-size: 14px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--et-or-fiche);
}

.codex-nav-sous {
    font-family: var(--et-font-texte);
    font-size: 22px;
    color: var(--et-hub-gris-moyen);
    font-style: italic;
    line-height: 1.5;
    padding: 0 8px;
}

/* ================================================================
   TITRES DE RUBRIQUE
   ================================================================ */
.codex-rubrique-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--et-font-titre);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(var(--et-or-fiche-rgb), .45);
    margin: 0 0 14px;
}

.codex-rubrique-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(var(--et-or-fiche-rgb), .12);
}

/* ================================================================
   GRILLES DE CARTES
   ================================================================ */
.codex-card-img {
    object-position: center center;
}

.codex-card-img {
    height: 140px;
}

.codex-grid {
    align-items: stretch;
}

.codex-card {
    height: 100%;
}

/* ================================================================
   CARTES
   ================================================================ */
.codex-card {
    position: relative;
    display: block;
    padding: 18px 20px 16px;
    background: var(--et-fiche-carte-alt);
    border: 1px solid rgba(var(--et-or-fiche-rgb), .15);
    border-radius: 8px;
    overflow: hidden;
    color: var(--et-parchemin-fiche);
    transition: border-color .3s, transform .25s, box-shadow .3s;
}

.codex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, rgba(var(--et-or-fiche-rgb), .4)), transparent);
}

.codex-card:hover {
    border-color: rgba(var(--et-or-fiche-rgb), .45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    color: var(--et-parchemin-fiche);
    text-decoration: none;
}

.codex-card.locked {
    opacity: .45;
    pointer-events: none;
}

.codex-card.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(var(--et-or-fiche-rgb), .15);
}

.codex-card.soon {
    opacity: .65;
    pointer-events: none;
}

.codex-card-meta {
    position: absolute;
    top: 13px;
    right: 16px;
    font-family: var(--et-font-titre);
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(var(--et-or-fiche-rgb), .25);
}

.codex-card-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    opacity: .85;
    margin-bottom: 10px;
}

.codex-card-title {
    font-family: var(--et-font-titre);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--et-or-fiche);
    margin: 0 0 8px;
    line-height: 1.3;
}

.codex-card.locked .codex-card-title,
.codex-card.soon .codex-card-title {
    color: var(--et-hub-gris-fonce);
}

.codex-card-desc {
    font-size: 16px;
    color: var(--et-hub-gris-clair);
    font-style: regular;
    line-height: 1.65;
    margin: 0 0 14px;
}

.codex-card:not(.locked):not(.soon) .codex-card-desc {
    color: var(--et-hub-gris-clair);
}

/* ================================================================
   CARTES — VARIANTE AVEC IMAGE BANDEAU
   ================================================================ */
.codex-card-img {
    display: block;
    width: calc(100% + 40px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    margin: -18px -20px 0;
    border-bottom: 1px solid rgba(var(--et-or-fiche-rgb), .2);
}

.codex-card.has-img {
    padding-top: 0;
}

.codex-card.has-img::before {
    display: none;
}

.codex-card.has-img .codex-card-content {
    padding-top: 14px;
}

/* ================================================================
   BADGES DE STATUT
   ================================================================ */
.codex-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--et-font-titre);
    font-size: 15px;
    letter-spacing: .12em;
    border-radius: 3px;
    padding: 3px 9px;
    line-height: 1;
}

.badge-open {
    color: var(--et-hub-turquoise);
    border: 1px solid rgba(var(--et-hub-turquoise-rgb), .35);
    background: rgba(var(--et-hub-turquoise-rgb), .06);
}

.badge-registered {
    color: var(--et-or-fiche);
    border: 1px solid rgba(var(--et-or-fiche-rgb), .3);
    background: rgba(var(--et-or-fiche-rgb), .05);
}

.badge-locked {
    color: var(--et-hub-gris-fonce);
    border: 1px solid rgba(var(--et-hub-gris-fonce-rgb), .5);
}

.badge-soon {
    color: var(--et-hub-mauve);
    border: 1px solid rgba(var(--et-hub-mauve-fond-rgb), .3);
    background: rgba(var(--et-hub-mauve-fond-rgb), .05);
}

/* ================================================================
   NOTE DE BAS DE PAGE
   ================================================================ */
.codex-note {
    border-top: 1px solid rgba(var(--et-or-fiche-rgb), .1);
    padding-top: 22px;
    margin-top: 8px;
    text-align: center;
}

.codex-note p {
    font-size: 23px;
    color: var(--et-hub-gris-fonce);
    font-style: italic;
    line-height: 1.8;
    margin: 0 0 6px;
}

.codex-note p:last-child {
    margin-bottom: 0;
}

.codex-note em {
    color: rgba(var(--et-or-fiche-rgb), .4);
    font-style: normal;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
    .codex-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .codex-nav-sceau {
        width: 160px;
        height: 160px;
    }
}

.codex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

@media (max-width: 560px) {
    .codex-grid,
    .codex-grid-2,
    .codex-nav {
        grid-template-columns: 1fr;
    }

    .codex-intro {
        padding-left: 14px;
    }

    .codex-nav-sceau {
        width: 120px;
        height: 120px;
    }
}
  /* Cartes du hub dans le classeur : l'image reprend sa largeur pleine */
#et-ateliers .codex-card-img {
    max-width: none;
    width: calc(100% + 40px);
    height: 140px;
}

/* ######################################################################## */
/* PARTIE 05 / 23 : chapitre.css
   Pages chapitre (mise en page, bloc achat, lightbox, survol)
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — CHAPITRE.CSS
   Layout des pages chapitre, lightbox, overlay survol
   Accessibilité : tailles minimales, contrastes, lisibilité
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */
.chapitre-master {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --------------------------------------------------------------------------
   2. COLONNE ARTICLE — image 40% | chapeau 60%
   -------------------------------------------------------------------------- */
.colonne-article {
    display: flex;
    align-items: stretch;
}

.colonne-image {
    flex: 0 0 40%;
    overflow: hidden;
    cursor: pointer;
}

.img-ambiance {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Icône zoom au survol */
.colonne-image::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    /* minimum 44px pour accessibilité tactile */
    height: 44px;
    border: 2px solid var(--et-or);
    border-radius: 50%;
    background: rgba(var(--et-fond-profond-rgb), 0.7);
    color: var(--et-or);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.colonne-image:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   3. COLONNE CHAPEAU — texte à droite de l'image
   -------------------------------------------------------------------------- */
.colonne-chapeau {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    justify-content: flex-start;
}

/* Titre accroche — Paytone One
   Accessibilité : taille généreuse, contraste or sur fond sombre */
.titre-recit {
    font-family: var(--et-font-display);
    font-size: 1.4rem;
    /* augmenté de 1.35 à 1.4rem */
    color: rgba(var(--et-or-rgb), 1);
    line-height: 1.5;
    margin: 0;
}

/* Intro poétique + citation
   Accessibilité : minimum 1rem (16px) */
.chapeau-citation {
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    line-height: 1.5;
    /* interligne généreux pour la lisibilité */
    margin: 0;
    color: var(--et-parchemin);
}

.chapeau-citation em {
    opacity: 0.85;
    /* augmenté de 0.75 — meilleur contraste */
}

/* Appel
   Accessibilité : italic + taille suffisante */
.chapeau-appel {
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    color: var(--et-parchemin);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* Signature Darkpit */
.chapeau-signature {
    font-family: var(--et-font-titre);
    font-size: 0.9rem;
    /* légèrement augmenté */
    color: rgba(var(--et-or-rgb), 1);
    letter-spacing: 0.05em;
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. SÉPARATEUR
   -------------------------------------------------------------------------- */
.trait-signature {
    border: none;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.5);
    margin: 4px 0;
}

/* --------------------------------------------------------------------------
   5. RÉSUMÉ
   Accessibilité : taille corps minimum 1rem, interligne 1.75
   -------------------------------------------------------------------------- */
.encadre-resume p,
.encadre-resume {
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--et-parchemin);
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. CADRE EXTRAIT — étiquette positionnée au-dessus du bloc
   Accessibilité : fond clair + texte sombre = contraste élevé
   -------------------------------------------------------------------------- */
.boite-grimoire {
    border: 1px solid rgba(var(--et-or-rgb), 0.6);
    border-radius: 4px 0 4px 0;
    padding: 14px 18px 16px;
    background: rgba(var(--et-parchemin-rgb), 0.85);
    margin: 0;
    position: relative;
    margin-top: 20px;
}

/* Forcer texte sombre sur fond parchemin clair — contraste WCAG AA */
.boite-grimoire,
.boite-grimoire .texte-extrait,
.boite-grimoire em,
.boite-grimoire p {
    color: var(--et-fond-profond) !important;
}

.etiquette-titre {
    position: absolute;
    top: -14px;
    left: 20px;
    background: rgba(var(--et-or-rgb), 1);
    color: var(--et-etiquette-encre);
    font-family: var(--et-font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 12px;
    margin-bottom: 0;
    text-shadow: none;
}

/* Lettrine SVG — couleur définie dans Illustrator */
.lettrine {
    float: left;
    width: 50px;
    height: 50px;
    margin: 2px 8px 0 0;
}

/* Texte extrait — Garamond, gras, lisible */
.texte-extrait {
    font-family: var(--et-font-texte);
    font-style: normal;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5);
    overflow: hidden;
    margin: 0;
    color: var(--et-fond-profond) !important;
    text-shadow: none;
}

/* --------------------------------------------------------------------------
   LECTEUR AUDIO — Dissolution de la coque native (Chrome/Safari/Edge)
   -------------------------------------------------------------------------- */
.boite-grimoire audio {
    width: 100%;
    background: transparent;
    outline: none;
    margin-top: 2px;
    margin-bottom: -4px;
}

/* Destruction du fond noir */
.boite-grimoire audio::-webkit-media-controls-panel {
    background-color: transparent !important;
}

/* Le texte de minuterie boit l'encre profonde */
.boite-grimoire audio::-webkit-media-controls-current-time-display,
.boite-grimoire audio::-webkit-media-controls-time-remaining-display {
    color: var(--et-fond-profond) !important;
    font-family: var(--et-font-texte);
    font-weight: 600;
    font-size: 1rem;
}

/* Oxydation des boutons */
.boite-grimoire audio::-webkit-media-controls-play-button,
.boite-grimoire audio::-webkit-media-controls-mute-button,
.boite-grimoire audio::-webkit-media-controls-timeline {
    filter: sepia(1) hue-rotate(330deg) brightness(0.4) contrast(1.5);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. BLOC ACHAT
   -------------------------------------------------------------------------- */
.bloc-achat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--et-fond-profond-rgb), 0.85);
    border: 1px solid var(--et-or);
    border-radius: 4px;
    padding: 10px 16px;
    gap: 10px;
}

.achat-label {
    font-family: var(--et-font-display);
    font-size: 1rem;
    /* minimum 1rem */
    color: var(--et-or);
}

.groupe-boutons {
    display: flex;
    gap: 8px;
}

.btn-elluria {
    display: inline-block;
    padding: 10px 16px;
    /* padding augmenté pour zone clic accessible */
    min-height: 44px;
    /* hauteur minimale accessible */
    background: rgba(var(--et-or-rgb), 0.25);
    border: 2px solid var(--et-or);
    border-radius: 4px;
    color: var(--et-or);
    text-decoration: none;
    font-family: var(--et-font-display);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-elluria:hover {
    background: rgba(var(--et-or-rgb), 0.45);
    transform: translateY(-1px);
}

/* Focus visible pour navigation clavier */
.btn-elluria:focus {
    outline: 2px solid var(--et-or);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   8. COLONNE OFFRE — layout uniquement, cosmétique gérée par Membership Pro
   -------------------------------------------------------------------------- */
.colonne-offre {
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   9. LIGHTBOX
   Accessibilité : bouton fermeture grande zone de clic
   -------------------------------------------------------------------------- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.actif {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--et-or);
    border-radius: 4px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--et-or);
    font-size: 2.5rem;
    cursor: pointer;
    font-family: var(--et-font-display);
    line-height: 1;
    min-width: 44px;
    /* zone clic accessible */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:focus {
    outline: 2px solid var(--et-or);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   10. OVERLAY DESCRIPTION AU SURVOL
   -------------------------------------------------------------------------- */
.chapitre-card {
    position: relative;
    overflow: hidden;
}

.chapitre-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(var(--et-fond-profond-rgb), 0.92);
    border-top: 1px solid var(--et-or);
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.chapitre-card:hover .chapitre-card__overlay {
    transform: translateY(0);
}

.chapitre-card__description {
    font-family: var(--et-font-texte);
    font-size: 1rem;
    /* minimum 1rem */
    color: var(--et-parchemin);
    line-height: 1.5;
    margin: 0;
}

.colonne-image {
    position: relative;
}

.illus-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .colonne-article {
        flex-direction: column;
    }

    .colonne-image {
        flex: none;
        height: 250px;
    }

    .colonne-chapeau {
        padding: 16px;
        gap: 8px;
    }

    .titre-recit {
        font-size: 1.2rem;
    }

    /* maintenu lisible sur mobile */
    .colonne-offre {
        border-radius: 4px;
    }

    .btn-elluria {
        padding: 12px 16px;
    }

    /* encore plus grand sur mobile */
}

/* ######################################################################## */
/* PARTIE 06 / 23 : securise.css
   Articles sécurisés réservés aux membres
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — SECURISE.CSS
   Styles des articles sécurisés (membres MembershipPro)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CONTENEUR PRINCIPAL
   -------------------------------------------------------------------------- */
.art-securise {
    background: var(--et-fond-profond);
    color: var(--et-clair);
    font-family: var(--et-font-texte);
    width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. BANNIÈRE IMAGE
   -------------------------------------------------------------------------- */
.art-securise__banniere {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.art-securise__banniere img {
    width: 100%;
    display: block;
    opacity: 0.85;
}

.art-securise__banniere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--et-fond-profond) 0%, transparent 25%, transparent 75%, var(--et-fond-profond) 100%), linear-gradient(to right, var(--et-fond-profond) 0%, transparent 20%, transparent 80%, var(--et-fond-profond) 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. EN-TÊTE — Cycle + Titre
   -------------------------------------------------------------------------- */
.art-securise__entete {
    text-align: center;
    border-bottom: 1px solid var(--et-fond-moyen);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.art-securise__cycle {
    font-family: var(--et-font-display);
    font-size: 1.1rem;
    color: var(--et-parchemin);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.art-securise__titre {
    font-family: var(--et-font-display);
    font-size: 2.6rem;
    color: var(--et-or);
    margin: 0;
    line-height: 1.5);
}

/* --------------------------------------------------------------------------
   4. BLOC INTRODUCTION
   -------------------------------------------------------------------------- */
.art-securise__intro {
    background: rgba(var(--et-or-rgb), 0.06);
    border: 1px solid var(--et-fond-moyen);
    border-radius: 8px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
}

.art-securise__intro p {
    margin: 0 0 1rem;
    color: var(--et-parchemin);
    font-size: 1.3rem;
    line-height: 1.8;
}

.art-securise__intro p:last-of-type {
    margin-bottom: 1.5rem;
    color: var(--et-or);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   5. CITATION
   -------------------------------------------------------------------------- */
.art-securise__citation {
    border-left: 3px solid var(--et-or);
    margin: 0;
    padding: 1rem 1.5rem;
    background: rgba(var(--et-fond-profond-rgb), 0.6);
    border-radius: 0 6px 6px 0;
}

.art-securise__citation p {
    margin: 0;
    font-style: italic;
    color: var(--et-clair) !important;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   6. FLIPBOOK DEARFLIP
   -------------------------------------------------------------------------- */
.art-securise__flipbook {
    margin-bottom: 2rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.art-securise__footer {
    border-top: 1px solid var(--et-fond-moyen);
    padding-top: 1rem;
    text-align: center;
    margin-top: 2rem;
}

.art-securise__footer p {
    font-size: 0.9rem;
    color: var(--et-parchemin);
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .art-securise {
        padding: 1.5rem 1rem;
    }

    .art-securise__titre {
        font-size: 1.8rem;
    }

    .art-securise__intro {
        padding: 1.2rem 1rem;
    }

    .art-securise__intro p {
        font-size: 1.1rem;
    }

    .art-securise__citation p {
        font-size: 1.05rem;
    }
}

/* ######################################################################## */
/* PARTIE 07 / 23 : arcanes-terre-ciel.css
   Fiches Royaumes, Villes, Encyclopédie du monde
   ######################################################################## */

/* ==========================================================================
   ARCANES DE TERRE ET CIEL — arcanes-terre-ciel.css
   Fiches Royaumes, Villes, Encyclopédie du monde
   Dépend de user.css (variables --et-* et polices déjà chargées)
   ========================================================================== */

/* ─── EN-TÊTE DE LA FICHE ──────────────────────────────── */
.atc-article-title .atc-subtitle {
    font-family: var(--et-font-texte);
}

/* ─── LAYOUT DEUX COLONNES ─────────────────────────────── */
@media (max-width: 768px) {
    .atc-layout {
        grid-template-columns: 1fr;
    }

    .atc-infobox {
        position: static !important;
    }
}

/* ─── INFOBOX ───────────────────────────────────────────── */
.atc-infobox-symbol {
    text-shadow: 0 0 20px rgba(var(--et-or-rgb), 0.4);
}

/* ─── SOMMAIRE ──────────────────────────────────────────── */
.atc-toc li {
    font-family: var(--et-font-texte);
}

.atc-toc a {
    transition: color 0.2s ease;
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.atc-section h2 {
    margin-bottom: 14px;
}

.atc-section p {
    font-family: var(--et-font-texte);
    margin-bottom: 12px;
    text-align: justify;
}

.atc-section p:last-child {
    margin-bottom: 0;
}

/* ─── TABLEAU DE DONNÉES ─────────────────────────────────── */
.atc-table {
    font-family: var(--et-font-texte);
}

.atc-table tr:nth-child(even) td {
    background: rgba(var(--et-fond-profond-rgb), 0.3);
}

/* ─── GRILLE DES FIEFS ───────────────────────────────────── */
.atc-fief-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 12px 0;
}

@media (max-width: 600px) {
    .atc-fief-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.atc-fief-item {
    background: rgba(var(--et-fond-profond-rgb), 0.85);
    border: 1px solid rgba(var(--et-or-rgb), 0.25);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.atc-fief-num {
    font-family: var(--et-font-titre);
    font-size: 0.65rem;
    color: rgba(var(--et-or-rgb), 0.6);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.atc-fief-name {
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: rgba(var(--et-parchemin-rgb), 0.5);
    font-style: italic;
}

/* ─── CARTE DU GARDIEN ───────────────────────────────────── */
.atc-gardien-card {
    background: rgba(var(--et-fond-profond-rgb), 0.85);
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 16px 0;
}

.atc-gardien-icon {
    font-size: 2rem;
    color: var(--et-or);
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.atc-gardien-info h3 {
    font-family: var(--et-font-titre);
    color: var(--et-or);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.atc-gardien-info .atc-gardien-role {
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: rgba(var(--et-parchemin-rgb), 0.5);
    font-style: italic;
    margin-bottom: 8px;
}

.atc-gardien-info p {
    font-family: var(--et-font-texte);
    font-size: 1rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* ─── CITATION / HIGHLIGHT ──────────────────────────────── */
.atc-highlight {
    font-family: var(--et-font-texte);
}

/* ─── SECTION À DÉVELOPPER ──────────────────────────────── */
.atc-todo {
    font-family: var(--et-font-texte);
}

.atc-todo::before {
    content: '[ À développer ]  ';
    font-family: var(--et-font-titre);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(var(--et-or-rgb), 0.4);
    font-style: normal;
}

/* ─── BADGES ────────────────────────────────────────────── */
.atc-badge-soon {
    display: inline-block;
    background: rgba(var(--et-fond-profond-rgb), 0.6);
    border: 1px solid rgba(var(--et-or-rgb), 0.25);
    color: rgba(var(--et-parchemin-rgb), 0.4);
    font-size: 0.65rem;
    padding: 2px 8px;
    font-family: var(--et-font-titre);
    letter-spacing: 0.08em;
    font-style: italic;
}

/* ─── PIED DE FICHE ─────────────────────────────────────── */
.atc-footer {
    font-family: var(--et-font-texte);
}

/* ######################################################################## */
/* PARTIE 08 / 23 : Menus.css
   Menu principal, panneau Mon espace, triptyque, bouton Menu mobile
   ######################################################################## */

/* ==========================================================================
   ELLURIA TENEBRIS - MENUS.CSS
   Menu horizontal principal + Menu Espace (colonne droite) + Triptyque
   ========================================================================== */

/* ==========================================================================
   BARRE DE MENU
   ========================================================================== */
.zone-menu {
    background-color: var(--et-fond-moyen);
    background-image: url('/images/Elluria_tenebris/Template/barre-outils.webp');
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ==========================================================================
   MENU HORIZONTAL
   ========================================================================== */
ul.menu-elluria {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 4px 8px;
}

ul.menu-elluria li {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Boutons */
.menu-elluria__lien {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 8px 16px;
    border: 3px solid rgba(var(--et-or-rgb), 0.6);
    border-radius: 6px;
    text-decoration: none;
    background: rgba(var(--et-or-rgb), 0.25);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.menu-elluria__texte {
    font-family: var(--et-font-display) !important;
    font-size: 24px !important;
    color: var(--et-fond-profond);
    white-space: nowrap;
}

.menu-elluria__icone {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Survol - zoom + lueur */
.menu-elluria__lien:hover {
    background: rgba(var(--et-or-rgb), 0.45);
    border-color: var(--et-or);
}

.menu-elluria__lien:hover .menu-elluria__icone {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(var(--et-or-rgb), 0.8));
}

/* Etat actif - bouton enfonce renforce */
.nav-item.current .menu-elluria__lien,
.nav-item.active .menu-elluria__lien {
    background: rgba(var(--et-fond-profond-rgb), 0.95) !important;
    border: 3px solid var(--et-or);
    box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.95), inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
    transform: translateY(4px) scale(0.97);
}

.nav-item.current .menu-elluria__texte,
.nav-item.active .menu-elluria__texte {
    color: var(--et-clair) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   PANNEAU MON ESPACE (colonne droite)
   ========================================================================== */
.menu-espace {
    background: var(--et-fond-profond);
    border: 3px solid var(--et-or);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.menu-espace__liste {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.menu-espace__item {
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu-espace__item + .menu-espace__item {
    border-top: 1px solid rgba(var(--et-or-rgb), 0.4);
    padding-top: 6px;
}

.menu-espace__lien {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 6px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.menu-espace__icone {
    width: 72px !important;
    height: 72px !important;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Survol - zoom + lueur */
.menu-espace__lien:hover {
    background: rgba(var(--et-or-rgb), 0.1);
}

.menu-espace__lien:hover .menu-espace__icone {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(var(--et-or-rgb), 0.8));
}

/* Tooltip */
.menu-espace__lien::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--et-fond-profond);
    border: 1px solid var(--et-or);
    border-radius: 4px;
    color: var(--et-or);
    font-family: var(--et-font-display);
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 4px 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.menu-espace__lien:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Etat actif - sans halo */
.menu-espace__item--actif .menu-espace__lien {
    background: rgba(var(--et-or-rgb), 0.15);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8);
    transform: translateY(2px);
}

/* Reset listes colonne droite */
.colonne-droite ul,
.menu-espace__liste {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.colonne-droite li,
.menu-espace__item {
    list-style: none !important;
    padding-left: 0 !important;
}

.colonne-droite li::before,
.colonne-droite li::after,
.menu-espace__item::before,
.menu-espace__item::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   NAVIGATION TRIPTYQUE
   ========================================================================== */
.et-nav {
    display: grid;
    grid-template-columns: 30% 5% 30% 5% 30%;
    height: 160px;
    margin-top: 30px;
    overflow: hidden;
}

.et-nav__portail {
    position: relative;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.et-nav__portail--espace {
    background: var(--et-fond-profond);
    border-left: 1px solid rgba(var(--et-or-rgb), 0.2);
    border-right: 1px solid rgba(var(--et-or-rgb), 0.2);
}

.et-nav__portail--vide {
    background: rgba(var(--et-fond-profond-rgb), 0.4);
    border-right: 1px solid rgba(var(--et-or-rgb), 0.2);
}

.et-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--et-fond-profond-rgb), 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
    padding: 10px;
}

.et-nav__portail:hover .et-nav__overlay {
    background: rgba(var(--et-fond-profond-rgb), 0.4);
}

.et-nav__fleche {
    font-size: 2.5rem;
    color: var(--et-or);
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.et-nav__titre {
    font-family: var(--et-font-texte);
    font-size: 0.9rem;
    color: var(--et-clair);
    text-align: center;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.et-nav__icone {
    font-size: 1.6rem;
    color: var(--et-or);
    line-height: 1;
    filter: grayscale(1) sepia(1) saturate(3);
}

.et-nav__portail--central {
    background: var(--et-fond-profond);
    border-left: 1px solid rgba(var(--et-or-rgb), 0.3);
    border-right: 1px solid rgba(var(--et-or-rgb), 0.3);
}

.et-nav__portail--central .et-nav__overlay,
.et-nav__overlay--central {
    background: rgba(var(--et-fond-profond-rgb), 0.6) !important;
}

.et-nav__portail--central:hover .et-nav__overlay {
    background: rgba(var(--et-or-rgb), 0.1) !important;
}

.et-nav__portail--central .et-nav__titre {
    font-family: var(--et-font-display);
    font-size: 0.9rem;
    color: var(--et-or);
    text-shadow: none;
}

.et-nav__portail--icone-seule {
    background: rgba(var(--et-fond-profond-rgb), 0.85) !important;
}

.et-nav__portail--icone-seule .et-nav__overlay {
    background: transparent;
}

.et-nav__portail--icone-seule:hover .et-nav__overlay {
    background: rgba(var(--et-or-rgb), 0.1);
}

.et-nav__fleche-img {
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.et-nav__portail:hover .et-nav__fleche-img {
    transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE MOBILE - Menus
   ========================================================================== */
@media (max-width: 768px) {
    ul.menu-elluria {
        flex-wrap: wrap;
    }

    .menu-elluria__texte {
        font-size: 18px !important;
    }

    .menu-elluria__icone {
        width: 48px !important;
        height: 48px !important;
    }

    .et-nav {
        grid-template-columns: 1fr 1fr 1fr;
        height: auto;
    }

    .et-nav__portail--espace {
        display: none;
    }

    .et-nav__portail {
        height: 100px;
    }

    /* Correctif : les fleches du triptyque n'avaient aucune regle mobile.
       Leur taille venait uniquement du style inline genere par le PHP
       (taille_icone_fleche), fixe en pixels, jamais reduite sur petit
       ecran. Avec un portail retreci a 100px de haut et un tiers d'ecran
       de large, une fleche de 80-120px de large ne pouvait que se tasser
       ou chevaucher le titre du chapitre. Le !important est necessaire
       ici pour l'emporter sur le style inline, plus specifique. */
    .et-nav__fleche-img {
        width: 40px !important;
        max-width: 40px !important;
    }

    .et-nav__overlay {
        gap: 4px;
        padding: 6px;
    }

    .et-nav__titre {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .et-nav__fleche {
        font-size: 1.8rem;
    }
}
/* Barre de menu : les boutons passent sur une nouvelle ligne
   quand ils ne tiennent pas, à toutes les largeurs */
ul.menu-elluria {
    flex-wrap: wrap;
}
/* ==========================================================================
   BARRE DE MENU FINE : menu en ligne, aligne a droite, bleu nuit
   Le logo reste dans la banniere (hauteur d'origine, geree par template.css)
   A coller a la fin de Menus.css (remplace les ajouts precedents depuis
   le commentaire "BARRE DE MENU FINE")
   ========================================================================== */
.zone-menu {
    background: var(--et-fond-profond);
    background-image: none;
    min-height: 0;
    border-top: none;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.4);
    padding: 4px 0;
}

.zone-menu > .barre-contenu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

/* Liens du menu : sur UNE ligne, alignes a droite */
.zone-menu .menu-liens {
    flex: 1 1 0;
    min-width: 0;
}

.zone-menu ul.menu-elluria {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.zone-menu ul.menu-elluria li {
    flex: 0 0 auto;
}

.zone-menu .menu-elluria__lien,
.zone-menu .nav-item.current .menu-elluria__lien,
.zone-menu .nav-item.active .menu-elluria__lien {
    padding: 4px 14px;
    gap: 8px;
    border: none;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.zone-menu .menu-elluria__texte {
    font-size: 15px !important;
    color: var(--et-or);
}

.zone-menu .menu-elluria__icone {
    width: 28px !important;
    height: 28px !important;
}

.zone-menu .menu-elluria__lien:hover {
    background: rgba(var(--et-or-rgb), 0.12);
}

.zone-menu .nav-item.current .menu-elluria__lien,
.zone-menu .nav-item.active .menu-elluria__lien {
    background: rgba(var(--et-or-rgb), 0.12) !important;
}

.zone-menu .nav-item.current .menu-elluria__texte,
.zone-menu .nav-item.active .menu-elluria__texte {
    color: var(--et-clair) !important;
}

/* Bouton burger : cache sur ordinateur */
.menu-burger {
    display: none;
}

/* Ecrans moyens : si les boutons ne tiennent pas, ils passent a la ligne */
@media (max-width: 900px) {
    .zone-menu ul.menu-elluria {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   MOBILE : bouton Menu, liens en dessous
   ========================================================================== */
@media (max-width: 768px) {
    .zone-menu > .barre-contenu {
        flex-wrap: wrap;
        padding: 0 2%;
    }

    .menu-burger {
        display: block;
        margin-left: auto;
        background: rgba(var(--et-or-rgb), 0.12);
        color: var(--et-or);
        border: none;
        border-radius: 5px;
        padding: 8px 18px;
        font-family: var(--et-font-display);
        font-size: 16px;
        cursor: pointer;
    }

    .zone-menu .menu-liens {
        display: none;
        flex: 0 0 100%;
    }

    .zone-menu.ouvert .menu-liens {
        display: block;
    }

    .zone-menu ul.menu-elluria {
        flex-direction: column !important;
        align-items: stretch;
        justify-content: flex-start;
    }

    .zone-menu .menu-elluria__lien {
        flex-direction: row !important;
        justify-content: flex-start;
    }
}
/* ==========================================================================
   MODULE "PARCOURIR" : case de boutons en haut à droite de la page
   A coller a la fin de Menus.css
   Position du module : parcourir-site (affectation : toutes les pages
   sauf l'accueil, ou les dalles font deja le travail)
   ========================================================================== */

/* Case "Parcourir" : fixe, dans la page, au niveau du fil d'Ariane.
   Elle occupe un quart de la largeur, en haut à droite, et le contenu
   se place à sa gauche puis reprend toute la largeur en dessous. */
.zone-parcourir {
    float: right;
    width: 280px; /* même largeur que le menu Parcourir des pages à trois colonnes */
    margin: 0 0 20px 24px;
}

/* Le bloc central enferme son flottant */
.colonne-centre {
    display: flow-root;
}

/* La colonne */
.parcourir-site {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
}

.parcourir-site__titre {
    margin: 0 0 4px;
    padding: 0;
    border: 0 !important;
    font-size: 1.3rem;
    color: var(--et-or);
}

/* Les boutons */
.parcourir-lien,
.parcourir-lien:visited {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--et-parchemin);
    background: rgba(var(--et-fond-profond-rgb), 0.6);
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.parcourir-lien:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-color: var(--et-or);
}

.parcourir-lien__icones {
    position: relative;
    width: 44px;
    height: 44px;
}

.parcourir-lien__icone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.parcourir-lien__icone--actif {
    opacity: 0;
}

.parcourir-lien:hover .parcourir-lien__icone--actif,
.parcourir-lien:focus-visible .parcourir-lien__icone--actif {
    opacity: 1;
}

.parcourir-lien:hover .parcourir-lien__icone--repos,
.parcourir-lien:focus-visible .parcourir-lien__icone--repos {
    opacity: 0;
}

.parcourir-lien__texte {
    font-family: var(--et-font-display);
    font-size: 1.05rem;
    line-height: 1.25;
}

.parcourir-lien:hover .parcourir-lien__texte {
    color: var(--et-or);
}

/* Écrans moyens et téléphones : la case disparaît (le menu du haut suffit) */
@media (max-width: 1100px) {
    .zone-parcourir {
        display: none;
    }
}
/* ==========================================================================
   MENU USAGER EN ONGLETS : un menu Joomla habille comme tes onglets
   (meme forme que le classeur : languettes bleu nuit, languette active en or,
   page du classeur dessous avec le liseré dore de 3px)
   A coller a la fin de profil.css. Remplace menu-usager-bande.css (un seul des deux).
   Classe a donner au module de menu : menu-usager-onglets  (champ "Classe de menu")
   ========================================================================== */

/* --- La rangee de languettes : autant de colonnes que d'elements de menu --- */
.menu-usager-onglets,
.menu-usager-onglets ul {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-usager-onglets li {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-usager-onglets a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 12px 10px 13px;
    font-family: var(--et-font-titre);
    font-size: 1.05rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: #bcad8d;
    background: #152436;
    border: 1px solid rgba(214, 177, 97, 0.35);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.26);
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-usager-onglets a:hover {
    background: rgba(214, 177, 97, 0.18);
}

/* Languette de la page en cours : en or, elle descend de 3px sur le liseré */
.menu-usager-onglets .current > a,
.menu-usager-onglets .active > a {
    z-index: 3;
    margin-bottom: -3px;
    padding-bottom: 16px;
    font-weight: 600;
    color: #0e1a2b;
    background: #d6b161;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.32);
}

/* --- La page du classeur : le contenu de Membership Pro, sur les pages qui ont ce menu --- */
body.com_osmembership:has(.menu-usager-onglets) .osm-container.osm-container,
body:has(.menu-usager-onglets) .com_osmembership .osm-container.osm-container {
    background: #0c1624 !important;
    border: 1px solid rgba(214, 177, 97, 0.32) !important;
    border-top: 3px solid #d6b161 !important;
    border-radius: 0 4px 4px 4px !important;
    padding: 26px clamp(14px, 2.2vw, 30px) 30px !important;
}

/* --- Telephone : les languettes passent l'une sous l'autre --- */
@media (max-width: 640px) {
    .menu-usager-onglets,
    .menu-usager-onglets ul {
        grid-auto-flow: row;
        gap: 6px;
    }

    .menu-usager-onglets a,
    .menu-usager-onglets .current > a,
    .menu-usager-onglets .active > a {
        margin-bottom: 0;
        padding: 13px 14px;
        border: 1px solid rgba(214, 177, 97, 0.35);
        border-radius: 4px;
    }
}
/* ==========================================================================
   MENU USAGER EN ONGLETS : un menu Joomla habille comme tes onglets
   (meme forme que le classeur : languettes bleu nuit, languette active en or,
   page du classeur dessous avec le liseré dore de 3px)
   A coller a la fin de profil.css. Remplace menu-usager-bande.css (un seul des deux).
   Classe a donner au module de menu : menu-usager-onglets  (champ "Classe de menu")
   ========================================================================== */

/* --- La rangee de languettes : autant de colonnes que d'elements de menu --- */
.menu-usager-onglets,
.menu-usager-onglets ul {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-usager-onglets li {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-usager-onglets a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 12px 10px 13px;
    font-family: var(--et-font-titre);
    font-size: 1.05rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: #bcad8d;
    background: #152436;
    border: 1px solid rgba(214, 177, 97, 0.35);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.26);
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-usager-onglets a:hover {
    background: rgba(214, 177, 97, 0.18);
}

/* Languette de la page en cours : en or, elle descend de 3px sur le liseré */
.menu-usager-onglets .current > a,
.menu-usager-onglets .active > a {
    z-index: 3;
    margin-bottom: -3px;
    padding-bottom: 16px;
    font-weight: 600;
    color: #0e1a2b;
    background: #d6b161;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.32);
}

/* --- La page du classeur : le contenu de Membership Pro, sur les pages qui ont ce menu --- */
/* (Corrige : l'ancien selecteur exigeait une classe "com_osmembership" absente du <body> de ce site.) */
body:has(.menu-usager-onglets) main .osm-container {
    background: #0c1624 !important;
    border: 1px solid rgba(214, 177, 97, 0.32) !important;
    border-top: 3px solid #d6b161 !important;
    border-radius: 0 4px 4px 4px !important;
    padding: 26px clamp(14px, 2.2vw, 30px) 30px !important;
}

/* --- Telephone : les languettes passent l'une sous l'autre --- */
@media (max-width: 640px) {
    .menu-usager-onglets,
    .menu-usager-onglets ul {
        grid-auto-flow: row;
        gap: 6px;
    }

    .menu-usager-onglets a,
    .menu-usager-onglets .current > a,
    .menu-usager-onglets .active > a {
        margin-bottom: 0;
        padding: 13px 14px;
        border: 1px solid rgba(214, 177, 97, 0.35);
        border-radius: 4px;
    }
}

/* ######################################################################## */
/* PARTIE 09 / 23 : Gauche.css
   Modules sous l'article, colonne gauche, portrait du Scribe, aide à la navigation
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — GAUCHE.CSS
   Styles de la colonne gauche (haut et bas)
   ========================================================================== */

/* ==========================================================================
   GAUCHE HAUT — Style standard appliqué à tous les modules
   ========================================================================== */
.gauche-haut .moduletable {
    background: rgba(var(--et-fond-profond-rgb), 0.85);
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    color: var(--et-parchemin);
    box-sizing: border-box;
}

.gauche-haut .moduletable h2,
.gauche-haut .moduletable h3 {
    font-family: var(--et-font-titre) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--et-or) !important;
    background: none !important;
    background-image: none !important;
    border-left: 3px solid var(--et-or) !important;
    padding: 0 0 0 10px !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: 0.8px;
    line-height: 1.5;
    text-shadow: none;
}

.gauche-haut .moduletable p {
    font-family: var(--et-font-texte);
    font-size: 1.1rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.gauche-haut .moduletable a {
    color: var(--et-or);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gauche-haut .moduletable a:hover {
    color: var(--et-clair);
}

/* ==========================================================================
   GAUCHE BAS — Décoration pure
   ========================================================================== */
.gauche-bas .moduletable {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.gauche-bas .moduletable h2,
.gauche-bas .moduletable h3 {
    display: none !important;
}

/* ==========================================================================
   TITRES
   ========================================================================== */
.titre-univers {
    font-family: var(--et-font-display);
    color: var(--et-or);
    background: var(--et-fond-profond);
    background-image: none;
    margin: 0 0 10px 0;
    padding: 10px;
    font-size: 1.1rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--et-or);
}

/* ==========================================================================
   INTRO SCRIBE
   ========================================================================== */
.intro-scribe {
    padding: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.3);
}

.paragraphe-ambiance {
    font-family: var(--et-font-texte);
    font-size: 1.1rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
    line-height: 1.5;
    margin-bottom: 10px;
}

.paragraphe-appel {
    font-family: var(--et-font-texte);
    font-size: 1.1rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   CITATION AUTEUR
   ========================================================================== */
.bandeau-auteur {
    border: none;
    background: transparent;
    margin: 10px;
    padding: 10px;
}

.texte-signature {
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: var(--et-or);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 8px;
}

.nom-auteur {
    font-family: var(--et-font-display);
    color: var(--et-or);
    text-align: right;
    font-size: 1rem;
    margin: 0;
}

/* ==========================================================================
   SÉPARATEUR ORNEMENTAL
   ========================================================================== */
.separateur-ornemental {
    text-align: center;
    margin: 10px 0;
    line-height: 0;
}

.separateur-ornemental img {
    max-width: 80%;
    height: auto;
}

/* ==========================================================================
   JOURNAL DU SCRIBE
   ========================================================================== */
.section-dynamique {
    padding: 10px;
    margin-bottom: 10px;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.3);
}

.journal-scribe {
    background: rgba(var(--et-or-rgb), 0.12);
    border: 1px solid rgba(var(--et-or-rgb), 0.4);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.titre-interne {
    font-family: var(--et-font-display);
    color: var(--et-or);
    font-size: 1.1rem;
    text-transform: none;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.section-dynamique .module-title {
    display: none;
}

.journal-scribe a {
    color: var(--et-parchemin);
    text-decoration: none;
    font-family: var(--et-font-texte);
    font-size: 1rem;
}

.journal-scribe a:hover {
    color: var(--et-clair);
}

.journal-scribe ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journal-scribe ul li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.5;
}

.journal-scribe ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--et-or);
    font-size: 0.65rem;
    top: 6px;
}

/* ==========================================================================
   OPT-OUT MATOMO
   ========================================================================== */
.opt-out {
    border-top: none;
    padding-top: 0;
}

.opt-out iframe,
#matomo-opt-out iframe {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
}

/* ==========================================================================
   PORTRAIT DU SCRIBE
   ========================================================================== */
.zone-portrait-scribe {
    padding: 20px 0 10px 0;
    text-align: left;
    margin: 0 10px;
}

.img-portrait-scribe {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--et-or);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.img-portrait-scribe:hover {
    border-color: var(--et-clair);
    transform: scale(1.05);
}

/* ==========================================================================
   PORTRAIT NARRATEUR — circulaire avec bordure or
   ========================================================================== */
.narrateur-cadre {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.2rem;
    position: relative;
    background-image: url('/images/Elluria_tenebris/Template/bordure_narrateur.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.narrateur-portrait {
    width: 84%;
    height: 84%;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: none;
    padding: 0;
    background-image: none;
}

/* Logo sidebar — sans bordure ni cercle */
.logo-sidebar {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   PRÉSENTATION CYCLE
   ========================================================================== */
.cycle-presentation {
    margin-bottom: 10px;
}

.cycle-presentation__inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cycle-presentation__calendrier {
    flex: 0 0 45%;
}

.calendrier-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--et-or);
    border-radius: 4px;
}

.cycle-presentation__texte {
    flex: 1;
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    color: var(--et-or);
    line-height: 1.5;
}

/* ==========================================================================
   STANDARD UNIVERSEL — SIDEBAR
   Allégé : sans fond ni bordure intérieure, style proche du module Bienvenue
   ========================================================================== */
.elluria-sidebar-medias {
    padding: 16px;
    margin-bottom: 20px;
    color: var(--et-parchemin);
}

.sidebar-narrateur {
    text-align: center;
    margin-bottom: 1.2rem;
}

.scribe-titre {
    font-family: var(--et-font-titre);
    font-size: 1rem;
    font-weight: 600;
    color: var(--et-or);
    letter-spacing: 0.8px;
    margin: 0 0 1rem;
    border-left: 3px solid var(--et-or);
    padding-left: 10px;
    line-height: 1.5;
}

.scribe-texte p {
    font-family: var(--et-font-texte);
    font-size: 1.1rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
    line-height: 1.5;
    margin: 0 0 0.8rem;
}

.sidebar-separateur {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
}

.sep-line {
    flex: 1;
    height: 1px;
    background: rgba(var(--et-or-rgb), 0.3);
}

.sep-orn {
    color: rgba(var(--et-or-rgb), 0.5);
    font-size: 0.75rem;
}

.sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-section {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.15);
    transition: all 0.2s ease;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section:hover {
    transform: translateX(3px);
}

.section-titre {
    font-family: var(--et-font-titre);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--et-parchemin);
    letter-spacing: 0.3px;
    margin-bottom: 3px;
    transition: color 0.2s;
}

.sidebar-section:hover .section-titre {
    color: var(--et-or);
}

.section-essence {
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), 0.5);
    line-height: 1.5;
}

/* Section désactivée — en construction */
.sidebar-section--bientot {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ==========================================================================
   CADRE ORNEMENTAL
   ========================================================================== */
.cadre-ornemental {
    position: relative;
    padding: 10px;
    margin: 10px 0;
}

.coin {
    position: absolute;
    width: 40px;
    height: auto;
}

.coin--hg {
    top: 0;
    left: 0;
}

.coin--hd {
    top: 0;
    right: 0;
}

.coin--bg {
    bottom: 0;
    left: 0;
}

.coin--bd {
    bottom: 0;
    right: 0;
}

/* ==========================================================================
   Inscription
   ========================================================================== */
.rejoindre-guilde {
    margin: 0;
    padding: 15px 0;
    text-align: center;
}

.rejoindre-guilde__lien {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.rejoindre-guilde__titre {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.rejoindre-guilde__sous-titre {
    font-size: 1rem;
    opacity: 0.9;
    font-variant: normal;
    text-transform: none;
}

/* ==========================================================================
   RACCOURCIS RAPIDES — espacement moduletable
   ========================================================================== */
.usager-raccourcis .moduletable {
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   MODULES SOUS L'ARTICLE : grille automatique de 3 colonnes
   Les positions gauche-haut et gauche-bas deviennent transparentes
   (display: contents) : chaque module est une cellule de la grille.
   ========================================================================== */
.bloc-bas-article {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 30px;
}

.bloc-bas-article .gauche-haut,
.bloc-bas-article .gauche-bas {
    display: contents;
}

.bloc-bas-article .gauche-haut .moduletable,
.bloc-bas-article .gauche-bas .moduletable {
    margin-bottom: 0;
    min-width: 0;
}

.bloc-bas-article img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .bloc-bas-article {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bloc-bas-article {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   AIDE A LA NAVIGATION : un bloc repliable. Ouvert, le contenu passe AU-DESSUS
   de ce qui est dessous (il ne fait plus descendre la page).
   ========================================================================== */
.manuel-navigation {
    position: relative;
    margin: 0;
    padding: 0;
    background: rgba(var(--et-fond-profond-rgb), 0.6);
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.manuel-navigation[open] {
    border-radius: 8px 8px 0 0;
}

.manuel-navigation__titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    list-style: none;
    cursor: pointer;
    font-family: var(--et-font-titre);
    font-size: 1.2rem;
    color: var(--et-or);
}

.manuel-navigation__titre::-webkit-details-marker {
    display: none;
}

.manuel-navigation__titre::after {
    content: '+';
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid rgba(var(--et-or-rgb), 0.5);
    border-radius: 50%;
}

.manuel-navigation[open] .manuel-navigation__titre::after {
    content: '-';
}

/* Le contenu est posé sur la page : il recouvre ce qui est en dessous */
.manuel-navigation__contenu {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    z-index: 60;
    padding: 4px 18px 16px;
    background: var(--et-fond-profond);
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.65);
}

.manuel-liste {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.manuel-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
        "icone action"
        "icone desc";
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(var(--et-or-rgb), 0.06);
    border-radius: 6px;
}

.manuel-icone {
    grid-area: icone;
    width: 40px;
    height: 40px;
}

.manuel-action {
    grid-area: action;
    font-family: var(--et-font-titre);
    font-size: 1rem;
    line-height: 1.25;
    color: var(--et-or);
}

.manuel-desc {
    grid-area: desc;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.3;
    color: rgba(var(--et-parchemin-rgb), 0.75);
}

.manuel-navigation__note {
    margin: 12px 0 0;
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), 0.75);
}

/* ######################################################################## */
/* PARTIE 10 / 23 : presentation.css
   Articles de présentation (accueil, cycles, médias, codex)
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — PRESENTATION.CSS
   Styles des articles de présentation (accueil, cycles, médias, codex…)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TITRES
   -------------------------------------------------------------------------- */
.article-presentation h1 {
    font-family: var(--et-font-display);
    font-size: 1.6rem;
    color: var(--et-or);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.article-presentation h2 {
    font-family: var(--et-font-display);
    font-size: 1.3rem;
    color: var(--et-or);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.5;
    border-left: 3px solid rgba(var(--et-or-rgb), 0.5);
    padding-left: 10px;
}

.article-presentation h3 {
    font-family: var(--et-font-texte);
    font-size: 1.1rem;
    color: var(--et-parchemin);
    font-style: italic;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.article-presentation h4 {
    font-family: var(--et-font-titre);
    font-size: 1rem;
    color: var(--et-parchemin);
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   2. TEXTE COURANT
   -------------------------------------------------------------------------- */
.article-presentation p {
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    color: var(--et-parchemin);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.article-presentation p em {
    color: rgba(var(--et-parchemin-rgb), 0.75);
}

.article-presentation strong {
    color: var(--et-clair);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. BLOC INTRO — image + texte
   -------------------------------------------------------------------------- */

/* Version flottante — page accueil */
.intro-univers {
    margin-bottom: 40px;
    overflow: hidden;
}

.intro-univers__image {
    float: left;
    width: 35%;
    height: auto;
    margin-right: 40px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.intro-univers__image--haute {
    float: left;
    width: 32%;
    margin-right: 40px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.intro-univers::after {
    content: '';
    display: table;
    clear: both;
}

/* Version flexbox — pages cycles, médias, codex */
.intro-cycles {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.intro-cycles__illustration {
    width: 28%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Modificateur pour illustrations verticales (plume, etc.) */
.intro-cycles__illustration--vertical {
    width: 20%;
}

.intro-cycles__texte {
    flex: 1;
}

.fiche-technique {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.15);
}

.fiche-technique p {
    font-size: 0.85rem;
    color: rgba(var(--et-parchemin-rgb), 0.65);
    margin-bottom: 0.3rem;
}

.fiche-technique__label {
    color: var(--et-or);
    font-family: var(--et-font-titre);
    margin-right: 6px;
}

/* --------------------------------------------------------------------------
   4. LISTE ORNEMENTALE
   -------------------------------------------------------------------------- */
.elluria-liste {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.elluria-liste li {
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    color: var(--et-parchemin);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}

.elluria-liste li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--et-or);
    font-size: 0.65rem;
    top: 7px;
}

.liste-titre {
    color: var(--et-or);
    font-family: var(--et-font-titre);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   5. GRILLE DE CARTES — "Ce que vous allez explorer"
   -------------------------------------------------------------------------- */
.explorer-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.explorer-carte {
    border: 1px solid rgba(var(--et-or-rgb), 0.3);
    padding: 20px;
    border-radius: 8px;
    background: rgba(var(--et-fond-moyen-rgb), 0.3);
    transition: all 0.2s ease;
}

.explorer-carte:hover {
    border-color: rgba(var(--et-or-rgb), 0.6);
    background: rgba(var(--et-fond-moyen-rgb), 0.5);
}

.explorer-carte__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.explorer-carte__icone {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.explorer-carte p {
    font-size: 1rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. APPEL À L'ACTION
   -------------------------------------------------------------------------- */
.cta-bloc {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.2);
}

.cta-bloc h2 {
    border: none;
    padding: 0;
    text-align: center;
    margin-bottom: 15px;
}

.cta-bloc p {
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), 0.75);
    margin-bottom: 20px;
}

.cta-double {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.2);
}

.btn--principal {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn--principal {
    background: rgba(var(--et-or-rgb), 0.15);
}

.btn--secondaire {
    font-size: 0.85rem;
    opacity: 0.8;
}

.cta-accroche {
    font-family: var(--et-font-texte);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(var(--et-parchemin-rgb), 0.65);
    text-align: center;
    margin-top: 1.2rem;
}

@media (max-width: 768px) {
    .cta-double {
        grid-template-columns: 1fr;
    }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--et-or);
    border-radius: 4px;
    color: var(--et-or);
    font-family: var(--et-font-display);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.5;
}

.btn:hover {
    background: rgba(var(--et-or-rgb), 0.15);
    color: var(--et-clair);
}

.btn:focus {
    outline: 2px solid var(--et-or);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   7. PRÉSENTATION CYCLE
   -------------------------------------------------------------------------- */
.cycle-presentation__inner--couverture .cycle-presentation__image {
    flex: 0 0 290px;
}

.cycle-presentation__inner--couverture {
    align-items: stretch;
}

.cycle-presentation__inner--couverture .cycle-presentation__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cycle-presentation__inner--couverture .cycle-presentation__contenu {
    flex: 1;
    min-width: 0;
}

.cycle-presentation__inner--couverture .cycle-presentation__titre-cycle {
    font-family: var(--et-font-display);
    font-size: 1.7rem;
    color: var(--et-or);
    margin-bottom: 0.3rem;
}

.cycle-presentation__inner--couverture .cycle-presentation__sous-titre {
    font-family: var(--et-font-titre);
    font-size: 1.05rem;
    color: var(--et-parchemin);
    margin-bottom: 1rem;
}

.cycle-presentation__inner--couverture .cycle-presentation__fenetre {
    border: 1px solid rgba(var(--et-or-rgb), 0.4);
    box-shadow: 0 0 20px rgba(var(--et-or-rgb), 0.08);
    border-radius: 6px;
    margin-bottom: 1rem;
    background: rgba(var(--et-fond-moyen-rgb), 0.2);
}

.cycle-presentation__fenetre-label {
    font-family: var(--et-font-titre);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--et-or);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.2);
}

.cycle-presentation__fenetre-scroll {
    max-height: 170px;
    overflow-y: scroll;
    padding: 16px 20px;
    line-height: 1.5;
    font-family: var(--et-font-texte);
    font-size: 1.02rem;
    color: var(--et-parchemin);
}

.cycle-presentation__fenetre-scroll p {
    margin-bottom: 0.55rem;
}

.cycle-presentation__inner--couverture .fiche-technique {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 1rem;
}

.cycle-presentation__inner--couverture .fiche-technique__champ {
    position: relative;
    margin-right: 16px;
    padding-right: 16px;
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: var(--et-parchemin);
}

.cycle-presentation__inner--couverture .fiche-technique__champ:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    opacity: 0.5;
}

.cycle-presentation__inner--couverture .fiche-technique__label {
    font-family: var(--et-font-titre);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--et-or);
}

@media (max-width: 600px) {
    .cycle-presentation__inner--couverture .fiche-technique {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cycle-presentation__inner--couverture .fiche-technique__champ {
        margin-right: 0;
        padding-right: 0;
    }

    .cycle-presentation__inner--couverture .fiche-technique__champ::after {
        content: none;
    }
}

@media (max-width: 768px) {
    .cycle-presentation__inner--couverture {
        flex-direction: column;
    }

    .cycle-presentation__inner--couverture .cycle-presentation__image {
        flex: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto 1rem;
    }
}

.cycle-presentation__inner--couverture .cycle-presentation__boutons {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn--indisponible {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.cycle-presentation__commande {
    margin-top: 1rem;
    text-align: center;
}

.cycle-presentation__commande iframe {
    border: 0;
    width: 100%;
    max-width: 728px;
    aspect-ratio: 728 / 90;
    height: auto;
}

/* --------------------------------------------------------------------------
   8. GRILLE CYCLES
   -------------------------------------------------------------------------- */
.cycle-grille {
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   9. BADGE NOUVEAU
   -------------------------------------------------------------------------- */
.badge-nouveau {
    display: inline-block;
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-family: var(--et-font-display);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   10. SÉPARATEUR ORNEMENTAL
   -------------------------------------------------------------------------- */
.separateur-article {
    text-align: center;
    margin: 20px 0;
    line-height: 0;
}

.separateur-article img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   11. BLOC LIEN ACCUEIL
   -------------------------------------------------------------------------- */
.accueil-lien {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.15);
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.15);
    margin: 2rem 0;
    background: rgba(var(--et-fond-moyen-rgb), 0.15);
}

.accueil-lien p {
    font-family: var(--et-font-titre);
    font-size: 1.05rem;
    color: var(--et-parchemin);
    margin-bottom: 0.5rem;
}

.accueil-lien small {
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: rgba(var(--et-parchemin-rgb), 0.65);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .intro-univers__image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .intro-univers__image--haute {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .intro-cycles {
        flex-direction: column;
    }

    .intro-cycles__illustration,
    .intro-cycles__illustration--vertical {
        width: 60%;
        margin: 0 auto;
    }

    .cycle-presentation__inner {
        flex-direction: column;
    }

    .cycle-presentation__calendrier {
        flex: none;
        width: 100%;
    }

    .explorer-grille {
        grid-template-columns: 1fr;
    }

    .article-presentation h1 {
        font-size: 1.4rem;
    }

    .article-presentation h2 {
        font-size: 1.1rem;
    }
}
/* ==========================================================================
   ACCUEIL : deux groupes à fond unique, photo pleine hauteur, séparateurs,
   titres sans bordure, dalles du menu
   A coller a la fin de presentation.css (remplace le bloc ACCUEIL precedent)
   ========================================================================== */

/* --- Titres : aucune bordure ----------------------------------------------- */
.article-presentation h1,
.article-presentation h2,
.article-presentation h3,
.article-presentation h4,
.bloc-bas-article .gauche-haut .moduletable h2,
.bloc-bas-article .gauche-haut .moduletable h3 {
    border: 0 !important;
    border-left: 0 !important;
    padding-left: 0 !important;
    box-shadow: none !important;
}

/* --- Groupes à fond unique et séparateurs ---------------------------------- */
.accueil-section {
    padding: 28px 32px;
    border-radius: 10px;
}

.accueil-section--a {
    background: rgba(var(--et-or-rgb), 0.07);
}

.accueil-section--b {
    background: rgba(0, 0, 0, 0.28);
}

.accueil-section > h2 {
    margin: 0 0 16px;
}

.accueil-section p {
    font-size: 1.12rem;
    line-height: 1.6;
}

/* Séparateur : un léger creux doré, sans contour */
.accueil-separateur {
    height: 6px;
    margin: 16px 0;
    border: 0;
    border-radius: 3px;
    background: rgba(var(--et-or-rgb), 0.5);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.accueil-section .accueil-separateur {
    margin: 22px 0;
}

/* --- Groupe 1 : photo | texte | boutons, puis panneaux, puis phrase -------- */
.accueil-section--intro {
    padding: 0;
    overflow: hidden;
}

.intro-grille {
    /* Largeur du menu Parcourir : la même sur toutes les pages (à changer ici seulement) */
    --largeur-parcourir: 280px;
    display: grid;
    grid-template-columns: minmax(150px, 22%) minmax(0, 1fr) calc(var(--largeur-parcourir) + 32px);
    grid-template-rows: auto auto auto;
    align-items: stretch;
}

/* La photo descend sur la hauteur du texte et des deux panneaux */
.intro-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    min-height: 300px;
}

.intro-photo .intro-univers__image--haute {
    position: absolute;
    inset: 0;
    float: none;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.intro-univers {
    grid-column: 2;
    grid-row: 1;
    padding: 28px 28px 18px 32px;
}

.intro-univers p {
    font-size: 1.1rem;
    line-height: 1.55;
}

.intro-liens {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 32px 18px 0;
}

.personnages-panneaux {
    grid-column: 2 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 32px 22px;
}

.accueil-section--intro .accueil-lien {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0 32px 24px;
    padding: 10px 16px;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.55);
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.55);
}

.accueil-section--intro .accueil-lien p {
    margin: 0 0 4px;
}

@media (max-width: 1024px) {
    .intro-grille {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .intro-photo {
        grid-column: 1;
        grid-row: auto;
        min-height: 300px;
    }

    .intro-univers,
    .intro-liens,
    .personnages-panneaux,
    .accueil-section--intro .accueil-lien {
        grid-column: 1;
        grid-row: auto;
    }

    .intro-univers {
        padding: 22px 20px 10px;
    }

    .intro-liens {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 6px 20px 18px;
    }

    .personnages-panneaux {
        padding: 0 20px 18px;
    }

    .accueil-section--intro .accueil-lien {
        margin: 0 20px 20px;
    }
}


/* Boutons de lecture */
.intro-lien {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 8px 8px;
    text-align: center;
    text-decoration: none;
    font-family: var(--et-font-display);
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--et-clair);
    background-color: rgba(var(--et-fond-profond-rgb), 0.7);
    background-image: linear-gradient(rgba(var(--et-fond-profond-rgb), 0.6), rgba(var(--et-fond-profond-rgb), 0.6)), var(--lien-image, none);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(var(--et-or-rgb), 0.5);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Images de fond des boutons de lecture (a renseigner) */
/* .intro-lien--enquete { --lien-image: url('/images/CHEMIN/enquete.webp'); } */
/* .intro-lien--journal { --lien-image: url('/images/CHEMIN/journal.webp'); } */
/* .intro-lien--cycle1  { --lien-image: url('/images/CHEMIN/cycle1.webp'); } */
/* .intro-lien--cycle2  { --lien-image: url('/images/CHEMIN/cycle2.webp'); } */

.intro-lien small {
    display: block;
    margin-top: 2px;
    font-family: var(--et-font-texte);
    font-size: 0.9rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
}

a.intro-lien:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55);
    border-color: var(--et-or);
}

.intro-lien--enquete {
    border-color: var(--et-or);
}

.intro-lien--avenir {
    opacity: 0.6;
    border-style: dashed;
    cursor: default;
}

.intro-lien--avenir em {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--et-or);
}

/* Panneaux Élise / Alexis */
.panneau-personnage {
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 6px;
    background: rgba(var(--et-fond-profond-rgb), 0.6);
}

.panneau-personnage summary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 52px 14px 20px;
    cursor: pointer;
    list-style: none;
}

.panneau-personnage summary::-webkit-details-marker {
    display: none;
}

.panneau-personnage summary::after {
    content: '+';
    position: absolute;
    top: 14px;
    right: 16px;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--et-or);
    border: 1px solid rgba(var(--et-or-rgb), 0.5);
    border-radius: 50%;
}

.panneau-personnage[open] summary::after {
    content: '-';
}

.panneau-personnage__titre {
    font-family: var(--et-font-display);
    font-size: 1.45rem;
    color: var(--et-or);
}

.panneau-personnage summary em {
    font-size: 1.05rem;
    color: rgba(var(--et-parchemin-rgb), 0.85);
}

.panneau-personnage__contenu {
    padding: 0 20px 16px;
}

.panneau-personnage__contenu p {
    margin: 0 0 0.8rem;
}

@media (max-width: 768px) {
    .personnages-panneaux {
        grid-template-columns: 1fr;
    }

    .accueil-section {
        padding: 22px 16px;
    }
}

/* --- Groupe 2 : dalles du menu (4 sur une ligne, image attenuee) ----------- */
.dalles-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dalle,
.dalle:visited {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
        "icone titre"
        "texte texte";
    align-items: center;
    column-gap: 14px;
    row-gap: 12px;
    align-content: start;
    min-height: 220px;
    padding: 20px 20px 22px;
    text-decoration: none;
    color: var(--et-parchemin);
    background-color: rgba(var(--et-fond-profond-rgb), 0.9);
    background-image: var(--dalle-image, none);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dalle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--et-fond-profond-rgb), 0.8);
    transition: background 0.3s ease;
}

.dalle:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55);
    border-color: var(--et-or);
}

.dalle:hover::before {
    background: rgba(var(--et-fond-profond-rgb), 0.58);
}

.dalle > * {
    position: relative;
    z-index: 1;
}

/* Images de fond des dalles (a renseigner) */
/* .dalle--chapitres { --dalle-image: url('/images/CHEMIN/chapitres.webp'); } */
/* .dalle--codex     { --dalle-image: url('/images/CHEMIN/codex.webp'); } */
/* .dalle--medias    { --dalle-image: url('/images/CHEMIN/medias.webp'); } */
/* .dalle--ateliers  { --dalle-image: url('/images/CHEMIN/ateliers.webp'); } */

.dalle__icones {
    grid-area: icone;
    position: relative;
    width: 68px;
    height: 68px;
}

.dalle__icone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.dalle__icone--actif {
    opacity: 0;
}

.dalle:hover .dalle__icone--actif,
.dalle:focus-visible .dalle__icone--actif,
.dalle:active .dalle__icone--actif {
    opacity: 1;
}

.dalle:hover .dalle__icone--repos,
.dalle:focus-visible .dalle__icone--repos,
.dalle:active .dalle__icone--repos {
    opacity: 0;
}

.dalle__titre {
    grid-area: titre;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--et-or);
}

.dalle p {
    grid-area: texte;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(var(--et-parchemin-rgb), 0.95);
}

@media (max-width: 1200px) {
    .dalles-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dalles-menu {
        grid-template-columns: 1fr;
    }
}

/* Phrase finale */
.article-presentation .cta-accroche {
    margin: 4px 0 0;
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
}

/* --- Modules sous l'article : trois blocs de même hauteur ------------------ */
.bloc-bas-article {
    align-items: stretch;
    margin-top: 16px;
}

/* Boîte vide du "complément d'article" : masquée si elle ne contient rien */
.complement-article:not(:has(*)) {
    display: none;
}

/* ######################################################################## */
/* PARTIE 11 / 23 : profil.css
   Pages profil, inscription, modification de compte
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — PROFIL.CSS
   Styles des pages profil, inscription et modification de compte
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE WRAPPER
   -------------------------------------------------------------------------- */
.et-profil-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    font-family: var(--et-font-texte);
}

.et-inscription {
    max-width: 100%;
    padding: 1.5rem 0 3rem;
    font-family: var(--et-font-texte);
}

/* --------------------------------------------------------------------------
   2. EN-TÊTE
   -------------------------------------------------------------------------- */
.et-profil-header {
    text-align: center;
    margin-bottom: 2rem;
}

.et-profil-deco-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.et-profil-deco-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--et-or-rgb), 0.35));
}

.et-profil-deco-line:last-child {
    background: linear-gradient(90deg, rgba(var(--et-or-rgb), 0.35), transparent);
}

/* --------------------------------------------------------------------------
   3. AVATAR
   -------------------------------------------------------------------------- */
.et-profil-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(var(--et-or-rgb), 0.14);
    border: 2px solid rgba(var(--et-or-rgb), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-family: var(--et-font-titre);
    font-size: 1.8rem;
    color: var(--et-or-vif);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. TEXTES EN-TÊTE
   -------------------------------------------------------------------------- */
.et-profil-nom {
    font-family: var(--et-font-titre);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--et-or-vif);
    letter-spacing: 2px;
    margin: 0 0 0.3rem;
}

.et-profil-pseudo {
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: rgba(var(--et-or-rgb), 0.5);
    margin: 0 0 0.25rem;
    font-style: italic;
}

.et-profil-titre-univers {
    font-family: var(--et-font-titre);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(var(--et-or-rgb), 0.4);
    margin: 0 0 1.25rem;
}

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.et-profil-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    background: rgba(var(--et-or-rgb), 0.1);
    border: 1px solid rgba(var(--et-or-rgb), 0.4);
    border-radius: 5px;
    color: rgba(var(--et-or-rgb), 0.8);
    font-family: var(--et-font-titre);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.2s;
    min-height: 44px;
    cursor: pointer;
}

.et-profil-btn-edit:hover {
    background: rgba(var(--et-or-rgb), 0.2);
    border-color: rgba(var(--et-or-rgb), 0.7);
    color: var(--et-or-vif);
}

/* --------------------------------------------------------------------------
   6. CARTES
   -------------------------------------------------------------------------- */
.et-profil-page .et-profil-card,
.et-inscription .et-profil-card {
    max-width: 100%;
    background: rgba(var(--et-fond-profond-rgb), 0.92);
    border: 1px solid rgba(var(--et-or-rgb), 0.28);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   7. SECTIONS
   -------------------------------------------------------------------------- */
.et-profil-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.1);
}

.et-profil-section:last-of-type {
    border-bottom: none;
}

.et-profil-section-titre {
    font-family: var(--et-font-titre);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: rgba(var(--et-or-rgb), 0.6);
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.et-profil-ornement {
    font-size: 0.55rem;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   8. LIGNES INFOS — page profil
   -------------------------------------------------------------------------- */
.et-profil-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.et-profil-ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 1px solid rgba(var(--et-or-rgb), 0.08);
}

.et-profil-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--et-font-titre);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(var(--et-or-rgb), 0.6);
    white-space: nowrap;
}

.et-profil-valeur {
    font-family: var(--et-font-texte);
    font-size: 1rem;
    color: rgba(var(--et-clair-rgb), 0.82);
    text-align: right;
}

/* --------------------------------------------------------------------------
   9. CHAMPS FORMULAIRE — label à gauche, champ à droite
   -------------------------------------------------------------------------- */

/* Champs standards — flex */
.et-inscription__champs .control-group,
.et-profil-section .control-group {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 1rem;
}

/* Champ spacer (note * Champ requis) — pleine largeur */
.et-inscription__champs .control-group.field-spacer,
.et-profil-section .control-group.field-spacer {
    display: block;
    color: rgba(var(--et-parchemin-rgb), 0.4);
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Étiquettes */
.et-inscription__champs .control-label,
.et-profil-section .control-label {
    min-width: 180px;
    max-width: 180px;
    text-align: right;
    flex-shrink: 0;
    font-family: var(--et-font-titre);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(var(--et-or-rgb), 0.6);
    margin-bottom: 0;
    padding-top: 0.4rem;
}

/* Conteneur du champ */
.et-inscription__champs .controls,
.et-profil-section .controls {
    flex: 1;
    min-width: 0;
}

/* Inputs */
.et-inscription__champs .controls input,
.et-inscription__champs .controls select,
.et-inscription__champs .controls textarea,
.et-profil-section .controls input,
.et-profil-section .controls select,
.et-profil-section .controls textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--et-or-rgb), 0.25);
    border-radius: 5px;
    padding: 0.6rem 0.85rem;
    color: var(--et-clair);
    font-family: var(--et-font-texte);
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.et-inscription__champs .controls input:focus,
.et-inscription__champs .controls select:focus,
.et-inscription__champs .controls textarea:focus,
.et-profil-section .controls input:focus,
.et-profil-section .controls select:focus,
.et-profil-section .controls textarea:focus {
    outline: none;
    border-color: rgba(var(--et-or-rgb), 0.6);
    background: rgba(0, 0, 0, 0.4);
}

/* Notes sous les champs */
.et-inscription__champs .controls .small,
.et-profil-section .controls .small,
.et-inscription__champs .controls .field-note,
.et-profil-section .controls .field-note {
    font-size: 0.82rem;
    color: rgba(var(--et-parchemin-rgb), 0.4);
    font-style: italic;
    margin-top: 4px;
    display: block;
}

/* Bouton Afficher/Masquer mot de passe — stylisé */
.et-inscription__champs .controls .btn,
.et-profil-section .controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid rgba(var(--et-or-rgb), 0.3);
    border-radius: 4px;
    color: rgba(var(--et-or-rgb), 0.6);
    font-family: var(--et-font-titre);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.et-inscription__champs .controls .btn:hover,
.et-profil-section .controls .btn:hover {
    background: rgba(var(--et-or-rgb), 0.1);
    border-color: rgba(var(--et-or-rgb), 0.6);
    color: var(--et-or);
}

/* Barre de force du mot de passe */
.et-inscription__champs .controls meter,
.et-profil-section .controls meter {
    width: 100%;
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   10. RADIO BOUTONS — CGU et politique de confidentialité
   -------------------------------------------------------------------------- */
.et-profil-section .radio label,
.et-inscription__champs .radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--et-font-texte);
    font-size: 1rem;
    color: var(--et-parchemin);
    letter-spacing: 0;
    text-align: left;
    min-width: 0;
    max-width: none;
    padding-top: 0;
}

/* Fieldset CGU — pleine largeur */
.et-profil-section .control-group:has(fieldset),
.et-inscription__champs .control-group:has(fieldset) {
    display: block;
}

.et-profil-section fieldset,
.et-inscription__champs fieldset {
    border: 1px solid rgba(var(--et-or-rgb), 0.2);
    border-radius: 5px;
    padding: 10px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.et-profil-section legend,
.et-inscription__champs legend {
    font-family: var(--et-font-titre);
    font-size: 0.7rem;
    color: rgba(var(--et-or-rgb), 0.5);
    padding: 0 8px;
    letter-spacing: 1px;
}

/* Texte d'intro CGU */
.et-profil-section .alert-info,
.et-inscription__champs .alert-info {
    background: rgba(var(--et-or-rgb), 0.05);
    border: 1px solid rgba(var(--et-or-rgb), 0.1);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    font-family: var(--et-font-texte);
    font-size: 0.95rem;
    color: rgba(var(--et-parchemin-rgb), 0.7);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   11. BOUTON SOUMETTRE
   -------------------------------------------------------------------------- */
.et-inscription__submit {
    padding: 1.5rem 2rem;
}

.et-inscription__submit .et-profil-btn-edit {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   12. PLACEHOLDER MEMBERSHIP
   -------------------------------------------------------------------------- */
.et-profil-placeholder {
    color: rgba(var(--et-parchemin-rgb), 0.35);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. DÉCO BAS
   -------------------------------------------------------------------------- */
.et-profil-footer-deco {
    padding: 0.65rem;
    text-align: center;
    border-top: 1px solid rgba(var(--et-or-rgb), 0.1);
}

.et-profil-ornement-bas {
    font-family: var(--et-font-titre);
    font-size: 0.65rem;
    color: rgba(var(--et-or-rgb), 0.25);
    letter-spacing: 6px;
}

.usager-raccourcis {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6px;
}

.usager-raccourci {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(var(--et-or-rgb), 0.15);
    color: rgba(var(--et-parchemin-rgb), 0.75);
    font-family: var(--et-font-texte);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.usager-raccourci:last-child {
    border-bottom: none;
}

.usager-raccourci:hover {
    background: rgba(var(--et-or-rgb), 0.08);
    color: var(--et-or);
    padding-left: 14px;
}

.usager-raccourci__icone {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .et-inscription__champs .control-group,
    .et-profil-section .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .et-inscription__champs .control-label,
    .et-profil-section .control-label {
        min-width: 0;
        max-width: none;
        text-align: left;
        padding-top: 0;
    }

    .et-profil-section {
        padding: 1.25rem;
    }

    .et-profil-ligne {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .et-profil-valeur {
        text-align: left;
    }

    .et-profil-nom {
        font-size: 1.2rem;
    }
}
/* ==========================================================================
   BANDE USAGER (haut des pages du profil) : une bande, trois colonnes fixes,
   une hauteur identique quel que soit l'etat (visiteur ou connecte) et la page.
   A coller a la fin de profil.css, A LA PLACE du bloc de usager-colonnes.css
   (celui qui retirait une colonne vide : il n'est plus utile).
   Pour regler : la hauteur (min-height) et les proportions des colonnes (1.3fr 1fr 1fr).
   ========================================================================== */
.bloc-usager {
    margin: 0 0 24px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 10px;
}

.usager-identite {
    padding: 24px 28px;
}

/* Trois colonnes aux proportions fixes : la colonne d'accueil est plus large,
   et rien ne bouge quand un module (inscription) disparait */
.usager-identite .dalles-menu {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    min-height: 300px;
}

/* Sous 1024 px : une colonne, hauteur libre */
@media (max-width: 1024px) {
    .usager-identite .dalles-menu {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

/* ######################################################################## */
/* PARTIE 12 / 23 : plan-du-site.css
   Plan du site (OSMap)
   ######################################################################## */

/* ==========================================================================
   PLAN DU SITE — OSMap
   ========================================================================== */

/* Liens */
.osmap-sitemap a.osmap-link {
    color: rgba(var(--et-parchemin-rgb), .75);
    text-decoration: none;
    transition: color .2s;
}

.osmap-sitemap a.osmap-link:hover {
    color: var(--et-or);
}

/* Titres de sections (h2) */
.osmap-sitemap h2 {
    font-family: var(--et-font-titre);
    font-size: .85rem;
    letter-spacing: 2px;
    color: var(--et-or);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .2);
    padding-bottom: .5rem;
    margin: 1.5rem 0 .75rem;
}

.osmap-sitemap ul {
    list-style: none;
    padding-left: 1.2rem;
    margin: .4rem 0;
}

/* Puces */
.osmap-sitemap li::before {
    content: '◆';
    color: rgba(var(--et-or-rgb), .25);
    font-size: .45rem;
    margin-right: .5rem;
    vertical-align: middle;
}

/* Niveau 0 — liens principaux */
.osmap-sitemap ul.level_0 > li > a {
    color: rgba(var(--et-or-rgb), .85);
    font-family: var(--et-font-titre);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Niveau 1 */
.osmap-sitemap ul.level_1 > li > a {
    color: rgba(var(--et-parchemin-rgb), .75);
    font-size: 1rem;
}

/* Niveau 2+ */
.osmap-sitemap ul.level_2 > li > a,
.osmap-sitemap ul.level_3 > li > a {
    color: rgba(var(--et-parchemin-rgb), .55);
    font-size: .95rem;
}
/* Mise en page : alignée sur les pages légales (colonne centrée, 820 px) */
.osmap-sitemap {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

/* Ornement au-dessus du plan */
.osmap-sitemap::before {
    content: '◆ · · · ◆';
    display: block;
    text-align: center;
    font-family: var(--et-font-titre);
    font-size: .75rem;
    letter-spacing: 10px;
    color: rgba(var(--et-or-rgb), .4);
    margin-bottom: 1.5rem;
}

/* Titres de sections : même gabarit que les titres des pages légales */
.osmap-sitemap h2 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: none;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .1);
    margin: 2.25rem 0 1rem;
}

.osmap-sitemap h2::before {
    content: '◆ ';
}

@media (max-width: 600px) {
    .osmap-sitemap {
        padding: 1.5rem 1rem 3rem;
    }
}

/* ######################################################################## */
/* PARTIE 13 / 23 : Alignements.css
   Couleurs par alignement moral (Lumière, Équilibre, Ombre)
   ######################################################################## */

/* ============================================================
   ÉLLURIA TÉNÉBRIS — Échelle des alignements
   Fichier : alignements.css
   Rôle    : Variantes chromatiques par alignement moral
             Applicable aux fiches personnage, codex,
             factions, royaumes et créatures

   Nomenclature :
     .cs-lumiere-1  à  .cs-lumiere-4   (Lumière)
     .cs-equilibre-1 à .cs-equilibre-3 (Équilibre)
     .cs-ombre-1    à  .cs-ombre-4     (Ombre)

   Chaque variante définit 4 variables :
     --char-accent      couleur principale
     --char-accent-rgb  valeur R,G,B pour rgba()
     --char-accent-dim  version transparente
     --char-section-bg  fond en-têtes et bannière

   ============================================================
   LUMIÈRE — Le Don et la Justice
   ============================================================ */

/* N1 — Le Sacrifice Absolu / L'Amour Transcendant
   Blanc-argent éthéré, lumière spectrale de la Banshee */
.cs-sheet.cs-lumiere-1 {
    --char-accent: var(--et-align-lumiere-1);
    --char-accent-rgb: var(--et-align-lumiere-1-rgb);
    --char-accent-dim: rgba(var(--et-align-lumiere-1-rgb), 0.18);
    --char-section-bg: rgba(var(--et-align-lumiere-1-fond-rgb), 0.60);
}

/* N2 — Le Devoir Incorruptible / Le Bouclier
   Or sacré ancré dans la loyauté */
.cs-sheet.cs-lumiere-2 {
    --char-accent: var(--et-or-fiche);
    --char-accent-rgb: var(--et-or-fiche-rgb);
    --char-accent-dim: rgba(var(--et-or-fiche-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-lumiere-2-fond-rgb), 0.55);
}

/* N3 — L'Altruisme Instinctif / Le Rédempteur
   Vert forêt vivante, refus de la cruauté */
.cs-sheet.cs-lumiere-3 {
    --char-accent: var(--et-align-lumiere-3);
    --char-accent-rgb: var(--et-align-lumiere-3-rgb);
    --char-accent-dim: rgba(var(--et-align-lumiere-3-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-lumiere-3-fond-rgb), 0.55);
}

/* N4 — La Justice Impitoyable / La Lame Punitive
   Ambre brûlant, bien exercé sans pitié */
.cs-sheet.cs-lumiere-4 {
    --char-accent: var(--et-align-lumiere-4);
    --char-accent-rgb: var(--et-align-lumiere-4-rgb);
    --char-accent-dim: rgba(var(--et-align-lumiere-4-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-lumiere-4-fond-rgb), 0.55);
}

/* ============================================================
   ÉQUILIBRE — Détachement et Humanité
   ============================================================ */

/* N5 — La Sagesse Ancienne / La Loi Cosmique
   Gris-vert de la pierre et de la mousse, mémoire des âges */
.cs-sheet.cs-equilibre-1 {
    --char-accent: var(--et-align-equilibre-1);
    --char-accent-rgb: var(--et-align-equilibre-1-rgb);
    --char-accent-dim: rgba(var(--et-align-equilibre-1-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-equilibre-1-fond-rgb), 0.55);
}

/* N6 — La Neutralité Pragmatique / La Survie
   Pierre et cendre, ni héroïsme ni cruauté */
.cs-sheet.cs-equilibre-2 {
    --char-accent: var(--et-align-equilibre-2);
    --char-accent-rgb: var(--et-align-equilibre-2-rgb);
    --char-accent-dim: rgba(var(--et-align-equilibre-2-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-equilibre-2-fond-rgb), 0.55);
}

/* N7 — La Faiblesse et la Rancœur / L'Égoïsme
   Rouille amère, lumière filtrée par l'amertume */
.cs-sheet.cs-equilibre-3 {
    --char-accent: var(--et-align-equilibre-3);
    --char-accent-rgb: var(--et-align-equilibre-3-rgb);
    --char-accent-dim: rgba(var(--et-align-equilibre-3-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-equilibre-3-fond-rgb), 0.58);
}

/* ============================================================
   OMBRE — Cruauté et Néant
   ============================================================ */

/* N8 — La Lâcheté Complice / Le Traître
   Pourpre fané, trahison dans l'obscurité */
.cs-sheet.cs-ombre-1 {
    --char-accent: var(--et-align-ombre-1);
    --char-accent-rgb: var(--et-align-ombre-1-rgb);
    --char-accent-dim: rgba(var(--et-align-ombre-1-rgb), 0.25);
    --char-section-bg: rgba(var(--et-align-ombre-1-fond-rgb), 0.65);
}

/* N9 — La Tyrannie Ordinaire / L'Abus de Pouvoir
   Sang froid, domination sans états d'âme */
.cs-sheet.cs-ombre-2 {
    --char-accent: var(--et-align-ombre-2);
    --char-accent-rgb: var(--et-align-ombre-2-rgb);
    --char-accent-dim: rgba(var(--et-align-ombre-2-rgb), 0.25);
    --char-section-bg: rgba(var(--et-align-ombre-2-fond-rgb), 0.70);
}

/* N10 — Le Parasite de la Souffrance / Le Voyeur Macabre
   Indigo nocturne, vide qui observe et se repaît */
.cs-sheet.cs-ombre-3 {
    --char-accent: var(--et-align-ombre-3);
    --char-accent-rgb: var(--et-align-ombre-3-rgb);
    --char-accent-dim: rgba(var(--et-align-ombre-3-rgb), 0.25);
    --char-section-bg: rgba(var(--et-align-ombre-3-fond-rgb), 0.75);
}

/* N11 — L'Infection Absolue / Le Néant Vorace
   Quasi-néant, lumière absorbée, identité dévorée */
.cs-sheet.cs-ombre-4 {
    --char-accent: var(--et-align-ombre-4);
    --char-accent-rgb: var(--et-align-ombre-4-rgb);
    --char-accent-dim: rgba(var(--et-align-ombre-4-rgb), 0.30);
    --char-section-bg: rgba(var(--et-align-ombre-4-fond-rgb), 0.88);
}

/* ============================================================
   ALIASES DE COMPATIBILITÉ
   Permettent de garder les anciennes classes sur les fiches
   existantes sans casser le rendu
   ============================================================ */

/* Élise Duval = Lumière 1 */
.cs-sheet.cs-elise {
    --char-accent: var(--et-align-lumiere-1);
    --char-accent-rgb: var(--et-align-lumiere-1-rgb);
    --char-accent-dim: rgba(var(--et-align-lumiere-1-rgb), 0.18);
    --char-section-bg: rgba(var(--et-align-lumiere-1-fond-rgb), 0.60);
}

/* Alexis Aether = Lumière 3 */
.cs-sheet.cs-alexis {
    --char-accent: var(--et-align-lumiere-3);
    --char-accent-rgb: var(--et-align-lumiere-3-rgb);
    --char-accent-dim: rgba(var(--et-align-lumiere-3-rgb), 0.22);
    --char-section-bg: rgba(var(--et-align-lumiere-3-fond-rgb), 0.55);
}

/* Thomas Corben = Ombre 3 */
.cs-sheet.cs-thomas {
    --char-accent: var(--et-align-ombre-3);
    --char-accent-rgb: var(--et-align-ombre-3-rgb);
    --char-accent-dim: rgba(var(--et-align-ombre-3-rgb), 0.25);
    --char-section-bg: rgba(var(--et-align-ombre-3-fond-rgb), 0.75);
}

/* ######################################################################## */
/* PARTIE 14 / 23 : Acces-restreint.css
   Badge cadenas des contenus à accès restreint
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — MESSAGE ACCÈS RESTREINT
   Version simplifiée : un badge cadenas discret, plus de grand encart.
   ========================================================================== */

/* Le joomla-alert brut ne doit jamais s'afficher : le JS le remplace
   par le badge ci-dessous dès que le DOM se stabilise, mais on masque
   la version brute au cas où elle apparaîtrait un instant avant. */
#system-message-container joomla-alert[type="danger"] {
    display: none !important;
}

.et-acces-restreint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--et-verre-fume, rgba(var(--et-abysse-rgb), 0.45));
    border: 1px solid rgba(var(--et-or-rgb), 0.35);
    border-radius: 50%;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.et-acces-restreint:hover {
    border-color: var(--et-or, var(--et-or));
    box-shadow: 0 0 10px rgba(var(--et-or-rgb), 0.4);
}

.et-acces-restreint .et-ar-icone {
    font-size: 14px;
    opacity: 0.9;
}

#restricted_info {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 8px 0 !important;
    min-height: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ######################################################################## */
/* PARTIE 15 / 23 : codex-concept.css
   Fiches Codex (atc-...), tuiles du hub, galerie
   ######################################################################## */

/* ============================================================
   ÉLLURIA TÉNÉBRIS — CODEX.css
   Base : CSS intégrée au Générateur Fiche Concept v4
   Renommé : .codex-card / .codex-badge -> .atc-tuile / .atc-tuile-badge
   pour éliminer toute collision de nom avec codex-hub.css
   + extension bestiaire.css pour les fiches créatures/peuples
   ============================================================ */

/* ==========================================================================
   SOMMAIRE (cherche le numero suivi d'un point, ex. "03.")
   01. ALIGNEMENTS (classe seule, sans .cs-sheet)
   02. BANDEAU, FIL D'ARIANE, TITRE, CHAPEAU
   03. FIGURES ET IMAGES EN LIGNE
   03bis. GALERIE D'ILLUSTRATIONS (.atc-galerie)
   04. TABLEAUX
   05. FRISE CHRONOLOGIQUE
   06. MISES EN SITUATION
   07. BADGES DE STATUT
   08. TUILES DU HUB (.atc-tuile)
   ========================================================================== */

/* --- ALIGNEMENTS (classe seule, sans combo .cs-sheet) --- */
/* ==========================================================================
   01. ALIGNEMENTS (classe seule, sans .cs-sheet)
   ========================================================================== */

.cs-lumiere-1 {
    --acc: var(--et-align-lumiere-1);
    --acc-bg: rgba(var(--et-align-lumiere-1-fond-rgb), .6);
}

.cs-lumiere-2 {
    --acc: var(--et-or-fiche);
    --acc-bg: rgba(var(--et-align-lumiere-2-fond-rgb), .55);
}

.cs-lumiere-3 {
    --acc: var(--et-align-lumiere-3);
    --acc-bg: rgba(var(--et-align-lumiere-3-fond-rgb), .55);
}

.cs-lumiere-4 {
    --acc: var(--et-align-lumiere-4);
    --acc-bg: rgba(var(--et-align-lumiere-4-fond-rgb), .55);
}

.cs-equilibre-1 {
    --acc: var(--et-align-equilibre-1);
    --acc-bg: rgba(var(--et-align-equilibre-1-fond-rgb), .55);
}

.cs-equilibre-2 {
    --acc: var(--et-align-equilibre-2);
    --acc-bg: rgba(var(--et-align-equilibre-2-fond-rgb), .55);
}

.cs-equilibre-3 {
    --acc: var(--et-align-equilibre-3);
    --acc-bg: rgba(var(--et-align-equilibre-3-fond-rgb), .58);
}

.cs-ombre-1 {
    --acc: var(--et-align-ombre-1);
    --acc-bg: rgba(var(--et-align-ombre-1-fond-rgb), .65);
}

.cs-ombre-2 {
    --acc: var(--et-align-ombre-2);
    --acc-bg: rgba(var(--et-align-ombre-2-fond-rgb), .7);
}

.cs-ombre-3 {
    --acc: var(--et-align-ombre-3);
    --acc-bg: rgba(var(--et-align-ombre-3-fond-rgb), .75);
}

.cs-ombre-4 {
    --acc: var(--et-align-ombre-4);
    --acc-bg: rgba(var(--et-align-ombre-4-fond-rgb), .88);
}

/* --- BANDEAU / CHAPEAU / FIL D'ARIANE / TITRE --- */
/* ==========================================================================
   02. BANDEAU, FIL D'ARIANE, TITRE, CHAPEAU
   ========================================================================== */

.atc-bandeau {
    margin: 0 0 20px;
}

.atc-bandeau img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(var(--et-or-rgb), .2);
    display: block;
}

/* --- CONTENEUR RACINE --- */
.atc-article-title {
    background: var(--acc-bg, transparent);
    padding: 18px 22px;
    border-radius: 4px 4px 0 0;
}

/* --- BANDEAU / CHAPEAU / FIL D'ARIANE / TITRE --- */
.atc-cat {
    font-family: var(--et-font-titre);
    font-size: .68rem;
    letter-spacing: .18em;
    color: rgba(var(--et-or-rgb), .65);
    margin: 0 0 6px;
    text-transform: uppercase;
}

/* --- BANDEAU / CHAPEAU / FIL D'ARIANE / TITRE --- */
.atc-subtitle {
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .6);
    font-size: 1rem;
    margin: 0 0 10px;
}

.atc-chapeau {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 0 0 26px;
    flex-wrap: wrap;
}

.atc-chapeau .atc-intro {
    flex: 1;
    min-width: 240px;
    padding: 16px 20px;
    border-left: 3px solid var(--acc, rgba(var(--et-or-rgb), .5));
    background: rgba(0, 0, 0, .18);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.75;
}

.atc-chapeau .atc-intro p {
    margin: 0 0 10px;
}

.atc-chapeau .atc-intro p:last-child {
    margin: 0;
}

.atc-chapeau-img {
    margin: 0;
    min-width: 110px;
}

.atc-chapeau-img img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(var(--et-or-rgb), .25);
}

.atc-chapeau-img figcaption {
    font-family: var(--et-font-titre);
    font-size: .58rem;
    letter-spacing: .07em;
    color: rgba(var(--et-or-rgb), .5);
    text-align: center;
    margin-top: 5px;
}

/* --- MISE EN PAGE À DEUX COLONNES --- */
.atc-main {
    min-width: 0;
}

/* --- SOMMAIRE --- */
.atc-toc-title {
    margin: 0 0 10px;
}

/* --- SECTIONS DE CONTENU --- */
.atc-highlight p {
    margin: 0 0 10px;
}

.atc-highlight p:last-child {
    margin: 0;
}

.atc-citation {
    margin: 18px 0;
    padding: 14px 20px;
    border: none;
    border-left: 2px solid rgba(var(--et-or-rgb), .35);
    background: rgba(var(--et-or-rgb), .04);
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .72);
}

.atc-citation p {
    margin: 0 0 8px;
    font-style: italic;
}

.atc-citation p:last-child {
    margin: 0;
}

/* --- FIGURES / IMAGES EN LIGNE --- */
/* ==========================================================================
   03. FIGURES ET IMAGES EN LIGNE
   ========================================================================== */

.atc-figure {
    margin: 16px 0;
}

.atc-figure img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(var(--et-or-rgb), .2);
}

.atc-figure figcaption {
    font-family: var(--et-font-titre);
    font-size: .6rem;
    letter-spacing: .07em;
    color: rgba(var(--et-or-rgb), .5);
    text-align: center;
    margin-top: 5px;
}

.atc-figure--floatRight {
    float: right;
    margin: 6px 0 14px 20px;
}

.atc-figure--floatLeft {
    float: left;
    margin: 6px 20px 14px 0;
}

.atc-figure--center {
    margin: 18px auto;
}

@media (max-width: 640px) {
    .atc-figure--floatRight,
    .atc-figure--floatLeft {
        float: none;
        width: 100% !important;
        margin: 16px 0;
    }
}

/* ==========================================================================
   03bis. GALERIE D'ILLUSTRATIONS (.atc-galerie)
   Rétablie ici : renommée en .atc-bst-galerie pour le bestiaire pendant
   l'harmonisation, mais jamais recréée sous son nom générique pour les
   fiches concept, qui continuent à l'utiliser tel quel.
   ========================================================================== */

.atc-galerie {
    margin: 20px 0;
}

.atc-galerie h2 {
    font-family: var(--et-font-titre);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--et-or);
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.atc-galerie-grid {
    display: grid;
    gap: 12px;
}

.atc-galerie-grid.col1 {
    grid-template-columns: 1fr;
}

.atc-galerie-grid.col2 {
    grid-template-columns: 1fr 1fr;
}

.atc-galerie-grid.col3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.atc-galerie-grid.col4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.atc-galerie-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--et-or-rgb), .2);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(var(--et-fond-profond-rgb), .4);
}

.atc-galerie-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.atc-galerie-item.tall img {
    max-height: 420px;
}

.atc-galerie-item.med img {
    max-height: 280px;
}

.atc-galerie-item.thumb img {
    max-height: 200px;
}

.atc-galerie-item figcaption {
    padding: 6px 10px;
    font-family: var(--et-font-titre);
    font-size: .62rem;
    letter-spacing: .08em;
    color: rgba(var(--et-or-rgb), .5);
    text-align: right;
    border-top: 1px solid rgba(var(--et-or-rgb), .12);
}

@media (max-width: 820px) {
    .atc-galerie-grid.col3,
    .atc-galerie-grid.col4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .atc-galerie-grid.col2,
    .atc-galerie-grid.col3,
    .atc-galerie-grid.col4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- TABLEAUX --- */
/* ==========================================================================
   04. TABLEAUX
   ========================================================================== */

.atc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin: 16px 0;
}

.atc-table th {
    background: rgba(var(--et-fond-profond-rgb), .95);
    color: var(--acc, var(--et-or));
    font-family: var(--et-font-titre);
    font-size: .72rem;
    letter-spacing: .08em;
    padding: 8px 12px;
    text-align: left;
    border: 1px solid rgba(var(--et-or-rgb), .25);
}

.atc-table td {
    padding: 8px 12px;
    border: 1px solid rgba(var(--et-or-rgb), .15);
    color: rgba(var(--et-parchemin-rgb), .85);
    vertical-align: top;
}

.atc-table tbody tr:nth-child(even) td {
    background: rgba(var(--et-fond-profond-rgb), .3);
}

/* --- FRISE CHRONOLOGIQUE --- */
/* ==========================================================================
   05. FRISE CHRONOLOGIQUE
   ========================================================================== */

.atc-frise {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.atc-frise-item {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.atc-frise-date {
    font-family: var(--et-font-titre);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--acc, rgba(var(--et-or-rgb), .65));
    white-space: nowrap;
    min-width: 96px;
}

.atc-frise-evt {
    font-size: 1rem;
    color: rgba(var(--et-parchemin-rgb), .8);
    font-style: italic;
}

/* --- MISES EN SITUATION --- */
/* ==========================================================================
   06. MISES EN SITUATION
   ========================================================================== */

.atc-scens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.atc-scen-box {
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(var(--et-or-rgb), .14);
    padding: 14px 16px;
    border-radius: 4px;
}

.atc-scen-titre {
    font-family: var(--et-font-titre);
    color: var(--acc, var(--et-or));
    font-size: .72rem;
    letter-spacing: .09em;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .12);
    padding-bottom: 5px;
    margin: 0 0 8px;
}

.atc-scen-jet {
    font-family: monospace;
    background: rgba(0, 0, 0, .4);
    color: rgba(var(--et-parchemin-rgb), .6);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: .72rem;
    margin: 0 0 8px;
    display: inline-block;
    border: 1px solid rgba(var(--et-or-rgb), .15);
}

.atc-scen-box p {
    font-size: .95rem;
    line-height: 1.55;
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .78);
    margin: 0 0 8px;
}

.atc-scen-box p:last-child {
    margin: 0;
}

/* --- CONCORDANCE --- */
.atc-lien-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.atc-lien-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    background: rgba(var(--et-or-rgb), .05);
    border: 1px solid rgba(var(--et-or-rgb), .25);
    border-radius: 4px;
    text-decoration: none;
    min-width: 155px;
    max-width: 235px;
}

.atc-lien-item:hover {
    background: rgba(var(--et-or-rgb), .12);
    border-color: var(--acc, var(--et-or));
}

.atc-lien-wip {
    opacity: .5;
    border-style: dashed;
}

.atc-lien-type {
    font-family: var(--et-font-titre);
    font-size: .55rem;
    letter-spacing: .12em;
    color: rgba(var(--et-or-rgb), .55);
}

.atc-lien-nom {
    font-family: var(--et-font-titre);
    font-size: .82rem;
    color: var(--acc, var(--et-or));
}

.atc-lien-acc {
    font-size: .82rem;
    color: rgba(var(--et-parchemin-rgb), .6);
    font-style: italic;
}

/* --- ENCART LATÉRAL (INFOBOX) --- */
.atc-infobox-title {
    margin: 0;
}

.atc-symbol-label {
    font-family: var(--et-font-titre);
    font-size: .6rem;
    letter-spacing: .15em;
    color: rgba(var(--et-parchemin-rgb), .5);
    margin-top: 10px;
    display: block;
}

.atc-infobox-visual {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
}

.atc-fit-cover {
    max-height: 280px;
    object-fit: cover;
}

.atc-fit-contain {
    max-height: 280px;
    object-fit: contain;
    background: rgba(0, 0, 0, .25);
    padding: 10px;
}

.atc-infobox th,
.atc-infobox td {
    padding: 7px 13px;
    vertical-align: top;
    text-align: left;
}

.atc-infobox th {
    color: rgba(var(--et-parchemin-rgb), .5);
    font-size: .68rem;
    font-family: var(--et-font-titre);
    letter-spacing: .05em;
    width: 44%;
    font-weight: 400;
}

.atc-infobox td {
    color: var(--et-parchemin);
    font-size: .98rem;
}

.atc-infobox-statut {
    padding: 10px 14px;
    border-top: 1px solid rgba(var(--et-or-rgb), .15);
    text-align: center;
    margin: 0;
}

/* --- BADGES DE STATUT --- */
/* ==========================================================================
   07. BADGES DE STATUT
   ========================================================================== */

.atc-badge {
    display: inline-block;
    font-family: var(--et-font-titre);
    font-size: .62rem;
    padding: 3px 9px;
    letter-spacing: .08em;
    border-radius: 2px;
}

.atc-badge--ebauche {
    background: rgba(var(--et-statut-ebauche-fond-rgb), .35);
    border: 1px solid rgba(var(--et-align-equilibre-2-rgb), .5);
    color: rgba(var(--et-statut-ebauche-texte-rgb), .8);
}

.atc-badge--en_cours {
    background: rgba(var(--et-statut-encours-fond-rgb), .3);
    border: 1px solid rgba(var(--et-or-rgb), .5);
    color: var(--et-or);
}

.atc-badge--complet {
    background: rgba(var(--et-statut-complet-fond-rgb), .3);
    border: 1px solid var(--et-statut-complet-bord);
    color: var(--et-statut-complet-texte);
}

.atc-badge--valide {
    background: rgba(var(--et-or-rgb), .12);
    border: 1px solid var(--et-or);
    color: var(--et-or);
}

.atc-badge-canon {
    font-style: normal;
}

/* ==========================================================================
   08. TUILES DU HUB (.atc-tuile)
   TUILES DU HUB (.atc-tuile) — NON scopées : utilisées
   directement sur la page Hub par buildTuile(), hors article
   ========================================================================== */

.atc-tuile {
    background: rgba(var(--et-fond-profond-rgb), .7);
    border: 1px solid rgba(var(--et-or-rgb), .25);
    border-left: 4px solid var(--acc, var(--et-or));
    border-radius: 0 6px 6px 0;
    max-width: 290px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.atc-tuile-img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
}

.atc-tuile-content {
    padding: 14px 16px;
    display: block;
}

.atc-tuile-icon {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 8px;
}

.atc-tuile-cat {
    font-family: var(--et-font-titre);
    font-size: .58rem;
    letter-spacing: .14em;
    color: rgba(var(--et-or-rgb), .6);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.atc-tuile-title {
    font-family: var(--et-font-titre);
    font-size: .92rem;
    color: var(--acc, var(--et-or));
    margin: 0 0 6px;
    letter-spacing: .04em;
    display: block;
}

.atc-tuile-desc {
    font-size: .88rem;
    color: rgba(var(--et-parchemin-rgb), .65);
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 10px;
    display: block;
}

.atc-tuile-badge {
    display: inline-block;
    font-family: var(--et-font-titre);
    font-size: .62rem;
    padding: 3px 10px;
    letter-spacing: .08em;
    border-radius: 2px;
}

.atc-tuile-badge--open {
    background: rgba(var(--et-or-rgb), .1);
    border: 1px solid rgba(var(--et-or-rgb), .5);
    color: var(--acc, var(--et-or));
}

/* ######################################################################## */
/* PARTIE 16 / 23 : Bestiaire.css
   Fiches Codex et Bestiaire (créatures, infobox, concordance)
   ######################################################################## */

/* ============================================================
   ÉLLURIA TÉNÉBRIS — bestiaire.css
   Feuille de style des fiches Codex (atc-*)
   Fusionné avec bestiaire.css — voir section BESTIAIRE plus bas
   ============================================================ */
body {
    background: var(--et-fond-profond);
    margin: 0;
    padding: 20px;
    font-family: var(--et-font-texte);
}

/* ================================================================
   CONTENEUR RACINE
   ================================================================ */
.atc-article *,
.atc-article *::before,
.atc-article *::after {
    box-sizing: border-box;
}

.atc-article {
    font-family: var(--et-font-texte);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--et-parchemin);
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 0;
}

/* ================================================================
   FIL D'ARIANE, TITRE, SOUS-TITRE
   ================================================================ */
.atc-breadcrumb {
    font-family: var(--et-font-titre);
    font-size: .75rem;
    color: rgba(var(--et-parchemin-rgb), .5);
    letter-spacing: .08em;
    margin-bottom: 20px;
}

.atc-breadcrumb span {
    color: var(--et-or);
}

.atc-article-title {
    border-bottom: 1px solid rgba(var(--et-or-rgb), .4);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.atc-article-title h1 {
    font-family: var(--et-font-titre);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--et-or);
    letter-spacing: .04em;
    margin: 0 0 6px;
}

.atc-article-title .atc-subtitle {
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .6);
    font-size: 1rem;
}

/* ================================================================
   CHAPEAU / TEASER / NOTE VERROUILLÉE
   ================================================================ */
.atc-intro p {
    margin: 0 0 10px;
}

.atc-intro p:last-child {
    margin: 0;
}

.atc-teaser-cta {
    margin: 0 0 24px;
    padding: 16px 20px;
    border: 1px dashed rgba(var(--et-or-rgb), .45);
    border-radius: 4px;
    background: rgba(var(--et-or-rgb), .06);
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .85);
    text-align: center;
}

.atc-locked-note {
    margin: 0;
    padding: 28px 20px;
    border: 1px dashed rgba(var(--et-or-rgb), .3);
    border-radius: 4px;
    text-align: center;
    font-family: var(--et-font-titre);
    font-size: .78rem;
    letter-spacing: .1em;
    color: rgba(var(--et-parchemin-rgb), .45);
}

/* ================================================================
   MISE EN PAGE À DEUX COLONNES (CONTENU + INFOBOX)
   ================================================================ */
.atc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 820px) {
    .atc-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================================================================
   SOMMAIRE
   ================================================================ */
.atc-toc {
    background: rgba(var(--et-fond-profond-rgb), .85);
    border: 1px solid rgba(var(--et-or-rgb), .25);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: inline-block;
    min-width: 240px;
}

.atc-toc-title {
    font-family: var(--et-font-titre);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--et-or);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
    padding-bottom: 8px;
}

.atc-toc ol {
    padding-left: 18px;
    margin: 0;
}

.atc-toc li {
    font-size: .95rem;
    color: rgba(var(--et-parchemin-rgb), .6);
    margin: 4px 0;
}

.atc-toc a {
    color: rgba(var(--et-or-rgb), .7);
    text-decoration: none;
}

.atc-toc a:hover {
    color: var(--et-or);
    text-decoration: underline;
}

/* ================================================================
   SECTIONS DE CONTENU
   ================================================================ */
.atc-section {
    margin-bottom: 28px;
    overflow: hidden;
}

.atc-section h2 {
    font-family: var(--et-font-titre);
    font-size: 1rem;
    font-weight: 600;
    color: var(--et-or);
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
    padding-bottom: 6px;
    margin: 0 0 14px;
    letter-spacing: .06em;
}

.atc-section h3 {
    font-family: var(--et-font-titre);
    font-size: .85rem;
    color: rgba(var(--et-or-rgb), .85);
    margin: 18px 0 8px;
    letter-spacing: .05em;
    font-style: italic;
}

.atc-section-num {
    color: rgba(var(--et-parchemin-rgb), .4);
    font-size: .85rem;
    margin-right: 8px;
}

.atc-section p {
    font-size: 1.05rem;
    color: rgba(var(--et-parchemin-rgb), .85);
    line-height: 1.5;
    margin: 0 0 12px;
}

.atc-todo {
    background: rgba(var(--et-fond-profond-rgb), .4);
    border: 1px dashed rgba(var(--et-or-rgb), .22);
    border-radius: 3px;
    padding: 10px 14px;
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .4);
    font-size: .92rem;
    margin: 6px 0 12px;
}

.atc-highlight {
    background: rgba(var(--et-fond-profond-rgb), .5);
    border-left: 3px solid rgba(var(--et-or-rgb), .5);
    padding: 14px 18px;
    margin: 16px 0;
    font-style: italic;
    color: rgba(var(--et-parchemin-rgb), .7);
    font-size: 1rem;
}

/* ================================================================
   BESTIAIRE — fusionné depuis bestiaire.css
   ================================================================ */

/* ─── Badge type de créature ─── */
.atc-bst-type {
    display: inline-block;
    font-family: var(--et-font-titre);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 2px;
    border: 1px solid;
    margin-left: 10px;
    vertical-align: middle;
}

.atc-bst-type-faune {
    color: var(--et-type-faune);
    border-color: var(--et-type-faune);
    background: rgba(var(--et-type-faune-rgb), .12);
}

.atc-bst-type-magique {
    color: var(--et-type-magique);
    border-color: var(--et-type-magique);
    background: rgba(var(--et-type-magique-rgb), .12);
}

.atc-bst-type-tenebres {
    color: var(--et-type-tenebres);
    border-color: var(--et-type-tenebres);
    background: rgba(var(--et-type-tenebres-rgb), .12);
}

.atc-bst-type-vegetale {
    color: var(--et-type-vegetale);
    border-color: var(--et-type-vegetale);
    background: rgba(var(--et-type-vegetale-rgb), .12);
}

.atc-bst-type-monture {
    color: var(--et-type-monture);
    border-color: var(--et-type-monture);
    background: rgba(var(--et-type-monture-rgb), .12);
}

.atc-bst-type-hybride {
    color: var(--et-type-hybride);
    border-color: var(--et-type-hybride);
    background: rgba(var(--et-type-hybride-rgb), .12);
}

.atc-bst-type-entite {
    color: var(--et-type-entite);
    border-color: var(--et-type-entite);
    background: rgba(var(--et-type-entite-rgb), .12);
}

/* ─── Niveau de danger ─── */
.atc-bst-danger {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.atc-bst-skull {
    font-size: .95rem;
    line-height: 1;
}

.atc-bst-skull.on-d1 {
    color: var(--et-danger-1);
}

.atc-bst-skull.on-d2 {
    color: var(--et-danger-2);
}

.atc-bst-skull.on-d3 {
    color: var(--et-danger-3);
}

.atc-bst-skull.on-d4 {
    color: var(--et-danger-4);
}

.atc-bst-skull.on-d5 {
    color: var(--et-danger-5);
}

.atc-bst-skull.off {
    color: rgba(var(--et-parchemin-rgb), .15);
}

.atc-bst-danger-label {
    font-family: var(--et-font-titre);
    font-size: .7rem;
    letter-spacing: .06em;
    color: rgba(var(--et-parchemin-rgb), .5);
    margin-left: 6px;
}

/* ─── Bloc observation de terrain ─── */
.atc-bst-observation {
    background: rgba(var(--et-fond-profond-rgb), .3);
    border: 1px solid rgba(var(--et-or-rgb), .2);
    border-left: 3px solid rgba(var(--et-or-rgb), .4);
    border-radius: 0 4px 4px 0;
    padding: 16px 20px;
    margin: 16px 0;
    font-style: italic;
    font-size: 1rem;
    color: rgba(var(--et-parchemin-rgb), .75);
    overflow: hidden;
}

.atc-bst-obs-meta {
    font-family: var(--et-font-titre);
    font-size: .7rem;
    letter-spacing: .1em;
    color: rgba(var(--et-or-rgb), .55);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .15);
    font-style: normal;
}

.atc-bst-obs-body {
    font-style: italic;
}

.atc-bst-obs-body p {
    margin: 0 0 8px;
    color: rgba(var(--et-parchemin-rgb), .75);
}

.atc-bst-obs-body p:last-child {
    margin-bottom: 0;
}

/* ─── Galerie d'illustrations ─── */
.atc-bst-gallery {
    margin: 20px 0;
}

.atc-bst-gallery-title {
    font-family: var(--et-font-titre);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--et-or);
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.atc-bst-gallery-grid {
    display: grid;
    gap: 12px;
}

.atc-bst-gallery-grid.col1 {
    grid-template-columns: 1fr;
}

.atc-bst-gallery-grid.col2 {
    grid-template-columns: 1fr 1fr;
}

.atc-bst-gallery-grid.col3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.atc-bst-gallery-grid.col4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.atc-bst-gallery-item {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--et-or-rgb), .2);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(var(--et-fond-profond-rgb), .4);
}

.atc-bst-gallery-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.atc-bst-gallery-item.tall img {
    max-height: 420px;
}

.atc-bst-gallery-item.med img {
    max-height: 280px;
}

.atc-bst-gallery-item.thumb img {
    max-height: 200px;
}

.atc-bst-gallery-caption {
    padding: 6px 10px;
    font-family: var(--et-font-titre);
    font-size: .62rem;
    letter-spacing: .08em;
    color: rgba(var(--et-or-rgb), .5);
    text-align: right;
    border-top: 1px solid rgba(var(--et-or-rgb), .15);
    background: rgba(var(--et-fond-profond-rgb), .6);
}

/* ─── Section Bible interne (Scellé 🔒) ─── */
.atc-bst-bible {
    background: rgba(var(--et-bible-fond-rgb), .2);
    border: 1px solid rgba(var(--et-type-tenebres-rgb), .35);
    border-radius: 4px;
    padding: 16px 20px;
    margin-top: 32px;
}

.atc-bst-bible-title {
    font-family: var(--et-font-titre);
    font-size: .75rem;
    letter-spacing: .1em;
    color: var(--et-bible-titre);
    border-bottom: 1px solid rgba(var(--et-type-tenebres-rgb), .25);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.atc-bst-bible p {
    color: rgba(var(--et-parchemin-rgb), .65);
    font-size: .95rem;
}

/* ─── Responsive galerie ─── */
@media (max-width: 768px) {
    .atc-bst-gallery-grid.col2,
    .atc-bst-gallery-grid.col3,
    .atc-bst-gallery-grid.col4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .atc-bst-gallery-grid.col2,
    .atc-bst-gallery-grid.col3,
    .atc-bst-gallery-grid.col4 {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   CONCORDANCE (liens croisés vers d'autres fiches)
   ================================================================ */
.atc-concordance {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--et-or-rgb), .15);
}

.codex-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.codex-link-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(var(--et-or-rgb), .06);
    border: 1px solid rgba(var(--et-or-rgb), .25);
    border-radius: 4px;
    text-decoration: none;
    min-width: 150px;
    max-width: 230px;
}

.codex-link-btn:hover {
    background: rgba(var(--et-or-rgb), .12);
    border-color: var(--et-or);
}

.codex-link-btn--wip {
    opacity: .5;
    border-style: dashed;
}

.codex-link-type {
    font-family: var(--et-font-titre);
    font-size: .55rem;
    letter-spacing: .12em;
    color: rgba(var(--et-or-rgb), .55);
}

.codex-link-nom {
    font-family: var(--et-font-titre);
    font-size: .82rem;
    color: var(--et-or);
}

.codex-link-acc {
    font-size: .82rem;
    color: rgba(var(--et-parchemin-rgb), .6);
    font-style: italic;
}

/* ================================================================
   PIED DE FICHE
   ================================================================ */
.atc-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--et-or-rgb), .2);
    font-size: .85rem;
    color: rgba(var(--et-parchemin-rgb), .35);
    font-style: italic;
}

/* ================================================================
   INFOBOX (colonne latérale type encyclopédie)
   ================================================================ */
.atc-infobox {
    background: rgba(var(--et-fond-profond-rgb), .85);
    border: 1px solid rgba(var(--et-or-rgb), .35);
    border-top: 3px solid var(--et-or);
    border-radius: 6px;
    font-size: .95rem;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.atc-infobox-title {
    background: rgba(var(--et-fond-profond-rgb), .95);
    padding: 10px 14px;
    font-family: var(--et-font-titre);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--et-or);
    text-align: center;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
}

.atc-infobox-symbol {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .25);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--et-or);
}

.atc-infobox-symbol .atc-symbol-label {
    font-family: var(--et-font-titre);
    font-size: .7rem;
    letter-spacing: .15em;
    color: rgba(var(--et-parchemin-rgb), .5);
    margin-top: 8px;
    display: block;
}

.atc-infobox table {
    width: 100%;
    border-collapse: collapse;
}

.atc-infobox tr {
    border-bottom: 1px solid rgba(var(--et-or-rgb), .15);
}

.atc-infobox tr:last-child {
    border-bottom: none;
}

.atc-infobox td {
    padding: 7px 14px;
    vertical-align: top;
}

.atc-infobox td:first-child {
    color: rgba(var(--et-parchemin-rgb), .5);
    font-size: .72rem;
    font-family: var(--et-font-titre);
    letter-spacing: .05em;
    width: 45%;
}

.atc-infobox td:last-child {
    color: var(--et-parchemin);
    font-family: var(--et-font-texte);
    font-size: 1rem;
}

/* ================================================================
   BADGES DE STATUT (canon / à faire)
   ================================================================ */
.atc-badge-canon {
    display: inline-block;
    background: rgba(var(--et-statut-complet-fond-rgb), .3);
    border: 1px solid var(--et-statut-complet-bord);
    color: var(--et-statut-complet-texte);
    font-size: .65rem;
    padding: 2px 8px;
    font-family: var(--et-font-titre);
    letter-spacing: .08em;
}

.atc-badge-todo {
    display: inline-block;
    background: rgba(var(--et-statut-todo-fond-rgb), .3);
    border: 1px solid var(--et-statut-todo-bord);
    color: var(--et-statut-todo-texte);
    font-size: .65rem;
    padding: 2px 8px;
    font-family: var(--et-font-titre);
    letter-spacing: .08em;
}

/* ================================================================
   CARTES DE RENVOI EN ARTICLE
   Scopées .atc-article pour ne jamais entrer en collision avec
   les cartes du Hub (codex-hub.css, classes homonymes .codex-card)
   ================================================================ */
.atc-article .codex-card {
    background: rgba(var(--et-fond-profond-rgb), .7);
    border: 1px solid rgba(var(--et-or-rgb), .25);
    border-radius: 6px;
    max-width: 280px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.atc-article .codex-card--img {
    padding: 0;
}

.atc-article .codex-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.atc-article .codex-card-content {
    padding: 14px 16px;
    display: block;
}

.atc-article .codex-card-icon {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 8px;
}

.atc-article .codex-card-title {
    font-family: var(--et-font-titre);
    font-size: .9rem;
    color: var(--et-or);
    margin: 0 0 6px;
    letter-spacing: .04em;
    display: block;
}

.atc-article .codex-card-desc {
    font-size: .88rem;
    color: rgba(var(--et-parchemin-rgb), .65);
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 10px;
    display: block;
}

.atc-article .codex-card-danger {
    display: block;
    margin: 0 0 10px;
}

.atc-article .codex-badge {
    display: inline-block;
    font-family: var(--et-font-titre);
    font-size: .62rem;
    padding: 3px 10px;
    letter-spacing: .08em;
    border-radius: 2px;
}

.atc-article .codex-badge--open {
    background: rgba(var(--et-or-rgb), .1);
    border: 1px solid rgba(var(--et-or-rgb), .5);
    color: var(--et-or);
}

/* ######################################################################## */
/* PARTIE 17 / 23 : audio-player.css
   Lecteur audio du Journal d'Élise
   ######################################################################## */

/* ============================================
   JOURNAL D'ÉLISE - audio-player.css
   Elluria Ténébris
   ============================================ */

/* Feuille de journal */
.et-journal-page {
    position: relative;
    width: 100%;
    background-image: url('/images/Elluria_tenebris/journal/parchemin_3.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    aspect-ratio: 1413 / 937;
    box-sizing: border-box;
    padding: 8% 10% 18% 10%;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}

.et-journal-page__titre {
    font-family: var(--et-font-manuscrit);
    font-weight: 400;
    font-size: clamp(20px, 2.8vw, 40px);
    color: var(--et-journal-titre);
    margin: 0 0 0.2em;
    line-height: 1.5;
}

.et-journal-page__date {
    font-family: var(--et-font-manuscrit);
    font-weight: 400;
    font-size: clamp(15px, 1.8vw, 26px);
    color: var(--et-journal-date);
    margin: 0 0 0.8em;
}

.et-journal-page__sep {
    border: none;
    border-top: 1px solid rgba(var(--et-journal-brun-rgb), 0.25);
    margin: 0 0 0.8em;
}

.et-journal-page__texte p {
    font-family: var(--et-font-manuscrit);
    font-weight: 400;
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: 1.5;
    color: var(--et-journal-brun);
    margin: 0;
    display: block;
}

/* Lecteur natif - fondu dans le parchemin */
.et-journal-audio-natif {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    accent-color: var(--et-journal-brun);
    background: transparent;
    border-radius: 4px;
    padding: 6px 10px;
}

.et-journal-audio-natif:hover {
    background: rgba(var(--et-journal-survol-rgb), 1);
}

/* Intro grille */
.et-journal-intro {
    margin-bottom: 0.5rem;
}

.et-journal-date-intro {
    font-family: var(--et-font-titre);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--et-or);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.et-journal-accroche {
    color: var(--et-parchemin);
    font-family: var(--et-font-texte);
    font-size: 16px;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .et-journal-page {
        padding: 10% 8% 22% 8%;
    }

    .et-journal-page__texte p {
        font-size: clamp(13px, 4vw, 18px);
    }

    .et-journal-audio-natif {
        width: 80%;
    }
}

/* ######################################################################## */
/* PARTIE 18 / 23 : banniere-commercial.css
   Bannières commerciales horizontale et verticale
   ######################################################################## */

/* ==========================================================================
   ÉLLURIA TÉNÉBRIS - BANNIÈRE COMMERCIALE
   Variante horizontale (.elt-h) et variante verticale (.elt-v).
   --elt-gold et --elt-navy ne sont définies dans aucun fichier CSS du site.
   ========================================================================== */

/* ==========================================================================
   SOMMAIRE (cherche le numero suivi d'un point, ex. "03.")
   01. BANNIÈRE HORIZONTALE (.elt-h)
   02. ADAPTATION HORIZONTALE AU CONTENEUR (900px puis 480px)
   03. BANNIÈRE VERTICALE (.elt-v)
   ========================================================================== */

/* ==========================================================================
   01. BANNIÈRE HORIZONTALE (.elt-h)
   ========================================================================== */

.elt-h {
    display: flex;
    align-items: stretch;
    min-height: 200px;
}

.elt-h .elt-cover {
    width: 132px;
}

.elt-h .elt-price {
    width: 160px;
    background: var(--elt-gold);
    color: var(--elt-navy);
}

.elt-h-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px 28px;
}

.elt-h .elt-cycle {
    font-style: normal;
    font-weight: 600;
    color: var(--et-elt-creme);
}

.elt-h-act {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 18px 26px 18px 6px;
}

.elt-h .elt-cta {
    background: var(--elt-gold);
    color: var(--elt-navy);
}

.elt-h .elt-cta:hover,
.elt-h .elt-cta:focus {
    background: var(--et-elt-or-survol);
    color: var(--elt-navy);
}

.elt-meta i {
    color: rgba(var(--et-elt-or-rgb), .35);
}

/* ==========================================================================
   02. ADAPTATION HORIZONTALE AU CONTENEUR (900px puis 480px)
   ========================================================================== */

@container (max-width: 900px) {
    .elt-h {
        flex-wrap: wrap;
    }

    .elt-h .elt-cover {
        width: 110px;
        min-height: 165px;
    }

    .elt-h .elt-price {
        width: 130px;
        min-height: 165px;
    }

    .elt-h-body {
        flex: 1 1 100%;
        order: 3;
        padding: 16px 20px;
    }

    .elt-h-act {
        flex: 1 1 100%;
        order: 4;
        padding: 0 20px 20px;
        align-items: center;
    }

    .elt-h .elt-cta {
        width: 100%;
    }
}

@container (max-width: 480px) {
    .elt-h .elt-cover,
    .elt-h .elt-price {
        flex: 1 1 50%;
        width: auto;
    }

    .elt-h .elt-price b {
        font-size: 36px;
    }
}

/* ==========================================================================
   03. BANNIÈRE VERTICALE (.elt-v)
   ========================================================================== */

.elt-v {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.elt-v-top {
    display: flex;
}

.elt-v-visual {
    flex: 0 0 34%;
    display: flex;
    flex-direction: column;
}

.elt-v-visual .elt-cover {
    flex: 1;
    min-height: 150px;
}

.elt-v-visual .elt-price {
    padding: 10px 0;
}

.elt-v-info {
    flex: 1;
    min-width: 0;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
}

.elt-v .elt-title {
    font-size: 20px;
}

.elt-v .elt-cycle {
    font-size: 17px;
}

.elt-category {
    font-size: 14px;
    color: var(--et-elt-creme);
}

.elt-meta-v {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(var(--et-elt-creme-rgb), .6);
    margin-top: 6px;
}

.elt-meta-v b {
    font-weight: 400;
    color: var(--elt-gold);
    letter-spacing: .05em;
}

.elt-cta-full {
    display: block;
    text-align: center;
    background: var(--elt-gold);
    color: var(--elt-navy);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .12em;
    padding: 14px 0;
    margin: 18px 22px 8px;
}

/* ######################################################################## */
/* PARTIE 19 / 23 : page-illustrations.css
   Les Ateliers d'Élluria : illustration isolée et page de présentation
   ######################################################################## */

/* ═══════════════════════════════════════════════════════════
   ÉLLURIA TÉNÉBRIS - Les Ateliers d'Élluria
   Illustration isolée + page de présentation (onglets, grille)
   Fichier : templates/elluria_pure_test/css/page-illustrations.css
   ═══════════════════════════════════════════════════════════ */
.elluria-illustration-page {
    max-width: 1100px;
    margin: 0 auto;
}

.illu-hero {
    width: 100%;
    line-height: 0;
    margin-bottom: 1.75rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(var(--et-or-fiche-rgb), 0.2);
}

.illu-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.illu-title {
    font-family: var(--et-font-titre);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--et-illu-titre);
    letter-spacing: 0.5px;
    margin: 0 0 1.25rem;
    text-align: center;
}

.illu-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.5rem;
}

.illu-tag {
    font-family: var(--et-font-titre);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(var(--et-or-fiche-rgb), 0.75);
    border: 1px solid rgba(var(--et-or-fiche-rgb), 0.3);
    border-radius: 3px;
    padding: 6px 12px;
}

.illu-content {
    font-family: 'Crimson Text', Georgia, serif;
    color: rgba(var(--et-illu-texte-rgb), 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
    margin: 0 auto;
}

.illu-content-split {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
}

.illu-content-split .illu-table th,
.illu-content-split .illu-table td {
    font-family: 'Crimson Text', Georgia, serif;
}

.illu-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    table-layout: fixed;
}

.illu-content table td,
.illu-content table th {
    padding: 12px 15px;
    border: 1px solid rgba(var(--et-or-fiche-rgb), 0.2);
    text-align: left;
    vertical-align: top;
}

.illu-content table th {
    font-family: var(--et-font-titre);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(var(--et-or-fiche-rgb), 0.6);
    background: rgba(var(--et-or-fiche-rgb), 0.04);
    width: 25%;
    white-space: nowrap;
}

.illu-content table td {
    color: var(--et-illu-titre);
    font-size: 1rem;
    font-style: italic;
}

@media (max-width: 560px) {
    .illu-title {
        font-size: 1.2rem;
    }

    .illu-content {
        font-size: 1rem;
    }

    .illu-content table td,
    .illu-content table th {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Les Ateliers d'Élluria - page de présentation (onglets PUR CSS)
   ═══════════════════════════════════════════════════════════ */

/* 1. Conteneur principal obligatoire pour englober la mécanique */
.portfolio-tabs-container {
    width: 100%;
}

/* 2. On masque les inputs radio qui servent de moteur */
.portfolio-tabs-container input[type="radio"] {
    display: none;
}

/* 3. Barre de navigation */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid rgba(var(--et-or-fiche-rgb), 0.2);
    margin-bottom: 1.5rem;
}

/* 4. Style des onglets (labels) */
.tab-label {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    color: var(--et-parchemin);
    padding: 0.5em 1em;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 0.95rem;
}

.tab-label:hover {
    color: var(--et-or);
}

.tab-label:focus-visible {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

/* 5. On masque tous les panneaux de contenu par défaut */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

/* Éclairer l'onglet actif quand son radio est coché */
#tab1:checked ~ .tab-nav label[for="tab1"],
#tab2:checked ~ .tab-nav label[for="tab2"],
#tab3:checked ~ .tab-nav label[for="tab3"],
#tab4:checked ~ .tab-nav label[for="tab4"],
#tab5:checked ~ .tab-nav label[for="tab5"],
#tab6:checked ~ .tab-nav label[for="tab6"] {
    color: var(--et-or);
    border-bottom: 2px solid var(--et-or);
}

/* Afficher le panneau correspondant au radio coché */
#tab1:checked ~ .tab-content-wrapper #panel1,
#tab2:checked ~ .tab-content-wrapper #panel2,
#tab3:checked ~ .tab-content-wrapper #panel3,
#tab4:checked ~ .tab-content-wrapper #panel4,
#tab5:checked ~ .tab-content-wrapper #panel5,
#tab6:checked ~ .tab-content-wrapper #panel6 {
    display: block;
}

/* Animation douce d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style du titre interne aux onglets */
.tab-panel__titre {
    font-family: var(--et-font-display);
    color: var(--et-or);
    font-size: 1.4rem;
    margin: 0 0 1rem;
}

/* ═══════════════════════════════════════════════════════════
   PLANCHE ILLUSTRÉE — Générateur Galerie v1
   Repris du gabarit par défaut du générateur (illu-cat, illu-intro,
   illu-teaser-cta, illu-locked-note, illu-groupe, illu-encart,
   illu-note-atelier, illu-galerie, illu-vignette, illu-references),
   couleurs remplacées par les variables déjà utilisées plus haut
   dans ce fichier (et-or-fiche, et-illu-titre, et-illu-texte-rgb).
   .atc-tuile n'est pas repris ici : déjà défini dans codex-concept.css,
   chargé sur toutes les pages — l'ajouter ici dupliquerait la règle
   et changerait aussi l'aspect des tuiles du Codex. Demander avant.
   ═══════════════════════════════════════════════════════════ */

.illu-cat {
    font-family: var(--et-font-titre);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--et-or-fiche-rgb), 0.65);
    margin: 0 0 7px;
}

.illu-intro {
    padding: 16px 20px;
    border-left: 3px solid rgba(var(--et-or-fiche-rgb), 0.5);
    background: rgba(0, 0, 0, 0.18);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 26px;
    color: rgba(var(--et-illu-texte-rgb), 0.85);
}

.illu-intro p {
    margin: 0 0 10px;
}

.illu-intro p:last-child {
    margin: 0;
}

.illu-teaser-cta {
    margin: 0 0 22px;
    padding: 16px 20px;
    border: 1px dashed rgba(var(--et-or-fiche-rgb), 0.45);
    border-radius: 4px;
    background: rgba(var(--et-or-fiche-rgb), 0.06);
    font-style: italic;
    color: rgba(var(--et-illu-texte-rgb), 0.85);
    text-align: center;
}

.illu-locked-note {
    margin: 0;
    padding: 28px 20px;
    border: 1px dashed rgba(var(--et-or-fiche-rgb), 0.3);
    border-radius: 4px;
    text-align: center;
    font-family: var(--et-font-titre);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: rgba(var(--et-illu-texte-rgb), 0.45);
}

.illu-groupe {
    margin: 0 0 30px;
}

.illu-groupe-titre {
    font-family: var(--et-font-titre);
    font-size: 1rem;
    font-weight: 600;
    color: var(--et-illu-titre);
    border-bottom: 1px solid rgba(var(--et-or-fiche-rgb), 0.25);
    padding-bottom: 6px;
    margin: 0 0 14px;
    letter-spacing: 0.06em;
}

.illu-groupe p {
    font-size: 1.05rem;
    color: rgba(var(--et-illu-texte-rgb), 0.85);
    line-height: 1.5;
    margin: 0 0 12px;
}

.illu-encart {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(var(--et-or-fiche-rgb), 0.5);
    padding: 14px 18px;
    margin: 0 0 16px;
}

.illu-encart p {
    margin: 0 0 10px;
}

.illu-encart p:last-child {
    margin: 0;
}

.illu-note-atelier {
    margin: 0 0 18px;
    padding: 14px 20px;
    border: none;
    border-left: 2px solid rgba(var(--et-or-fiche-rgb), 0.35);
    background: rgba(var(--et-or-fiche-rgb), 0.04);
    font-style: italic;
    color: rgba(var(--et-illu-texte-rgb), 0.72);
}

.illu-note-atelier p {
    margin: 0 0 8px;
    font-style: italic;
}

.illu-note-atelier p:last-child {
    margin: 0;
}

.illu-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0 0;
}

.illu-galerie--c1 {
    grid-template-columns: minmax(0, 1fr);
}

.illu-galerie--c2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.illu-galerie--c3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.illu-galerie--c4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 820px) {
    .illu-galerie--c3,
    .illu-galerie--c4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .illu-galerie,
    .illu-galerie--c2,
    .illu-galerie--c3,
    .illu-galerie--c4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.illu-vignette {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.illu-vignette img {
    width: 100%;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(var(--et-or-fiche-rgb), 0.22);
    background: rgba(0, 0, 0, 0.25);
}

.illu-vignette figcaption {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.illu-vignette-legend {
    font-family: var(--et-font-titre);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(var(--et-or-fiche-rgb), 0.75);
}

.illu-vignette-note {
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(var(--et-illu-texte-rgb), 0.6);
    line-height: 1.5;
}

.illu-references {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--et-or-fiche-rgb), 0.18);
}

.illu-references-title {
    font-family: var(--et-font-titre);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--et-illu-titre);
    margin: 0 0 10px;
}

.illu-references-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.illu-references-list li {
    padding: 8px 14px;
    background: rgba(var(--et-or-fiche-rgb), 0.05);
    border: 1px solid rgba(var(--et-or-fiche-rgb), 0.25);
    border-radius: 4px;
    font-size: 0.92rem;
}

.illu-references-list a {
    color: var(--et-illu-titre);
    text-decoration: none;
    font-family: var(--et-font-titre);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.illu-references-list a:hover {
    text-decoration: underline;
}

.illu-references-list li.illu-reference-wip {
    opacity: 0.5;
    border-style: dashed;
    font-family: var(--et-font-titre);
    font-size: 0.78rem;
    color: rgba(var(--et-illu-texte-rgb), 0.6);
}

.illu-reference-wip span {
    font-family: var(--et-font-texte);
    font-style: italic;
    letter-spacing: 0;
}

/* ######################################################################## */
/* PARTIE 20 / 23 : Les-medias.css
   Classeur à onglets (Médias, Ateliers)
   ######################################################################## */

/* ==========================================================================
   MEDIAS
   ========================================================================== */
   /* Classeur a intercalaires - Elluria Tenebris.
   Aucun JS : les onglets reposent sur des boutons radio masques.
   Tout est porte sous #et-ateliers : ce bloc ne peut rien casser
   ailleurs dans la page, ni etre casse par le template. */

/* ==========================================================================
   SOMMAIRE (cherche le numero suivi d'un point, ex. "03.")
   01. CONTENEUR ET BASE
   02. BOUTONS RADIO (PILOTAGE DES ONGLETS)
   03. RANGEE D'INTERCALAIRES (LANGUETTES)
   04. PAGE DU CLASSEUR (PANNEAUX)
   05. BLOC DE PRESENTATION AVEC IMAGE
   06. ONGLET OUVERT ET FOCUS CLAVIER (x6)
   07. IMAGE DE PRESENTATION PAR ONGLET (p1 a p6)
   08. ACCORDEON MOBILE (moins de 640px)
   ========================================================================== */

/* ==========================================================================
   01. CONTENEUR ET BASE
   ========================================================================== */

#et-ateliers {
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--et-font-texte);
}

#et-ateliers > :first-child {
    margin-top: 0;
}

#et-ateliers > :last-child {
    margin-bottom: 0;
}

#et-ateliers *,
#et-ateliers *::before,
#et-ateliers *::after {
    box-sizing: border-box;
}

#et-ateliers img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   02. BOUTONS RADIO (PILOTAGE DES ONGLETS)
   Les radios pilotent les onglets sans JS. Puce invisible au repos
   (elle garde sa place dans la mise en page, mais aucun trait,
   aucun remplissage ne la rend visible) : elle n'apparait que
   cochee, sous forme d'un point lumineux dore.
   ========================================================================== */

#et-ateliers .et-cl-r {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    box-shadow: none;
    transition: opacity .2s ease, box-shadow .2s ease;
}

#et-ateliers .et-cl-r:checked {
    opacity: 1;
    background: var(--et-or);
    box-shadow: 0 0 10px 4px rgba(var(--et-or-rgb), .9), inset 0 0 3px rgba(255, 255, 255, .6);
}

/* ==========================================================================
   03. RANGEE D'INTERCALAIRES (LANGUETTES)
   Rangee d'intercalaires : 6 languettes qui se partagent la
   largeur du bloc. Elles ne debordent donc jamais du conteneur
   et ne tombent jamais seules sur une deuxieme ligne. Le texte,
   lui, peut desormais s'etaler sur deux lignes plutot que d'etre
   tronque : la largeur de chaque colonne reste fixe (1 sur 6),
   seule la hauteur de la rangee s'adapte au contenu le plus long.
   ========================================================================== */

#et-ateliers .et-cl-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
}

#et-ateliers .et-cl-nav label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    font-family: var(--et-font-titre);
    font-size: 1rem;
    letter-spacing: .2px;
    line-height: 1.5;
    text-align: center;
    padding: 12px 10px 13px;
    border: 1px solid rgba(var(--et-or-rgb), .35);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: var(--et-media-onglet);
    color: var(--et-media-texte);
    cursor: pointer;
    box-shadow: inset 0 -7px 12px rgba(0, 0, 0, .26);
    transition: background .2s ease, color .2s ease;
}

#et-ateliers .et-cl-nav label span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

#et-ateliers .et-cl-nav label:hover {
    background: rgba(var(--et-or-rgb), .18);
}

/* ==========================================================================
   04. PAGE DU CLASSEUR (PANNEAUX)
   La page du classeur : aucune hauteur, aucun overflow, aucune
   largeur maxi - un module place dedans coule comme dans un article.
   ========================================================================== */

#et-ateliers .et-cl-panels {
    position: relative;
    margin: 0;
}

#et-ateliers .et-cl-panel {
    display: none;
    min-width: 0;
    background: var(--et-media-panneau);
    border: 1px solid rgba(var(--et-or-rgb), .32);
    border-top: 3px solid var(--et-or);
    border-radius: 0 4px 4px 4px;
    padding: 26px clamp(14px, 2.2vw, 30px) 30px;
    color: var(--et-media-texte);
    line-height: 1.5;
}

#et-ateliers .et-cl-acc {
    display: none;
}

#et-ateliers .et-cl-pres {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--et-or);
    line-height: 1.5;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .2);
}

/* ==========================================================================
   05. BLOC DE PRESENTATION AVEC IMAGE
   Bloc de presentation avec image. L'image est un fond cadre en
   object-fit:cover sur une colonne etiree : sa hauteur est donc
   exactement celle du texte, quelle que soit la longueur de celui-ci.
   ========================================================================== */

#et-ateliers .et-cl-intro {
    display: flex;
    gap: 28px;
    align-items: stretch;
    margin: 0 0 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(var(--et-or-rgb), .2);
}

#et-ateliers .et-cl-intro-img {
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 150px;
    overflow: hidden;
}

#et-ateliers .et-cl-intro-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#et-ateliers .et-cl-intro-body {
    flex: 1 1 320px;
    min-width: 0;
    align-self: center;
}

#et-ateliers .et-cl-intro-titre {
    font-family: var(--et-font-texte);
    font-style: italic;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--et-or);
    line-height: 1.5;
    margin: 0 0 12px;
}

#et-ateliers .et-cl-intro-stitre {
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(var(--et-media-texte-rgb), .72);
    margin: 0 0 16px;
}

#et-ateliers .et-cl-intro-body p.et-cl-intro-txt {
    font-size: 1.05rem;
    color: var(--et-media-texte);
    line-height: 1.5;
    margin: 0 0 12px;
}

#et-ateliers .et-cl-intro-body p.et-cl-intro-txt:last-child {
    margin-bottom: 0;
}

#et-ateliers .et-cl-body > :first-child {
    margin-top: 0;
}

#et-ateliers .et-cl-body > :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   06. ONGLET OUVERT ET FOCUS CLAVIER (x6)
   Onglet ouvert : la languette descend de 3px pour recouvrir le
   lisere de la page - c'est ce chevauchement qui fait l'effet classeur.
   ========================================================================== */

#et-ateliers:has(.et-cl-r1:checked) .et-cl-nav label:nth-child(1) {
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-weight: 600;
    margin-bottom: -3px;
    padding-bottom: 13px;
    z-index: 3;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .32);
}

#et-ateliers:has(.et-cl-r1:checked) .et-cl-p1 {
    display: block;
}

#et-ateliers:has(.et-cl-r2:checked) .et-cl-nav label:nth-child(2) {
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-weight: 600;
    margin-bottom: -3px;
    padding-bottom: 13px;
    z-index: 3;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .32);
}

#et-ateliers:has(.et-cl-r2:checked) .et-cl-p2 {
    display: block;
}

#et-ateliers:has(.et-cl-r3:checked) .et-cl-nav label:nth-child(3) {
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-weight: 600;
    margin-bottom: -3px;
    padding-bottom: 13px;
    z-index: 3;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .32);
}

#et-ateliers:has(.et-cl-r3:checked) .et-cl-p3 {
    display: block;
}

#et-ateliers:has(.et-cl-r4:checked) .et-cl-nav label:nth-child(4) {
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-weight: 600;
    margin-bottom: -3px;
    padding-bottom: 13px;
    z-index: 3;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .32);
}

#et-ateliers:has(.et-cl-r4:checked) .et-cl-p4 {
    display: block;
}

#et-ateliers:has(.et-cl-r5:checked) .et-cl-nav label:nth-child(5) {
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-weight: 600;
    margin-bottom: -3px;
    padding-bottom: 13px;
    z-index: 3;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .32);
}

#et-ateliers:has(.et-cl-r5:checked) .et-cl-p5 {
    display: block;
}

#et-ateliers:has(.et-cl-r6:checked) .et-cl-nav label:nth-child(6) {
    background: var(--et-or);
    color: var(--et-fond-profond);
    font-weight: 600;
    margin-bottom: -3px;
    padding-bottom: 13px;
    z-index: 3;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, .32);
}

#et-ateliers:has(.et-cl-r6:checked) .et-cl-p6 {
    display: block;
}

#et-ateliers:has(.et-cl-r1:focus-visible) .et-cl-nav label:nth-child(1) {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

#et-ateliers:has(.et-cl-r2:focus-visible) .et-cl-nav label:nth-child(2) {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

#et-ateliers:has(.et-cl-r3:focus-visible) .et-cl-nav label:nth-child(3) {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

#et-ateliers:has(.et-cl-r4:focus-visible) .et-cl-nav label:nth-child(4) {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

#et-ateliers:has(.et-cl-r5:focus-visible) .et-cl-nav label:nth-child(5) {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

#et-ateliers:has(.et-cl-r6:focus-visible) .et-cl-nav label:nth-child(6) {
    outline: 2px solid var(--et-or);
    outline-offset: 2px;
}

/* ==========================================================================
   07. IMAGE DE PRESENTATION PAR ONGLET (p1 a p6)
   ========================================================================== */

#et-ateliers .et-cl-p1 .et-cl-intro-img {
    flex-basis: 150px;
    max-width: 150px;
}

#et-ateliers .et-cl-p2 .et-cl-intro-img {
    flex-basis: 150px;
    max-width: 150px;
}

#et-ateliers .et-cl-p3 .et-cl-intro-img {
    flex-basis: 150px;
    max-width: 150px;
}

#et-ateliers .et-cl-p4 .et-cl-intro-img {
    flex-basis: 150px;
    max-width: 150px;
}

#et-ateliers .et-cl-p5 .et-cl-intro-img {
    flex-basis: 150px;
    max-width: 150px;
}

#et-ateliers .et-cl-p6 .et-cl-intro-img {
    flex-basis: 150px;
    max-width: 150px;
}

/* ==========================================================================
   08. ACCORDEON MOBILE (moins de 640px)
   Accordeon sous 640px : la rangee cede la place a une
   languette pleine largeur par section, juste au-dessus de sa page.
   ========================================================================== */

@media (max-width: 640px) {
    #et-ateliers .et-cl-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    #et-ateliers .et-cl-panel {
        display: block;
        border-top: 1px solid rgba(var(--et-or-rgb), .32);
        border-radius: 4px;
        padding: 0;
        margin-top: 6px;
        background: transparent;
        border-color: transparent;
    }

    #et-ateliers .et-cl-acc {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: var(--et-font-titre);
        font-size: .76rem;
        letter-spacing: .2px;
        padding: 13px 14px;
        border: 1px solid rgba(var(--et-or-rgb), .35);
        border-left: 3px solid var(--et-or);
        border-radius: 4px;
        background: var(--et-media-onglet);
        color: var(--et-media-texte);
        cursor: pointer;
    }

    #et-ateliers .et-cl-acc span {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #et-ateliers .et-cl-acc::after {
        content: '▸';
        opacity: .35;
        flex-shrink: 0;
        transition: opacity .2s ease, text-shadow .2s ease;
    }

    #et-ateliers .et-cl-body {
        display: none;
        background: var(--et-media-panneau);
        border: 1px solid rgba(var(--et-or-rgb), .32);
        border-top: none;
        border-radius: 0 0 4px 4px;
        padding: 20px 16px 24px;
    }

    #et-ateliers .et-cl-pres {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    #et-ateliers:has(.et-cl-r1:focus-visible) .et-cl-p1 .et-cl-acc {
        outline: 2px solid var(--et-or);
        outline-offset: 2px;
    }

    #et-ateliers:has(.et-cl-r1:checked) .et-cl-p1 .et-cl-acc {
        background: var(--et-or);
        color: var(--et-fond-profond);
        font-weight: 600;
        border-left-color: var(--et-fond-profond);
        border-radius: 4px 4px 0 0;
    }

    #et-ateliers:has(.et-cl-r1:checked) .et-cl-p1 .et-cl-acc::after {
        content: '▾';
        opacity: 1;
        text-shadow: 0 0 6px rgba(var(--et-or-rgb), .9);
    }

    #et-ateliers:has(.et-cl-r1:checked) .et-cl-p1 .et-cl-body {
        display: block;
    }

    #et-ateliers:has(.et-cl-r2:focus-visible) .et-cl-p2 .et-cl-acc {
        outline: 2px solid var(--et-or);
        outline-offset: 2px;
    }

    #et-ateliers:has(.et-cl-r2:checked) .et-cl-p2 .et-cl-acc {
        background: var(--et-or);
        color: var(--et-fond-profond);
        font-weight: 600;
        border-left-color: var(--et-fond-profond);
        border-radius: 4px 4px 0 0;
    }

    #et-ateliers:has(.et-cl-r2:checked) .et-cl-p2 .et-cl-acc::after {
        content: '▾';
        opacity: 1;
        text-shadow: 0 0 6px rgba(var(--et-or-rgb), .9);
    }

    #et-ateliers:has(.et-cl-r2:checked) .et-cl-p2 .et-cl-body {
        display: block;
    }

    #et-ateliers:has(.et-cl-r3:focus-visible) .et-cl-p3 .et-cl-acc {
        outline: 2px solid var(--et-or);
        outline-offset: 2px;
    }

    #et-ateliers:has(.et-cl-r3:checked) .et-cl-p3 .et-cl-acc {
        background: var(--et-or);
        color: var(--et-fond-profond);
        font-weight: 600;
        border-left-color: var(--et-fond-profond);
        border-radius: 4px 4px 0 0;
    }

    #et-ateliers:has(.et-cl-r3:checked) .et-cl-p3 .et-cl-acc::after {
        content: '▾';
        opacity: 1;
        text-shadow: 0 0 6px rgba(var(--et-or-rgb), .9);
    }

    #et-ateliers:has(.et-cl-r3:checked) .et-cl-p3 .et-cl-body {
        display: block;
    }

    #et-ateliers:has(.et-cl-r4:focus-visible) .et-cl-p4 .et-cl-acc {
        outline: 2px solid var(--et-or);
        outline-offset: 2px;
    }

    #et-ateliers:has(.et-cl-r4:checked) .et-cl-p4 .et-cl-acc {
        background: var(--et-or);
        color: var(--et-fond-profond);
        font-weight: 600;
        border-left-color: var(--et-fond-profond);
        border-radius: 4px 4px 0 0;
    }

    #et-ateliers:has(.et-cl-r4:checked) .et-cl-p4 .et-cl-acc::after {
        content: '▾';
        opacity: 1;
        text-shadow: 0 0 6px rgba(var(--et-or-rgb), .9);
    }

    #et-ateliers:has(.et-cl-r4:checked) .et-cl-p4 .et-cl-body {
        display: block;
    }

    #et-ateliers:has(.et-cl-r5:focus-visible) .et-cl-p5 .et-cl-acc {
        outline: 2px solid var(--et-or);
        outline-offset: 2px;
    }

    #et-ateliers:has(.et-cl-r5:checked) .et-cl-p5 .et-cl-acc {
        background: var(--et-or);
        color: var(--et-fond-profond);
        font-weight: 600;
        border-left-color: var(--et-fond-profond);
        border-radius: 4px 4px 0 0;
    }

    #et-ateliers:has(.et-cl-r5:checked) .et-cl-p5 .et-cl-acc::after {
        content: '▾';
        opacity: 1;
        text-shadow: 0 0 6px rgba(var(--et-or-rgb), .9);
    }

    #et-ateliers:has(.et-cl-r5:checked) .et-cl-p5 .et-cl-body {
        display: block;
    }

    #et-ateliers:has(.et-cl-r6:focus-visible) .et-cl-p6 .et-cl-acc {
        outline: 2px solid var(--et-or);
        outline-offset: 2px;
    }

    #et-ateliers:has(.et-cl-r6:checked) .et-cl-p6 .et-cl-acc {
        background: var(--et-or);
        color: var(--et-fond-profond);
        font-weight: 600;
        border-left-color: var(--et-fond-profond);
        border-radius: 4px 4px 0 0;
    }

    #et-ateliers:has(.et-cl-r6:checked) .et-cl-p6 .et-cl-acc::after {
        content: '▾';
        opacity: 1;
        text-shadow: 0 0 6px rgba(var(--et-or-rgb), .9);
    }

    #et-ateliers:has(.et-cl-r6:checked) .et-cl-p6 .et-cl-body {
        display: block;
    }

    #et-ateliers .et-cl-intro {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    #et-ateliers .et-cl-panel .et-cl-intro-img {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 0;
        aspect-ratio: 4/3;
    }
}
/* ==========================================================================
   ONGLETS (Codex, Médias, Ateliers) : texte plus grand
   A coller a la fin de presentation.css
   L'identifiant #et-ateliers donne a ces regles priorite sur les reglages existants,
   quel que soit le fichier CSS qui les contient.
   Pour regler la taille : changer 1.15rem (1rem = taille normale du texte)
   ========================================================================== */
#et-ateliers .et-cl-nav label,
#et-ateliers .et-cl-nav label span {
    font-size: 1.15rem;
}

#et-ateliers .et-cl-nav label {
    min-height: 58px;
}

/* Les onglets deviennent des accordeaux sur petit ecran : meme taille */
#et-ateliers .et-cl-acc,
#et-ateliers .et-cl-acc span {
    font-size: 1.15rem;
}

/* Un mot long (« Expérimentations ») ne doit pas etre coupe au milieu */
#et-ateliers .et-cl-nav label span {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    letter-spacing: 0.02em;
}

/* ######################################################################## */
/* PARTIE 21 / 23 : Page-de-soutien.css
   Page de soutien
   ######################################################################## */

/* ==========================================================================
   ÉLLURIA TÉNÉBRIS - PAGE DE SOUTIEN
   Carte centrée, dans le style de la page de connexion.
   Tout est préfixé .et-soutien : rien d'autre sur le site n'est touché.
   Pour élargir ou resserrer la carte : max-width de .et-soutien.
   Pour resserrer le texte : line-height et margin de .et-soutien-champ p.
   ========================================================================== */

.et-soutien {
    max-width: 820px;
    margin: 0 auto 32px;
    background: linear-gradient(180deg, var(--et-fiche-carte) 0%, var(--et-fiche-fond) 100%);
    border: 1px solid rgba(var(--et-or-fiche-rgb), .2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    font-family: var(--et-font-texte);
    color: var(--et-parchemin);
}

.et-soutien *,
.et-soutien *::before,
.et-soutien *::after {
    box-sizing: border-box;
}

/* --- Bannière facultative (image en tête de carte) --- */
.et-soutien .et-soutien-banniere img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
}

/* --- En-tête : titre et phrase d'accueil --- */
.et-soutien .et-soutien-entete {
    padding: 28px 40px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(var(--et-or-fiche-rgb), .15);
}

.et-soutien .et-soutien-titre {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--et-font-titre);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--et-or-fiche);
}

.et-soutien .et-soutien-intro {
    margin: 0;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--et-hub-gris-neutre);
}

/* --- Corps : une section par bloc, libellé doré puis texte dans un cadre --- */
.et-soutien .et-soutien-corps {
    padding: 24px 40px 4px;
}

.et-soutien .et-soutien-section {
    margin: 0 0 22px;
}

.et-soutien .et-soutien-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--et-font-titre);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--et-or-fiche);
}

.et-soutien .et-soutien-label::before {
    content: '\25C6';
    font-size: .6rem;
    opacity: .8;
}

.et-soutien .et-soutien-champ {
    padding: 14px 18px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(var(--et-or-fiche-rgb), .14);
    border-radius: 8px;
}

.et-soutien .et-soutien-champ p {
    margin: 0 0 .5em;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--et-parchemin);
}

.et-soutien .et-soutien-champ p:last-child {
    margin-bottom: 0;
}

.et-soutien .et-soutien-champ ul {
    margin: 0 0 .5em;
    padding-left: 1.2em;
}

.et-soutien .et-soutien-champ li {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--et-parchemin);
}

/* --- Pied : remerciement, bouton, ornement --- */
.et-soutien .et-soutien-pied {
    padding: 8px 40px 28px;
    text-align: center;
}

.et-soutien .et-soutien-merci {
    margin: 0 0 20px;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--et-hub-gris-neutre);
}

.et-soutien a.et-soutien-bouton,
.et-soutien a.et-soutien-bouton:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(180deg, var(--et-fond-moyen), var(--et-fiche-carte));
    border: 1px solid rgba(var(--et-or-fiche-rgb), .45);
    border-radius: 8px;
    font-family: var(--et-font-titre);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--et-or-fiche);
    transition: border-color .25s, background .25s, transform .25s;
}

.et-soutien a.et-soutien-bouton::before {
    content: '\25C6';
    font-size: .7rem;
}

.et-soutien a.et-soutien-bouton:hover {
    border-color: var(--et-or-fiche);
    background: rgba(var(--et-or-fiche-rgb), .14);
    transform: translateY(-2px);
}

.et-soutien .et-soutien-points {
    margin-top: 22px;
    font-size: .7rem;
    letter-spacing: .6em;
    color: rgba(var(--et-or-fiche-rgb), .35);
    user-select: none;
}

/* --- Petits écrans --- */
@media (max-width: 560px) {
    .et-soutien .et-soutien-entete,
    .et-soutien .et-soutien-corps,
    .et-soutien .et-soutien-pied {
        padding-left: 18px;
        padding-right: 18px;
    }

    .et-soutien .et-soutien-titre {
        font-size: 1.35rem;
    }
}

/* ================================================================
   ENQUETE SANDY
   ================================================================ */

/* Conteneurs : sans contour, sans ombre, pleine largeur */
main.colonne-centre:has(iframe[src*="enquete-sandy"]),
main.colonne-centre:has(iframe[src*="enquete-sandy"]) .com-content-article,
main.colonne-centre:has(iframe[src*="enquete-sandy"]) .com-content-article__body {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
}

/* Fond plein derrière l'iframe, avec de l'air au-dessus et en dessous */
main.colonne-centre:has(iframe[src*="enquete-sandy"]) .com-content-article {
  background: #0b1526 !important;
  padding: 20px 0 !important;
}

/* L'iframe : 90 % de largeur, centrée */
main.colonne-centre iframe[src*="enquete-sandy"] {
  display: block;
  width: 90% !important;
  margin: 0 auto !important;
  height: 85vh !important;
  height: 85dvh !important;
  min-height: 520px;
  border: 0;
}

/* Mobile */
@media (max-width: 900px) {
  div.zone-centrale:has(iframe[src*="enquete-sandy"]) { flex-direction: column !important; }
  div.zone-centrale:has(iframe[src*="enquete-sandy"]) main.colonne-centre {
    order: -1 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-bottom: 110px !important;
  }
  div.zone-centrale:has(iframe[src*="enquete-sandy"]) aside.colonne-gauche { order: 2 !important; }
}

/* ######################################################################## */
/* PARTIE 23 / 23 : user.css
   Réglages finaux : accueil, Matomo, mobile, bouton de soutien, colonne gauche supprimée
   ######################################################################## */

/* ==========================================================================
   ELLURIA TÉNÉBRIS — USER.CSS
   Point d'entrée — imports uniquement
   Les styles sont répartis dans les fichiers CSS dédiés
   ========================================================================== */


/* ==========================================================================
   BLOC ACCUEIL COMPLET
   ========================================================================== */
.bloc-accueil-complet {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   OPT-OUT MATOMO
   ========================================================================== */
.opt-out-minimal {
    background: transparent !important;
    border: none !important;
    padding: 5px !important;
    width: 100% !important;
}

#matomo-opt-out iframe {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
}

/* RightClick Disable — style Élluria */
#rightclick-disable-popup,
.rightclick-disable-popup {
    background: var(--et-fiche-fond) !important;
    border: 1px solid rgba(var(--et-or-rgb), 0.35) !important;
    border-radius: 15px 0 15px 0 !important;
    color: var(--et-parchemin) !important;
    font-family: var(--et-font-texte) !important;
    font-style: italic !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

.scribe-note-auteur {
    font-family: Georgia, serif;
    font-style: normal;
    font-size: 0.88em;
    color: var(--et-scribe-texte);
    line-height: 1.5;
}

.scribe-signature {
    text-align: right;
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 8px;
}

/* ── NAVIGATION MOBILE — BARRE FIXE BAS ── */
.colonne-droite-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .colonne-droite {
        display: none !important;
    }

    .colonne-droite-mobile {
        display: flex !important;
        flex-direction: row !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(var(--et-abysse-rgb), 0.97);
        border-top: 2px solid rgba(var(--et-or-rgb), 0.4);
        justify-content: space-around;
        align-items: center;
        padding: 6px 10px;
    }

    .colonne-droite-mobile *,
    .colonne-droite-mobile div,
    .colonne-droite-mobile ul,
    .colonne-droite-mobile li,
    .colonne-droite-mobile .moduletable,
    .colonne-droite-mobile .custom {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .colonne-droite-mobile img {
        width: 40px !important;
        height: 40px !important;
        object-fit: contain !important;
        display: block !important;
    }

    .zone-centrale,
    .zone-pied-page {
        padding-bottom: 75px;
    }
}

@media (max-width: 768px) {
    /* Items du menu en colonne icône + texte */
    .zone-menu li a,
    .zone-menu li > span {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        font-size: 10px !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .zone-menu li img {
        width: 35px !important;
        height: 35px !important;
    }
/* Fiche personnage : la colonne de droite prend sa hauteur naturelle,
   aucune section n'est tronquée ni ne défile. */
.cs-sheet .cs-right-col {
    height: auto;
    overflow: visible;
}

.cs-sheet .cs-right-col > .cs-flat-section {
    flex: 0 0 auto;
}

.cs-sheet .cs-bio-inner,
.cs-sheet .cs-transfo-inner,
.cs-sheet .cs-traits-grid,
.cs-sheet .cs-document-inner,
.cs-sheet .cs-obj-grid,
.cs-sheet .cs-pensee-grid {
    overflow: visible;
}
  }
/* Lien flottant vers la page de soutien */
.et-soutien-flottant {
    position: fixed;
    top: 90px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--et-fond-profond);
    border: 1px solid rgba(var(--et-or-rgb), .45);
    border-radius: 30px;
    color: var(--et-or);
    font-family: var(--et-font-titre);
    font-size: .8rem;
    letter-spacing: .1em;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
    transition: background .25s, transform .25s;
}

.et-soutien-flottant:hover {
    background: rgba(var(--et-or-rgb), .14);
    transform: translateY(-2px);
    color: var(--et-or);
}

@media (max-width: 640px) {
    .et-soutien-flottant {
        top: auto;
        bottom: 16px;
        right: 16px;
    }
}

/* Colonne de gauche supprimée : l'article prend la place libérée */
:root { --largeur-gauche: 0%; --largeur-centre: 90%; }
@media (max-width: 1024px) { :root { --largeur-centre: 86%; } }
.bloc-bas-article { margin-top: 30px; }


/* ######################################################################## */
/* PARTIE 24 : banniere-livre.css
   Bannière du livre en vrai texte (préfixe .etb-) : nette à toutes les tailles,
   et qui change de mise en page selon la largeur disponible.
   ######################################################################## */

/* ==========================================================================
   MODE D'EMPLOI
   - Les TEXTES (titre, prix, ISBN, lien...) se changent dans le HTML de l'article.
   - Les COULEURS se changent ci-dessous, dans les 5 lignes "--etb-...".
   - Mise en page : sous 760 px de large (téléphone, colonne étroite), la couverture
     est à gauche, le texte à droite et le bouton en dessous. À partir de 760 px,
     tout passe sur une ligne : couverture + prix, texte, bouton.
   - Cette partie est indépendante de la PARTIE 18 (.elt-h et .elt-v), qu'elle
     ne remplace pas.
   ========================================================================== */

.etb-wrap {
    container-type: inline-size;
    container-name: etb;
    width: 100%;
    margin: 1.2em 0;
}

.etb {
    /* --- COULEURS (à modifier ici) --- */
    --etb-fond: #0d1727;     /* Bleu nuit du fond */
    --etb-or: #bf9f5a;       /* Or : textes secondaires et filet de la couverture */
    --etb-brun: #6c4522;     /* Brun : bloc du prix et bouton */
    --etb-creme: #e8dfdb;    /* Crème : titre et textes clairs */
    --etb-label: #a98746;    /* Or sombre : "FORMAT", "PAGES", "ISBN"... */

    /* Couleurs qui changent selon la mise en page (voir plus bas) */
    --etb-c-cycle: var(--etb-or);
    --etb-c-cat: var(--etb-creme);

    display: grid;
    grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
    grid-template-areas:
        "couv  corps"
        "action action";
    gap: 14px 18px;
    padding: 14px;
    box-sizing: border-box;
    background: var(--etb-fond);
    color: var(--etb-creme);
    font-family: 'EB Garamond', Georgia, serif;
    line-height: 1.25;
    text-shadow: none;
}

.etb * {
    text-shadow: none;
}

.etb *,
.etb *::before,
.etb *::after {
    box-sizing: border-box;
}

.etb p,
.etb dl,
.etb dd,
.etb dt {
    margin: 0;
    padding: 0;
}

/* --- Couverture + prix --- */
.etb .etb-couv {
    grid-area: couv;
    display: flex;
    flex-direction: column;
    align-self: start;
    text-decoration: none;
}

.etb .etb-couv img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--etb-or);
    border-bottom: 0;
}

.etb .etb-prix {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 6px;
    background: var(--etb-brun);
    border: 1px solid var(--etb-or);
    border-top: 0;
    color: var(--etb-creme);
    font-family: 'Paytone one', 'Arial black', sans-serif;
    font-size: clamp(1.7rem, 9cqw, 2.6rem);
    line-height: 1.1;
    white-space: nowrap;
}

.etb .etb-prix sup {
    font-size: .52em;
    line-height: 1;
    vertical-align: baseline;
    margin-top: .12em;
}

/* Texte lu par les lecteurs d'écran, invisible à l'écran */
.etb .etb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Bloc de texte --- */
.etb .etb-corps {
    grid-area: corps;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .35em;
}

.etb .etb-titre {
    font-family: 'Paytone One', 'Arial Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 5.4cqw, 1.9rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--etb-creme);
}

.etb .etb-cycle {
    font-size: clamp(1.05rem, 5cqw, 1.8rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--etb-c-cycle);
}

.etb .etb-categorie {
    margin-top: .5em;
    font-size: clamp(.95rem, 4.2cqw, 1.5rem);
    color: var(--etb-c-cat);
}

.etb .etb-fiche {
    display: flex;
    flex-direction: column;
    gap: .15em;
    margin-top: .4em;
    font-size: clamp(.82rem, 3.4cqw, 1.15rem);
    color: var(--etb-or);
}

.etb .etb-ligne {
    display: block;
    margin: 0;
}

.etb .etb-k {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--etb-label);
}

.etb .etb-k::after {
    content: " |";
}

/* --- Bouton + adresse du site --- */
.etb .etb-action {
    grid-area: action;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
}

.etb .etb-bouton {
    display: block;
    padding: .55em 1em;
    background: var(--etb-brun);
    color: var(--etb-creme);
    font-family: 'Paytone One', 'Arial Black', sans-serif;
    font-size: clamp(1.1rem, 5cqw, 1.5rem);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background-color .2s;
}

.etb .etb-bouton:hover,
.etb .etb-bouton:focus-visible {
    background: #85572b;
    color: var(--etb-creme);
}

.etb .etb-bouton:focus-visible {
    outline: 2px solid var(--etb-or);
    outline-offset: 2px;
}

.etb .etb-site {
    font-size: clamp(.9rem, 3.6cqw, 1.2rem);
    color: var(--etb-creme);
}

/* ==========================================================================
   MISE EN PAGE LARGE : à partir de 760 px de large
   ========================================================================== */
@container etb (min-width: 760px) {
    .etb {
        --etb-c-cycle: var(--etb-creme);
        --etb-c-cat: var(--etb-or);

        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "couv corps action";
        align-items: center;
        gap: 0 clamp(18px, 2.4cqw, 40px);
        padding: 12px clamp(12px, 1.4cqw, 22px);
    }

    .etb .etb-couv {
        flex-direction: row;
        align-self: stretch;
    }

    .etb .etb-couv img {
        width: auto;
        height: clamp(170px, 14.5cqw, 270px);
        border-bottom: 1px solid var(--etb-or);
        border-right: 0;
    }

    .etb .etb-prix {
        align-items: center;
        min-width: clamp(130px, 11cqw, 210px);
        border-top: 1px solid var(--etb-or);
        border-left: 0;
        font-size: clamp(2rem, 4.2cqw, 3.6rem);
    }

    .etb .etb-titre {
        font-size: clamp(1.4rem, 2.7cqw, 3.1rem);
    }

    .etb .etb-cycle {
        font-size: clamp(1.4rem, 2.7cqw, 3.1rem);
        font-weight: 500;
    }

    .etb .etb-categorie {
        font-size: clamp(1.1rem, 1.9cqw, 2.2rem);
    }

    .etb .etb-fiche {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .1em 1.3em;
        font-size: clamp(.9rem, 1.12cqw, 1.5rem);
    }

    .etb .etb-action {
        align-self: center;
        min-width: clamp(190px, 17cqw, 330px);
    }

    .etb .etb-bouton {
        font-size: clamp(1.1rem, 1.6cqw, 1.9rem);
    }

    .etb .etb-site {
        font-size: clamp(.9rem, 1.35cqw, 1.6rem);
    }
}
/* ==========================================================
   MENUS DE PIED DE PAGE (classe de menu : menu-pied)
   Colonnes : Plan du site et FAQ, Légal, Réseaux et infolettre
   ========================================================== */

/* Liste : en colonne, sans puces, boutons espacés */
.pied-col .menu-pied {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chaque ligne du menu : aucune puce, aucune marge parasite */
.pied-col .menu-pied li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Le bouton lui-même */
.pied-col .menu-pied a {
    display: block;
    padding: 10px 16px;
    background: #141518;
    color: var(--et-parchemin);
    border: 1px solid color-mix(in srgb, var(--et-or) 25%, transparent);
    border-radius: 4px;
    font-size: 0.85em;
    font-style: normal;
    line-height: 1.5;
    text-decoration: none;
}

/* Survol et clavier */
.pied-col .menu-pied a:hover,
.pied-col .menu-pied a:focus-visible {
    border-color: var(--et-or);
    color: var(--et-or);
}

/* Page en cours */
.pied-col .menu-pied .current > a {
    border-color: var(--et-or);
}
@media (max-width:768px){
  td[style*="width: 40%"],
  td[style*="width: 29%"]{display:block;width:100% !important;}
  td[style*="width: 1%"]{display:none;}
}
/* ============================================================
   PARTIE 13 : ESPACE MEMBRE, LISTE DES FORMULES (Membership Pro)
   ============================================================ */
.gauche-haut .osm-active-plans-list::before{content:"Vos formules :";display:block;margin-bottom:.5rem;}
.gauche-haut .osm-active-plans-list,
.gauche-haut .osm-active-plans-list li{list-style:none !important;margin:0;padding:0;}
.gauche-haut .osm-active-plans-list li::marker{content:"" !important;}
.gauche-haut .osm-active-plans-list li::before{content:none !important;}
.gauche-haut .osm-active-plans-list li + li{margin-top:1rem;}

/* ==========================================================================
   PARTIE 15 : pages natives de connexion et d'inscription
   Cible les classes du HTML de Joomla 6 :
   .com-users-login (connexion), .com-users-registration (inscription).
   A coller a la fin de elluria.css, apres la PARTIE 14.
   ========================================================================== */

/* --- Carte --------------------------------------------------------------- */
:is(.com-users-login, .com-users-registration) {
  max-width: 520px;
  margin: 2rem auto;
  font-family: var(--et-font-texte);
}

:is(.com-users-login, .com-users-registration) form {
  margin: 0;
  padding: 1.6rem 2rem;
  background: rgba(14, 26, 43, .95);
  border: 1px solid rgba(214, 177, 97, .32);
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6);
}

/* Image d'en-tete facultative (reglable dans l'element de menu) */
.com-users-login__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.com-users-login__description {
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(203, 185, 148, .8);
  text-align: center;
}

/* --- Titres -------------------------------------------------------------- */
:is(.com-users-login, .com-users-registration) .page-header h1 {
  margin: 0 0 1rem;
  font-family: var(--et-font-affiche);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 3px;
  text-align: center;
  color: #f0d080;
}

:is(.com-users-login, .com-users-registration) fieldset {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

:is(.com-users-login, .com-users-registration) legend {
  float: none;
  width: auto;
  margin: 0 0 .75rem;
  padding: 0;
  font-family: var(--et-font-titre);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #f0d080;
}

/* --- Champs -------------------------------------------------------------- */
:is(.com-users-login, .com-users-registration) .control-group {
  margin-bottom: 1.1rem;
}

:is(.com-users-login, .com-users-registration) .control-label label,
:is(.com-users-login, .com-users-registration) .form-check-label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--et-font-titre);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: none;
  color: rgba(214, 177, 97, .8);
}

:is(.com-users-login, .com-users-registration) .star {
  color: rgba(214, 177, 97, .8);
}

:is(.com-users-login, .com-users-registration) input.form-control,
:is(.com-users-login, .com-users-registration) input[type="text"],
:is(.com-users-login, .com-users-registration) input[type="email"],
:is(.com-users-login, .com-users-registration) input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: .68rem 1rem;
  font-family: var(--et-font-texte);
  font-size: 1rem;
  color: #e8d5a0;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(214, 177, 97, .22);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

:is(.com-users-login, .com-users-registration) input:focus {
  border-color: rgba(214, 177, 97, .65);
  box-shadow: 0 0 0 3px rgba(214, 177, 97, .1);
}

/* Champ mot de passe avec bouton "afficher" */
:is(.com-users-login, .com-users-registration) .input-group {
  display: flex;
  gap: .4rem;
}

:is(.com-users-login, .com-users-registration) .input-group .form-control {
  flex: 1;
  width: auto;
}

:is(.com-users-login, .com-users-registration) .input-group .btn {
  padding: 0 .9rem;
  color: rgba(214, 177, 97, .8);
  background: transparent;
  border: 1px solid rgba(214, 177, 97, .22);
  border-radius: 6px;
  cursor: pointer;
}

/* Texte d'aide sous les champs et messages de validation */
:is(.com-users-login, .com-users-registration) .form-text,
:is(.com-users-login, .com-users-registration) .form-control-feedback {
  font-size: .85rem;
  font-style: italic;
  color: rgba(203, 185, 148, .7);
}

/* Case "Se souvenir de moi" */
.com-users-login__remember {
  margin-bottom: 1.1rem;
}

.com-users-login__remember .form-check-label {
  display: inline;
  margin: 0 0 0 .4rem;
}

/* --- Boutons ------------------------------------------------------------- */
:is(.com-users-login, .com-users-registration) .btn.btn-primary {
  display: block;
  width: 100%;
  padding: .78rem 1.5rem;
  font-family: var(--et-font-titre);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #f0d080;
  background: rgba(214, 177, 97, .11);
  border: 1px solid rgba(214, 177, 97, .52);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

:is(.com-users-login, .com-users-registration) .btn.btn-primary:hover {
  background: rgba(214, 177, 97, .2);
  border-color: rgba(214, 177, 97, .82);
}

:is(.com-users-login, .com-users-registration) .btn.btn-primary:active {
  transform: scale(.98);
}

/* --- Liens sous la connexion (cle oubliee, nom oublie, inscription) ------ */
.com-users-login__options {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: 1rem;
}

.com-users-login__options .list-group-item {
  display: block;
  padding: .55rem 1rem;
  font-family: var(--et-font-titre);
  font-size: .72rem;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  color: rgba(214, 177, 97, .8);
  background: transparent;
  border: 1px solid rgba(214, 177, 97, .18);
  border-radius: 6px;
  transition: background .2s, border-color .2s, color .2s;
}

.com-users-login__options .list-group-item:hover {
  color: #f0d080;
  background: rgba(214, 177, 97, .08);
  border-color: rgba(214, 177, 97, .5);
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 480px) {
  :is(.com-users-login, .com-users-registration) form {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   PARTIE 14 : pages natives de recuperation (cle, nom de scribe)
   Cible les classes deja presentes dans le HTML de Joomla 6 :
   .com-users-reset (demande), .com-users-reset-confirm (code),
   .com-users-reset-complete (nouvelle cle), .com-users-remind (nom).
   Aucune surcharge de gabarit necessaire. A coller a la fin de elluria.css.
   ========================================================================== */

/* --- Carte --------------------------------------------------------------- */
:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) {
  max-width: 520px;
  margin: 2rem auto;
  font-family: var(--et-font-texte);
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) form.well {
  margin: 0;
  padding: 1.6rem 2rem;
  background: rgba(14, 26, 43, .95);
  border: 1px solid rgba(214, 177, 97, .32);
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6);
}

/* --- Titre et texte d'introduction -------------------------------------- */
:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) fieldset {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) legend {
  float: none;
  width: auto;
  margin: 0 0 .75rem;
  padding: 0;
  font-family: var(--et-font-titre);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #f0d080;
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) fieldset > p {
  margin: 0 0 1.1rem;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(203, 185, 148, .8);
}

/* --- Champs -------------------------------------------------------------- */
:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) .control-group {
  margin-bottom: 1.1rem;
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) .control-label label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--et-font-titre);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: none;
  color: rgba(214, 177, 97, .8);
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) .star {
  color: rgba(214, 177, 97, .8);
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) input.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: .68rem 1rem;
  font-family: var(--et-font-texte);
  font-size: 1rem;
  color: #e8d5a0;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(214, 177, 97, .22);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) input.form-control:focus {
  border-color: rgba(214, 177, 97, .65);
  box-shadow: 0 0 0 3px rgba(214, 177, 97, .1);
}

/* Champ mot de passe avec bouton "afficher" (etape nouvelle cle) */
:is(.com-users-reset-complete) .input-group {
  display: flex;
  gap: .4rem;
}

:is(.com-users-reset-complete) .input-group .form-control {
  flex: 1;
  width: auto;
}

:is(.com-users-reset-complete) .input-group .btn {
  padding: 0 .9rem;
  color: rgba(214, 177, 97, .8);
  background: transparent;
  border: 1px solid rgba(214, 177, 97, .22);
  border-radius: 6px;
  cursor: pointer;
}

/* --- Bouton d'envoi ------------------------------------------------------ */
:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) .btn.btn-primary {
  display: block;
  width: 100%;
  padding: .78rem 1.5rem;
  font-family: var(--et-font-titre);
  font-size: .83rem;
  letter-spacing: 2.5px;
  color: #f0d080;
  background: rgba(214, 177, 97, .11);
  border: 1px solid rgba(214, 177, 97, .52);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) .btn.btn-primary:hover {
  background: rgba(214, 177, 97, .2);
  border-color: rgba(214, 177, 97, .82);
}

:is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) .btn.btn-primary:active {
  transform: scale(.98);
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 480px) {
  :is(.com-users-reset, .com-users-reset-confirm, .com-users-reset-complete, .com-users-remind) form.well {
    padding: 1.25rem;
  }
}

/* --- Correctif : phrase d'explication de la page "identifiant perdu" -------
   Sur cette page, Joomla affiche la phrase d'explication comme un titre
   (balise legend). On la remet en texte courant, discret. */
.com-users-remind legend {
  margin: 0 0 1.2rem;
  font-family: var(--et-font-texte);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.6;
  color: rgba(203, 185, 148, .85);
}

/* ==========================================================================
   PARTIE 16 : page de connexion native, look de l'ancien module
   A coller APRES la PARTIE 15 dans elluria.css.

   Ce que ca reproduit de l'ancien module :
   - l'image en tete (a choisir dans l'element de menu Connexion, champ
     "Image de connexion", sans toucher au code)
   - le symbole decoratif entre l'image et la carte
   - l'icone et le titre en tete de carte (icone connexion.svg du gabarit)
   - la carte sombre a bordure doree
   - les liens du bas en boutons discrets
   ========================================================================== */

/* --- Largeur : celle de l'ancien module ------------------------------------ */
.com-users-login {
  max-width: 440px;
  margin: 1.5rem auto 2rem;
}

/* --- Image en tete (champ "Image de connexion") ----------------------------- */
.com-users-login__description {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 177, 97, .32);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(14, 26, 43, .95);
  font-style: normal;
}

.com-users-login__description .com-users-login__image {
  display: block;
  width: 100%;
  height: 220px;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

/* Fondu en bas de l'image pour la raccorder a la carte */
.com-users-login__description:has(.com-users-login__image)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(14, 26, 43, 0) 0%,
    rgba(14, 26, 43, 0) 55%,
    rgba(14, 26, 43, .7) 85%,
    rgba(14, 26, 43, .95) 100%
  );
}

/* Texte de description eventuel, sous l'image */
.com-users-login__description > p,
.com-users-login__description > div {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: .9rem 1.5rem 0;
  font-style: italic;
  line-height: 1.6;
  color: rgba(203, 185, 148, .85);
  text-align: center;
}

/* --- Carte : se raccorde a l'image quand elle existe ------------------------ */
.com-users-login__description + form {
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

/* --- Icone et titre en tete de carte --------------------------------------- */
.com-users-login__form {
  padding-top: 1.75rem;
}

.com-users-login__form::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto .9rem;
  background: url('/templates/elluria_pure_refonte/images/connexion.svg') center / contain no-repeat;
}

.com-users-login__form fieldset::before {
  content: "Connexion";
  display: block;
  margin: 0 0 1.4rem;
  padding-bottom: 1.1rem;
  font-family: var(--et-font-affiche);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-align: center;
  color: #f0d080;
  border-bottom: 1px solid rgba(214, 177, 97, .13);
}

/* --- Bouton "clé d'accès" : discret, icone reduite -------------------------- */
.com-users-login__submit .btn-secondary,
.com-users-login__form .plg_system_webauthn_login_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem 1rem;
  font-family: var(--et-font-titre);
  font-size: .72rem;
  letter-spacing: 2px;
  color: rgba(214, 177, 97, .8);
  background: transparent;
  border: 1px solid rgba(214, 177, 97, .22);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.com-users-login__submit .btn-secondary:hover {
  color: #f0d080;
  background: rgba(214, 177, 97, .08);
  border-color: rgba(214, 177, 97, .5);
}

.com-users-login__submit .btn-secondary svg,
.com-users-login__submit .btn-secondary img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.com-users-login__submit .btn-secondary svg path {
  fill: currentColor;
}

/* --- Liens du bas : trois liens sur une ligne, discrets --------------------- */
.com-users-login__options {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.com-users-login__options .list-group-item {
  flex: 1 1 auto;
  min-width: 9rem;
}

@media (max-width: 480px) {
  .com-users-login__description .com-users-login__image {
    height: 150px;
  }
}

/* --- Correctif : bouton "Afficher le mot de passe" ---------------------------
   Le texte passait sur quatre lignes et etirait le champ. On le garde sur
   une seule ligne, en petit. */
.com-users-login .input-group {
  align-items: stretch;
}

.com-users-login .input-group .form-control {
  min-width: 0;
}

.com-users-login .input-group .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 .8rem;
  font-family: var(--et-font-titre);
  font-size: .62rem;
  letter-spacing: 1px;
  line-height: 1;
}

@media (max-width: 480px) {
  /* Sur petit ecran, le bouton passe sous le champ */
  .com-users-login .input-group {
    flex-wrap: wrap;
  }

  .com-users-login .input-group .form-control {
    flex: 1 1 100%;
  }

  .com-users-login .input-group .btn {
    flex: 1 1 100%;
    padding: .55rem .8rem;
  }
}

/* ==========================================================================
   POLICES : AFFECTATION FINALE (Pirata One et Lora)
   A coller TOUT A LA FIN de css/elluria.css.

   Principe :
   - Pirata One (police gothique, une seule graisse) : uniquement les grands
     titres. En petit, elle est illisible.
   - Lora : tout le reste (texte, libelles, boutons, menus, petits titres).
   Pourquoi une separation : sur ton CSS, 89 regles sur 99 qui utilisaient
   Cinzel s'appliquent a du texte de 17 pixels ou moins.

   Place a la fin, ce bloc l'emporte sur les anciennes variables (lignes 553 a
   557) et sur les polices ecrites en dur plus haut dans le fichier.
   ========================================================================== */

:root {
  --et-font-titre: 'Lora', Georgia, serif;             /* libelles, petits titres */
  --et-font-titre-decore: 'Pirata One', Georgia, serif;
  --et-font-texte: 'Lora', Georgia, serif;             /* texte courant */
  --et-font-display: 'Lora', Georgia, serif;           /* boutons, menus, badges */
  --et-font-affiche: 'Pirata One', Georgia, serif;     /* grands titres */
  --et-font-manuscrit: 'Lora', Georgia, serif;         /* ancien Kalam, a revoir */
}

/* --- Polices ecrites en dur dans le CSS : texte et petits elements -------- */
.cs-sheet,
.etb,
.illu-content,
.illu-content-split .illu-table td {
  font-family: var(--et-font-texte);
}

.cs-pocket-name,
.cs-document-meta,
.cs-chapeau-title,
.cs-refs-title,
.cs-stat-val,
.cs-pocket-tip-name,
.cs-chapeau-warn,
.cs-pdf-download a,
.cs-footer,
.cs-vertical-banner span,
.etb .etb-bouton {
  font-family: var(--et-font-titre);
}

/* --- Grands titres : Pirata One -------------------------------------------- */
h1,
h2,
h3,
.tck-article-title,
.cs-char-name,
.titre-recit,
.art-securise__titre,
.article-presentation h1,
.article-presentation h2,
.cycle-presentation__inner--couverture .cycle,
.panneau-personnage__titre,
.tab-panel__titre,
.codex-card-title,
.et-profil-nom,
.atc-article-title h1,
.atc-section h2,
.cta-bloc h2,
.accueil-section > h2,
.osmap-sitemap h2,
.illu-title,
.et-soutien .et-soutien-titre,
.etb .etb-prix,
.etb .etb-titre {
  font-family: var(--et-font-affiche);
  font-weight: 400;          /* Pirata One n'existe qu'en une graisse : evite le faux gras */
  text-transform: none;
  letter-spacing: .02em;
}

/* Prix du livre : police système lisible (les chiffres de Pirata One se lisent mal) */
.etb .etb-prix,
.etb .etb-prix b,
.etb .etb-prix sup {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

/* --- Sous-titres : Lora gras ------------------------------------------------ */
h4,
h5,
h6 {
  font-family: var(--et-font-titre);
  font-weight: 700;
}

/* --- Boutons : Lora gras ---------------------------------------------------- */
.btn,
.btn-elluria,
.etb .etb-bouton,
.achat-label,
input[type="submit"],
input[type="button"],
button[type="submit"] {
  font-family: var(--et-font-titre);
  font-weight: 700;
}
/* ==========================================================================
   COUVERTURE DE CYCLE : la fenetre de la quatrieme de couverture descend
   jusqu'en bas de l'image. A coller TOUT A LA FIN de css/elluria.css.
   ========================================================================== */

.cycle-presentation__inner--couverture .cycle-presentation__contenu {
    display: flex;
    flex-direction: column;
}

.cycle-presentation__inner--couverture .cycle-presentation__fenetre {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
}

/* La zone qui defile prend toute la place restante, sans agrandir la ligne :
   c'est l'image qui fixe la hauteur. */
.cycle-presentation__inner--couverture .cycle-presentation__fenetre-scroll {
    flex: 1 1 0;
    min-height: 140px;
    max-height: none;
    overflow-y: auto;
}

/* Telephone : l'image est au-dessus, la fenetre garde une hauteur fixe */
@media (max-width: 768px) {
    .cycle-presentation__inner--couverture .cycle-presentation__fenetre-scroll {
        flex: none;
        height: 260px;
    }
}

/* Titre du cycle : Pirata One, comme les autres grands titres */
.cycle-presentation__inner--couverture .cycle-presentation__titre-cycle {
    font-family: var(--et-font-affiche);
    font-weight: 400;
    text-transform: none;
}
/* ==========================================================================
   COUVERTURE DE CYCLE : la fenetre de la quatrieme de couverture descend
   jusqu'en bas de l'image. A coller TOUT A LA FIN de css/elluria.css.
   ========================================================================== */

.cycle-presentation__inner--couverture .cycle-presentation__contenu {
    display: flex;
    flex-direction: column;
}

.cycle-presentation__inner--couverture .cycle-presentation__fenetre {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
}

/* La zone qui defile prend toute la place restante, sans agrandir la ligne :
   c'est l'image qui fixe la hauteur. */
.cycle-presentation__inner--couverture .cycle-presentation__fenetre-scroll {
    flex: 1 1 0;
    min-height: 140px;
    max-height: none;
    overflow-y: auto;
}

/* Telephone : l'image est au-dessus, la fenetre garde une hauteur fixe */
@media (max-width: 768px) {
    .cycle-presentation__inner--couverture .cycle-presentation__fenetre-scroll {
        flex: none;
        height: 260px;
    }
}

/* Titre du cycle : Pirata One, comme les autres grands titres */
.cycle-presentation__inner--couverture .cycle-presentation__titre-cycle {
    font-family: var(--et-font-affiche);
    font-weight: 400;
    text-transform: none;
}
/* ==========================================================================
   PARTIE 17 : formulaire de demande RGPD (export / suppression des données)
   A coller a la fin de elluria.css, apres la PARTIE 16.
   Composant Joomla : com_privacy, vue "request"
   Ciblage : le formulaire dont l'action contient "task=request.submit".
   Aucune classe du template n'est modifiée, aucun autre formulaire touché.
   Variables attendues (déjà dans ton CSS) : --et-or, --et-parchemin, --et-fond-moyen
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Le cadre du formulaire
   -------------------------------------------------------------------------- */
form[action*="task=request.submit"] {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--et-fond-moyen, #14233a);
    border: 1px solid var(--et-or, #d6b161);
    border-radius: 6px;
    color: var(--et-parchemin, #e8dcc0);
    font-family: var(--et-font-texte, 'Lora', Georgia, serif);
    line-height: 1.5;
    font-style: normal;
}

/* Les fieldset de Joomla n'ont ici ni cadre ni marge propre */
form[action*="task=request.submit"] fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}


/* --------------------------------------------------------------------------
   2. Chaque ligne du formulaire (étiquette + champ)
   -------------------------------------------------------------------------- */
form[action*="task=request.submit"] .control-group {
    margin-bottom: 1.5rem;
}

/* Étiquettes : minuscules conservées, pas d'italique, pas de majuscules forcées */
form[action*="task=request.submit"] label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--et-or, #d6b161);
    font-style: normal;
    text-transform: none;
}

/* L'astérisque "champ obligatoire" */
form[action*="task=request.submit"] .star {
    color: var(--et-or, #d6b161);
}


/* --------------------------------------------------------------------------
   3. Le menu déroulant "Type de demande"
   La flèche native est remplacée par une flèche dorée dessinée en SVG.
   -------------------------------------------------------------------------- */
form[action*="task=request.submit"] #jform_request_type {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 22rem;
    padding: 0.6rem 2.5rem 0.6rem 0.9rem;
    background-color: var(--et-fond-moyen, #14233a);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23d6b161' stroke-width='2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    border: 1px solid var(--et-or, #d6b161);
    border-radius: 4px;
    color: var(--et-parchemin, #e8dcc0);
    font: inherit;
    line-height: 1.5;
    cursor: pointer;
}

/* Liste ouverte : fond sombre, texte clair (selon le navigateur) */
form[action*="task=request.submit"] #jform_request_type option {
    background: var(--et-fond-moyen, #14233a);
    color: var(--et-parchemin, #e8dcc0);
}

/* Focus clavier visible (accessibilité) */
form[action*="task=request.submit"] #jform_request_type:focus-visible,
form[action*="task=request.submit"] .form-check-input:focus-visible,
form[action*="task=request.submit"] .btn:focus-visible {
    outline: 2px solid var(--et-parchemin, #e8dcc0);
    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   4. Texte d'aide sous le menu déroulant
   -------------------------------------------------------------------------- */
form[action*="task=request.submit"] .form-text {
    display: block;
    margin-top: 0.4rem;
    color: var(--et-parchemin, #e8dcc0);
    opacity: 0.8;
    font-size: 0.9em;
    font-style: normal;
}


/* --------------------------------------------------------------------------
   5. La note de confidentialité (case à cocher)
   Le second cadre et la légende en double sont retirés.
   La légende reste lisible par les lecteurs d'écran (masquage accessible).
   -------------------------------------------------------------------------- */
form[action*="task=request.submit"] #jform_consentbox legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Case + texte alignés, texte qui passe à la ligne proprement */
form[action*="task=request.submit"] .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

/* La case : couleur dorée, plus grande, sans toucher au comportement natif */
form[action*="task=request.submit"] .form-check-input {
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    margin: 0.15rem 0 0;
    accent-color: var(--et-or, #d6b161);
    cursor: pointer;
}

/* Le texte de la case : couleur parchemin, pas de doré (c'est une phrase, pas un titre) */
form[action*="task=request.submit"] .form-check-label {
    margin: 0;
    color: var(--et-parchemin, #e8dcc0);
    cursor: pointer;
}

/* Lien éventuel dans la phrase (politique de confidentialité) */
form[action*="task=request.submit"] .form-check-label a {
    color: var(--et-or, #d6b161);
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   6. Le bouton "Envoyer"
   Même famille visuelle que le reste du site : cadre doré, fond sombre.
   -------------------------------------------------------------------------- */
form[action*="task=request.submit"] .btn-primary {
    padding: 0.6rem 1.6rem;
    background: transparent;
    border: 2px solid var(--et-or, #d6b161);
    border-radius: 4px;
    color: var(--et-parchemin, #e8dcc0);
    font: inherit;
    font-weight: bold;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

form[action*="task=request.submit"] .btn-primary:hover {
    background: var(--et-or, #d6b161);
    color: #0e1a2b;
}


/* --------------------------------------------------------------------------
   7. Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    form[action*="task=request.submit"] {
        padding: 1rem;
    }

    form[action*="task=request.submit"] #jform_request_type {
        max-width: none;
    }

    form[action*="task=request.submit"] .btn-primary {
        width: 100%;
    }
}
/* ==========================================================================
   PARTIE 18 : page profil (module Et profil), en-tete en deux colonnes
   et bloc "Vos donnees" a la meme largeur.
   A coller a la fin de elluria.css, apres la PARTIE 17.
   Remplace l'ancienne PARTIE 18.
   Les classes visees sont celles du module : etp-head, etp-avatar, etp-name,
   etp-handle, etp-subtitle, etp-edit (boutons "Modifier mon profil").
   ========================================================================== */

/* --- En-tete : illustration a gauche, informations a droite -------------- */
.etp .etp-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  row-gap: 0.2rem;
  align-items: center;
  justify-items: start;
  text-align: left;
  margin-bottom: 1.25rem;
}

/* Illustration : colonne de gauche, sur la hauteur des textes et du bouton */
.etp .etp-head .etp-avatar {
  grid-column: 1;
  grid-row: 1 / span 4;
  margin: 0;
}

/* Nom, identifiant, sous-titre : colonne de droite */
.etp .etp-head .etp-name,
.etp .etp-head .etp-handle,
.etp .etp-head .etp-subtitle {
  grid-column: 2;
}

/* Bouton "Modifier mon profil" : colonne de droite, sous les textes */
.etp .etp-head .etp-edit {
  grid-column: 2;
  width: auto;
  margin-top: 0.6rem;
  align-items: flex-start;
}

/* Formulaire ouvert : il reprend toute la largeur, sous l'illustration */
.etp .etp-head .etp-edit[open] {
  grid-column: 1 / -1;
  width: 100%;
  align-items: stretch;
}

.etp .etp-head .etp-edit[open] > summary {
  align-self: flex-start;
}

.etp .etp-head:has(.etp-edit[open]) .etp-avatar {
  grid-row: 1 / span 3;
}

/* --- Bloc "Vos donnees" : meme largeur que le module profil (560 px) ----- */
.et-profil-rgpd {
  max-width: 560px;
  margin: 1rem auto 2rem;
  padding: 1rem 1.5rem;
  background: rgba(var(--et-fond-profond-rgb), 0.92);
  border: 1px solid rgba(var(--et-or-rgb), 0.28);
  border-radius: 10px;
  line-height: 1.5;
  font-style: normal;
}

.et-profil-rgpd p {
  margin: 0;
  font-size: 0.9rem;
}

.et-profil-rgpd .et-profil-rgpd-titre {
  margin-bottom: 0.2rem;
  color: var(--et-or);
  font-family: var(--et-font-titre);
  font-size: 1rem;
  font-weight: 700;
}

.et-profil-rgpd .et-profil-btn-edit {
  margin-top: 0.75rem;
}

/* --- Telephone ----------------------------------------------------------- */
@media (max-width: 520px) {
  .etp .etp-head {
    column-gap: 1rem;
  }

  .etp .etp-head .etp-avatar {
    width: 64px;
    height: 64px;
  }

  .etp .etp-head .etp-avatar span {
    font-size: 1.6rem;
  }

  .et-profil-rgpd {
    padding: 1rem 1.25rem;
  }

  /* Bouton sur toute la largeur du bloc */
  .et-profil-rgpd .et-profil-btn-edit {
    justify-content: center;
  }
}
/* ==========================================================================
   PARTIE 19 : note d'auteur (page "Note d'intention")
   ========================================================================== */

.et-note-auteur {
    max-width: 44rem;
    margin: 2rem auto 3rem;
    padding: 2.2rem 2.4rem;
    background: rgba(var(--et-fond-profond-rgb, 10, 19, 34), 0.92);
    border: 1px solid rgba(var(--et-or-rgb, 214, 177, 97), 0.28);
    border-radius: 6px;
    color: var(--et-parchemin, #e8dcc0);
    font-family: var(--et-font-texte, 'Lora', Georgia, serif);
    font-size: 1.05rem;
    line-height: 1.75;
    font-style: normal;
    text-transform: none;
}

.et-note-auteur .et-note-titre {
    margin: 0 0 1.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(var(--et-or-rgb, 214, 177, 97), 0.28);
    color: var(--et-or, #d6b161);
    font-family: var(--et-font-titre, 'Cinzel', Georgia, serif);
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: none;
}

.et-note-auteur p {
    margin: 0 0 1.25rem;
    color: inherit;
    font-size: inherit;
    font-style: normal;
    text-align: left;
}

.et-note-auteur .et-note-phrase {
    margin: 2rem 0;
    padding: 0.4rem 0 0.4rem 1.2rem;
    border-left: 3px solid var(--et-or, #d6b161);
    color: var(--et-or, #d6b161);
    font-family: var(--et-font-titre, 'Cinzel', Georgia, serif);
    font-size: 1.2rem;
    line-height: 1.5;
}

.et-note-auteur .et-note-leviers {
    margin: 0 0 1.5rem;
    padding: 0.4rem 0 0.4rem 1.2rem;
    list-style: none;
    border-left: 1px solid rgba(var(--et-or-rgb, 214, 177, 97), 0.4);
}

.et-note-auteur .et-note-leviers li {
    margin: 0 0 0.7rem;
    padding: 0;
}

.et-note-auteur .et-note-leviers li:last-child {
    margin-bottom: 0;
}

.et-note-auteur .et-levier {
    color: var(--et-or, #d6b161);
    font-weight: bold;
}

.et-note-auteur .et-note-signature {
    margin: 2.2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(var(--et-or-rgb, 214, 177, 97), 0.28);
    color: var(--et-or, #d6b161);
    font-family: var(--et-font-titre, 'Cinzel', Georgia, serif);
    text-align: right;
}

@media (max-width: 640px) {
    .et-note-auteur {
        margin: 1rem auto 2rem;
        padding: 1.4rem 1.1rem;
        font-size: 1rem;
    }
    .et-note-auteur .et-note-titre {
        font-size: 1.25rem;
    }
    .et-note-auteur .et-note-phrase {
        font-size: 1.1rem;
    }
}