/* ===========================================
   Header composant (x-welcome-header)
   #welcome-header-root = même rendu partout (welcome + blog)
   Ne pas dupliquer ces règles ailleurs.
   =========================================== */

#welcome-header-root {
    --foreground: 215 25% 15%;
    --primary: 215 45% 18%;
    --border: 215 20% 88%;
}

#welcome-header-root .navbar-modern .navbar-brand,
#welcome-header-root .navbar-modern .navbar-brand:hover {
    color: hsl(var(--primary));
}

#welcome-header-root .navbar-modern,
#welcome-header-root .navbar-modern .nav-link,
#welcome-header-root .navbar-modern .btn,
#welcome-header-root .navbar-modern .sitename,
#welcome-header-root .navbar-modern .dropdown-menu {
    font-family: 'Roboto', sans-serif;
}

#welcome-header-root .navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
    transition: all 0.3s ease-in-out;
}

#welcome-header-root .navbar-brand {
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

#welcome-header-root .nav-link-modern {
    text-decoration: none !important;
    font-family: 'Roboto', sans-serif !important;
}

#welcome-header-root .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

#welcome-header-root ul.navbar-nav {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (min-width: 992px) {
    #welcome-header-root .navbar-modern .navbar-modern-menu {
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        justify-content: flex-end;
    }
    #welcome-header-root .navbar-modern .navbar-modern-menu .navbar-nav {
        flex-direction: row;
    }
}

@media (max-width: 991px) {
    #welcome-header-root .navbar-modern .navbar-modern-menu {
        display: none;
    }
    #welcome-header-root .navbar-modern .navbar-modern-menu.show {
        display: flex;
        flex-direction: column;
    }
}

#welcome-header-root .navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    height: 70px;
}

#welcome-header-root .nav-link-modern {
    color: hsl(var(--foreground));
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

#welcome-header-root .nav-link-modern:hover,
#welcome-header-root .nav-link-modern.active,
#welcome-header-root .nav-link-modern:focus-visible {
    color: #6b6345;
    background: transparent;
}

#welcome-header-root .nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #6b6345;
    border-radius: 1px;
    transition: width 0.2s ease;
}

#welcome-header-root .nav-link-modern:hover::after,
#welcome-header-root .nav-link-modern.active::after,
#welcome-header-root .nav-link-modern:focus-visible::after {
    width: 32px;
}

#welcome-header-root .sitename {
    font-size: 1.25rem;
    font-weight: 600;
}

#welcome-header-root .navbar-brand .sitename {
    font-size: 1rem;
}

@media (max-width: 768px) {
    #welcome-header-root .navbar-brand .sitename {
        font-size: 0.9rem;
    }

    #welcome-header-root .navbar-modern .navbar-modern-menu {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    #welcome-header-root .navbar-modern .navbar-modern-menu.show {
        display: flex;
    }

    #welcome-header-root .navbar-modern .navbar-modern-menu .navbar-nav {
        margin-bottom: 1rem;
    }

    #welcome-header-root .navbar-modern .navbar-modern-menu .ms-3.d-flex.gap-2 {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    #welcome-header-root .navbar-modern .navbar-modern-menu .ms-3.d-flex.gap-2 .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
