/* ============================================================
   SECTIONS — Toutes les villas (frame Figma 1078:198, 1440×4738)
   ============================================================ */

/* ================= HERO ================= */
.villas-hero {
  position: relative;
  height: 550px;
  background: var(--c-ink);
  overflow: hidden;
}
.villas-hero > picture, .villas-hero > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.villas-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.villas-hero .vh-inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-top: 220px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.villas-hero .vh-txt {
  max-width: 878px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.villas-hero .vh-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.villas-hero h1 {
  font-size: 56px;
  line-height: 70px;
  font-weight: 700;
  color: var(--c-white);
}
.villas-hero .vh-sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--c-white);
}
.villas-hero .vh-actions { display: flex; align-items: center; gap: 24px; }
.villas-hero .vh-actions .btn { height: 46px; }

/* ================= SÉLECTION (filtres + cartes) ================= */
.selection { max-width: var(--w-container); margin: 88px auto 0; }
.selection .section-head {
  align-items: center;
  text-align: center;
  max-width: 888px;
  margin-inline: auto;
}
.selection .section-sub { max-width: 830px; margin-inline: auto; }   /* stretch du parent : sans marge auto, la boîte reste collée à gauche */
/* La barre de filtres (« Type de propriété », « Localisation », « Capacité »,
   « Rechercher ») a été retirée le 28.08.2026 : la maquette la dessine, mais
   aucun script ne la pilotait — les quatre boutons ne faisaient rien. Avec cinq
   biens tenant sur un écran, le filtrage n'apportait rien ; décision du client.
   Ses styles vivaient ici (`.selection-toolbar`, `.st-filters`, `.filter-pill`,
   `.filter-search`) et ont été retirés avec elle. À rétablir depuis l'historique
   le jour où le catalogue s'étoffera. */
/* Un seul conteneur qui s'enroule, au lieu des deux `.sel-row` figees : le
   filtre par ville sortait sinon une carte sur la premiere rangee et une sur la
   seconde, laissant des lignes trouees. Les cartes se replacent d'elles-memes et
   la ligne incomplete se centre — c'est ce que demandait le client. */
.selection-grid {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 24px;
}
/* Une carte masquee par le filtre ne doit plus occuper de place. */
.selection-grid .villa-card[hidden] { display: none; }
/* Cartes d'une même rangée à hauteur égale, bouton calé en bas */
.selection-grid .villa-card > .vc-in { height: 100%; }
.selection-grid .villa-card .vc-body { flex: 1; justify-content: space-between; }

/* ================= CTA FORMULAIRE ================= */
.cta-form {
  position: relative;
  margin-top: 104px;
  padding: 60px var(--pad-page);
  overflow: hidden;
}
.cta-form > picture, .cta-form > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-form::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.cta-form-in {
  position: relative;
  z-index: 2;
  max-width: var(--w-container);
  margin-inline: auto;
  display: flex;
  gap: 48px;
}
.cta-copy {
  width: 494px;
  flex: none;
  display: flex;
  flex-direction: column;
  /* Figma pose la pastille 66 px sous le texte ; `space-between` la plaquait
     au bas d'une colonne dont la hauteur vient de la carte formulaire. */
  justify-content: flex-start;
  gap: 66px;
}
.cta-copy .cc-txt { display: flex; flex-direction: column; gap: 66px; }
.cta-copy h2 {
  font-size: 62px;
  line-height: 77.5px;
  color: var(--c-white);
}
.cta-copy .cc-sub {
  font-size: 18px;
  line-height: 27px;
  color: var(--c-white);
  margin-top: 6px;   /* 6 + le gap 10 de .section-head = les 16 px de Figma */
}
.cta-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--r-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cta-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 28.8px;
  color: var(--c-primary-dark);
  min-width: 0;   /* l’e-mail réel déborde de la pastille : on le laisse se compresser */
}
.cta-contact a:hover { color: var(--c-primary); }
.cta-contact img { width: 22px; height: 18px; }
.cta-card {
  flex: 1;
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 40px;
}
.cta-card h2 {
  font-size: 32px;
  line-height: 38.4px;
  font-weight: 500;
  margin-bottom: 32px;
}

/* ================= GALERIE ================= */
.gallery { max-width: var(--w-container); margin: 104px auto 0; }
.gallery .section-head { align-items: center; text-align: center; }
.gallery-row { margin-top: 48px; display: flex; gap: 24px; }
.gallery-item {
  position: relative;
  flex: 1;
  height: 422px;
  border-radius: var(--r-img);
  overflow: hidden;
}
.gallery-item picture, .gallery-item picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-gallery);
  z-index: 1;
}
/* Le pictogramme « lecture » a été retiré de la galerie : les visuels sont des
   photos, pas des vidéos, et le bouton ne menait nulle part. Le dégradé
   `.gallery-item::after` et la légende restent, eux, inchangés. */
.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 15px;
  text-align: center;
  font-family: var(--f-head);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-white);
}
.gallery-social {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.social-card {
  width: 253px;
  padding: 16px 44px;
  background: #FEFEFE;
  border: 0.88px solid rgba(84, 58, 48, 0.08);
  border-radius: var(--r-box);
  box-shadow: var(--sh-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.social-card img { width: 41px; height: 41px; }
.social-card span {
  font-size: 18px;
  line-height: 22.7px;
  font-weight: 300;
  color: var(--c-handle);
}

/* ================= FAQ ================= */
.faq { max-width: var(--w-container); margin: 104px auto; display: flex; gap: 48px; }
.faq-side {
  width: 421px;
  flex: none;
  display: flex;
  flex-direction: column;
  /* Le gap ne doit jamais dépasser l'espace libre : au-delà, il l'emporte sur
     `space-between` et pousse l'encart d'aide HORS de la section. */
  justify-content: space-between;
  gap: 24px;
}
.faq-side .fs-intro {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  /* .section-head applique déjà gap:10px → 6px pour un écart total de 16px (Figma) */
  margin-top: 6px;
}
.faq-help {
  background: var(--t-primary-05);
  border-radius: var(--r-box);
  padding: 24px;
}
.faq-help h3 {
  font-size: 18px;
  line-height: 25.2px;
  font-weight: 500;
  opacity: 0.88;
}
.faq-help p {
  font-size: 12px;
  line-height: 18px;
  opacity: 0.7;
  margin-top: 14px;
}
.faq-help .btn--outline {
  margin-top: 32px;
  height: 40px;
  padding: 5px 24px;
  font-family: var(--f-manrope);
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
}
.faq-help .btn--outline img { width: 11px; height: 11px; }
.faq-list { flex: 1; display: flex; flex-direction: column; gap: 16px; }

/* ================= RESPONSIVE TOUTES LES VILLAS ================= */
@media (max-width: 1240px) {
  .villas-hero .vh-inner { padding-inline: 24px; }
  .selection, .gallery, .faq { padding-inline: 24px; }
  /* 3 cartes de 384 px + 2 gouttières font déjà 1200 px : le conteneur
     s'enroule de lui-même dès que les marges latérales apparaissent. */
}
@media (max-width: 1100px) {
  .villas-hero h1 { font-size: 42px; line-height: 1.25; }
  .h-section { font-size: 40px; line-height: 1.3; }
  .cta-form-in { flex-direction: column; }
  .cta-copy { width: 100%; gap: 32px; }
  .cta-copy .cc-txt { gap: 32px; }
  .cta-copy h2 { font-size: 44px; line-height: 1.25; }
  .gallery-row { flex-wrap: wrap; }
  .gallery-item { flex: 1 1 45%; }
  .gallery-social { flex-wrap: wrap; gap: 16px; }
  .faq { flex-direction: column; }
  .faq-side { width: 100%; }
}
@media (max-width: 640px) {
  .villas-hero { height: auto; min-height: 550px; }
  .villas-hero .vh-inner { padding-top: 180px; padding-bottom: 56px; }
  .villas-hero h1 { font-size: 34px; }
  .villas-hero .vh-actions { flex-wrap: wrap; gap: 12px; }
  .h-section { font-size: 30px; }
  .selection { margin-top: 56px; }
  .cta-form { padding: 48px 20px; margin-top: 64px; }
  .cta-copy h2 { font-size: 34px; }
  .cta-card { padding: 24px; }
  .cta-contact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gallery, .faq { margin-top: 64px; }
  .gallery-item { flex: 1 1 100%; }
  .faq { margin-bottom: 64px; }
}
