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-family: Roboto Flex, sans-serif;
  font-size: 25px;
  margin-left: 10px;
  color: #E07E3C;
}

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

@media (max-width: 600px) {
  .nav-icon img {
    width: 50vw; /* plus grand sur mobile */
  }
}


.hamburger {
  display: none;
}

.navlinks-container a {
  margin: 0 20px;
  font-size: 22px;
  text-decoration: none;
  color: #E07E3C;
  position: relative;
  font-weight: 500;
}
.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 */
}

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





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

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

/* Media Queries pour affiner la taille de la police sur différents appareils */
@media (max-width: 768px) {
  body {
      font-size: 1vw;
  }
  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é */
  }
}

@media (max-width: 480px) {
    body {
        font-size: 2vw;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        display: block; /* Afficher le bouton hamburger sur mobile */
    }
}

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

/* Contenu principal */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Footer */
footer {
    background-color: #FFF;
    color: #E07E3C;
    padding: 5.4vh 0;
    text-align: center;
}

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

/* Cartes */
.card-container {
    display: flex;
    justify-content: center;
    padding: 2%;
}

.card {
    width: 20vw;
    background-color: #E07E3C;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin: 9.5vh 5.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-image {
    width: 100%;
    height: 43vh;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2%;
    text-align: center;
}

.card-content h3 {
    margin: 0;
    color: #FFF;
    font-size: 1.7em;
    font-weight: 500;
}

.card-content .highlight {
    color: #FFF;
    font-weight: 700;
}


/* Flip cards */
.flip-cards {
    text-align: center;
    margin: 20vh 0;
}

.flip-cards::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.flip-cards h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10vh;
}

.flip-card-container {
    display: flex;
    justify-content: center;
    gap: 1.07vw;
}

.flip-card {
    background-color: transparent;
    width: 16vw;
    height: 45vh;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 0.4vh 0.8vh 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
}

.flip-card-front {
    background-color: #FFF;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.13vh;
    box-sizing: border-box;
}

.flip-card-front h3 {
    color: #E07E3C;
    font-size: 1.7em;
    margin-top: 2.13vh;
}

.flip-card-back {
    background-color: #FFF;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.13vh;
    box-sizing: border-box;
    border: 2px solid #E07E3C;
}

.flip-card-back p {
    font-size: 1.1em;
}


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

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

h2 {
  font-size: 1.7em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    color: #333;
}

h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.card, .flip-card {
    opacity: 0;
    transform: translateX(50%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.card.visible, .flip-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Effet de grossissement sur les cartes */
.card:hover {
    transform: scale(1.10);
    transition: transform 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .background-section {
    display: none;
  }

   /* Réorganise les cartes en colonne */
   .card-container {
    flex-direction: column; /* Les cartes s'empilent en colonne */
    justify-content: center;
    align-items: center;
    height: auto; /* Adaptation de la hauteur au contenu */
  }

  .card {
    width: 90%; /* Ajuste pour une meilleure compatibilité mobile */
    margin-bottom: 10px;
    border-radius: 20px;
  }


  .card-content {
    padding: 10px; /* Remplace le pourcentage par un pixel */
    text-align: center;
  }


  .card-image {
    height: 33vh;
  }

  .card-content h3 {
    font-size: 3em; /* Réduit légèrement la taille pour un rendu optimal */
  }


  .navlinks-container a {
    font-size: 18px;
    margin: 10px 0;
  }
  .card-container, .flip-card-container {
    flex-direction: column;
    align-items: center;
  }
  .flip-card {
    width: 70%;
    margin: 10px 0;
  }
  .flip-card-front i {
    font-size: 8em;
  }

  .flip-card-front h3{
    font-size: 3em;
  }

  .flip-card-back p {
    font-size: 2.5em; /* Agrandit le texte dans les flip cards */
  }

  .flip-cards h2 {
    font-size: 5em;
  }

}

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

/* === ACCUEIL — Desktop (>= 950px) : logo/badge réservés + liens rapprochés === */
@media (min-width: 950px) {
  /* Réserve de place à gauche (logo) et à droite (badge .header-tag) */
  nav {
    padding-left: 240px !important;   /* ajuste 220–280px selon la taille du logo */
    padding-right: 120px !important;  /* ajuste 120–200px selon la largeur du badge */
  }

  /* Supprime les marges imposées aux <a> et laisse gap gérer l’espacement */
  nav .navlinks-container > a,
  nav .navlinks-container .dropdown > .dropdown-toggle {
    margin: 0 !important;
  }

  nav .navlinks-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem !important;           /* ~8px d’écart, réduis ou augmente selon rendu */
  }
}

/* === ACCUEIL — zone étroite avant le burger : autoriser le wrap "Préparation Mentale" === */
@media (min-width: 950px) and (max-width: 1400px) {
  nav .navlinks-container .dropdown > .dropdown-toggle {
    display: inline-block;
    max-width: 110px;                 /* force le retour à la ligne plus tôt */
    white-space: normal;
    word-break: keep-all;
    line-height: 1.1;
    text-align: center;
  }
}

  
  
}




























