/* style.css */

/* --- Général --- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9; /* Arrière-plan très clair */
    color: #333;
}

header {
    background-color: #0056b3; /* Bleu foncé pour l'entête */
    color: white;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
    font-size: 2em;
}

main {
    padding: 20px 40px;
    max-width: 1200px; /* Limite la largeur du contenu pour la lisibilité */
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 30px 0;
}

/* --- Navigation --- */
nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #004080;
}

/* --- Formulaires et Administration --- */
form {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], 
input[type="password"], 
input[type="date"], 
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Assure que le padding n'augmente pas la largeur totale */
}

button[type="submit"] {
    background-color: #007bff; /* Bleu primaire */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styles pour les messages de statut */
p.status-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}
p.status-message[style*="green"] {
    background-color: #d4edda;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
}
p.status-message[style*="red"] {
    background-color: #f8d7da;
    color: #721c24 !important;
    border: 1px solid #f5c6cb;
}

/* --- Tableaux (pour les pages admin) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

th {
    background-color: #e9ecef;
    font-weight: bold;
}

/* --- Contenu Public (Articles/Réunions) --- */
article {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

article:last-child {
    border-bottom: none;
}

.reunion-content {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f0f8ff; /* Bleu très clair */
    white-space: pre-wrap;
    border-radius: 4px;
}

/* Pour que les images ne dépassent pas */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}