/* Radinz 2.0 — édition de Noël.
   Tout ce fichier est conditionné par [data-season="christmas"] ou par des éléments que seul
   noel.js ajoute : en saison "default", aucune de ces règles ne s'applique et aucune image
   de assets/noel/ n'est téléchargée.
   Palette : violet prune de la marque, or doux, crème, vert sapin, une touche de rouge.
   Les décors viennent du kit fourni (sources/noel/kit) : jamais redessinés, proportions gardées. */

/* ---------- bandeau de saison ---------- */
#seasonbar[hidden], #garland[hidden], #season-layer[hidden] { display: none; }
.seasonbar { position: relative; z-index: 3; background: linear-gradient(90deg, #173F33, #226A53 50%, #173F33); color: #FFF2DF; font-size: 13.5px; }
.seasonbar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; }
.sb-msg { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sb-msg .ic { width: 18px; height: 18px; color: #FFD58B; }
.sb-msg b { font-weight: 800; }
.sb-msg span { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #FFD58B; font-weight: 800; font-size: 12.5px; }
.sb-actions { display: flex; gap: 6px; flex: none; }
.sb-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); background: transparent; color: #FFF2DF; font-size: 12.5px; font-weight: 700; transition: background var(--radinz-transition), color var(--radinz-transition); }
.sb-btn::after { content: ""; position: absolute; inset: -6px -2px; }
.sb-btn .ic { width: 15px; height: 15px; }
.sb-btn:hover { background: rgba(255, 255, 255, .16); }
.sb-btn[aria-checked="true"] { background: #FFF2DF; color: #173F33; border-color: transparent; }
.sb-btn:focus-visible { outline-color: #FFD58B; }
@media (max-width: 420px) { .sb-msg b { display: none; } }
@media (max-width: 340px) { .sb-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .sb-btn { padding: 0 9px; } }

/* ---------- guirlande lumineuse (sous la barre de catégories) ----------
   L'image du kit est posée telle quelle ; chaque ampoule porte un calque « éteint » (::after)
   et un halo (::before) dont on anime seulement l'opacité : les ampoules clignotent par couleur. */
#garland { position: relative; z-index: 2; height: 0; --gs: 1; }
@media (min-width: 900px) { #garland { --gs: 1.3; } }
@media (min-width: 1400px) { #garland { --gs: 1.5; } }
.guirlande { position: absolute; left: 0; top: -2px; display: flex; width: calc(100% / var(--gs)); height: 40px; overflow: hidden; transform: scale(var(--gs)); transform-origin: 0 0; pointer-events: none; }
.guirlande-tuile { position: relative; flex: none; width: 700px; height: 40px; background: url("../assets/noel/guirlande.webp") 0 0 / 700px 40px no-repeat; }
.amp { position: absolute; pointer-events: auto; cursor: pointer; }
.amp::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 66%); opacity: .8; animation: noel-halo 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -.6s); }
.amp::after { content: ""; position: absolute; inset: 0; background: url("../assets/noel/guirlande-eteinte.webp") var(--bx) var(--by) / 700px 40px no-repeat; opacity: 0; animation: noel-eteint 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -.6s); }
@keyframes noel-eteint { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes noel-halo { 0%, 38% { opacity: .8; } 50%, 88% { opacity: 0; } 100% { opacity: .8; } }
.guirlande[data-mode="vague"] .amp::before, .guirlande[data-mode="vague"] .amp::after { animation-duration: 2.2s; animation-delay: calc(var(--i) * -.14s); }
.guirlande[data-mode="fixe"] .amp::before, .guirlande[data-mode="fixe"] .amp::after, .season-still .amp::before, .season-still .amp::after { animation: none; }
.amp:hover::before { opacity: 1; inset: -10px; animation-play-state: paused; }
.amp:hover::after { opacity: 0; animation-play-state: paused; }

/* ---------- neige ---------- */
#season-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; contain: strict; }
.flake { position: absolute; top: -26px; display: block; border-radius: 50%; background: var(--radinz-season-flake, #fff); animation-name: noel-chute, noel-vent; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; will-change: translate, transform; }
.flake.shape { border-radius: 0; background: url("../assets/noel/flocon-lavande.webp") center / contain no-repeat; }
[data-theme="dark"] .flake.shape, .hero-neige .flake.shape { background-image: url("../assets/noel/flocon-blanc.webp"); }
@keyframes noel-chute { from { translate: 0 -4vh; } to { translate: 0 108vh; } }
@keyframes noel-chute-hero { from { translate: 0 0; } to { translate: 0 440px; } }
@keyframes noel-vent { from { transform: translateX(-14px) rotate(-20deg); } to { transform: translateX(14px) rotate(60deg); } }
.season-still .flake { display: none; }

/* ---------- hero de Noël ---------- */
[data-season="christmas"] main { padding-top: 40px; }
[data-season="christmas"] .hero { padding-bottom: calc(clamp(18px, 3vw, 34px) + 26px); }
[data-season="christmas"] .hero-bg::after { background: rgba(34, 106, 83, .30); }
[data-season="christmas"] .hero h1 em { color: #FFD58B; background: linear-gradient(100deg, #FFD58B 25%, #FFF8E6 45%, #FFD58B 65%); background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: noel-or 4.5s linear infinite; }
@keyframes noel-or { from { background-position: 130% 0; } to { background-position: -100% 0; } }
[data-season="christmas"] .hero-art .fox { width: clamp(124px, 24vw, 282px); margin-bottom: -6px; }
.hero-noel { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hero-noel img { position: absolute; height: auto; max-width: none; }
.hero-neige { position: absolute; inset: 0; }
.hero-neige .flake { animation-name: noel-chute-hero, noel-vent; }
.hero-neige .flake:not(.shape) { background-color: #fff; }
.hn-cluster { left: 49%; top: 4%; width: clamp(80px, 11%, 120px); opacity: .45; }
.hn-etoile { animation: noel-scintille 3.2s ease-in-out infinite; }
.hn-etoile-1 { left: 46%; top: 60%; width: 20px; }
.hn-etoile-2 { left: 3.5%; top: 9%; width: 15px; animation-delay: -1.6s; }
@keyframes noel-scintille { 0%, 100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.1) rotate(12deg); } }
.hn-sapin-1 { right: -1.5%; bottom: 14px; width: clamp(92px, 19%, 190px); }
.hn-sapin-2 { right: clamp(210px, 33%, 330px); bottom: 12px; width: clamp(60px, 10.5%, 108px); }
.hn-neige { left: 50%; bottom: 0; width: max(102%, 640px); transform: translate(-50%, 44%); }
.hn-cadeaux { right: clamp(150px, 27%, 268px); bottom: 5px; width: clamp(46px, 8.5%, 86px); }
.season-still .hn-etoile, .season-still .hero h1 em { animation: none !important; }
@media (max-width: 899px) { .hn-cluster { display: none; } }
@media (max-width: 359px) { .hn-cadeaux { display: none; } }
@media (max-width: 599px) {
  .hero-noel .decor-secondaire, .hotte-noel .decor-secondaire { display: none; }
  .hn-sapin-1 { right: -16px; bottom: 8px; width: 96px; }
  .hn-cadeaux { right: 62px; bottom: 3px; width: 50px; }
  [data-season="christmas"] .hero-art .fox { width: 118px; margin: 0; }
}

/* ---------- touches de saison sur l'interface ---------- */
[data-season="christmas"] #catbar { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #226A53, #FFD58B 30%, #7C3AED 50%, #FFD58B 70%, #226A53) 1; }
[data-season="christmas"] .hotcard { background: var(--radinz-season-cream); border-color: #F1DDB9; }
[data-season="christmas"][data-theme="dark"] .hotcard { background: #2B2440; border-color: #4A3F63; }
[data-season="christmas"] .hotcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13px; pointer-events: none; background: radial-gradient(circle at 50% 0, #fff 10px, transparent 11px) 0 0 / 27px 13px repeat-x, radial-gradient(circle at 50% 0, #fff 7px, transparent 8px) 13px 0 / 27px 10px repeat-x; filter: drop-shadow(0 1px 1px rgba(60, 40, 120, .18)); }
[data-season="christmas"] .deal-in:hover { border-color: #E5C47C; box-shadow: 0 10px 24px rgba(23, 18, 37, .11), 0 0 0 3px rgba(255, 213, 139, .28); }
[data-season="christmas"] .tab-plus { box-shadow: 0 6px 14px rgba(124, 58, 237, .35), 0 0 0 3px rgba(255, 213, 139, .55); }
[data-season="christmas"] .context { background: var(--radinz-season-cream); }
[data-season="christmas"][data-theme="dark"] .context { background: #2B2440; }

/* ---------- la hotte des bons plans ---------- */
.hotte { position: relative; margin: 34px 0 34px; padding: clamp(14px, 2.2vw, 22px); border-radius: var(--radinz-radius-lg); background: linear-gradient(120deg, #173F33 0%, #226A53 52%, #2B1A47 100%); color: #FFF2DF; }
.hotte-noel { position: absolute; inset: 0; pointer-events: none; }
.hotte-noel img { position: absolute; height: auto; max-width: none; }
.ht-branche { left: -14px; top: -34px; width: clamp(84px, 9vw, 124px); transform: rotate(-8deg); }
.ht-boules { right: clamp(190px, 21vw, 250px); top: -4px; width: 46px; transform-origin: 50% 0; animation: noel-balance 4.2s ease-in-out infinite; }
@keyframes noel-balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ht-cadeau-1 { right: -12px; bottom: -20px; width: 62px; }
.ht-cadeau-2 { right: 42px; bottom: -16px; width: 44px; }
.season-still .ht-boules { animation: none; }
.hotte-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; padding: 6px 150px 0 clamp(0px, 7vw, 92px); min-height: 84px; }
.ht-renard { position: absolute; right: 4px; bottom: -8px; width: 132px; height: auto; pointer-events: none; }
.hotte h2 { display: flex; align-items: center; gap: 9px; font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -.025em; color: #FFF2DF; }
.hotte h2 .ic { width: 25px; height: 25px; color: #FFD58B; }
.hotte-head p { margin-top: 4px; font-size: 14px; color: #D9ECE2; max-width: 46em; }
.hotte .panel-empty { color: #D9ECE2; }
.btn-gift { background: #FFD58B; color: #171225; }
.btn-gift:hover { background: #FFE3AE; box-shadow: 0 6px 18px rgba(255, 213, 139, .4); }
.btn-gift .ic { animation: noel-remue 2.8s ease-in-out infinite; }
@keyframes noel-remue { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 94% { transform: rotate(-6deg); } }
.season-still .btn-gift .ic { animation: none; }
.hotte .iconbtn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #FFF2DF; }
.hotte .iconbtn:hover { background: #FFF2DF; color: #173F33; }
.hotte-scroller { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
.hotte-scroller:focus-visible { outline-color: #FFD58B; }
.hotte-item { flex: none; width: min(62vw, 208px); scroll-snap-align: start; }
.hotte .tile { color: var(--radinz-ink); }
@media (max-width: 599px) {
  .hotte { margin-top: 30px; }
  .hotte-head { padding: 26px 86px 0 0; min-height: 0; }
  .ht-renard { width: 86px; right: -4px; bottom: auto; top: -22px; }
  .ht-branche { top: -26px; left: -8px; width: 78px; }
}

/* ---------- cadeau surprise ---------- */
.gift-overlay { position: fixed; inset: 0; z-index: 135; display: grid; place-items: center; padding: 16px; background: rgba(15, 11, 26, .62); animation: fade-in .2s ease-out both; overflow-y: auto; }
.gift-card { position: relative; width: min(100%, 360px); padding: 22px 20px 20px; border-radius: 24px; background: var(--radinz-surface); color: var(--radinz-ink); text-align: center; box-shadow: var(--radinz-shadow-pop); }
.gift-close { position: absolute; top: 10px; right: 10px; }
.gift-anim { width: 96px; margin: 0 auto 4px; }
.gift-img { width: 96px; height: auto; transform-origin: 50% 90%; }
.gift-card.opening .gift-img { animation: noel-secoue .95s ease-in-out; }
.gift-card.opened .gift-img { animation: noel-ouvre .45s cubic-bezier(.2, .8, .3, 1.4) both; }
@keyframes noel-secoue { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 30% { transform: rotate(9deg); } 45% { transform: rotate(-7deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-3deg) scale(1.08); } }
@keyframes noel-ouvre { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.gift-card h2 { font-size: 22px; }
.gift-card h2:focus { outline: none; }
.gift-sub { margin-top: 2px; color: var(--radinz-muted); font-size: 14px; }
.gift-result { min-height: 236px; max-width: 236px; margin: 12px auto; text-align: left; }
.gift-result .tile { animation: pop-in .32s cubic-bezier(.2, .8, .3, 1.3) both; }

/* ---------- pied de page : frise de sapins (grands écrans) ou petits sapins (mobile) ---------- */
[data-season="christmas"] #footer { position: relative; margin-top: 52px; }
.footer-noel { position: absolute; left: 0; right: 0; bottom: 100%; height: 46px; pointer-events: none; overflow: hidden; }
.fn-frise { position: absolute; inset: 0; background: url("../assets/noel/sapins.webp") center bottom / auto 44px repeat-x; }
.fn-minis { display: none; position: absolute; inset: 0; align-items: flex-end; justify-content: space-around; padding: 0 6px; }
.fn-mini { width: auto; height: 38px; }
.fn-mini:nth-child(even) { height: 26px; }
@media (max-width: 599px) { .fn-frise { display: none; } .fn-minis { display: flex; } }
