
        /* === GLOBAL === */
        html, body {
            margin: 0;
            padding: 0;
            overflow: hidden; /* Maintenu pour le body global en dehors des media queries */
            height: 100%;
            font-family: Arial, sans-serif;
            background-color: #012326;
            color: #a8dadc;
            transform: translateZ(0); /* Utile pour la performance sur certaines animations */
        }

        .layout {
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        /* === HEADER SPLIT === */
        .header { /* hauteur de la diapocategorie*/
            display: flex;
            flex-direction: column;
            height: 120px;
            flex-shrink: 0;
        }

        .header-top { /* marge au dessus de diapcat*/
            height: 0px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            background-color: #012326;
        }

        .header-bottom {
            height: 120px;
            background-color: #01444b;
            display: flex;
            align-items: center;
            overflow-x: auto; /* Permet le défilement horizontal des catégories */
            padding: 0 10px;
            gap: 10px;
        }

        .header-top .logo {
            height: 40px;
        }
        .logo_ca {
            height: 40px;
        }

        .header-bottom img { /* taille image cat*/
            width: 120px;
            height: auto;
            border-radius: 10px;
            cursor: pointer;
            object-fit: cover;
            border: 2px solid transparent;
            flex-shrink: 0;
        }

        .header-bottom img:hover {
            border-color: #a8dadc;
        }

        /* === MAIN STRUCTURE === */
        .main {
            flex: 1; /* Permet au main de prendre l'espace restant verticalement */
            display: flex;
            flex-direction: row; /* Par défaut en mode bureau: liste à gauche, lecteur à droite */
            overflow: hidden;
            height: calc(100vh - 120px); /* Hauteur fixe pour le main en mode bureau */
            margin: 0;
        }

        .titre-categorie {
            font-size: 0.85em;
            font-weight: bold;
            padding: 5px;
            background: #01393d;
        }

        .liste {
            width: 300px;
            background: #01444b;
            padding: 10px;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            margin: 1;
        }

        /* #liste est l'UL/OL réel généré par JS, c'est lui qui doit scroller si besoin */
        #liste {
            overflow-y: auto;    /* Défilement vertical pour la liste */
            flex-grow: 1;        /* Prend tout l'espace disponible à l'intérieur de #playlistWrapper */
            min-height: 0;       /* Correction pour les éléments flex avec overflow */
            overflow-x: hidden;  /* Empêche le défilement horizontal de la liste */
        }

        /* #playlistWrapper est le conteneur direct de #liste */
        #playlistWrapper {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .lecteur {
            flex-grow: 1; /* Le lecteur prend l'espace restant dans le main */
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
        }

        #videoWrapper {
            position: relative;
            width: 100%;
            max-width: 1920px;
            aspect-ratio: 2 / 1;
            background: black;
            margin: 0 auto;
        }

        video {
            width: 100%;
            height: 100%;
            background: black;
            aspect-ratio: 2 / 1;
            max-width: 1920px;
            margin: 0 auto;
            display: block;
        }

        #posterImage {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 80%;
            max-height: 80%;
            object-fit: contain;
            z-index: 2;
            display: block;
        }

        .item {
            padding: 10px;
            margin-bottom: 10px;
            background: #025860;
            border-radius: 6px;
            cursor: pointer;
            font-size: clamp(0.85rem, 1.5vw, 1rem);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .item:hover {
            background: #03777d;
        }

        #recherche {
            width: 90%;
            padding: 8px;
            margin-bottom: 10px;
            border-radius: 6px;
            border: none;
        }

        .sous-texte {
            font-size: 0.7em;
            opacity: 0.85;
            display: block;
            margin-top: 2px;
            line-height: 1.2em;
        }

        .fade-out {
            transition: opacity 2s ease;
            opacity: 0;
        }

        #video-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
		
		
		#index-alpha-list {
    background-color: #111;
    color: #eee;
    padding: 1rem;
    max-height: 100%;
    overflow-y: auto;
    font-family: sans-serif;
}

#index-alpha-list h2 {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 1rem;
}

.index-entry {
    margin: 0.5rem 0;
    cursor: pointer;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.index-entry:hover {
    background-color: #222;
}

.index-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.index-mention {
    font-size: 0.85rem;
    color: #aaa;
}
#index-alpha-list {
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
}


		
		
		

        /* --- NOUVEAUX STYLES POUR LE PLEIN ÉCRAN --- */

        /* Masque UNIQUEMENT le bouton plein écran natif pour forcer l'utilisation du nôtre */
        video::-webkit-media-controls-fullscreen-button {
            display: none !important;
        }
        video::-moz-full-screen-button { /* Pour Firefox */
             display: none !important;
        }

        /* Styles pour le bouton plein écran personnalisé */
        #fullscreenButton {
            position: absolute;
            bottom: 10px; /* Ajustez la position */
            right: 10px; /* Ajustez la position */
            background-color: rgba(0, 0, 0, 0.6);
            border: none;
            border-radius: 5px;
            padding: 8px;
            cursor: pointer;
            z-index: 10; /* Assurez-vous qu'il est au-dessus de la vidéo */
            color: white; /* Couleur de l'icône SVG */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #fullscreenButton:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        #fullscreenButton svg {
            display: block; /* S'assure que l'icône est bien affichée */
        }

        /* *** MODIFICATIONS CLÉS ICI POUR L'ARTEFACT ET LE PLEIN ÉCRAN *** */

        /* Assurez-vous que HTML et BODY ont un fond noir et pas de marges/paddings en plein écran */
        html:-webkit-full-screen, html:-moz-full-screen, html:-ms-fullscreen, html:fullscreen,
        body:-webkit-full-screen, body:-moz-full-screen, body:-ms-fullscreen, body:fullscreen {
            margin: 0 !important;
            padding: 0 !important;
            background-color: black !important; /* IMPORTANT: Force le fond du body à noir */
            overflow: hidden !important; /* Empêche les barres de défilement */
        }

        /* Style de #videoWrapper lorsqu'il est en plein écran */
        #videoWrapper:-webkit-full-screen,
        #videoWrapper:-moz-full-screen,
        #videoWrapper:-ms-fullscreen,
        #videoWrapper:fullscreen {
            width: 100vw !important; /* Utilise la largeur de la vue */
            height: 100vh !important; /* Utilise la hauteur de la vue */
            margin: 0 !important;
            padding: 0 !important;
            position: fixed !important; /* Fixe le wrapper sur la vue, en haut à gauche */
            top: 0 !important;
            left: 0 !important;
            aspect-ratio: auto !important; /* Permet au wrapper de prendre toutes les dimensions */
            background-color: black !important; /* Fond noir pour le wrapper */
            display: flex !important; /* Utilise Flexbox pour le centrage */
            justify-content: center !important; /* Centre horizontalement */
            align-items: center !important; /* Centre verticalement */
            z-index: 2147483647 !important; /* Met au-dessus de tout (valeur max possible) */
        }


        /* Assurez-vous que le conteneur interne et la vidéo s'adaptent, en conservant le ratio */
        #videoWrapper:fullscreen #video-container,
        #videoWrapper:fullscreen video {
            width: 100% !important; /* Remplir le parent flex */
            height: 100% !important; /* Remplir le parent flex */
            object-fit: contain !important; /* CONSERVE LE RATIO, ajoute des barres noires si l'écran n'a pas le même ratio */
            position: static !important; /* Laissez Flexbox gérer la position */
            max-width: 100% !important;
            max-height: 100% !important;
            margin: 0 !important; /* Pas de marges */
            padding: 0 !important; /* Pas de padding */
            background-color: black !important; /* Fond noir pour la vidéo elle-même */
            display: block !important; /* Évite les espaces blancs sous la vidéo */
        }

        /* La bannière mécène en plein écran */
        #videoWrapper:fullscreen .mecene-screen {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important; /* CONSERVE LE RATIO pour la bannière */
            position: static !important; /* Laissez Flexbox gérer la position */
            display: flex !important; /* Doit être flex pour centrer son contenu */
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            background-color: black !important; /* Fond noir pour la bannière */
            margin: 0 !important;
            padding: 0 !important;
        }

        /* Le slogan/image d'attente en plein écran */
        #videoWrapper:fullscreen #posterImage {
            width: auto !important;
            height: auto !important;
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important; /* Conserve le ratio pour le slogan */
            position: static !important; /* Laissez Flexbox centrer */
            transform: none !important; /* Réinitialise les transformations */
            margin: 0 !important;
            padding: 0 !important;
            background-color: black !important; /* Fond noir pour l'image */
        }

        /* === MEDIA QUERIES === */
        @media screen and (max-width: 1000px) {
            html, body {
                overflow: auto;
            }
        }

        @media screen and (max-width: 1000px) and (orientation: portrait) {
            .main {
                display: flex;
                flex-direction: column;
                height: calc(100vh - 120px);
                overflow: hidden;
            }

            .lecteur {
                width: 100%;
                order: 1;
                flex-grow: 0;
                flex-shrink: 0;
            }

            .liste {
                width: 100%;
                order: 2;
                padding: 10px;
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                flex-basis: 0%;
                min-height: 0;
            }

            #playlistWrapper {
                flex-grow: 1;
                min-height: 0;
            }

            #liste {
                overflow-y: auto;
                overflow-x: hidden;
                flex-grow: 1;
                min-height: 0;
            }
			  .zone-index {
    font-size: 2em;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

   .zone-index button {
    margin: 0.4em;
    width: 3em;
    height: 3em;
    font-size: 1.5em;
  }
        }

        @media screen and (max-width: 1000px) and (orientation: landscape) {
            .main {
                flex-direction: row;
                height: auto;
                overflow: visible;
            }

            .liste {
                width: 320px;
                flex-shrink: 0;
                min-height: 0;
                overflow-y: auto;
            }

            #playlistWrapper {
                max-height: 60vh;
                overflow: hidden;
            }

            #liste {
                overflow-y: auto;
                overflow-x: hidden;
            }

            .lecteur {
                flex-grow: 1;
                flex-shrink: 0;
                min-height: 0;
            }

            #videoWrapper {
                width: 100%;
            }
			
@media screen and (max-width: 600px) {
  .img-mecene {
    width: 90%;
  }
}

@media screen and (min-width: 601px) and (max-width: 1000px) {
  .img-mecene {
    width: 75%;
  }
}

@media screen and (min-width: 1001px) {
  .img-mecene {
    width: 60%;
  }
}

        }
th: 90%;
  }
}*/

/* Mobile portrait : le plus grand affichage 
@media screen and (max-width:) and (orientation: portrait) {
  .img-mecene {
    width: 90%; 
  }
}*/

        }
}
        }
