/* Importation de la police Concert One */
@import url('https://fonts.googleapis.com/css2?family=Concert+One&display=swap');

/* -------------- ------------- ------------- ------------- ------------- */
/* ------------- ------------- HEADER GENERAL ------------- ------------- */
/* -------------- ------------- ------------- ------------- ------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    background-color: rgba(30,60,120,1);
    z-index: 1000;
}


/* -------------- ------------- ------------- ------------- ------------- */
/* ------------- ------------- HEADER DESKTOP ------------- ------------- */
/* -------------- ------------- ------------- ------------- ------------- */

.header-desktop {
    display: flex;
    align-items: center;
    min-height: 9vh;
}

/*LEFT HEAD*/
.header-desktop .left-head {
    display: flex;
    align-items: center;
    margin-left: 10px;
    height: 100%;
}

.header-desktop .left-head .logo {
    display: flex;
    align-items: center;
}

.header-desktop .left-head .logo img {
    display: none;
    max-width: 50px;
}

.header-desktop .left-head .logo .head-title {
    font-size: 24px; /* Légèrement augmenté pour plus de visibilité */
    color: #FFFFFF;
    font-weight: bold;
    margin-left: 15px;
    text-decoration: none;
    font-family: 'Concert One', cursive;
}

/*CENTER HEAD*/
.header-desktop .center-head {
    display: flex;
    align-items: center;
}

/*RIGHT HEAD*/
.header-desktop .right-head {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-desktop .right-head .main-nav {
    display: flex;
    align-items: center;
}

.header-desktop .right-head .main-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-desktop .right-head .main-nav ul li {
    display: flex;
    align-items: center;
}

.header-desktop .right-head .main-nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-desktop .right-head .large-head-search-text, .header-desktop .right-head .large-head-post-text {
    font-size: 15px;
    color: #FFFFFF;
    margin-left: 5px;
    margin-right: 20px;
}

.header-desktop .user-menu {
    display: flex;
    align-items: center;
    height: 100%; /* Assurer que la hauteur est de 100% */
}

.header-desktop .menuButtonDesktop {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    height: 100%;
}

.header-desktop .menuButtonDesktop svg {
    display: flex;
    align-items: center;
    height: 100%; /* Assurer que la hauteur est de 100% */
}

.header-desktop .user-profile-picture {
    display: flex;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.menuButtonDesktop .open #chevronDesktop {
    transform: rotate(180deg);
}

/* ------------- ------------- ------------- ------------- ------------- */
/* ------------- ------------- HEADER MOBILE ------------- ------------- */
/* ------------- ------------- ------------- ------------- ------------- */

.header-mobile {
    display: none; /* Cacher par défaut */
    align-items: center;
    min-height: 9vh;
}

.header-mobile .left-head {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.header-mobile .left-head .main-nav {
    display: flex;
    align-items: center;
}

.header-mobile .left-head .main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-mobile .left-head .main-nav ul li {
    display: flex;
    align-items: center;
    margin: 0 0px;
    padding: 5px;
}

.header-mobile .left-head .main-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.header-mobile .left-head .main-nav ul li a svg {
    display: flex;
    align-items: center;
    height: 4vh;
    width: auto;
}

.header-mobile .right-head {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-mobile .right-head .user-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-mobile .right-head .user-menu .menuButtonMobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    height: 100%;
}

.header-mobile .right-head .user-menu .menuButtonMobile .mobile-user-initials {
    display: none;
    margin-right: 5px;
    color: #FFFFFF;
    font-size: 20px;
}

.header-mobile .right-head .user-menu .menuButtonMobile svg {
    display: flex;
    align-items: center;
    height: 7vh;
    width: auto;
    margin-right: 5px;
}

.header-mobile .user-profile-picture {
    display: flex;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
}

.header-mobile .right-head .user-menu .menuButtonMobile .chevron {
    height: 4vh;
    width: auto;
}

/* ------------- ------------- ------------- ------------- ------------- */
/* ------------- ------------- DROPDOWN MENU ------------- ------------- */
/* ------------- ------------- ------------- ------------- ------------- */

.dropdown-content {
    display: none;
    
    position: absolute;
    top: 100%; /* Positionner en dessous du bouton */
    right: 0;
    z-index: 10000;
    
    box-sizing: border-box;
    width: 300px;
    font-family: 'Concert One', cursive;
}

.dropdown-content .dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0,0,0,0.05);
}

.separator {
    border: none;
    border-top: 1px solid #eee; /* Ligne de séparation */
    margin: 0; /* Pas de marge */
}

.dropdown-content.show {
    display: block;
    font-size: 20px;
    color: #000000;
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    
}

.dropdown-content .dropdown-link {
    display: flex;
    align-items: center;
    
    color: rgba(30,63,116,1);
    padding: 12px 16px;
    text-decoration: none;
    height: 10vh;
    font-size: 20px;
}

.dropdown-content a:hover {
    background-color: #DDDDDD;
    border-radius: 10px;
}

.user-menu {
    position: relative;
}

.chevron-rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.notification-badge-dropdown {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 10px;
}


/* ------------- ------------- ------------- ------------- ------------- */
/* ------------- ------------- MEDIA QUERIES ------------- ------------- */
/* ------------- ------------- ------------- ------------- ------------- */

@media (max-width: 999.99px) {
    .header-desktop {
        display: none;
    }
    .header-mobile {
        display: flex;
    }
}