/* ==========================================================================
   LES SOINS EN COULEURS BY LAURENCE
   THÈME SAISONNIER « NOËL » — du 25 novembre au 6 janvier
   --------------------------------------------------------------------------
   Toutes les règles sont rattachées à html.noel. La classe n'est posée que
   du 25 novembre au 6 janvier (script en tête de page) : le 7 janvier, le
   site retrouve de lui-même le thème Vert & Or, sans aucune intervention.
   Aperçu à tout moment : ajouter ?noel=1 à l'adresse (?noel=0 pour l'ôter).
   Décor (neige, boules, guirlande lumineuse, sapins enneigés, cadeaux,
   ruban) : noel.js.
   Vert sapin, or et bordeaux : le thème Vert & Or reste la base.
   ========================================================================== */

html.noel{
  --nl-bordeaux:#5E1220;
  --nl-bordeaux-2:#7E1B2E;
  --nl-rubis:#9E2238;
  --nl-velours:
    radial-gradient(900px 420px at 50% -30%,rgba(214,155,61,.16),transparent 66%),
    linear-gradient(180deg,#7A1A2C 0%,#5E1220 55%,#4A0D19 100%);
}

/* ---------- Guirlande lumineuse sous la navigation ---------- */
html.noel .nl-guirlande{
  position:absolute;left:0;right:0;bottom:-7px;height:14px;pointer-events:none;z-index:1;overflow:hidden;
}
html.noel .nl-guirlande::before,
html.noel .nl-guirlande::after{
  content:"";position:absolute;inset:0;background-repeat:repeat-x;background-size:44px 14px;
}
html.noel .nl-guirlande::before{
  background-image:radial-gradient(circle at 11px 7px,#FFE7A8 0 1.8px,rgba(255,200,110,.55) 2.6px,rgba(255,190,90,0) 6px);
  animation:nl-scintille 3.2s ease-in-out infinite;
}
html.noel .nl-guirlande::after{
  background-image:radial-gradient(circle at 33px 7px,#FFD9C9 0 1.6px,rgba(230,120,120,.45) 2.6px,rgba(220,90,90,0) 6px);
  animation:nl-scintille 3.2s ease-in-out -1.6s infinite;
}
@keyframes nl-scintille{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------- Ruban de l'Avent sous la navigation ---------- */
html.noel .nl-ruban{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 18px;
  padding:11px 16px;text-align:center;text-decoration:none;
  background:var(--nl-velours);color:#F7F2E6;
  border-top:1px solid rgba(214,155,61,.55);border-bottom:1px solid rgba(214,155,61,.55);
  box-shadow:inset 0 -6px 0 -5px rgba(232,198,127,.35);
  font:500 .78rem/1.4 'Jost',system-ui,sans-serif;letter-spacing:.06em;
  max-width:none!important;width:100%;margin:0!important;box-sizing:border-box;
}
html.noel .nl-ruban .nl-etoile{color:#E8C67F;margin:0 6px}
html.noel .nl-ruban strong{color:#E8C67F;font-weight:600}
html.noel .nl-ruban .nl-ruban-cta{
  font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:#0A2119;
  background:linear-gradient(135deg,#F3D891 0%,#E0AF52 38%,#CC9038 68%,#B07A26 100%);padding:6px 12px;white-space:nowrap;
}
html.noel a.nl-ruban:hover .nl-ruban-cta{background:#0E2C22;color:#E8C67F}
html.noel a.nl-ruban:focus-visible{outline:2px solid #E8C67F;outline-offset:-4px}

/* ---------- En-têtes : neige, boules, étoiles ---------- */
html.noel :is(header.hero-maison,header.hero,header.page-hero,.entete-page,.hero-pro,header.ev-hero,header.rituel-hero,header.oracle-hero){
  position:relative;overflow:hidden;
  background:
    radial-gradient(1000px 520px at 88% -14%,rgba(214,155,61,.22),transparent 62%),
    radial-gradient(760px 480px at -6% 120%,rgba(126,27,46,.55),transparent 64%),
    linear-gradient(165deg,#11362A 0%,#0E2C22 46%,#0A2119 100%)!important;
}
html.noel main.err{position:relative;overflow:hidden}
html.noel .nl-neige{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
html.noel .nl-boules{position:absolute;inset:0 0 auto 0;height:0;pointer-events:none;z-index:3}
html.noel .nl-boule{
  position:absolute;top:0;width:var(--d,34px);transform-origin:50% 0;
  animation:nl-balance var(--duree,6.5s) ease-in-out var(--delai,0s) infinite alternate;
}
html.noel .nl-boule .fil{display:block;width:1px;height:var(--fil,60px);margin:0 auto;
  background:linear-gradient(180deg,rgba(232,198,127,.15),rgba(232,198,127,.85))}
html.noel .nl-boule svg{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 14px rgba(0,0,0,.45))}
@keyframes nl-balance{from{transform:rotate(-3.2deg)}to{transform:rotate(3.2deg)}}

/* ---------- Sections : touches de velours bordeaux ---------- */
html.noel section.bande-avis{background:var(--nl-velours)!important;border-color:rgba(214,155,61,.45)!important}
html.noel section.bande-avis .bande-etoiles{color:#E8C67F!important}
html.noel :is(.section.alt,section.alt,section.journal-accueil,section.manifeste,section.presentation-accueil){
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23B07A26' fill-opacity='.16'%3E%3Cpath d='M40 30l1.4 3.6 3.6 1.4-3.6 1.4L40 40l-1.4-3.6L35 35l3.6-1.4z'/%3E%3Cpath d='M170 110l1 2.6 2.6 1-2.6 1-1 2.6-1-2.6-2.6-1 2.6-1z'/%3E%3Ccircle cx='110' cy='60' r='1.2'/%3E%3Ccircle cx='60' cy='170' r='1'/%3E%3Ccircle cx='190' cy='190' r='1.3'/%3E%3C/g%3E%3C/svg%3E")!important;
  background-size:220px 220px!important;
}

/* ---------- Boutons : au survol, velours bordeaux ---------- */
html.noel :is(.btn,.btn-nav):not(.btn-ghost):hover{
  background:var(--nl-velours)!important;color:#F3D891!important;border-color:#D69B3D!important;
  box-shadow:inset 0 -2px 0 #D69B3D!important;
}

/* ---------- En-têtes : sapins enneigés et cadeaux, tapis de neige ---------- */
html.noel .nl-scene{position:absolute;left:0;right:0;bottom:0;height:0;pointer-events:none;z-index:1}
html.noel .nl-congere{position:absolute;left:0;bottom:-1px;width:100%;height:clamp(14px,2.2vw,26px);display:block}
html.noel .nl-coin{position:absolute;bottom:clamp(3px,.7vw,9px);width:clamp(92px,12.5vw,186px);height:auto;display:block;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,.35))}
html.noel .nl-coin-g{left:clamp(4px,1.4vw,26px)}
html.noel .nl-coin-d{right:clamp(4px,1.4vw,26px)}
html.noel header.hero-maison .nl-coin{width:clamp(84px,9vw,132px)}
html.noel header.hero-maison .nl-coin-g{left:clamp(2px,.6vw,12px)}
html.noel header.hero-maison .nl-coin-d{right:clamp(2px,.6vw,12px)}

/* ---------- Pied de page : sapins enneigés et cadeaux ---------- */
html.noel footer{position:relative}
html.noel .nl-sapins{position:relative;display:block;width:min(680px,94%);height:auto;margin:-10px auto 34px;pointer-events:none;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.35))}

/* ---------- Petites touches ---------- */
html.noel ::selection{background:#F1D6DB;color:#4A0D19}
html.noel .lecture-progression span{background:linear-gradient(90deg,#7E1B2E,#D69B3D,#E8C67F)!important}

/* ---------- Téléphone ---------- */
@media (max-width:640px){
  html.noel .nl-ruban{font-size:.72rem;padding:9px 12px;gap:6px 10px}
  html.noel .nl-coin-g{display:none}
  html.noel .nl-coin,html.noel header.hero-maison .nl-coin{width:74px}
  html.noel .nl-ruban .nl-ruban-texte-long{display:none}
}

/* ---------- Moins de mouvement ---------- */
@media (prefers-reduced-motion:reduce){
  html.noel .nl-guirlande::before,html.noel .nl-guirlande::after,html.noel .nl-boule{animation:none}
  html.noel .nl-neige{display:none}
}
