/* ============================================
   STYLES PRINCIPAUX - GESTION ATELIER TAILLEUR
   ============================================ */

:root {
    --couleur-primaire: #2c3e50;
    --couleur-secondaire: #34495e;
    --couleur-accent: #c0392b;
    --couleur-fond: #ecf0f1;
    --couleur-blanc: #ffffff;
    --couleur-texte: #333333;
    --couleur-bordure: #bdc3c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
    line-height: 1.6;
}

/* En-tête */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cartes */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--couleur-blanc);
    border-bottom: 1px solid var(--couleur-bordure);
    border-radius: 10px 10px 0 0 !important;
    padding: 15px;
}

/* Statistiques */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tableaux */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 500;
}

/* Formulaires */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Boutons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
    border-color: #229954;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #3498db;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}

/* Alertes */
.alert {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .stats-card .number {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Impression */
@media print {
    .navbar, .btn, .pagination {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background-color: white;
    }
}