/* ===============================================
   BLOCK ACCORDÉON
   =============================================== */

.block-accordeon {
  width: 100%;
  margin: 1.5rem 0;
}

.acc-item {
  padding: 10px 0;
  margin-bottom: 12px;
}

/* Bouton question de l'accordéon */
.acc-question {
  width: 100%;
  color: #fff !important;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'TemposRomanMonoBeta', monospace;
  
  /* Corrections pour mobile */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  text-decoration: none;
}

/* Force la couleur noire dans tous les états */
.acc-question:focus,
.acc-question:active,
.acc-question:hover,
.acc-question:visited {
  color: #f4e04d !important;
  outline: none;
  text-decoration: none;
}

/* Icône + ou - */
.acc-icon {
  font-size: 1rem;
  opacity: 0.7;
  color: #000 !important;
  transition: transform 0.3s ease;
}

/* Rotation de l'icône quand ouvert */
.acc-item.open .acc-icon {
  transform: rotate(180deg);
}

/* Contenu de la réponse (fermé par défaut) */
.acc-reponse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: all 0.3s ease;
}

/* Contenu de la réponse (ouvert) */
.acc-item.open .acc-reponse {
  max-height: 500px;
  opacity: 1;
  margin-top: 5px;
  padding: 10px 0;
    color: #fff;
}

/* Séparateur entre les items */
.acc-sep {
  border: 0;
  border-bottom: 1px solid #ddd;
  margin: 10px 0;
}

/* ===============================================
   STYLES ALTERNATIFS
   =============================================== */

/* Style "cartes" avec fond gris */
.block-accordeon.cartes .acc-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Style "lignes" avec bordure en bas */
.block-accordeon.lignes .acc-item {
  border-bottom: 1px solid #eee;
}

/* ===============================================
   RESET COMPLET POUR MOBILE
   =============================================== */

/* Force noir sur tous les états du bouton */
button.acc-question,
button.acc-question:link,
button.acc-question:visited,
button.acc-question:hover,
button.acc-question:active,
button.acc-question:focus {
  color: #fff !important;
  text-decoration: none !important;
  outline: none !important;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
  .acc-question {
    font-size: 1.1rem;
    padding: 10px 0;
  }
  
  .acc-icon {
    font-size: 0.9rem;
  }
  
  .acc-item.open .acc-reponse {
    max-height: 800px; /* Plus d'espace sur mobile pour contenu long */
  }
}

@media (max-width: 480px) {
  .acc-question {
    font-size: 1rem;
  }
  
  .block-accordeon.cartes .acc-item {
    padding: 12px;
  }
}