@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto: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: relative;
  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: 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 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 */
}

/*Partie principale*/

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;
}

.qui-suis-je {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF; /* Bleu transparent */
    border-radius: 10px; /* Coins arrondis */
    margin-left: 15.67vw; /* Marge gauche */
    margin-right: 15.67vw; /* Marge droite */
    margin-top: 5vh; /* Marge du haut */
}

.qui-suis-je h2 {
    color: #E07E3C; /* Turquoise */
    font-size: 2.5em; /* Taille de la police */
    text-align: center; /* Centrer le texte */
    flex-basis: 100%;
    font-weight: 700;
    margin-bottom: 1.13vw;
}

.qui-suis-je .content {
    display: flex; /* Utiliser Flexbox */
    align-items: center; /* Centrer verticalement */
    justify-content: flex-start; /* Alignement à gauche */
    width: 100%;
}

.qui-suis-je img {
    border-radius: 10px; /* Coins arrondis */
    max-width: 26.67vw; /* Largeur maximale */
    margin: 0; /* Supprimer toutes les marges */
    padding: 0; /* Supprimer les paddings */
    height: auto; /* Assurez que l'image conserve ses proportions */
}

.qui-suis-je .text {
    max-width: 32vw; /* Largeur maximale */
    text-align: justify; /* Justifier le texte */
    padding-left: 2.13vw; /* Padding gauche */
}

.mon-approche {
    background-color: #FFF; /* Bleu transparent */
    padding: 2.13vw; /* Padding de la section */
    border-radius: 10px; /* Coins arrondis */
    margin-left: 15.67vw; /* Marge gauche */
    margin-right: 15.67vw; /* Marge droite */
    margin-top: 10vh; /* Marge du haut */
    margin-bottom: 8vh; /* Marge du bas */
    text-align: center; /* Centrer le texte */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mon-approche h2 {
    color: #E07E3C; /* Turquoise */
    font-size: 2.5em; /* Taille de la police */
    text-align: center; /* Centrer le texte */
    margin: 2vh 0; /* Marge égale en haut et en bas */
    margin-bottom: 2.13vw;
    font-weight: 700;
}

.mon-approche .text {
    max-width: 100%; /* Largeur maximale */
    text-align: center; /* Centrer le texte */
    padding: 0; /* Supprimer le padding */
    margin: 0 auto; /* Centrer le contenu */
    margin-left: 4vh;
    margin-right:4vh;
    line-height: 1.2em; /* Agrandir les interlignes */
    margin-top: 2vh; /* Espace entre le titre et le texte */
}



@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Appliquer l'animation aux sections "Mon approche" et "Qui suis-je" */
.mon-approche, .qui-suis-je {
    opacity: 0; /* Initialement invisible */
    transform: translateX(20%); /* Initialement décalé à droite */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Transition pour l'animation */
}

/* Classe pour déclencher l'animation */
.mon-approche.visible, .qui-suis-je.visible {
    opacity: 1; /* Devenir visible */
    transform: translateX(0); /* Réinitialiser le décalage */
}

/* Media Queries */

/* Petits écrans */
@media (max-width: 768px) {
  .qui-suis-je, .mon-approche {
    margin-left: 2.5vw;
    margin-right: 2.5vw;
}



.qui-suis-je .content {
    display: flex;
    flex-direction: column; /* Réorganise les éléments en colonne */
    align-items: center; /* Centrer les éléments horizontalement */
}

.qui-suis-je {
    display: flex;
    flex-direction: column; /* Organise en colonne pour petits écrans */
    align-items: center;
    margin: 0 5vw; /* Ajuste les marges à gauche et à droite */
}

.qui-suis-je h2 {
    order: 1; /* Le titre sera placé en premier */
    font-size: 2.5em; /* Ajuste la taille du titre pour petits écrans */
    margin-bottom: 2vh; /* Ajoute de l'espace sous le titre */
}

.mon-approche h2 {
  order: 1; /* Le titre sera placé en premier */
  font-size: 2.5em; /* Ajuste la taille du titre pour petits écrans */
  margin-bottom: 4vh; /* Ajoute de l'espace sous le titre */
}

.qui-suis-je img {
    order: 2; /* L'image sera placée en dessous du titre */
    width: 100%; /* L'image prend toute la largeur */
    height: auto; /* Conserve le ratio d'aspect */
    margin-bottom: 2vh; /* Espace sous l'image */
}

.qui-suis-je .text {
    order: 3; /* Le texte sera placé en dernier */
    max-width: 100%; /* Le texte prend toute la largeur */
    text-align: center; /* Centre le texte */
    padding-left: 0; /* Supprime le padding à gauche */
    margin-top: 2vh; /* Espace au-dessus du texte */
    margin-left: 2vh;
    margin-right:2vh;
}

.mon-approche .text {
  margin-left: 2vh;
  margin-right: 2vh;
}
    body {
      font-size: 1em; /* Augmente la taille du texte de base */
      line-height: 1.2; /* Optionnel : augmente l'espacement entre les lignes */
  }


    h2, h3 {
      font-size: 4.2em; /* Applique une taille cohérente pour mobile */
      font-weight: bold; /* Assure la même épaisseur pour une meilleure lisibilité */
      margin-bottom: 0.5em; /* Uniformise l'espacement inférieur */
  }

  /* Cible spécifique pour "Mon approche" et "Qui suis-je?" si des IDs sont utilisés */
  #mon-approche, #qui-suis-je {
      font-size: 3.2em; /* Uniformise la taille uniquement sur mobile */
  }

    
}

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

  

    .qui-suis-je, .mon-approche {
        margin-left: 2.5vw;
        margin-right: 2.5vw;
    }

 

    .qui-suis-je .content {
        display: flex;
        flex-direction: column; /* Réorganise les éléments en colonne */
        align-items: center; /* Centrer les éléments horizontalement */
    }

    .qui-suis-je {
        display: flex;
        flex-direction: column; /* Organise en colonne pour petits écrans */
        align-items: center;
        margin: 0 5vw; /* Ajuste les marges à gauche et à droite */
    }

    .qui-suis-je h2 {
        order: 1; /* Le titre sera placé en premier */
        font-size: 2em; /* Ajuste la taille du titre pour petits écrans */
        margin-bottom: 2vh; /* Ajoute de l'espace sous le titre */
    }

    .qui-suis-je img {
        order: 2; /* L'image sera placée en dessous du titre */
        width: 100%; /* L'image prend toute la largeur */
        height: auto; /* Conserve le ratio d'aspect */
        margin-bottom: 2vh; /* Espace sous l'image */
    }

    .qui-suis-je .text {
        order: 3; /* Le texte sera placé en dernier */
        max-width: 100%; /* Le texte prend toute la largeur */
        text-align: center; /* Centre le texte */
        padding-left: 0; /* Supprime le padding à gauche */
        margin-top: 2vh; /* Espace au-dessus du texte */
    }

}

@media (max-width: 380px) {

  .qui-suis-je h2 {
    order: 1; /* Le titre sera placé en premier */
    font-size: 2em; /* Ajuste la taille du titre pour petits écrans */
    margin-bottom: 2vh; /* Ajoute de l'espace sous le titre */
}

.mon-approche h2 {
  order: 1; /* Le titre sera placé en premier */
  font-size: 1.8em; /* Ajuste la taille du titre pour petits écrans */
  margin-bottom: 4vh; /* Ajoute de l'espace sous le titre */
}
}

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















