/* Styles de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
}

/* Navigation */
.navbar {
    background-color: #34495e;
    padding: 10px 0;
    margin-bottom: 30px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar li {
    margin-right: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #2c3e50;
}

/* Tableau de bord */
.dashboard-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-row > .form-group {
    padding-right: 15px;
    padding-left: 15px;
    flex: 1 0 0%;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
    color: white;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #219653;
}

/* Alertes */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Tableaux */
.table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered {
    border: 1px solid #ddd;
}

/* Connexion */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row > .form-group {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar li {
        margin-bottom: 10px;
    }
}

/* Styles spécifiques pour la page d'accueil */
.landing-container {
    padding: 20px 0;
}

.landing-header {
    text-align: center;
    padding: 40px 0;
    background-color: #2c3e50;
    color: white;
    margin-bottom: 30px;
    border-radius: 8px;
}

.landing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.landing-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.feature-card {
    margin-bottom: 20px;
}

.feature-card .card {
    height: 100%;
    transition: transform 0.3s;
    text-align: center;
}

.feature-card .card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #2c3e50;
}

.landing-actions .card {
    height: 100%;
    text-align: center;
    padding: 30px 0;
}

.landing-actions .btn {
    margin-top: 15px;
    min-width: 150px;
}

.landing-footer {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.landing-footer h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.landing-footer i {
    margin-right: 8px;
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-header {
        padding: 30px 15px;
    }
    
    .landing-header h1 {
        font-size: 2rem;
    }
    
    .feature-card, .landing-actions > .row > div {
        margin-bottom: 15px;
    }
    
    .landing-footer > .row > div {
        margin-bottom: 20px;
    }
}
/* Dans votre fichier CSS */
.form-select[name="search_column"] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.form-control[name="search"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.card-body .border-bottom {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .card-body .row.g-2 > div {
        margin-bottom: 0.5rem;
    }
}