/* ========================================
   BOUTONS AUTHENTIFICATION (HEADER)
   ======================================== */

/* Container parent */
.header-content {
    position: relative;
}

/* Boutons auth - Alignés en haut à GAUCHE */
.auth-buttons {
    position: absolute;
    top: 2rem;
    left: 2rem;
    /* À GAUCHE, pas à droite */
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 1000;
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth i {
    width: 18px;
    height: 18px;
}

/* Bouton Login */
.btn-auth--login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-auth--login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Bouton User (connecté) */
.btn-auth--user {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-auth--user:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   BADGES RÔLES
   ======================================== */

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm, 0.25rem);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

/* Admin - Rouge/Noir */
.role-badge--admin {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Prod+ - Or/Violet */
.role-badge--prod_plus {
    background: linear-gradient(135deg, #f59e0b 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Producer - Bleu */
.role-badge--producer {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* User - Gris */
.role-badge--user {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

/* ========================================
   MENU LATÉRAL
   ======================================== */

.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    /* Hidden to the LEFT */
    right: auto;
    width: 320px;
    height: 100vh;
    background: #121218;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    /* Shadow to right */
    z-index: 1050;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
    right: auto;
}

.side-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu__header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.side-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.side-menu__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-menu__close i {
    width: 20px;
    height: 20px;
    color: white;
}

.side-menu__content {
    padding: 1.5rem;
}

/* Boutons Menu */
.btn-menu {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: none;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    color: #e5e7eb;
}

.btn-menu:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-menu i {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.btn-menu--logout {
    color: #dc2626;
}

.btn-menu--logout i {
    color: #dc2626;
}

.btn-menu--logout:hover {
    background: #fee2e2;
}

/* ========================================
   OVERLAY
   ======================================== */

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

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

@media (max-width: 768px) {
    .auth-buttons {
        gap: 0.5rem;
    }

    .btn-auth span {
        display: none;
    }

    .btn-auth {
        padding: 0.5rem;
    }

    .role-badge {
        display: none;
    }

    .side-menu {
        width: 100%;
        left: -100%;
        right: auto;
    }
}