/* ================= VARIABLES COULEUR ================= */
:root {
    --menu-bg: #001f3f;
    --menu-text: #ffd700;
    --menu-border: #ffd702;
    --menu-hover-bg: #ffffff;
    --menu-hover-text: #ff0000;
    --menu-active-bg: #228B22;

    /* Couleur liée au logo (modifiable facilement) */
    --logo-text-color: #1A211B;
}

/* ================= HEADER ================= */
header.container-header {
    background: url('https://ecologie28.fr/images/Photos/fond_ecran_aurore.png') center / cover no-repeat;
    min-height: 120px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.container-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
}

header .site-description {
    color: var(--logo-text-color) !important;
    font-weight: 500;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

/* ================= LOGO ================= */
.navbar-brand {
    text-align: center;
    margin: 10px auto;
    animation: fadeIn 1.5s ease 1s forwards;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.site-description {
    color: var(--logo-text-color);
    font-weight: 500;
	font-size: 24px;
}

/* ================= MENU ================= */
.container-nav {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* Neutraliser Bootstrap */
.mod-menu_dropdown-metismenu.nav-pills {
    padding: 0;
    margin: 0;
    background: none;
}

/* Structure */
.mod-menu_dropdown-metismenu {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

/* Items */
.mod-menu_dropdown-metismenu > li {
    position: relative;
}

/* Liens */
.mod-menu_dropdown-metismenu > li > a {
    display: block;
    padding: 6px 10px;
    background: var(--menu-bg);
    color: var(--menu-text);
    border: 2px solid var(--menu-border);
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

/* Hover */
.mod-menu_dropdown-metismenu > li > a:hover {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-text);
    border-color: var(--menu-hover-text);
}

/* Actif */
.mod-menu_dropdown-metismenu > li.active > a,
.mod-menu_dropdown-metismenu > li.current > a {
    background: var(--menu-active-bg);
}

/* ================= SOUS-MENUS ================= */
.mod-menu_dropdown-metismenu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0;
    list-style: none;

    background: rgba(240,240,240,0.9);
    backdrop-filter: blur(6px);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.mod-menu_dropdown-metismenu li:hover > ul {
    display: block;
}

.mod-menu_dropdown-metismenu li ul a {
    display: block;
    padding: 10px 15px;
    color: #001f3f;
    text-decoration: none;
}

.mod-menu_dropdown-metismenu li ul a:hover {
    background: rgba(255,215,0,0.25);
}

/* ================= STICKY EFFECT (optionnel amélioration) ================= */
header.container-header.scrolled {
    backdrop-filter: blur(6px);
    background-color: rgba(255,255,255,0.8);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    /* Menu vertical */
    .mod-menu_dropdown-metismenu {
        flex-direction: column;
        align-items: center;
    }

    .mod-menu_dropdown-metismenu > li {
        width: 100%;
        text-align: center;
    }

    .mod-menu_dropdown-metismenu > li > a {
        width: 100%;
    }

    /* Sous-menus en mobile */
    .mod-menu_dropdown-metismenu li ul {
        position: static;
        box-shadow: none;
        background: rgba(240,240,240,1);
    }

    .mod-menu_dropdown-metismenu li:hover > ul {
        display: none; /* désactive hover mobile */
    }

    /* Option : affichage au clic (si besoin JS plus tard) */
}

/* Très petits écrans */
@media (max-width: 480px) {

    .navbar-brand img {
        max-width: 90%;
        height: auto;
    }

    .site-description {
        font-size: 0.9rem;
    }
}