/* =========================================================================
   MINIBOT FRANCE — THÈME SPÉCIAL NOËL (100 % ISOLÉ & RÉVERSIBLE)
   S'active uniquement lorsque la classe .mbf-christmas est présente sur <html>.
   La version normale du site reste strictement intacte hors saison.
   ========================================================================= */

html.mbf-christmas {
  --xmas-red: #dc2626;
  --xmas-red-bright: #ef4444;
  --xmas-gold: #f59e0b;
  --xmas-gold-soft: #fde68a;
  --xmas-pine: #10b981;
  --xmas-ice: #bae6fd;
}

/* Subtile guirlande lumineuse hivernale tout en haut du site */
html.mbf-christmas body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #ef4444 0px,
    #ef4444 18px,
    #f59e0b 18px,
    #f59e0b 36px,
    #10b981 36px,
    #10b981 54px,
    #38bdf8 54px,
    #38bdf8 72px
  );
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

/* Ambiance fond givré subtile */
html.mbf-christmas body {
  background-image:
    radial-gradient(circle at 15% 10%, rgba(220, 38, 38, 0.08), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.08), transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.06), transparent 42%);
}

/* Accentuation festive de la sidebar */
html.mbf-christmas .sidebar-nav {
  border-right-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(19, 22, 34, 0.98) 0%, rgba(14, 18, 28, 0.98) 100%);
}

html.mbf-christmas .brand-icon-wrapper {
  position: relative;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

/* Petit bonnet de Noël discret sur le logo */
html.mbf-christmas .brand-icon-wrapper::after {
  content: '🎅';
  position: absolute;
  top: -10px;
  right: -8px;
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

/* Touches dorées & givrées sur les cartes phares et boutons */
html.mbf-christmas .hero-badge,
html.mbf-christmas .section-tag {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

html.mbf-christmas .btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #991b1b 100%);
  border-color: rgba(252, 165, 165, 0.35);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.32);
}

html.mbf-christmas .btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.45);
}

html.mbf-christmas .pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.14);
}

html.mbf-christmas .cta-banner-wrapper {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.25), rgba(15, 23, 42, 0.92), rgba(6, 78, 59, 0.22));
}

/* Canvas neige ultra-léger */
#mbfSnowCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* Bouton flottant discret pour couper / réactiver la neige */
.mbf-snow-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 10002;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.28);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #e0f2fe;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

/* Évite tout chevauchement avec le bouton Retour en haut en bas à droite */
html.mbf-christmas .scroll-top-btn {
  bottom: 4.5rem;
}

.mbf-snow-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(30, 41, 59, 0.95);
}

/* Bandeau Calendrier de l'Avent (preview + actif) */
.mbf-advent-topbar {
  position: relative;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.92) 0%, rgba(30, 27, 75, 0.94) 50%, rgba(6, 78, 59, 0.92) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}

.mbf-advent-topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mbf-advent-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827 !important;
  font-weight: 800;
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.mbf-advent-topbar-cta:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.mbf-advent-topbar-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.7);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.mbf-advent-topbar-close:hover {
  color: #ffffff;
}

.sidebar-pill-badge.xmas {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 768px) {
  .mbf-snow-toggle {
    bottom: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 0.38rem 0.6rem;
  }
}
