.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Branding */
.header-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 65px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.brand-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.brand-link:hover .brand-logo {
    transform: rotate(5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--snc-green);
    line-height: 1.2;
}

.brand-description {
    font-size: 1rem;
    color: rgba(44, 62, 80, 0.8);
    line-height: 1.2;
}

/*** Navbar Start ***/
.nav-bar {
    background: var(--snc-white);
    transition: 1s;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: 0.5s;
}

.nav-bar .navbar-light .navbar-brand img {
    max-height: 50px;
}

.navbar-light .navbar-nav .nav-item {
    /* Styles de base communs */
    padding: 8px 10px;
    margin: 0 14px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 16px;
    line-height: 1.2;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    border: 1px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.navbar-light .navbar-nav .nav-item .nav-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

/* Effet Hover - Élégant et fluide */
.navbar-light .navbar-nav .nav-item:hover {
    background-color: var(--snc-red);
    color: var(--snc-white) !important;
    border-color: var(--snc-red);
    box-shadow: 0 6px 12px rgba(215, 28, 38, 0.25);
    transform: translateY(-2px);
    border-radius: 20px;
}

/* Effet de surbrillance au hover */
.navbar-light .navbar-nav .nav-item:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 0.8s ease;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

/* Effet Active - Click feedback */
.navbar-light .navbar-nav .nav-item:active {
    background-color: #c82333; /* Version plus sombre du rouge */
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(215, 28, 38, 0.4);
    transition: all 0.1s ease;
}

/* Animation de pulsation légère au clic */
.navbar-light .navbar-nav .nav-item:active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 0.4s ease-out;
}

@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.7;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* État Active (page courante) */
.navbar-light .navbar-nav .nav-item.active {
    background-color: var(--snc-red);
    color: var(--snc-white) !important;
    border-radius: 20px;
    border-color: var(--snc-red);
    box-shadow: 0 4px 8px rgba(215, 28, 38, 0.3);
    position: relative;
}

/* Indicateur pour l'état actif */
.navbar-light .navbar-nav .nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--snc-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Amélioration du texte */
.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item.active,
.navbar-light .navbar-nav .nav-item:active {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .navbar-light .navbar-nav .nav-item:hover {
        transform: none;
    }

    .navbar-light .navbar-nav .nav-item:active {
        background-color: #c82333;
        transform: scale(0.98);
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0;
    }

    .navbar .navbar-nav .nav-item {
        display: flex;
        padding: 20px;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .navbar .navbar-nav .nav-btn {
        display: flex;
        justify-content: start;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        margin-top: 20px;
        padding-bottom: 20px;
        background: var(--snc-light);
        border-radius: 10px;
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--snc-red);
        color: var(--snc-red);
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu .dropdown-item:hover {
    background: var(--snc-red);
    color: var(--snc-white);
}

@media (min-width: 992px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .nav-btn {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--snc-light);
        border-radius: 10px;
    }

    .navbar .navbar-nav .nav-btn {
        width: 100%;
        display: flex;
        margin-left: auto;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: 0.5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        margin-top: 20px;
        background: var(--snc-light);
        transition: 0.5s;
        opacity: 1;
    }
}
/*** Navbar End ***/
