/* RESET GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #E2E9C0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* ============================
   CONTENU PRINCIPAL
============================ */
main.contenu {
  width: 100vw;
  padding-top: 48s0px; /* hauteur totale du bandeau */
  text-align: center;
  position: relative;
  z-index: 3000;
}
/* ============================
   FORMULAIRE GOOGLE
============================ */

.formulaire-wrapper {
  position: relative;
  height: auto !important;
  overflow: visible !important;
  max-width: 100%;
}

.formulaire-iframe {
  height: 3100px !important; /* assez grand pour afficher tout le formulaire */
  width: 100%;
  border: none;
  overflow: visible !important;
  display: block;
}


/* ============================
   FORMULAIRE FORMSPREE
============================ */

.bloc-formulaire {
  max-width: 600px;
  margin: 3em auto;
  padding: 2em;
  background-color: #f2f2f2; /* Change la couleur ici */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.bloc-formulaire h2 {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.8em;
  color: #333;
}

.bloc-formulaire form {
  display: flex;
  flex-direction: column;
}

.bloc-formulaire label {
  margin-top: 1em;
  font-weight: bold;
}

.bloc-formulaire input,
.bloc-formulaire textarea {
  margin-top: 0.5em;
  padding: 0.8em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

.bloc-formulaire button {
  margin-top: 1.5em;
  padding: 0.8em;
  background-color: black; /* couleur du bouton envoyer */
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bloc-formulaire button:hover {
  background-color: #5e452d;
}




/* ============================
   BANDEAU PRINCIPAL (FIXE)
============================ */
.bandeau {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  height: 130px;
  padding: 0 2em;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 4000;
  transition: transform 0.3s ease; /* transition pour un déplacement fluide */
  will-change: transform; /* hint au navigateur pour optimiser */
}

/* LOGO */
.logo-container {
  width: auto;
  max-width: 120px;
  margin: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
   padding-top: 10px;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  max-width: 110px;
}

/* ONGLET GROUPES */
.onglets {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
}

.onglets.gauche {
  justify-content: flex-end;
  margin-right: 20px;
  margin-top: 40px; /* ou 30px selon le besoin visuel */
}

.onglets.droite {
  justify-content: flex-start;
  margin-left: 20px;
  margin-top: 40px; /* ou 30px selon le besoin visuel */
}

/* ONGLET BOUTONS */
.onglet {
  width: auto;
  max-width: 90%;
  min-width: 110px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2em 1em;
  font-size: 0.85em;
  background-color: #f0f0f0;
  border-radius: 10px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s;
  white-space: normal;
  line-height: 1.2;
}

.onglet:hover,
.onglet.actif {
  background-color: black;
  color: white;
}

.onglet.ligne-double {
  white-space: normal;
  line-height: 1.1;
}

/* ============================
   BANDEAU SECONDAIRE
============================ */
.bandeau-secondaire {
  background-image: url('images/fond2.gif');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: black;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;
}

/* ============================
   TEXTE APRES CARROUSEL
============================ */
.texte-apres-carrousel {
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.6;  /* interligne pour la lisibilité */
  max-width: 700px; /* limite la largeur du bloc texte */
  min-height: 1000px;      /* garde une hauteur même sans contenu */
  margin: 2em auto; /* centre horizontalement avec marge vertical */
  padding: 20px;
  background-color: #fffbe6; /* fond clair pour tout le bloc */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 50px; /* laisse assez de place au carrousel sticky */
}

.texte-apres-carrousel p {
  background-color: #f9f0c1;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 1em;
}

/* ============================
   TEXTE CAFE VIETNAM
============================ */
.texte-cafe-vietnam {
  color: #1a1a1a; /* couleur du texte, modifie selon ton goût */
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.6;  /* interligne pour la lisibilité */
  max-width: 700px; /* limite la largeur du bloc texte */
  min-height: 1000px;      /* garde une hauteur même sans contenu */
  margin: 2em auto; /* centre horizontalement avec marge vertical */
  padding: 20px;
  background-color: #E2E9C0; /* fond clair pour tout le bloc */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);

}

.texte-cafe-vietnam p {
  color: white;
  background-color: #7AA95C;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 1em;
}

/* ============================
   CARROUSEL
============================ */

.carrousel-sticky {
  position: relative;
  top: auto; /* hauteur bandeau fixe */
  z-index: auto;
}

.carrousel-css {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin: auto;
  padding: 1em 0;
}

.carrousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 100px;
  padding: 0 2em;
  scrollbar-width: none; /* Firefox */
}

.carrousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carrousel-track img {
  width: 170px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}


/* ============================
   BOUTONS DU CARROUSEL
============================ */

.carrousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.5em;
  font-size: 2em;
  cursor: pointer;
  display: none;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.carrousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carrousel-css:hover .carrousel-btn {
  display: block;
}

/.carrousel-btn.gauche {
  left: 10px;
}

.carrousel-btn.droite {
  right: 10px;
}



/* ============================
   LANGUE SWITCHER
============================ */
#languageSwitcher {
  position: absolute;
  top: 10px;
  right: 1rem;
  padding: 4px 8px;          /* un peu plus d’espace horizontal */
  font-size: 0.85rem;        /* un peu plus petit */
  border: 1px solid #ccc;    /* bordure légère */
  border-radius: 5px;        /* arrondi des coins */
  background-color: white;   /* fond blanc */
  color: #333;               /* texte gris foncé */
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* petite ombre douce */
  transition: all 0.3s ease; /* transition fluide au focus/survol */
}

#languageSwitcher:hover, #languageSwitcher:focus {
  border-color: #007BFF;    /* bleu quand survolé/focus */
  box-shadow: 0 2px 8px rgba(0,123,255,0.3);
  outline: none;
}





/* ============================
   RESPONSIVE < 768px
============================ */
@media screen and (max-width: 768px) {
  .bandeau {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    height: 100px;
    padding: 0.5em 1em; /* ↓ réduit l’espace haut/bas */
  }


.logo {
    max-width: 90px; /* réduit la largeur max du logo sur petits écrans */
    height: auto;    /* conserve les proportions */
  }



  .logo-container {
    order: 1;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
  }

  .onglets.gauche,
  .onglets.droite {
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    margin-top: 0; /* <-- ajoute ceci pour éviter qu’ils descendent */
  }

  .onglets.gauche {
    order: 0;
    margin-right: 5px;
  }

  .onglets.droite {
    order: 2;
    margin-left: 5px;
  }

  
  .onglet {
    min-width: 80px;   /* bouton plus petit en largeur */
    height: 35px;      /* bouton moins haut */
    font-size: 0.75em; /* texte un peu plus petit */
    padding: 0.15em 0.5em; /* moins d’espace intérieur */
  }

  main.contenu {
    padding-top: 0px; /* ajuste selon hauteur réduite */
  }


.formulaire-contact > div {
    height: auto !important;        /* hauteur auto pour s’adapter */
    overflow: visible !important;   /* laisse défiler */
    max-width: 100%;
  }

  .formulaire-contact iframe {
    height: 3600px !important;      /* hauteur fixe suffisante */
    width: 100%;
    overflow: visible !important;
    display: block;
  }


  .carrousel-css img {
    width: 40vw;
    height: auto;
  }

  .carrousel-css .carrousel-track {
    animation-duration: 20s;
  }

#languageSwitcher {
    position: absolute;
    top: 6rem;
    right: 1rem;
    font-size: 1rem;
    padding: 5px;
  }


}
