:root {
    --bleu-fonce: #1a4b8c;
    --bleu-moyen: #2a6ec6;
    --bleu-clair: #e6f0fa;
    --jaune-or: #ffc72c;
    --jaune-or-fonce: #e6b325;
    --texte-blanc: #ffffff;
    --texte-noir: #333333;
    --gris-clair: #f5f5f5;
}

/* Styles de base */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    transition: all 0.3s ease;
}

.navbar-top {
    margin: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: var(--bleu-fonce);
    transition: all 0.3s ease;
    width: 100%;
}

.navbar-bottom {
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--bleu-moyen);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    gap: 20px;
}

.navbar.scrolled .navbar-top {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar.scrolled .navbar-bottom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    color: var(--bleu-clair);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    text-align: center;
}

.logo small {
    font-size: 0.8rem;
    font-weight: normal;
}

.logo:hover {
    color: var(--jaune-or);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--jaune-or);
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--jaune-or);
    transition: all 0.3s ease;
}

/* Style pour les icônes sociales */
.nav-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-social a {
    color: var(--jaune-or);
    font-size: 1.3rem;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-social a:hover {
    color: var(--texte-blanc);
    transform: scale(1.15);
}

/* Classes pour contrôle responsive */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Navigation desktop */
.nav-menu {
    display: flex;
    align-items: center;
    text-align: center;
    margin-left: 7%;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-links a {
    color: var(--bleu-clair);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--jaune-or);
}

.nav-links a.active:after,
.nav-links a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--jaune-or);
}

/* Version mobile */
@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .navbar-top {
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .navbar-bottom {
        justify-content: space-between;
        padding: 10px 15px;
    }

    .navbar-bottom .navbar-brand {
        flex-grow: 1;
    }

    .menu-toggle {
        display: flex;
        margin-left: 90%;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bleu-fonce);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 30px;
        transition: left 0.3s ease;
        overflow-y: auto;
        margin-left: 0;

    }
    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 25px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .nav-links a:after {
        display: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-social.mobile-only {
        margin-top: 30px;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
    }

    .logo small {
        font-size: 0.7rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }
}
