/* =================== RÉINITIALISATION =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================== CORPS DU DOCUMENT =================== */
body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  min-width: 320px;
}

/* Justification des paragraphes */
p {
  text-align: left;
}

/* =================== ENTÊTE =================== */
.header-principal {
  position: relative; /* pour ancrer le menu absolute juste dessous */
}

/* Barre supérieure : Logo et zone de recherche */
.barre-superieure {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px 20px;
  background: #fff;
}
.logo img {
  height: 80px;
  width: auto;
}

/* Recherche desktop */
.boite-recherche-desktop {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 10px;
}

.boite-recherche-desktop input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 150px;
}

.boite-recherche-desktop .icone-recherche {
  font-size: 1.1rem;
  margin-left: 5px;
  cursor: pointer;
}

/* Burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* Menu principal (desktop) */
.menu-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  position: relative;
  z-index: 1000;
}

/* Liste des liens de navigation */
.menu-principal .liste-liens {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: space-evenly;
  gap: 20px;
  position: relative;
  margin: 0;
  padding: 0;
}

.liste-liens li {
  position: relative;
  margin-bottom: 15px;
}

/* Style général des liens */
.liste-liens li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

/* Pseudo-élément pour la barre sous le lien */
/* Par défaut, la barre n'est pas affichée (largeur 0) */
.liste-liens li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  transition: width 0.3s ease;
}

/* Lors du survol sur un lien NON actif, la barre s'agrandit */
.liste-liens li:not(.lien-actif) a:hover::after {
  width: 100%;
}

/* Pour le lien actif, la barre est toujours à 100% */
.liste-liens li.lien-actif a::after {
  width: 100%;
}

/* =================== COULEURS DES BARRES =================== */
/* Barre jaune pour le lien actif du premier onglet */
.liste-liens li.jaune a::after {
  background: #f8ab02;
}
.liste-liens li.jaune a:hover::after {
  background: #f8ab02;
}

/* Barre bleue pour le deuxième onglet */
.liste-liens li.bleu a::after {
  background: #0098de;
}
.liste-liens li.bleu a:hover::after {
  background: #0098de;
}

/* Barre violette pour le troisième onglet */
.liste-liens li.violet a::after {
  background: #891d81;
}
.liste-liens li.violet a:hover::after {
  background: #891d81;
}

/* Barre verte pour le quatrième onglet */
.liste-liens li.vert a::after {
  background: #a5c715;
}
.liste-liens li.vert a:hover::after {
  background: #a5c715;
}

/* Barre rouge pour le cinquième onglet */
.liste-liens li.rouge a::after {
  background: #ff0000;
}
.liste-liens li.rouge a:hover::after {
  background: #ff0000;
}

/* Barre turquoise pour le sixième onglet */
.liste-liens li.turquoise a::after {
  background: #40e0d0;
}
.liste-liens li.turquoise a:hover::after {
  background: #40e0d0;
}

/* Contenu mobile caché par défaut */
.mobile-extra {
  display: none;
}

/* Le bouton burger (caché sur desktop) */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 20px;
  z-index: 10;
}

.burger-menu span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* ========== MOBILE (<768px) ========== */
@media (max-width: 768px) {
  /* Barre supérieure : cacher la recherche desktop, afficher le burger */
  .boite-recherche-desktop {
    display: none;
  }
  .burger-menu {
    display: flex;
  }

  /* Menu principal déplacé absolute juste sous la barre */
  .menu-principal {
    position: absolute;
    top: 100%; /* juste sous .barre-superieure */
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .menu-principal .liste-liens {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    gap: 15px;
  }

  /* Afficher extra mobile (recherche + langue) dans le menu */
  .mobile-extra {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 20px 20px;
    gap: 15px;
  }
  .mobile-extra .boite-recherche-mobile {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    width: 25%;
  }
  .mobile-extra .boite-recherche-mobile input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Quand on ouvre : agrandit le menu */
  .menu-principal.ouvert {
    max-height: 500px; /* assez pour tout faire apparaître */
  }
  .menu-principal.ouvert .mobile-extra {
    display: flex;
  }

  /* Animation croix du burger */
  .burger-menu.ouvert span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-menu.ouvert span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.ouvert span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* =================== SÉLECTEUR DE LANGUE =================== */
.selecteur-langue {
  display: flex;
  align-items: center;
  position: relative;
  gap: 5px;
  cursor: pointer;
}

.trait-langue {
  width: 1px;
  height: 20px;
  background: #333;
}

.texte-langue {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.fleche-langue {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
  transition: transform 0.3s;
}

/* Rotation de la flèche quand le selecteur est ouvert */
.selecteur-langue.ouvert .fleche-langue {
  transform: rotate(180deg);
}

/* Menu déroulant de langue, caché par défaut */
.menu-langue {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  list-style: none;
  min-width: 80px;
  border: 1px solid #ccc;
  margin-top: 5px;
  display: none;
  z-index: 99;
}

.menu-langue li {
  padding: 10px;
  text-align: center;
  transition: background 0.2s;
}

.menu-langue li:hover {
  background: #f8ab02;
  color: #fff;
}

/* Sélecteur de langue - desktop */
.selecteur-langue-desktop {
  display: flex;
  gap: 5px;
  margin: 0 20px;
  align-items: center;
}
/* Cacher le dropdown par défaut */
.selecteur-langue-desktop .menu-langue {
  display: none;
}

/* Cacher la version desktop en mobile */
@media (max-width: 768px) {
  .selecteur-langue-desktop {
    display: none;
  }
}

/* Version mobile à l’intérieur du burger */
.selecteur-langue-mobile {
  display: none;
  flex-direction: row;
  gap: 10px;
}
.selecteur-langue-mobile .menu-langue {
  display: none;
  position: static; /* hérite du menu principal */
  border: 1px solid #ccc;
}
@media (max-width: 768px) {
  .selecteur-langue-mobile {
    display: flex;
    align-items: center;
  }
}

/* CONTACTS */

.CONTACTS {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.contact-form-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  border-color: #007BFF;
  outline: none;
}

button {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background-color: #007BFF;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}


/* =================== PIED DE PAGE =================== */
.footer {
  position: relative;
  width: 100%;
  height: 240px; /* Fixe la hauteur pour éviter le débordement */
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Image de fond responsive */
.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Filtre violet semi-transparent */
.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(137, 29, 129, 0.5);
  z-index: 1;
}

/* Contenu principal */
.footer-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  height: 100%;
  box-sizing: border-box;
}

.footer-left {
  display: flex;
  flex-direction: column;
  width: 25%;
  max-width: 300px;
}

.footer-logo {
  width: 121px;
  height: auto;
  margin-bottom: 20px;
}

.footer-infos {
  color: white;
  margin-top: auto;
  margin-bottom: auto;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  max-width: 300px;
  height: 100%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.bold-link {
  font-weight: bold;
}

.cta-link {
  background-color: #0098de;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  text-decoration: none;
}

/* Mentions légales */
.footer-bottom {
  position: absolute; /* place la ligne en bas du footer */
  bottom: 10px; /* à 10px du bas */
  left: 0; /* coller à gauche */
  width: 100%; /* occuper toute la largeur */
  margin: 0; /* supprimer tout décalage */
  text-align: center; /* centrer le texte */
  z-index: 2; /* au-dessus du filtre */
  color: white;
}

.footer-bottom a {
  color: white;
  text-decoration: none; /* plus de soulignement */
  cursor: pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .footer {
    height: auto;
    padding: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    padding: 40px 20px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .cta-link {
    margin-bottom: 20px;
  }

  .footer-bottom {
    margin: 20px 0;
  }
}
