@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');
/*open sans*/
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* 700 = Bold */
  margin: 0;
  padding: 0;
  background-color: #E07E3C;
  color: #E07E3C;
  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-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: 950px) {
  .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: 950px) {
  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: 950px) { 
  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 */ 
  } 
}


.content {
    padding: 5vh 10vw;
    animation: fadeIn 1.5s ease-out;
}

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

h1.mentions-title {
    color: #333;
    text-align: center;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.11rem;
    margin-bottom: 3vh;
}

.mentions-section {
    margin-bottom: 4vh;
    background-color: #FFF;
    padding: 2vh;
    border-radius: 10px;
    box-shadow: 0 0.4vh 0.8vh rgba(0, 0, 0, 0.5);
    animation: slideInRight 1.5s ease-out;
}

h3 {
    color: #E07E3C;
    font-size: 1.8rem;
}

p {
    color: #333;
    font-size: 1rem;
}

.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 {
  color: #E07E3C;
  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 */
}

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

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

/* 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 */
}

.navlinks-container.open {
  transform: translateX(0); /* Affiche le menu */
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 950px) {
  .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;
  }
}

/* Zone étroite AVANT le burger : on évite le chevauchement
   et on autorise "Préparation Mentale" à passer sur 2 lignes */
@media (min-width: 950px) and (max-width: 1400px) {
  nav {
    padding-left: 240px !important;  /* réserve logo */
    padding-right: 120px !important; /* réserve badge orange */
    margin: 0 !important;
  }
  
  /* Lien "Préparation Mentale" peut wrap sur 2 lignes */
  .navlinks-container .dropdown > .dropdown-toggle {
  	display: inline-block;
  	max-width: 110px;   /* au lieu de 140px */
  	white-space: normal;
  	word-break: keep-all;
  	line-height: 1.1;
  	text-align: center;
  }

  .navlinks-container {
    gap: 0.5rem !important; /* environ 8px entre les liens */
  }
  
  
}



