/* Styles communs pour centrer le logo dans les headers */

/* Structure du header */
.header-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
}

/* Logo centré */
.header-top > img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-height: 60px;
    z-index: 1;
}

/* Styles pour le logo cliquable - maintien de la taille et position exactes */
.logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: inline-block;
    text-decoration: none;
}

.logo-link img {
    max-height: 60px;
    display: block;
    object-fit: contain;
}

/* S'assurer que les styles existants s'appliquent aussi au logo dans le lien */
.header-top .logo-link img {
    max-height: 60px;
    object-fit: contain;
}

/* Icônes avec z-index supérieur pour rester cliquables */
.menu-icon {
    position: relative;
    z-index: 2;
    font-size: 36px;
    cursor: pointer;
}

/* Message icon avec badge de notification */
.message-icon {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Barre de recherche */
.search-bar {
    width: 60%;
    max-width: 400px;
    padding: 12px;
    margin: 10px auto;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar::placeholder {
    color: #999;
}

.search-bar:focus {
    background-color: white;
    box-shadow: 0 0 0 2px rgba(26, 58, 95, 0.2);
    border-color: #1a3a5f;
}

/* Badge de notification */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 3;
}

/* Ajustements pour les petits écrans */
@media (max-width: 768px) {
    .header-top > img {
        max-height: 50px;
    }
    
    .search-bar {
        width: 80%;
        max-width: 300px;
    }
}
