/*
 * global.css
 * Styles généraux appliqués à l'ensemble de l'application (en dehors des formulaires spécifiques)
 * Utilisé principalement par index.php, liste_meetings.php, etc.
 */

/* --- 1. Réinitialisation et Base --- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5; /* Gris clair de fond */
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* --- 2. Styles d'en-tête et Conteneur Principal --- */

.header {
    background-color: #34495e; /* Bleu foncé principal */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 2.2em;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- 3. Indicateur de Rôle (Standardisé) --- */

.role-indicator {
    /* Style pour l'affichage en haut de la page (non inclus dans .container) */
    text-align: right;
    padding: 8px 20px;
    font-size: 0.9em;
    color: #34495e;
    background-color: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.role-indicator strong {
    color: #e67e22; /* Orange du thème */
    font-weight: bold;
}

/* --- 4. Messages d'Alerte (Statut/Flash) --- */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.alert.error {
    background-color: #f8d7da; /* Rouge clair */
    color: #721c24; /* Rouge foncé */
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda; /* Vert clair */
    color: #155724; /* Vert foncé */
    border: 1px solid #c3e6cb;
}

/* --- 5. Liens et Boutons Généraux --- */

.btn {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.add-btn { /* Bouton pour Ajouter/Créer (vert) */
    background-color: #2ecc71; 
    color: white;
}
.add-btn:hover {
    background-color: #27ae60;
}

.back-btn { /* Bouton de retour (gris) */
    background-color: #95a5a6;
    color: white;
}
.back-btn:hover {
    background-color: #7f8c8d;
}

/* --- 6. Styles de Tableau (Liste des Meetings) --- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background-color: #34495e; /* Bleu foncé */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

tr:nth-child(even) {
    background-color: #f9f9f9;