/* ==========================================
   NAVBAR
========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    /* width: min(95%, 1400px); */
    width: 95%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.6rem 1.2rem;

    background: linear-gradient(
        to bottom,
        var(--violet),
        var(--violet)
    );

    border-bottom: 3px solid #ddd;
    border-radius: 0 0 12px 12px;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);

    z-index: 1000;
    
	font-size: 1rem;
}


/* ==========================================
   LOGO
========================================== */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    background: transparent;
    border: none;
    cursor: pointer;

    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.navbar-brand span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}


/* ==========================================
   MENU PRINCIPAL
========================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links > button,
.nav-links > .dropdown > .dropdown-btn {
    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    border: none;
    cursor: pointer;

    color: white;
    text-decoration: none;

    padding: 0.45rem 0.8rem;

    font-weight: 500;

    white-space: nowrap;

    border-radius: 6px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


/* ==========================================
   HOVER / ACTIVE MENU PRINCIPAL
========================================== */

.nav-links > button:hover,
.nav-links > button.active,
.nav-links > .dropdown > .dropdown-btn:hover,
.nav-links > .dropdown > .dropdown-btn.active {
    background: var(--violet-clair);
    color: var(--gold);
}


/* ==========================================
   DROPDOWN
========================================== */

.dropdown {
    position: relative;
}


/* ==========================================
   CONTENU DU DROPDOWN
========================================== */

.dropdown-content {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 280px;

    background: linear-gradient(
        to bottom,
        var(--violet),
        var(--violet)
    );

    border: 1px solid #ddd;
    border-top: none;

    border-radius: 0 0 10px 10px;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);

    overflow: hidden;

    z-index: 1100;
}


/* ==========================================
   BOUTONS DU DROPDOWN
========================================== */

.dropdown-content button {
    display: block;
    width: 100%;

    padding: 0.75rem 1.2rem;

    text-align: left;

    background: transparent;
    border: none;
    cursor: pointer;

    color: white;
    font-size: inherit;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


/* ==========================================
   HOVER DES BOUTONS DU DROPDOWN
========================================== */

.dropdown-content button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}


/* ==========================================
   AFFICHAGE DU DROPDOWN
========================================== */

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}
