/* ══════════════════════════════════════════════════
   THEME NOEL — InsectesComestibles.fr
   Activé via IC_NOEL_ACTIVE dans functions.php
   ══════════════════════════════════════════════════ */

:root {
    --ic-noel-rouge: #C41E3A;
    --ic-noel-rouge-hover: #A01830;
    --ic-noel-or: #D4AF37;
    --ic-noel-or-light: #E8CC6A;
    --ic-noel-vert: #2E4A32;
    --ic-noel-neige: #F8F6F4;
}

/* ── Promo bar Noël ── */
.ic-noel .ic-topbar {
    background: linear-gradient(135deg, var(--ic-noel-rouge) 0%, #8B1425 50%, var(--ic-noel-vert) 100%);
}
.ic-noel .ic-topbar a {
    color: var(--ic-noel-or-light);
    text-decoration: underline;
}

/* ── Nav link Noël ── */
.ic-noel-nav {
    color: var(--ic-noel-rouge) !important;
    font-weight: 700 !important;
    position: relative;
}
.ic-noel-nav::before {
    content: '🎄';
    margin-right: 4px;
}

/* ── Hero overlay Noël ── */
.ic-noel .ic-hero {
    background: linear-gradient(160deg, #3B2314 0%, #5C3D2E 30%, var(--ic-noel-vert) 60%, #1A3320 100%);
    position: relative;
    overflow: hidden;
}
.ic-noel .ic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 25% 60%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 40% 30%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 55% 70%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 85% 50%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 15% 80%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 60% 45%, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 90% 85%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 35% 90%, rgba(255,255,255,0.5), transparent);
    animation: ic-snow-drift 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}
.ic-noel .ic-hero .ic-inner {
    position: relative;
    z-index: 2;
}
.ic-noel .ic-hero__badge {
    background: var(--ic-noel-rouge);
    color: #fff;
}

/* ── Snowfall animation ── */
@keyframes ic-snow-drift {
    0% { transform: translateY(-5px) translateX(0); opacity: 0.7; }
    50% { opacity: 1; }
    100% { transform: translateY(5px) translateX(10px); opacity: 0.7; }
}

/* Animated snowflakes (canvas-free, CSS only) */
.ic-snowfall {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}
.ic-snowfall .flake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    animation: ic-flake-fall linear infinite;
    text-shadow: 0 0 3px rgba(255,255,255,0.5);
}
.ic-snowfall .flake:nth-child(1) { left: 5%; font-size: .6rem; animation-duration: 12s; animation-delay: 0s; }
.ic-snowfall .flake:nth-child(2) { left: 15%; font-size: .8rem; animation-duration: 15s; animation-delay: 2s; }
.ic-snowfall .flake:nth-child(3) { left: 25%; font-size: .5rem; animation-duration: 10s; animation-delay: 4s; }
.ic-snowfall .flake:nth-child(4) { left: 35%; font-size: .7rem; animation-duration: 14s; animation-delay: 1s; }
.ic-snowfall .flake:nth-child(5) { left: 45%; font-size: .6rem; animation-duration: 11s; animation-delay: 3s; }
.ic-snowfall .flake:nth-child(6) { left: 55%; font-size: .9rem; animation-duration: 16s; animation-delay: 5s; }
.ic-snowfall .flake:nth-child(7) { left: 65%; font-size: .5rem; animation-duration: 13s; animation-delay: 0s; }
.ic-snowfall .flake:nth-child(8) { left: 75%; font-size: .7rem; animation-duration: 10s; animation-delay: 6s; }
.ic-snowfall .flake:nth-child(9) { left: 85%; font-size: .6rem; animation-duration: 14s; animation-delay: 2s; }
.ic-snowfall .flake:nth-child(10) { left: 92%; font-size: .8rem; animation-duration: 12s; animation-delay: 4s; }

@keyframes ic-flake-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Disable snowflakes on mobile (performance) */
@media (max-width: 768px) {
    .ic-snowfall .flake:nth-child(n+6) { display: none; }
    .ic-snowfall .flake { font-size: .5rem !important; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ic-snowfall { display: none; }
    .ic-noel .ic-hero::before { animation: none; }
}

/* ── Gift badge on product cards ── */
.ic-gift-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--ic-noel-rouge);
    color: #fff;
    font-size: var(--ic-fs-xs);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--ic-radius-pill);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(196,30,58,0.3);
}

/* ── CTA buttons Noël accent ── */
.ic-noel .ic-btn,
.ic-noel .ic-hero .ic-btn {
    background: var(--ic-noel-rouge);
    color: #fff;
}
.ic-noel .ic-btn:hover,
.ic-noel .ic-hero .ic-btn:hover {
    background: var(--ic-noel-rouge-hover);
}

/* ── Reassurance bar subtle glow ── */
.ic-noel .ic-reassurance {
    border-bottom: 2px solid var(--ic-noel-or);
}

/* ── Footer festive touch ── */
.ic-noel .site-footer {
    border-top: 3px solid var(--ic-noel-rouge);
}

/* ── Welcome popup Noël ── */
.ic-noel .ic-popup-box {
    border: 2px solid var(--ic-noel-rouge);
}
.ic-noel .ic-popup-code {
    background: var(--ic-noel-rouge);
}
