/* ============================================================
   12-faq — « FAQ » · Figma node 7206:7692 (v2, 1122×590 @1440)
   Accordéon <details>/<summary> natif, sans JS.
   Héberge aussi l'eyebrow de zone « LE FUTUR COMMENCE MAINTENANT »
   (Figma 7206:7688, parenté au frame Footer v2 mais placé au-dessus
   de la FAQ dans la maquette).
   ============================================================ */

.faq {
  font-family: var(--font-sans);
  background: var(--color-white);
  padding-inline: clamp(20px, 8.33vw, 120px);
}

.faq__container {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  /* retours 13/08 : les questions collaient au bloc de gauche (16px de
     gouttière résiduelle) — la colonne de droite est rendue élastique et
     une vraie gouttière de 88px est posée. */
  grid-template-columns: minmax(280px, 415px) minmax(0, 1fr);
  column-gap: 88px;
  align-items: start;
  /* hors tokens: mesuré Figma — le nœud FAQ démarre à x=151 (120 + 31)
     et finit à x=1273 (1320 − 47) */
  padding: 0 64px; /* retour 13/08 : padding latéral augmenté */
}

/* --- Colonne gauche : titre + pills + carte photo --------------- */

/* Badge « QUESTIONS FRÉQUENTES » : pill blanche 218×34 + pill
   dégradée 210×28 + texte en dégradé coral→violet */
.faq__eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 3px 4px;
  background: var(--color-white);
  border: 1px solid rgba(229, 231, 233, 0.5); /* --color-border @50% */
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq__eyebrow-inner {
  display: inline-flex;
  align-items: center;
  padding: 2px 24px; /* retour 13/08 : + de padding latéral (7px avant) */
  border-radius: inherit;
  background: linear-gradient(90deg, #fff1ed, #f0efff); /* hors tokens: mesuré Figma */
}

.faq__eyebrow-text {
  font-size: var(--text-eyebrow);
  line-height: var(--text-eyebrow--line-height);
  font-weight: var(--text-eyebrow--font-weight);
  letter-spacing: var(--text-eyebrow--letter-spacing);
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, var(--color-accent-coral), var(--color-primary-vivid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq__title {
  margin: 19px 0 0;
  font-size: clamp(32px, 4.5vw, var(--text-h2));
  line-height: 1.04; /* 56/54 */
  font-weight: var(--text-h2--font-weight);
  letter-spacing: var(--text-h2--letter-spacing);
  color: #2d2d2d; /* hors tokens: mesuré Figma */
}

/* Pill « → D’autres questions? Contactez-nous. » */
.faq__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 21px 0 0;
  min-height: 34px;
  padding: 6px 16px 6px 10px;
  background: var(--color-white);
  border: 1px solid rgba(229, 231, 233, 0.5); /* --color-border @50% */
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  font-weight: var(--text-body-sm--font-weight);
  color: rgba(38, 41, 46, 0.7); /* --color-ink @70% */
}

.faq__more-link {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.faq__more-link:hover {
  text-decoration: underline;
}

/* Carte photo + bouton WhatsApp en overlay */
.faq__media {
  position: relative;
  margin: 68px 0 0;
  width: min(415px, 100%);
  aspect-ratio: 415 / 291;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* miroir horizontal appliqué dans Figma */
}

/* v2 : overlay dégradé coral→violet @20% ajouté sur la photo dans la
   maquette (Figma 7206:7707) — recréé en CSS, sous le bouton WhatsApp */
.faq__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 119, 74, 0.2), rgba(103, 94, 255, 0.2)); /* --color-accent-coral / --color-primary-vivid @20% */
  pointer-events: none;
}

.faq__whatsapp {
  position: absolute;
  z-index: 2; /* au-dessus de l'overlay dégradé v2 */
  left: 20.5%;  /* 85/415 mesuré Figma */
  top: 43.3%;   /* 126/291 mesuré Figma */
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content; /* retour 13/08 : le libellé tient sur une ligne */
  max-width: calc(100% - 40px);
  height: 48px;
  padding: 5px 14px 5px 5px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.faq__whatsapp-badge {
  flex: none;
}

.faq__whatsapp-label {
  white-space: nowrap; /* retour 13/08 : pas de retour à la ligne */
  font-size: var(--text-small);
  line-height: var(--text-small--line-height);
  font-weight: var(--text-small--font-weight);
  color: var(--color-ink);
}

.faq__whatsapp-arrow {
  flex: none;
  margin-left: auto;
}

/* --- Colonne droite : accordéon ---------------------------------- */

.faq__list {
  margin-top: 24px; /* hors tokens: 1re question à y+66 du haut de section (Figma) */
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 41px 0 20px;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question-text {
  font-size: var(--text-h6);
  line-height: var(--text-h6--line-height);
  font-weight: var(--text-h6--font-weight);
  letter-spacing: var(--text-h6--letter-spacing);
  color: var(--color-ink);
}

.faq__toggle {
  flex: none;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__toggle {
  transform: rotate(45deg);
}

/* Réponse dépliée par le <details> natif — retours 13/08 : elle existait
   mais était vide, le « + » semblait donc ne rien faire. */
.faq__answer {
  padding: 0 56px 28px 0;
  font-size: var(--text-body);
  line-height: 26px; /* confort de lecture sur 3-4 lignes */
  color: rgba(38, 41, 46, 0.7); /* --color-ink @70% */
}

.faq__answer p {
  margin: 0;
}

.faq__answer strong { font-weight: 600; color: var(--color-ink); }
.faq__answer em     { font-style: italic; }

/* la question ouverte se distingue du reste de la liste */
.faq__item[open] .faq__question-text { color: var(--color-ink-strong, var(--color-ink)); }

/* --- Responsive (adaptation proposée, maquette desktop-only) ----- */

@media (max-width: 1024px) {

  .faq__container {
    padding: 0;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
    column-gap: 48px;
  }
}

@media (max-width: 768px) {

  .faq__container {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .faq__media {
    margin-top: 40px;
  }

  .faq__list {
    margin-top: 0;
  }

  .faq__item:first-child .faq__question {
    padding-top: 0;
  }

  .faq__question {
    padding-top: 24px;
  }
}
