/* =========================================================
   AS-DF Le Complexe — Page reservation iframe LatePoint
   Fichier additionnel a copier dans assets/css/.
   Il ne remplace pas styles.css : il ajoute seulement le style
   specifique a la page reservation.
========================================================= */

/* Hero plus compact pour laisser rapidement apparaitre le module. */
.booking-hero .page-hero-copy {
  max-width: 880px;
}

.booking-hero .hero-actions {
  margin-top: 26px;
}

/* Section principale de reservation. */
.booking-embed-section {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(30,144,255,.18), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(255,32,45,.16), transparent 28rem),
    linear-gradient(180deg, rgba(5,11,18,.98), rgba(7,19,33,.98));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(290px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.booking-info-card,
.booking-frame-card,
.booking-help-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16,41,68,.82), rgba(5,13,24,.96));
  box-shadow: var(--shadow);
}

.booking-info-card {
  position: sticky;
  top: 104px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
}

.booking-info-card::before,
.booking-frame-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(30,144,255,.18), transparent 20rem),
    radial-gradient(circle at 95% 0%, rgba(255,32,45,.12), transparent 18rem);
}

.booking-info-card > *,
.booking-frame-card > * {
  position: relative;
  z-index: 1;
}

.booking-info-card h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  margin-bottom: 18px;
}

.booking-info-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.booking-benefits {
  display: grid;
  gap: 12px;
  margin: 26px 0 28px;
}

.booking-benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.booking-benefit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 950;
  background: linear-gradient(135deg, rgba(30,144,255,.34), rgba(255,32,45,.28));
  border: 1px solid rgba(255,255,255,.14);
}

.booking-benefit strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.booking-benefit span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.booking-side-actions {
  display: grid;
  gap: 12px;
}

.booking-side-actions .btn {
  width: 100%;
}

.booking-frame-card {
  position: relative;
  overflow: hidden;
  min-height: 760px;
}

.booking-frame-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(3,8,18,.56);
}

.booking-frame-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,32,45,.72);
  animation: bookingPulse 1.8s infinite;
}

.booking-frame-title strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.booking-frame-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.booking-open-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.booking-open-link span {
  color: var(--red);
  transition: transform .2s ease;
}

.booking-open-link:hover span {
  transform: translateX(5px);
}

.booking-frame-wrap {
  position: relative;
}

.booking-frame-wrap.is-loading::before {
  content: "Chargement du module de reservation...";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #071321;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  background:
    radial-gradient(circle at 35% 35%, rgba(30,144,255,.14), transparent 22rem),
    #ffffff;
}

.booking-frame-wrap.is-loading::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 42px);
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  border: 4px solid rgba(7,19,33,.16);
  border-top-color: var(--red);
  animation: bookingSpin .85s linear infinite;
}

.booking-iframe {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #ffffff;
}

.booking-frame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: rgba(3,8,18,.72);
}

.booking-frame-footer strong {
  color: var(--white);
}

.booking-help-card {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.booking-help-card h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  margin-bottom: 8px;
}

.booking-help-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.booking-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Variante pour une future page WordPress d'embed propre.
   Si vous creez https://complexe.as-df.fr/reservation-embed/
   avec seulement [latepoint_book_form], remplacez le src de l'iframe
   dans reservation par cette URL. */
.booking-embed-note {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  background: rgba(30,144,255,.09);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@keyframes bookingPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,32,45,.72); }
  70% { box-shadow: 0 0 0 12px rgba(255,32,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,32,45,0); }
}

@keyframes bookingSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-info-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .booking-frame-header,
  .booking-frame-footer,
  .booking-help-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-open-link {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
  }

  .booking-iframe {
    min-height: 1080px;
  }

  .booking-help-actions,
  .booking-help-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .booking-iframe {
    min-height: 1180px;
  }
}

/* =========================================================
   RESERVATION — Iframe LatePoint pleine largeur
   À ajouter en bas de reservation-iframe.css
========================================================= */

.booking-embed-section-full {
  padding-top: clamp(64px, 8vw, 110px);
}

.booking-full-intro {
  max-width: 980px;
  margin-bottom: 34px;
}

.booking-full-intro h2 {
  max-width: 760px;
}

.booking-full-intro p {
  max-width: 860px;
}

.booking-full-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Le conteneur sort volontairement du container classique
   pour donner une vraie impression pleine largeur. */
.booking-full-frame-container {
  width: min(100% - 32px, 1680px);
  margin-inline: auto;
}

.booking-frame-card-full {
  width: 100%;
}

/* Iframe plus haute pour éviter que le module LatePoint soit trop compressé. */
.booking-frame-wrap-full {
  width: 100%;
  min-height: 1180px;
}

.booking-frame-wrap-full .booking-iframe {
  width: 100%;
  min-height: 1180px;
  height: 1180px;
}

/* Variante desktop large : encore plus confortable. */
@media (min-width: 1400px) {
  .booking-full-frame-container {
    width: min(100% - 48px, 1800px);
  }

  .booking-frame-wrap-full,
  .booking-frame-wrap-full .booking-iframe {
    min-height: 900px;
    height: 900px;
  }
}

/* Tablette */
@media (max-width: 1024px) {
  .booking-full-frame-container {
    width: min(100% - 24px, 100%);
  }

  .booking-frame-wrap-full,
  .booking-frame-wrap-full .booking-iframe {
    min-height: 1200px;
    height: 1200px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .booking-full-actions {
    flex-direction: column;
  }

  .booking-full-actions .btn {
    width: 100%;
  }

  .booking-full-frame-container {
    width: 100%;
  }

  .booking-frame-card-full {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .booking-frame-wrap-full,
  .booking-frame-wrap-full .booking-iframe {
    min-height: 1300px;
    height: 1300px;
  }
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
}

.footer-credit img {
  width: 180px;
  height: auto;
}