    /* La feuille de styles CSS permet de gérer l'apparence des pages de manière centralisée */
    
    /* Pour importer des typographies @import url('embed code de Google Fonts') */
    @import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Golos+Text:wght@400..900&display=swap');
   
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Style des paragraphes */
        p{
            margin-bottom: 16px,
        }
        /* Style des italiques */
        em {
            font-weight: 400;
        }

        /* Style des liens */
        a {
            text-decoration: none;
            color: #12AD7E; 
        }

        /* Style des images */
        /* Style des images global */
        img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 20px auto;
            border: 1px solid #333;
       
            /* Effet Noir et Blanc par défaut */
            filter: grayscale(100%); 
            transition: filter 0.3s ease, transform 0.3s ease;
            cursor: help; /* Indique qu'il y a une info au survol */
        }
        img:hover {
            /* Passage en couleur et léger zoom au survol */
            filter: grayscale(0%);
        }
        img.img-left {
            float: left;
            margin: 10px 20px 10px 0;
            max-width: 40%;
        }
        img.img-right {
            float: right;
            margin: 10px 0 10px 20px;
            max-width: 40%;
        }
        img.img-center {
            margin: 20px auto;
            max-width: 80%;
        }
        img.img-full {
            max-width: 100%;
            margin: 20px 0;
        }
        img.img-small {
            max-width: 30%;
        }
        img.img-medium {
            max-width: 50%;
        }
        img.img-large {
            max-width: 80%;
        }


        html, body {
            height: auto; 
            min-height: 100%;
            margin: 0;
            color: #333;
            transition: background 0.5s ease;
        }

        body {
            background: #D9D9D9;
            position: relative;
            font-family: "Golos Text", sans-serif;
            font-optical-sizing: auto;
            font-weight: 500;
            font-style: normal;
        }

        body {
            background: #D9D9D9;
            position: relative;
            font-family: "Golos Text", sans-serif;
            font-optical-sizing: auto;
            font-weight: 500;
            font-style: normal;
        }

        /* Style de l'image chargée en fond */
        body.theme-custom-image {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* Style du header de la page (menu) */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: whitesmoke;
            border-bottom: 1px solid #333;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .header-content {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 0 50px;
        }

        /* Style de titre Hello World */

        .menu-label {
            font-family: "Audiowide", sans-serif;
            font-weight: 400;
            font-style: normal;      
            font-size: 1.8rem;
            color: #000000;
        }

         /* Style du contenu du menu */

        .header-nav {
            display: flex;
            gap: 32px;
            flex: 1;
            justify-content: flex-end;
        }
        .header-nav a {
            color: #333;
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.3s;
        }
        .header-nav a:hover {
            opacity: 0.7;
        }

         /* Paramètres du contenu de la page */

        .main-wrapper {
            min-height: calc(100vh - 130px); /* 130px correspond à la hauteur header + footer */
            margin-top: 70px; /* Pour ne pas être sous le header fixe */
            padding: 50px max(20px, calc((100vw - 1200px) / 2));
            position: relative;
        }
        .main-container {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 16px;
            position: relative;
        }


         /* Style des parties Sommaire et Apparence */
        .left-section {
            grid-column: 1 / 3;  /* Les boxes sont placées selon une grille de 10 colonnes */
            display: flex;
            flex-direction: column;
            gap: 16px;
            height: 80vh;
        }
         /* Style de la partie Article */
        .article-section {
            grid-column: 3 / 9;
            height: 80vh;
        }
         /* Style de la partie Notes */
        .comments-section {
            grid-column: 9 / 11;
            height: 80vh;
        }

         /* Style des boîtes en générale */
        .box {
            background: whitesmoke;
            border: 1px solid #333;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow:rgba(0, 0, 0, 0.1);
            box-shadow: 3px 3px 2px 1px rgba(0, 0, 0, 0.2);
        }

         /* Style du header de chaque boîte */
        .box-header {
            padding: 8px 24px;
            border-bottom: 1px solid #333;
            flex-shrink: 0;
        }
        .box-header h2 {
            font-family: "Audiowide", sans-serif;
            font-weight: 400;
            font-style: normal; 
            font-size: 1.3rem;
            color: #333;
        }

        /* Couleurs personnalisées pour les headers */
        .navigation .box-header {
        background-color: #E84845;
        }
        .article-section .box-header {
            background-color: #12AD7E;
        }
        .personnalisation .box-header {
            background-color: #F4F3C5;
        }
        .comments-section .box-header {
            background-color: #E9A0BB;
        }

        /* Pour que le scroll se fasse dans les boîtes et non sur la page en elle-même */
        .box-content {
            overflow-y: auto;
            overflow-x: hidden;
            padding: 25px;
            flex: 1;
        }
        .box-content::-webkit-scrollbar {
            width: 8px;
        }
        .box-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
        }
        .box-content::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }
        .box-content::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        /* Styles relatifs aux boutons de navigation de la boîte Sommaire */
        .navigation {
            flex: 1.2;
        }
        .navigation ul {
            list-style: none;
        }
        .navigation li {
            margin-bottom: 10px;
        }
        .navigation button {
            width: 100%;
            text-align: left;
            color: #333;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 10px 14px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.85rem;
            font-weight: 600;
            text-align: center;
            box-shadow:rgba(0, 0, 0, 0.1);
            box-shadow: 0px 3px 2px 1px rgba(0, 0, 0, 0.2);
        }
        .navigation button:hover {
            background: #E84845;
            font-weight: 500;
        }
        .navigation button.active {
            font-weight: 800;
        }

        /* Styles relatifs à la boîte Apparence */
        .personnalisation {
            flex: 0.5;
        }
        .personnalisation .box-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .control-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .control-group label {
            font-weight: 600;
            font-size: 0.9rem;
            color: #333;
        }
        .control-group select, /* apparence du bouton pour apporter un fichier en fond */
        .control-group input[type="file"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #333;
            border-radius: 4px;
            font-size: 0.9rem;
            cursor: pointer;
            background: white;
        }
        .image-upload-btn {
            background: whitesmoke;
            color: #333;
            font-weight: 600;
        }

        /* Styles relatifs à la boîte Article */
        .article-content {
            display: none;
        }
        .article-content.active {
            display: block;
        }
        .article-preview h3,
        .article-preview h4 {
            margin-bottom: 16px;
            color: #010001;
            transition: font-size 0.3s ease;
        }
        .article-preview h3{
            font-weight: 700;
        }

        .article-preview h4 {
            font-size: 1.1rem;
            margin-top: 20px;
            font-weight: 600;
        }
        .article-preview p {
            color: #1c1b1b;
            margin-bottom: 16px;
            line-height: 1.6;
            transition: font-size 0.3s ease;
            margin-right: 30px;
        }
        
        /* Corps des caractères selon le mode choisi (petit, moyen, grand) */

        /* Mode Petit */
        body.text-small .article-preview h3 {
            font-size: 1.1rem;
        }
        body.text-small .article-preview p, 
        body.text-small .article-preview li { /* Ajout de li ici */
            font-size: 0.85rem;
        }

        /* Mode Moyen */
        body.text-medium .article-preview h3 {
            font-size: 1.2rem;
        }
        body.text-medium .article-preview p, 
        body.text-medium .article-preview li { /* Ajout de li ici */
            font-size: 0.95rem;
        }

        /* Mode Grand */
        body.text-large .article-preview h3 {
            font-size: 1.8rem;
        }
        body.text-large .article-preview p, 
        body.text-large .article-preview li { /* Ajout de li ici */
            font-size: 1.15rem;
        }

        /* Styles de la bibliogrphie */
        .article-preview li {
            margin-left: 30px;
            margin-right: 50px;
            line-height: 1.6;   /* Aligne l'interlignage sur celui des paragraphes */
        }

        /* Styles relatifs aux notes  */
        /* Style de base des notes (état éteint) */
        .comment {
            background: whitesmoke;
            padding: 12px;
            margin-bottom: 12px;
            border-radius: 4px;
            font-size: 0.9rem;
            /* Transition fluide pour le retour à la normale (extinction) */
            transition: background-color 1.5s ease, border 1.5s ease, transform 0.8s ease;
            border: 2px solid transparent; /* Évite un saut de pixel lors de l'allumage */
        }
        .comment-author {
            font-weight: 500;
            color: #000000;
            margin-bottom: 8px;
        }
        .comment-section {
            display: none;
        }
        .comment-section.active {
            display: block;
        }
        /* Style de la note quand elle est "allumée" */
        .comment.highlight-active {
            background-color: rgba(18, 173, 126, 0.3) !important;
            border: 2px solid #12AD7E;
            color: #333; /* On garde le texte sombre pour la lisibilité */
            transform: scale(1.01);
            transition: all 0.3s ease; /* Allumage rapide pour la réactivité */
        }
        

        /* Paramètres du mode responsive */
        @media (max-width: 1024px) {
            .main-wrapper {
                padding: 50px 20px;
            }
            .main-container {
                gap: 12px;
            }
            .box-header {
                padding: 12px 16px;
            }
            .box-header h2 {
                font-size: 1.1rem;
            }
            .box-content {
                padding: 16px;
            }
        }
        
        @media (max-width: 768px) {
            html, body {
                overflow-y: auto;
                overflow-x: hidden;
            }
            .header {
                height: auto;
                padding: 12px 16px;
            }
            .header-content {
                flex-wrap: wrap;
                padding: 0;
            }
            .header-nav {
                gap: 16px;
                font-size: 0.9rem;
                width: 100%;
                justify-content: space-around;
            }
            .main-wrapper {
                height: auto;
                padding: 12px 16px;
            }
            .main-container {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }
            .left-section,
            .article-section,
            .comments-section {
                grid-column: auto;
                height: auto;
            }
            .navigation,
            .personnalisation,
            .article-section,
            .comments-section {
                min-height: 300px;
                max-height: 500px;
            }
            .box-content {
                max-height: 400px;
            }
        }

        @media (max-width: 480px) {
            .menu-label {
                font-size: 1.2rem;
            }
            .header-nav {
                gap: 8px;
                font-size: 0.85rem;
            }
            .box-header h2 {
                font-size: 1rem;
            }
        }


/* --- Styles relatifs aux pages Interview et Étude (DESKTOP) --- */

/* Styles des questions */
.question {
    color: #12AD7E; 
    font-weight: 500;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 16px;
}

/*  Grille structurant la page */
.interview-layout {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 20px;
    height: 100%;
    align-items: start;
}

.left-sidebar {
    grid-column: 1 / 4;
    display: flex;
    flex-direction: column;
}

/* Styles relatifs à la boîte avec le nom de l'interviewé */
.box-nom {
    height: 120px;
    margin-left: calc(-1 * max(20px, (100vw - 1200px) / 2));
    border-left: none;
    background-color: whitesmoke;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: left;
    flex-shrink: 0;
}
.box-nom .nom-titre { 
    font-family: "Golos Text", sans-serif; /* Changement demandé */
    font-weight: 600;
    font-size: 2rem; 
    margin: 0; 
}
.box-nom .box-content {
    overflow: hidden;
    padding-top: 25px;
    padding-bottom: 10px;
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: left; /* Centre le texte verticalement */
}


/* Animation de la box présentation */
.box-presentation {
    width: 100%;
    border-top: none;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
    max-height: 44px; /* Hauteur du header seul quand la boîte n'est pas déployée */
}
.box-presentation.expanded {
    max-height: 1000px;
}
/* Ajustement pour que le contenu ne soit pas coupé brutalement */
.box-presentation .box-content {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.box-presentation.expanded .box-content {
    display: block !important; /* On s'assure qu'il est visible */
    opacity: 1;
}
.box-interview {
    grid-column: 5 / 11;
    height: 80vh;
}

/* --- Styles relatifs aux pages Interview et Étude (MOBILE : Écrans < 768px) --- */

@media (max-width: 768px) {
    .interview-layout {
        display: flex;
        flex-direction: column; /* Empile les éléments verticalement */
        gap: 16px;
    }

    .left-sidebar {
        width: 100%;
    }

    .box-nom {
        margin-left: 0; /* On annule le décalage sur mobile */
        border-left: 1px solid #333; /* On remet la bordure pour l'esthétique */
        height: auto;
        min-height: 120px;
    }

/* La box présentation s'adapte à la taille de son header uniquement 
.box-presentation {
    width: 100%;
    border-top: none;
    height: auto; /* Permet de se caler sur le header */
 /*   transition: all 0.4s ease;
    overflow: hidden;
} */

 /* Styles relatifs à la boîte Interview */
.box-interview {
    width: 100%;
     height: auto;
    min-height: 400px;
 }
.box-nom .box-content {
    overflow: hidden;
    padding-top: 25px;
    padding-bottom: 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: left; /* Centre le texte verticalement */
}
}


/* Style de base des notes de bas de page (état éteint) */
.footnote {
    padding: 8px;
    border-radius: 4px;
    border: 2px solid transparent; /* Prévient le saut de pixel */
    transition: background-color 1.5s ease, border 1.5s ease, transform 0.8s ease;
    font-size: 0.9rem;
}

/* État allumé (quand on clique sur le chiffre dans le texte) */
.footnote.highlight {
    background-color: rgba(18, 173, 126, 0.3) !important;
    border: 2px solid #12AD7E;
    color: #333; /* On garde le texte sombre pour la lisibilité */
    transform: scale(1.01);
    transition: all 0.3s ease; /* Allumage rapide pour la réactivité */
}

/* --- ÉLÉMENTS INTERNES --- */
.nom-titre { font-family: "Audiowide", sans-serif; font-size: 1.4rem; margin-bottom: 2px; }
.arrow-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; }
.lang-switcher .lang-btn { border: 1px solid #333; background: white; padding: 2px 8px; cursor: pointer; border-radius: 4px; font-size: 0.8rem; }
.lang-switcher .lang-btn.active { background: #333; color: whitesmoke; }
.lang-content { display: none; }
.lang-content.active { display: block; }

/* --- Style du footer (bas de page) --- */
.footer {
    width: 100%;
    height: 70px;
    background: whitesmoke;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    /* On enlève position: fixed pour qu'il suive le scroll naturel */
    margin-top: 20px; 
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 50px;
    font-size: 0.9rem;
}

/* Style de la Pop-up */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond sombre */
    backdrop-filter: blur(2px); /* Flou d'arrière-plan */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-container {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Le petit carré cliquable dans le texte */
.img-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #12AD7E;
    color: white;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin: 0 4px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.img-trigger:hover {
    transform: scale(1.2);
    background: #E84845; /* Change de couleur au survol */
}

