/* =================== 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;
  }
}




/* ===== BANNIÈRE APPLICATIONS ===== */
.banner-applications {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.banner-applications img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}
.banner-overlay {
  position: absolute;
  height: 10rem;
  inset: 0;
  background-color: rgba(0,112,186,0.5);
}
.banner-title {
  position: absolute;
  color: white;
  font-size: 3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== PRÉSENTATION ===== */
.presentation-applications {
  padding: 40px 20px;
}
.contenu-presentation {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.presentation-gauche {
  flex: 1;
}
.presentation-gauche h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 15px;
}
.presentation-gauche h2 .titre-ireis::after {
  content:"";
  display:block;
  width:85px; height:5px;
  background:#F80289;
  margin-top:5px;
}
.presentation-gauche p {
  text-align: justify;
}
.presentation-droite img {
  width: 100%;
  max-width: 500px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;
}

/* ===== AUTOMOBILE ===== */
.section-automobile {
  background: rgba(165,199,21,0.23);
  padding: 40px 20px;
}
.contenu-auto {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.auto-gauche img {
  width: 100%;
  max-width: 500px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;}
.auto-droite {
  flex: 1;
}
.auto-droite h2 {
  color: #729917;
  font-size: 2rem;
  margin-bottom: 15px;
}
.auto-droite p {
  text-align: justify;
}

/* ===== AUTRES TRANSPORTS ===== */
.section-transports {
  padding: 40px 20px;
}
.contenu-transports {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.transports-gauche {
  flex: 1;
}
.transports-gauche h2 {
  color: #F8AB02;
  font-size: 2rem;
  margin-bottom: 15px;
}
.transports-gauche p {
  text-align: justify;
  margin-bottom: 20px;
}
.transports-gauche .bouton-cta {
  background: #F8AB02;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  align-self: flex-start;
  transition: background 0.3s ease;
}
.transports-gauche .bouton-cta:hover {
  background: #d29307;
}
.transports-droite img {
  width: 100%;
  max-width: 500px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;
}

/* ===== RACING / COMPÉTITION ===== */
.section-racing {
  background: rgba(137, 29, 129, 0.08);
  padding: 40px 20px;
}
.contenu-racing {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.racing-gauche img {
  width: 100%;
  max-width: 500px;
  border-top-left-radius: 50px;
  border-bottom-right-radius: 50px;
}
.racing-droite {
  flex: 1;
  position: relative;
  padding-left: 20px;
}
.racing-droite h2 {
  color: #891D81;
  font-size: 2rem;
  margin-bottom: 15px;
}
.texte-racing {
  position: relative;
  padding-left: 15px;
}
.texte-racing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 120%;
  background: #891D81;
}
.texte-racing p {
  text-align: justify;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .contenu-presentation,
  .contenu-auto,
  .contenu-transports,
  .contenu-racing {
    flex-direction: column;
    text-align: center;
  }
  .presentation-droite img,
  .auto-gauche img,
  .transports-droite img,
  .racing-gauche img {
    max-width: none;
    width: 100%;
  }
  .racing-droite {
    padding-left: 0;
  }
}


/* =================== 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;
  }
}
