/* Réinitialisation des styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  font-family: "League Spartan", sans-serif;
  margin-bottom: 80px;
  scroll-behavior: revert;
  font-size: 0.7em;
}

/* Barre de navigation */
nav {
  position: fixed;
  width: 100vw;
  height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  border: 35px solid rgb(0, 0, 0, 0.001);
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  height: 100%;
  list-style: none;
  padding: 0;
  background-color: white;
}

nav ul li {
  margin: 10px;
}

nav ul li a {
  font-size: small;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.4em;
  color: black;
}

nav ul li a:hover {
  color: #b9a38e;
  transition: 0.2s;
}

/* Logo de la barre de navigation */
nav ul li img {
  width: 60px;
  height: 60px;
}

.burger {
  display: none;
}

@media (max-width: 1000px) {
  nav {
    border: none;
    height: 9vh;
    background-color: white;
  }

  nav ul {
    position: absolute;
    top: 0;
    border: none;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(7px);
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    margin-left: -200%;
    transition: all 0.5s ease;
  }

  nav img:nth-of-type(2) {
    position: absolute;
    left: 44%;
  }

  nav .flag a {
    position: absolute;
    bottom: -15px;
    right: 10px;
  }

  .burger {
    display: block;
    position: absolute;
    left: 5%;
  }

  .logo {
    left: 46%;
  }
}

.mobile-menu {
  margin-left: 0;
}

.flag {
  position: absolute;
  left: 95%;
}

.flag a img {
  width: 25px;
  height: auto;
}

.logo {
  width: 60px;
  position: absolute;
  right: 92%;
  bottom: 22%;
}

.scrolled {
  border: 0px solid #b9a38e;
  transition: border-width 0.2s ease-in-out;
  height: 11vh;
  transition: 0.2s;
}

/* Vidéo de fond */
.conteneur-video {
  position: relative;
  width: 100%;
  height: 100vh;
}

.conteneur-video video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -100;
  pointer-events: none;
}

div.conteneur-video div.home {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

div.conteneur-video div.home a {
  color: white;
  font-size: 1.3em;
  text-underline-offset: 7px;
}

div.conteneur-video div.home a:hover {
  text-underline-offset: 4px;
  transition: 0.2s;
}

#typing {
  color: white;
  text-align: center;
  font-size: 8em;
  padding: 10px;
}

@media (max-width: 900px) {
  div.conteneur-video div.home {
    flex-direction: column;
    justify-content: center;
    gap: 120px;
  }

  #typing {
    color: white;
    text-align: center;
    font-size: 6em;
    padding: 10px;
  }
}

section.content,
section.inverse {
  background-color: #fffcf4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 7vw, 200px);
  padding: 80px;
}

section.inverse {
  flex-direction: row-reverse;
}

main section img {
  margin: 20px;
  width: 40%;
  height: 40%;
}

main section .texte {
  width: 35%;
  height: 40%;
  position: relative;
  margin: 10px;
}

main section .texte h3 {
  padding-bottom: 20px;
  font-size: clamp(2em, 4vw, 3em);
  margin: 15px;
}

main section .texte p {
  font-size: clamp(1.5em, 3vw, 2em);
  margin: 15px;
  line-height: 1.2;
}

section.content a,
section.inverse a {
  position: relative;
  top: 40px;
  left: 6px;
  padding: 20px;
  text-decoration: none;
  color: black;
  border: 0.5px solid black;
  font-size: clamp(1em, 1.6em, 1.6em);
}

section.content a:hover,
section.inverse a:hover {
  background-color: black;
  transition: 0.4s;
  color: white;
}

/* Adaptation au format téléphone */
@media (max-width: 1000px) {
  section.content,
  section.inverse {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }

  .content .texte,
  .inverse .texte {
    width: 100%;
    flex-direction: column;
  }

  .content img,
  .inverse img {
    margin: 20px;
    width: 100%;
    height: 100%;
  }

  .content a,
  .inverse a {
    position: relative;
    top: 30px;
    display: block;
    text-align: center;
  }
}

section:nth-child(5) {
  width: 100%;
  height: 100%;
  background-color: #c0e4bc;
}

.equip {
  background-color: #c0e4bc;
  position: relative;
}

.equip h3 {
  margin: 25px;
  padding-top: 25px;
  font-size: clamp(1em, 3em, 4em);
  color: white;
  text-align: center;
}

section .equipment {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  padding: 20px;
  font-size: clamp(1em, 1.5vw, 2em);
  color: white;
}

.equipment img {
  width: 50px;
  height: 50px;
}

.equipment-1,
.equipment-2,
.equipment-3 {
  margin: 15px;
  flex: 1;
}

section:nth-child(3) {
  background-color: #c0e4bc;
}

#map {
  width: 100%;
  height: 500px;
  padding: 10px;
  z-index: 100;
}

.section-galery {
  background-color: #f8f4f4;
  padding: 50px 0; /* Ajout pour donner un peu de respiration */
  border: 6px solid red;
}

.galery {
  width: 90vw;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2vmin;
  padding: 0 14px;
  justify-content: center;
}

.galery li {
  list-style-type: none;
  height: 300px;
  flex-grow: 1;
  min-width: 200px; /* Empêcher les éléments de devenir trop petits */
}

.galery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Évite les petits espaces sous les images */
  transition: transform 0.5s ease-in-out;
}

.galery li:hover img {
  transform: scale(1.02);
}

.h3-galery {
  margin: 30px 0; /* Évite l'utilisation de positionnement inutile */
  font-size: 3em;
  text-align: center;
  color: inherit; /* Respecte le design global */
}

.image-appear {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.image-appear.active {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background-color: #b9a38e;
}

section.tarif {
  display: none;
  width: 100%;
  height: 30vh;
  display: inline-block;
}

.tarif h3 {
  margin-top: 50px;
  font-size: 3em;
  color: white;
  text-align: center;
}

.date-selector {
  width: 100%;
  height: 60%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.date-selector div {
  border: 1px solid white;
  width: 10%;
  padding: 10px;
  margin: 10px;
  margin-left: 20px;
  margin-right: 20px;
  flex: 1;
}

.date-selector div h4 {
  color: white;
  margin: 10px;
  margin-left: 0;
  font-size: larger;
}

.date-selector button {
  color: white;
  border: none;
  font-size: larger;
  background-color: #c0e4bc;
  width: 100%;
  height: 100%;
}

.date-selector div:nth-child(3) {
  height: 80px;
  padding: 0;
}

.date-selector div:nth-child(3):hover {
  background-color: #262d26;
  transition: 0.3s;
}

.date-selector div:nth-child(3):hover button {
  background-color: #262d26;
  transition: 0.3s;
}

@media (max-width: 700px) {
  section.tarif {
    height: 50vh;
  }

  .date-selector {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .date-selector div {
    border: 1px solid white;
    width: 80%;
  }

  .date-selector div:nth-child(3) {
    padding: 15px;
  }

  .tarif h3 {
    margin-top: 15px;
    font-size: 2em;
    color: white;
    text-align: center;
  }
}

.resultat {
  display: none;
  position: relative;
  width: 100%;
  height: 100px;
  background-color: #c0e4bc;
}

.resultat a {
  list-style: none;
  text-align: center;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: white;
  border: 0.5px solid white;
  font-size: clamp(1em, 1.6em, 1.6em);
}

.resultat a:hover {
  background-color: #262d26;
  transition: 0.2s;
  color: white;
}

.resultat-click {
  display: flex;
  height: 250px;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;
}

.resultat h4 {
  padding-top: 15px;
  padding-left: 10px;
  padding-right: 10px;
  color: white;
  font-size: 2em;
  text-align: center;
}

footer {
  margin-top: 100px;
  width: 100%;
  height: auto;
  height: 300px;
  border-top: 1px solid #b9a38e;
  padding-top: 30px;
}

footer h4 {
  margin-bottom: 25px;
  font-size: 1.7em;
}

footer ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  width: 100%;
  height: 100%;
}

footer ul li {
  text-align: center;
  border-left: 1px solid #b9a38e;
  flex: 1;
}

footer ul li:nth-of-type(1) p {
  border: none;
  width: 80%;
  position: relative;
  left: 8%;
  top: 40%;
}

footer ul li:nth-of-type(3) p {
  width: 80%;
  position: relative;
  left: 8%;
  top: 40%;
}

footer ul li:nth-of-type(1) {
  border: none;
}

footer ul li ul li a {
  color: #b9a38e;
  text-decoration: none;
}

footer ul li ul li a:hover {
  color: black;
  transition: color 0.3s ease-in-out;
}

footer ul li ul {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

footer ul li ul li {
  flex: 1;
  border: none;
  padding: 10px;
}

footer ul li p {
  margin: 15px;
  text-align: center;
  font-size: 1.6em;
}

.mail-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.5em;
}

.mail-footer a {
  text-decoration: none;
  color: #b9a38e;
}

.mail-footer a:hover {
  color: black;
}

footer a[href^="mailto"] {
  color: #b9a38e; /* Couleur du texte */
  text-decoration: none; /* Supprime le soulignement */
  font-weight: bold; /* Met en gras */
  transition: color 0.3s ease-in-out; /* Animation douce du changement de couleur */
}

footer a[href^="mailto"]:hover {
  color: black; /* Change la couleur au survol */
  text-decoration: underline; /* Ajoute un soulignement */
}

@media (max-width: 1000px) {
  .mail-footer {
    flex-direction: column;
    position: relative;
    top: 50%;
    padding-bottom: 30px;
  }

  footer ul {
    flex-direction: column;
    gap: 100px;
  }

  footer ul li h4 {
    margin-top: 20px;
  }

  footer ul li p {
    text-align: center;
    position: relative;
    left: 25%;
  }

  footer ul li {
    border-left: none;
    border-top: 1px solid #b9a38e;
    flex: 1;
  }

  footer ul li:nth-of-type(2) {
    display: none;
  }

  footer ul li:nth-of-type(3) {
    display: none;
  }
}

.sectionadresse {
  padding: 5%;
}

.adresse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.adresse-section .adresse h3 {
  padding: 50px;
  font-size: 2.6em;
  text-align: center;
}

.adresse-section h3 {
  padding: 50px;
  font-size: 2em;
  text-align: center;
}

.adresse-section {
  background-color: white;
}

.map-logo {
  width: 50px;
  height: 50px;
}

#galery h3 {
  font-size: 5em;
  text-align: center;
  margin: 50px;
}

.contact {
  margin-top: 30px;
  font-size: 2em;
  height: 50vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-color: #fffcf4;
}

.contact h3 {
  font-size: 2.3em;
  margin: 20px;
}

.contact p {
  margin: 20px;
}
.mail {
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.mail a {
  margin: 10px;
}

.contact div a {
  color: #b9a38e;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .equip {
    font-size: 1.5em;
  }

  section.content,
  section.inverse {
    font-size: 1.3em;
  }
}

.grille-tarif-section {
  width: 100%;
  height: 40vh;
  background-color: #c0e4bc;
}

.grille-tarif {
  display: flex;
  flex-wrap: wrap; /* Permet aux éléments de se répartir sur plusieurs lignes */
  height: 100%;
}

.grille-tarif div {
  flex: 1 1 30%; /* Chaque div prend environ 30% de la largeur, peut se réajuster */
  border: 1px solid white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centre verticalement tout le contenu (h5 + p) */
  margin: 1rem; /* Ajoute un espacement entre les divs */
}

.grille-tarif div h5 {
  text-align: center;
  margin: 20px 0;
  font-size: clamp(
    1.5em,
    4vw,
    2.5em
  ); /* La taille de la police varie entre 1.5em et 2.5em */
  color: white;
}

.grille-tarif div p {
  text-align: center;
  width: 100%;
  font-size: clamp(1.2em, 3vw, 2em); /* La taille varie entre 1.2em et 2em */
  color: white;
  margin: 0;
  padding: 0;
}

#handicap {
  position: absolute;
  bottom: 10px; /* distance depuis le bas */
  left: 0;
  width: 100%;
  font-size: clamp(1em, 1vw, 2em);
  color: white;
  text-align: center;
  font-weight: bold;
  margin: 0; /* supprime les marges par défaut */
}
