/* --- BASE DU HEADER (COMMUN) --- */
.main-header {
    background-color: var(--primary-brown);
    color: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    left: 0; /* Par défaut toute largeur */
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between; /* C'est ça qui pousse les éléments aux extrémités */
    align-items: center;
    width: 100%;
    padding: 0 25px;
}

/* --- VERSION ORDINATEUR (S'aligne avec la Sidebar) --- */
@media (min-width: 992px) {
    .header-logo { display: none; } /* Le logo est souvent déjà dans la sidebar sur PC */
}

/* --- ÉLÉMENTS INTERNES --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-role { font-size: 0.7rem; color: var(--accent-gold); text-transform: uppercase; font-weight: bold; }
.user-name { font-size: 0.9rem; font-weight: 500; }

.header-divider {
    width: 1px;
    height: 25px;
    background: rgba(255,255,255,0.2);
}

.logout-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.logout-btn:hover {
    background: var(--error-red);
    border-color: var(--error-red);
}

/* --- VERSION MOBILE --- */
@media (max-width: 991px) {
    .header-content {
        padding: 0 15px;
    }

    .logout-btn {
        padding: 10px; /* Plus gros pour le tactile */
        border-radius: 50%; /* Bouton rond sur mobile */
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .logout-btn i { font-size: 1.1rem; }
}

/* Sur TOUS les écrans désormais (vu qu'on n'a plus de sidebar) */
.container, .mobile-container {
    padding-top: 80px; /* On pousse le contenu sous le header */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .container {
        padding-top: 75px; /* Un peu moins sur mobile pour gagner de la place */
    }
}

/* --- STEPPER UNIVERSEL --- */
.stepper {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    position: relative;
}

.step.active { background: var(--accent-gold); transform: scale(1.15); box-shadow: 0 0 10px rgba(212,163,115,0.4); }
.step.done { background: var(--success-green); }

/* --- NAVIGATION FIXE MOBILE --- */
@media (max-width: 991px) {
    .nav-buttons-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 15px;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 10px;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.08);
        z-index: 1000;
    }
}