/* =========================================================================
   options.css — composants d'options activées (promo-banner, status-pill,
   lightbox). À charger après plumber.css.
   ========================================================================= */

/* ── BANNIÈRE PROMO ──────────────────────────────────────────────── */
.promo-banner {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px clamp(40px, 5vw, 60px);
  /* Palette peintre — gradient terracotta → ocre → rose brique (chaud, vivant) */
  background: linear-gradient(90deg, #D86A47 0%, #E8B854 50%, #C24E5E 100%);
  background-size: 200% 100%;
  animation: promo-banner-flow 14s ease-in-out infinite;
  color: #FFFFFF;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .92rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  text-shadow: 0 1px 2px rgba(120, 50, 30, .55);
}
.promo-banner__text strong { color: #FFE89A; text-shadow: 0 1px 2px rgba(120, 50, 30, .65); }
@keyframes promo-banner-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.promo-banner[hidden] { display: none; }
.promo-banner__icon {
  font-size: 1.05rem;
  filter: drop-shadow(0 0 6px rgba(255, 200, 80, .5));
}
.promo-banner__text strong { font-weight: 700; }
.promo-banner__close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.promo-banner__close:hover { background: rgba(255, 255, 255, .28); }
[data-theme="80s"] .promo-banner {
  background: linear-gradient(90deg, #ff006e 0%, #ff5e00 100%);
}
[data-theme="futuriste"] .promo-banner {
  background: linear-gradient(90deg, #03061a 0%, #1a1f4a 100%);
  border-bottom: 1px solid rgba(34, 211, 238, .35);
  color: #C9D6FF;
}
[data-theme="futuriste"] .promo-banner__text strong { color: #22D3EE; }

/* ── STATUS PILL Ouvert / Fermé ──────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 76, 117, .18);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: #1A2030;
  width: fit-content;
}
.status-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #C0392B;
  flex-shrink: 0;
}
.status-pill[data-status="open"] .status-pill__dot {
  background: #2E8B57;
  box-shadow: 0 0 0 0 rgba(46, 139, 87, .6);
  animation: statusDot 2.4s ease-in-out infinite;
}
@keyframes statusDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, .6); }
  50%      { box-shadow: 0 0 0 6px rgba(46, 139, 87, 0); }
}
[data-theme="80s"] .status-pill {
  background: rgba(13, 2, 31, .85);
  border-color: rgba(0, 245, 255, .55);
  color: #FFE7FF;
}
[data-theme="80s"] .status-pill[data-status="open"] .status-pill__dot { background: #00FFA8; }
[data-theme="futuriste"] .status-pill {
  background: rgba(3, 6, 26, .65);
  border-color: rgba(34, 211, 238, .4);
  color: #C9D6FF;
  backdrop-filter: blur(10px);
}
[data-theme="futuriste"] .status-pill[data-status="open"] .status-pill__dot { background: #22D3EE; }

/* ── LIGHTBOX ────────────────────────────────────────────────────── */
.mv-lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(8, 5, 3, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 4vw;
  animation: lbIn .3s cubic-bezier(.2, .8, .2, 1) both;
}
.mv-lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.mv-lightbox__media {
  max-width: min(94vw, 1300px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mv-lightbox__media svg,
.mv-lightbox__media img,
.mv-lightbox__media .ba-image {
  width: 100%;
  height: auto;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: lbScale .4s cubic-bezier(.2, .8, .2, 1) both;
}
.mv-lightbox__media .ba-image {
  position: static;
  clip-path: none !important;
  transform: none !important;
}
@keyframes lbScale {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
.mv-lightbox__close {
  position: fixed;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1001;
  transition: background .2s ease, transform .2s ease;
  backdrop-filter: blur(4px);
}
.mv-lightbox__close:hover {
  background: rgba(255, 255, 255, .28);
  transform: scale(1.08);
}

/* Statut pill dans le hero — alignement à gauche dans la colonne */
.hero-meta .status-pill { margin-top: 4px; }

/* Override : forcer la pastille ✨ en haut-droite du rail social
   (évite qu'elle ne flotte en bas comme un enfant flex normal) */
.social-rail {
  position: fixed;
}
.social-rail .opt-badge--corner {
  position: absolute;
  top: -10px;
  right: -10px;
  margin: 0;
}

/* ── Hover ctrl-btn : la pastille reste droite et change de palette
      pour ressortir sur le fond accent du bouton.
      Note : la rotation -6deg du parent a été retirée pour éviter
      que la pastille et son tooltip apparaissent de travers. */
.ctrl-btn .opt-badge--corner {
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.ctrl-btn:hover .opt-badge--corner {
  background: var(--paper, #fff);
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.ctrl-btn:hover .opt-badge--corner::before { color: var(--accent); }

/* Cible cliquable ba-image */
.ba-image {
  outline-offset: 4px;
}
.ba-image:focus-visible {
  outline: 2px solid #0F4C75;
}

/* ============================================================
   FIX — Bulles ✨ "Nom · +5 €/mois" sur les boutons flottants
   ─────────────────────────────────────────────────────────────
   Par défaut, .opt-badge[data-opt-name]::after est centrée sous la
   pastille (left: 50%; translateX(-50%)). Pour les pastilles posées
   dans les coins de boutons collés aux bords de l'écran (FAB
   WhatsApp, ampoule, musique, rail social), la bulle sortait du
   viewport. Ici on la repositionne contextuellement.
   ============================================================ */

/* WhatsApp + ampoule + musique (bord DROIT de l'écran)
   → bulle au-dessus de la pastille, ancrée à droite,
     elle se déploie vers la GAUCHE (loin du bord). */
.wa-fab .opt-badge[data-opt-name]::after,
.floating-controls .opt-badge[data-opt-name]::after {
  top: auto;
  bottom: calc(100% + 10px);
  left: auto;
  right: 0;
  transform: translateX(0);
}
.wa-fab .opt-badge[data-opt-name]:hover::after,
.wa-fab .opt-badge[data-opt-name]:focus-visible::after,
.floating-controls .opt-badge[data-opt-name]:hover::after,
.floating-controls .opt-badge[data-opt-name]:focus-visible::after {
  transform: translateY(-3px);
}

/* Rail social (bord GAUCHE de l'écran)
   → bulle au-dessus de la pastille, ancrée à GAUCHE,
     elle se déploie vers la DROITE. */
.social-rail .opt-badge[data-opt-name]::after {
  top: auto;
  bottom: calc(100% + 10px);
  left: 0;
  right: auto;
  transform: translateX(0);
}
.social-rail .opt-badge[data-opt-name]:hover::after,
.social-rail .opt-badge[data-opt-name]:focus-visible::after {
  transform: translateY(-3px);
}
