/* ===========================
   Thème Noël – Zetheberge
   Correction placement guirlande
   =========================== */

#noel-decor {
    position: fixed;
    top: 72px !important;      /* ⭐ Met la guirlande SOUS la navbar */
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 99999;
    background: transparent !important;
}

/* RESET des flocons bloqués (bug Elementor / Hostiko) */
/* RESET PRO — laisse le script contrôler la position */
.snowflake {
    position: fixed !important;
    pointer-events: none;
    z-index: 99999 !important;

    /* Style du flocon */
    color: #fff !important;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);

    /* ❌ NE PAS toucher top / left → gérés par le JS */
}

/* Animation propre */
.snowflake {
    animation: snowfall var(--duration, 12s) linear var(--delay, 0s) infinite !important;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(40px);
        opacity: 0.4;
    }
}

/* ⭐ Guirlande pleine largeur */
.noel-garland {
    position: relative;
    width: 100%;
    height: 80px;
}

/* Fil de la guirlande */
.noel-garland::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Ampoules */
.noel-bulb {
    position: absolute;
    top: 25px;
    width: 14px;
    height: 22px;
    border-radius: 50% 50% 65% 65%;
    transform-origin: 50% -8px;
    animation:
        noel-bulb-swing 2.5s ease-in-out infinite,
        noel-bulb-blink 1.8s ease-in-out infinite alternate;
}

/* Placement recalculé automatiquement */
.noel-bulb:nth-child(n) {
    left: calc((var(--i) * 100vw) / 40);
}

/* Couleurs */
.noel-bulb:nth-child(4n + 1) { background: #ff4b4b; box-shadow: 0 0 10px #ff4b4b; }
.noel-bulb:nth-child(4n + 2) { background: #ffd447; box-shadow: 0 0 10px #ffd447; }
.noel-bulb:nth-child(4n + 3) { background: #34d399; box-shadow: 0 0 10px #34d399; }
.noel-bulb:nth-child(4n + 4) { background: #60a5fa; box-shadow: 0 0 10px #60a5fa; }

@keyframes noel-bulb-swing {
    0%   { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

@keyframes noel-bulb-blink {
    0%   { opacity: 0.6; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Traîneau */
#noel-santa {
    position: absolute;
    top: -10px;
    left: -200px;
    font-size: 26px;
    animation: noel-santa-run 45s linear infinite;
}

@keyframes noel-santa-run {
    0%   { transform: translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(120vw); opacity: 0; }
}

/* ===========================
   Header & menu en mode Noël
   =========================== */

/* Bandeau principal plus “hiver / Noël” */
.site-header,
header.site-header,
.main-header,
.header-main,
.navbar,
.akd-header {
    background: linear-gradient(90deg, #051937, #10356b) !important;
    border-bottom: 2px solid rgba(244, 196, 48, 0.4);
}

/* Liens du menu */
.site-header a,
.main-header a,
.navbar a,
.header-main a {
    color: #f8fafc !important;
}

/* Élément de menu actif ou survolé */
.site-header .current-menu-item > a,
.main-header .current-menu-item > a,
.navbar .current-menu-item > a,
.header-main .current-menu-item > a,
.site-header .menu > li > a:hover,
.main-header .menu > li > a:hover,
.navbar-nav > li > a:hover {
    color: var(--noel-gold) !important;
}

/* Bouton "Connexion" / boutons principaux dans le header */
.site-header .btn,
.main-header .btn,
.navbar .btn,
.header-main .btn,
.elementor-button,
.elementor-button-primary,
button[type="submit"],
input[type="submit"] {
    background: var(--noel-red) !important;
    border-color: var(--noel-red) !important;
    color: #fff !important;
    border-radius: 999px !important; /* un peu plus “festif” */
    box-shadow: 0 0 12px rgba(214, 40, 40, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Hover boutons */
.site-header .btn:hover,
.main-header .btn:hover,
.navbar .btn:hover,
.header-main .btn:hover,
.elementor-button:hover,
.elementor-button-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--noel-green) !important;
    border-color: var(--noel-green) !important;
    box-shadow: 0 0 16px rgba(47, 158, 68, 0.7);
    transform: translateY(-1px);
}

/* Style bouton Premium Noël */
.elementor-button,
button,
input[type="submit"],
.btn {
    background: linear-gradient(135deg, var(--noel-red), #a11515) !important;
    border: none !important;
    color: white !important;
    padding: 12px 26px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4);
    transition: all 0.2s ease;
}

.elementor-button:hover,
button:hover,
input[type="submit"]:hover,
.btn:hover {
    background: linear-gradient(135deg, var(--noel-green), #146b14) !important;
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.45);
    transform: translateY(-2px);
}

.elementor-widget-container,
.hosting-plans-inner,
.card,
.box,
.plan {
    background: var(--noel-bg-soft) !important;
    border: 1px solid var(--noel-border) !important;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 20px;
    transition: all 0.25s ease;
}

.elementor-widget-container:hover,
.hosting-plans-inner:hover,
.card:hover,
.box:hover,
.plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    border-color: var(--noel-gold);
}

.menu-item-10177 {
    animation: xmas-wiggle 2.5s ease infinite;
}

@keyframes xmas-wiggle {
    0%, 100% { transform: rotate(0deg); }
    40% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
}

.custom-logo,
.custom-logo-link,
.site-logo img {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

footer::before {
    content: "❄ ❅ ❆ ❄ ❅ ❆";
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    letter-spacing: 10px;
    opacity: 0.15;
    font-size: 20px;
    pointer-events: none;
}

.elementor-widget-image,
.elementor-icon {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

h1, h2, h3 {
    color: var(--noel-red) !important;
    font-weight: 700;
}

h1 span, h2 span, h3 span {
    color: var(--noel-red) !important;
}

.section-title::after {
    content: "❄";
    color: var(--noel-gold);
    margin-left: 8px;
    font-size: 22px;
}

/* Petites accents / liens importants en doré */
a:hover,
a:focus {
    color: var(--noel-gold);
}

/* Effet givré général sur les grands blocs */
.elementor-section,
section {
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2));
    backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* ==========================
   MODE NUIT SPÉCIAL NOËL
   ========================== */

body.noel-night {
    background: #0b1220 !important;
    color: #e8ecf8 !important;
}

body.noel-night .elementor-section,
body.noel-night section,
body.noel-night .box,
body.noel-night .card,
body.noel-night .plan {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

body.noel-night h1, 
body.noel-night h2, 
body.noel-night h3 {
    color: var(--noel-gold) !important;
}

body.noel-night a {
    color: #ffd59e !important;
}

body.noel-night .site-header,
body.noel-night .navbar {
    background: linear-gradient(90deg, #020617, #0a2342) !important;
}

/* Bouton de bascule mode nuit */
#noel-night-toggle {
    position: fixed;
    bottom: 80px;
    right: 15px;
    background: var(--noel-blue);
    color: white;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    z-index: 999999;
    transition: all 0.2s ease;
}

#noel-night-toggle:hover {
    transform: scale(1.08);
    background: var(--noel-green);
}

/* ==========================
   POUSSIÈRE DORÉE (HOVER)
   ========================== */

.dust-gold {
    position: relative;
    overflow: visible !important;
}

.dust-gold:hover::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,215,130,0.7) 0%, transparent 70%);
    animation: dustGold 0.7s ease-out;
}

@keyframes dustGold {
    0% { opacity: 0; transform: scale(0.4); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(2); }
}

/* Appliquer automatiquement à boutons */
button, .elementor-button, .btn {
    position: relative;
}

button:hover, .elementor-button:hover, .btn:hover {
    animation: dustGold 0.6s ease-out;
}

/* ==========================
   EFFET GIVRE SUR IMAGES
   ========================== */

img {
    transition: filter 0.4s ease, transform 0.4s ease;
}

img:hover {
    filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 8px rgba(255,255,255,0.6));
    transform: scale(1.025);
}

img:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
}



/* ==========================
   BANDEAU PROMOTION NOËL
   ========================== */

#noel-banner {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background: linear-gradient(90deg, #d62828, #b21818);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: bannerSlide 12s linear infinite;
}

@keyframes bannerSlide {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

body.has-noel-banner .site-header,
body.has-noel-banner header,
body.has-noel-banner .main-header,
body.has-noel-banner .navbar,
body.has-noel-banner .akd-header {
    margin-top: 45px !important;
}


/* ===========================
   Palette Noël globale
   =========================== */

:root {
    /* Couleurs principales Noël */
    --noel-red:   #d62828;
    --noel-green: #228B22;
    --noel-gold:  #f5d782;
    --noel-blue:  #0a2342;

    /* Neutres améliorés */
    --noel-bg:        #f7f9fc;     /* Blanc glacé */
    --noel-bg-soft:   #eef3ff;     /* Bleu neige léger */
    --noel-border:    rgba(255,255,255,0.4);
}

/* ==========================
   VERSION MOBILE NOËL
   ========================== */

@media (max-width: 768px) {

    /* Réduit la guirlande */
    #noel-decor {
        top: 65px !important;
        height: 60px;
    }

    .noel-bulb {
        width: 10px;
        height: 16px;
        top: 20px;
    }

    /* Traîneau plus petit */
    #noel-santa {
        font-size: 18px;
        top: -5px;
    }

    /* Snowflakes moins gros */
    .snowflake {
        font-size: 10px !important;
    }

    /* Header plus lisible */
    .site-header,
    .navbar {
        background: #0a2342 !important;
    }

    /* Boutons plus ronds */
    button, .elementor-button {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }

    /* Sections compactes */
    .elementor-section {
        border-radius: 10px;
        padding: 10px !important;
    }
}
