body {
    font-family: Helvetica, serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #ffff;
}

.header {
    background-color: #000; /* rose */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.5%;          /*  hauteur en pourcentage */
    padding: 0;          /* plus besoin du padding vertical */
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-section {
    margin: 0 13%;
}

.header-section a {
    text-decoration: none;
    color: #fff; /* Police blanche */
    font-size: 0.8rem;
    font-weight: bold;
    position: relative; /* Pour positionner le soulignement */
}

.header-section a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #fff;
}

/* Lors du survol, le soulignement apparaît */
.header-section a:hover::after {
    width: 100%; /* Étendre le soulignement */
    transition: width 0.1s ease-in-out; /* Lors du survol, le soulignement apparaît rapidement */
}

/* Quand on quitte le survol, garder le soulignement pendant 1 seconde */
.header-section a::after {
    transition: width 0.2s ease-in-out, width 0.2s ease-out 0.2s; /* Maintenir pendant 1 seconde */
}


/* Conteneur principal pour diviser la page */
.container {
    display: flex;
    width: 100%;
    height: 92%; /* Prend toute la hauteur de la fenêtre */
}

/* Colonne de gauche (carte SVG) */
.left-column {
    width: 66.66%; /* 2/3 de la page */
    padding: 0;
    background-color: #f0f0f0; /* Une couleur de fond légère pour la colonne gauche */
    overflow: hidden; /* Assure que la carte ne déborde pas */
    border-right: 1px solid black; /* Trait noir à droite */
    display: flex;
    justify-content: center; /* Centre la carte horizontalement */
    align-items: center; /* Centre la carte verticalement */
}


/* Colonne de droite (pour tout le contenu textuel ou image) */
.right-column {
    width: 33.33%; /* 1/3 de la page */
    display: flex;
    justify-content: ; /* Centre le contenu horizontalement */
    align-items: flex-start; /* Aligne le contenu en haut de la colonne */
    background-color: #fff; /* Fond clair pour la colonne de droite */
    flex-direction: column; /* Permet un alignement vertical pour le texte */
    min-height: 70vh; /* Assurez-vous que la colonne de droite occupe toute la hauteur de la fenêtre */
}


/* Galerie dans la colonne gauche */
.gallery {
  height: 100%;
  padding: 1.5% 1.5% 1.5% 1.5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2% 1.5%;
  box-sizing: border-box;
  overflow-y: auto;    /* active le scroll vertical */
}

.item {
  text-align: center;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border: 1px solid black;
}

/* Effet hover : bordure plus épaisse */
.item:hover {
  outline: 2px solid black; /* plus gras */
}

.item img {
  width: 100%;
  border-radius: 0px;
  display: block;
  border-bottom: 1px solid black;
}

/* Masquer le <p> (il reste dans le HTML pour ton script) */
.item p {
  display: none;
}

/* Afficher un titre sous chaque image */
.item::after {
  content: attr(data-title);  /* récupère le titre dans l’attribut data-title */
  display: block;
  font-size: 0.7rem;
  margin-top: 1.5%;
  margin-bottom: 1.5%;
  color: #000;
}

/* Effet grisé */
.item.grayed {
  opacity: 0.2;
}


.themes {
    margin-top: 3%;
    margin-left: 3%;
    margin-right: 3%;
    width: 87.5%;
}

.themes h2 {
    padding: 0% 0% 0% 0%;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 3%;
    margin-top: 0%;
    color: #333;
    width: 100%; /* La liste occupe toute la largeur disponible */
    max-width: 90%; /* Limiter la largeur de la liste */
}

.themes-noms {
  display: grid;
  grid-template-columns: repeat(2,1fr); /* 2 colonnes égales */
  gap: 3%; /* espace horizontal entre colonnes */
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: start; /* chaque colonne commence en haut */
  margin-bottom: 3%;
}

/* Chaque groupe (titre + ses items) */
.themes-noms ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items */
.themes-noms li {
  margin-bottom: 1%;
  transition: color 0.2s;
}

/* Cliquables */
.themes-noms li:hover {
  cursor: pointer;
  font-weight: bold;
}

.themes-noms li.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Non-cliquables (titres) */
.themes-noms li.Non-cliquable {
  cursor: default;
  font-weight: ;
  text-decoration: underline;
  color: #333;
  pointer-events: none;
  margin-top: 0%;
  margin-bottom: 3%;
}



.regions {
    margin-top: 3%;
    margin-left: 3%;
    margin-right: 3%;
    width: 87.5%;
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
}

.regions h2 {
    padding: 0% 0% 0% 0%;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 3%;
    margin-top: 0%;
    color: #333;
    width: 100%; /* La liste occupe toute la largeur disponible */
    max-width: 90%; /* Limiter la largeur de la liste */
}

.regions-noms {
  column-count: 2;
  column-gap: 3%; /* espace horizontal entre colonnes */
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: start; /* chaque colonne commence en haut */
  margin-bottom: 3%;
}

/* Chaque groupe (titre + ses items) */
.regions-noms ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items */
.regions-noms li {
  margin-bottom: 1%;
  transition: color 0.2s;
}

/* Cliquables */
.regions-noms li:hover {
  cursor: pointer;
  font-weight: bold;
}

.regions-noms li.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Non-cliquables (titres) */
.regions-noms li.Non-cliquable {
  cursor: default;
  font-weight: ;
  text-decoration: underline;
  color: #333;
  pointer-events: none;
  margin-top: 0%;
  margin-bottom: 3%;
}





.left-column, .right-column {
  position: relative;
}

.item-detail-left {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  padding: 3%;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 10;
}
.item-detail-right {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 93.5%;
  height: 100%;
  background-color: #f0f0f0;
  padding: 3%;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 10;
}

/* Bouton fermer */
.close-btn-2 {
  position: absolute;
  top: 3%;
  left: 1.5%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Navigation items */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.nav-btn.left {
  left: 1.5%;
}

.nav-btn.right {
  right: 1.5%;
}

.slider {
  display: flex;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  height: 100%;              /* occupe toute la hauteur de son parent */
  box-sizing: border-box;
}

.slide-right {
  position: flex;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.slide-left {
  position: flex;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.slide-images {
    width: 87%;
}

/* Images slider */
.slide-images img {
  max-width: 94%;
  padding: 3%;
  display: none;
}

.item-detail-left p {
    font-size: 0.5rem;
}

.item-detail-left h2 {
    font-size: 1rem;
    margin-left: 20%;
    margin-right: 20%;
    font-weight: normal;
}

.item-detail-left p {
    font-size: 0.8rem;
    margin-left: 20%;
    margin-right: 20%;
    font-weight: normal;
}











.vertical-menu {
    position: fixed;
    right: 0.6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 7vw;
    z-index: 1000; /* S'assurer que le menu reste au-dessus du contenu */
}


.vertical-menu a {
    writing-mode: vertical-rl;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
    padding: 0;
    border-radius: 0;
    position: relative; /* Pour pouvoir positionner le soulignement */
}

/* Animation du soulignement pour le menu vertical */
.vertical-menu a::after {
    content: "";
    position: absolute;
    left: -17%; /* Décalage vers la gauche pour le soulignement */
    bottom: -2px; /* Déplacer le soulignement sous le texte */
    height: 0; /* Le soulignement commence avec une hauteur de 0 */
    width: 1.5px; /* Largeur du soulignement (très fin) */
    background-color: black;
    transition: height 0.1s ease-in-out; /* Transition de l'apparition et disparition du soulignement */
}

/* Lors du survol, le soulignement apparaît de bas en haut */
.vertical-menu a:hover::after {
    height: 100%; /* Étendre le soulignement sur toute la hauteur de l'élément */
    transition: height 0.2s ease-in-out; /* Transition qui prend 1 seconde */
}

/* Lors du départ de la souris, le soulignement disparaît */
.vertical-menu a::after {
    transition: height 0.2s ease-in-out; /* Le soulignement disparaît de bas en haut en 1 seconde */
}


.barre-droite {
    position: fixed;
    top: 0;
    right: 2.15%;
    width: 0.6px;
    height: 100vh;
    background-color: black;
    margin-top: 0%;
}



/* Style pour la bande inférieure */
.footer {
    display: flex;
    width: 100%;
    height: 3.5%;
    background-color: #fff;
    border-top: 1px solid black;
}

/* Première partie : Cases à cocher */
.checkboxes {
    width: 66.66%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: black;
    border-right: 1px solid black;
    margin-bottom: 0%;
}

/* Style des paires case + label */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Espace entre la case et son titre */
}

/* Style des cases à cocher */
.checkboxes input[type="checkbox"] {
    width: 10px;
    height: 10px;
    appearance: none;
    background-color: white;
    border: 1px solid black;
    position: relative;
}

/* Style de la case cochée */
.checkboxes input[type="checkbox"]:checked {
    background-color: black;
    border-color: black;
}

/* Style du texte */
.checkboxes label {
    font-size: 0.7rem;
    color: black;
}

/* Texte en italique si la case est cochée */
.checkboxes input[type="checkbox"]:checked + label {
    text-decoration: underline;
}


/* Deuxième partie : Titres cliquables */
.links {
    width: 33.33%; /* 1/3 de la bande */
    display: flex;
    justify-content: center; /* Centre les éléments */
    gap: 10vw; /* Espace précis entre les titres */
    align-items: center;
    font-size: 0.7rem;
    color: black;
    margin-bottom: 0%;
}

.links a {
    text-decoration: none;
    color: black !important;
    position: relative;
    z-index: 1; /*  S’assure que le lien (et son ::after) est au-dessus */
    line-height: 1.2; /*  Garde de l’espace vertical sous le texte */
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px; /*  Léger espace pour qu’il ne touche pas le texte */
    width: 0;
    height: 1px;
    background-color: black;
    z-index: 2; /*  Met le soulignement devant tout */
    transition: width 0.2s ease-in-out;
}

.links a:hover::after {
    width: 100%;
    transition: width 0.1s ease-in-out;
}


/* Quand on quitte le survol, garder le soulignement pendant 1 seconde */
.links a::after {
    transition: width 0.2s ease-in-out, width 0.2s ease-out 0.2s; /* Maintenir pendant 1 seconde */
}





/* Conteneur modale */
.contact-container {
  display: none; /* Cacher par défaut */
  position: fixed;
  top: 7%; /* Place à 10% du haut de l'écran */
  right: 3%; /* Marge de 2% à droite */
  width: 26.8%; /* Largeur égale à celle de la colonne droite */
  background-color: white; /* Fond blanc */
  border: 1px solid black; /* Bordure noire */
  z-index: 1001; /* Au-dessus du contenu */
  padding: 20px; /* Espacement interne */
  overflow: hidden;
  height: 79%;
  justify-content: center;
  align-items: center;
}

/* Bouton de fermeture */
.close-btn {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: #DDDCDA;
  cursor: pointer;
}

.close-btn:hover {
  transition: color 0.3s ease;
  color: black;
}

.contact-content {
  text-align: center; /* Centre le texte */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px; /* Ajoute de l'espace sous le bouton */
}

/* Contenu de la section contact */
.contact-content h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: ;
}

.contact-content p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}














/* Bouton fixe en bas à gauche */
#mentionsBtn {
  position: fixed;
  right: 0%;
  width: 2.1vw;
  height: auto;
  padding: 0.2vw;
  background: white;
  border: 0px solid black;
  font-size: 0.5rem;
  cursor: pointer;
  z-index: 999;
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Conteneur popup */
#mentionsPopup {
  display: none;
  position: fixed;
  top: 7%;
  right: 3%;
  width: 26.8%;
  height: 79%;
  background: white;
  border: 1px solid black;
  padding: 20px;
  z-index: 1001;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

/* Bouton de fermeture */
#closeMentions {
  position: absolute;
  top: 5px;
  left: 50%;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #DDDCDA;
  transform: translateX(-50%);
}

#closeMentions:hover {
  transition: color 0.3s ease;
  color: black;
}


/* Rendre le contenu scrollable */
.mentions-content {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #333;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  padding-right: 7%; /* pour que le texte ne soit pas caché par la scrollbar */
  box-sizing: border-box;
}