/* ========================================================================= 
   MASTER CSS - 7ÈME RÉPUBLIQUE (SEGMENT 1 : RESET & HEADER)
   ========================================================================= */

/* --- 1. RESET ET CONFIGURATION GLOBALE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box !important; 
}

/* Cache la barre de traduction Google en haut de page */
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame {
    display: none !important;
}


/* Cache les éléments parasites insérés par Google */
#goog-gt-tt, 
.goog-te-spinner-pos {
    display: none !important;
}

html, body {
    top: 0px !important;
    width: 100% !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    font-family: "League Spartan", "Noto Color Emoji", sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    scroll-behavior: smooth;
    font-optical-sizing: auto;
    word-wrap: break-word;
}

body {
    padding-top: 250px !important;
}

/* Correction pour le Footer et les icônes */
footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 20px 0 !important;
}

.social-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si pas assez de place */
}

/* Force les icônes à ne pas dépasser et à rester visibles */
.social-svg {
    width: 24px !important; 
    height: 24px !important;
    display: block !important;
    fill: currentColor;
}

main, section {
    width: 100% !important;
    display: block !important;
}

.sr-only { 
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; 
}

/* --- 2. TYPOGRAPHIE --- */
@font-face { font-family: 'DIN'; src: url('../fonts/DIN Light.ttf') format('truetype'); font-weight: 300; }
@font-face { font-family: 'DIN'; src: url('../fonts/DIN Alternate.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'DIN'; src: url('../fonts/DIN Bold.ttf') format('truetype'); font-weight: 700; }

h1, h2, summary { font-family: "Racing Sans One", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-family: "Varela Round", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;  text-shadow: 
        1px 1px 0px #ffffff, 
        2px 2px 0px #e0d5c1, 
        4px 4px 8px rgba(0, 0, 0, 0.45), 
        0 0 20px rgba(188, 60, 0, 0.2) !important; }

h4 { border-bottom: 2px solid #000000 !important; padding-bottom: 8px !important; margin-bottom: 15px !important; display: block !important; width: 100% !important; }

/* ========================================================================= 
   3. HEADER, LOGO ET NAVIGATION (CORRECTION STRUCTURELLE STRICTE)
   ========================================================================= */

body header { 
    transform: translateY(0) !important; 
}
body.scroll-down header { 
    transform: translateY(-100%) !important; 
}

/* --- STRUCTURE GLOBALE DU HEADER --- */
.header-container-global,
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #fff !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* --- CONTENEUR PRINCIPAL : FORCAGE FLEX EN LIGNE --- */
.header-main-row,
.header-content,
.header-container,
.header-top,
.header-titre-niveau {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: left !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    margin: 0 !important;
}

/* --- LOGO : FORCÉ STRICTEMENT À GAUCHE --- */
.logo,
.logo-wrapper,
.logo-titre,
img.logo {
    display: block !important;
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    float: left !important;
}

.logo img, 
.logo-titre { 
    height: 120px !important; 
    width: auto !important; 
    max-width: none !important;
    object-fit: contain !important;
    filter: drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.3)) drop-shadow(1px 1px 2px rgba(188, 60, 0, 0.25)) !important;
}

/* --- NIVEAUX CONSTITUTIONNELS : FORCÉS À DROITE SUR 2 LIGNES --- */
.titres,
.site-header h1,
h1 {
    display: flex !important;
    justify-content: left !important;
    text-align: left !important;
    order: 2 !important;
    flex-shrink: 0 !important;
    font-size: 2.5rem !important; 
    line-height: 1.4 !important; 
    text-transform: uppercase !important;
    white-space: pre-line !important; 
    text-shadow: 
        1px 1px 0px #ffffff, 
        2px 2px 0px #e0d5c1, 
        4px 4px 8px rgba(0, 0, 0, 0.45), 
        0 0 20px rgba(188, 60, 0, 0.2) !important; 
}



/* --- MENU DE DÉFILEMENT --- */

.scroll-menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 0 20px 15px 20px !important;
    scrollbar-width: thin;
    scrollbar-color: #000 #f4e4c9;
}

.scroll-menu::-webkit-scrollbar { height: 8px; }
.scroll-menu::-webkit-scrollbar-track { background: #f4e4c9; border-radius: 4px; }
.scroll-menu::-webkit-scrollbar-thumb { background: #000; border-radius: 4px; }

.tab-folder {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
/* --- HEADER : ALIGNEMENT LOGO & TITRE --- */
.header-main-row {
    display: flex;
    align-items: center; /* Aligne verticalement */
    justify-content: flex-start; /* Logo à gauche */
    gap: 15px; /* Espace entre logo et titre */
    padding: 10px;
}

.header-titre-niveau {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-titre {
    max-width: 40px;
    height: auto;
}

/* --- RESPONSIVE UNIFIÉ --- */
@media screen and (min-width: 992px) {
    /* Double colonne sur grand écran */
    .article-bloc .article-content, 
    .article-bloc .read-more-content,
    .article-bloc .two-columns-text {
        column-count: 2 !important;
        column-gap: 40px !important;
    }
}

@media screen and (max-width: 768px) {
    /* Header mobile : agencement global du conteneur */
    .header-main-row { 
        padding: 8px 15px !important; 
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .header-titre-niveau {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
    }

    /* Agrandissement du logo sur mobile */
    .logo-titre { 
        max-width: 75px !important; /* Ajuste ici si tu veux plus grand ou plus petit */
        width: 75px !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }

    /* Réduction du titre et forçage du retour à la ligne */
    .site-header h1,
    h1 { 
        font-size: 1.1rem !important; /* Taille ajustée pour mobile */
        line-height: 1.2 !important;
        text-align: right !important;
        white-space: pre-line !important; /* Force le passage à la ligne via les balises ou les espaces insécables */
        flex-grow: 1 !important;
        margin: 0 !important;
    }

    .global-tooltip-banner {
        display: none !important;
    }
}
    /* Forcer une seule colonne partout sur mobile */
    .two-columns-text, .article-content {
        column-count: 1 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* Nettoyage menu mobile */
    .scroll-menu { display: flex; flex-direction: row; overflow-x: auto; white-space: nowrap; }
    .phrase-separateur, .tab-joker { display: none !important; }
    
    /* Chapitres */
    .chapter-separator { padding: 10px; }
    .level-icon-giant { width: 40px; height: 40px; }
}


/* --- SÉCURITÉ CONTRE LE DÉBORDEMENT --- */
img, table, div, p {
    max-width: 100% !important;
    word-wrap: break-word;
}

/* ========================================================================= 
   7ÈME RÉPUBLIQUE (SEGMENT 3 : NAVIGATION, ONGLETS ET SÉPARATEURS)
   ========================================================================= */
/* --- BANDEAU D'INFOBULLE INTÉGRÉ SOUS LES ONGLETS --- */
.global-tooltip-banner {
    display: block !important;
    width: 100% !important;
    background-color: #d8d8d8 !important;
    border-top: 1px solid #ccc !important;
    border-bottom: 2px solid #bc3c00 !important;
    padding: 0 25px !important;
    font-family: 'DIN', sans-serif !important;
    font-size: 0.95rem !important;
    color: #000 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 999 !important;
    pointer-events: none !important;
    
    /* Hauteur modulable sans casser le layout */
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease !important;
}

.global-tooltip-banner.visible {
    max-height: 50px !important;
    padding: 8px 25px !important;
    opacity: 1 !important;
}
/* Classe active déclenchée par le JavaScript pour l'ouvrir proprement */
.global-tooltip-banner.visible {
    max-height: 100px !important;
    padding: 12px 25px !important;
    border-top-width: 1px !important;
    border-bottom-width: 2px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- EFFET ESCALIER PROGRESSIF HARMONISÉ --- */
.scroll-menu {
    align-items: flex-end !important; /* Maintient les onglets alignés sur leur base inférieure */
}

/* On applique des hauteurs de padding progressives partant d'un format compact pour le niveau 1 */
.scroll-menu a[href="#niveau-1"] { padding-top: 6px !important; padding-bottom: 6px !important; }
.scroll-menu a[href="#niveau-2"] { padding-top: 10px !important; padding-bottom: 6px !important; }
.scroll-menu a[href="#niveau-3"] { padding-top: 14px !important; padding-bottom: 6px !important; }
.scroll-menu a[href="#niveau-4"] { padding-top: 18px !important; padding-bottom: 6px !important; }
.scroll-menu a[href="#niveau-5"] { padding-top: 22px !important; padding-bottom: 6px !important; }
.scroll-menu a[href="#niveau-6"] { padding-top: 26px !important; padding-bottom: 6px !important; }
.scroll-menu a[href="#niveau-7"] { padding-top: 30px !important; padding-bottom: 6px !important; }
/* --- 1. MENU DE NAVIGATION (SCROLL) --- */
.scroll-menu-container { width: 100%; position: relative; margin-bottom: 25px; overflow: hidden; }

.scroll-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #000 #fff;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.scroll-menu::-webkit-scrollbar { height: 8px; display: block !important; }
.scroll-menu::-webkit-scrollbar-track { background: #fff; border-radius: 4px; }
.scroll-menu::-webkit-scrollbar-thumb { background: #000; border-radius: 4px; }

/* --- 2. ONGLETS (TABS) --- */
.tab-folder { 
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 12px 25px;
    text-decoration: none;
    font-family: 'DIN', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    background-color: #f8f8f8;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    transition: all 0.2s;
    margin-right: 6px;
}

.tab-folder:hover { background-color: #fff; border-top: 3px solid #bc3c00; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.tab-folder.active { background-color: #000 !important; color: #fff !important; border-top: 4px solid #bc3c00 !important; z-index: 10; }
.tab-joker { background-color: #000 !important; color: #fff !important; border: 1px solid #000 !important; opacity: 1 !important; }




.scroll-section {
    scroll-margin-top: 250px !important;
}

/* --- 3. COMPOSANTS DE SECTION --- */
.chapter-separator {
    background-color: #111;
    border-left: 5px solid #bc3c00;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    width: calc(100% - 10px) !important;
    margin: 10px 5px !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

.level-icon-big {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.level-icon-big svg { fill: #bc3c00; width: 60%; height: 60%; }

.chapter-title-content h2 { margin: 0; font-size: 2.5rem; color: #fff; } /* Adapté pour fond sombre */
.chapter-title-content p { margin: 5px 0 0 0; font-size: 1.2rem; color: #ccc; }

/* --- 4. NAVIGATION ARROWS & DIVERS --- */
.nav-arrow { 
    background: transparent; border: none; color: #000; font-size: 4rem; cursor: pointer;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
}
.nav-arrow:hover { color: #bc3c00; }
.phrase-separateur { 
    display: flex; align-self: center; white-space: nowrap; color: #888;
    font-size: 0.7rem; opacity: 0.6; padding: 0 30px; border-left: 1px solid #ccc; 
}


    
/* ========================================================================= 
   7ÈME RÉPUBLIQUE (SEGMENT 4 : ICONOGRAPHIE ET CONTRÔLEURS)
   ========================================================================= */

/* --- 1. SÉPARATEURS DE CHAPITRE (NIVEAUX) --- */
.level-icon-giant {
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.level-icon-giant svg { fill: #bc3c00; width: 100%; height: 100%; }

.chapter-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chapter-separator h2 {
    font-family: 'Racing Sans One', sans-serif !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    color: #fff !important;
    margin: 0 0 5px 0 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.chapter-separator p {
    font-family: 'Varela Round', sans-serif;
    font-size: 1rem !important;
    color: #f4e4c9;
    margin: 0;
    text-transform: uppercase;
}



/* ========================================================================= 
   RESTAURATION : MENU OBLIQUE (6%) & DÉCALAGE PROGRESSIF
   ========================================================================= */

/* --- 1. MENU VINTAGE (VOLET OBLIQUE 6%) --- */
.menu-overlay-vintage { 
    position: fixed !important; 
    top: 0 !important; left: 0 !important; 
    width: 420px !important; 
    height: 100% !important; 
    z-index: 999999 !important; 
    background-color: #f4e4c9 !important; 
    border-right: 4px solid #222 !important;
    visibility: hidden; 
    opacity: 0; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    
    transform: skewX(-6deg) translateX(-100%); 
    transform-origin: top left;
    
    padding: 80px 40px !important; 
    overflow-y: auto !important;
    overflow-x: hidden !important; 
}

/* Redressement du contenu tout en préservant le flux */
.menu-overlay-vintage > * { 
    transform: skewX(6deg); 
    width: 100%;
    margin-bottom: 20px;
    display: block !important;
}

/* --- 2. DÉCALAGE PROGRESSIF (L'EFFET ESCALIER) --- */
/* On applique des marges à gauche croissantes pour créer le décalage vers la droite */
.menu-overlay-vintage > *:nth-child(1) { margin-left: 0px; }
.menu-overlay-vintage > *:nth-child(2) { margin-left: 20px; }
.menu-overlay-vintage > *:nth-child(3) { margin-left: 40px; }
.menu-overlay-vintage > *:nth-child(4) { margin-left: 60px; }
.menu-overlay-vintage > *:nth-child(5) { margin-left: 80px; }

/* ========================================================================= 
   NAVIGATION LANGUES (INTÉGRÉE AU PRÉAMBULE)
   ========================================================================= */

/* Conteneur des 6 onglets */
.lang-tabs-container {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 20px 0 !important;
    z-index: 1 !important; /* Calque neutre aligné sur le flux du texte */
    clear: both !important;
}
/* Style commun des onglets */
.lang-tab {
    padding: 8px 15px;
    background: #f8f8f8;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-family: 'DIN', sans-serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

/* Suppression de la distinction de taille */
.lang-more-btn {
    background: #000 !important;
    color: #fff !important;
    margin: 0 !important;
    min-width: 45px;      
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px !important; 
    cursor: pointer;
    font-family: sans-serif; /* Important pour que le chevron s'affiche proprement */
    font-size: 1.2rem;       /* Ajuste la taille du chevron pour qu'il soit bien visible */
    line-height: 1;          /* Assure le centrage vertical */
}

/* Assurer que le conteneur more ne casse pas le flux */
.lang-more-wrapper {
    position: relative;
    display: flex;
}

/* Conteneur de la liste verticale (MORE) */
.vertical-lang-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f4e4c9;
    border: 1px solid #000;
    width: 200px;
    max-height: 200px;
    
    /* Scrollbar à gauche : technique RTL */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #000 #f4e4c9;
    direction: rtl; 
    
    z-index: 100;
    display: none; /* Basculé en flex via JS */
    flex-direction: column;
}

/* Contenu de la liste : retour à la lecture normale LTR */
.vertical-lang-list > * {
    direction: ltr;
}

/* Densité des liens dans la liste verticale */
.vertical-lang-list .lang-item {
    padding: 2px 10px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    border-bottom: 1px dotted #a89e8a;
    text-decoration: none;
    color: #000;
    font-family: 'DIN', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* ========================================================================= 
   NETTOYAGE DES ANCIENS BLOCS (ÉVITER CONFLITS)
   ========================================================================= */
.lang-tableau-compact, 
.lang-overlay, 
.lang-list-main, 
.lang-list-extended {
    display: none !important;
}

/* --- STYLE DES DRAPEAUX - CORRIGÉ --- */
.flag {
    display: inline-block;
    /* On force la police emoji avant les autres */
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
    font-size: 1.5rem !important; /* Augmenté pour une meilleure visibilité */
    line-height: 1 !important;
    margin-right: 10px;
    vertical-align: middle;
    /* Désactivation du style texte pour éviter qu'ils ne se comportent comme des lettres */
    font-style: normal !important;
    text-transform: none !important;
    /* Empêche les effets de texte indésirables */
    text-shadow: none !important; 
}

/* --- STYLE DES ONGLETS (MAINTIENT L'ALIGNEMENT) --- */
.lang-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: #f8f8f8;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-family: 'DIN', sans-serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
        position: relative; /* Indispensable pour que z-index fonctionne */
    z-index: 9999;      /* On force le bouton à être au-dessus de tout le reste */
    pointer-events: auto !important; /* On force le clic à être actif */
}
/* 1. Comportement par défaut : Tout le site en simple colonne */
.two-columns-text, .article-content, .read-more-content {
    column-count: 1 !important;
    column-gap: 0 !important;
}



/* ========================================================================= 
   7ÈME RÉPUBLIQUE (SEGMENT 5 : TEXTES, ARTICLES ET TABLEAUX)
   ========================================================================= */

/* --- 1. MODULE D'INTRODUCTION --- */
/* 1. On supprime le !important qui bloque tout */
.module-introduction { 
    padding: 0 5px; 
    margin: 0 auto 5px auto; 
    width: 100%; 
    text-align: center; 
}

/* 2. On utilise le sélecteur enfant direct (>) */
/* Cela signifie : "Seulement les paragraphes qui sont DIRECTEMENT dans le module" */
.module-introduction > p { 
    font-family: 'DIN', sans-serif; 
    font-size: 1rem; 
    margin: 0; 
}

.module-introduction h2 { font-family: 'Varela Round', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.3rem; margin: 20px 0 10px 0; }

.trait-separation { width: 40px; height: 3px; background-color: #000; margin: 15px auto; }

/* --- 2. PRÉAMBULE ET TITRES DE NIVEAU --- */
.preamble-title { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; color: #111; letter-spacing: 2px; margin-bottom: 5px; text-transform: uppercase; text-align: center; }

.preamble-content { text-align: justify; }

.p-spaced { margin-bottom: 25px; line-height: 1.8; text-align: justify; }
.p-spaced-top { margin-top: 20px; }


.preamble-subtitle { font-family: 'DIN', sans-serif; font-weight: 700; font-size: 1rem; color: #bc3c00; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 30px; text-align: center; }
.part-title {     font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #000; 
    border-bottom: 3px solid #000; margin: 60px 0 20px 0; padding-bottom: 8px; 
    text-transform: uppercase; display: block; 
     text-shadow: 
        1px 1px 0px #ffffff, 
        2px 2px 0px #e0d5c1, 
        4px 4px 8px rgba(0, 0, 0, 0.45), 
        0 0 20px rgba(188, 60, 0, 0.2) !important;
}

.sub-part-title, .sub-article-title { 
    font-family: 'DIN', sans-serif; font-size: 1.25rem; font-weight: 700; color: #bc3c00; 
    border-bottom: 1px solid #eaeaea; margin: 25px 0 10px 0; padding-bottom: 5px; 
}
.sub-article-title { border-bottom: 2px solid #000; }

.conclusion-block { 
    margin: 25px 0 30px 0; font-style: italic; border-left: 4px solid #bc3c00; 
    padding: 15px; color: #444; background-color: #fdfbf7; 
}
.conclusion-block strong { font-style: normal; font-family: 'Varela Round', sans-serif; text-transform: uppercase; color: #000; }

/* --- 3. TABLEAUX RESPONSIVES --- */
.table-container {
    width: 100%; overflow-x: auto; margin: 20px 0;
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.2);
}

.constitution-table {
    width: 100%; min-width: 700px; border-collapse: collapse;
    font-family: 'DIN', sans-serif; font-size: 0.95rem; background: #fff; border: 1px solid #ddd;
}
.constitution-table th {
    background-color: #f8f8f8; color: #222; font-family: 'Oswald', sans-serif;
    text-transform: uppercase; padding: 15px; border-bottom: 2px solid #bc3c00;
}
.constitution-table td { padding: 15px; border-bottom: 1px solid #eee; border-right: 1px dotted #eee; vertical-align: top; }
.constitution-table tbody tr:hover { background-color: #fcf9f2; }


/* ========================================================================= 
   4. SÉCURITÉ DE MISE EN PAGE ET COLONNAGE (RÈGLES MAÎTRESSES)
   ========================================================================= */



/* ========================================================================= 
   6. BLOCS ARTICLES ET CONTENU DYNAMIQUE
   ========================================================================= */

/* --- A. Structure du bloc --- */
.article-bloc { 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    margin-bottom: 25px; 
    position: relative; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
}

.article-header { 
    padding: 15px 20px; 
    background-color: #fff; 
    border-bottom: 2px solid #000; 
    display: flex; 
    align-items: center; 
}

.article-label { 
    background-color: #000; 
    color: #fff; 
    padding: 4px 8px; 
    margin-right: 10px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    box-shadow: none !important;
    filter: none !important;
}

.article-header h3 { 
    margin: 0; 
    font-family: 'Varela Round', sans-serif; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
}

/* --- FORMAT DU CHAPEAU / RÉSUMÉ D'ARTICLE --- */
.article-lead {
    font-family: 'League Spartan', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    color: #2b2b2b;
    background: none !important;
    border: none !important;
    padding: 6px 15px;
    margin: 15px auto !important;
    max-width: 700px !important;
    width: 80% !important;
    text-align: center;
    text-transform: uppercase;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* Trait fin de 4px à gauche et à droite du texte */
.article-lead::before,
.article-lead::after {
    content: "";
    display: inline-block !important;
    width: 40px !important;
    height: 4px !important;
    background-color: #bc3c00 !important;
    flex-shrink: 0 !important;
}



/* =========================================================
   CORRECTION UNIFIÉE DES CLASSES DE CONTENU (CSS)
   ========================================================= */

/* --- 1. SYSTÈME DES ARTICLES (.article-content) --- */
/* Articles : État fermé */
.article-content.collapsed {
    max-height: 80px !important;
    overflow: hidden !important;
}

/* Articles : État ouvert */
.article-content:not(.collapsed) {
    max-height: 10000px !important;
    overflow: visible !important;
    padding-bottom: 30px;
}


/* --- 2. SYSTÈME "VOIR PLUS" (INTRODUCTION / GÉNÉRATIONS) --- */
.read-more-content {
    display: block !important;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* État ouvert (Classe dynamique .hidden pour l'intro) */
.read-more-content.hidden {
    max-height: 2000px !important;
    overflow: visible !important;
}

/* Fondu visuel en bas de bloc pour l'intro fermée */
.read-more-content:not(.hidden)::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.article-content p, .article-content li { 
    font-family: "Varela Round", sans-serif; 
    font-size: 1.05rem; 
    line-height: 1.7; 
    color: #222; 
}
/* Lettrine stylisée */
.article-content > p:first-of-type::first-letter { 
    font-family: 'Racing Sans One', cursive; 
    float: left; 
    font-size: 3.5rem; 
    line-height: 0.8; 
    padding: 4px 10px 0 3px; 
    color: #bc3c00; 
}


/* --- C. Masque et Interaction --- */
.fade-mask { 
    position: absolute; 
    bottom: 0; left: 0; 
    width: 100%; height: 80px; 
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); 
    display: none; 
    pointer-events: none; 
}
.article-content.collapsed .fade-mask { display: block; }

/* Bouton Lire l'article */
.btn-read-more {
    display: block;
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 12px;
    background: #fdfbf7;
    border: none;
    border-top: 1px dashed #ccc;
    color: #bc3c00;
    font-family: 'DIN', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-read-more:hover {
    background: #f4e4c9;
    color: #000;
}

/* --- 2. FOOTER D'ARTICLE --- */
.article-footer-layout { display: flex; justify-content: space-between; margin-top: 30px; padding: 20px; border-top: 1px solid #ddd; gap: 20px; flex-wrap: wrap; }
.view-stat, .like-button { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.like-button.liked { border-color: #bc3c00; background-color: rgba(188,60,0,0.05); }


/* ========================================================================= 
   7ÈME RÉPUBLIQUE (SEGMENT 7 : NAVIGATION VINTAGE & RESPONSIVE)
   ========================================================================= */

/* --- 1. MENU VINTAGE & PROFIL --- */
.bloc-diagonal-1, .bloc-diagonal-2, .bloc-diagonal-3 { width: 100%; display: flex; flex-direction: column; align-items: flex-end; padding-left: 20px; }
.profil-photo-pano { 
    width: 120%; height: 120px; object-fit: cover; margin: -15px -20px 15px -50px; 
    border-top: 2px solid #222; border-bottom: 2px solid #222; filter: sepia(0.3) contrast(1.1); 
}
.profil-bio { font-family: "Edu SA Hand", cursive; font-weight: 600; font-size: 1.1rem; color: #222; width: 60%; padding-right: 20px; text-align: right; }
.profil-email { 
    font-family: 'DIN', monospace; font-weight: 700; color: #bc3c00; text-decoration: none; 
    border: 1px dashed #bc3c00; padding: 2px 8px; transition: 0.3s; margin-right: 20px; 
}
.profil-email:hover { background: #bc3c00; color: #fff; }

.vintage-section-title { 
    display: block; width: 100%; text-align: right; font-family: 'Oswald', sans-serif; 
    font-size: 1.6rem; text-transform: uppercase; color: #222; margin: 20px 0 15px 0; position: relative; padding-bottom: 8px; 
}
.vintage-section-title::before, .vintage-section-title::after { content: ''; position: absolute; left: 0; width: 100%; background-color: #222; }
.vintage-section-title::before { bottom: 4px; height: 4px; }
.vintage-section-title::after { bottom: 0; height: 1px; }

/* --- 2. BANDES DE NAVIGATION --- */
.nav-bands-container { display: flex; flex-direction: column; width: 100%; gap: 18px; margin-bottom: 30px; }
.nav-band { 
    display: flex; justify-content: flex-end; align-items: center; width: 100%; 
    background: linear-gradient(145deg, #2b2b2b, #1a1a1a); padding: 15px 20px; 
    border: 1px solid #000; border-radius: 2px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: 0.2s; 
}
.nav-band:hover { transform: translateX(-5px); border-right: 4px solid #bc3c00; }
.band-text { font-family: 'Oswald', sans-serif; font-size: 1.1rem; letter-spacing: 2px; color: #f4e4c9; margin-right: 15px; }


/* ========================================================================= 
   7ÈME RÉPUBLIQUE (SEGMENT 8 : EXPANSION ET FLUX)
   ========================================================================= */

/* --- 1. GESTION DES ESPACEMENTS --- */
/* Coussin invisible en fin de page pour garantir la visibilité totale du contenu */
body::after {
    content: '';
    display: block;
    height: 150px;
    width: 100%;
    pointer-events: none;
}

/* Animation de transition pour le pied de page (SCROLL DOWN) */
body.scroll-down footer {
    transform: translateY(100%) !important;
}





/* Bouton d'expansion */
.btn-inline-expand {
    display: block;
    margin: 15px 0 25px 0;
    padding: 8px 20px;
    background-color: #fff;
    border: 2px solid #bc3c00;
    color: #bc3c00;
    font-family: 'DIN', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-align: center;
    break-inside: avoid;
}
.btn-inline-expand:hover {
    background-color: #bc3c00;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



