/* ===================================================
   THÈME DE NOËL (Gérald, 2026-11-20)
   Chargé seulement pendant la période de Noël (du 20 novembre au 6 janvier, voir
   templates/layouts/layout-both-columns.tpl) ; toutes les règles sont limitées à body.mj-noel.
   Couleurs des affiches de Noël : rouge saint Nicolas, or, vert Ma Jardinerie.
   =================================================== */
body.mj-noel {
  --mj-noel-rouge: #B8141F;
  --mj-noel-rouge-fonce: #8E0E17;
  --mj-noel-or: #FFD447;
  --mj-noel-vert: #133D1F;
}

/* === Guirlande lumineuse sous la barre verte du haut === */
body.mj-noel #header .header-nav {
  position: relative;
  z-index: 3;
}
body.mj-noel #header .header-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 18px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 96px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='18' viewBox='0 0 96 18'%3E%3Cpath d='M0 2 Q12 9 24 2 T48 2 T72 2 T96 2' fill='none' stroke='%23133D1F' stroke-width='1.4'/%3E%3Cg%3E%3Crect x='10.5' y='4.6' width='3' height='2.4' rx='.6' fill='%23133D1F'/%3E%3Cellipse cx='12' cy='10.6' rx='3.1' ry='4.3' fill='%23B8141F'/%3E%3Crect x='34.5' y='4.6' width='3' height='2.4' rx='.6' fill='%23133D1F'/%3E%3Cellipse cx='36' cy='10.6' rx='3.1' ry='4.3' fill='%23FFD447'/%3E%3Crect x='58.5' y='4.6' width='3' height='2.4' rx='.6' fill='%23133D1F'/%3E%3Cellipse cx='60' cy='10.6' rx='3.1' ry='4.3' fill='%239DBC1A'/%3E%3Crect x='82.5' y='4.6' width='3' height='2.4' rx='.6' fill='%23133D1F'/%3E%3Cellipse cx='84' cy='10.6' rx='3.1' ry='4.3' fill='%23ffffff' stroke='%23d9d9d9' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E");
  filter: drop-shadow(0 0 3px rgba(255, 212, 71, .55));
  animation: mjNoelScintille 2.6s ease-in-out infinite alternate;
}
@keyframes mjNoelScintille {
  from { filter: drop-shadow(0 0 1px rgba(255, 212, 71, .25)); opacity: .9; }
  to   { filter: drop-shadow(0 0 5px rgba(255, 212, 71, .8));  opacity: 1; }
}

/* === Bandeau de saison sous le menu === */
body.mj-noel .mj-noel-bandeau {
  position: relative;
  margin: 10px 0 0;
  padding: 14px 0;
  color: #fff;
  background-color: var(--mj-noel-rouge);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M20 8v16M13 12l14 8M13 20l14-8M17 9l3 3 3-3M17 23l3-3 3 3'/%3E%3Cpath d='M78 30v12M73 33l10 6M73 39l10-6'/%3E%3Cpath d='M104 6v8M100 8l8 4M100 12l8-4'/%3E%3Cpath d='M46 42v10M42 44l8 6M42 50l8-6'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(100deg, var(--mj-noel-rouge) 0%, var(--mj-noel-rouge-fonce) 100%);
  background-size: 120px 60px, auto;
}
body.mj-noel .mj-noel-bandeau .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
body.mj-noel .mj-noel-bandeau-titre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mj-noel-or);
}
body.mj-noel .mj-noel-bandeau-titre::before,
body.mj-noel .mj-noel-bandeau-titre::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFD447' d='M12 1.5l2.9 6.6 7.1.7-5.4 4.8 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 8.8l7.1-.7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.mj-noel .mj-noel-bandeau-texte {
  font-size: 1rem;
  font-weight: 500;
}
body.mj-noel .mj-noel-bandeau-btn {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--mj-noel-rouge);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.mj-noel .mj-noel-bandeau-btn:hover,
body.mj-noel .mj-noel-bandeau-btn:focus {
  color: var(--mj-noel-rouge-fonce);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  text-decoration: none;
}
@media (max-width: 767px) {
  body.mj-noel .mj-noel-bandeau { padding: 12px 0; }
  body.mj-noel .mj-noel-bandeau .container { gap: 8px 12px; }
  body.mj-noel .mj-noel-bandeau-titre { font-size: 1rem; width: 100%; justify-content: center; }
  body.mj-noel .mj-noel-bandeau-texte { font-size: .9rem; }
}

/* === Titres de section : rouge de Noël et étoile dorée === */
body.mj-noel .featured-products .products-section-title,
body.mj-noel .js-content-wrapper .products-section-title {
  color: var(--mj-noel-rouge);
}
body.mj-noel .featured-products .products-section-title::after,
body.mj-noel .js-content-wrapper .products-section-title::after {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-left: .3em;
  vertical-align: .05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFD447' stroke='%23E0A800' stroke-width='.8' d='M12 1.5l2.9 6.6 7.1.7-5.4 4.8 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 8.8l7.1-.7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* === Pied de page : congère de neige sur le bord vert === */
body.mj-noel .footer-container {
  position: relative;
  padding-top: 3rem;
}
body.mj-noel .footer-container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 26px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 240px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 0h240v12c-20 0-24 9-44 9s-22-10-42-10-24 12-46 12-22-10-42-10-24 9-44 9-16-10-22-10z'/%3E%3Ccircle cx='60' cy='15' r='1.6' fill='%23ffffff'/%3E%3Ccircle cx='150' cy='20' r='1.3' fill='%23ffffff'/%3E%3Ccircle cx='210' cy='22' r='1.1' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* === Neige de l'accueil (assets/js/mj-noel.js) : au-dessus du contenu, jamais devant les clics === */
body.mj-noel #snow-canvas {
  z-index: 50;
}

/* Pas d'animation pour qui l'a demandé dans son système */
@media (prefers-reduced-motion: reduce) {
  body.mj-noel #header .header-nav::after { animation: none; }
  body.mj-noel .mj-noel-bandeau-btn { transition: none; }
}
