/* ===== Page FAQ ===== */

/* Même fond que l’index */
body {
  background: #f2eeeb;
  margin: 0;
  padding: 0;
}

/* Header flottant au-dessus du bandeau */
.site-header,
.site-header.is-sticky,
.site-header.sticky,
.site-header.fixed,
.site-header--fixed,
.site-header[data-sticky],
.site-header[data-fixed] {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  background: none !important;
  z-index: 50;
}

/* Ligne sous le menu (on force noir sur cette page) */
.site-header::after {
  border-bottom-color: #000 !important;
}

/* Variables alimentées par ton JS */
:root {
  --header-height: 80px;       /* fallback */
  --header-line-left: 0px;     /* fallback */
  --header-line-width: 100%;   /* fallback */
}

/* ===== Bandeau hero (comme tes pages) ===== */
.hyper-hero {
  position: relative;
  width: 100%;
  height: calc(var(--header-height) * 1.5);
  background-image: url("images/apropos_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

.hyper-hero-inner { position: relative; width: 100%; height: 100%; }
.hyper-hero-rail  { position: relative; height: 100%; }

.hyper-hero-title {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;

  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.5px;

  color: #ffffff;
  text-align: center;
}

/* ===== Menu en noir sur la page FAQ ===== */
.page-faq .site-header .brand,
.page-faq .site-header .site-nav a,
.page-faq .site-header .btn-login,
.page-faq .site-header .btn-login-standalone {
  color: #000 !important;
}

/* Icône burger en noir */
.page-faq .site-header .nav-toggle .bar {
  background-color: #000 !important;
}

/* ===== Connexion inversé (fond noir / texte blanc) ===== */
.page-faq .site-header #primary-nav.site-nav a.btn-login,
.page-faq .site-header a.btn-login-standalone{
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.page-faq .site-header .nav-wrap a.btn-login::before,
.page-faq .site-header .nav-wrap a.btn-login::after{
  content: none !important;
  display: none !important;
  background: transparent !important;
}

.page-faq .site-header .nav-wrap a.btn-login:hover{
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ===== Bandeau pleine largeur sous le menu ===== */
.faq-band{
  width: 100%;
  background: #ebadff;
}

/* Rail aligné exactement sur la ligne noire du menu */
.faq-rail{
  width: var(--header-line-width);
  margin-left: var(--header-line-left);
  margin-right: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.faq-band-title{
  margin: 0;
  padding: 93px 0;  /* 108px 0; */              /* hauteur doublée */
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
  color: #000;
}

/* ===== Section 2 colonnes (toujours largeur du menu) ===== */
.faq-section{
  padding: 56px 0 64px;
}

.faq-grid{
  display: grid;
  grid-template-columns: 60% 40%;
  column-gap: 26px;
  align-items: start;
}

.faq-left{
  color: #000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.faq-item{
  border-bottom: 1px solid #000; /* plus fin */
  padding: 18px 0;               /* + ~30% d’espace vertical */
}

/* Bouton question : texte gras + chevron à droite */
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  cursor: pointer;

  color: #000;
  text-align: left;
  font-weight: 540;
  font-size: 20px;
  line-height: 1.2;
}

/* Chevron */
.faq-chevron{
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 14px;
  border-right: 1px solid #000;   /* trait fin */
  border-bottom: 1px solid #000;  /* trait fin */
  transform: rotate(45deg);
  transition: transform .18s ease;
}

/* Quand ouvert : chevron vers le haut */
.faq-q[aria-expanded="true"] .faq-chevron{
  transform: rotate(-135deg);
}

.faq-a{
  margin-top: 30px;
  margin-bottom: 30px;  
  color: #000;
  font-weight: 400;
  font-size: 18px;
}

.faq-a p{
  margin: 0 0 10px 0;
}

/* Colonne droite : image prend tout l'espace dispo */
.faq-right{
  width: 100%;
}

.faq-image{
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1000px){
  .faq-grid{
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .faq-q{ font-size: 19px; }
  .faq-a{ font-size: 17px; }
  .faq-band-title{ padding: 18px 0; }
}

@media (max-width: 700px){
  .faq-band-title{ font-size: 28px; }
}

/* ===== Bloc contact sous la FAQ ===== */
.faq-contact{
  margin-top: 48px;          /* espace après la dernière question */
  text-align: center;
}

.faq-contact-text{
  margin: 0 0 22px 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 22px;
  color: #000;
}

/* Sur la page FAQ, on supprime l’espace du hero */
.page-faq .hyper-hero {
  height: var(--header-height);
}

/* ===== Sous-menu "À propos" : même apparence que apropos.css ===== */
.page-faq .nav-item.has-submenu .submenu{
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.page-faq .nav-item.has-submenu .submenu a{
  padding-left: 6px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  display: block !important; /* assure que le padding augmente bien la hauteur */
}

.faq-grid {
  display: flex;
  justify-content: center;
}

.faq-left {
  width: 100%;
  max-width: 800px; /* ajuste selon ton design */
}

@media (max-width: 1000px){
  .faq-grid{
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .faq-q{ font-size: 19px; }
  .faq-a{ font-size: 17px; }

  .faq-band{
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .faq-rail{
    width: 100%;
    margin-left: 0;
  }

  .faq-band-title{
    padding: 0 24px;
  }
}

@media (max-width: 1000px){

  .faq-section{
    padding: 48px 24px 56px;
    box-sizing: border-box;
  }

  .faq-rail{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

}