/* Habillage Noël — temporaire. Chargé par le layout pendant la période
   (src/themes_saisonniers.php) et appliqué uniquement quand la home est
   affichée (body.noel:has(main > section.home91)). Les textures (givre,
   neige) sont calculées par assets/js/noel.js, sans image externe. */

/* Givre sur les pochettes « La playlist » : la texture sert à la fois d'image
   et de masque à un flou d'arrière-plan (effet vitre gelée). L'horaire et le
   bouton de partage, positionnés après, restent au-dessus. */
body.noel:has(main > section.home91) .rt-cover-media::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--noel-frost) left bottom/100% 100% no-repeat;
  -webkit-backdrop-filter:blur(5px) brightness(1.22) saturate(.75);
  backdrop-filter:blur(5px) brightness(1.22) saturate(.75);
  -webkit-mask:var(--noel-frost) left bottom/100% 100% no-repeat;
  mask:var(--noel-frost) left bottom/100% 100% no-repeat;
}

/* Neige sur le player : calque à part, posé sur le bord haut de la barre
   (le player garde son overflow:clip, dont son fond flou a besoin). Position
   et taille posées par le script. */
/* z-index du player (10000) : ajoutée après lui dans le body, elle passe
   au-dessus de lui mais reste sous le bandeau cookies (10001). */
.noel-snow{display:none;position:fixed;pointer-events:none;z-index:10000;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.18))}
body.noel:has(main > section.home91) .noel-snow{display:block}

/* Bandeau d'ambiance en haut (image 1983x793 = 40vw de haut), prolongé par un
   aplat de la couleur de son bas (#01172b) pour couvrir les interstices entre
   blocs, puis fondu dans le blanc. Même mécanique que halloween.css. */
body.noel:has(main > section.home91){
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) 43vw, #fff 47vw),
    url("/assets/img/noel-bg.webp") center top/100% auto no-repeat,
    linear-gradient(#01172b,#01172b) 0 0/100% 47vw no-repeat,
    #fff;
}
@media (max-width:700px){
  body.noel:has(main > section.home91){
    background:
      linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) 300px, #fff 420px),
      url("/assets/img/noel-bg.webp") center top/auto 420px no-repeat,
      #fff;
  }
}
/* La home pose un fond blanc sur son conteneur : transparent pour voir le bandeau */
body.noel:has(main > section.home91) .home91{background:transparent}

/* Header : barre bleu nuit translucide, filet doré, survol doré */
body.noel:has(main > section.home91) .h91 .h91-main{
  background:rgba(3,14,30,.72) !important;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:inset 0 -1px 0 rgba(230,184,92,.4);
}
body.noel:has(main > section.home91) .h91 .h91-main .nav a:hover,
body.noel:has(main > section.home91) .h91 .h91-main .nav a:focus-visible{color:#f3cf7a}

/* Bandeau « Les + » : pastille et pictos bleu nuit, accent doré */
body.noel:has(main > section.home91) .qab-lesplus{background:#0a1a30;box-shadow:inset 0 -2px 0 #d4a94e}
body.noel:has(main > section.home91) .qab-lesplus::after{background:rgba(212,169,78,.45)}
body.noel:has(main > section.home91) .qab-item{color:#0a1a30}
body.noel:has(main > section.home91) .qab-item:not(:last-child)::after{background:rgba(10,26,48,.14)}
body.noel:has(main > section.home91) .qab-icon-wrap{background:#0a1a30;color:#f3cf7a}
body.noel:has(main > section.home91) .qab-item:hover{background:#0a1a30;color:#f3cf7a}
body.noel:has(main > section.home91) .qab-item:hover .qab-icon-wrap{background:#f3cf7a;color:#0a1a30}

/* Section Actus : photo floutée + voile -> aplat bleu nuit, dans la continuité */
body.noel:has(main > section.home91) .home-actu::before{opacity:0 !important}
body.noel:has(main > section.home91) .home-actu{background:#01172b}
body.noel:has(main > section.home91) .home-actu::after{background:transparent !important}

/* Footer : déjà sombre, accents rouges en doré + filet en haut */
body.noel:has(main > section.home91) .site-footer{box-shadow:inset 0 2px 0 #d4a94e}
body.noel:has(main > section.home91) .sf-brand-season,
body.noel:has(main > section.home91) .sf-bottom-sep,
body.noel:has(main > section.home91) .sf-bottom-left .heart{color:#f3cf7a}
