/* ─────────────────────────────────────────────────────────
   LANDING PAGES PUBLICITAIRES (/spa-<ville>, /offre)
   Mise en page uniquement. Aucune police, couleur ni ombre nouvelle :
   tout vient des variables et des valeurs déjà présentes dans style.css.
   Chargé APRÈS style.css. Préfixe lpx- pour éviter toute collision.
   ───────────────────────────────────────────────────────── */

/* ---- Hero : photo d'ambiance + voile de l'accueil (.hero__bg / .hero__overlay) ---- */
.lpx-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
  padding: calc(var(--nav-h) + 16px) 20px 28px;
}
.lpx-hero__grid {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "texte" "carte" "visuel";
  gap: 18px;
}
.lpx-hero__text { grid-area: texte; min-width: 0; }
.lpx-card { grid-area: carte; min-width: 0; }
.lpx-hero__visual { grid-area: visuel; margin: 0; min-width: 0; }
.lpx-hero__visual[hidden] { display: none; }
.lpx-hero__visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lpx-hero .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
.lpx-hero .hero-subtitle { margin: .75rem 0 0; font-size: 1rem; line-height: 1.55; max-width: 560px; }
.lpx-prix {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin: .75rem 0 0;
}
.lpx-offre {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(199,162,96,.3);
}
.lpx-offre .hero-eyebrow { font-size: .72rem; letter-spacing: 2px; margin: 0 0 .35rem; }
.lpx-offre__titre {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--white);
  margin: 0;
}
.lpx-offre__sous {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255,255,255,.75);
  margin: .5rem 0 0;
}
.lpx-conditions {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin: .5rem 0 0;
}
.lpx-conditions:empty, .lpx-offre__sous:empty { display: none; }

@media (max-width: 899px) {
  /* Voile de l'accueil (mêmes couleurs), orienté de haut en bas : le texte couvre toute la largeur */
  .lpx-hero .hero__overlay {
    background: linear-gradient(to bottom, rgba(26,45,62,0.88) 0%, rgba(26,45,62,0.75) 100%);
  }
}
@media (max-width: 599px) {
  /* Mobile : H1, prix, offre et formulaire tiennent dans le premier écran */
  .lpx-fabricant, .lpx-offre__sous, .lpx-conditions { display: none; }
  .lpx-hero .hero__bg img { object-position: 30% center; }
}

@media (min-width: 900px) {
  .lpx-hero { padding: calc(var(--nav-h) + 56px) 40px 72px; }
  .lpx-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "texte carte" "visuel carte";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 32px;
    align-items: start;
  }
  .lpx-hero .hero-title { font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
  .lpx-hero .hero-subtitle { font-size: 1.1rem; }
  .lpx-offre__titre { font-size: 1.8rem; }
  .lpx-hero__visual img { max-height: 340px; }
}

/* ---- Carte formulaire ---- */
.lpx-card {
  background: var(--white);
  color: var(--blue);
  padding: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.lpx-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--blue);
  margin: 0 0 12px;
}
.lpx-form { max-width: none; gap: 10px; }
.lpx-form .btn-gold { width: 100%; }
.lpx-consent {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  line-height: 1.4;
  color: #888;
  margin: 2px 0 0;
}
.lpx-quiz {
  display: block;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: underline;
  padding: 10px 0 2px;
}
.lpx-quiz:hover { color: var(--gold); }
.lpx-call { width: 100%; margin-top: 10px; white-space: normal; text-align: center; padding: 14px 16px; letter-spacing: 1px; }
.lpx-card .form-success { padding: 12px 0; }

@media (min-width: 900px) {
  .lpx-card { padding: 32px; }
  .lpx-card__title { font-size: 1.8rem; margin-bottom: 16px; }
  .lpx-form { gap: 14px; }
}

/* ---- Sections ---- */
.lpx-section { padding: 56px 20px; }
.lpx-section--alt { background: var(--off-white); }
.lpx-wrap { max-width: 1000px; margin: 0 auto; }
.lpx-wrap--large { max-width: var(--max-w); }
.lpx-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--blue);
  text-align: center;
  margin: 0 0 12px;
}
.lpx-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
@media (min-width: 900px) {
  .lpx-section { padding: 80px 40px; }
}

/* ---- Réassurance : 4 points ---- */
.lpx-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.lpx-point {
  background: var(--off-white);
  padding: 28px 24px;
  text-align: center;
}
.lpx-section--alt .lpx-point { background: var(--white); }
.lpx-point h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  margin: 0 0 8px;
}
.lpx-point p {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}
.lpx-point a { color: var(--blue); text-decoration: underline; }
@media (min-width: 600px) { .lpx-points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lpx-points { grid-template-columns: repeat(4, 1fr); } }

/* ---- Showroom : photo (ou carte) à gauche, infos à droite ; carte dessous quand il y a une photo ---- */
.lpx-showroom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.lpx-showroom__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lpx-showroom__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; }
.lpx-showroom .magasin-details { grid-template-columns: minmax(0, 1fr); }   /* infos et horaires empilés à côté de la photo */
.lpx-showroom__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Landing pages seulement : infos et horaires à plat sur le fond de la section (les pages magasins gardent leurs cartes blanches) */
body.lpx-page .lpx-showroom .note-badge { background: var(--off-white); }
body.lpx-page .lpx-showroom .info-card { box-shadow: none; padding: 0; gap: 16px; background: none; }
body.lpx-page .lpx-showroom .magasin-horaires { background: transparent; box-shadow: none; padding: 0; margin-top: 20px; }
/* Contrastes (≥ 4,5:1 sur #f8f6f2) avec la couleur de texte existante var(--text-light) = #555 */
body.lpx-page .lpx-showroom .magasin-horaires__titre,
body.lpx-page .lpx-showroom .horaire-val.ferme,
body.lpx-page .lpx-showroom .info-item label { color: var(--text-light); }
.lpx-map {
  position: relative;
  width: 100%;
  height: 320px;
  background: #e8e4de;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lpx-showroom + .lpx-map { margin-top: 24px; }
.lpx-map { flex-direction: column; gap: 16px; padding: 0 16px; }
.lpx-map__texte { font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--text-light); text-align: center; margin: 0; }
/* Sans photo, la carte passe après les infos sur mobile */
.lpx-showroom--carte .lpx-showroom__infos { order: -1; }
@media (min-width: 900px) {
  .lpx-showroom--photo, .lpx-showroom--carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .lpx-showroom--photo { align-items: stretch; }
  .lpx-showroom--photo .lpx-showroom__photo { position: relative; min-height: 380px; }
  .lpx-showroom--photo .lpx-showroom__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .lpx-showroom--carte .lpx-showroom__infos { order: 0; }
  .lpx-showroom--carte .lpx-map { height: 100%; min-height: 440px; }
  .lpx-showroom + .lpx-map { height: 400px; }
}

/* ---- Modèles : les cartes existantes (.model-card), 2 par ligne sur mobile ---- */
.lpx-models { padding: 3.5rem 0; }
.lpx-models .gamme-models__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .lpx-models .gamme-models__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.lpx-models .model-card__content { padding: .9rem .9rem 1.1rem; }
.lpx-models .model-card__name { font-size: 1.25rem; }
.lpx-models .model-card__subtitle {            /* description : une ligne au maximum */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lpx-models .model-card__link { font-size: .8rem; }
@media (max-width: 599px) {
  .lpx-models .container { padding: 0 12px; }
  .lpx-models .spec:nth-child(n+2) { display: none; }   /* mobile : on garde seulement les places */
}

/* ---- Avis Google : voir avis-google.css ---- */
.lpx-avis { padding: 3.5rem 0; }

/* ---- FAQ ---- */
.lpx-faq { max-width: 760px; margin: 0 auto; }
.lpx-faq details { border-bottom: 1px solid #ddd; }
.lpx-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--blue);
  padding: 18px 28px 18px 0;
  position: relative;
  min-height: 44px;
}
.lpx-faq summary::-webkit-details-marker { display: none; }
.lpx-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--gold);
}
.lpx-faq details[open] summary::after { content: '\2212'; }
.lpx-faq details p {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0 0 18px;
}
.lpx-faq details a { color: var(--blue); text-decoration: underline; }

/* ---- Formulaire de fin de page ---- */
.lpx-final { max-width: 520px; margin: 0 auto; }
.lpx-final .lpx-card { box-shadow: none; padding: 0; background: none; }


/* ---- Cartes modèles : valeur sous le libellé (2 colonnes sur mobile) ---- */
@media (max-width: 599px) {
  .lpx-models .spec { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---- Ligne de preuve sociale sous le formulaire (composant .note-badge existant) ---- */
.lpx-preuve { text-align: center; margin: 4px 0 0; }
.lpx-preuve .note-badge { color: var(--blue); white-space: normal; text-align: center; font-size: .72rem; padding: 4px 8px; }

/* ---- Bouton « Être rappelé » sur mobile (composant .btn .btn--gold) : apparaît en fondu quand le formulaire du haut est sorti de l'écran, disparaît à l'arrivée du formulaire du bas ---- */
.lpx-sticky { display: none; }
@media (max-width: 899px) {
  .lpx-sticky {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--cookie-bar-h, 0px) + 12px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .lpx-sticky.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
  body.lpx-page { padding-bottom: 72px; }
}
