/* === Carrousel Cayman fluide, sans coupure === */

/* Cache le lien "Skip to content" */
a#skip-to-content {
  display: none;
}

.page-header {
  position: relative;
  overflow: hidden;
  height: 300px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carrousel */
.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Ruban continu */
.carousel .slides {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  animation: slideInfinite 60s linear infinite;
}

.carousel img {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Texte au-dessus */
.header-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.header-overlay .project-name {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  margin: 0.2em 0;
}

.header-overlay .project-tagline {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.2em;
  margin: 0;
  opacity: 0.9;
}

/* Animation continue, double ruban */
@keyframes slideInfinite {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-300vw); } /* la moitié des 6 images = boucle invisible */
}

.header {
    display: flex;
    justify-content: space-between; /* Espace entre les éléments */
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8; /* Optionnel : fond */
}

.tab-selector {
    display: flex;
    gap: 10px; /* Espacement entre les boutons */
}

.language-dropdown {
    position: relative; /* Pour positionner les options correctement */
}

/* Conteneur du sélecteur de langue */
.language-dropdown {
    position: relative;
    display: inline-block;
}

/* Bouton principal */
.language-button {
    background-color: #18986f;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.language-button:hover {
    background-color: #0f815c;
}

/* Icône animée */
.language-button i {
    transition: transform 0.3s ease;
}

/* Liste des options cachée par défaut */
.language-options {
    display: none;
    position: absolute;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 120px;
    top: 40px;
    left: 0;
    z-index: 100;
}

.language-options button {
    background: none;
    border: none;
    width: 100%;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-options button:hover {
    background-color: #f0f0f0;
}

/* Afficher les options quand actif */
.language-dropdown.active .language-options {
    display: block;
}

/* Rotation de l'icône lorsque le menu est ouvert */
.language-dropdown.active .language-button i {
    transform: rotate(180deg);
}


/* Style du bouton menu */
.menu-button {
    background-color: #18986f;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.menu-button:hover {
    background-color: #0f815c;
}

/* Style de l'icône dans le bouton */
.menu-button i {
    transition: transform 0.3s ease;
}

/* Style du menu caché par défaut */
.tab-container {
    display: none;  /* Caché par défaut */
    flex-direction: column;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

/* Style des boutons du menu */
.tab-button {
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    color: #333;
    transition: background 0.3s ease;
}

.tab-button:hover {
    background-color: #f0f0f0;
    color: #18986f;
}

/* Animation d'ouverture du menu */
.tab-container.show {
    display: flex;
}

/* Rotation de l'icône au clic */
.menu-button.active i {
    transform: rotate(90deg);
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.faq-question {
    display: inline-flex;
    align-items: center;  /* Aligne verticalement l'icône et le texte */
    gap: 5px;             /* Ajoute un petit espace entre l'icône et le texte */
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 100%; /* Prend toute la largeur disponible */
    max-width: 100%; /* Empêche de dépasser la largeur maximale du parent */
    height: 60px;         /* Fixe la hauteur de l'encadré */
}

 .faq-answer {
    display: none;
    margin-top: 5px;
}

 .faq-question:hover {
    background-color: #18986f;
    color: white;
}
 .faq-question:active {
    background-color: #18986f;
    color: white;
    border-bottom: 2px solid white;
}

 .faq-answer {
    display: none;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
  .faq-answer.open {
    display: block;
    opacity: 1;
}
