/* style.css - Version Pro */
:root {
    --primary-color: #5d1432;
    --primary-dark: #3d0e21;
    --primary-light: #8b3754;
    --secondary: #2c3e50;
    --success: #27ae60;
    --info: #3498db;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fc 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Container principal amélioré */
.container, .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Cartes modernes */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-header {
    background: transparent;
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Statistiques cards */
.stat-card {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.primary::before { background: var(--primary-color); }
.stat-card.success::before { background: var(--success); }
.stat-card.info::before { background: var(--info); }
.stat-card.warning::before { background: var(--warning); }

.stat-card h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Tableaux modernes */
.table-custom {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.table-custom th {
    background: #f8f9fa;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tr:hover {
    background: #f8f9fa;
}

/* Boutons modernes */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-bordeaux {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.btn-bordeaux:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93,20,50,0.3);
}

.btn-outline-bordeaux {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-bordeaux:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation améliorée */
.nav-modern {
    background: white;
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(93,20,50,0.1);
}

.nav-modern a {
    color: #4a5568;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-modern a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.nav-modern a.active {
    background: var(--primary-color);
    color: white;
}

/* Alertes améliorées */
.alert-modern {
    border-radius: 16px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.875rem;
}

.form-control, input, select, textarea {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93,20,50,0.1);
    outline: none;
}

/* Grille responsive */
.row {
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container, .container-fluid {
        padding: 0 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .nav-modern {
        border-radius: 20px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Pour le select lui-même */
select.form-control {
    padding: 10px 12px;
    height: auto;
    min-height: 50px;
    font-size: 14px;
}

/* Pour les options déroulantes */
select.form-control option {
    padding: 10px 12px;
    line-height: 1.6;
    white-space: normal;  /* Permet au texte de se mettre sur plusieurs lignes */
    word-wrap: break-word; /* Coupe les mots trop longs */
    min-height: 40px;      /* Hauteur minimale pour chaque option */
}