/* Styles du header et de la navigation */
header {
    background-color: #DAB30A;
    margin: auto;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px 20px;
    height: 70px;
}

header ul {
    margin-top: 0%;
    display: flex;
    align-items: center;
}

header ul li {
    display: inline;
    margin-right: 30px;
    width: 20%;
}

header ul li a {
    padding-right: 2%;
    margin-right: 40px;
    margin-top: 25px;
}

header img {
    width: 70px;
    margin: 0px;
}

header a {
    color: darkslategray;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

header a:hover {
    animation-name: color_a;
    animation-duration: 0.5s;
}

@keyframes color_a {
    from {
        color: black;
    }
    to {
        color: black;
    }
}

#active {
    color: black;
}

/* Styles pour le menu utilisateur et photo de profil */
.user-profile {
    position: relative;
}

.profile-container {
    cursor: pointer;
    position: relative;
}

.profile-photo {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
}


.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;           
    top: 60px;          
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 100;
}

.profile-container:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    header {
        height: 60px;
        padding-left: 0px;
        font-style: solid;
    }

    header ul {
        font-size: 0.6em;
    }

    header ul li {
        width: 100%;
        margin-right: 0px;
    }
    
    header img {
        width: 60px;
    }

    .profile-photo {
        width: 40px !important;
        height: 40px !important;
    }

    .dropdown-menu {
        top: 50px;
        min-width: 180px;
    }
}

/* Responsive pour téléphones (moins de 768px) */
@media (max-width: 768px) {
    header {
        height: 50px;
        padding-left: 0px;
    }

    header ul {
        font-size: 0.5em;
    }

    header ul li {
        width: 100%;
        margin-right: 0px;
    }
    
    header img {
        width: 50px;
    }

    .profile-photo {
        width: 35px !important;
        height: 35px !important;
    }

    .dropdown-menu {
        top: 45px;
        min-width: 160px;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 0.8em;
    }
}