/* Fichier : style.css */

/* --- Variables et Réinitialisation de Base --- */
:root {
    --primary-color: #0056b3; /* Bleu profond du Diocèse / MADEB */
    --secondary-color: #f0ad4e; /* Orange/Jaune pour les accents */
    --background-light: #f9f9f9;
    --text-dark: #333;
    --text-light: #fff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
/* CRITIQUE : Suppression garantie de toute marge ou remplissage par défaut */
    margin: 0 !important; 
    padding: 0 !important;
    /* Assure que la boîte commence dans le coin supérieur gauche */
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    /* La marge inférieure est conservée pour l'espacement normal */
    margin-top: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: white;
    margin: 0 !important; 
    padding: 0 !important;
    box-sizing: border-box; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 0;
}

.centered {
    text-align: center;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Règle CRITIQUE 2 : Le <header> doit prendre 100% de la largeur */
.header {
    width: 100%;
    margin: 0; /* Assurez-vous qu'aucune marge externe ne limite l'élément */
    margin-top: 0 !important;
}

/* Règle CRITIQUE 3 : Le fond coloré doit prendre 100% de la largeur, sans padding horizontal */
/* Conteneur principal du header */
.header-top {
    width: 100%;
    padding: 10px 0; /* uniquement vertical */
    background-color: var(--background-light, #f8f9fa);
    overflow: hidden; 
    padding-top: 10px;
}


/* Règle CRITIQUE 4 : La nouvelle enveloppe de contenu pour le centrage */
.content-wrapper {
    display: flex;
    justify-content: space-between; /* pousse logo à gauche et recherche à droite */
    align-items: center;
    width: 90%;       /* largeur du contenu centré */
    max-width: 2500px;
    margin: 0 auto;   /* centre horizontalement le wrapper */
}


/* Règle CRITIQUE 5 : Styles de navigation (doit prendre 100% du header) */
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: var(--primary-color);
    /* Ajout du 100% et retrait des marges pour la pleine largeur de la nav bar */
    width: 100%;
    margin: 0;
    padding: 0; 
}

.logo-area {
    display: flex;
    flex-direction: row; /* assure que le texte est à côté du logo */
    align-items: center;
    gap: 15px; /* espace entre logo et description */
}

/* Logo */
.logo {
    width: 70px;
    height: auto;
}

/* Description à côté du logo */
.description {
    font-size: 0.9em;
    line-height: 1.3;
    font-weight: bold;
    color: #555;
    margin-top: 15px; 
}

/* Barre de recherche complètement à droite */
.search-area {
    display: flex;
    align-items: center;
}


.search-area form {
    display: flex;
}

.search-area input {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-area button {
    padding: 8px 12px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* Navigation */
.navbar a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #004085; 
}

/* --- 2. Carrousel Corrigé --- */
.activity-carousel-section {
    position: relative;
    overflow: hidden;
    height: 400px;
    background-color: #222;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex; /* Aligne les slides côte à côte */
    height: 100%;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-slide {
    min-width: 100%; /* Chaque slide prend toute la largeur */
    height: 100%;
    position: relative; /* Changé de absolute à relative pour le flux flex */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pousse le texte vers le bas */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay pour assombrir légèrement l'image derrière le texte */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    z-index: 1;
}
/* --- POINTS DU CARROUSEL --- */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: #0066cc;
    transform: scale(1.2);
}

/* --- SWIPE MOBILE --- */
.carousel-track {
    touch-action: pan-y;
    cursor: grab;
}


.slide-content {
    padding: 40px;
    z-index: 10; /* Passe au dessus de l'overlay */
    width: 100%;
    box-sizing: border-box;
}

/* LE CADRE POUR LA LISIBILITÉ */
.mini-cadre {
    background: rgba(255, 255, 255, 0.95); /* Fond blanc */
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    border-left: 6px solid #0066cc; /* Barre bleue */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.mini-cadre h2 {
    color: #0066cc !important; /* Titre en bleu */
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.mini-cadre p {
    color: #333 !important; /* Texte en gris très foncé/noir */
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5em;
    border-radius: 5px;
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }


/* --- 3. Vision / Histoire / Documents (Grid) --- */
.vision-history-docs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.card {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.download-area ul {
    list-style: none;
}

.download-area a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

/* Voir Plus */
.btn-read-more {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: fit-content;
    font-size: 0.9em;
}

/* --- 4. Responsables --- */
.responsables-section {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    gap: 30px;
}

.mots-responsable {
    text-align: justify;
}

.responsible-card {
    flex-basis: 45%;
    text-align: center;
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.resp-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

.role {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

/* --- 5. Espace Commission --- */
.commission-space {
    padding: 40px 0;
    text-align: center;
}

.commissions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
}

.commission-link {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid rgba(0, 86, 179, 0.25);
    padding: 28px 20px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: 
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s,
        border-color .35s,
        background .35s;
}

.commission-link:hover {
    transform: translateY(-8px);
    background: var(--primary-color);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}



/* --- 6. Espace Trésorerie --- */
.treasury-section {
    padding: 40px 0;
    background-color: #f0f8ff; /* Bleu très clair */
    border-top: 5px solid var(--secondary-color);
    border-bottom: 5px solid var(--secondary-color);
}

.payment-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-pay {
    background-color: #28a745; /* Vert pour le paiement */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-pay:hover {
    background-color: #1e7e34;
}

.note {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

/* --- 7. Articles de Blog et Commentaires --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.article-card h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.article-card p {
    margin-bottom: 18px;
    font-size: .95rem;
    line-height: 1.5;
    color: #555;
}

.article-card a {
    display: inline-block;
    margin-top: 5px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color .25s;
}

.article-card a:hover {
    color: #003f7d;
    text-decoration: underline;
}

/*Notre organisation diocésaine*/

/* ---- Section améliorée ---- */
/* ---- Wrapper avec fond flou/lumineux ---- */
.organdioc-wrapper {
    background: linear-gradient(135deg, #dfe9f3 0%, #f8fbff 100%);
    padding: 90px 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

/* ---- Carte en verre givré ---- */
.organdioc {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 70px 40px;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    max-width: 950px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.8s ease forwards;
}

/* ---- Titre ---- */
.organdioc h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ---- Paragraphe ---- */
.organdioc p {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* ---- Bouton Premium ---- */
.organdioc a.btn {
    background: linear-gradient(135deg, var(--primary-color), #003f7d);
    border: none;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.25);
    transition: transform .25s ease, box-shadow .3s ease;
}

.organdioc a.btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 86, 179, 0.35);
}

/* ---- Icône ---- */
.organdioc i {
    margin-right: 8px;
}

/* ---- Animation fade-up ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* ======================================= */
/* 1. CADRE GÉNÉRAL (SECTION ENTIÈRE)      */
/* ======================================= */
.comment-form-section {
    padding: 60px 0; /* Plus d'espace autour */
    background-color: #f8f9fa; /* Fond très léger pour que la carte ressorte */
}

/* Le conteneur .container reçoit l'effet de carte (Card) */
.comment-form-section .container {
    background-color: #ffffff; 
    border-radius: 15px; /* Coins bien arrondis */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Ombre plus prononcée */
    padding: 40px; 
}

.comment-form-section h2 {
    text-align: center;
    color: #343a40;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
}

/* ======================================= */
/* 2. GRILLE (CONTENU DANS LE CADRE)       */
/* ======================================= */
.comment-grid {
    display: grid;
    grid-template-columns: 40% 60%; /* Message 40%, Formulaire 60% */
    gap: 0; /* Supprimer l'espace de la grille pour gérer la séparation manuellement */
    align-items: stretch; /* Les deux colonnes s'étirent à la même hauteur */
}

/* ======================================= */
/* 3. MESSAGE D'INVITATION (40% - GAUCHE)  */
/* ======================================= */
.comment-invitation {
    padding: 30px 40px;
    background-color: #f7f9ff; /* Bleu très clair */
    border-radius: 12px 0 0 12px; /* Coins arrondis uniquement à gauche */
    text-align: center;
    /* Ligne de séparation verticale */
    border-right: 1px solid #e0e0e0; 
}

.comment-invitation h3 {
    color: #007bff; /* Couleur primaire */
    font-size: 1.7em;
    margin-top: 0;
}

.comment-invitation p {
    color: #495057;
    margin-bottom: 20px;
}

.comment-invitation .note-moderation {
    font-style: italic;
    font-size: 0.9em;
    color: #6c757d; 
}

.comment-invitation .fa-comments {
    color: #b0c4de;
    margin: 30px 0 10px;
    font-size: 4em;
    display: block;
}

/* ======================================= */
/* 4. FORMULAIRE (60% - DROITE)            */
/* ======================================= */
.comment-form-wrapper {
    padding: 30px 40px;
    background-color: #ffffff; /* Fond blanc */
    border-radius: 0 12px 12px 0; /* Coins arrondis uniquement à droite */
}

.comment-form h4 {
    font-size: 1.4em;
    color: #343a40;
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box; 
    margin-top: 5px;
}
.espace_comment {
    text-align: center;
}

.comment-form .btn-submit {
    background-color: #28a745; /* Vert (Succès) */
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    margin-top: 30px;
    width: 100%;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.comment-form .btn-submit:hover {
    background-color: #218838;
}

/* ======================================= */
/* 5. RESPONSIVE DESIGN                    */
/* ======================================= */
@media (max-width: 992px) {
    .comment-grid {
        grid-template-columns: 1fr; /* Passage à une seule colonne */
    }
    .comment-invitation {
        border-right: none;
        border-bottom: 1px solid #e0e0e0; /* Ligne de séparation horizontale */
        border-radius: 12px 12px 0 0; /* Réajustement des coins */
    }
    .comment-form-wrapper {
        border-radius: 0 0 12px 12px; /* Réajustement des coins */
    }
}

/* Styles pour les messages d'alerte (inchangés mais inclus pour la complétude) */
.alert {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* --- 8. Footer (Pied de Page) --- */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 5%;
    text-align: center;
    position: relative;
    margin-top: 30px;
}

.social-links {
    margin-bottom: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: white; /* Fond pour mieux voir le logo */
    padding: 5px;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.15);
}

.copyright p {
    margin: 10px 0 0 0;
    font-size: 0.8em;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.5em;
    line-height: 1;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

/* ============================================== */
/* 9. Styles Spécifiques à la Page des Commissions */
/* (Utilisé par commission_details.php)          */
/* ============================================== */

.commission-page {
    padding-top: 40px;
}

.commission-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    display: block;
}

/* ============================================== */
/* 9. Styles des Pages d'Information Générales    */
/* (Utilisé par commission_details.php, a_propos.php) */
/* ============================================== */

/* --- Sections Générales --- */
.section-presentation, .section-membres, .section-integration {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.section-presentation h3, .section-membres h3, .section-integration h3 {
    color: var(--primary-color);
    border-bottom: 2px dotted #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.presentation-text {
    line-height: 1.8;
}

/* --- Liste des Membres (Puces) --- */
.membres-list {
    list-style-type: none;
    padding-left: 20px;
}

.membres-list li {
    /* Utilisation d'une image ou puce personnalisée */
    background: url('path/to/icon_check.png') no-repeat left center; 
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 1.1em;
}


/* --- Styles de la Page À Propos (bureau-grid) --- */

/* Nous retirons display: grid pour éviter les conflits avec les classes row/col de Bootstrap */
.about-page .bureau-grid {
    /* Utilise le gap fourni par Bootstrap (g-4) mais nous garantissons un espacement */
    padding-top: 20px;
    margin-left: -15px; /* Compense le padding par défaut de la grille */
    margin-right: -15px; 
    /* Les styles de grille sont gérés par les classes Bootstrap dans a_propos.php */
}

.about-page .membre-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Assure que la carte prend toute la hauteur disponible dans sa colonne */
    height: 100%;
}

.about-page .membre-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color); 
    margin-bottom: 15px; /* Augmenté légèrement l'espacement */
    /* Assure que l'image reste centrée si elle n'est pas déjà gérée par .mx-auto de Bootstrap */
    margin-left: auto;
    margin-right: auto;
    display: block; 
}

.about-page .membre-role {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

/* ============================================== */
/* 10. Styles Spécifiques à la Page Commission    */
/* (commission_details.php)                       */
/* ============================================== */

.commission-page {
    padding-top: 40px;
}

.commission-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    display: block;
}


/* ============================================== */
/* 11. Styles Formulaire d'Intégration            */
/* (Le plus important !)                          */
/* ============================================== */

.integration-form {
    max-width: 550px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.integration-form label {
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 5px;
}

.integration-form input[type="text"],
.integration-form input[type="email"],
.integration-form select,
.integration-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
    font-size: 1em;
}

.integration-form input:focus,
.integration-form select:focus,
.integration-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(240, 173, 78, 0.5);
}

.integration-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #004085;
}

/* ============================================== */
/* 12. Styles de la Page Article (article.php)    */
/* ============================================== */

.article-detail-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.article-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.article-meta .date, .article-meta .auteur {
    font-weight: bold;
    color: var(--text-dark);
}

.article-image-container {
    margin-bottom: 30px;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content strong {
    color: var(--secondary-color);
}

/* Style du lien de retour */
.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Style d'erreur */
.error-box {
    padding: 30px;
    text-align: center;
    background-color: #fdd;
    border: 1px solid #f00;
    border-radius: 8px;
}

/* ============================================== */
/* 13. Styles Formulaire de Commentaires          */
/* ============================================== */

.comments-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.comment-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; 
}

.comment-form textarea {
    resize: vertical;
}

.btn-submit-comment {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-submit-comment:hover {
    background-color: #d1973b; 
}

.comment-separator {
    margin: 30px 0;
    border: 0;
    border-top: 1px dashed #ccc;
}

/* ============================================== */
/* 14. Styles d'Affichage des Commentaires        */
/* ============================================== */

.comment-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color); 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.comment-item .comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ccc;
}

.comment-item .comment-meta strong {
    color: var(--primary-color); 
    font-size: 1.1em;
}

.comment-item .comment-meta span {
    font-style: italic;
    margin-left: 10px;
}

/* Texte du commentaire */
.comment-item .comment-text {
    line-height: 1.6;
    color: var(--text-dark);
}

/* Style si aucun commentaire */
.comments-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ============================================== */
/* 13. Styles de la Page Galerie (galerie.php)    */
/* ============================================== */
/* Container de la Galerie */
.gallery-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille Responsive */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-top: 20px;
}

/* Style des Cartes Media */
.media-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Conteneur Image/Vidéo */
.media-content {
    position: relative;
    width: 100%;
    height: 220px; /* Hauteur fixe pour l'uniformité */
    overflow: hidden;
    background-color: #000;
}

.media-content img, 
.media-content video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre proprement les images */
    transition: transform 0.5s ease;
}

.media-item:hover .media-content img {
    transform: scale(1.08);
}

/* Informations sous le média */
.media-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.media-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.media-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

/* Bouton de téléchargement stylisé */
.btn-download {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #2980b9;
    color: #fff;
}

/* Bouton Déconnexion */
.btn-logout {
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #e74c3c;
    color: white;
}

/* ============================================== */
/* 15. Styles de la Page Blog (blog.php)          */
/* ============================================== */

.blog-list-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.page-intro {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Grille des cartes d'articles (3 colonnes sur desktop) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit la zone sans déformation */
    transition: transform 0.4s;
}

.article-card:hover .article-image-container img {
    transform: scale(1.05);
}

.article-body {
    padding: 15px;
}

.article-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.article-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 15px;
}

.article-excerpt {
    color: #555;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Styles de Pagination */
.pagination-controls {
    text-align: center;
    margin-top: 30px;
}

.pagination-controls .page-number {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: background-color 0.2s, color 0.2s;
}

.pagination-controls .page-number:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination-controls .page-number.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* ============================================== */
/* 17. Styles du Calendrier Grégorien             */
/* ============================================== */

/* --- SECTION GLOBALE --- */
.calendar-page {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1100px;
    margin: auto;
}

/* --- TITRE DE LA PAGE --- */
.page-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color, #0056b3);
    transition: 0.3s;
}

.page-title:hover {
    opacity: 0.85;
}

/* --- HEADER DU CALENDRIER --- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* Titre du mois */
.calendar-header .current-month {
    flex-grow: 1;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color, #0056b3);
    letter-spacing: 0.5px;
}

/* Flèches navigation */
.calendar-header .nav-arrow {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    background: #f0f0f5;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s ease-in-out;
    border: 1px solid #ddd;
}

.calendar-header .nav-arrow:hover {
    background: var(--secondary-color, #f0ad4e);
    color: white;
    border-color: var(--secondary-color, #f0ad4e);
}

/* --- GRILLE DU CALENDRIER --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-radius: 12px;
    overflow: hidden;
    background: #eef5ff; /* bleu clair doux */
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    border: 1px solid #d0dfff;
}
/* Tu gardes tes styles pour les cellules du calendrier */

.nav-arrow:hover {
    opacity: 0.8;
}

/* Grille du Calendrier */

.day-name {
    text-align: center;
    padding: 10px 5px;
    font-weight: bold;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.day-cell {
    padding: 10px 5px;
    height: 100px; /* Taille pour visualiser les événements */
    border: 1px solid #eee;
    text-align: right;
    position: relative;
    cursor: default;
}

.day-cell.empty {
    background-color: #f9f9f9;
}

.day-number {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    text-align: left;
}

/* MARQUAGE DU JOUR ACTUEL */
.day-cell.today {
    background-color: #fffacd; /* Jaune très clair */
    border: 2px solid var(--secondary-color);
}

/* MARQUAGE DES ÉVÉNEMENTS (point rouge) */
.day-cell.has-event {
    background-color: #fff5f5; /* Fond clair pour les événements */
    cursor: pointer;
}

.event-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: red; /* Rouge pour marquer l'événement */
    border-radius: 50%;
}

/* MODALE D'AFFICHAGE DES DÉTAILS */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.modal-content p {
    margin-bottom: 10px;
}

.modal-content .event-time, 
.modal-content .event-location {
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Styles des Icônes de Réseaux Sociaux Rondes et Attrayantes --- */

/* Conteneur des icônes */
.footer-section.social .social-icons {
    display: flex;
    gap: 12px; /* Espacement entre les icônes */
    margin-top: 15px;
    padding: 0;
    list-style: none; /* S'assurer qu'il n'y a pas de puces si c'était une liste */
    justify-content: flex-start; /* Aligner à gauche (ou 'center' si vous voulez qu'ils soient centrés) */
}

/* --- Styles des Icônes de Réseaux Sociaux Rondes --- */

/* Conteneur des icônes */
.footer-section.social .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    list-style: none; 
    padding: 0;
    align-items: center; /* Assure un alignement central dans la ligne */
}

/* Style du cercle (le lien <a>) */
.footer-section.social .social-icons a {
    /* Propriétés clés pour le cercle et le centrage */
    display: flex;          
    justify-content: center; 
    align-items: center;     
    width: 42px;             
    height: 42px;            
    border-radius: 50% !important; /* Force le rond */
    
    /* Style de base */
    background-color: var(--primary-color, #2a52be); /* Couleur du MADEB */
    color: white;            
    font-size: 1.3em; /* Augmente légèrement la taille pour la visibilité */
    text-decoration: none;
    
    /* Effets */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Effet au survol */
.footer-section.social .social-icons a:hover {
    background-color: #333; /* Gris foncé ou autre couleur au survol */
    transform: scale(1.1); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Vérification de la balise <i> (l'icône elle-même) */
.footer-section.social .social-icons a i {
    color: white !important; /* Force la couleur de l'icône */
    line-height: 1; /* Assure un alignement vertical parfait de l'icône */
}

/* --- Mise en page principale du pied de page --- */

.site-footer {
    background-color: #333; /* Couleur de fond foncée (à ajuster selon votre design) */
    color: #f4f4f4;
    padding: 40px 0 0 0; /* Plus d'espace au-dessus, pas de padding en bas (pour le footer-bottom) */
    font-size: 0.9em;
}

.container.footer-content {
    display: flex; /* C'est la ligne clé pour les colonnes ! */
    flex-wrap: wrap; 
    justify-content: space-between; 
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px; /* Ajouté pour séparer du footer-bottom */
}

.footer-section {
    flex: 1 1 250px; /* Permet aux colonnes de grandir, mais avec un minimum de 250px */
    padding: 0 15px;
    margin-bottom: 20px; /* Ajouté pour l'espace sur mobile */
}

/* Ajustement pour la section À Propos */
.footer-section.about {
    flex: 2 1 350px; /* Donne plus d'espace à la section de description */
}

.footer-section h3 {
    color: var(--secondary-color, #007bff); /* Couleur du titre de section */
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

/* Style de la ligne du bas */
.footer-bottom {
    background-color: #222; /* Une couleur encore plus foncée */
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
}

.footer-bottom a {
    color: #ccc; /* Ou une couleur proche de votre texte de footer */
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9em;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Liste des liens utilies */
.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li {
    margin-bottom: 8px;
}

.footer-legal-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.85em;
    margin-left: 5px;
}
.footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Styles de la page Adhésion (adhesion.php) --- */

.adhesion-form-grid {
    display: grid;
    /* Crée deux colonnes de taille égale */
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin-top: 30px;
}

.adhesion-form-grid fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.adhesion-form-grid legend {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color, #2a52be);
    padding: 0 10px;
}

.adhesion-form-grid label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
    color: #444;
}

.adhesion-form-grid input[type="text"],
.adhesion-form-grid input[type="date"],
.adhesion-form-grid input[type="tel"],
.adhesion-form-grid select,
.adhesion-form-grid textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.adhesion-form-grid textarea {
    resize: vertical;
}

.adhesion-form-grid .required {
    color: red;
}

/* Force les éléments à prendre toute la largeur des colonnes */
.adhesion-form-grid .full-width {
    grid-column: 1 / -1; 
}

/* Style du bouton de soumission */
.adhesion-form-grid .btn-submit {
    grid-column: 1 / -1;
    margin-top: 20px;
}

/* Style du message de succès et du code membre */

.member-code-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px dashed #28a745; /* Bordure verte pour le succès */
    background-color: #e6fff0;
    border-radius: 6px;
}

.member-code-box p {
    margin: 5px 0;
    font-size: 1.1em;
}

.member-code-box .code-highlight {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff; /* Couleur principale */
    display: inline-block;
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 4px;
    letter-spacing: 2px;
    user-select: all; /* Permet de sélectionner facilement le code */
}

.member-code-box .code-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* Media Query pour la réactivité */
@media (max-width: 800px) {
    .adhesion-form-grid {
        /* Passe le formulaire en une seule colonne sur mobile */
        grid-template-columns: 1fr; 
    }
}

/* Styles spécifiques pour cette page */
.confirmation-box {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.text-success {
    color: #28a745;
    font-size: 2em;
    margin-bottom: 20px;
}
.text-success i {
    margin-right: 10px;
}
.member-code-box {
    margin: 30px 0;
    padding: 20px;
    border: 2px dashed #007bff;
    background-color: #eaf6ff;
    border-radius: 8px;
}
.code-highlight {
    font-size: 2.2em;
    font-weight: bold;
    color: #0056b3;
    display: block;
    margin: 10px 0;
    letter-spacing: 3px;
    user-select: all; 
}
.code-note {
    font-size: 0.9em;
    color: #6c757d;
}
.actions {
    margin-top: 30px;
}
.actions a {
    margin: 0 10px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.btn-primary {
    background-color: #007bff;
    color: white;
}
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

/* --- Styles pour le Menu Déroulant "Connexion" --- */

/* 1. Conteneur principal du menu (le <li> "Connexion") */
.navbar ul li.nav-item.dropdown {
    position: relative;
    display: inline-block; 
}

.nav-item .dropdown-content {
    width: max-content; /* largeur adaptée au contenu */
}


/* 2. Sous-menu (le <ul> avec les liens) */
.navbar ul li.nav-item.dropdown .dropdown-content {
    /* Règle CRUCIALE : Cacher le menu et utiliser !important pour écraser les autres règles de navigation */
    display: none !important; 
    
    position: absolute;
    top: 100%; 
    left: 0;
    
    /* Z-Index est important pour le faire apparaître au-dessus d'autres éléments */
    z-index: 100; 
    
    /* Styles visuels */
    background-color: #f9f9f9; 
    min-width: 250px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.15); 
    padding: 5px 0;
    list-style: none;
    margin: 0;
    border-radius: 4px;
}

/* Styles pour les liens à l'intérieur du sous-menu */
.dropdown-content li {
    margin: 0;
    padding: 0;
}

.dropdown-content .dropdown-item {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.dropdown-content .dropdown-item:hover {
    background-color: #e6e6e6; 
    color: #0056b3;
}

/* 3. Règle d'affichage au survol du parent */
/* C'est CE sélecteur qui révèle le sous-menu */
.navbar ul li.nav-item.dropdown:hover .dropdown-content {
    display: block !important;
}

/*
 * Styles pour la page galerie_login.php
 */

/* --- Mise en page générale --- */

.page-content {
    padding-top: 40px;
    padding-bottom: 80px;
    /* Le 'container' est supposé gérer la largeur maximale */
}

.page-title {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2em;
    font-weight: 700;
}

.intro-text {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Conteneur du formulaire de connexion --- */

.login-form-container {
    max-width: 450px; /* Largeur maximale pour le formulaire */
    margin: 40px auto; /* Centrer le conteneur */
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Style du formulaire simple --- */

.simple-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.simple-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* S'assurer que le padding n'augmente pas la largeur */
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.simple-form input[type="text"]:focus {
    border-color: #007bff; /* Couleur de focus (bleu) */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
    outline: none;
}

.simple-form .required {
    color: #dc3545; /* Rouge pour l'indicateur requis */
    margin-left: 4px;
}

/* --- Bouton de soumission --- */

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745; /* Vert pour le succès/accès */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #218838; /* Vert plus foncé au survol */
}

.btn-submit:active {
    transform: translateY(1px);
}

/* --- Messages d'alerte --- */

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* --- Note d'information --- */

.note-info {
    margin-top: 25px;
    padding: 15px;
    font-size: 0.9em;
    color: #6c757d; /* Gris pour l'info */
    background-color: #f8f9fa; /* Arrière-plan très léger */
    border-left: 3px solid #007bff;
    border-radius: 0 5px 5px 0;
}

.note-info i {
    margin-right: 8px;
    color: #007bff;
}

/* --- Responsive (optionnel) --- */

@media (max-width: 500px) {
    .login-form-container {
        margin: 20px;
        padding: 20px;
    }
    .page-title {
        font-size: 1.8em;
    }
}

/* ======================================= */
/* Styles Spécifiques à la Recherche */
/* ======================================= */

/* Conteneur principal des résultats */
.search-results-list {
    margin-top: 30px;
}

/* Style de chaque élément de résultat */
.search-result-item {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fcfcfc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.search-result-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Type de résultat (Article, Compte Rendu, etc.) */
.result-type {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 700;
    color: #007bff; /* Bleu pour mettre en évidence le type */
    background-color: #e9f5ff;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Titre du résultat */
.search-result-item h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}

/* Lien du titre */
.search-result-item h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.search-result-item h3 a:hover {
    color: #28a745; /* Vert (couleur d'accentuation) */
}

/* Extrait du contenu */
.search-result-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Bouton/Lien "Lire la suite" */
.btn-read-more.small-link {
    display: inline-block;
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s;
}

.btn-read-more.small-link:hover {
    border-bottom: 2px solid #28a745;
}


/* Message d'information (ex: "Aucun résultat trouvé") */
.alert.alert-info {
    padding: 15px;
    border: 1px solid #b8daff;
    background-color: #cce5ff;
    color: #004085;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1em;
}

/* Style de l'intro text pour les messages de résultats */
.intro-text strong {
    color: #333;
    font-weight: 700;
    font-style: italic;
}

/* Style du bouton de déconnexion */
.btn-logout {
    display: inline-block;
    padding: 8px 15px;
    background-color: #dc3545; /* Rouge pour l'action de déconnexion */
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #c82333;
}

/* --- Conteneur pour les Formulaires d'Accès et d'Inscription --- */
.login-form-container, .titrage-form-page form {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.titrage-form-page form {
    max-width: 800px; /* Plus large pour le formulaire complexe */
}

/* --- Éléments de Formulaire --- */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

input[type="text"], 
input[type="email"], 
input[type="tel"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Inclure padding et bordure dans la largeur */
    font-size: 1em;
}

/* Style spécifique pour les champs obligatoires */
.required {
    color: #dc3545; /* Rouge pour l'astérisque */
    margin-left: 2px;
}

/* --- Fieldsets pour l'Inscription Multi-Parties --- */
fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    background-color: #f9f9f9;
}

legend {
    font-size: 1.3em;
    font-weight: bold;
    color: #007bff; /* Bleu pour les légendes */
    padding: 0 10px;
    margin-left: -10px;
}

/* Note info sous le formulaire d'accès */
.note-info {
    text-align: center;
    font-style: italic;
    color: #666;
}

/* --- Page de Prérequis --- */
.prerequis-section {
    margin-top: 40px;
    padding: 25px;
    border-left: 5px solid #007bff; /* Barre latérale bleue */
    background-color: #f4f8ff;
    border-radius: 4px;
}

.prerequis-section h3 {
    color: #007bff;
    margin-top: 0;
    border-bottom: 1px dashed #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.prerequis-list {
    list-style: disc inside;
    padding-left: 20px;
    line-height: 1.8;
}

.prerequis-list li {
    margin-bottom: 8px;
    color: #555;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.3em;
    width: auto; /* Bouton pas à 100% de large */
    display: inline-block;
}

/* --- Page de Succès --- */
.success-message-box {
    padding: 50px 30px;
    max-width: 700px;
    margin: 60px auto;
    border: 3px solid #28a745; /* Cadre vert */
    border-radius: 15px;
    background-color: #e6ffed; /* Fond très léger */
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.large-icon-success {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 15px;
}

/* --- Style pour le bloc d'instructions en haut du formulaire de titrage --- */
.titrage-instructions {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #007bff; /* Bordure bleue */
    border-left: 5px solid #007bff; /* Bande latérale bleue pour accentuation */
    border-radius: 8px;
    background-color: #eaf6ff; /* Fond bleu très léger */
}

.titrage-instructions p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.titrage-instructions ol {
    margin-top: 10px;
    padding-left: 20px;
    font-weight: 600; /* Rendre les étapes plus visibles */
}

.titrage-instructions ol li {
    margin-bottom: 5px;
}

.titrage-instructions .commission-signature {
    text-align: right;
    font-weight: bold;
    font-style: italic;
    margin-top: 20px;
    display: block; /* S'assurer que le bloc signature prend sa propre ligne */
}

/* --- Styles pour la page commissions.php --- */

.commissions-grid {
    display: grid;
    /* Crée une grille de 3 colonnes de taille égale, s'adapte à 1 colonne sur les petits écrans */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
}

.commission-card {
    background-color: #ffffff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.commission-card h2 {
    color: #007bff; /* Couleur principale */
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.presentation-courte {
    flex-grow: 1; /* Permet au texte de prendre l'espace restant */
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-detail {
    display: inline-block;
    margin-top: auto; /* Pousse le bouton vers le bas */
    padding: 10px 15px;
    background-color: #28a745; /* Vert pour l'action "Voir/Postuler" */
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: #1e7e34;
}

.btn-detail i {
    margin-left: 8px;
}

/* --- Styles pour details_activite.php (Article détaillé) --- */

.activite-details {
    padding-top: 20px;
}

.activite-article {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Pour contenir l'image hero */
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.activite-hero {
    height: 300px; /* Grande bannière d'image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Texte en bas de l'image */
    padding: 20px;
    color: white;
    position: relative;
}

.activite-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Assombrir l'image pour que le texte ressorte */
    z-index: 1;
}

.activite-hero h1 {
    font-size: 2.5em;
    margin: 0;
    z-index: 2; /* Pour être au-dessus du filtre noir */
}

.article-meta {
    padding: 15px 30px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #666;
    background-color: #f9f9f9;
}

.article-meta .meta-date i {
    color: #007bff;
    margin-right: 5px;
}

.article-content {
    padding: 30px;
    line-height: 1.7;
    font-size: 1.05em;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/*
 * Fichier : style.css
 * Style de base pour l'administration et le formulaire de connexion MADEB.
 */

/* ====================================================================
   1. Général (Réinitialisation et typographie)
   ==================================================================== */
:root {
    --couleur-primaire: #007bff; /* Bleu principal (MADEB) */
    --couleur-secondaire: #6c757d; /* Gris pour les liens secondaires */
    --couleur-succes: #28a745; /* Vert pour les réussites */
    --couleur-erreur: #dc3545; /* Rouge pour les erreurs/danger */
    --couleur-fond-clair: #f8f9fa; /* Fond des pages */
    --couleur-bordure: #dee2e6;
    --couleur-texte-sombre: #343a40;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--couleur-fond-clair);
    color: var(--couleur-texte-sombre);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

h1.page-title {
    color: var(--couleur-primaire);
    border-bottom: 2px solid var(--couleur-bordure);
    padding-bottom: 10px;
    margin-bottom: 25px;
}


/* ====================================================================
   2. Styles de Connexion et Formulaires (bureau_login.php, bureau_setup.php)
   ==================================================================== */
/* ============================
   PAGE BACKGROUND (IMPACT)
============================ */
body {
    background: linear-gradient(135deg, #f4f7fb, #eef2f7);
    min-height: 100vh;
}

/* ============================
   LOGIN CARD (DESIGN FORT)
============================ */
.login-container {
    width: calc(100% - 30px); /* Assure une marge de 15px de chaque côté sur mobile */
    max-width: 430px;
    margin: clamp(40px, 8vh, 100px) auto; /* Marge automatique pour centrer horizontalement */
    padding: 36px 32px;
    background: #ffffff;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    box-sizing: border-box; /* Très important pour le calcul de la largeur */
}

/* Barre accent institutionnelle */
.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #004085, #0d6efd);
}

/* ============================
   TITRE
============================ */
.page-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #004085;
    margin-bottom: 28px;
    letter-spacing: 0.4px;
}

/* ============================
   TEXTE D’INTRO (SETUP)
============================ */
.login-container p {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* ============================
   LABELS
============================ */
label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ============================
   INPUTS – STYLE PREMIUM
============================ */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #dcdfe6;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.25s ease;
    margin-bottom: 22px;
}

/* Focus “wow” */
input:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    outline: none;
}

/* ============================
   BOUTON – ACTION CLAIRE
============================ */
.login-container .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    margin-top: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Interaction */
.login-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

/* ============================
   LIENS
============================ */
.reset-link a,
.back-link a {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.reset-link a:hover,
.back-link a:hover {
    text-decoration: underline;
}

/* ============================
   RESPONSIVE (OPTIMISÉ)
============================ */
@media (max-width: 480px) {
    .login-container {
        padding: 24px 20px; /* Réduit le rembourrage interne sur petit écran */
        width: 90%; /* Prend 90% de l'écran pour laisser respirer les côtés */
        margin-top: 30px; /* Espace réduit par rapport au haut sur mobile */
    }

    .page-title {
        font-size: 1.4rem; /* Titre légèrement plus petit pour tenir sur une ligne */
    }

    input[type="email"],
    input[type="password"] {
        padding: 12px; /* Inputs plus compacts */
        font-size: 16px; /* Empêche le zoom auto sur iPhone (iOS zoome si < 16px) */
    }
}


/* ====================================================================
   3. Boutons (Buttons)
   ==================================================================== */
.btn {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--couleur-primaire);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3; /* Bleu plus foncé */
}

.btn-success {
    background-color: var(--couleur-succes);
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: var(--couleur-erreur);
    color: white;
}

.btn-danger:hover {
    background-color: #bd2130;
}

.btn-secondary {
    background-color: var(--couleur-secondaire);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}


/* ====================================================================
   4. Alertes et Messages
   ==================================================================== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #007bff;
    background-color: #e2f2ff;
    border-color: #b8daff;
}

/* ====================================================================
   5. Tableau (pour tresorerie_transactions.php)
   ==================================================================== */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--couleur-texte-sombre);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    vertical-align: top;
    border-top: 1px solid var(--couleur-bordure);
    text-align: left;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--couleur-bordure);
    background-color: var(--couleur-bordure);
    color: var(--couleur-texte-sombre);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Styles pour les étiquettes OUI/NON dans les tables */
.badge {
    padding: .3em .6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    color: white;
}

.badge-success { background-color: var(--couleur-succes); }
.badge-danger { background-color: var(--couleur-erreur); }

/* Lien de retour au site public */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--couleur-secondaire);
    text-decoration: none;
}

/* ========================================= */
/* 1. RÉINITIALISATION ET COULEURS DE BASE */
/* ========================================= */
:root {
    /* Nouvelle Palette de Couleurs */
    --color-primary: #5C6BC0; /* Indigo doux pour l'action principale */
    --color-secondary: #78909C; /* Gris doux pour les éléments secondaires */
    --color-accent: #FFB300; /* Ambre/Jaune pour l'accentuation/warning */
    --color-success: #4CAF50; /* Vert pour succès */
    --color-danger: #E53935; /* Rouge pour danger/rejet */
    --color-info: #03A9F4; /* Bleu clair pour info */
    --color-light: #F5F5F5; /* Arrière-plan très clair (presque blanc) */
    --color-dark: #424242; /* Texte principal sombre */
    
    --font-family-base: 'Roboto', sans-serif;
    --border-radius: 8px; /* Coins légèrement arrondis */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); /* Ombre légère */
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    background-color: var(--color-light);
    color: var(--color-dark);
    margin: 0;
    padding-top: 60px; /* Espace pour le header fixé */
}

h1, h2, h3 {
    color: var(--color-primary);
    font-weight: 500; /* Moins lourd pour un look moderne */
    margin-top: 1.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ========================================= */
/* 2. ÉLÉMENTS COMMUNS (Buttons, Alerts, Forms) */
/* ========================================= */

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin: 5px 0;
    box-shadow: var(--shadow-light);
}

.btn:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.btn-primary { background-color: var(--color-primary); color: white; }
.btn-primary:hover { background-color: #455A64; } /* Lighter primary */

.btn-success { background-color: var(--color-success); color: white; }
.btn-success:hover { background-color: #388E3C; }

.btn-danger { background-color: var(--color-danger); color: white; }
.btn-danger:hover { background-color: #C62828; }

.btn-secondary { background-color: var(--color-secondary); color: white; }
.btn-secondary:hover { background-color: #607D8B; }

.btn-info { background-color: var(--color-info); color: white; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* Alertes et Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.alert-success { background-color: #E8F5E9; color: var(--color-success); border: 1px solid #A5D6A7; }
.alert-danger { background-color: #FFEBEE; color: var(--color-danger); border: 1px solid #EF9A9A; }
.alert-warning { background-color: #FFF3E0; color: #F57C00; border: 1px solid #FFCC80; }
.alert-info { background-color: #E1F5FE; color: var(--color-info); border: 1px solid #81D4FA; }

/* Formulaires */
.form-group { margin-bottom: 1.5rem; }

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--color-dark);
    background-color: white;
    border: 1px solid #CFD8DC; /* Bordure légère */
    border-radius: 4px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05); /* Ombre interne subtile */
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2); /* Anneau de focus indigo */
    outline: none;
}

/* ========================================= */
/* 3. STYLES SPÉCIFIQUES À L'ADMINISTRATION */
/* ========================================= */

.admin-page { padding-top: 20px; }

/* Tables - Apparence plus légère */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden; /* Pour que les coins arrondis soient respectés */
    box-shadow: var(--shadow-light);
}

.table th, .table td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #ECEFF1; /* Lignes de séparation très légères */
    text-align: left;
}

.table thead th {
    vertical-align: bottom;
    background-color: #ECEFF1;
    font-weight: 600;
    color: var(--color-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background-color: #FAFAFA;
}

/* Badges de Statut (Plus doux) */
.badge {
    padding: 0.4em 0.8em;
    font-size: 70%;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.badge-status { text-transform: uppercase; }
.status-en_attente { 
    background-color: var(--color-accent); 
    color: var(--color-dark); /* Texte sombre sur ambre */
}
.status-valide { background-color: var(--color-success); }
.status-rejete { background-color: var(--color-danger); }
.badge-info { background-color: var(--color-info); }
.badge-secondary { background-color: var(--color-secondary); }

/* Cartes (Pour les détails) */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.bg-primary { background-color: var(--color-primary) !important; }
.bg-info { background-color: var(--color-info) !important; }
.bg-success { background-color: var(--color-success) !important; }

/* Styles pour la page de Login/Setup */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* ========================================= */
/* 4. LAYOUT / STRUCTURE (Header & Footer) */
/* ========================================= */

/* Header (Fixé en haut) */
.admin-header {
    background-color: white; /* Fond blanc pour un look plus léger */
    color: var(--color-dark);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre pour le détacher du contenu */
    z-index: 1000;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
}
.admin-header a:hover {
    color: var(--color-primary);
}

.admin-footer, footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #E0E0E0;
    font-size: 0.85rem;
    color: var(--color-secondary);
    background-color: white;
}

/* Utilitaires (maintenir le même) */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.float-right { float: right; }

/* ========================================= */
/* Correction Alignement Listes UL/LI */
/* ========================================= */

.list-group {
    /* Écrase le padding gauche par défaut du <ul> */
    padding-left: 0 !important; 
    margin-bottom: 0 !important;
}

.list-group-item {
    /* Écrase le padding interne, mais ajoute un petit espace de 10px pour que le texte ne colle pas aux bords de la carte */
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Règle CSS pour forcer 5 colonnes par ligne sur les grands écrans (largeur 20%) */
@media (min-width: 1200px) { /* xl screens et plus */
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* ======================================= */
/* NOUVEAU CONTENEUR LIMITANT LA LARGEUR */
/* ======================================= */
.diocesaine-card-wrapper {
    /* Limite la largeur du cadre à 800px et le centre */
    max-width: 00px; 
    margin: 50px auto; /* Centre la carte horizontalement et donne une marge verticale */
    padding: 0 15px; /* Ajoute un padding sur les côtés pour les petits écrans */
}

/* 1. La Carte (le div interne qui prend le style) */
.diocesaine-card-wrapper .text-center.mt-5.mb-5 { 
    /* Retire les marges inutiles si elles sont héritées de Bootstrap */
    margin: 0 !important; 
    
    background-color: #ffffff; /* Fond blanc de la carte */
    border-radius: 12px; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); 
    padding: 40px; 
    border: 1px solid #e9ecef;
}


/* 2. Titre et Texte */
.diocesaine-card-wrapper h2 {
    color: #343a40; 
    font-size: 2.2em; 
    margin-bottom: 15px;
}

.diocesaine-card-wrapper p {
    color: #6c757d; 
    font-size: 1.1em;
    margin-bottom: 30px; 
}

/* 3. Bouton */
.diocesaine-card-wrapper .btn-primary.btn-lg {
    background-color: #007bff; 
    border-color: #007bff;
    font-size: 1.15em; 
    padding: 15px 30px; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
    font-weight: 700;
}

.diocesaine-card-wrapper .btn-primary.btn-lg:hover {
    background-color: #0056b3; 
    border-color: #0056b3;
    transform: translateY(-2px); 
    box-shadow: 0 8px 18px rgba(0, 123, 255, 0.4); 
}

.diocesaine-card-wrapper .btn-primary.btn-lg i {
    margin-right: 10px;
}

/* 4. Adaptation mobile */
@media (max-width: 850px) {
    .diocesaine-card-wrapper {
        max-width: 100%; /* Reprend toute la largeur sur mobile */
        padding: 0 15px; /* Maintient le padding pour ne pas coller aux bords */
    }
    
    .diocesaine-card-wrapper .btn-primary.btn-lg {
        width: 100%; /* Le bouton prend toute la largeur du conteneur parent */
    }
}

/* Animation de clignotement en rouge (style urgent) */
@keyframes flash-red {
    0% { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
    50% { background-color: #dc3545; border-color: #dc3545; color: white; } /* VRAI ROUGE VIF */
    100% { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
}
/* ========================================================= */
/* 1. CORRECTION DU FLOU ET LISIBILITÉ DE LA MODALE */
/* ========================================================= */


/* RÈGLE CLÉ : Neutraliser tout FLOU appliqué à la modale elle-même. */
#communiqueModal {
    /* Écrase tout flou externe appliqué par inadvertance */
    filter: none !important; 
    /* Assure une opacité totale du conteneur de la modale */
    opacity: 1 !important;
}

/* RÈGLE CLÉ : Neutraliser le FLOU sur le contenu DERRIÈRE la modale. */
/* Le flou est souvent appliqué au body ou aux conteneurs principaux lorsque la modale est ouverte. */
body.modal-open,
body.modal-open > main, 
body.modal-open > .container, 
body.modal-open > #main-content,
body.modal-open > .site-wrapper {
    /* Désactive le flou d'arrière-plan s'il est appliqué ici. */
    filter: none !important; 
}

/* Assurer un contraste et une opacité complète pour le contenu */
#communiqueModal .modal-content {
    background-color: #ffffff; /* Fond blanc opaque pour la lisibilité */
    color: #333333;           /* Texte sombre */
    opacity: 1 !important;
    z-index: 1055;            /* S'assurer que la modale est au-dessus du reste */
}


/* ========================================================= */
/* 2. STYLE DU BOUTON ET EN-TÊTE */
/* ========================================================= */

/* Assurez-vous que l'en-tête de la modale est bien rouge */
.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

/* Améliore la visibilité du 'X' (bouton de fermeture Bootstrap) */
#communiqueModal .btn-close {
    opacity: 1 !important; 
    /* Met le 'X' en blanc si l'arrière-plan est rouge */
    color: #ffffff !important; 
    /* Augmente la taille et assure qu'il est en première ligne */
    font-size: 1.5rem; 
    z-index: 1056; 
}

/* Vous pouvez garder cette règle pour la compatibilité ou si vous utilisez un autre bouton de fermeture */
#communiqueModal .close-btn {
    opacity: 1; 
    z-index: 1056; 
    color: #000000; /* Peut être changé en #ffffff si dans l'en-tête rouge */
    font-size: 1.5rem; 
}

/* ========================================================= */
/* 3. STYLE DE L'ALERTE (AVANT OUVERTURE) */
/* ========================================================= */

.communique-alert {
    background-color: #f8d7da; 
    color: #721c24; 
    border: 2px solid #dc3545; 
    border-radius: 5px;
    cursor: pointer;
    animation: flash-red 1.5s infinite; 
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 1rem 0.5rem;
    transition: none; 
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.communique-alert:hover {
    animation: none; 
    background-color: #dc3545; 
    color: white;
}

.communique-icon {
    margin-right: 15px;
    font-size: 1.5em; 
}

/* ======================================= */
/* 1. Conteneur (Base Responsive)         */
/* ======================================= */
.centered-link {
    /* Utilisation de Flexbox pour un centrage parfait et robuste */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;     /* Centre verticalement */
    /* Assure que la section prend un minimum de hauteur si nécessaire */
    min-height: 20vh; 
    padding: 30px 20px; /* Padding pour ne pas coller aux bords de l'écran */
    background: #f0f4f8; /* Léger fond gris-bleu clair (moins agressif que le simple gris) */
    box-sizing: border-box; /* Inclusion du padding et de la bordure dans la largeur/hauteur */
}

/* ======================================= */
/* 2. Style du Lien (Bouton d'Action)      */
/* ======================================= */
.centered-link a {
    /* Style de base */
    display: inline-block; /* Permet d'appliquer padding et transform */
    text-decoration: none;
    cursor: pointer;
    
    /* Couleurs et typographie professionnelles */
    background: #0073e6; /* Bleu institutionnel (légèrement plus sombre et professionnel que 007bff) */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;

    /* Tailles basées sur des unités relatives (rem) pour l'accessibilité */
    padding: 1rem 2.5rem; /* ~16px 40px */
    font-size: 1.25rem; /* ~20px */
    line-height: 1.5; /* Meilleure lisibilité */
    
    /* Coins et ombre (look moderne et légèrement en relief) */
    border-radius: 8px; /* Coins légèrement plus arrondis */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
    
    /* Transitions fluides */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background 0.3s;
}

/* ======================================= */
/* 3. Effets de Survol (Hover/Focus)       */
/* ======================================= */
.centered-link a:hover,
.centered-link a:focus {
    /* L'effet au survol renforce l'idée d'interactivité et de clic */
    background: #005bb5; /* Bleu plus foncé au survol */
    transform: translateY(-2px); /* Léger mouvement vers le haut */
    /* Augmentation de l'ombre portée pour un effet de "pop-up" professionnel */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
    outline: none; /* Retirer l'outline par défaut sur focus pour le remplacer par l'ombre */
}

/* ======================================= */
/* 4. Responsive Design (Media Queries)    */
/* ======================================= */

/* Pour les petits écrans et les mobiles (jusqu'à 600px) */
@media (max-width: 600px) {
    .centered-link {
        /* Plus de padding vertical pour une meilleure zone de clic sur mobile */
        padding: 40px 10px;
    }

    .centered-link a {
        /* Le lien prend toute la largeur pour une cible de clic facile */
        width: 100%;
        max-width: 300px; /* Limite la largeur sur les très grands écrans */
        
        /* Réduire légèrement la taille sur mobile */
        padding: 1rem 1.5rem; /* ~16px 24px */
        font-size: 1.1rem; /* ~17.6px */
        text-align: center; /* Assure que le texte est centré dans le bouton */
    }
}

/* Pour les écrans intermédiaires (tablettes en mode portrait, etc.) */
@media (min-width: 601px) and (max-width: 900px) {
    .centered-link a {
        /* Taille intermédiaire confortable */
        font-size: 1.2rem;
        padding: 1.2rem 2.5rem;
    }
}






/* ===============================
   CONTENEUR DES CARTES
=============================== */
.test-cards {
    display: flex;
    gap: 1.75rem;
    margin: 3rem 0;
    align-items: stretch;
}

/* ===============================
   CARTE – DESIGN PREMIUM
=============================== */
.test-cards .card {
    flex: 1 1 320px;
    position: relative;
    border-radius: 22px;
    padding: 28px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;

    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

/* Effet lumière */
.test-cards .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(255, 255, 255, 0.25),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover premium */
.test-cards .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3);
}

.test-cards .card:hover::before {
    opacity: 1;
}

/* ===============================
   VARIATIONS DE COULEURS
=============================== */
.test-cards .card.evaluation {
    background: linear-gradient(135deg, #f59e0b, #facc15);
}

.test-cards .card.resultats {
    background: linear-gradient(135deg, #6366f1, #2563eb);
}

/* ===============================
   ICÔNE – STYLE MODERNE
=============================== */
.test-cards .card .icon {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

/* ===============================
   TEXTE
=============================== */
.test-cards .card .text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* ===============================
   RESPONSIVE TABLETTE
=============================== */
@media (max-width: 992px) {
    .test-cards {
        gap: 1.4rem;
    }

    .test-cards .card {
        padding: 24px;
    }

    .test-cards .card .text {
        font-size: 1.05rem;
    }
}

/* ===============================
   RESPONSIVE MOBILE
=============================== */
@media (max-width: 600px) {
    .test-cards {
        flex-direction: column;
        margin: 2rem 0;
    }

    .test-cards .card {
        border-radius: 18px;
    }

    .test-cards .card .icon {
        font-size: 2.4rem;
    }

    .test-cards .card .text {
        font-size: 1rem;
    }
}


/* Assure un z-index élevé pour la superposition (backdrop) et le modal */
.modal-backdrop {
    z-index: 1050 !important;
}
.modal {
    z-index: 1060 !important;
    /* Important pour corriger certains problèmes de focus/défilement dans l'admin */
    overflow-y: auto; 
}








/* --- 3. Vision / Histoire / Documents (Grid) --- */
.vision-history-docs {
    display: grid;
    /* Règle par défaut pour les grands écrans : 3 colonnes égales */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    padding: 40px 0;
}

.card {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.download-area ul {
    list-style: none;
}

.download-area a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

/* Voir Plus */
.btn-read-more {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: fit-content;
    font-size: 0.9em;
}

/* 📱 Media Query pour l'adaptabilité de la Grille */

@media (max-width: 900px) {
    /* Sur les tablettes, passer à 2 colonnes pour mieux utiliser l'espace horizontal */
    .vision-history-docs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Réduire un peu le gap */
    }
}

@media (max-width: 600px) {
    /* Sur les téléphones, passer à 1 seule colonne (empilement vertical) */
    .vision-history-docs {
        grid-template-columns: 1fr;
        gap: 15px; /* Réduire encore le gap pour plus de compacité */
        padding: 20px 0;
    }
    
    /* Centrer le contenu de la carte sur mobile si nécessaire (sinon, garder aligné à gauche) */
    .card {
        text-align: left; 
    }
}





/*
 * ===========================================
 * STYLES RESPONSIVE POUR LA SECTION RESPONSABLES
 * ===========================================
 */

.responsables-section {
    /* Utilise Flexbox pour placer les cartes côte à côte sur PC */
    display: flex;
    justify-content: space-around; /* Distribue l'espace entre/autour des cartes */
    align-items: flex-start; /* Aligne les cartes en haut */
    gap: 30px; /* Espace entre les deux cartes */
    padding: 40px 0;
}

.responsible-card {
    /* Chaque carte prend une part égale de l'espace sur PC */
    flex: 1 1 45%; 
    min-width: 300px; /* Empêche les cartes de devenir trop petites sur des écrans intermédiaires */
    
    /* Assurez-vous que l'image et le texte sont centrés dans la carte */
    text-align: center; 
}

/* 📱 Media Query pour l'adaptabilité sur Mobile (par exemple, moins de 768px) */
@media (max-width: 768px) {
    .responsables-section {
        /* Passe en mode empilement vertical */
        flex-direction: column; 
        align-items: center; /* Centre les cartes empilées */
        gap: 25px;
    }

    .responsible-card {
        /* Prend toute la largeur disponible pour l'empilement */
        width: 100%; 
        min-width: unset; /* Désactive la largeur minimale */
    }
}


/* style.css */

/* Applique la justification à tous les blocs de texte longs dans le PA */
.pa-text-block {
    text-align: justify;
    line-height: 1.6; /* Optionnel: améliore la lisibilité des longs blocs */
}











/* ================== RESPONSIVE MOBILE (max-width: 768px) ================== */
@media (max-width: 768px) {

    /* 📌 ANCRAGE DU MENU MOBILE : Le parent (header) doit être relative */
    .header {
        position: relative; 
        z-index: 1000;
    }
    
    /* 💥 COULEUR DU FOND MOBILE : Appliqué à l'élément qui contient le logo et le hamburger */
    .header-top {
        background-color: #0d6efd; /* Fond bleu sur mobile */
        box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
        padding: 5px 0; /* Réduire le padding vertical */
    }
    
    /* Rendre le texte/logo visible sur le fond bleu */
    .logo-area h1 a, .logo-area .description {
        color: white; 
    }
    
    /* Le content-wrapper mobile */
    .content-wrapper {
        width: 95%; 
        margin: 0 auto; 
    }

    /* Cacher description sur mobile */
    .description { display: none; }
    .logo-area { gap: 0; }

    /* Loupe (Icône) */
    .search-area form { display: none; }
    .search-area::before {
        content: "\f002"; 
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.5em;
        cursor: pointer;
        color: white; /* Loupe blanche sur fond bleu */
    }

    /* Hamburger (Bouton) */
    .hamburger-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    /* Barres du Hamburger */
    .hamburger-toggle .barre {
        display: block;
        width: 25px;
        height: 3px;
        margin: 4px 0;
        background-color: #fff; /* Barres blanches sur fond bleu */
        transition: all 0.3s ease;
    }

    /* Hamburger croix */
    .hamburger-toggle.active .barre:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-toggle.active .barre:nth-child(2) {
        opacity: 0;
    }
    .hamburger-toggle.active .barre:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 📌 MENU NAV MOBILE : Positionnement correct */
    .navbar {
        display: none;
        position: absolute; 
        top: 100%; /* Positionné juste sous le header-top */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #007bff; 
        z-index: 999; 
    }

    .navbar.active { display: flex; }

    /* Liste verticale */
    .navbar ul {
        flex-direction: column;
        width: 100%; 
    }

    .navbar ul li a {
        display: block;
        padding: 10px 15px;
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        background-color: transparent; 
    }

    .navbar ul li a:hover { background-color: #0056b3; }

    /* Sous-menu mobile */
    .navbar ul li ul {
        display: none;
        flex-direction: column;
        background-color: #0056b3;
        padding-left: 15px;
    }

    .navbar ul li.active ul {
        display: flex;
    }
    
    /* Afficher l'interrupteur hamburger sur PC (Règle redondante mais gardée) */
    .hamburger-toggle { display: block; }
}

/* ================== RESPONSIVE PC (min-width: 769px) ================== */
@media (min-width: 769px) {
    
    /* Réinitialisation de la couleur du fond PC */
    .header-top {
        background-color: var(--background-light, #f8f9fa); 
        box-shadow: none;
        padding: 10px 0; /* Rétablir le padding PC */
    }
    .logo-area h1 a, .logo-area .description {
        color: #555; 
    }

    /* Cacher les éléments mobiles */
    .hamburger-toggle { display: none; }
    .search-area::before { display: none; }
    
    /* Afficher le formulaire de recherche sur PC */
    .search-area form { display: flex; }
}




/* ===============================
   RESPONSIVE PROFIL MEMBRE
   =============================== */

/* Ajustement général */
.page-content {
    padding: 15px;
}

/* Titre principal */
.page-title {
    font-size: 1.6rem;
}

/* Carte */
.card {
    border-radius: 12px;
}

/* Header de la carte */
.card-header h3 {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Listes descriptives */
dl dt {
    font-weight: 600;
}
dl dd {
    margin-bottom: 0.4rem;
}

/* Bouton modifier */
.btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
}

/* ===============================
   TABLETTE & MOBILE
   =============================== */
@media (max-width: 768px) {

    /* Titre + bouton retour */
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* Colonnes empilées */
    .border-right {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    /* Titres de section */
    h4 {
        font-size: 1.1rem;
    }

    /* Texte */
    .small {
        font-size: 0.9rem;
    }

    /* Bouton modifier */
    .btn-lg {
        width: 100%;
    }
}

/* ===============================
   TRÈS PETITS ÉCRANS
   =============================== */
@media (max-width: 480px) {

    .page-title {
        font-size: 1.4rem;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    dl dt,
    dl dd {
        flex: 0 0 100%;
        max-width: 100%;
    }

    dl dt {
        margin-top: 8px;
    }
}

/*-------------------------------------*/
/*Mots de l'aumônier*/
/*-------------------------------------*/
.aumon-title {
    font-size: 22px;
    color: #dc3545;
    font-weight: 700;
    text-align: center;
    margin: 20px auto;
    border: 2px solid #dc3545;
    padding: 12px 24px;
    width: fit-content;
    max-width: 90%; /* évite le débordement sur mobile */
    border-radius: 10px;
    background-color: #fff5f5;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.15);
    line-height: 1.3;
}

/* 📱 Mobile */
@media (max-width: 576px) {
    .aumon-title {
        font-size: 16px;
        padding: 8px 14px;
        border-width: 1.5px;
        letter-spacing: 0.3px;
    }
}

/* 📲 Tablette */
@media (min-width: 577px) and (max-width: 992px) {
    .aumon-title {
        font-size: 19px;
        padding: 10px 20px;
    }
}

/* 🖥️ Desktop large */
@media (min-width: 1200px) {
    .aumon-title {
        font-size: 24px;
        padding: 14px 28px;
    }
}

.responsable-title {
    font-size: 22px;
    color: #004085;
    font-weight: 700;
    text-align: center;
    margin: 20px auto;
    border: 2px solid #004085;
    padding: 12px 24px;
    width: fit-content;
    max-width: 90%; /* évite le débordement sur mobile */
    border-radius: 10px;
    background-color: #fff5f5;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.15);
    line-height: 1.3;
}

/* 📱 Mobile */
@media (max-width: 576px) {
    .responsable-title {
        font-size: 16px;
        padding: 8px 14px;
        border-width: 1.5px;
        letter-spacing: 0.3px;
    }
}

/* 📲 Tablette */
@media (min-width: 577px) and (max-width: 992px) {
    .responsable-title {
        font-size: 19px;
        padding: 10px 20px;
    }
}

/* 🖥️ Desktop large */
@media (min-width: 1200px) {
    .responsable-title {
        font-size: 24px;
        padding: 14px 28px;
    }
}




