/* ============================================
   HEADER STICKY AVEC CHANGEMENT DE COULEURS
   ============================================ */

/* Header sticky - État initial transparent avec effet de flou glassmorphism */
.ekit-template-content-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    /* Glassmorphism effect - fond semi-transparent avec flou */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Fallback pour navigateurs sans backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .ekit-template-content-header {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* État initial - enfants transparents */
.ekit-template-content-header:not(.ekit-header-scrolled) * {
    background-color: transparent !important;
}

/* ============================================
   ÉTAT SCROLLÉ - FOND BLANC
   ============================================ */
.ekit-header-scrolled {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.ekit-template-content-header.ekit-header-scrolled {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================
   TRANSITION DU LOGO
   ============================================ */
.ekit-template-content-header img[class*="logo"],
.ekit-template-content-header .custom-logo,
.ekit-template-content-header .site-logo-img img,
.ekit-template-content-header .ast-logo-svg img,
.ekit-template-content-header .elementor-widget-theme-site-logo img,
.ekit-template-content-header .elementor-widget-image img {
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 60px;
}

.ekit-template-content-header img[class*="logo"]:hover,
.ekit-template-content-header .custom-logo:hover,
.ekit-template-content-header .site-logo-img img:hover {
    transform: scale(1.05);
}

/* ============================================
   LIENS DU MENU
   ============================================ */
.ekit-template-content-header .main-header-menu > .menu-item > .menu-link,
.ekit-template-content-header #astra-footer-menu > .menu-item > .menu-link,
.ekit-template-content-header .menu-item .menu-link,
.ekit-template-content-header .elementor-nav-menu .menu-item a,
.ekit-template-content-header .ekit-menu-nav-link {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

/* Hover - Rose DECISIOS */
.ekit-template-content-header .main-header-menu > .menu-item > .menu-link:hover,
.ekit-template-content-header #astra-footer-menu > .menu-item > .menu-link:hover,
.ekit-template-content-header .menu-item .menu-link:hover,
.ekit-template-content-header .elementor-nav-menu .menu-item a:hover,
.ekit-template-content-header .ekit-menu-nav-link:hover {
    color: #f91e5a !important;
    text-shadow: 0 1px 4px rgba(249, 30, 90, 0.3);
}

/* Scrollé - liens noirs */
.ekit-header-scrolled .main-header-menu > .menu-item > .menu-link,
.ekit-header-scrolled #astra-footer-menu > .menu-item > .menu-link,
.ekit-header-scrolled .menu-item .menu-link,
.ekit-header-scrolled .elementor-nav-menu .menu-item a,
.ekit-header-scrolled .ekit-menu-nav-link {
    color: #000000 !important;
    text-shadow: none;
}

/* Hover scrollé - Gradient DECISIOS */
.ekit-header-scrolled .main-header-menu > .menu-item > .menu-link:hover,
.ekit-header-scrolled #astra-footer-menu > .menu-item > .menu-link:hover,
.ekit-header-scrolled .menu-item .menu-link:hover,
.ekit-header-scrolled .elementor-nav-menu .menu-item a:hover,
.ekit-header-scrolled .ekit-menu-nav-link:hover {
    background: linear-gradient(135deg, #220660, #f91e5a, #5ce1e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ekit-template-content-header {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .ekit-header-scrolled img[class*="logo"],
    .ekit-header-scrolled .custom-logo,
    .ekit-header-scrolled .site-logo-img img {
        transform: scale(1);
        max-height: 50px;
    }

    .ekit-template-content-header .mobile-menu-toggle,
    .ekit-template-content-header .ast-mobile-menu-trigger {
        color: #ffffff !important;
    }

    .ekit-header-scrolled .mobile-menu-toggle,
    .ekit-header-scrolled .ast-mobile-menu-trigger {
        color: #000000 !important;
    }
}

/* ============================================
   TEXTE
   ============================================ */
.ekit-template-content-header .menu-item .menu-link,
.ekit-template-content-header .elementor-nav-menu .menu-item a,
.ekit-template-content-header .main-header-menu > .menu-item > .menu-link {
    text-transform: none !important;
}
/* ============================================
   MENU DÉROULANT ELEMENTSKIT (GLASSMORPHISM)
   ============================================ */

.elementor-863 .elementor-element.elementor-element-29ee75e7 
.elementskit-navbar-nav .elementskit-submenu-panel {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.25) !important;
    padding: 10px 0 !important;
    margin-top: 0 !important;
    min-width: 220px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
}

/* Liens du sous-menu */
.elementor-863 .elementor-element.elementor-element-29ee75e7 
.elementskit-navbar-nav .elementskit-submenu-panel > li > a {
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: block !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* Hover des liens */
.elementor-863 .elementor-element.elementor-element-29ee75e7 
.elementskit-navbar-nav .elementskit-submenu-panel > li > a:hover {
    color: #ffffff !important;
    transform: translateX(5px) !important;
    text-shadow: none !important;
}
