/* Dans le fichier /modules/nice_faq/views/css/front.css */

.nicefaq-container {
  margin: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Barre de recherche --- */
#faq_search_bar {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#faq_search_bar:focus {
    outline: none;
    border-color: #2fb5d2;
    box-shadow: 0 0 5px rgba(47, 181, 210, 0.5);
}


.nicefaq-group-title {
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.8em;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #2fb5d2; /* Couleur accentuée */
  text-align: center;
}

.faq-question {
  border: none; /* On enlève la bordure de chaque question */
  border-bottom: 1px solid #e9e9e9; /* On sépare par une ligne fine */
  margin-bottom: 0;
}

.question-title {
  padding: 18px 45px 18px 15px; /* Plus d'espace, et de la place pour l'icône */
  margin: 0;
  cursor: pointer;
  background-color: #fff;
  position: relative;
  font-size: 1.2em;
  font-weight: 500;
  color: #2c3e50;
  transition: background-color 0.3s ease;
}

.question-title:hover {
  background-color: #f8f8f8;
}

.question-title::after {
  content: '\\276F'; /* Icône flèche (chevron) */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 1em;
  font-weight: bold;
  color: #2fb5d2;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



.faq-response {
  padding: 0 15px; /* On enlève le padding haut/bas pour l'animation */
  background-color: #fff!important;
  color: #555;
  line-height: 1.6;
  max-height: 0; /* Base pour l'animation */
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease; /* Transition douce */
}

.faq-question.opened .faq-response {
    max-height: 1000px; /* Valeur assez grande pour ne jamais limiter */
    padding: 20px 15px;
    transition: max-height 1s ease-in-out, padding 0.5s ease;
}

.faq-question .no-result {
    display: none;
    padding: 20px;
    text-align: center;
    color: #888;
}



.question-title::after {
  content: '+'; /* On utilise le caractère '+' qui est universel */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6em;   /* On peut ajuster la taille */
  font-weight: 300; /* Un poids plus fin pour un look moderne */
  color: #2fb5d2;
  transition: transform 0.2s ease-in-out;
}

.faq-question.opened .question-title::after {
  content: '−'; /* On utilise le caractère 'moins' (tiret UTF-8) */
  transform: translateY(-50%) rotate(180deg); /* Ajoute une petite animation de rotation */
}