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

.header-main {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0; /* On enlève le padding latéral ici pour éviter le décalage */
    background: #fff;
    border-bottom: 4px solid #0070ba;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments comme le logo */
}

/* Logo */
.header-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    box-shadow: 0 2px 8px #0001;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #fff;
}

/* Barre panier */
.header-cart {
    width: 95%; /* Ou 100% si vous voulez qu'elle touche presque les bords */
    max-width: 1160px; /* Un peu moins que 1200 pour laisser respirer les côtés */
    background: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 14px;
    box-shadow: 0 2px 6px #0002;
    box-sizing: border-box;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    
    /* On force le centrage par rapport au parent flex */
    margin: 0 auto 16px auto; 
}

/* Icône panier */
.cart-icon {
    cursor: pointer;
    position: relative;
    font-size: 22px;
    display: flex;
    align-items: center;
}

/* Badge quantité */
.cart-count {
    background: #ff5252;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Version mobile */
@media (max-width: 600px) {
    .header-main {
        padding-top: 20px;
    }

    .header-logo {
        height: 70px;
        max-width: 150px;
    }

    .header-cart {
        padding: 8px 12px;
    }

    .cart-icon {
        font-size: 20px;
    }
}
