/* =====================================================
   MOVAWAY — PAGE FAQ (faq.html)
   (header/footer/components/base sont chargés en amont)
   Réutilise :
     - .faq-item / .faq-content (accordéon brand) depuis components.css
     - .txt-souligne depuis base.css
   ===================================================== */

/* ============ HERO : H1 superposé à l'image à son ratio naturel ============
   L'image source (1460×897) contient les visages décoratifs + les "?" bleus
   + l'oval autour de la zone du titre → on l'affiche à son RATIO NATUREL
   (pas de recadrage qui couperait les visages), et on superpose le H1 au
   centre via un overlay flex. Une max-width plafonne la taille sur les
   écrans très larges pour que le hero ne devienne pas absurdement haut. */
.faq-page-hero {
  padding: 0 0 30px;
}
.faq-page-hero-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-page-hero-image img {
  width: 100%;
  height: auto;       /* ratio naturel, aucun crop / déformation */
  display: block;
}
/* Overlay : H1 absolu centré pile au milieu de l'image (dans l'oval blanc
   du design source). Padding latéral pour que le texte wrap entre les
   visages flottants gauche/droite de l'image. */
.faq-page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 25%;
  pointer-events: none;
}
.faq-page-hero-overlay h1 {
  font-size: clamp(1.6rem, 0.8rem + 2.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

/* ============ SOUS-NAV STICKY (ancres vers sections) ============ */
.faq-page-submenu {
  position: sticky;
  top: var(--header-h, 86px);  /* sous le header principal */
  z-index: 50;
  background: #EFF1F4;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-page-submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.faq-page-submenu li { margin: 0; }
.faq-page-submenu a {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.faq-page-submenu a:hover,
.faq-page-submenu a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============ CONTENU FAQ ============ */
.faq-page-content {
  background-color: #EFF1F4;
  background-image: url("https://movaway.fr/wp-content/uploads/2025/11/bg-faq.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  padding: 60px 0 100px;
}
.faq-page-section {
  margin-bottom: 70px;
  /* Compense la sticky submenu lors du scroll-to-anchor */
  scroll-margin-top: calc(var(--header-h, 86px) + 70px);
}
.faq-page-section:last-child { margin-bottom: 0; }

/* Titre de section : H2 centré avec décoration SVG "circle" brand
   (réplique exacte du source : padding+isolation+::after avec txt-circle-light.svg) */
.faq-page-section-title {
  text-align: center;
  margin: 0 0 40px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.txt-circle-light {
  position: relative;
  display: inline-block;
  padding: 5px 30px;
  line-height: 1.1em;
  isolation: isolate;  /* contient le z-index:-1 du ::after */
}
.txt-circle-light::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 140%;
  background: url('https://movaway.fr/wp-content/themes/salient-child/img/txt-circle-light.svg') center/contain no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* Liste FAQ : on utilise le composant .faq-item global mais centré + maxw */
.faq-page-section .faq-list {
  max-width: 920px;
  margin: 0 auto;
}

/* Texte des réponses : link en bleu brand, u/strong stylés */
.faq-page-content .faq-content u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary);
}
.faq-page-content .faq-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-page-content .faq-content a:hover { color: var(--primary-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .faq-page-hero-overlay { padding: 0 22%; }
}
@media (max-width: 900px) {
  .faq-page-hero { padding: 0 0 16px; }
  .faq-page-hero-overlay { padding: 0 20%; }
  .faq-page-submenu a { padding: 12px 16px; font-size: 14px; }
  .faq-page-content { padding: 40px 0 60px; }
  .faq-page-section { margin-bottom: 50px; }
  .faq-page-section-title { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .faq-page-hero-overlay { padding: 0 18%; }
  .faq-page-submenu ul { gap: 0; }
  .faq-page-submenu a { padding: 10px 12px; font-size: 13px; }
  .txt-circle-light { padding: 5px 18px; }
}
