/* ==========================================================================
   MASTER CSS - 7ÈME RÉPUBLIQUE (VERSION INTÉGRALE ET RÉPARÉE)
   ========================================================================== */

/* --- 1. BASE ET POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

.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; }

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

* { 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

h1, .titres h1, summary { font-family: "Racing Sans One", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
h2, h3 { font-family: "Varela Round", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
h4 {
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    display: block !important;
    width: 100% !important;
}
/* LE CORPS DU SITE (UNIQUE) */
/* On désactive l'effet de disparition au scroll qui cassait l'affichage */
body.scroll-down header {
    transform: translateY(0) !important; 
}
body {
    font-family: 'DIN', 'Noto Color Emoji', sans-serif; 
    font-size: 1.1rem; 
    line-height: 1.6; 
    color: #000;
    margin: 0; 
    padding-top: 180px !important; /* Ajustement dynamique de la zone d'affichage du header */
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; 
    width: 100%; 
    word-wrap: break-word;
}

/* --- 2. HEADER ET MENUS HORIZONTAUX --- */
/* (Ne touchez pas à ce qu'il y a en dessous, c'est déjà parfait !) */


/* --- 2. HEADER ET MENUS HORIZONTAUX --- */
/* Restauration et stabilisation de l'en-tête */
/* Disposition générale pour grand écran (PC) */




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

body header {
    transform: translateY(0) !important;
}
}
.header-content {
    display: flex !important;
    flex-direction: row-reverse !important; /* Inverse l'ordre : le logo se place à gauche, le titre à droite */
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    padding: 0 20px !important;
}
.header-content .titres {
    text-align: right;
}


.header-content .logo {
    margin-left: 0; /* Supprime la marge automatique pour laisser le flexbox gérer l'espace inversé */
}

/* Logo positionné à gauche */
.logo {
    display: block !important;
    position: relative !important;
    margin-right: 20px !important; /* Sépare le logo du titre qui se trouve désormais à sa droite */
    flex-shrink: 0 !important;
    z-index: 10;
}

.logo img { 
    height: 80 px !important; 
    width: auto !important; 
    display: block !important; 
}
.logo:hover img { transform: translateY(1px); filter: drop-shadow(1px 1px 0px rgba(255,255,255,1)) drop-shadow(2px 2px 2px rgba(0,0,0,0.6)) !important; }
/* Titres (phrase 1 et phrase 2) à gauche et alignés à droite dans leur bloc */
.titres {
    position: relative !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important; /* Aligne le texte à gauche du bloc de texte */
    text-align: left !important;
    z-index: 1 !important;
    flex-shrink: 1 !important;
}

.titres h1 { 
    font-size: 2.65rem !important; 
    margin: 0 !important; 
    color: #222 !important; 
    line-height: 1 !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: flex-end !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9), 3px 3px 5px rgba(0, 0, 0, 0.5) !important; 
}

.titres .eme { 
    font-size: 0.6em !important; 
    text-transform: uppercase; 
    position: relative; 
    top: -10px !important; 
    margin-right: 0 !important; 
    margin-left: 5px !important; 
    text-shadow: 1px 1px 1px rgba(255,255,255,0.8), 2px 2px 3px rgba(0,0,0,0.4) !important; 
}

.titres p { 
    font-family: 'DIN', sans-serif; font-weight: 300; 
    margin: 5px 0 0 0 !important; 
    color: #666 !important; 
    font-size: 1.2rem !important; 
    text-shadow: none !important; 
    text-align: right !important; 
}

.menu-wrapper { display: flex !important; align-items: flex-end !important; width: 100% !important; position: relative; margin-top: 10px; }
/* Rétablissement du défilement horizontal et de la barre de défilement */
.scroll-menu {
    display: flex;
    overflow-x: auto !important; /* Force l'apparition de la barre de défilement horizontale */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Pour les navigateurs modernes */
    scrollbar-color: #bc3c00 #f4e4c9;
    padding-bottom: 10px; /* Espace nécessaire pour afficher la barre de défilement en dessous */
    margin-bottom: 15px;
}
.nav-and-lang-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-grow: 1;
}


/* ==========================================================================
   RÉGULATION UNIFIÉE DE L'EN-TÊTE - ÉCRANS DE BUREAU
   ========================================================================== */

.site-header {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background-color: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000000 !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
}

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

.header-titre-niveau {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
}

.logo-titre {
    max-width: 55px !important;
    height: auto !important;
    width: 100% !important;
}

.header-titre-niveau h1 {
    font-size: 1.6rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

/* Neutralisation des contrôles pour les intégrer dans le flux */
.menu-controller, .lang-controller {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* Rail de défilement horizontal */
nav.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;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.tab-folder {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    height: auto !important;
    line-height: normal !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
@media screen and (max-width: 768px) {
    .site-header {
        padding: 6px 8px !important;
        gap: 4px !important;
    }

    .header-main-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        margin-bottom: 4px !important;
        gap: 6px !important;
    }

    .logo-titre {
        max-width: 38px !important;
    }

    .header-titre-niveau h1 {
        font-size: 0.92rem !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .menu-controller .menu-inner-text, 
    .lang-controller .menu-inner-text {
        font-size: 0.75rem !important;
    }

    nav.scroll-menu {
        gap: 6px !important;
        padding: 2px 0 !important;
    }

    .tab-folder {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
    
    
}
/* ==========================================================================
   RÉTABLISSEMENT UNIVERSEL DU MENU D'ONGLETS ET SCROLL FIN
   ========================================================================== */

/* Ajustements pour les très grands écrans et le passage en mode Bureau (Desktop) */
@media (min-width: 769px) {
   

    .header-titre-niveau {
        flex-direction: column;
        gap: 4px;
    }

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

    .header-titre-niveau h1 {
        font-size: 1.1rem;
        text-align: center;
    }

    .nav-and-lang-wrapper {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    nav.scroll-menu {
        flex-grow: 1;
        max-width: calc(100% - 70px); /* Laisse la place au bouton FR */
    }
}
    /* Conteneur du titre et logo réduit d'environ 40% sur mobile, taille normale sur PC */
    .header-titre-niveau {
        transform: none;
        display: flex;
        align-items: center;
        margin-right: 20px;
    }

    .header-titre-niveau .logo-titre {
        height: 50px;
        width: auto;
        margin-right: 15px;
    }

    .header-titre-niveau h1 {
        font-size: 1.1rem;
        margin: 0;
    }

    /* Le conteneur englobant le scroll */
    .scroll-menu-container {
        width: auto;
        flex-grow: 1;
        position: relative;
        margin-bottom: 0;
        overflow: hidden; 
    }

    /* Forcer le comportement de scroll horizontal sur PC comme sur mobile */
    .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 #f4e4c9;
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100%;
    }

    /* Restauration de la barre de défilement fine */
    .scroll-menu::-webkit-scrollbar {
        height: 8px;
        display: block !important;
    }

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

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



/* ==========================================================================
   MENU DE NAVIGATION - ONGLETS (CORRIGÉ ET CALIBRÉ)
   ========================================================================== */

.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; /* <--- Le fond de la piste de scroll passe de jaune (#f4e4c9) à blanc (#fff) */
    margin-left: 0 !important; 
    padding-left: 0 !important;
}

/* Rétablissement de la barre de scroll sous le menu */
.scroll-menu::-webkit-scrollbar {
    height: 8px;
    display: block !important;
}

.scroll-menu::-webkit-scrollbar-track {
    background: #fff; /* <--- Le rail de la barre de scroll devient blanc au lieu de jaune */
    border-radius: 4px;
}

.scroll-menu::-webkit-scrollbar-thumb {
    background: #000; /* La poignée de scroll est noire */
    border-radius: 4px;
}

/* Style des onglets (boutons) */
.scroll-menu a, 
.scroll-menu .tab-folder,
.tab-folder { 
    display: inline-block;
    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-bottom: none;
    border-radius: 8px 8px 0 0; 
    white-space: nowrap; 
    transition: background-color 0.2s, color 0.2s, transform 0.2s, border-top 0.2s, box-shadow 0.2s;
    margin-right: 6px; 
}

/* 1. L'onglet survolé par la souris */
/* 1. L'onglet survolé par la souris (Retrait du translateY qui mange le trait) */
.scroll-menu a:hover,
.scroll-menu .tab-folder:hover { 
    background-color: #fff; 
    color: #000; 
    transform: none !important; /* Annule le décalage vertical */
    border-top: 3px solid #bc3c00; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
}

/* 2. L'onglet actif (Fond Noir, Texte Blanc, Trait Blanc/Rouge) */
.scroll-menu a.active,
.scroll-menu .tab-folder.active { 
    background-color: #000 !important; 
    color: #fff !important; 
    transform: none !important; /* Annule le décalage vertical */
    border-top: 4px solid #bc3c00 !important; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3); 
    z-index: 10;
}

.link-download { 
    background-color: #fff !important; 
    color: #bc3c00 !important; 
    font-weight: 900 !important; 
}

.phrase-separateur { 
    display: flex; 
    align-self: center; 
    white-space: nowrap; 
    color: #888; 
    font-family: 'DIN', sans-serif; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    opacity: 0.6; 
    padding: 0 30px; 
    border-left: 1px solid #ccc; 
    margin: 0 10px; 
    height: 20px; 
    line-height: 20px; 
}

.tab-joker { 
    background-color: #000 !important; 
    color: #fff !important; 
    border: 1px solid #000 !important; 
    margin-left: 10px; 
    opacity: 1 !important; 
}

.nav-arrow { 
    background: transparent !important; 
    border: none !important; 
    color: #000; 
    font-family: sans-serif; 
    font-size: 4rem !important; 
    font-weight: 300; 
    cursor: pointer; 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 20; 
    flex-shrink: 0; 
    margin-bottom: 10px; 
    padding-bottom: 10px; 
    line-height: 1; 
}

.nav-arrow:hover { 
    color: #bc3c00; 
}

.nav-arrow.left { 
    margin-right: 0px; 
}

.nav-arrow.right { 
    margin-left: 0px; 
}

/* --- 3. BOUTONS MENU ET LANGUE --- */

.icon-2x {
    font-size: 2em; /* Double la dimension du caractère */
    line-height: 1;
    display: inline-flex;
    align-items: center;
}



.lang-emoji-2x {
    font-family: 'DIN', 'Noto Color Emoji', sans-serif !important; 
}

.menu-controller .menu-box, 
.lang-controller .menu-box {
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0;
    height: 100%;
    white-space: nowrap; 
    width: auto !important;
    gap: 10px; 
}

/* Émoji dissocié et dimensionné à deux fois l'échelle de base */
.lang-emoji-2x {
    font-size: 2em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Application des traits graphiques, signature de l'interface */
.menu-box::before, .menu-box::after,
.lang-controller .menu-box::before, .lang-controller .menu-box::after { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 2px; 
    background-color: #000; 
    left: 0; 
    transition: all 0.3s ease; 
}

.menu-box::before,
.lang-controller .menu-box::before { top: -3px; }

.menu-box::after,
.lang-controller .menu-box::after { bottom: -3px; }

.menu-inner-text { 
    font-weight: 700; 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    color: #000; 
    opacity: 1 !important; 
}

.menu-controller.open, 
.lang-controller.open { 
    opacity: 0 !important; 
    pointer-events: none !important; 
    transform: scale(0.8) !important; 
}

/* --- 4. CONTENU PRINCIPAL ET ARTICLES --- */
main { 
    width: 100%; 
    max-width: 100%; 
    padding: 0 20px; 
    margin: 0 auto; 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
}

.module-introduction { 
    padding: 0 20px !important; 
    margin: 0 auto 20px auto !important; 
    width: 100%; 
    max-width: 900px; 
    text-align: center !important; 
}

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

.module-introduction p { 
    font-family: 'DIN', sans-serif; 
    font-size: 1rem !important; 
    color: #666; 
    margin: 0 !important; 
}

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

/* ==========================================================================
   MISE EN PAGE DES TEXTES (PRÉAMBULE, NIVEAUX & ARTICLES)
   ========================================================================== */

/* --- A. LE GRAND TITRE (Majestueux, typographique, épuré) --- */
.preamble-title { 
    font-family: 'Oswald', sans-serif !important; 
    font-size: 2.8rem !important; 
    font-weight: 700;
    color: #111 !important; 
    letter-spacing: 2px; 
    margin-bottom: 5px !important; 
    text-transform: uppercase;
    text-align: center;
}
.preamble-subtitle { 
    font-family: 'DIN', sans-serif !important; 
    font-weight: 700;
    font-size: 1rem !important; 
    color: #bc3c00 !important; 
    text-transform: uppercase; 
    letter-spacing: 4px; /* Un lettrage large très chic */
    margin-bottom: 30px !important; 
    text-align: center !important; 
}
.preamble-content { text-align: justify; }

.p-spaced { margin-bottom: 15px !important; }
.p-spaced-top { margin-top: 15px; }

/* --- B. STRUCTURE DU PRÉAMBULE ET MANIFESTE --- */
/* 1. LES GRANDES PARTIES (I, II, III... Massif, majuscules, trait épais) */
.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; 
    letter-spacing: 1px;
    column-span: all; 
    -webkit-column-span: all; 
    display: block; 
}

/* 2. LES SOUS-PARTIES (1, 2, 3... Plus petites, PAS de majuscules) */
.sub-part-title { 
    font-family: 'DIN', sans-serif; 
    font-size: 1.25rem; 
    font-weight: 700;
    color: #bc3c00; 
    border-bottom: 1px solid #eaeaea; /* Ligne beaucoup plus douce */
    margin: 25px 0 10px 0; 
    padding-bottom: 5px; 
    display: block; 
    break-after: avoid; 
    text-transform: none; /* LE SECRET EST ICI : on remet le texte en normal */
}
.sub-part-title.first { margin-top: 10px; }

/* --- pour faire marcher lire bouton rond plus --- */
.hidden { display: none; }

/* --- C. SÉPARATEURS DE NIVEAUX (La barre noire géante) --- */
.chapter-separator {
    background-color: #111;
    border-left: 10px solid #bc3c00;
    padding: 20px 10px;
    margin: 60px 0 40px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    column-span: all; 
    -webkit-column-span: all;
    display: block;
}
.chapter-separator h2 {
    font-family: 'Racing Sans One', sans-serif;
    font-size: 5rem;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}
.chapter-separator p {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.1rem;
    color: #f4e4c9;
    margin: 0;
    text-transform: uppercase;
}

/* --- D. SOUS-TITRES À L'INTÉRIEUR DES BOÎTES D'ARTICLES (Très discrets) --- */
.sub-article-title {
    font-family: 'DIN', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #bc3c00;
    text-transform: none; /* Pas de majuscules ici non plus ! */
    margin: 25px 0 10px 0;
    padding-bottom: 5px;
     border-bottom: 2px solid #000000 !important; /* Trait noir, 2px d'épaisseur */
    break-after: avoid; 
}

/* --- E. ENCADRÉS DE CONCLUSION --- */
.conclusion-block { 
    margin-top: 25px; margin-bottom: 30px; 
    font-style: italic; border-left: 4px solid #bc3c00; 
    padding-left: 15px; color: #444; 
    background-color: #fdfbf7; padding: 15px; 
}
.conclusion-block strong { 
    color: #000; font-style: normal; font-family: 'Varela Round', sans-serif; text-transform: uppercase; 
}


/* ==========================================================================
   TABLEAUX DANS LES ARTICLES (VERSION CORRIGÉE)
   ========================================================================== */

/* 1. Le wrapper doit agir comme un "briseur de flux" */
.table-responsive-wrapper {
    display: block !important;
    width: 100vw !important; /* Force la largeur par rapport au viewport */
    max-width: 100% !important;
    margin: 30px -10px !important; /* Ajustement négatif si le parent a du padding */
    padding: 0 !important;
    overflow-x: auto;
    
    /* Propriétés clés pour briser les colonnes */
    column-span: all !important;
    -webkit-column-span: all !important;
    break-inside: avoid !important;
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 2. Le tableau lui-même */
.constitution-table {
    width: 100% !important;
    min-width: 700px; /* Assure la lisibilité sur mobile */
    margin: 0 !important;
    border-collapse: collapse;
    font-family: 'DIN', 'Noto Color Emoji', sans-serif;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid #ddd;
    table-layout: auto; /* Permet aux colonnes de s'adapter au contenu */
}

/* 3. Style des en-têtes */
.constitution-table th {
    background-color: #f8f8f8;
    color: #222;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #bc3c00;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 4. Style des cellules */
.constitution-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px dotted #eee;
    vertical-align: top;
    color: #333;
    line-height: 1.5;
}

.constitution-table td:last-child { border-right: none; }
.constitution-table tbody tr:hover { background-color: #fcf9f2; }

/* 5. Sécurité : Annulation des colonnes sur les parents proches */
/* On cible explicitement les conteneurs qui pourraient forcer le multi-colonne */
.two-columns-text, .article-content, .read-more-content {
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    column-count: 1 !important;
    column-gap: 0 !important;
}

/* Sous-titres des articles (I, II, III...) */
.article-sub { color: #000; border-bottom: 2px solid #bc3c00; display: inline-block; margin-top: 30px; margin-bottom: 15px; font-size: 1.2rem; }
.article-sub.first { margin-top: 20px; }
.article-sub-major { margin-top: 40px; margin-bottom: 10px; color: #000; font-size: 1.3rem; border-bottom: 2px solid #000; padding-bottom: 5px; }

/* Encadré de conclusion */
.conclusion-block { margin-top: 25px; margin-bottom: 10px; font-style: italic; border-left: 3px solid #bc3c00; padding-left: 15px; color: #444; }
.conclusion-block strong { color: #000; font-style: normal; }


/* Blocs Articles (Nouveau Design) */
.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: #ffffff; border-bottom: 2px solid #000; }
.article-header h3 { margin: 0; font-family: 'Varela Round', sans-serif; font-size: 1.1rem; text-transform: uppercase; text-align: left; }
.article-label { background-color: #000000; color: #ffffff; padding: 4px 8px; display: inline-block; margin-right: 10px; font-weight: 700; vertical-align: middle; font-size: 0.9rem; }

.article-content { position: relative !important; padding: 20px 30px 0 30px; text-align: justify; border-top: 1px solid #eee; overflow: hidden; transition: max-height 0.5s ease-in-out; }
.article-content p, .article-content ul, .article-content li { font-family: "Varela Round", sans-serif !important; font-size: 1.05rem; line-height: 1.7; color: #222; }
.article-content > p:first-of-type::first-letter { font-family: 'Racing Sans One', cursive !important; float: left; font-size: 3.5rem; line-height: 0.8; padding: 4px 10px 0 3px; color: #bc3c00 !important; text-transform: uppercase; }

/* Aperçu et Masque Blanc */
.article-content.collapsed { max-height: 180px !important; column-count: 1 !important; display: block !important; overflow: hidden !important; }
.article-content:not(.collapsed) { max-height: 8000px; padding-bottom: 50px !important; }

.fade-mask { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); display: none; cursor: pointer; z-index: 10; }
.article-content.collapsed .fade-mask { display: block; }

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

/* Footer d'article (Vues / Partages) */
.article-footer-layout { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 30px; padding-top: 20px; border-top: 1px solid #ddd; flex-wrap: wrap; gap: 20px; break-inside: avoid; page-break-inside: avoid; -webkit-column-break-inside: avoid; column-span: all; -webkit-column-span: all; }
.footer-left-stats { display: flex; flex-direction: column; gap: 10px; min-width: 100px; }
.view-stat { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid #ccc; border-radius: 3px; background: #fff; font-family: inherit; color: #2b2b2b; font-size: 1rem; box-sizing: border-box; }
.view-stat .view-icon { display: flex; align-items: center; }
.view-stat .view-icon svg { fill: #2b2b2b; }
.like-button { background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 6px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: inherit; transition: all 0.3s ease; font-size: 1rem; color: #2b2b2b; box-sizing: border-box; }
.like-button.liked { border-color: #bc3c00; background-color: rgba(188, 60, 0, 0.05); }
.like-button.liked .like-icon svg { fill: #bc3c00; stroke: #bc3c00; transform: scale(1.1); }
.footer-right-tools { display: flex; flex-direction: column; gap: 10px; }
.tool-btn { border: 1px dotted #999 !important; border-radius: 3px; background: #fff !important; padding: 6px 12px !important; margin: 0 !important; width: 100% !important; min-width: 160px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 15px; transition: all 0.3s ease; box-sizing: border-box; }
.tool-btn .label { font-family: "Varela Round", sans-serif; font-weight: 400; font-size: 0.65rem; color: #2b2b2b; text-transform: uppercase; margin-right: 5px; }
.tool-btn .icon-red { width: 12px; height: 12px; fill: #bc3c00; }
.tool-btn:hover { border-color: #bc3c00 !important; background-color: rgba(188, 60, 0, 0.05) !important; }

/* --- 5. MENUS OVERLAYS LATÉRAUX --- */
/* Par défaut, les menus et backdrops sont cachés */
.menu-overlay-vintage, .lang-overlay,
.menu-backdrop, .lang-backdrop {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Quand la classe .active est ajoutée par le JavaScript, on affiche l'overlay */
/* --- Correction affichage du Menu Vintage --- */
/* ==========================================================================
   GESTION DES SUPERPOSITIONS - HAUTE PERFORMANCE POLITIQUE
   ========================================================================== */

/* --- Panneau Menu Principal (Gauche) --- */
.menu-overlay-vintage {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000000 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
}

.menu-overlay-vintage.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* --- Toile de fond (Backdrop) Menu --- */
.menu-backdrop {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 9999995;
    background: rgba(0, 0, 0, 0.6);
    display: none;
}

.menu-backdrop.active {
    display: block;
}

/* --- Sélecteur de Langue (Droite) --- */
.lang-overlay {
    position: fixed !important;
    top: 80px !important; /* Ancré sous le header fixe */
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    width: 320px;
    max-width: 90%;
    background: #fff;
    border: 3px solid #bc3c00;
    z-index: 10000000 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.lang-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* --- Toile de fond (Backdrop) Langue --- */
.lang-backdrop {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 9999995;
    background: rgba(0, 0, 0, 0.1);
    display: none;
}

.lang-backdrop.active {
    display: block;
}
.lang-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2000000;
    width: 320px;
    max-width: 90vw;
    background-color: #f4e4c9 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E") !important;
    padding: 80px 30px 30px 30px;
    border-left: 4px solid #222;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.lang-overlay.open {
    transform: translateX(0);
}

.lang-title {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.1rem;
    color: #222;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #222;
}

.lang-search-bar {
    width: 100%;
    padding: 12px;
    font-family: 'Varela Round', sans-serif;
    font-size: 1rem;
    border: 2px solid #222;
    border-radius: 0;
    outline: none;
    margin-bottom: 20px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
}
.lang-search-bar:focus { border-color: #bc3c00; }

.lang-list {
    display: block;
    overflow-y: auto;
    flex-direction: column;
    flex-grow: 1;
    padding-right: 10px;
    max-height: calc(100vh - 180px);
}
.lang-list::-webkit-scrollbar { width: 6px; }
.lang-list::-webkit-scrollbar-thumb { background: #bc3c00; }

.lang-item {
    display: block;
    padding: 14px 10px;
    text-decoration: none;
    font-family: 'Varela Round', 'Noto Color Emoji', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #222 !important;
    border-bottom: 1px dotted #aaa;
    background: transparent;
    transition: 0.2s;
}
.lang-item:hover { 
    background: #222; 
    color: #fff !important; 
    padding-left: 15px; 
}

.btn-close-lang { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    font-family: 'Oswald', sans-serif; 
    font-weight: 700; 
    font-size: 1rem; 
    cursor: pointer; 
    color: #bc3c00; 
    border: 2px solid #222; 
    padding: 5px 12px; 
    background: rgba(255,255,255,0.9); 
    z-index: 100; 
    transition: 0.3s; 
}
.btn-close-lang:hover { background: #222; color: #fff; }

/* Styles spécifiques Menu Vintage */
.bloc-diagonal-1 { margin-right: 0px; width: 100%; display: flex; flex-direction: column; align-items: flex-end; padding-left: 20px; }
.bloc-diagonal-2 { margin-right: 25px; width: 100%; display: flex; flex-direction: column; align-items: flex-end; padding-left: 20px; }
.bloc-diagonal-3 { margin-right: 50px; width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.profil-vintage-container { display: flex; flex-direction: column; align-items: flex-end; width: 100%; margin-top: 10px; }
.profil-photo-pano { width: 120%; height: 120px; object-fit: cover; margin-left: -50px; margin-right: -20px; border-top: 2px solid #222; border-bottom: 2px solid #222; margin-bottom: 15px; filter: sepia(0.3) contrast(1.1); }
.profil-bio { font-family: "Edu SA Hand", cursive; font-weight: 600; font-size: 1.1rem; line-height: 1.4; color: #222; max-width: 60%; width: 60%; margin: 0 0 15px 0; padding-right: 20px; text-align: right; }
.profil-email { font-family: 'DIN', monospace; font-weight: 700; color: #bc3c00; text-decoration: none; font-size: 0.9rem; 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 !important; width: 100% !important; text-align: right; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: #222; margin: 20px 0 15px 0; position: relative; padding-bottom: 8px; }
.vintage-section-title::before { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 4px; background-color: #222; }
.vintage-section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: #222; }
.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; text-decoration: none; transition: all 0.2s ease; border-top: 1px solid rgba(255,255,255,0.15); border-left: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid #000; box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1); border-radius: 2px; }
.nav-band:hover { transform: translateX(-5px); background: linear-gradient(145deg, #333, #222); box-shadow: 5px 5px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2); border-right: 4px solid #bc3c00; }
.band-text { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; color: #f4e4c9; margin-right: 15px; text-shadow: 2px 2px 0px #000000; }
.band-icon { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(-1px -1px 0px rgba(255,255,255,0.25)) drop-shadow(2px 2px 2px rgba(0,0,0,0.8)); transition: transform 0.3s; }
.nav-band:hover .band-icon { transform: scale(1.1) rotate(5deg); filter: drop-shadow(-1px -1px 0px rgba(255,255,255,0.4)) drop-shadow(4px 4px 4px rgba(0,0,0,0.9)); }
.archive-link-vintage { display: flex; justify-content: flex-end; align-items: baseline; text-decoration: none; padding: 10px 0; width: 100%; border-bottom: 1px dotted #999; transition: 0.3s; }

/* Styles spécifiques Menu Langue */
.lang-title { font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: #222; margin-bottom: 20px; border-bottom: 3px solid #222; padding-bottom: 10px; }
.lang-search-bar { width: 100%; padding: 12px; font-family: 'DIN', sans-serif; font-size: 1rem; border: 2px solid #222; border-radius: 0; outline: none; margin-bottom: 20px; box-sizing: border-box; }
.lang-search-bar:focus { border-color: #bc3c00; }
.lang-list { overflow-y: auto; display: flex; flex-direction: column; flex-grow: 1; padding-right: 10px; }
.lang-list::-webkit-scrollbar { width: 6px; }
.lang-list::-webkit-scrollbar-thumb { background: #bc3c00; }
.lang-item { display: block; padding: 12px 10px; text-decoration: none; font-family: 'DIN', 'Noto Color Emoji', sans-serif; font-weight: 700; font-size: 1.1rem; color: #222; border-bottom: 1px dotted #999; transition: 0.2s; }

.lang-item:hover { background: #222; color: #fff; padding-left: 15px; }



/* --- 6. FOOTER --- */
footer { position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; background-color: #ffffff !important; border-top: 5px solid #000000 !important; color: #000000 !important; padding: 15px 0 10px 0 !important; text-align: center !important; z-index: 900 !important; transition: transform 0.3s ease-in-out !important; transform: translateY(0); }
.social-container { display: flex !important; justify-content: center !important; align-items: center !important; gap: 20px !important; margin: 0 0 10px 0 !important; }
.btn-contact-prestige { display: inline-block !important; padding: 8px 15px !important; border: 3px solid #000000 !important; background-color: #ffffff !important; color: #000000 !important; font-family: 'Racing Sans One', sans-serif !important; font-size: 1rem !important; text-transform: uppercase !important; text-decoration: none !important; line-height: 1 !important; }
.btn-contact-prestige:hover { background-color: #000000 !important; color: #ffffff !important; }
.social-svg { width: 24px !important; height: 24px !important; fill: #000000 !important; stroke: none !important; transition: fill 0.3s ease !important; }
.social-item:hover .social-svg { fill: #bc3c00 !important; }
.footer-copyright { display: block !important; width: 100% !important; font-size: 0.65rem !important; color: #666666 !important; font-family: 'DIN', sans-serif !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px !important; }
.no-tracker-badge { position: absolute !important; right: 15px !important; top: 50% !important; transform: translateY(-50%) rotate(-15deg) !important; width: 90px !important; height: auto !important; pointer-events: none; z-index: 50 !important; }
.no-tracker-badge img { width: 100% !important; height: auto !important; display: block !important; mix-blend-mode: multiply !important; opacity: 0.9 !important; filter: drop-shadow(4px 4px 2px rgba(0,0,0,0.3)) !important; }

/* NETTOYAGE GOOGLE TRANSLATE */
.skiptranslate iframe { display: none !important; }
#google_translate_element { display: none !important; }
font { background-color: transparent !important; box-shadow: none !important; }

/* CURSEURS ET GRAIN VINTAGE */
html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23bc3c00' stroke='%23000000' stroke-width='0.5' d='M12,2C8.13,2,5,5.13,5,9v6c0,3.87,3.13,7,7,7s7-3.13,7-7V9C19,5.13,15.87,2,12,2z M12,4c0.55,0,1,0.45,1,1v3 c0,0.55-0.45,1-1,1s-1-0.45-1-1V5C11,4.45,11.45,4,12,4z'/%3E%3C/svg%3E") 16 2, auto !important; }
a, button, summary, .clickable, .fade-mask, .btn-read-more, .lang-controller, .menu-controller { cursor: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='64px' height='64px' viewBox='0 0 120 120'%3E%3Cg%3E%3Cpath fill='%233C5DFF' d='M55.5,19.4c-4.4,0-8,3.6-8,8s3.6,8,8,8s8-3.6,8-8S59.9,19.4,55.5,19.4z M55.5,33.3c-3.3,0-6-2.7-6-6 c0-3.3,2.7-6,6-6c3.3,0,6,2.7,6,6C61.5,30.6,58.8,33.3,55.5,33.3z'/%3E%3Cpath fill='%233C5DFF' d='M55.5,14.3c-7.2,0-13.1,5.9-13.1,13.1s5.9,13.1,13.1,13.1s13.1-5.9,13.1-13.1S62.7,14.3,55.5,14.3z M55.5,38.4c-6.1,0-11.1-5-11.1-11.1s5-11.1,11.1-11.1c6.1,0,11.1,5,11.1,11.1S61.6,38.4,55.5,38.4z'/%3E%3C/g%3E%3Cpath fill='%233C5DFF' d='M90.8,90.1v15c0,0.4-0.3,0.6-0.6,0.6H48.7c-0.4,0-0.6-0.3-0.6-0.6v-15c0-1.7,1.4-3,3-3h36.7 C89.5,87.1,90.8,88.5,90.8,90.1z'/%3E%3Ccircle fill='%23FFFFFF' cx='85.2' cy='92.9' r='2.6'/%3E%3Cpath fill='%23F9E0B2' d='M55.9,24.1h-0.6c-2.4,0-4.4,1.6-4.6,3.6c0,0.1,0,20.3,0,20.4v5v10c0,0,0,0.1-0.1,0l-6.1-1.8 c-12.3-3.6-14.6,4.1-14.6,4.1c-0.8,1.9-0.9,4.1,0.6,4.7c1.1,0.5,3,1,4.5,1.4l7.5,2.3c3.8,1.1,7.5,3.1,8.2,7.2 c0.1,0.5,0.5,3.8,0.7,6H87c0.2-0.3,0.3-0.6,0.4-0.9c0.7-2.6,1.7-6.2,2-7.7c0.2-0.5,0.2-0.9,0.2-1.4v-7.9V53v-2.6 c0-2.1-1.7-4.1-4.1-4.3c-2.5-0.2-4.7,1.3-5,3.3c0,0.1-0.1,0.1-0.1,0v-1.4c0-2.3-2.1-4.1-4.7-4.1H75c-2.3,0-4.3,1.5-4.6,3.5 c0,0.1-0.1,0.1-0.1,0c-0.3-2-2.3-3.5-4.6-3.5h-0.7c-2.3,0-4.3,1.5-4.6,3.5c0,0.1-0.1,0.1-0.1,0c0,0,0-20,0-20 C60.2,25.6,58.2,24.1,55.9,24.1z'/%3E%3C/svg%3E") 30 12, pointer !important; }
body::after { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44JyBudW1PY3RhdmVzPSczJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjA1Jy8+PC9zdmc+"); pointer-events: none !important; z-index: 999999; opacity: 0.4; }

/* ==========================================================================
   7. RESPONSIVE (MOBILES, TABLETTES ET PC)
   ========================================================================== */

/* --- A. BUREAU & GRANDS ÉCRANS (>= 1000px) --- */
@media screen and (min-width: 1000px) {
    /* 1. Structuration Multi-Colonnes (Préambule et articles ouverts) */
    .two-columns-text,
    body .article-content:not(.collapsed) { 
        column-count: 2 !important; 
        column-gap: 60px !important; 
        column-rule: 1px solid #eee !important; 
        text-align: justify !important; 
    }
    
    /* Articles fermés en pleine largeur */
    body .article-content.collapsed { column-count: 1 !important; display: block !important; }
    
    /* 2. Gestion de l'intégrité typographique et média */
    body .article-content h2, body .article-content h3, body .article-content h4,
    .two-columns-text h2, .two-columns-text h3, .two-columns-text h4,
    .part-title, .sub-part-title, .article-sub, .article-sub-major,
    body .article-content img { 
        break-after: avoid !important; 
        column-span: all !important; 
        -webkit-column-span: all !important; 
    }
    
    body { 
        padding-top: 0 !important; 
        margin-top: 0 !important;
    }
    
    /* Style des images dans les articles */
    body .article-content img { width: 100% !important; height: auto !important; margin-bottom: 30px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    
    /* 3. Ajustement Menu Onglets */
    .tab-folder { padding: 10px 12px !important; font-size: 0.85rem !important; }
    
    /* Agrandissement de la police des onglets sur PC (demandé précédemment) */
    .menu-controller, 
    .lang-controller { 
        height: 35px !important; 
    }

    .menu-controller .menu-box, 
    .lang-controller .menu-box {
        height: 100%;
    }

    .menu-inner-text { 
        font-size: 1rem !important; 
        letter-spacing: 3px !important; 
    }
    
    .lang-emoji-2x, .icon-2x {
        font-size: 2.5em !important; 
    }
}

/* --- B. TABLETTES (769px à 999px) --- */
@media screen and (min-width: 769px) and (max-width: 999px) {
    /* Passage en mono-colonne pour éviter l'étroitesse des textes */
    .two-columns-text,
    body .article-content { 
        column-count: 1 !important; 
    }
    
    .tab-folder { 
        padding: 8px 10px !important; 
        font-size: 0.75rem !important; 
    }
}

/* --- C. MOBILES (<= 768px) --- */


@media screen and (max-width: 768px) {
    /* Assainissement de l'en-tête */
    header {
    
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
         padding: 6px 4px !important;
                   
        gap: 4px !important;
        position: sticky !important; 
        top: 0 !important;
        z-index: 1000000 !important; 
        background-color: #ffffff !important; 
        width: 100% !important;
        margin: 0 !important;
        padding: 4px 0 !important; 
    }
    /* Titre et logo centrés sur une ligne ou empilés de manière réduite */
    .header-titre-niveau {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
    }

    /* Le conteneur du bas (Menu + Contrôleurs) redevient horizontal */
    .header-nav-bar, .nav-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 4px !important;
        padding: 0 4px !important;
    }

    /* Neutralisation des absolute/scale qui cassent le flux */
    .menu-controller, .lang-controller {
        position: static !important;
        transform: none !important;
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    /* Flex-grow permet au menu de prendre l'espace central sans déborder */
    .scroll-menu-container {
        width: 100% !important;
        overflow: hidden !important;
        flex-grow: 1 !important;
        margin: 0 6px !important;
    }

    .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;
        white-space: nowrap !important;
        width: 100% !important;
        padding: 4px 0 !important;
    }
}

    .logo-header, header img, .site-logo, .header-logo img {
        max-width: 50px !important; 
        height: auto !important;
        width: 100% !important;
    }

    h1, .header-title, .titres h1, .header-title h1 {
        font-size: 0.95rem !important; 
        letter-spacing: normal !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin: 0 !important;
    }

      

   
    .tab-folder { 
       
        
        height: auto !important; 
        line-height: 1 !important; 
        border-radius: 3px 3px 0 0 !important; 
        flex-shrink: 0 !important; 
        display: inline-flex !important;
        align-items: center !important;
    }

    .phrase-separateur, .tab-joker, .nav-arrow { 
        display: none !important; 
    } 

    main, .article-content, .two-columns-text { 
        column-count: 1 !important; 
        padding: 8px !important; 
        width: 100% !important;
        max-width: 100% !important;
    }

    .preamble-title { font-size: 1.1rem !important; }
    .part-title { font-size: 0.9rem !important; margin: 12px 0 6px 0 !important; }
    .chapter-separator { padding: 10px 6px !important; margin: 20px 0 10px 0 !important; }
    .chapter-separator h2 { font-size: 1rem !important; }
    
    footer { padding: 8px !important; }
}


/* ==========================================================================
   CORRECTIONS : ESPACEMENT ET PIED DE PAGE
   ========================================================================== */
/* Ajoute un "coussin" invisible de 150px en bas pour ne jamais cacher le texte */
main {
    padding-bottom: 150px !important;
}

/* Force l'animation de descente du pied de page */
body.scroll-down footer {
    transform: translateY(100%) !important;
}

/* ==========================================================================
   SYSTÈME "VOIR PLUS" RÉUTILISABLE (POUR LES TEXTES LONGS)
   ========================================================================== */
/* Dans votre global.css */
.read-more-content {
    display: block !important;
    max-height: 250px; /* <--- AUGMENTEZ CE CHIFFRE POUR AGRANDIR LA ZONE RÉDUITE */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

/* Quand on clique, on ouvre */
.read-more-content.hidden {
    max-height: 2000px;        /* Assez grand pour tout afficher */
}

/* Ajout esthétique : un petit fondu pour montrer que ça continue */
.read-more-content:not(.hidden)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, white);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.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: 0.3s;
    border-radius: 30px;
    text-align: center;
    break-inside: avoid;
}
.btn-inline-expand:hover {
    background-color: #bc3c00;
    color: #fff;
}



/* ==========================================================================
   RÈGLES ADAPTATIVES - SMARTPHONES (écrans <= 768px)
   ========================================================================== */

