/* ===== FAQ / Questions – accordéon moderne ===== */

.page--question{
  padding: clamp(1rem, 4vw, 2.5rem);
}

/* Carte globale */
.question__container{
  max-width: 1000px;
  margin: 0 auto 2rem;

  border: 1px solid rgba(0,0,0,0.08);
  border-left: 4px solid rgba(217,55,49,0.65); /* accent marque */
  border-radius: 18px;

  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;

  padding-top: 0; /* on gère le spacing au niveau item */
}

/* Un item Q/R */
.question__item{
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.question__item:first-child{ border-top: 0; }

/* Question (cliquable) */
.label__question{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;

  cursor: pointer;
  color: rgba(0,0,0,0.90);
  text-align: left;

  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.35;

  padding-right: 0; /* plus nécessaire : chevron plus en absolute */
}

.label__question:hover{
  color: rgba(0,0,0,1);
}

.label__question[aria-expanded="true"]{
  color: var(--logoRed);
}

/* Chevron */
.label__question .fa-chevron-down{
  position: static;
  transform: translateY(.15rem);
  color: var(--logoRed);
  transition: transform .25s ease;
  flex: 0 0 auto;
  caret-color: transparent;
}

.label__question[aria-expanded="true"] .fa-chevron-down{
  transform: translateY(.15rem) rotate(180deg);
}

/* Conteneur de réponse — animé en hauteur via JS */
.answer__container{
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  will-change: height;
  transition: height .28s ease;
}

.answer__inner{
  padding-top: .85rem;
}

.label__answer{
  display: block;
  margin: 0;

  color: rgba(0,0,0,0.72);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  text-align: left;
}

/* Focus clavier */
.label__question:focus-visible{
  outline: 2px solid rgba(217,55,49,0.95);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Réduire les animations */
@media (prefers-reduced-motion: reduce){
  .label__question .fa-chevron-down{ transition: none; }
  .answer__container{ transition: none; }
}

/* < 768px */
@media (max-width: 768px){
  .question__item{ padding: 1rem 1rem; }
  .label__question{ gap: .75rem; }
  .answer__inner{ padding-top: .7rem; }
}

/* 769px - 1199px */
@media (min-width: 769px) and (max-width: 1199px){
  .question__item{ padding: 1.15rem 1.35rem; }
}

/* >= 1200px */
@media (min-width: 1200px){
  .question__item{ padding: 1.25rem 1.5rem; }
}

/* Utilitaire (à déplacer dans pages.css si tu le réutilises ailleurs) */
.visually-hidden{
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
