* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --shadsize_med: 2px;
  --shadsize_sml: 1px;
  --shadow-color: #000; /* Couleur de l'ombre */
  --shadow-color2: #fff; /* Couleur de l'ombre */
}

.reset-styles {
  margin: auto;
  display: inline-block;
  margin: 5px 10px;
  text-shadow: none;
}

h1,
a {
  font-size: 4vw;
}

p {
  font-size: 2.1vw;
}

.border-medium {
  text-shadow: var(--shadsize_med) var(--shadsize_med) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_med)) calc(-1 * var(--shadsize_med)) 0
      var(--shadow-color),
    var(--shadsize_med) calc(-1 * var(--shadsize_med)) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_med)) var(--shadsize_med) 0 var(--shadow-color),
    calc(var(--shadsize_med) - 1) var(--shadsize_med) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_med) + 1) calc(-1 * var(--shadsize_med)) 0
      var(--shadow-color),
    var(--shadsize_med) calc(var(--shadsize_med) - 1) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_med)) calc(-1 * var(--shadsize_med) + 1) 0
      var(--shadow-color);
}

.border-fine {
  text-shadow: var(--shadsize_sml) var(--shadsize_sml) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_sml)) calc(-1 * var(--shadsize_sml)) 0
      var(--shadow-color),
    var(--shadsize_sml) calc(-1 * var(--shadsize_sml)) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_sml)) var(--shadsize_sml) 0 var(--shadow-color),
    calc(var(--shadsize_sml) - 1px) var(--shadsize_sml) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_sml) - 1px) calc(-1 * var(--shadsize_sml)) 0
      var(--shadow-color),
    var(--shadsize_sml) calc(var(--shadsize_sml) - 1px) 0 var(--shadow-color),
    calc(-1 * var(--shadsize_sml)) calc(-1 * var(--shadsize_sml) + 1px) 0
      var(--shadow-color);
}

.border-fine-white {
  text-shadow: var(--shadsize_sml) var(--shadsize_sml) 0 var(--shadow-color2),
    calc(-1 * var(--shadsize_sml)) calc(-1 * var(--shadsize_sml)) 0
      var(--shadow-color2),
    var(--shadsize_sml) calc(-1 * var(--shadsize_sml)) 0 var(--shadow-color2),
    calc(-1 * var(--shadsize_sml)) var(--shadsize_sml) 0 var(--shadow-color2),
    calc(var(--shadsize_sml) - 1px) var(--shadsize_sml) 0 var(--shadow-color2),
    calc(-1 * var(--shadsize_sml) - 1px) calc(-1 * var(--shadsize_sml)) 0
      var(--shadow-color2),
    var(--shadsize_sml) calc(var(--shadsize_sml) - 1px) 0 var(--shadow-color2),
    calc(-1 * var(--shadsize_sml)) calc(-1 * var(--shadsize_sml) + 1px) 0
      var(--shadow-color2);
}

/* Style pour la barre de navigation */
.navbar {
  position: fixed;
  top: 10px;
  left: 50%;
  background: transparent;
  padding: 10px;
  z-index: 1000;
  white-space: nowrap;
  transform: translateX(-50%);
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar li {
  margin: 0 1vw;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  position: relative;
  font-size: 2vw;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.navbar a:hover {
  background: rgba(0, 0, 0, 0.6);
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.fullscreen {
  position: relative;
  width: 100%;
  height: 100vh; /* 100% de la hauteur de la fenêtre */
  overflow: hidden;
}

/* Fullscreen background image with specific class */
.background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover; /* Adjusts the image to cover the entire area */
}

.light-bg {
  margin: auto;
  display: inline-block;
  padding: 5px 15px;
  background-color: #00000066; /* Couleur de fond */
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
}

/* Centrage par défaut */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: 2rem;
  width: 40vw;
  padding: 20px;
}

.overlay-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: 2rem;
  width: 25vw;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
  object-fit: fill;
}

.overlay-text-size {
  width: 1000px;
}

/* Positionnement pour l'overlay à gauche */
.overlay-text-top {
  top: 20%;
}
.overlay-text-bottom {
  top: 60%;
}

/* Positionnement pour l'overlay à gauche */
.overlay-text-left {
  left: 30%;
}

/* Positionnement pour l'overlay à droite */
.overlay-text-right {
  left: 70%;
}

.overlay-scroll {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: 2rem;
  width: 90%;
  height: 80%;
  padding: 20px;
  border-radius: 8px;
}

.scroll-panel {
  height: 100%;
  overflow-y: auto; /* Active le défilement vertical */
  border-radius: 4px;
}

.btn-view-more {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1.3vw;
  color: #fff;
  background-color: #0056b3;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* Effet de survol du bouton */
.btn-view-more:hover {
  background-color: #007bff;
}

/* Style pour les boutons d'arrow */
.btn-arrow {
  position: absolute;
  width: 100px;
  height: 100px;
  border: none;
  border-radius: 50%; /* Rond */
  background-color: #00000095; /* Couleur de fond du bouton */
  color: white;
  font-size: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8); /* Ombre pour un effet de profondeur */
  top: 50%;
}

/* Style pour les boutons à gauche */
.btn-left {
  left: 20px; /* Positionner à 20px du bord gauche */
}

/* Style pour les boutons à droite */
.btn-right {
  right: 20px; /* Positionner à 20px du bord droit */
}

/* Effet de survol des boutons */
.btn-arrow:hover {
  background-color: #0056b3; /* Couleur de fond lors du survol */
}

.align {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  gap: 1vw;
}

.align a img {
  height: 100%;
  width: auto;
}

.align div {
  margin: 0;
}

.align-image {
  width: 15%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

.overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Card container */
.card-container {
  gap: 20px;
  width: 80%;
  height: auto;
}

.card {
  position: relative;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.card img {
  display: block;
  width: 100%;
  max-height: 60vh;
  flex-shrink: 0;
  border-radius: 8px;
}

/* Positioning the text on the image */
.card-text {
  position: absolute;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 10px;
  border-radius: 5px;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

/* Hover effect */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.justified-text {
  margin: 10px;
  text-align: justify;
}

.small-text {
  padding: 20px;
  font-size: 1.7vw;
}

/* Style général du formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacement entre les éléments du formulaire */
}

/* Style des groupes de formulaire */
.form-group {
  display: flex;
  gap: 20px; /* Espacement entre les champs dans chaque groupe */
}

/* Style des éléments à l'intérieur des groupes */
.form-group > div {
  flex: 1; /* Permet aux éléments de s'ajuster en largeur */
}

/* Style des labels */
.contact-form label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 5px; /* Espacement entre le label et le champ de saisie */
  text-align: left; /* Aligne le texte du label à gauche */
}

/* Style des champs de saisie */
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 30px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Style du bouton */
.contact-form button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Style général de la section de pagination */
.pagination {
  position: absolute;
  bottom: 20px; /* Distance du bas de la page */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Style des ronds de pagination */
.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 10px; /* Espacement entre les ronds */
}

.dot {
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.5); /* Couleur des ronds inactifs */
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: rgba(0, 0, 0, 0.8); /* Couleur du rond actif */
  border: 2px solid #fff;
}

/* Style de l'information de la page */
.page-info {
  margin-top: 5px;
  font-size: 1.5rem;
  color: #fff; /* Couleur du texte */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
