/* Décor de Noël 2026 (src/noel.php, templates/_noel.php, assets/noel.js) : chargé du 14/11 au 26/12 seulement. */

/* ---- bandeau « tableau noir » */
.noel { position: relative; z-index: 31; color: #fff; padding-top: 58px;
  background-color: #14213D;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(120% 140% at 15% 0%, rgba(47,163,127,.22), transparent 55%), radial-gradient(90% 120% at 90% 10%, rgba(228,87,46,.18), transparent 60%);
  background-size: 24px 24px, 24px 24px, auto, auto; }
.noel__barre { display: flex; align-items: center; gap: 22px; padding-bottom: 12px; position: relative; }
.noel-sapin { flex: none; width: 62px; height: auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(47,163,127,.35)); }
.noel-sapin__etoile { transform-box: fill-box; transform-origin: center; animation: noel-etoile 3.2s ease-in-out infinite; }
.noel-sapin__boule { animation: noel-clignote 3s ease-in-out var(--d, 0s) infinite; }
.noel__texte { flex: 1; min-width: 0; }
.noel__titre { margin: 0; font: 600 1.06rem/1.35 var(--titre); letter-spacing: -.01em; }
.noel__titre strong { background: var(--jaune); color: #14213D; padding: 0 6px; white-space: nowrap; }
.noel__compte { display: inline-block; margin-left: 8px; font: 500 .8rem/1 var(--mono); letter-spacing: .06em; padding: 4px 8px; border: 1px dashed rgba(255,255,255,.55); vertical-align: 2px; white-space: nowrap; }
.noel__compte:empty { display: none; }
.noel__plus { margin: 4px 0 0; font-size: .86rem; color: rgba(255,255,255,.78); }
.noel__actions { flex: none; display: flex; align-items: center; gap: 16px; margin: 0; }
.noel__bouton { display: inline-flex; align-items: center; gap: 8px; background: var(--jaune); color: #14213D; font-weight: 600; text-decoration: none; padding: 10px 18px; border: 2px solid #14213D; box-shadow: 4px 4px 0 #FFFFFF; transition: transform .15s, box-shadow .15s; }
.noel__bouton::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10h18v4H3zM5 14h14v7H5zM11 10h2v11h-2zM12 10C9 10 6.5 8.5 7.5 6.5S11 6 12 10C13 6 15.5 4.5 16.5 6.5S15 10 12 10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10h18v4H3zM5 14h14v7H5zM11 10h2v11h-2zM12 10C9 10 6.5 8.5 7.5 6.5S11 6 12 10C13 6 15.5 4.5 16.5 6.5S15 10 12 10z'/%3E%3C/svg%3E") center / contain no-repeat; }
.noel__bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #FFFFFF; }
.noel__lien { color: #fff; font-size: .9rem; text-underline-offset: 3px; }
.noel__neige { position: absolute; left: 0; right: 0; bottom: -13px; width: 100%; height: 14px; fill: #14213D; pointer-events: none; }

/* ---- guirlande : fil en chaînette, boules qui se balancent (survol ou toucher : leur valeur) */
.noel__guirlande { position: absolute; inset: 0 0 auto; height: 58px; pointer-events: none; }
.noel__fil { position: absolute; inset: 0; width: 100%; height: 40px; }
.noel__fil path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 2 3; }
.noel__boule { position: absolute; width: 30px; height: 40px; margin: 0 0 0 -15px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform-origin: 50% 0; animation: noel-balance 4.6s ease-in-out var(--d, 0s) infinite; }
.noel__boule::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 9px; background: rgba(255,255,255,.6); }
.noel__boule::after { content: ""; position: absolute; left: 50%; top: 7px; width: 8px; height: 5px; margin-left: -4px; background: #C9B26B; border-radius: 1px; }
.noel__boule span { position: absolute; left: 3px; top: 11px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--titre); color: #14213D;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 9%, transparent 30%), var(--teinte); box-shadow: inset -3px -4px 6px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.35); }
.noel__boule:hover, .noel__boule[data-montre] { animation-play-state: paused; }
.noel__boule span { transition: transform .2s; }
.noel__boule:hover span, .noel__boule[data-montre] span { transform: scale(1.15); }
.noel__infobulle { position: absolute; z-index: 40; transform: translate(-50%, 0); background: #fff; color: #14213D; font: 500 .78rem/1 var(--mono); padding: 6px 8px; white-space: nowrap; pointer-events: none; box-shadow: 3px 3px 0 var(--jaune); }

/* ---- bloc d'achat des fiches : un nœud de ruban sur le bouton */
.noel-actif .achat button[type=submit] { position: relative; }
.noel-actif .achat button[type=submit]::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; background: var(--jaune);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10h18v4H3zM5 14h14v7H5zM11 10h2v11h-2zM12 10C9 10 6.5 8.5 7.5 6.5S11 6 12 10C13 6 15.5 4.5 16.5 6.5S15 10 12 10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10h18v4H3zM5 14h14v7H5zM11 10h2v11h-2zM12 10C9 10 6.5 8.5 7.5 6.5S11 6 12 10C13 6 15.5 4.5 16.5 6.5S15 10 12 10z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- vitrine de l'accueil : « Sous le sapin, une formule », six étiquettes cadeaux sur un ruban */
@font-face { font-family: "Garamond Noel"; src: url(/polices/eb-garamond-500-italique.woff2) format("woff2"); font-style: italic; font-display: swap; }
.noel-vitrine { position: relative; margin: 8px 0 40px; padding: 44px 0 40px; color: #fff; overflow: hidden;
  background-color: #14213D;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(70% 90% at 85% 0%, rgba(228,87,46,.2), transparent 60%), radial-gradient(60% 80% at 5% 100%, rgba(47,163,127,.22), transparent 60%);
  background-size: 24px 24px, 24px 24px, auto, auto; }
.noel-vitrine::before { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 26px; background: linear-gradient(#FFE27A, #FFD23F 40%, #E8B414); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.noel-vitrine__tete { position: relative; }
.noel-vitrine__sur { margin: 0; font: 500 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
.noel-vitrine h2 { margin: 10px 0 8px; font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--titre); letter-spacing: -.02em; color: #fff; }
.noel-vitrine__chapo { margin: 0; color: rgba(255,255,255,.82); }
.noel-vitrine__liste { position: relative; list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.noel-etiquette a { position: relative; display: grid; gap: 6px; padding: 26px 12px 14px; background: #FBF7EC; color: #14213D; text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); transform: rotate(var(--penche, 0deg)); transition: transform .25s, box-shadow .25s; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.noel-etiquette a::before { content: ""; position: absolute; left: 50%; top: 9px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #14213D; box-shadow: inset 0 0 0 2px #C9B26B; }
.noel-etiquette a::after { content: ""; position: absolute; left: 50%; top: -30px; width: 2px; height: 44px; background: #E4572E; transform: rotate(8deg); transform-origin: bottom; }
.noel-etiquette a:hover, .noel-etiquette a:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.45); }
.noel-etiquette__pour { font: italic 500 1.05rem/1.15 "Garamond Noel", Georgia, serif; color: #8A2B12; text-align: center; min-height: 2.3em; display: grid; place-items: center; }
.noel-etiquette img { width: 100%; height: auto; display: block; box-shadow: 0 3px 8px rgba(20,33,61,.25); }
.noel-etiquette__titre { font: 600 .9rem/1.2 var(--titre); }
.noel-etiquette__prix { font: 500 .8rem/1 var(--mono); }
.noel-etiquette__prix::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #2FA37F; }
.noel-vitrine__suite { position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; }
.noel-vitrine__suite .lien-fleche { color: #fff; }
@media (max-width: 1100px) { .noel-vitrine__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } .noel-vitrine::before { top: 46%; } }
@media (max-width: 640px) { .noel-vitrine__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .noel-vitrine::before { display: none; } }

/* ---- flocons de Koch : au-dessus du contenu (les sections ont leur propre fond) mais sous l'en-tête, transparents au clic */
.noel-flocons { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 25; pointer-events: none; }

@keyframes noel-balance { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes noel-etoile { 0%, 100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 2px #FFD23F); } 50% { transform: scale(1.18) rotate(12deg); filter: drop-shadow(0 0 7px #FFD23F); } }
@keyframes noel-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 760px) {
  .noel { padding-top: 0; }
  .noel__guirlande, .noel__plus, .noel__lien { display: none; }
  .noel__barre { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .noel-sapin { width: 38px; }
  .noel__titre { font-size: .9rem; }
  .noel__bouton { padding: 8px 12px; font-size: .88rem; box-shadow: 3px 3px 0 #FFFFFF; }
}
@media (prefers-reduced-motion: reduce) {
  .noel__boule, .noel-sapin__etoile, .noel-sapin__boule { animation: none; }
  .noel-flocons { display: none; }
}
