@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* 700 = Bold */
  margin: 0;
  padding: 0;
  background-color: #E07E3C;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-size: 1vw;
}

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


nav {
  position: fixed;
  color: #E07E3C;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px 25px;
  background: #FFF;
  box-shadow: inset 0px -1px 0px #c5c5c6;
  padding: 5.4vh 0;
  z-index: 1000;
}
.nav-icon {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 20px;
}

.nav-icon span {
  font-family: Roboto Flex, sans-serif;
  font-size: 25px;
  margin-left: 10px;
  font-weight: 400;
  color: #E07E3C;
}

.nav-icon img {
  width: 23em;
}

.hamburger {
  display: none;
}

.navlinks-container a {
  margin: 0 20px;
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  color: #E07E3C;
  position: relative;
}
.navlinks-container a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -3px;
  width: 100%;
  height: 1px;
  transform: scale(0);
  transform-origin: left;
  background: #E07E3C;
  transition: transform 0.3s ease-out;
}
.navlinks-container a:hover::after {
  transform: scaleX(1);
}

/* Styles pour le navlinks-container */
.navlinks-container {
  display: flex;
  align-items: center;
  color: #E07E3C;
}



/* Dropdown pour desktop */
.dropdown {
  position: relative;
}

/* Dropdown pour desktop */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFF;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #E07E3C;
  padding: 10px;
  z-index: 10;
  flex-direction: column; /* S'assurer que les liens du dropdown restent en colonne */
}

.dropdown-menu a {
  margin: 5px 0; /* Espacement vertical entre les liens du dropdown */
  color: #E07E3C;
  text-decoration: none;
  display: block; /* Afficher les liens en bloc pour qu'ils occupent toute la ligne */
}

.dropdown:hover .dropdown-menu {
  display: flex; /* Afficher le menu dropdown en flex (colonne) au hover */
}

/* Responsive - Mobile */
@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding-left: 20px; /* Ajoute un espace à l'intérieur du lien à gauche */
  }

  .navlinks-container {
    gap: 20px; /* Espacement entre tous les liens, y compris "Préparation Mentale" */
  }
}


@media (max-width: 900px) {
  nav {
    padding: 15px 20px;
    position: relative;
  }

  /* nav */
  .nav-icon {
    order: 2;
    margin: 0 auto;
  }

  .nav-icon span {
    font-size: 22px;
  }
  .main-navlinks {
    order: 1;
    width: auto;
  }

  /* hamburger */
  .hamburger {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: none;
    display: flex;
    background: #FFF;
    align-items: center;
    position: relative;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #E07E3C;
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s 0.15s ease-out;
  }
  .hamburger span:nth-child(1),
  .hamburger span:nth-child(3) {
    transition: transform 0.3s ease-out;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(7px);
  }
  .hamburger span:nth-child(3) {
    transform: translateY(-7px);
  }

  .hamburger.open span:nth-child(1) {
    transform: translate(0) rotate(135deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transition: opacity 0s ease-out;
  }
  .hamburger.open span:nth-child(3) {
    transform: translate(0) rotate(-135deg);
  }

  .navlinks-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    background: #FFF;
    top: 100%;
    left: 0;
    transform: translate(-100%);
    height: 100vh;
    padding: 15px 50px 15px 20px;
    border-right: 1px solid #c5c5c6;
  }
  .open {
    transform: translate(0%);
  }

  .navlinks-container a {
    font-size: 18px;
    margin: 10px 0px;
  }

}

@media (max-width: 500px) {
  .nav-icon img {
    width: 30px;
  }
  .nav-icon span {
    font-size: 20px;
  }
}

@media (min-width: 900px) {
  nav {
    display: flex;
    justify-content: center; /* Centre tout */
    align-items: center;
    position: relative;
  }

  .nav-icon {
    position: absolute;
    left: 25px; /* Place le logo à gauche */
  }

  .navlinks-container {
    display: flex;
    justify-content: center; /* Centre les liens de navigation */
    margin: 0 auto; /* Centrer le conteneur de liens */
  }
}

.header-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 40%; /* ≈ 1/3 de la hauteur du header */
  background-color: #E07E3C;
  color: #FFF;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em; /* À ajuster si besoin */
  font-weight: 500;
  border-top-left-radius: 30px;
  z-index: 1001;
  white-space: nowrap;
  border-top: 1px solid #fff;
}

/* Footer */
footer {
  background-color: #FFF;
  color: #E07E3C;
  padding: 5.4vh 0;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-info {
  display: flex;
  align-items: center;
  font-size: 0.8em;
}

.footer-info p {
  margin: 0 0.27vw;
}

.footer-info .separator {
  margin: 0 0.53vw;
  color: #E07E3C;
}

footer .footer-info a {
  color: #E07E3C; /* Couleur du lien */
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.27vw; /* Espacement des liens */
  transition: color 0.3s ease;
}

footer .footer-info a:hover {
  color: #F4A261; /* Couleur au survol */
}

main {
  padding: 2.13vh; /* Padding du main */
  position: relative;
  background: url('../img/mountaingrey.jpg') no-repeat center center fixed;
  background-size: cover;
}
/* contacts */

h2 {
    color: #E07E3C; /* Turquoise */
    text-align: center;
    margin: 2vh 0; /* 20px = 2 * 10px */
    font-size: 2.5rem; /* Taille de police relative */
    text-transform: uppercase;
    letter-spacing: 0.11rem; /* 2px = 0.11 * 18.75px */
}

.contact-info {
    text-align: center;
    margin-bottom: 4vh; /* 40px = 4 * 10px */
    color: #333;
    font-weight: 600;
}

.contact-form {
    width: 50%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8); /* Blanc pur (#FFF) avec 80% d'opacité */
    padding: 2vh; /* 20px = 2 * 10px */
    border-radius: 10px;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.5); /* 0 4px 8px = 0.4vh 0.8vh */
}

.contact-form label {
    display: block;
    margin-bottom: 1vh; /* 10px = 1 * 10px */
    font-weight: bold;
    color: #333;
}

.contact-form input, .contact-form textarea{
    width: 98%;
    padding: 1vh; /* 10px = 1 * 10px */
    margin-bottom: 2vh; /* 20px = 2 * 10px */
    margin-right: 0.53vw; /* 10px = 0.53 * 18.75px */
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333;
    font-size: 1rem; /* Taille de police relative */
}

.contact-form select {
    width: 100%;
    padding: 1vh; /* 10px = 1 * 10px */
    margin-bottom: 2vh; /* 20px = 2 * 10px */
    margin-right: 0.53vw; /* 10px = 0.53 * 18.75px */
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333;
    font-size: 1rem; /* Taille de police relative */
}

.contact-form button {
    width: 100%;
    padding: 1.5vh; /* 15px = 1.5 * 10px */
    border: none;
    border-radius: 5px;
    font-size: 1.2rem; /* Taille de police relative */
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #ffffff;
}

.contact-form button:hover {
    color: #E07E3C; /* Turquoise */
}

.map {
    text-align: center;
    margin-top: 4vh; /* 40px = 4 * 10px */
}

.map-container {
    width: 100%;
    max-width: 32vw; /* 600px = 32 * 18.75px */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.5); /* 0 4px 8px = 0.4vh 0.8vh */
    margin-bottom: 4vh; /* 40px = 4 * 10px */
}

/* Animation de fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de slide-in depuis la droite */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Appliquer l'animation aux titres */
h2 {
    opacity: 0; /* Initialement invisible */
    transform: translateY(20px); /* Initialement décalé vers le bas */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Transition pour l'animation avec un délai de 0.5s */
}

h2.visible {
    opacity: 1; /* Devenir visible */
    transform: translateY(0); /* Réinitialiser le décalage */
}

/* Appliquer l'animation aux sections spécifiques */
.contact-info, .contact-form, .map {
    opacity: 0; /* Initialement invisible */
    transform: translateX(20%); /* Initialement décalé à droite */
    transition: opacity 1s ease-out , transform 1s ease-out ; /* Transition pour l'animation avec un délai de 0.5s */
}

/* Classe pour déclencher l'animation */
.contact-info.visible, .contact-form.visible, .map.visible {
    opacity: 1; /* Devenir visible */
    transform: translateX(0); /* Réinitialiser le décalage */
}

/* Media Queries */

@media (max-width: 768px) {

    /* Formulaire de contact */
    .contact-form {
        width: 90%; /* Prend presque toute la largeur */
        padding-left: 5vw;
        padding-right: 5vw;
    }

    /* Marges supplémentaires pour harmoniser avec la page "sport" */
    main {
        padding-left: 5vw; /* Marge à gauche pour centrer le contenu */
        padding-right: 5vw; /* Marge à droite pour centrer le contenu */
    }

    /* Taille des titres pour les smartphones */
    h2 {
        font-size: 1.8em; /* Taille de police similaire à la page "sport" */
    }

    /* Ajustement de la taille des champs de formulaire */
    .contact-form input, .contact-form textarea, .contact-form select {
        font-size: 1.2rem; /* Taille de police légèrement augmentée pour lisibilité */
        padding: 1.2vh; /* Légèrement plus de padding pour un confort sur mobile */
    }

    /* Taille du bouton de soumission */
    .contact-form button {
        font-size: 1.3rem; /* Taille du texte du bouton légèrement plus grande */
        padding: 1.5vh;
    }

    .map-container {
        position: relative;
        max-width: 80%;
        padding-bottom: 56.25%; /* Maintient un ratio d'aspect 16:9 */
        height: 0;
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 4vh;
        box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.5);
    }

    .map-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* Espace supplémentaire sous chaque section */
    .contact-info, .contact-form, .map {
        margin-bottom: 4vh; /* Ajout d'espace sous chaque section */
    }

    
}


/* Très petits écrans */
@media (max-width: 375px) {
    

    .contact-form {
        width: 100%;
    }

    .map-container {
        max-width: 80%;
    }

    footer {
      font-size: 1.6em; /* Augmente la taille globale du texte dans le footer */
      line-height: 1.5; /* Améliore l'espacement entre les lignes pour une meilleure lisibilité */
    }
  
    .hamburger {
      width: 40px; /* Largeur accrue */
      height: 40px; /* Hauteur accrue */
    }
  
    .hamburger span {
      width: 100%; /* Garde chaque ligne sur toute la largeur du hamburger */
      height: 4px; /* Augmente l'épaisseur des barres */
      background: #ffffff;
    }
  
    .hamburger span:nth-child(1) {
      transform: translateY(12px); /* Ajuste l'espacement pour correspondre à la nouvelle taille */
    }
  
    .hamburger span:nth-child(3) {
      transform: translateY(-12px);
    }
  
    nav {
      padding: 30px 25px; /* Padding augmenté pour donner plus de hauteur */
      height: auto; /* Utilisation de height auto pour garder la flexibilité */
    }

    h2 {
        font-size: 2rem;
    }

    /* Ajuster la taille du texte dans le formulaire */
    .contact-form input, .contact-form textarea, .contact-form select {
        font-size: 3.5vw; /* Taille de texte ajustée selon la largeur de l'écran */
    }

    .contact-form button {
        font-size: 4vw; /* Taille du bouton ajustée */
    }

    /* Ajustement spécifique pour les boutons radio */
    .radio-buttons {
        display: flex;
        flex-wrap: wrap; /* Permet d'enrouler les boutons si l'espace est insuffisant */
        justify-content: space-between; /* Espacer les boutons pour les petits écrans */
        gap: 0.4rem; /* Ajout d'espace entre les boutons */
        font-size: 2vw; /* Ajuste également la taille des boutons radio */
    }

    .radio-buttons input[type="radio"] {
        width: auto; /* Garde les boutons radio à une taille normale */
        margin-right: 0.5rem; /* Espace entre le bouton et le label */
    }

    .radio-buttons label {
        font-size: 2.5vw; /* Ajuste la taille du texte des labels radio */
    }

    /* Assurer que le formulaire s'adapte à la largeur du conteneur */
    .contact-form {
        padding: 2vh 5vw; /* Marge interne pour centrer le contenu */
        width: 90%; /* Formulaire ajusté pour s'adapter à l'écran */
    }
}

/*CSS pour les boutons Madame/Monsieur/Entreprise*/
.radio-buttons {
    display: inline-flex; /* Utilise inline-flex pour maintenir les éléments sur une seule ligne */
    align-items: center; /* Aligne verticalement les boutons et les labels */
    gap: 1rem; /* Ajuste l'espacement entre les groupes de boutons radio et leurs labels */
    color: #E07E3C;
}

.radio-buttons input[type="radio"] {
    margin-right: 0rem; /* Réduit l'espace entre le bouton et le texte du label */
}

.radio-buttons label {
    margin-right: 0; /* Évite les marges entre le bouton et son label */
}

/* Petits écrans */
@media (max-width: 768px) {

  footer {
    font-size: 1.6em; /* Augmente la taille globale du texte dans le footer */
    line-height: 1.5; /* Améliore l'espacement entre les lignes pour une meilleure lisibilité */
  }

  .hamburger {
    width: 40px; /* Largeur accrue */
    height: 40px; /* Hauteur accrue */
  }

  .hamburger span {
    width: 100%; /* Garde chaque ligne sur toute la largeur du hamburger */
    height: 4px; /* Augmente l'épaisseur des barres */
    background: #E07E3C;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(12px); /* Ajuste l'espacement pour correspondre à la nouvelle taille */
  }

  .hamburger span:nth-child(3) {
    transform: translateY(-12px);
  }

  nav {
    padding: 30px 25px; /* Padding augmenté pour donner plus de hauteur */
    height: auto; /* Utilisation de height auto pour garder la flexibilité */
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

nav, .navlinks-container, .content, .footer-container {
  width: 100%;
  max-width: 100vw;
}

.background-section {
  max-width: 100%;
  width: 100vw;
  overflow: hidden;
}

.no-scroll {
  overflow: hidden;
  height: 100vh; /* Empêche complètement le scroll vertical */
}

@media (max-width: 900px) {
  .header-tag {
    font-size: 1.1em; /* légèrement plus grand */
    padding: 0 2em;
    height: 30%;
  }
}

@media (max-width: 600px) {
  .header-tag {
    font-size: 1.3em; /* plus visible sur petit écran */
    padding: 0 2em;
    height: 25%;
    border-top-left-radius: 25px;
  }
}
