/* ============================================
   DENADIYA GESTION - MOBILE FIRST ULTIMATE
   Design pensé pour une utilisation quotidienne sur téléphone
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
    --primary: #b25c33;
    --primary-dark: #8a4524;
    --primary-light: #d47a4a;
    --primary-soft: rgba(178, 92, 51, 0.12);
    --primary-gradient: linear-gradient(135deg, #b25c33 0%, #d47a4a 100%);
    --secondary: #2c3e50;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --gray-dark: #475569;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-lighter: #f8fafc;
    --white: #ffffff;
    
    /* Espacements tactiles */
    --touch-min: 44px;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    
    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.16);
    
    /* Rayons */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fb;
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- DASHBOARD LAYOUT ---------- */
.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- SIDEBAR (Mobile First) ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Logo */
.logo {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: var(--space-md);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    color: white;
    letter-spacing: 1px;
}

.logo small {
    font-size: 0.7rem;
    color: var(--primary-light);
    display: block;
    margin-top: 0.25rem;
}

/* Navigation */
.nav-menu {
    flex: 1;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: #cbd5e1;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: var(--touch-min);
}

.nav-link i {
    width: 1.5rem;
    font-size: 1.2rem;
}

.nav-link:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(178, 92, 51, 0.3);
}

/* User Info */
.user-info {
    padding: var(--space-md);
    margin: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    backdrop-filter: blur(10px);
}

.user-avatar i {
    font-size: 2.2rem;
    color: var(--primary-light);
}

.user-details {
    flex: 1;
}

.user-details strong {
    display: block;
    font-size: 0.9rem;
    color: white;
}

.user-details span {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: capitalize;
}

.logout-btn {
    color: #94a3b8;
    transition: var(--transition);
    font-size: 1.2rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:active {
    color: var(--danger);
    transform: scale(0.95);
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    flex: 1;
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + 60px);
}

/* ---------- MOBILE MENU TOGGLE ---------- */
.mobile-menu-toggle {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
    transform: scale(0.92);
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    margin-bottom: var(--space-lg);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.date-info {
    font-size: 0.75rem;
    color: var(--gray);
    background: var(--white);
    padding: 0.5rem var(--space-md);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-xs);
}

/* ---------- STATS GRID (Mobile) ---------- */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.stat-card:active {
    transform: scale(0.99);
    background: var(--gray-lighter);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.success .stat-value { color: var(--success); }

/* ---------- CARDS ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.card-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.card-body {
    padding: var(--space-md);
}

/* ---------- GRIDS ---------- */
.two-columns {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* ============================================
   TABLES - SCROLLABLE HORIZONTALEMENT
   ============================================ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.table-responsive::-webkit-scrollbar {
    height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: var(--space-md) var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 1;
}

.data-table th {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-lighter);
}

.data-table td {
    color: var(--dark);
}

.data-table tr:active td {
    background: var(--primary-soft);
}

/* Version compacte pour très petits écrans */
@media (max-width: 480px) {
    .data-table {
        min-width: 550px;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-sm);
        font-size: 0.75rem;
    }
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-success { color: var(--success); }
.text-muted { color: var(--gray); }

/* ---------- BADGES ---------- */
.badge-success, .badge-warning, .badge-danger, .badge-secondary {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fed7aa; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #e2e8f0; color: #475569; }

/* ============================================
   BOUTONS - TAILLE TACTILE OPTIMISÉE
   ============================================ */
.btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: var(--touch-min);
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:active {
    transform: scale(0.97);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:active {
    transform: scale(0.97);
    background: #cbd5e1;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:active {
    transform: scale(0.97);
}

.btn-sm {
    padding: 0.4rem var(--space-md);
    font-size: 0.75rem;
    min-height: 36px;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:active {
    opacity: 0.7;
}

/* Boutons en pleine largeur sur mobile */
@media (max-width: 768px) {
    .btn-full-mobile {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- FORMULAIRES (Taille tactile) ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
}

.form-group label span {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ============================================
   MODALES - OPTIMISÉES POUR MOBILE
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: var(--space-md);
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:active {
    background: var(--gray-light);
    color: var(--danger);
}

.modal-body {
    padding: var(--space-md);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--white);
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
}

.modal-footer button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

/* Sur desktop, les boutons de la modale sont côte à côte */
@media (min-width: 768px) {
    .modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: var(--radius-xl);
        max-width: 500px;
        max-height: 85vh;
        animation: modalSlideIn 0.3s ease;
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    .modal-footer {
        flex-direction: row;
    }
    
    .modal-footer button {
        width: auto;
        flex: 1;
    }
}

/* ---------- CART (Ventes) ---------- */
.cart-items {
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin: var(--space-lg) 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--gray-light);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-info p {
    font-size: 0.7rem;
    color: var(--gray);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-item-actions button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-light);
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    padding: var(--space-md);
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.cart-total strong {
    font-size: 1.1rem;
    color: var(--primary);
}

/* ---------- ALERTES ---------- */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid var(--success);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid var(--danger);
}

.alert-warning {
    background: #fed7aa;
    color: #92400e;
    border-left: 3px solid var(--warning);
}

/* ---------- GRAPHIQUES (Mobile) ---------- */
.chart-container {
    position: relative;
    margin: var(--space-md) 0;
}

canvas {
    max-width: 100%;
    height: auto;
}

/* ---------- DESKTOP (Tablette et plus) ---------- */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
        position: sticky;
        top: 0;
        width: 260px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .main-content {
        margin-left: 260px;
        padding: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .two-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .table-responsive {
        margin-bottom: 0;
    }
    
    .data-table {
        min-width: 100%;
    }
    
    .data-table th:first-child,
    .data-table td:first-child {
        position: static;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- TOUCH OPTIMISATIONS ---------- */
@media (hover: hover) {
    .btn-primary:hover, .btn-secondary:hover, .btn-danger:hover {
        transform: translateY(-2px);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }
    
    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ---------- UTILITAIRES ---------- */
.w-100 { width: 100%; }
.text-uppercase { text-transform: uppercase; }
.fw-bold { font-weight: 700; }
.fs-small { font-size: 0.7rem; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }

/* ---------- SAFE AREA (Notch, etc.) ---------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .main-content {
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }
    
    .mobile-menu-toggle {
        bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
        right: calc(var(--space-lg) + env(safe-area-inset-right));
    }
    
    .modal-content {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   STYLES D'IMPRESSION POUR FACTURES
   ============================================ */
@media print {
    .sidebar, 
    .mobile-menu-toggle, 
    .btn-print, 
    .page-header .btn-primary,
    .no-print,
    .modal-footer,
    .close-modal,
    .card-header .btn-link {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .invoice, .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin: 0 !important;
    }
    
    .invoice-header {
        background: var(--primary) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
    }
}

/* Impression des factures */
.invoice-print {
    background: white;
    padding: 20px;
}

@media print {
    .no-print {
        display: none !important;
    }
    .invoice {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   PAGE DE CONNEXION (LOGIN)
   ============================================ */

/* Conteneur principal */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--space-xl);
}

/* Carte de connexion */
.login-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: var(--space-md);
    border-radius: 50%;
    background: var(--white);
    padding: var(--space-sm);
    box-shadow: var(--shadow-md);
}

.login-logo h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.login-logo p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Formulaire */
.login-form {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-form input {
    width: 100%;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.login-form button {
    width: 100%;
    padding: var(--space-md);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: var(--touch-min);
}

.login-form button:active {
    transform: scale(0.98);
}

/* Message d'erreur */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 400px;
}

/* Footer */
.login-container .footer {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray);
}

/* Responsive login */
@media (max-width: 480px) {
    .login-container {
        padding: var(--space-md);
    }
    
    .login-form {
        padding: var(--space-lg);
    }
    
    .login-logo img {
        width: 70px;
        height: 70px;
    }
    
    .login-logo h2 {
        font-size: 1.5rem;
    }
}