/* ══════════════════════════════════════════════════
   THEME NOEL — FutureNutrition.fr
   Activé via FN_NOEL_ACTIVE dans wp-config.php
   ══════════════════════════════════════════════════ */

:root {
    --fn-noel-rouge: #C41E3A;
    --fn-noel-rouge-dark: #9B1530;
    --fn-noel-or: #D4AF37;
    --fn-noel-or-light: #E8CC6A;
    --fn-noel-vert: #1A5C2E;
    --fn-noel-vert-dark: #0F3A1C;
    --fn-noel-neige: #F8F6F4;
    --fn-noel-bordeaux: #2D0A0A;
}

/* ── Promo bar Noël ── */
.fn-noel .fn-promo-bar {
    background: linear-gradient(135deg, var(--fn-noel-rouge) 0%, var(--fn-noel-rouge-dark) 40%, var(--fn-noel-vert) 100%) !important;
    color: #fff;
}

/* ── Nav link Noël ── */
.fn-noel-nav {
    color: var(--fn-noel-rouge) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    position: relative;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(196, 30, 58, 0.08);
    transition: background 0.2s;
}
.fn-noel-nav:hover {
    background: rgba(196, 30, 58, 0.15);
}

/* ══════════════════════════════════════════════════
   HERO — fond Noël complet (override le gradient vert)
   ══════════════════════════════════════════════════ */
.fn-noel .hero {
    background: linear-gradient(135deg,
        rgba(45, 10, 10, 0.92) 0%,
        rgba(120, 15, 30, 0.88) 35%,
        rgba(15, 58, 28, 0.9) 100%) !important;
}
@media (max-width: 768px) {
    .fn-noel .hero {
        background: linear-gradient(135deg, #2D0A0A 0%, #5A0F1E 40%, #0F3A1C 100%) !important;
    }
}
.fn-noel-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 200px at 15% 70%, rgba(212, 175, 55, 0.12), transparent),
        radial-gradient(circle 150px at 85% 30%, rgba(212, 175, 55, 0.08), transparent),
        radial-gradient(circle 100px at 50% 50%, rgba(196, 30, 58, 0.06), transparent);
    z-index: 1;
    pointer-events: none;
}
.fn-noel .hero-content {
    position: relative;
    z-index: 2;
}
.fn-noel .hero-badges .badge-promo {
    background: var(--fn-noel-rouge) !important;
    color: #fff !important;
}
.fn-noel .hero-badges .badge-ship {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: var(--fn-noel-or) !important;
    color: var(--fn-noel-or-light) !important;
}
/* Hero h1 highlight: or doré */
.fn-noel .hero-content h1 span {
    color: var(--fn-noel-or-light) !important;
}
/* Hero CTA */
.fn-noel .hero-btns .btn-primary {
    background: var(--fn-noel-rouge) !important;
}
.fn-noel .hero-btns .btn-primary:hover {
    background: var(--fn-noel-rouge-dark) !important;
}
.fn-noel .hero-btns .btn-secondary {
    border-color: var(--fn-noel-or) !important;
    color: var(--fn-noel-or-light) !important;
}

/* ══════════════════════════════════════════════════
   SECTION NOEL — fond élégant, cartes premium
   ══════════════════════════════════════════════════ */
.fn-noel-section {
    background: var(--fn-noel-bordeaux);
    background-image:
        radial-gradient(ellipse 50% 80% at 10% 90%, rgba(196, 30, 58, 0.2), transparent),
        radial-gradient(ellipse 40% 60% at 90% 10%, rgba(26, 92, 46, 0.15), transparent);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Bokeh doré subtil */
.fn-noel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 3px at 8% 25%, rgba(212, 175, 55, 0.4), transparent 20px),
        radial-gradient(circle 2px at 22% 70%, rgba(212, 175, 55, 0.3), transparent 15px),
        radial-gradient(circle 4px at 45% 15%, rgba(212, 175, 55, 0.25), transparent 25px),
        radial-gradient(circle 2px at 60% 80%, rgba(232, 204, 106, 0.35), transparent 18px),
        radial-gradient(circle 3px at 75% 35%, rgba(212, 175, 55, 0.3), transparent 20px),
        radial-gradient(circle 2px at 92% 60%, rgba(232, 204, 106, 0.25), transparent 15px);
    animation: fn-bokeh-pulse 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes fn-bokeh-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.fn-noel-section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--fn-noel-or), var(--fn-noel-or-light));
    color: var(--fn-noel-bordeaux);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 7px 20px;
    border-radius: 30px;
    margin-bottom: 1.25rem;
}
.fn-noel-section-title {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.fn-noel-section-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille produits */
.fn-noel-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

/* Carte produit — style premium */
.fn-noel-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.fn-noel-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-color: rgba(212, 175, 55, 0.35);
}
.fn-noel-product-card a {
    text-decoration: none;
    color: inherit;
}
.fn-noel-product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.fn-noel-product-title {
    font-weight: 700;
    font-size: .9rem;
    padding: 1rem 1rem .25rem;
    color: #1a1a1a;
    line-height: 1.3;
}
.fn-noel-product-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--fn-noel-rouge);
    padding: .25rem 1rem .75rem;
}
.fn-noel-product-btn {
    display: block;
    background: var(--fn-noel-bordeaux);
    color: var(--fn-noel-or) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .85rem;
    padding: .75rem;
    transition: background 0.2s;
    letter-spacing: .3px;
}
.fn-noel-product-btn:hover {
    background: var(--fn-noel-rouge-dark);
    color: #fff !important;
}

/* CTA principal */
.fn-noel-section-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--fn-noel-or), var(--fn-noel-or-light));
    color: var(--fn-noel-bordeaux) !important;
    text-decoration: none !important;
    font-weight: 800;
    padding: .85rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    letter-spacing: .3px;
}
.fn-noel-section-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

/* ── Gift badge produit ── */
.fn-noel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--fn-noel-or), var(--fn-noel-or-light));
    color: var(--fn-noel-bordeaux);
    font-size: .65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ══════════════════════════════════════════════════
   SNOWFALL (CSS only, subtil)
   ══════════════════════════════════════════════════ */
.fn-snowfall {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}
.fn-snowfall .flake {
    position: absolute;
    top: -10px;
    color: #fff;
    opacity: 0;
    animation: fn-flake-fall linear infinite;
    text-shadow: 0 0 3px rgba(255,255,255,0.4);
}
.fn-snowfall .flake:nth-child(1) { left: 8%; font-size: .5rem; animation-duration: 12s; animation-delay: 0s; }
.fn-snowfall .flake:nth-child(2) { left: 18%; font-size: .7rem; animation-duration: 14s; animation-delay: 2s; }
.fn-snowfall .flake:nth-child(3) { left: 30%; font-size: .4rem; animation-duration: 11s; animation-delay: 4s; }
.fn-snowfall .flake:nth-child(4) { left: 42%; font-size: .6rem; animation-duration: 13s; animation-delay: 1s; }
.fn-snowfall .flake:nth-child(5) { left: 55%; font-size: .5rem; animation-duration: 10s; animation-delay: 3s; }
.fn-snowfall .flake:nth-child(6) { left: 68%; font-size: .8rem; animation-duration: 15s; animation-delay: 5s; }
.fn-snowfall .flake:nth-child(7) { left: 78%; font-size: .4rem; animation-duration: 12s; animation-delay: 0s; }
.fn-snowfall .flake:nth-child(8) { left: 90%; font-size: .6rem; animation-duration: 14s; animation-delay: 6s; }

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

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .fn-noel-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* Flocons : 4 max sur mobile (perf GPU) */
    .fn-snowfall .flake:nth-child(n+5) { display: none; }

    /* Promo bar : texte plus petit, pas de débordement */
    .fn-noel .fn-promo-bar {
        font-size: .8rem;
        padding: 8px 12px;
        line-height: 1.4;
    }

    /* Section Noël */
    .fn-noel-section { padding: 2rem 1rem; }
    .fn-noel-section-title { font-size: 1.3rem; }
    .fn-noel-section-sub { font-size: .9rem; margin-bottom: 1.5rem; }
    .fn-noel-section-label { font-size: .6rem; padding: 5px 14px; }

    /* Grille 2 colonnes serrées */
    .fn-noel-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
        margin-bottom: 1.5rem;
    }

    /* Cartes compactes */
    .fn-noel-product-card { border-radius: 12px; }
    .fn-noel-product-card img { height: 140px; }
    .fn-noel-product-title { font-size: .78rem; padding: .5rem .5rem .15rem; }
    .fn-noel-product-price { font-size: .95rem; padding: .15rem .5rem .5rem; }
    .fn-noel-product-btn { font-size: .75rem; padding: .55rem .5rem; }

    /* Badge plus petit */
    .fn-noel-badge { font-size: .55rem; padding: 3px 8px; top: 6px; right: 6px; }

    /* CTA */
    .fn-noel-section-cta { font-size: .9rem; padding: .7rem 1.5rem; }

    /* Bokeh : pas d'animation sur mobile (economie batterie) */
    .fn-noel-section::before { animation: none; opacity: 0.7; }
}

@media (max-width: 380px) {
    /* Très petits écrans : texte promo sur 2 lignes ok */
    .fn-noel .fn-promo-bar { font-size: .72rem; }
    .fn-noel-product-card img { height: 120px; }
    .fn-noel-products-grid { gap: .5rem; }
}

/* ══════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .fn-snowfall { display: none; }
    .fn-noel-section::before { animation: none; }
}
