/* Header styles */
header {
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    /*line-height: 1.2em;*/
}

/* Navigation styles */
nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
    position: relative;
    font-size: 1rem;
    font-weight: 600;
}

/* Supprimé l'effet hover underline */
nav a {
    /* position: relative; - supprimé car plus nécessaire */
    /* padding-bottom: 5px; - supprimé car plus nécessaire */
}

/* Supprimé les règles pour l'effet underline hover */
/*
nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}
*/

/* Dropdown styles */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-content a {
    display: block;
    padding: 6px 10px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    margin-left: auto; /* Force l'alignement à droite */
}

/* Responsive styles - navigation */
@media (max-width: 768px) {
    header {
        padding: 5px 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        margin: 0;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown-content a {
        padding: 5px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto; /* S'assurer que le burger est bien à droite */
    }
}

@media (max-width: 768px) {
    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
        opacity: 0;
        transform: translateY(10px);
    }

    .dropdown.open .dropdown-content {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}