/* ============================
   HEADER GLOBAL
============================ */

.site-header {
    width: 100%;
    padding-top: 10px;
}

/* Ligne 1 : logo + boutons + burger */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
}

/* Logo */
.header-logo img {
    height: 80px;
    transition: 0.2s;
}

/* Boutons utilisateur */
.header-right {
    display: flex;
    gap: 10px;
}

.btn-user {
    padding: 8px 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-user:hover {
    background: #005fcc;
}

/* ============================
   MENU DESKTOP
============================ */

.header-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 0;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.header-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.header-menu a:hover {
    color: #007bff;
}

/* ============================
   BURGER (mobile)
============================ */

.burger-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================
   RESPONSIVE MOBILE
============================ */

@media (max-width: 700px) {

    /* Autoriser le header à passer sur 2 lignes */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Le burger reste à gauche */
    .burger-btn {
        display: block;
        order: 1;
    }

    /* Logo centré sur la 2e ligne */
    .header-logo {
        width: 100%;
        text-align: center;
        order: 2;
    }

    /* Taille du logo adaptée */
    .header-logo img {
        height: 55px;
    }

    /* Boutons utilisateur centrés sur la 3e ligne */
    .header-right {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    /* Boutons plus petits */
    .btn-user {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Menu mobile (caché par défaut) */
    .header-menu {
        display: none;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        text-align: center;
    }

    /* Menu visible quand burger ouvert */
    body.menu-open .header-menu {
        display: flex;
    }
}
