/* ===========================================================================
   Booking « Premier contact » — pill BA FR + modale maison + sticky mobile
   Chargé site-wide. Aucune dépendance tierce (Google chargé au 1er clic).
   Tokens hérités de home.css : --paper, --ink, --oxblood, --bronze, --rule…
   =========================================================================== */
:root { --ba-expo: cubic-bezier(.16, 1, .3, 1); }

/* ─────────────────────────── Pill BA FR ─────────────────────────── */
/* Calqué sur .top-cta : Cormorant italique, pill 999px, flèche. */
.ba-book-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px; font-style: italic; font-weight: 400;
  letter-spacing: .04em; line-height: 1.1;
  padding: 12px 26px;
  border: 1px solid var(--ink, #0a0a0a);
  border-radius: 999px;
  color: var(--ink, #0a0a0a);
  background: transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .4s var(--ba-expo), color .4s var(--ba-expo),
              border-color .4s var(--ba-expo), transform .4s var(--ba-expo),
              box-shadow .4s var(--ba-expo);
}
.ba-book-cta::after {
  content: '→'; font-style: normal; font-size: .95em;
  transition: transform .4s var(--ba-expo);
}
.ba-book-cta:hover { transform: translateY(-2px); background: var(--ink, #0a0a0a); color: var(--paper, #fafaf9); }
.ba-book-cta:hover::after { transform: translateX(4px); }
.ba-book-cta:focus-visible { outline: 2px solid var(--oxblood, #6b1f24); outline-offset: 3px; }

/* Pleine — ink → oxblood : action chaude (hero, bandeau pôles) */
.ba-book-cta--solid { background: var(--ink, #0a0a0a); color: var(--paper, #fafaf9); border-color: var(--ink, #0a0a0a); }
.ba-book-cta--solid:hover { background: var(--oxblood, #6b1f24); border-color: var(--oxblood, #6b1f24); color: var(--paper, #fafaf9); }

/* Fantôme — secondaire hero (pas de flèche) */
.ba-book-cta--ghost { border-color: var(--rule, #e6e6e6); }
.ba-book-cta--ghost::after { content: ''; }
.ba-book-cta--ghost:hover { background: var(--paper-2, #f3efe6); border-color: var(--ink, #0a0a0a); color: var(--ink, #0a0a0a); }

/* Inverse — paper sur fond sombre (set-piece contact) */
.ba-book-cta--inverse { background: var(--paper, #fafaf9); color: var(--ink, #0a0a0a); border-color: var(--paper, #fafaf9); }
.ba-book-cta--inverse:hover { background: var(--oxblood, #6b1f24); color: var(--paper, #fafaf9); border-color: var(--oxblood, #6b1f24); }

/* ─────────────────────── Header — CTA persistant ─────────────────────── */
/* Sous 900px home.css masque .top-cta ; on le conserve (les liens se replient, pas le CTA). */
@media (max-width: 900px) {
  header.topbar .top-cta { display: inline-flex !important; font-size: 13px; padding: 8px 16px; gap: 7px; }
}
@media (max-width: 480px) {
  header.topbar .top-cta { font-size: 0; padding: 9px 14px; }      /* libellé masqué, flèche conservée */
  header.topbar .top-cta::after { font-size: 15px; }
}

/* ───────────────────── Bandeau pôles (home) ───────────────────── */
.ba-book-poles {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--rule, #e6e6e6);
}
.ba-book-poles-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; line-height: 1.25;
  color: var(--ink, #0a0a0a); max-width: 640px; margin: 0;
}
.ba-book-poles-text em { font-style: italic; color: var(--oxblood, #6b1f24); }

/* ───────────────── Set-piece sombre — section finale (home) ───────────────── */
.final.ba-book-final { background: var(--ink-dark, #1a1a1a); border-top: 0; }
.final.ba-book-final .final-eyebrow { color: var(--oxblood, #6b1f24); }
.final.ba-book-final .final-title { color: var(--paper, #fafaf9); }
.final.ba-book-final .final-title em { color: var(--paper, #fafaf9); }
.ba-book-final-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
.ba-book-final-or { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 15px; color: rgba(250, 250, 249, .62); margin: 0; }
.ba-book-final-or a { color: var(--paper, #fafaf9); text-decoration: none; border-bottom: 1px solid rgba(250, 250, 249, .35); }
.ba-book-final-or a:hover { border-color: var(--paper, #fafaf9); }

/* ─────────────────── Contact (page) — RDV principal ─────────────────── */
.ba-contact-rdv { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.ba-contact-rdv .ba-book-cta { align-self: flex-start; }
.ba-contact-rdv-note { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 14px; color: var(--ink-soft, #5a5a5a); margin: 0; }

/* ─────────────────────────── Modale maison ─────────────────────────── */
.ba-book-modal[hidden] { display: none; }
.ba-book-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.ba-book-modal__overlay {
  position: absolute; inset: 0; background: rgba(10, 10, 10, .72);
  opacity: 0; transition: opacity .4s var(--ba-expo);
}
.ba-book-modal.is-open .ba-book-modal__overlay { opacity: 1; }
.ba-book-modal__dialog {
  position: relative; z-index: 1;
  width: min(940px, 100%); max-height: min(88vh, 880px);
  display: flex; flex-direction: column;
  background: var(--paper, #fafaf9);
  border: 1px solid var(--rule, #e6e6e6); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(10, 10, 10, .6);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .45s var(--ba-expo), transform .45s var(--ba-expo);
}
.ba-book-modal.is-open .ba-book-modal__dialog { opacity: 1; transform: none; }
.ba-book-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 26px 16px; border-bottom: 1px solid var(--rule, #e6e6e6);
}
.ba-book-modal__eyebrow { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 13px; letter-spacing: .14em; color: var(--bronze, #8b6f47); display: block; }
.ba-book-modal__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 23px; color: var(--ink, #0a0a0a); margin: 3px 0 0; }
.ba-book-modal__close {
  flex: 0 0 auto; appearance: none; background: transparent;
  border: 1px solid var(--rule, #e6e6e6); border-radius: 999px;
  width: 38px; height: 38px; cursor: pointer; color: var(--ink, #0a0a0a);
  font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ba-book-modal__close:hover { background: var(--ink, #0a0a0a); color: var(--paper, #fafaf9); border-color: var(--ink, #0a0a0a); }
.ba-book-modal__frame { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; background: var(--paper, #fafaf9); }
.ba-book-modal__frame iframe { display: block; width: 100%; height: 100%; min-height: 580px; border: 0; }
.ba-book-modal__loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  color: var(--ink-soft, #5a5a5a); font-size: 16px; pointer-events: none;
}
body.ba-book-locked { overflow: hidden; }

@media (max-width: 600px) {
  .ba-book-modal { padding: 0; }
  .ba-book-modal__dialog { width: 100%; height: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
  .ba-book-modal__frame iframe { min-height: 68vh; }
}

/* ─────────────────────────── Sticky mobile ─────────────────────────── */
.ba-book-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 249, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule, #e6e6e6);
  transform: translateY(110%); transition: transform .45s var(--ba-expo);
}
.ba-book-sticky.is-visible { transform: none; }
.ba-book-sticky .ba-book-cta { width: 100%; justify-content: center; }
@media (max-width: 900px) { .ba-book-sticky { display: block; } }

/* ─────────────────────── Reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ba-book-cta, .ba-book-cta::after,
  .ba-book-modal__overlay, .ba-book-modal__dialog,
  .ba-book-sticky { transition: none; }
  .ba-book-cta:hover { transform: none; }
  .ba-book-modal__dialog { transform: none; }
}
