/* WowRock 27/11 : thème « Prestige Noël » (par-dessus theme_prestige.css) : neige sur les cadres, guirlande lumineuse,
   bougies, flocons qui tombent, touches rouge et vert sapin. Activé par site_noel() (réglage site_style = prestige_noel). */
:root { --noel-rouge:#c8102e; --noel-rouge-f:#7a0a16; --noel-vert:#1f6b3a; --noel-vert-c:#3fa35f; --noel-neige:#f4f8ff; }

/* ---- flocons qui tombent (canvas posé par le script) ---- */
#wr-neige-canvas { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:9990; }

/* ---- fond : voile bleu nuit d'hiver par-dessus le fond du site ---- */
body.theme-noel::after { content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
    background:radial-gradient(ellipse at top, rgba(120,170,255,.10), transparent 60%), linear-gradient(180deg, rgba(8,18,40,.25), transparent 40%); }

/* ---- neige posée sur le haut des cadres ---- */
body.theme-noel .panel-box, body.theme-noel .server-card, body.theme-noel .hero, body.theme-noel .wg-card,
body.theme-noel .pr-banner, body.theme-noel .bt-card, body.theme-noel .admin-home-card, body.theme-noel .wr-neigeux { position:relative; }
.wr-cap { position:absolute; left:-7px; right:-7px; top:-11px; height:22px; pointer-events:none; z-index:6;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='22' viewBox='0 0 240 22'%3E%3Cpath d='M0 13 C10 4 22 3 34 9 C42 2 58 1 66 9 C74 5 84 6 90 11 C100 2 118 2 128 10 C136 4 150 3 158 9 C168 1 186 2 194 10 C204 4 216 4 226 9 C232 6 237 7 240 11 L240 22 L0 22 Z' fill='%23f7fbff'/%3E%3Cpath d='M0 15 C14 10 26 11 38 14 C56 9 72 10 88 15 C104 9 124 10 140 14 C156 9 176 10 192 15 C208 10 226 10 240 14' stroke='%23cfe0f5' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size:240px 22px; filter:drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.wr-cap::before, .wr-cap::after { content:""; position:absolute; top:12px; width:6px; border-radius:0 0 4px 4px;
    background:linear-gradient(180deg, #f7fbff, rgba(210,230,255,.75)); }
.wr-cap::before { left:18%; height:14px; }
.wr-cap::after { right:22%; height:10px; }
.wr-cap.petit { top:-8px; height:16px; background-size:180px 16px; }
.wr-cap.petit::before, .wr-cap.petit::after { display:none; }

/* ---- guirlande lumineuse sous l'en-tête ---- */
body.theme-noel .site-header { position:relative; }
.wr-guirlande { position:absolute; left:0; right:0; bottom:-24px; height:34px; pointer-events:none; z-index:50; overflow:visible; }
.wr-guirlande svg { position:absolute; inset:0; width:100%; height:100%; }
.wr-ampoule { position:absolute; width:10px; height:16px; margin-left:-5px; border-radius:50% 50% 45% 45%; transform-origin:50% -4px;
    animation:wrBrille 1.6s infinite ease-in-out; }
.wr-ampoule::before { content:""; position:absolute; top:-5px; left:2px; width:6px; height:6px; border-radius:2px; background:#3a3a2a; }
.wr-ampoule.r { background:#ff3048; box-shadow:0 0 10px 3px rgba(255,48,72,.75); }
.wr-ampoule.v { background:#38e070; box-shadow:0 0 10px 3px rgba(56,224,112,.7); animation-delay:.4s; }
.wr-ampoule.o { background:#ffd24a; box-shadow:0 0 10px 3px rgba(255,210,74,.75); animation-delay:.8s; }
.wr-ampoule.b { background:#4ab4ff; box-shadow:0 0 10px 3px rgba(74,180,255,.75); animation-delay:1.2s; }
@keyframes wrBrille { 0%,100% { opacity:1; filter:brightness(1.15); } 50% { opacity:.45; filter:brightness(.7); box-shadow:none; } }

/* ---- bougies (coins des grands cadres) ---- */
.wr-bougies { position:absolute; bottom:6px; display:flex; gap:7px; align-items:flex-end; pointer-events:none; z-index:7; }
.wr-bougies.g { left:14px; } .wr-bougies.d { right:14px; }
.wr-bougie { position:relative; width:12px; border-radius:2px 2px 1px 1px;
    background:linear-gradient(90deg, #8a0d1a, #e2283e 45%, #ff6a7a 55%, #a3101f); box-shadow:inset 0 -3px 0 rgba(0,0,0,.25); }
.wr-bougie::before { content:""; position:absolute; top:-3px; left:5px; width:2px; height:5px; background:#222; }
.wr-bougie i { position:absolute; left:50%; top:-19px; width:9px; height:16px; margin-left:-4.5px; border-radius:50% 50% 35% 35%;
    background:radial-gradient(ellipse at 50% 70%, #fff7c2 0%, #ffd35a 35%, #ff8a1c 70%, rgba(255,80,0,0) 100%);
    box-shadow:0 0 14px 6px rgba(255,190,80,.45); animation:wrFlamme .18s infinite alternate; transform-origin:50% 100%; }
.wr-bougie::after { content:""; position:absolute; left:-1px; right:-1px; top:0; height:5px; border-radius:2px;
    background:linear-gradient(180deg, #ff8f9c, transparent); }
@keyframes wrFlamme { from { transform:scale(1,1) rotate(-2deg); opacity:.95; } to { transform:scale(.92,1.08) rotate(2deg); opacity:1; } }
.wr-houx { position:absolute; bottom:2px; width:34px; height:22px; pointer-events:none; z-index:7;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M2 14 Q8 4 16 10 Q12 16 2 14Z' fill='%231f6b3a' stroke='%230d3a1e'/%3E%3Cpath d='M32 14 Q26 4 18 10 Q22 16 32 14Z' fill='%23277d45' stroke='%230d3a1e'/%3E%3Ccircle cx='14' cy='13' r='3.2' fill='%23d4142c'/%3E%3Ccircle cx='19' cy='14' r='3.2' fill='%23e0203a'/%3E%3Ccircle cx='16.5' cy='9.5' r='3' fill='%23c8102e'/%3E%3C/svg%3E") no-repeat center/contain; }

/* ---- couleurs de fête ---- */
body.theme-noel .header-actions .btn-accent, body.theme-noel .btn-accent {
    background:linear-gradient(180deg, #ff4a5c, var(--noel-rouge) 50%, var(--noel-rouge-f)); color:#fff; border-color:#ffd27a;
    text-shadow:0 1px 0 rgba(0,0,0,.5); box-shadow:0 0 14px rgba(200,16,46,.45); }
body.theme-noel .panel-box h2::after { background:linear-gradient(90deg, var(--noel-rouge), #f0c35a 35%, var(--noel-vert-c) 70%, transparent); }
body.theme-noel .topnav a.active, body.theme-noel .topnav a:hover { text-shadow:0 0 10px rgba(255,255,255,.35); }
body.theme-noel .topnav a.wr-bf-lien { color:#ffdf6b !important; text-shadow:0 0 10px rgba(255,60,60,.8); }
body.theme-noel footer, body.theme-noel footer.pr-footer { border-top:3px solid transparent;
    border-image:repeating-linear-gradient(90deg, var(--noel-rouge) 0 18px, #f4f8ff 18px 36px, var(--noel-vert) 36px 54px, #f4f8ff 54px 72px) 3; }

@media (max-width:700px) { .wr-bougies, .wr-houx { display:none; } .wr-guirlande { bottom:-18px; height:26px; } }
@media (prefers-reduced-motion:reduce) { .wr-ampoule, .wr-bougie i { animation:none; } #wr-neige-canvas { display:none; } }

/* carte d'aperçu dans l'admin (onglet Thème) */
.ta-noel { background:linear-gradient(180deg, #0b1830, #1a0d14) !important; box-shadow:inset 0 6px 0 #f4f8ff, inset 0 -3px 0 var(--noel-rouge); }

/* ===================== v2 (27/11) : décor bien plus visible ===================== */
/* neige épaisse posée DANS le haut du cadre (plus de coupure par overflow:hidden) */
.wr-cap { left:-4px; right:-4px; top:-6px; height:34px; background-size:200px 34px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='34' viewBox='0 0 200 34'%3E%3Cpath d='M0 0 H200 V12 C192 20 184 22 176 15 C170 26 156 28 150 17 C142 24 132 23 126 14 C118 30 100 31 94 17 C86 23 76 22 70 13 C62 27 46 28 40 16 C32 22 20 21 14 13 C9 19 3 18 0 14 Z' fill='%23ffffff'/%3E%3Cpath d='M0 11 C10 16 20 16 30 12 C46 17 62 17 76 11 C96 18 118 17 134 11 C152 17 172 17 200 11' stroke='%23d6e6fa' stroke-width='3' fill='none' opacity='.8'/%3E%3C/svg%3E");
    filter:drop-shadow(0 4px 3px rgba(0,0,0,.5)); border-radius:10px 10px 0 0; }
.wr-cap::before, .wr-cap::after { top:24px; width:7px; background:linear-gradient(180deg, #fff, rgba(220,236,255,.85)); }
.wr-cap::before { height:20px; } .wr-cap::after { height:14px; }
.wr-cap.petit { top:-4px; height:22px; background-size:140px 22px; }
.wr-cap.petit::before { display:block; top:15px; height:10px; width:5px; left:30%; }

/* guirlande de sapin épaisse + grosses ampoules */
.wr-guirlande { bottom:-30px; height:44px; }
.wr-ampoule { width:13px; height:21px; margin-left:-6.5px; }
.wr-ampoule::before { top:-6px; left:3px; width:7px; height:7px; background:#2c3a22; }
.wr-ampoule.r { box-shadow:0 0 16px 5px rgba(255,48,72,.8); }
.wr-ampoule.v { box-shadow:0 0 16px 5px rgba(56,224,112,.75); }
.wr-ampoule.o { box-shadow:0 0 16px 5px rgba(255,210,74,.8); }
.wr-ampoule.b { box-shadow:0 0 16px 5px rgba(74,180,255,.8); }

/* boules de Noël suspendues au-dessus des grands cadres */
.wr-boules { position:absolute; left:0; right:0; top:0; height:0; pointer-events:none; z-index:8; }
.wr-boule { position:absolute; top:0; width:2px; background:linear-gradient(180deg, #c9a24a, #e8cf8a); transform-origin:50% 0; animation:wrBalance 4s ease-in-out infinite; }
.wr-boule::after { content:""; position:absolute; left:50%; bottom:-30px; width:30px; height:32px; margin-left:-15px; border-radius:50%;
    background:radial-gradient(circle at 35% 30%, #fff 0 8%, var(--b1) 22%, var(--b2) 75%, #000 120%); box-shadow:0 6px 14px rgba(0,0,0,.6), 0 0 18px var(--b3); }
.wr-boule::before { content:""; position:absolute; left:50%; bottom:-2px; width:10px; height:6px; margin-left:-5px; border-radius:2px; background:linear-gradient(90deg, #8a6a20, #f5d98a, #8a6a20); z-index:1; }
.wr-boule.r { --b1:#ff5a6a; --b2:#a10c1f; --b3:rgba(255,60,80,.45); }
.wr-boule.o { --b1:#ffe7a0; --b2:#b8860b; --b3:rgba(255,210,80,.45); }
.wr-boule.v { --b1:#6fe39a; --b2:#14552c; --b3:rgba(60,220,120,.4); }
.wr-boule.b { --b1:#9fd6ff; --b2:#1d4f8a; --b3:rgba(90,180,255,.45); }
@keyframes wrBalance { 0%,100% { transform:rotate(-5deg); } 50% { transform:rotate(5deg); } }

/* bonnet de Père Noël sur le logo */
body.theme-noel .brand { position:relative; }
body.theme-noel .brand::before { content:""; position:absolute; left:-12px; top:-16px; width:46px; height:40px; z-index:5; transform:rotate(-22deg); pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 40'%3E%3Cpath d='M6 30 C8 14 20 2 34 4 C40 5 44 12 42 18 C38 12 32 11 30 16 C34 20 36 26 36 30 Z' fill='%23d4142c'/%3E%3Cpath d='M10 28 C12 18 20 9 30 8' stroke='%23ff5a6a' stroke-width='2' fill='none' opacity='.7'/%3E%3Crect x='3' y='27' width='37' height='10' rx='5' fill='%23fff'/%3E%3Ccircle cx='42' cy='20' r='5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.6)); }

/* neige sur les boutons de l'en-tête et le pied de page */
body.theme-noel .header-actions a { position:relative; }
body.theme-noel .header-actions a::before { content:""; position:absolute; left:3px; right:3px; top:-5px; height:9px; border-radius:6px 6px 4px 4px;
    background:radial-gradient(circle at 20% 80%, #fff 0 4px, transparent 5px), radial-gradient(circle at 55% 70%, #fff 0 5px, transparent 6px), radial-gradient(circle at 85% 80%, #fff 0 4px, transparent 5px), linear-gradient(#fff, #e8f1ff);
    box-shadow:0 2px 2px rgba(0,0,0,.4); }
body.theme-noel footer { position:relative; }

/* hiver plus marqué */
body.theme-noel::after { background:radial-gradient(ellipse at top, rgba(140,190,255,.18), transparent 65%), linear-gradient(180deg, rgba(10,25,60,.35), transparent 45%), linear-gradient(0deg, rgba(220,235,255,.10), transparent 18%); }
body.theme-noel .panel-box, body.theme-noel .server-card, body.theme-noel .wg-card { box-shadow:0 0 0 1px rgba(200,225,255,.12), 0 0 24px rgba(120,170,255,.10); }
@media (max-width:700px) { .wr-boule:nth-child(n+4) { display:none; } body.theme-noel .brand::before { width:34px; height:30px; top:-10px; left:-8px; } }
@media (prefers-reduced-motion:reduce) { .wr-boule { animation:none; } }
/* Père Noël et ses rennes qui traversent le ciel (de droite à gauche), toutes les 28 s */
#wr-traineau { position:fixed; top:120px; left:0; width:330px; height:72px; z-index:9991; pointer-events:none;
    animation:wrVol 28s linear infinite; animation-delay:2s; transform:translateX(110vw); }
#wr-traineau .wr-tr-vol { position:absolute; inset:0; animation:wrOnde 3s ease-in-out infinite; filter:drop-shadow(0 0 6px rgba(255,230,160,.55)) drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
#wr-traineau svg { width:330px; height:72px; overflow:visible; }
#wr-traineau .nez { fill:#ff2030; }
#wr-traineau .rudolph .nez { animation:wrNez .9s ease-in-out infinite; }
#wr-traineau .autre .nez { fill:#3a2414; }
#wr-traineau .j1 { animation:wrGalop .5s ease-in-out infinite alternate; transform-origin:30px 28px; transform-box:view-box; }
#wr-traineau .wr-tr-etoiles { position:absolute; left:325px; top:20px; width:140px; height:40px; }
#wr-traineau .wr-tr-etoiles i { position:absolute; width:5px; height:5px; border-radius:50%; background:#fff6c8; box-shadow:0 0 8px 3px rgba(255,220,120,.8); animation:wrEtoile 1.3s ease-out infinite; }
@keyframes wrVol { 0% { transform:translateX(110vw) translateY(0); } 55% { transform:translateX(-480px) translateY(-40px); } 100% { transform:translateX(-480px) translateY(-40px); } }
@keyframes wrOnde { 0%,100% { transform:translateY(0) rotate(-2deg); } 50% { transform:translateY(10px) rotate(2deg); } }
@keyframes wrNez { 0%,100% { filter:drop-shadow(0 0 2px #ff2030); } 50% { filter:drop-shadow(0 0 7px #ff2030) brightness(1.4); } }
@keyframes wrGalop { from { transform:rotate(-8deg); } to { transform:rotate(8deg); } }
@keyframes wrEtoile { 0% { opacity:1; transform:scale(1); } 100% { opacity:0; transform:scale(.2) translateY(14px); } }
@media (max-width:700px) { #wr-traineau { top:90px; transform-origin:0 0; scale:.6; } }
@media (prefers-reduced-motion:reduce) { #wr-traineau { display:none; } }
/* sapins décorés (coins bas des grands cadres), sucres d'orge, gui */
.wr-sapin { position:absolute; bottom:4px; width:64px; height:86px; pointer-events:none; z-index:7; filter:drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.wr-sapin.g { left:8px; } .wr-sapin.d { right:8px; }
.wr-sapin svg { width:100%; height:100%; overflow:visible; }
.wr-sapin .wr-etoile-sapin { filter:drop-shadow(0 0 5px #ffe066); animation:wrNez 1.6s ease-in-out infinite; }
.wr-bougies.g { left:80px; } .wr-bougies.d { right:80px; }
.wr-sucre { position:absolute; top:-16px; left:14px; width:32px; height:38px; pointer-events:none; z-index:9; transform:rotate(-8deg); filter:drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.wr-sucre.d { left:auto; right:14px; transform:rotate(8deg); }
.wr-sucre svg { width:100%; height:100%; }
.wr-gui { position:absolute; left:calc(50% - 30px); bottom:-86px; width:60px; height:60px; pointer-events:none; z-index:51; transform-origin:50% 0; animation:wrBalance 5s ease-in-out infinite; filter:drop-shadow(0 4px 4px rgba(0,0,0,.6)); }
.wr-gui svg { width:100%; height:100%; }
#wr-traineau { scale:1.25; }
@media (max-width:700px) { .wr-sapin { width:40px; height:54px; } .wr-gui { width:44px; height:44px; bottom:-62px; } #wr-traineau { scale:.7; } }
/* v3 : neige fine façon geekservers (canvas dessiné par noel_deco.php) */
.wr-cap { display:none !important; }
.wr-neige-bord { position:absolute; left:-3px; top:-7px; pointer-events:none; z-index:6; }
.bf-hero, .bf-carte { position:relative; }

/* parade du Voile d'hiver en bas de l'écran (de droite à gauche) */
.wr-parade { position:fixed; left:0; bottom:0; height:120px; display:flex; align-items:flex-end; gap:6px; z-index:9989; pointer-events:none;
    transform:translateX(105vw); animation:wrParade 25s linear forwards; }
.wr-parade img { height:104px; width:auto; filter:drop-shadow(0 6px 6px rgba(0,0,0,.6)); animation:wrMarche .45s ease-in-out infinite alternate; transform-origin:50% 100%; }
.wr-parade img.renne { height:96px; }
.wr-parade img.pere { height:118px; }
@keyframes wrParade { to { transform:translateX(-120%); } }
@keyframes wrMarche { from { transform:translateY(0) rotate(-3deg); } to { transform:translateY(-7px) rotate(3deg); } }
@media (prefers-reduced-motion:reduce) { .wr-parade { display:none; } }
/* la parade et le traîneau sortent de l'écran : pas de barre de défilement horizontale */
html { overflow-x:clip; }

/* v3 : neige fine aussi sur les boutons */
body.theme-noel .header-actions a::before { top:-3px; left:6px; right:6px; height:4px; border-radius:4px 4px 2px 2px; background:linear-gradient(#fff, #dde9f8); box-shadow:0 1px 1px rgba(0,0,0,.35); }
