/* === Styles de base existants === */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
    line-height: 1.6; /* Nouveau : meilleure lisibilité */
}

.container {
    max-width: 900px;
    margin-top: 20px;
    padding: 0 15px; /* Nouveau : padding pour mobile */
}

h1, h2 {
    color: #333;
    margin-bottom: 1.5rem; /* Nouveau : espacement cohérent */
}

.table th, .table td {
    text-align: center;
    vertical-align: middle; /* Nouveau : alignement vertical */
}

.btn {
    border-radius: 5px;
    transition: all 0.3s ease; /* Nouveau : animation douce */
    padding: 8px 16px; /* Nouveau : taille plus cohérente */
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-primary {
    background-color: #007bff;
}

.hidden {
    display: none;
}

/* === Styles existants pour les étoiles === */
.star-rating {
    font-size: 24px;
    display: inline-block; /* Nouveau : meilleur alignement */
}

.star-rating .star {
    color: #ccc;
}

.star-rating .star.red {
    color: #ff4444;
}

.star-rating .star.blue {
    color: #4488ff;
}

.star-rating .star.green {
    color: #44ff44;
}

/* === Nouveaux styles UI/UX === */

/* 1. Cartes améliorées */
.card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 20px;
    border-radius: 10px; /* Cohérent avec les boutons */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
}

/* 2. Navigation moderne */
.navbar {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* 3. Formulaires améliorés */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #a777e3;
    box-shadow: 0 0 0 0.2rem rgba(167, 119, 227, 0.25);
}

/* 4. Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 5. Animation des messages flash */
.alert {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 6. Style pour les sélections multiples */
select[multiple] {
    min-height: 150px;
}

select[multiple] option {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

select[multiple] option:hover {
    background-color: #f8f9fa;
}

/* 7. Bouton PDF spécial */
.btn-pdf {
    background-color: #d9534f;
    color: white;
}

.btn-pdf:hover {
    background-color: #c9302c;
}