@charset "UTF-8";
/* CSS Document */

/* pages.css - GESTION DU FOND ET DU CALAGE GALERIE */

/* --- 1. LE BODY --- */
body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #0d0d2b; 
    margin: 0;
}

/* --- 2. LE CADRE PRINCIPAL (Idem HP) --- */
#page-container {
    position: relative;
    
    /* Image de fond */
    background-image: url('images/fond-pages.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    /* Verrouillage du ratio pour que rien ne bouge */
    aspect-ratio: 1699 / 1366;
    height: min(100vh, 100vw / 1.2437);
    width: min(100vw, 100vh * 1.2437);
    
    z-index: 10;
}

/* --- 3. LA ZONE DÉDIÉE AU CARROUSEL --- */
/* C'est la boite invisible qui se superpose à la zone bleue */
.carousel-zone {
    position: absolute;
    /* Mêmes coordonnées que la grille de la HP pour être raccord */
    top: 23%;    
    bottom: 9%;
    left: 0; 
    right: 0;
    
    /* On centre le carrousel dedans */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Pour le debug (voir la zone), décommentez la ligne suivante : */
    /* border: 1px solid red; */
}

/* --- 4. SURCHARGE DU CARROUSEL POUR L'INTÉGRATION --- */
/* On force le conteneur de galerie à rester dans la zone définie ci-dessus */
#page-container #gallery-container {
    height: 100%; /* Prend la hauteur de la zone bleue, pas de l'écran */
    width: 100%;
    padding: 0;
}

/* Ajustement de la taille des images pour ce cadre spécifique */
#page-container .gallery-item {
    /* On réduit un peu par rapport au plein écran pour que ça respire dans l'arche */
    /* Max 400px ou 50% de la largeur du cadre */
    width: min(400px, 50%); 
}

/* --- 5. TITRE DE LA PAGE (Optionnel - Ajout futur ?) --- */
/* pages.css */

/* pages.css */

.page-title {
    position: absolute;
    top: 12%; 
    width: 100%;
    text-align: center;
    font-family: 'ArabDances', Arial, sans-serif;
    
    /* 1. On met une couleur FONCÉE (Marron/Ocre sombre) */
    color: #D3A82B; 
    
    /* 2. L'effet Photoshop "Produit" */
    mix-blend-mode:hard-light;
    
    /* 3. On adoucit l'ombre pour qu'elle ne fasse pas "tache" */
    text-shadow: 1px 1px 0px rgba(255,255,255,0.2); /* Légère lumière au lieu d'ombre noire */
    
    font-size: 8vh; 
    z-index: 20;
    pointer-events: none;
}

/* pages.css - CORRECTION INFOS */

/* --- LE CONTENEUR PRINCIPAL --- */
#info-sidebar {
    position: fixed;
    left: 0;
    
    /* CENTRAGE VERTICAL */
    top: 50%; 
    transform: translateY(-50%); /* Remonte de la moitié de sa taille pour être pile au milieu */
    
    z-index: 2000;
    
    /* Taille fermée (étroite) */
    width: 35px; 
    
    /* Hauteur automatique : s'adapte au contenu (la languette ou le texte) */
    height: auto; 
    
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    background-color: #eeb82e;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    overflow: hidden; /* Important pour cacher le texte quand c'est fermé */
}

/* ÉTAT OUVERT */
#info-sidebar.open {
    width: 300px; /* Largeur déployée */
    /* Si le texte est très long, on limite la hauteur pour ne pas sortir de l'écran */
    max-height: 80vh; 
    overflow-y: auto; /* Barre de défilement si nécessaire */
}

/* --- LA LANGUETTE (INFOS) --- */
.info-tab {
    /* Elle prend toute la place quand c'est fermé */
    width: 100%; 
    height: auto;
    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Juste un peu de marge en haut et en bas du mot INFOS */
    padding: 15px 0; 
}

.info-tab span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 14px;
    color: #000033;
    white-space: nowrap; /* Empêche le texte de se casser */
}

/* --- LE CONTENU --- */
.info-content {
    /* On cache le contenu quand c'est fermé pour ne pas qu'il prenne de la hauteur */
    display: none; 
    
    padding: 15px 15px 15px 15px; 
    width: 270px; 
    font-family: Arial, sans-serif;
    color: #000;
    line-height: 1.4;
    font-size: 13px;
}

/* QUAND C'EST OUVERT */
#info-sidebar.open .info-content {
    display: block; /* On affiche le texte */
}

#info-sidebar.open .info-tab {
    display: none; /* On cache la languette INFOS */
}

/* Titre */
.info-content h2 {
    margin-top: 0;
    font-size: 16px;
    color: #000033;
    border-bottom: 1px solid #cc9900;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Bouton fermer */
.btn-close-info {
    margin-top: 15px;
    text-align: right;
    font-weight: bold;
    font-size: 12px;
    color: #000033;
    cursor: pointer;
}
.btn-close-info:hover { text-decoration: none; }


/* --- STYLE DU PANNEAU MENU (DROITE) --- */
#menu-sidebar {
    position: fixed;
    right: 0; /* Collé à droite */
    top: 50%; 
    transform: translateY(-50%);
    z-index: 2000;
    
    width: 35px; 
    height: auto; 
    
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    background-color: #eeb82e;
    border-radius: 10px 0 0 10px; /* Arrondi à gauche cette fois */
    box-shadow: -2px 2px 10px rgba(0,0,0,0.5); /* Ombre inversée */
    overflow: hidden;
}

/* ÉTAT OUVERT */
#menu-sidebar.open {
    width: 250px;
    max-height: 80vh; /* Limite hauteur */
    display: flex;
    flex-direction: column;
}

/* LA LANGUETTE MENU */
.menu-tab {
    width: 100%;
    height: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.menu-tab span {
    writing-mode: vertical-rl;
    /* Pas de rotation ou 180 selon le sens de lecture voulu, ici standard */
    font-family: Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 14px;
    color: #000033;
    white-space: nowrap;
}

/* LE CONTENU */
.menu-content {
    display: none;
    padding: 15px 15px 15px 15px;
    width: 220px;
    font-family: Arial, sans-serif;
    color: #000;
}

#menu-sidebar.open .menu-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Remplit l'espace */
}

#menu-sidebar.open .menu-tab { display: none; }

/* --- LIENS DU MENU --- */

/* Lien Accueil en gras */
.link-home {
    display: block;
    font-weight: bold;
    text-decoration: none;
    color: #000033;
    padding: 5px 0;
    border-bottom: 2px solid #cc9900;
    margin-bottom: 10px;
}
.link-home:hover { color: #cc0000; }

/* Liste des pages scrollable */
.menu-list {
    flex: 1; /* Prend l'espace restant */
    overflow-y: auto; /* Scroll si la liste est trop longue */
    max-height: 50vh; /* Limite visuelle */
    margin-bottom: 10px;
    padding-right: 5px; /* Place pour la scrollbar */
}

/* Scrollbar personnalisée pour faire joli (Webkit) */
.menu-list::-webkit-scrollbar { width: 5px; }
.menu-list::-webkit-scrollbar-thumb { background: #cc9900; border-radius: 3px; }

.menu-list a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: padding-left 0.2s;
}

.menu-list a:hover {
    color: #000033;
    padding-left: 5px; /* Petit effet de décalage */
    font-weight: bold;
}

/* Bouton fermer */
.btn-close-menu {
    text-align: left; /* ou center */
    font-weight: bold;
    font-size: 12px;
    color: #000033;
    cursor: pointer;
    border-top: 1px solid #cc9900;
    padding-top: 10px;
}
.btn-close-menu:hover { text-decoration: none; }

