/* style.css */

/* 1. Base et Typographie */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8; /* Gris très clair pour le fond */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 2. Le conteneur principal (La "carte" blanche au centre) */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 3. Titres */
h1, h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 4. Formulaires */
form {
    margin-top: 20px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Pour que le padding ne casse pas la largeur */
    font-size: 16px;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
}

/* 5. Boutons */
button {
    background-color: #3498db; /* Bleu */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background 0.3s;
}

button:hover {
    background-color: #2980b9; /* Bleu plus foncé au survol */
}

/* Bouton secondaire ou liens qui ressemblent à des boutons */
a.btn-link {
    display: inline-block;
    background-color: #ecf0f1;
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 6. Tableaux (Pour le Dashboard) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

thead {
    background-color: #3498db;
    color: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f1f1f1;
}

/* 7. Liens d'actions dans le tableau */
td a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
}

td a:hover {
    text-decoration: underline;
}

/* Liens de suppression en rouge */
td a[onclick] {
    color: #e74c3c;
}

/* 8. Messages d'erreur */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}


/* --- NOUVEAU STYLE POUR LE MENU DASHBOARD --- */

.menu-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* Pour que ça passe sur mobile */
}

.menu-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    width: 300px; /* Largeur de la carte */
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-5px); /* La carte monte un peu */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.menu-card .icon {
    font-size: 3em; /* Taille de l'émoji */
    margin-bottom: 15px;
}

.menu-card h3 {
    margin: 10px 0;
    color: #2c3e50;
    border: none; /* Enlève la ligne bleue des titres h3 standards */
}

.menu-card p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.menu-card .btn-action {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.menu-card:hover .btn-action {
    background-color: #2980b9;
}

<style>
    /* Style pour la boîte d'information (Bleu) */
    .alert-info {
        background-color: #e3f2fd;
        color: #0d47a1;
        border-left: 5px solid #2196f3;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 4px;
        font-family: Arial, sans-serif;
    }

    /* Style pour la boîte d'avertissement (Jaune) */
    .alert-warning {
        background-color: #fff3cd;
        color: #856404;
        border-left: 5px solid #ffc107;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 4px;
        font-family: Arial, sans-serif;
    }

    .alert-title {
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        font-size: 1.1em;
    }

    .alert-list {
        margin: 0;
        padding-left: 20px;
    }
</style>