/* ===========================================================================
   La Brochardière 2.0 — page d'accueil
   Chargée uniquement sur le modèle « Accueil ».
   =========================================================================== */

/* ===== HERO ===============================================================
   Deux colonnes 56/44 comme en version 1. La photo est une vraie <img> et
   non une image de fond : le navigateur peut la prioriser, en servir une
   version adaptée à l'écran, et la lire comme contenu.
   ========================================================================= */

.lb-hero {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: calc(100svh - var(--nav-h));
  background: var(--vert-profond);
}
@supports not (height: 100svh) {
  .lb-hero { min-height: calc(var(--vh-reel, 100vh) - var(--nav-h)); }
}

/* --- Colonne photo --- */

.lb-hero-vues { position: relative; overflow: hidden; }

.lb-vue {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.lb-vue.est-active { opacity: 1; }
.lb-vue--vide { background: var(--vert); opacity: 1; }

.lb-vue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Le voile assombrit le bas de la photo pour que le titre reste lisible
   quelle que soit l'image. Dégradé vertical, pas de teinte colorée : la
   version 1 superposait vert et rouge, ce qui virait selon les photos. */
.lb-hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(16, 28, 22, .92) 0%,
    rgba(16, 28, 22, .80) 22%,
    rgba(16, 28, 22, .55) 45%,
    rgba(16, 28, 22, .20) 70%,
    rgba(16, 28, 22, 0) 92%);
  pointer-events: none;
}

.lb-hero-texte {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--e9) var(--e7) var(--e8);
  max-width: 44rem;
  /* Écran local derrière le texte : le voile de toute la hauteur ne peut pas
     garantir le contraste quand la photo change à chaque diapositive. */
  background: linear-gradient(to top,
    rgba(14, 24, 19, .90) 0%,
    rgba(14, 24, 19, .90) 70%,
    rgba(14, 24, 19, .60) 88%,
    rgba(14, 24, 19, 0) 100%);
  backdrop-filter: blur(3px);
}

.lb-hero-classement {
  display: inline-block;
  margin: 0 0 var(--e4);
  padding: 5px var(--e3);
  border: 1px solid rgba(232, 184, 75, .42);
  border-radius: 20px;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or-clair);
  background: rgba(232, 184, 75, .1);
}

.lb-hero-titre {
  font-family: var(--titre);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: .98;
  color: var(--ivoire);
  margin: 0 0 var(--e3);
  text-wrap: balance;
  /* Ceinture de sécurité : la photo change à chaque diapositive, le voile
     seul ne suffit pas sur une image claire. */
  text-shadow: 0 2px 28px rgba(12, 22, 17, .7), 0 1px 3px rgba(12, 22, 17, .45);
}
.lb-hero-titre em { font-style: italic; color: var(--or-clair); }

.lb-hero-lieu {
  font-family: var(--titre);
  font-size: var(--t-lead);
  font-style: italic;
  color: rgba(245, 240, 224, .88);
  text-shadow: 0 1px 16px rgba(12, 22, 17, .6);
  margin: 0 0 var(--e6);
}

.lb-hero-actions { display: flex; flex-wrap: wrap; gap: var(--e3); }
.lb-hero-actions .lb-btn { text-decoration: none; }

/* --- Commandes du slider --- */

.lb-hero-cmd {
  position: absolute;
  z-index: 3;
  right: var(--e5);
  bottom: var(--e5);
  display: flex;
  align-items: center;
  gap: var(--e3);
}

.lb-hero-fleche {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1;
  color: var(--ivoire);
  background: rgba(245, 240, 224, .14);
  border: 1px solid rgba(232, 184, 75, .38);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background-color var(--transition);
}
.lb-hero-fleche:hover { background: rgba(245, 240, 224, .28); }

.lb-hero-points { display: flex; gap: var(--e2); }
.lb-hero-point {
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid rgba(245, 240, 224, .55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.lb-hero-point.est-active { background: var(--or-clair); border-color: var(--or-clair); }

/* --- Colonne fiche --- */

.lb-hero-fiche {
  background: var(--ivoire);
  padding: var(--e8) var(--e7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--e5);
}

.lb-hero-fiche-titre {
  font-size: var(--t-h3);
  margin: 0;
  color: var(--vert-profond);
}

.lb-chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e4);
  margin: 0;
}
.lb-chiffre {
  padding: var(--e4);
  background: var(--blanc);
  border: 1px solid rgba(200, 147, 42, .2);
  border-radius: var(--rayon);
  text-align: center;
}
.lb-chiffre-valeur {
  font-family: var(--titre);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--vert-profond);
  margin: 0;
}
.lb-chiffre-unite { font-size: 1rem; margin-left: 2px; color: var(--or-texte); }
.lb-chiffre-libelle {
  margin: var(--e2) 0 0;
  font-size: var(--t-micro);
  letter-spacing: .06em;
  color: var(--encre-douce);
}

.lb-atouts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
}
.lb-atouts li {
  padding: 5px var(--e3);
  font-size: var(--t-micro);
  color: var(--vert);
  background: rgba(200, 147, 42, .09);
  border-radius: 20px;
}

.lb-hero-tarif {
  margin: 0;
  font-size: var(--t-petit);
  color: var(--encre-douce);
}
.lb-hero-tarif strong {
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--vert-profond);
}

.lb-btn--large { width: 100%; }


/* ===== SECTION PRÉSENTATION =============================================== */

.lb-duo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--e8);
  align-items: start;
}

.lb-texte p { margin-bottom: var(--e4); }

.lb-encadre {
  background: var(--ivoire);
  border-left: 3px solid var(--or);
  padding: var(--e6);
}
.lb-encadre h3 { margin-bottom: var(--e4); }

.lb-liste-points li {
  padding: var(--e3) 0;
  border-bottom: 1px solid rgba(200, 147, 42, .16);
  font-size: var(--t-petit);
  line-height: 1.7;
  color: var(--encre-douce);
}
.lb-liste-points li:last-child { border-bottom: 0; }
.lb-liste-points strong { color: var(--vert-profond); font-weight: 500; }
.lb-liste-points a { color: inherit; text-decoration: underline; text-underline-offset: .15em; text-decoration-color: rgba(200, 147, 42, .5); }
.lb-liste-points a:hover { text-decoration-color: currentColor; }


/* ===== FAQ ================================================================
   En accordéon natif : <details> fonctionne sans JavaScript, est
   accessible au clavier, et le contenu replié reste lu par Google.
   ========================================================================= */

.lb-faq-titre { text-align: center; margin-bottom: var(--e7); }

.lb-faq {
  columns: 2;
  column-gap: var(--e5);
  max-width: 980px;
  margin-inline: auto;
}

.lb-faq-item {
  break-inside: avoid;
  margin-bottom: var(--e3);
  background: var(--blanc);
  border: 1px solid rgba(200, 147, 42, .2);
  border-radius: var(--rayon);
}

.lb-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e3);
  padding: var(--e4) var(--e5);
  font-family: var(--titre);
  font-size: var(--t-lead);
  font-weight: 600;
  color: var(--vert-profond);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.lb-faq-q::-webkit-details-marker { display: none; }
.lb-faq-q::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--texte);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--or-texte);
}
.lb-faq-item[open] .lb-faq-q::after { content: '\2212'; }

.lb-faq-r {
  padding: 0 var(--e5) var(--e4);
  font-size: var(--t-petit);
  color: var(--encre-douce);
  line-height: 1.75;
}
.lb-faq-r p { margin: 0; max-width: none; }


/* ===== RESPONSIVE ========================================================= */

@media (max-width: 1100px) {
  .lb-hero { grid-template-columns: 1fr; min-height: 0; }
  .lb-hero-vues { aspect-ratio: 4 / 3; min-height: 340px; }
  .lb-hero-texte { padding: var(--e6) var(--e5) var(--e7); }
  .lb-hero-fiche { padding: var(--e7) var(--e5); }
  .lb-duo { grid-template-columns: 1fr; gap: var(--e6); }
}

@media (max-width: 760px) {
  .lb-hero-vues { aspect-ratio: 3 / 4; max-height: 70svh; }
  .lb-hero-cmd { right: var(--e4); bottom: var(--e3); }
  .lb-hero-actions { flex-direction: column; align-items: stretch; }
  .lb-hero-actions .lb-btn { width: 100%; }
  .lb-chiffres { grid-template-columns: repeat(2, 1fr); gap: var(--e3); }
  .lb-faq { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-vue { transition: none; }
}
