/* ==========================================================
   THEME NOEL - surcouche de style.css
   style.css contient le site complet (thème normal).
   Ce fichier change les couleurs et ajoute les décorations.

   POUR REVENIR AU THEME NORMAL : renommer ce fichier
   (ex. noel.css -> noel.css.off). Rien d'autre à modifier :
   le sapin cliquable (noel.js) se désactive tout seul.
   ========================================================== */

/* ---------- Couleurs de Noël (remplacent celles de style.css) ---------- */
:root{
  --noel:1;                /* drapeau lu par noel.js : thème actif */
  --brun:#7d1219;
  --brun-clair:#1f5f3f;
  --accent:#1f5f3f;
  --accent-vif:#e8b84a;
  --creme:#e6eff6;
  --creme-fonce:#d3e3ee;
  --ligne:#d9e4ec;
  --vert:#1f5f3f;
  --rouge:#b3202a;
}

/* ---------- Neige qui tombe (derrière le texte, sans clic bloqué) ---------- */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(3px 3px at 20px 30px,  #fff 98%, transparent),
    radial-gradient(2px 2px at 80px 120px, #fff 98%, transparent),
    radial-gradient(4px 4px at 150px 60px, #fff 98%, transparent),
    radial-gradient(2px 2px at 210px 180px,#fff 98%, transparent),
    radial-gradient(3px 3px at 270px 90px, #fff 98%, transparent);
  background-size:300px 220px;
  animation:neige 14s linear infinite;
}
@keyframes neige{
  from{ background-position:0 0; }
  to  { background-position:50px 220px; }
}

/* ---------- Sol enneigé en bas de l'écran ---------- */
body::after{
  content:"";
  position:fixed;
  left:0; right:0; bottom:0;
  height:34px;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(ellipse 70px 26px at 40px 100%, #fff 96%, transparent 100%) 0 0 / 110px 34px repeat-x,
    radial-gradient(ellipse 90px 20px at 95px 100%, #f1f7fb 96%, transparent 100%) 0 0 / 170px 34px repeat-x;
}

/* ---------- En-tête rouge + liseré "sucre d'orge" ---------- */
header{
  background:linear-gradient(180deg, #b3202a 0%, #7d1219 100%);
  border-bottom:10px solid transparent;
  border-image:repeating-linear-gradient(45deg, #c1121f 0 14px, #fff 14px 28px) 10;
}
.ribbon{ padding-left:70px; padding-right:70px; }   /* place pour le sapin à droite */
.ribbon span{ color:#fff4e6; }
.ribbon a:hover span{ color:#7d1219; }

/* ---------- Guirlande lumineuse sous l'en-tête ---------- */
header::after{
  content:"";
  position:absolute;
  left:0; right:0; top:calc(100% + 10px);   /* sous le liseré */
  height:28px;
  z-index:101;
  pointer-events:none;
  background:
    radial-gradient(circle 5px at 16px 16px,  #ff5252 90%, transparent) 0 0 / 160px 28px repeat-x,
    radial-gradient(circle 5px at 56px 17px,  #ffd54f 90%, transparent) 0 0 / 160px 28px repeat-x,
    radial-gradient(circle 5px at 96px 16px,  #69f0ae 90%, transparent) 0 0 / 160px 28px repeat-x,
    radial-gradient(circle 5px at 136px 17px, #64b5f6 90%, transparent) 0 0 / 160px 28px repeat-x,
    linear-gradient(90deg, transparent 15px,#333 15px 17px, transparent 17px 55px,#333 55px 57px,
                    transparent 57px 95px,#333 95px 97px, transparent 97px 135px,#333 135px 137px,
                    transparent 137px) 0 3px / 160px 9px repeat-x,
    linear-gradient(#2b2b2b,#2b2b2b) 0 2px / 100% 2px no-repeat;
  filter:drop-shadow(0 0 4px rgba(255,235,150,.7));
  animation:scintille 2.2s ease-in-out infinite alternate;
}
@keyframes scintille{
  from{ opacity:.55; }
  to  { opacity:1; }
}

/* ---------- Titres : flocons sous le titre ---------- */
.titre::after{
  content:"\2744  \2744  \2744";
  width:auto;
  height:auto;
  margin-top:8px;
  background:none;
  font-size:18px;
  letter-spacing:.3em;
  color:#79b4de;
}

/* ---------- Cartes : flocons dans les titres de tableaux ---------- */
.catalogue th::before, .catalogue th::after,
.Horaires th::before,  .Horaires th::after,
.Contact th::before,   .Contact th::after{
  content:"\2744";
  margin:0 .6em;
  opacity:.65;
  font-size:.85em;
}

/* ---------- Bandeau des fêtes : pointillés rouges + décorations ---------- */
.bandeau-fetes{
  position:relative;
  border:3px dashed var(--rouge);
}
.bandeau-fetes h2{ color:var(--brun); }
.bandeau-fetes::before{
  content:"\1F384";             /* sapin */
  position:absolute;
  top:-20px; left:-12px;
  font-size:34px;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.25));
}
.bandeau-fetes::after{
  content:"\1F381";             /* cadeau */
  position:absolute;
  bottom:-16px; right:-10px;
  font-size:32px;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.25));
}

/* ---------- Photo d'accueil : cadre "sucre d'orge" ---------- */
#photo_accueil{
  border:10px solid transparent;
  border-image:repeating-linear-gradient(45deg, #c1121f 0 12px, #fff 12px 24px) 10;
  border-radius:0;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* ---------- Photos du catalogue : petit liseré rouge ---------- */
.photoIndexCatalogue{ outline:3px solid #fff; outline-offset:-3px; box-shadow:0 0 0 2px #b3202a, 0 4px 10px rgba(0,0,0,.25); }

/* ==========================================================
   SAPIN CLIQUABLE (créé par noel.js) ET TRAINEAU DU PERE NOEL
   ========================================================== */
.sapin-noel{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-52%);
  padding:4px;
  background:none;
  border:0;
  cursor:pointer;
  z-index:5;
  line-height:0;
  filter:drop-shadow(0 0 6px rgba(255,225,130,.7));
  transition:transform .2s;
}
.sapin-noel:hover{ transform:translateY(-52%) scale(1.14) rotate(-4deg); }
.sapin-noel:focus-visible{ outline:3px solid #ffd54f; outline-offset:3px; border-radius:8px; }
.sapin-noel.actif{ animation:sapin-secoue .35s ease-in-out 3; }
.sapin-noel .l{ animation:scintille 1.4s ease-in-out infinite alternate; }
.sapin-noel .l2{ animation-delay:.45s; }
.sapin-noel .l3{ animation-delay:.9s; }
@keyframes sapin-secoue{
  0%,100%{ transform:translateY(-52%) rotate(0); }
  25%{ transform:translateY(-52%) rotate(-7deg); }
  75%{ transform:translateY(-52%) rotate(7deg); }
}

.traineau-noel{
  position:fixed;
  left:0;
  top:20vh;
  width:300px;
  z-index:300;
  pointer-events:none;          /* ne gêne aucun clic */
  transform:translateX(-110%);
  animation:traineau-vol 9s linear forwards;
}
.traineau-noel svg{
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 5px 6px rgba(0,0,0,.25));
  animation:traineau-bob 1.1s ease-in-out infinite alternate;
}
@keyframes traineau-vol{
  from{ transform:translateX(-110%); }
  to  { transform:translateX(100vw); }
}
@keyframes traineau-bob{
  from{ transform:translateY(-8px) rotate(-2deg); }
  to  { transform:translateY(8px)  rotate(2deg); }
}
@keyframes traineau-fondu{
  0%{ opacity:0; } 15%,85%{ opacity:1; } 100%{ opacity:0; }
}

/* ---------- Mobile ---------- */
@media (max-width:700px){
  header{ position:relative; }          /* repère pour le sapin et la guirlande */
  .ribbon{ padding-left:12px; padding-right:54px; }
  .sapin-noel{ right:8px; }
  .sapin-noel svg{ width:34px; height:39px; }
  .traineau-noel{ width:200px; animation-duration:7s; }
  .bandeau-fetes::before{ left:-6px; font-size:28px; }
  .bandeau-fetes::after{ right:-4px; font-size:26px; }
}

/* ---------- Respect de "réduire les animations" ---------- */
@media (prefers-reduced-motion: reduce){
  body::before, header::after, .sapin-noel .l, .sapin-noel.actif{ animation:none; }
  .traineau-noel{
    left:50%;
    margin-left:-150px;
    transform:none;
    animation:traineau-fondu 3s ease forwards;
  }
  .traineau-noel svg{ animation:none; }
}
@media (prefers-reduced-motion: reduce) and (max-width:700px){
  .traineau-noel{ margin-left:-100px; }
}
