
body {
  margin: 0;
  font-family: 'Luciole', sans-serif; /* Applique Luciole par défaut */
  background: #f0f0f0;
}
header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #ccc;
}
.logo {
  height: 60px;
  margin-right: 20px;
}
h1 {
  font-size: 1.8em;
  margin: 0;
}


.swiper {
  width: 100%;
  height: 80vh;
}



/*
.swiper-slide {
  text-align: center;
  background: #fff;
  height: calc((100% - 30px) / 2) !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}


.swiper-slide img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  display: block;
}


figcaption {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}
*/






.swiper-slide {
  text-align: center;
  background: #fff;
  height: calc((100% - 30px) / 2) !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Centrer le contenu du picture */
.swiper-slide picture {
  display: flex; /* Utiliser flex pour centrer */
  flex-direction: column; /* Empile les éléments verticalement */
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
  max-width: 80%; /* Limite la largeur */
  height: auto; /* Prend la hauteur automatiquement */
}

/* Images avec ou sans lien */
.swiper-slide img {
  max-width: 100%; /* Change max-width à 100% pour s'étendre à la largeur de son conteneur */
  height: auto; /* Conserve le ratio */
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Légende */
figcaption {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}


/* Effet de survol sur la légende */
div.swiper-slide a picture figcaption:hover {
    color: #007BFF;
    text-decoration: underline;
}




/* 
    .swiper-pagination-bullet {
      width: 20px;
      height: 20px;
      text-align: center;
      line-height: 20px;
      font-size: 12px;
      color: #000;
      opacity: 1;
      background: rgba(0, 0, 0, 0.2);
    }

    .swiper-pagination-bullet-active {
      color: #fff;
      background: #007aff;
    }

*/







.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  color: #000; /* Couleur par défaut */
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

/* Styles pour Dark Mode */
body.dark-mode .swiper-pagination-bullet {
  color: #fff; /* Ajuster la couleur du texte en sombre */
  background: rgba(255, 255, 255, 0.2); /* Fond plus clair */
}

.swiper-pagination-bullet-active {
  color: #fff;
  background: #007aff; /* Couleur par défaut active */
}

/* Styles pour Dark Mode - Éléments actifs */
body.dark-mode .swiper-pagination-bullet-active {
  background: #0056b3; /* Une couleur plus sombre pour le mode sombre */
}









.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: none;
  flex-direction: column;
}
.overlay header {
  border-bottom: 1px solid #ccc;
}
.overlay iframe {
  flex: 1;
  border: 4px solid #ccc;
  margin: 20px;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: red; /* couleur rouge */
}



.cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
}










/* Styles pour le mode sombre */
body.dark-mode {
  background: #121212; /* Fond sombre */
  color: #e0e0e0; /* Texte clair */
}

header.dark-mode {
  background: #1e1e1e;
  border-bottom: 1px solid #444;
}

.swiper-slide.dark-mode {
  background: #282828; /* Fond sombre pour les slides */
}

figcaption.dark-mode {
  color: #ccc; /* Couleur des légendes en mode sombre */
}

.overlay.dark-mode {
  background: #1e1e1e; /* Fond sombre pour l'overlay */
}

.close-button.dark-mode {
  color: red; /* Vous pouvez changer la couleur si besoin */
}




#darkModeToggle {
  position: absolute; /* Positionnement absolu */
  top: 10px; /* Ajustez pour contrôler la position verticale */
  right: 20px; /* Ajustez pour contrôler la position horizontale */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px; /* Taille de la police */
  z-index: 100; /* Assurez-vous que le bouton est au-dessus d'autres éléments */
}



@font-face {
    font-family: 'Luciole';
    src: url('fonts/Luciole_webfonts/Luciole-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Luciole';
    src: url('fonts/Luciole_webfonts/Luciole-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Luciole';
    src: url('fonts/Luciole_webfonts/Luciole-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Luciole';
    src: url('fonts/Luciole_webfonts/Luciole-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}














