/* ═══════════════════════════════════════════════════════════════════════════════════
   PIXELWAREZPLAY · THÈME HIVER & NOËL 2026 — Transformation complète
   Palette : blanc neige, bleu glacier, bleu nuit, argent, or chaleureux
   Effets : neige animée, verre givré (glassmorphism), stalactites, cristaux, lumières de Noël
   ═══════════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Couleurs hiver/noël */
  --winter-snow: #ffffff;
  --winter-snow-soft: #f8fafc;
  --winter-ice: #e0f2fe;
  --winter-ice-2: #bae6fd;
  --winter-glacier: #0ea5e9;
  --winter-glacier-2: #0284c7;
  --winter-deep: #0c1d2b;
  --winter-night: #0f172a;
  --winter-silver: #cbd5e1;
  --winter-silver-2: #94a3b8;
  --winter-gold: #fbbf24;
  --winter-gold-2: #f59e0b;
  --winter-red: #dc2626;
  --winter-green: #16a34a;
  --winter-text: #0f172a;
  --winter-text-2: #1e293b;
  --winter-text-3: #64748b;
  --winter-border: rgba(14, 165, 233, 0.18);
  --winter-border-2: rgba(14, 165, 233, 0.35);
  --winter-glow: 0 8px 28px rgba(14, 165, 233, 0.15);
  --winter-glow-strong: 0 14px 40px rgba(14, 165, 233, 0.22);
  --winter-warm-glow: 0 8px 28px rgba(251, 191, 36, 0.18);
  
  /* Badge saisonnier Hiver 2026 */
  --season-badge-bg: linear-gradient(135deg, #0c1d2b, #0ea5e9, #0284c7);
  --season-badge-text: #fffdf8;
  
  /* Brouillard/givre */
  --frost-opacity: 0.12;
  --frost-color: #e0f2fe;
}

/* ── Base hiver ── */
body.theme-winter {
  --bg: #f0f9ff;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.85);
  --card2: #f0f9ff;
  --border: var(--winter-border);
  --border2: var(--winter-border-2);
  --text: var(--winter-text);
  --text2: var(--winter-text-2);
  --text3: var(--winter-text-3);
  --accent: var(--winter-glacier);
  --accent2: var(--winter-glacier-2);
  --cyan: #06b6d4;
  --cyan2: #0891b2;
  --green: var(--winter-green);
  --red: var(--winter-red);
  --yellow: var(--winter-gold);
  --shadow: var(--winter-glow);
  --shadow-lg: var(--winter-glow-strong);
  
  background:
    radial-gradient(ellipse at 5% 5%, rgba(14, 165, 233, 0.12), transparent 30%),
    radial-gradient(ellipse at 95% 8%, rgba(251, 191, 36, 0.06), transparent 25%),
    radial-gradient(ellipse at 50% 100%, rgba(14, 165, 233, 0.08), transparent 35%),
    linear-gradient(180deg, #f8faff 0%, #f0f9ff 25%, #e0f2fe 55%, #f8faff 100%) !important;
  color: var(--winter-text);
}

/* Empêcher le filtre full-screen qui casse le scroll */
body.theme-winter::before {
  content: none !important;
  display: none !important;
}

/* ── Couche de neige animée (arrière-plan fixe) ── */
.snow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  width: 8px;
  height: 8px;
  background: url("/assets/img/snowflake.svg") center / contain no-repeat;
  opacity: 0.6;
  will-change: transform, opacity;
  animation: snowFall linear infinite;
}

@keyframes snowFall {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(var(--drift, 0));
    opacity: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .snowflake { animation: none !important; opacity: 0.15; }
}

/* ── Badge saisonnier "Hiver 2026" ── */
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--season-badge-bg);
  color: var(--season-badge-text);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(12, 29, 43, 0.4);
  animation: seasonBadgePulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.season-badge::before {
  content: "❄️";
  font-size: 12px;
}

.season-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: seasonBadgeShine 2.5s ease-in-out infinite;
}

@keyframes seasonBadgePulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(12, 29, 43, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55); }
}

@keyframes seasonBadgeShine {
  0% { transform: translateX(-100%) rotate(-20deg); }
  100% { transform: translateX(100%) rotate(-20deg); }
}

/* Badge sur profil membre actif */
body.theme-winter .header-user .season-badge,
body.theme-winter .sidebar-username .season-badge,
body.theme-winter .profile-header .season-badge {
  margin-left: 8px;
  font-size: 10px;
  padding: 2px 8px;
}

body.theme-winter .profile-header .season-badge {
  margin-left: 0;
  margin-top: 8px;
}

/* Badge dans la liste des membres */
body.theme-winter .members-table .season-badge,
body.theme-winter .staff-card .season-badge {
  margin-left: 8px;
}

/* ── Header desktop : bordure glacée + stalactites ── */
body.theme-winter .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.95)) !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg,
    #0284c7 0%,
    #0ea5e9 15%,
    #06b6d4 30%,
    #fbbf24 45%,
    #dc2626 50%,
    #fbbf24 55%,
    #06b6d4 70%,
    #0ea5e9 85%,
    #0284c7 100%) 1 !important;
  box-shadow:
    0 8px 24px rgba(14, 165, 233, 0.12),
    0 2px 0 rgba(14, 165, 233, 0.25) inset !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 56;
  overflow: visible;
}

/* Stalactites suspendues sous le header (SVG) */
body.theme-winter .site-header::before {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 24px;
  pointer-events: none;
  z-index: 10;
  background-image: url("/assets/img/icicles.svg");
  background-repeat: repeat-x;
  background-size: auto 24px;
  background-position: center;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.15));
  animation: icicleShimmer 4s ease-in-out infinite;
}

@keyframes icicleShimmer {
  0%, 100% { opacity: 0.9; filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.15)) brightness(1); }
  50% { opacity: 1; filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.25)) brightness(1.05); }
}

/* Accumulation de neige sur le haut du header */
body.theme-winter .site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  z-index: 11;
  background-image: url("/assets/img/snow-accumulation.svg");
  background-repeat: repeat-x;
  background-size: auto 8px;
  opacity: 0.85;
}

.main-content { margin-top: -56px; }

:root {
  --header-h: 87px !important;
  --nav-item-min-width: 80px;
}

body.theme-winter .site-header-inner {
  position: relative;
  z-index: 3;
  background: #f8faff;
}

/* Liens de nav header */
body.theme-winter .site-nav-list > li > a,
body.theme-winter .site-nav-list > li > .nav-toggle {
  color: #0c1d2b !important;
  font-weight: 600;
  border-radius: 999px;
  transition: all .2s ease;
}

body.theme-winter .site-nav-list > li > a:hover,
body.theme-winter .site-nav-list > li > .nav-toggle:hover,
body.theme-winter .site-nav-list > li.has-sub.open > .nav-toggle {
  color: #0ea5e9 !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.08)) !important;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2) inset;
}

/* Petits flocons décoratifs sur les items de nav au survol */
body.theme-winter .site-nav-list > li > a:hover::after,
body.theme-winter .site-nav-list > li > .nav-toggle:hover::after {
  content: " ❄";
  font-size: 10px;
  animation: navSnowSpin 1.5s ease-in-out infinite;
}

@keyframes navSnowSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

body.theme-winter .site-nav .subnav,
body.theme-winter .site-overflow-panel,
body.theme-winter .site-search-panel {
  background: linear-gradient(180deg, #f8faff, #e0f2fe) !important;
  border: 1px solid rgba(14, 165, 233, 0.22) !important;
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.14) !important;
}

body.theme-winter .site-nav .subnav a:hover {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
}

/* Logo accent */
body.theme-winter .site-logo img {
  filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.18));
}

/* Boutons header */
body.theme-winter .btn-primary,
body.theme-winter .pw-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border-color: #0284c7 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.28) !important;
}

body.theme-winter .btn-primary:hover,
body.theme-winter .pw-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35) !important;
}

body.theme-winter .btn-outline {
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: #0284c7 !important;
  background: rgba(240, 249, 255, 0.8);
}

body.theme-winter .btn-outline:hover {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: #0ea5e9 !important;
  color: #0c1d2b !important;
}

/* ── Sidebar / menu slide : thème hiver + neige + givre ── */
body.theme-winter .sidebar {
  background: #f0f9ff;
  box-shadow: 10px 0 34px rgba(14, 165, 233, 0.1);
  border: 0;
  overflow: visible;
}

/* Accumulation de neige sur le bord supérieur de la sidebar */
body.theme-winter .sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: none;
  z-index: 1;
  background-image: url("/assets/img/snow-accumulation.svg");
  background-repeat: repeat-x;
  background-size: auto 12px;
  opacity: 0.85;
}

/* Cristaux de givre sur les contours */
body.theme-winter .sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 2px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(14, 165, 233, 0.3) 10%,
    rgba(14, 165, 233, 0.15) 20%,
    transparent 30%,
    rgba(14, 165, 233, 0.2) 40%,
    transparent 50%,
    rgba(14, 165, 233, 0.15) 60%,
    transparent 70%,
    rgba(14, 165, 233, 0.25) 80%,
    transparent 90%,
    rgba(14, 165, 233, 0.2) 100%
  );
  opacity: 0.6;
}

/* Flocons décoratifs statiques sur la sidebar */
body.theme-winter .sidebar-logo {
  position: relative;
  border-bottom: 1px solid rgba(14, 165, 233, 0.18) !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06), transparent);
}

body.theme-winter .sidebar-logo::before {
  content: "❄";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 14px;
  opacity: 0.4;
  animation: logoSnowFloat 4s ease-in-out infinite;
}

body.theme-winter .sidebar-logo::after {
  content: "❅";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  opacity: 0.3;
  animation: logoSnowFloat 4s ease-in-out infinite reverse;
}

@keyframes logoSnowFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-3px) rotate(10deg); opacity: 0.5; }
}

body.theme-winter .sidebar-logo a,
body.theme-winter .sidebar-logo span {
  color: #0c1d2b !important;
}

body.theme-winter .sidebar-user {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.05)) !important;
  border: 1px solid rgba(14, 165, 233, 0.18) !important;
  position: relative;
}

body.theme-winter .sidebar-user::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background-image: url("/assets/img/snow-accumulation.svg");
  background-repeat: repeat-x;
  background-size: auto 3px;
  opacity: 0.7;
  border-radius: 2px;
}

body.theme-winter .sidebar-username {
  color: #0c1d2b !important;
}

/* Flocons décoratifs à côté des icônes de nav */
body.theme-winter .sidebar-nav .nav-icon {
  position: relative;
}

body.theme-winter .sidebar-nav .nav-icon::after {
  content: "❄";
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(0.5) rotate(-20deg);
  pointer-events: none;
}

body.theme-winter .sidebar-nav a:hover .nav-icon::after,
body.theme-winter .sidebar-nav .nav-toggle:hover .nav-icon::after {
  opacity: 0.6;
  transform: scale(1) rotate(0deg);
}

/* Liens sidebar */
body.theme-winter .sidebar-nav a,
body.theme-winter .sidebar-nav .nav-toggle {
  color: #0c1d2b !important;
  position: relative;
}

body.theme-winter .sidebar-nav a:hover,
body.theme-winter .sidebar-nav .nav-toggle:hover {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0.04)) !important;
  color: #0ea5e9 !important;
  border-left-color: #0ea5e9 !important;
}

body.theme-winter .sidebar-nav a.active {
  color: #0ea5e9 !important;
  border-left-color: #06b6d4 !important;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(14, 165, 233, 0.05)) !important;
}

body.theme-winter .subnav {
  background: rgba(14, 165, 233, 0.05) !important;
  border-left: 2px solid rgba(14, 165, 233, 0.2);
}

body.theme-winter .subnav a {
  color: #0284c7 !important;
}

body.theme-winter .subnav a:hover {
  color: #0c1d2b !important;
  background: rgba(14, 165, 233, 0.1) !important;
}

body.theme-winter .sidebar-nav .nav-icon svg.pw-svg-ico {
  stroke: #0284c7 !important;
}

body.theme-winter .sidebar-nav a:hover .nav-icon svg.pw-svg-ico,
body.theme-winter .sidebar-nav .nav-toggle:hover .nav-icon svg.pw-svg-ico {
  stroke: #0ea5e9 !important;
}

body.theme-winter .sidebar-search input {
  background: #f8faff !important;
  border-color: rgba(14, 165, 233, 0.25) !important;
  color: #0c1d2b !important;
}

body.theme-winter .sidebar-search input:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

body.theme-winter .sidebar-stats {
  border-top: 1px solid rgba(14, 165, 233, 0.15) !important;
  color: #0284c7 !important;
  position: relative;
}

/* Flocon décoratif au-dessus des stats */
body.theme-winter .sidebar-stats::before {
  content: "❆";
  display: block;
  text-align: center;
  font-size: 18px;
  opacity: 0.4;
  margin-bottom: 8px;
  animation: statsSnowSpin 6s linear infinite;
}

@keyframes statsSnowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cristaux de glace décoratifs en bas de sidebar */
body.theme-winter .sidebar-stats::after {
  content: "";
  display: block;
  width: 80px;
  height: 40px;
  margin: 12px auto 0;
  background: url("/assets/img/ice-crystals.svg") center / contain no-repeat;
  opacity: 0.5;
}

/* Burger / mobile header */
body.theme-winter .mobile-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96)) !important;
  border-bottom: 2px solid rgba(14, 165, 233, 0.25) !important;
}

body.theme-winter .sidebar-burger .bar {
  background: #0284c7 !important;
}

/* Overlay mobile */
body.theme-winter .sidebar-overlay {
  background: rgba(12, 29, 43, 0.5);
  z-index: 45;
}

body.theme-winter .main-content {
  /* padding-top: calc(var(--header-h, 89px) + 16px); */
}

/* ── Glassmorphism : Cartes, sections, contenus ── */
body.theme-winter .card,
body.theme-winter .pw-card,
body.theme-winter .content-card,
body.theme-winter .pw-content-card,
body.theme-winter .form-card,
body.theme-winter .profile-header,
body.theme-winter .pw-hero-inner,
body.theme-winter .pw-search,
body.theme-winter .pw-cat,
body.theme-winter .admin-stat-card,
body.theme-winter .staff-card,
body.theme-winter .pw-card-stats,
body.theme-winter .pw-card-info,
body.theme-winter .chat-widget,
body.theme-winter .news-widget,
body.theme-winter .detail-info-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(240, 249, 255, 0.5)) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  border: 1px solid rgba(14, 165, 233, 0.18) !important;
  border-radius: var(--radius) !important;
  box-shadow: 
    0 8px 24px rgba(14, 165, 233, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
  transition: all .3s ease !important;
}

/* Effet givre sur les contours au survol */
body.theme-winter .card:hover,
body.theme-winter .pw-card:hover,
body.theme-winter .content-card:hover,
body.theme-winter .pw-content-card:hover,
body.theme-winter .pw-cat:hover,
body.theme-winter .staff-card:hover,
body.theme-winter .admin-stat-card:hover {
  border-color: rgba(14, 165, 233, 0.4) !important;
  box-shadow: 
    0 16px 40px rgba(14, 165, 233, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 20px rgba(14, 165, 233, 0.1) !important;
  transform: translateY(-4px);
}

/* Accumulation de neige sur le haut des cartes */
body.theme-winter .card::before,
body.theme-winter .pw-card::before,
body.theme-winter .content-card::before,
body.theme-winter .pw-content-card::before,
body.theme-winter .pw-cat::before,
body.theme-winter .staff-card::before,
body.theme-winter .admin-stat-card::before,
body.theme-winter .form-card::before,
body.theme-winter .profile-header::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 4px;
  background-image: url("/assets/img/snow-accumulation.svg");
  background-repeat: repeat-x;
  background-size: auto 4px;
  opacity: 0.6;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
  z-index: 2;
}

/* Cristaux de givre sur les coins des cartes */
body.theme-winter .card::after,
body.theme-winter .pw-card::after,
body.theme-winter .content-card::after,
body.theme-winter .pw-content-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: url("/assets/img/frost-corner.svg") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}

body.theme-winter .card:hover::after,
body.theme-winter .pw-card:hover::after,
body.theme-winter .content-card:hover::after,
body.theme-winter .pw-content-card:hover::after {
  opacity: 0.6;
}

/* Reflet de glace subtil */
body.theme-winter .card,
body.theme-winter .pw-card,
body.theme-winter .content-card,
body.theme-winter .pw-content-card {
  position: relative;
  overflow: hidden;
}

body.theme-winter .card::before,
body.theme-winter .pw-card::before {
  background-image: url("/assets/img/snow-accumulation.svg") !important;
}

.pw-card  { width: 49% !important; display: block !important; }

@media only all and (max-width: 799px) { 
  .pw-card  { width: 100% !important; display: block !important; } 
  .pw-hero-side { display: block; padding-bottom: 10px; }
}

body.theme-winter .section-title::before,
body.theme-winter .pw-eyebrow {
  color: #0ea5e9 !important;
}

body.theme-winter .section-title::before {
  background: linear-gradient(180deg, #0ea5e9, #0284c7) !important;
}

.download-link-actions a { color: #ffff !important; }

body.theme-winter a {
  color: #0284c7;
}
body.theme-winter a:hover {
  color: #0ea5e9;
}

body.theme-winter .badge-cat,
body.theme-winter .pw-chip {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

body.theme-winter .badge-quality {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #0891b2 !important;
  border-color: rgba(6, 182, 212, 0.22) !important;
}

/* ── Hero hiver ── */
body.theme-winter:has(.pw-hero) {
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.18), transparent 25%),
    radial-gradient(circle at 90% 15%, rgba(251, 191, 36, 0.1), transparent 22%),
    radial-gradient(circle at 50% 95%, rgba(14, 165, 233, 0.12), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, #e0f2fe 40%, #f0f9ff 100%) !important;
}

body.theme-winter .pw-hero-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(240, 249, 255, 0.4)) !important;
  border-color: rgba(14, 165, 233, 0.2) !important;
}

body.theme-winter .pw-glow-1 { background: rgba(14, 165, 233, 0.3) !important; }
body.theme-winter .pw-glow-2 { background: rgba(251, 191, 36, 0.2) !important; }
body.theme-winter .pw-glow-3 { background: rgba(6, 182, 212, 0.15) !important; }

body.theme-winter .pw-hero-title,
body.theme-winter .pw-section-title,
body.theme-winter .pw-card-title,
body.theme-winter .pw-stat-num {
  color: #0c1d2b !important;
}

body.theme-winter .pw-hero-title .pw-accent {
  background: linear-gradient(90deg, #0ea5e9, #fbbf24) !important;
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-winter .pw-hero-desc,
body.theme-winter .pw-section-desc,
body.theme-winter .pw-card-sub,
body.theme-winter .pw-cat-desc,
body.theme-winter .pw-content-title,
body.theme-winter .pw-top-title {
  color: #0f172a !important;
}

body.theme-winter .pw-search {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(14, 165, 233, 0.25) !important;
}
body.theme-winter .pw-search:focus-within {
  border-color: rgba(14, 165, 233, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), 0 8px 24px rgba(14, 165, 233, 0.1) !important;
}
body.theme-winter .pw-search-input-home { color: #0c1d2b !important; }
body.theme-winter .pw-search-icon { color: #0ea5e9 !important; }

/* Lumières de Noël décoratives sur le hero */
body.theme-winter .pw-hero::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  pointer-events: none;
  z-index: 1;
  background-image: url("/assets/img/christmas-lights.svg");
  background-repeat: repeat-x;
  background-size: auto 2px;
  opacity: 0.6;
  animation: lightsTwinkle 2s ease-in-out infinite;
}

@keyframes lightsTwinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── Formulaires / footer ── */
body.theme-winter input,
body.theme-winter textarea,
body.theme-winter select,
body.theme-winter .form-control,
body.theme-winter .form-select {
  background: #f8faff !important;
  color: #0c1d2b !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
}

body.theme-winter input:focus,
body.theme-winter textarea:focus,
body.theme-winter select:focus,
body.theme-winter .form-control:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}

body.theme-winter .site-footer {
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe) !important;
  border-top: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #0284c7, #0ea5e9, #06b6d4, #fbbf24, #dc2626, #fbbf24, #06b6d4, #0ea5e9, #0284c7) 1 !important;
  color: #0284c7 !important;
}

body.theme-winter .footer-links a { color: #0284c7 !important; }
body.theme-winter .footer-links a:hover { color: #0c1d2b !important; }
body.theme-winter .footer-logo { color: #0c1d2b !important; }

/* ── Widgets / pagination ── */
body.theme-winter .chat-widget,
body.theme-winter .news-widget {
  background: linear-gradient(180deg, #f8faff, #e0f2fe) !important;
  border-color: rgba(14, 165, 233, 0.25) !important;
}

body.theme-winter .page-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border-color: #0284c7 !important;
}

body.theme-winter .page-btn:hover {
  border-color: #0ea5e9 !important;
  color: #0284c7 !important;
}

/* ── Guides / étapes ── */
body.theme-winter .pw-guide-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(240, 249, 255, 0.5)) !important;
  border-color: rgba(14, 165, 233, 0.18) !important;
}

body.theme-winter .pw-guide-step:hover {
  border-color: #0ea5e9 !important;
}

body.theme-winter .pw-tip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(240, 249, 255, 0.5)) !important;
  border-color: rgba(14, 165, 233, 0.18) !important;
}

/* ── Animations décoratives globales ── */
/* Cristaux de glace flottants en arrière-plan (très subtils) */
body.theme-winter::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(251, 191, 36, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.025) 1.5px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.02) 1px, transparent 1px);
  background-size: 200px 200px, 150px 150px, 180px 180px, 160px 160px;
  animation: iceCrystalsFloat 30s linear infinite;
  opacity: 0.5;
}

@keyframes iceCrystalsFloat {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 200px 200px, -150px 150px, 180px -180px, -160px 160px; }
}

/* ── Réduction d'effets sur mobile ── */
@media (max-width: 900px) {
  body.theme-winter .site-header::before {
    bottom: -16px;
    height: 16px;
    background-size: auto 16px;
  }
  body.theme-winter .site-header::after {
    height: 5px;
    background-size: auto 5px;
  }
  body.theme-winter .sidebar::before {
    height: 8px;
    background-size: auto 8px;
  }
  body.theme-winter .sidebar::after {
    display: none;
  }
  body.theme-winter .pw-hero::before {
    display: none;
  }
  body.theme-winter .card::before,
  body.theme-winter .pw-card::before,
  body.theme-winter .content-card::before,
  body.theme-winter .pw-content-card::before {
    height: 3px;
    background-size: auto 3px;
  }
  body.theme-winter::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-winter .site-header::before {
    animation: none;
  }
  body.theme-winter .pw-hero::before {
    animation: none;
  }
  body.theme-winter .season-badge {
    animation: none;
  }
  body.theme-winter .season-badge::after {
    animation: none;
  }
  body.theme-winter .sidebar-logo::before,
  body.theme-winter .sidebar-logo::after {
    animation: none;
  }
  body.theme-winter .sidebar-stats::before {
    animation: none;
  }
  body.theme-winter .statsSnowSpin {
    animation: none;
  }
  body.theme-winter .iceCrystalsFloat {
    animation: none;
  }
  body.theme-winter .navSnowSpin {
    animation: none;
  }
}

/* ── Theme toggle hint (winter pill option support) ── */
.theme-pill.theme-winter-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
}