/* ============================================================
   MAX FM — THÈME NOËL (couche réversible, aucun style existant modifié)
   Tout est isolé sous .theme-noel (ajoutée par noel.js).
   Désactivation : retirer les inclusions de noel.css / noel.js
   dans index.html restitue le site d'origine à l'identique.
   ============================================================ */

.theme-noel {
  --noel-gold-1: #f6e27a;
  --noel-gold-2: #d4af37;
  --noel-gold-3: #aa8a2e;
  --noel-red-1: #a31621;
  --noel-red-2: #6e0f16;
}

/* ---------- Fond de page : dégradé rouge Noël + reflets or ----------
   (Ricardo, 25 nov : le fond change en or et rouge ; les sections
   existantes sont transparentes, le fond du body paraît partout.
   Aucun élément déplacé, textes et cartes inchangés.) */
.theme-noel body {
  background:
    radial-gradient(ellipse 85% 50% at 50% -5%, rgba(212, 175, 55, 0.30), transparent 60%),
    radial-gradient(ellipse 70% 45% at 88% 102%, rgba(212, 175, 55, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 8% 55%, rgba(163, 22, 33, 0.35), transparent 65%),
    linear-gradient(180deg, #570d14 0%, #7a121c 30%, #5c0e16 58%, #3d080e 100%);
  background-attachment: fixed;
}
.theme-noel #three-canvas { opacity: 0.45; }
.theme-noel #hero {
  background-color: #4a0d12;
  background-image:
    linear-gradient(180deg, rgba(110, 15, 22, 0.78), rgba(61, 8, 14, 0.88)),
    url('hero-background-20261101.png');
}
.theme-noel #main-nav {
  background: linear-gradient(180deg, rgba(110, 15, 22, 0.95), rgba(61, 8, 14, 0.95));
}
.theme-noel footer {
  background: linear-gradient(180deg, #3d080e, #2a060a);
}

/* ---------- Neige (canvas créé par noel.js) ---------- */
.noel-snow {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

/* ---------- Guirlande en haut de page ---------- */
.noel-garland {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 120;
  pointer-events: none;
  background:
    radial-gradient(circle at 10px -6px, transparent 12px, rgba(20, 60, 30, 0.9) 13px);
  background-size: 28px 26px;
  background-repeat: repeat-x;
}
.noel-garland-light {
  position: absolute;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: noel-twinkle 1.6s ease-in-out infinite alternate;
}
@keyframes noel-twinkle {
  from { opacity: 0.35; filter: brightness(0.8); }
  to   { opacity: 1;    filter: brightness(1.5); }
}
.noel-ornament {
  position: absolute;
  top: 16px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform-origin: top center;
  animation: noel-sway 3.4s ease-in-out infinite alternate;
  box-shadow: inset -2px -3px 4px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.4);
}
.noel-ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 1px;
  height: 7px;
  background: rgba(212, 175, 55, 0.9);
}
@keyframes noel-sway {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(5deg); }
}

/* ---------- Bouton son du thème ---------- */
.noel-sound-btn {
  position: fixed;
  top: 74px;
  right: 12px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font: 600 12px/1 Montserrat, Arial, sans-serif;
  color: var(--noel-gold-1);
  background: rgba(110, 15, 22, 0.9);
  border: 1px solid var(--noel-gold-2);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.noel-sound-btn[aria-pressed="false"] { opacity: 0.65; filter: grayscale(0.4); }
.noel-sound-btn:focus-visible { outline: 2px solid var(--noel-gold-1); outline-offset: 2px; }

/* ---------- Habillage de l'intro existante (sans toucher loader.js) ---------- */
.theme-noel #loading-screen {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(163, 22, 33, 0.5), transparent 60%),
    radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.22), transparent 55%),
    var(--void, #05070d);
}
.theme-noel #loading-progress-bar {
  background: linear-gradient(90deg, var(--noel-red-1), var(--noel-gold-2), var(--noel-gold-1));
}
.theme-noel .loading-tagline { color: var(--noel-gold-1); }
.noel-intro-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.noel-intro-ornament {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -3px -5px 6px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.4);
  transform-origin: top center;
  animation: noel-sway 3.8s ease-in-out infinite alternate;
}
.noel-intro-ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -26px;
  width: 1px;
  height: 26px;
  background: rgba(212, 175, 55, 0.85);
}

/* ---------- Accents or / rouge sur l'existant (aucun déplacement) ---------- */
.theme-noel #main-nav {
  box-shadow: inset 0 -2px 0 var(--noel-gold-2), 0 6px 18px rgba(110, 15, 22, 0.25);
}
.theme-noel .section-title .highlight,
.theme-noel .hero-title-line2 {
  background: linear-gradient(180deg, var(--noel-gold-1), var(--noel-gold-2) 60%, var(--noel-gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-noel .live-badge {
  box-shadow: 0 0 0 1px var(--noel-gold-2), 0 0 12px rgba(212, 175, 55, 0.45);
}
.theme-noel footer {
  box-shadow: inset 0 2px 0 var(--noel-gold-2);
}
.theme-noel .footer-col-title,
.theme-noel .mxf-footer-title { color: var(--noel-gold-1); }

/* ---------- Mouvement réduit : aucun décor animé ---------- */
@media (prefers-reduced-motion: reduce) {
  .noel-garland-light,
  .noel-ornament,
  .noel-intro-ornament { animation: none; }
}
