﻿.site-header {
     width: 100%;
    margin: 0;
    padding: 0;
}

/* Ligne contenant les deux logos */
.header-top {
    position: relative;

    height: 70px;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    padding: 0 20px;

    margin: 0;
}

/* Logo de gauche */
.logo-main {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo-main img {
    display: block;
    max-height: 55px;
    width: auto;
}

/* Logo centré dans l'espace restant */
.logo-section {
     position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section img {
     display: block;

    max-height: 60px;
    max-width: 220px;

    width: auto;
}

/* ==========================
   ACTIONS VISITEUR
========================== */

.guest-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


/* Bouton connexion */

.login-btn,
.register-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}


/* Connexion */

.login-btn {
    background: #e8f4fb;

    border: 1px solid #8ecae6;
	display:block;
    color: #23627e;
}

.login-btn:hover {
    background: #d5edf8;

    transform: translateY(-1px);
}


/* Inscription */

.register-btn {
    background: #219ebc;

    border: 1px solid #219ebc;

    color: white;
}

.register-btn:hover {
    background: #1885a0;

    transform: translateY(-1px);
}


@media (max-width: 600px) {

    .guest-actions {
        gap: 5px;
    }

    
	.register-btn {
        padding: 7px 9px;

        font-size: 12px;
    }
}
/* ==========================
   UTILISATEUR
========================== */

.user-profile {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 5px 10px;

    border-radius: 25px;

    text-decoration: none;

    color: #333;

    transition:
        background .2s ease,
        transform .2s ease;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.06);

    transform: translateY(-1px);
}


/* Avatar */

.user-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;

    display: block;

    border: 2px solid #4aa3df;
}


/* Pseudo */

.user-pseudo {
    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;
}


.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 8px 12px;

    background: #ffffff;

    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;

   
}

.main-menu::-webkit-scrollbar {
    display: none;
}


.main-menu a {
    flex-shrink: 0;

    padding: 8px 11px;

    border-radius: 8px;

    color: #475569;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease;
}

.main-menu a.active {
    background: #e0f2fe;
    color: #0284c7;
    box-shadow: inset 0 -3px 0 #0284c7;
}

.main-menu a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.main-menu a.active:hover {
    background: #e0f2fe;
    color: #0284c7;
}

@media (max-width: 600px) {
 .header-top {
        height: 58px;

        padding: 0 8px;
    }

    .logo-main img {
        max-height: 42px;
        max-width: 120px;
    }

    .logo-section {
        left: 50%;

        max-width: 40%;
    }

    .logo-section img {
        max-width: 100%;
        max-height: 45px;
    }

    .user-profile {
        padding: 2px;
        margin-left: auto;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }
 .main-menu {
        display: flex;

        flex-wrap: wrap;
        justify-content: center;

        gap: 3px;

        padding: 5px 4px;

        overflow-x: visible;
    }

    .main-menu a {
        padding: 6px 7px;

        font-size: 12px;

        border-radius: 6px;
    }
}