/* ===================================================================
   FEUILLE DE STYLE FINALE - ASSOCIATION TSOUMOU
   Thème : Élégance Violet - Version Complète et Corrigée
   =================================================================== */

/* -------------------- VARIABLES & STYLES DE BASE -------------------- */
:root {
    --c-violet-dark: #240046;
    --c-violet: #240046;
    --c-violet-light: #9d4edd;
    --c-violet-xlight: #e0aaff;
    --c-white: #ffffff;
    --c-light-bg: #f8f7fc;
    --c-dark-text: #333;
    --c-light-text: #666;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Manrope', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--c-dark-text);
    background-color: var(--c-white);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-light { background-color: var(--c-light-bg); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--c-violet-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after { content: ''; position: absolute; width: 60%; height: 4px; background-color: var(--c-violet-light); bottom: -10px; left: 20%; }
.section-header p { font-size: 1.1rem; color: var(--c-light-text); max-width: 650px; margin: 1rem auto 0; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2.2rem; border-radius: 50px; font-weight: 700; text-decoration: none; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary { background-color: var(--c-violet); color: var(--c-white); }
.btn-primary:hover { background-color: var(--c-violet-dark); transform: translateY(-3px); }
.btn.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.1rem; }
.link-arrow { color: var(--c-violet); font-weight: 600; text-decoration: none; }
.link-arrow i { transition: transform 0.3s; }
.link-arrow:hover i { transform: translateX(5px); }

/* -------------------- HEADER -------------------- */
.header { position: fixed; width: 100%; z-index: 100; transition: var(--transition); }
.header.scrolled { background-color: var(--c-violet); box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 5.5rem; }
.logo img { height: 45px; border-radius: 50%; }

/* --- Styles pour un texte de navbar toujours blanc et gras --- */
.logo,
.nav-link,
.nav-toggle {
    color: var(--c-white);
    font-weight: 700; /* 700 est la valeur numérique pour 'bold' */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre portée subtile pour une lisibilité parfaite sur l'image du hero */
    text-decoration: none;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
}

.nav-menu { display: flex; align-items: center; gap: 1rem; }
.nav-list { display: flex; list-style: none; gap: 2.5rem; }
.nav-link { position: relative; padding: 0.2rem 0; }

/* --- Styles de survol et lien actif pour le texte blanc --- */
.nav-link:hover, .nav-link:focus {
    color: var(--c-violet-xlight); /* Survol en violet très clair */
}
.nav-link.active {
    color: var(--c-white); /* Le lien actif reste blanc pur */
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-white);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-toggle { font-size: 1.5rem; cursor: pointer; display: none; }


/* ===================================================================
   STYLE POUR LE BOUTON "ADHÉSION" DANS LA NAVBAR
   =================================================================== */

/* Style du bouton d'appel à l'action dans la navigation */
.btn-nav-cta {
    background: #E6007E; /* Le même rose vibrant */
    color: var(--c-white) !important; /* !important pour garantir la couleur blanche */
    font-weight: 700;
    padding: 0.6rem 1.5rem; /* Padding réduit pour s'intégrer à la navbar */
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(230, 0, 126, 0.3);
    transition: all 0.3s ease;
    text-shadow: none; /* On enlève l'ombre du texte par défaut des nav-links */
    margin-left: 1rem; /* Ajoute un espace avec les autres liens */
}

.btn-nav-cta:hover {
    background: #C3006A; /* Rose plus foncé */
    color: var(--c-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(195, 0, 106, 0.4);
}

/* --- Adaptation pour le menu mobile --- */
@media (max-width: 768px) {
    /* Cache le bouton quand le menu est fermé sur mobile */
    .nav-container > .btn-nav-cta {
        display: none;
    }
    
    /* Affiche le bouton dans le menu vertical quand il est ouvert */
    .nav-menu .btn-nav-cta {
        display: block; /* S'assurer qu'il est visible */
        margin-top: 2rem; /* Espace au-dessus dans le menu vertical */
        margin-left: 0; /* Pas de marge à gauche dans le menu vertical */
        padding: 0.8rem 2rem;
        width: 80%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }
}

/* -------------------- HERO SECTION -------------------- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; background: url('back2.jpg') no-repeat center center/cover; color: var(--c-white); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(36, 0, 70, 0.7); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-family: var(--font-heading); font-size: 4rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* -------------------- HISTOIRE (DESIGN COMPACT) -------------------- */
.history-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding: 2rem 0; gap: 2rem; }
.history-grid-container::before { content: ''; position: absolute; top: 45px; left: 10%; right: 10%; height: 3px; background-color: var(--c-violet-xlight); z-index: 0; }
.history-step { text-align: center; position: relative; padding-top: 70px; }
.history-icon { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background-color: var(--c-violet); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: 5px solid var(--c-white); z-index: 1; box-shadow: 0 0 0 4px var(--c-violet); }
.history-year { font-family: var(--font-body); font-size: 1.5rem; font-weight: 700; color: var(--c-violet); margin-bottom: 0.5rem; }
.history-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--c-violet-dark); margin-bottom: 1rem; }
.history-step p { font-size: 0.95rem; color: var(--c-light-text); line-height: 1.6; }

/* -------------------- BUREAU EXÉCUTIF -------------------- */
.bureau-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.bureau-card { background: var(--c-white); border-radius: 10px; padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.bureau-card:hover { transform: translateY(-10px); }
.bureau-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 5px solid var(--c-violet-xlight); }
.bureau-card h3 { font-family: var(--font-heading); margin-bottom: 0.25rem; }
.bureau-card span { color: var(--c-violet); font-weight: 600; display: block; margin-bottom: 1rem; }
.bureau-social { display: flex; justify-content: center; gap: 1rem; }
.bureau-social a { color: var(--c-violet-light); font-size: 1.2rem; }
.bureau-social a:hover { color: var(--c-violet-dark); }

/* -------------------- SECTION MISSION -------------------- */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.mission-card { background: var(--c-white); padding: 2.5rem 2rem; text-align: center; border-radius: 10px; box-shadow: var(--shadow); transition: var(--transition); border-top: 5px solid var(--c-violet); }
.mission-card:hover { transform: translateY(-10px); }
.mission-icon { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--c-violet); }
.mission-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }

/* -------------------- SECTION RÉALISATIONS -------------------- */
.section-realisations { background: var(--c-violet-dark); color: var(--c-white); padding: 6rem 0; }
.section-realisations .section-title, .section-realisations .section-header p { color: var(--c-white); }
.section-realisations .section-title::after { background-color: var(--c-violet-light); }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-size: 4rem; font-weight: 700; line-height: 1; }
.stat-item p { font-size: 1.1rem; font-weight: 500; opacity: 0.8; }

/* -------------------- SECTION ÉVÉNEMENTS -------------------- */
.events-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.event-card { background: var(--c-white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.event-card:hover { transform: translateY(-10px); }
.event-card img { width: 100%; height: 200px; object-fit: cover; }
.event-content { padding: 2rem; }
.event-date { font-weight: 700; color: var(--c-violet); margin-bottom: 0.5rem; font-size: 0.9rem; }
.event-content h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 1rem; }
.event-content p { margin-bottom: 1.5rem; }

/* -------------------- SECTION GALERIE -------------------- */
.gallery-filters { text-align: center; margin-bottom: 3rem; }
.filter-btn { background: none; border: 2px solid var(--c-violet-xlight); padding: 0.6rem 1.8rem; margin: 0.25rem; border-radius: 50px; cursor: pointer; font-weight: 600; transition: var(--transition); color: var(--c-violet); }
.filter-btn:hover, .filter-btn.active { background-color: var(--c-violet); color: var(--c-white); border-color: var(--c-violet); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-item::after { content: '\f00e'; /* FontAwesome zoom icon */ font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); color: var(--c-white); font-size: 2rem; opacity: 0; transition: var(--transition); }
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.6); }

/* -------------------- SECTION ADHESION -------------------- */
.section-adhesion { background: var(--c-light-bg); padding: 6rem 0; }
.adhesion-container { background: var(--c-violet-dark); color: var(--c-white); border-radius: 15px; padding: 4rem; text-align: center; }
.adhesion-container h2 { font-size: 2.5rem; font-family: var(--font-heading); }
.adhesion-container p { max-width: 600px; margin: 1.5rem auto 2.5rem; font-size: 1.1rem; opacity: 0.9; }
.adhesion-container .btn-primary { background-color: var(--c-white); color: var(--c-violet-dark); }
.adhesion-container .btn-primary:hover { background-color: var(--c-violet-xlight); }



/* Effet au survol de la souris pour rendre le bouton interactif */

/* ===================================================================
   STYLES POUR LES BOUTONS D'ACTION (NAVBAR & SECTION ADHÉSION)
   =================================================================== */

/* --- 1. BOUTONS DANS LA NAVBAR --- */

/* Conteneur pour les boutons dans la nav */
.nav-buttons {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}

/* Style de base pour les boutons de la nav */
.btn-nav-cta {
    color: var(--c-white) !important;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-shadow: none;
}
.btn-nav-cta:hover {
    color: var(--c-white) !important;
    transform: translateY(-2px);
}

/* Couleur rose pour le bouton Adhésion */
.btn-nav-pink {
    background-color: var(--c-pink);
    box-shadow: 0 2px 10px rgba(230, 0, 126, 0.3);
}
.btn-nav-pink:hover {
    background-color: var(--c-pink-dark);
    box-shadow: 0 4px 15px rgba(195, 0, 106, 0.4);
}



/* --- 2. GROS BOUTONS DANS LA SECTION ADHÉSION --- */

/* Conteneur pour les gros boutons */
.adhesion-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur petit écran */
}

/* Style de base pour les gros boutons (déjà dans .btn-lg) */
.adhesion-buttons .btn {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Style pour le gros bouton rose */
.btn-pink-main {
    background:#E6007E;
    box-shadow: 0 4px 20px rgba(230, 0, 126, 0.4);
	color: var(--c-white); /* Le lien actif reste blanc pur */
}
.btn-pink-main:hover {
    background:#C3006A;;
    box-shadow: 0 6px 25px rgba(195, 0, 106, 0.5);
	color: var(--c-white); /* Le lien actif reste blanc pur */
}

/* Style pour le gros bouton orange */
.btn-orange-main {
    background:#e68100;
    box-shadow: 0 4px 20px rgba(255, 133, 0, 0.4);
	color: var(--c-white); /* Le lien actif reste blanc pur */
}
.btn-orange-main:hover {
    background:#d69c51;
    box-shadow: 0 6px 25px rgba(212, 111, 0, 0.5);
	color: var(--c-white); /* Le lien actif reste blanc pur */
}


/* -------------------- FOOTER -------------------- */
.footer { background-color: var(--c-violet-dark); color: var(--c-violet-xlight); padding: 5rem 0 2rem; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col h3 { font-family: var(--font-heading); color: var(--c-white); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--c-violet-xlight); text-decoration: none; }
.footer-col a:hover { color: var(--c-white); }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { width: 100%; padding: 0.8rem; border: none; border-radius: 5px 0 0 5px; background-color: rgba(255, 255, 255, 0.1); color: var(--c-white); }
.newsletter-form .btn { border-radius: 0 5px 5px 0; }
.social-links { display: flex; gap: 1.5rem; margin-top: 1rem; }
.social-links a { font-size: 1.5rem; color: var(--c-violet-xlight); }
.social-links a:hover { color: var(--c-white); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero h1 { font-size: 3rem; }
    .history-grid-container { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
    .history-grid-container::before { left: 25%; right: 25%; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: var(--c-violet-dark); flex-direction: column; justify-content: center; align-items: center; transition: var(--transition); padding: 2rem; }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; gap: 2rem; text-align: center; }
    .nav-link { font-size: 1.2rem; }
    .nav-toggle { display: block; z-index: 101; }
    .nav-toggle.active i::before { content: '\f00d'; }
    .history-grid-container { grid-template-columns: 1fr; gap: 3rem; }
    .history-grid-container::before { display: none; }
    .history-step { text-align: left; padding-left: 90px; padding-top: 0; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
    .history-icon { left: 0; top: 50%; transform: translateY(-50%); }
}

/* -------------------- ANIMATIONS -------------------- */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }




/* ===================================================================
   NOUVEAUX STYLES POUR LA PAGE ET LE FORMULAIRE D'ADHÉSION
   =================================================================== */

/* --- 1. En-tête de la page --- */
.page-header {
    background: var(--c-violet-dark);
    color: var(--c-white);
    padding: 8rem 0 4rem 0;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* --- 2. Conteneur du formulaire --- */
.section-form {
    background-color: var(--c-light-bg);
    padding: 4rem 0;
}
.adhesion-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--c-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* --- 3. Sections du formulaire (Fieldset) --- */
.adhesion-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}
.adhesion-form legend {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--c-violet);
    margin-bottom: 2rem;
    width: 100%;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--c-violet-xlight);
}
.form-group.form-full-width {
    grid-column: 1 / -1; /* Le champ prend toute la largeur */
}

/* --- 4. Champs de saisie (Inputs, Labels, etc.) --- */
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    color: var(--c-dark-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-violet);
    box-shadow: 0 0 0 3px rgba(90, 24, 154, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- 5. Case à cocher et soumission --- */
.form-submission {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.form-group-checkbox input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--c-violet); /* Style moderne pour la coche */
}
.form-group-checkbox label {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--c-light-text);
    font-size: 0.9rem;
}

/* --- 6. Responsive du formulaire --- */
@media(max-width: 768px) {
    .adhesion-form fieldset {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .adhesion-form {
        padding: 2rem;
    }
}



/* ===================================================================
   STYLES POUR LA FENÊTRE MODALE DE DON
   =================================================================== */

/* L'arrière-plan sombre semi-transparent */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(36, 0, 70, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

/* Classe ajoutée par JS pour afficher la modale avec une transition */
.modal.modal-visible {
    display: flex;
}

/* La boîte de dialogue (contenu de la modale) */
.modal-content {
    background-color: var(--c-white);
    margin: auto;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 950px;
    position: relative;
    animation: slide-in 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Le bouton pour fermer (X) */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    transition: var(--transition);
}
.close-btn:hover,
.close-btn:focus {
    color: var(--c-violet-dark);
    text-decoration: none;
    cursor: pointer;
}

/* Style du contenu de la modale */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-header .fa-heartbeat {
    font-size: 2.5rem;
    color: var(--c-pink-dark);
    margin-bottom: 1rem;
}
.modal-header h2 {
    font-family: var(--font-heading);
    color: var(--c-violet-dark);
    font-size: 2rem;
}
.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.modal-body li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.payment-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--c-violet);
}
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.payment-option {
    background-color: var(--c-light-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.payment-option i {
    font-size: 2rem;
    color: var(--c-violet);
    margin-bottom: 1rem;
}
.payment-option h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.payment-number {
    font-weight: 700;
    color: var(--c-violet-dark);
    font-size: 1.1rem;
    word-break: break-all; /* Pour les longs RIB */
}
.payment-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--c-light-text);
    margin-top: 2rem;
    background-color: #f8f7fc;
    padding: 0.8rem;
    border-radius: 5px;
}
.modal-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-weight: 600;
    color: var(--c-light-text);
}



/* ===================================================================
   STYLES POUR LA PAGE DE DÉTAIL D'UN ÉVÉNEMENT
   =================================================================== */

/* --- 1. Bannière de l'en-tête de la page --- */
.event-detail-header {
    position: relative;
    padding: 10rem 0;
    text-align: center;
    color: var(--c-white);
    background: url('ev1.jpg') no-repeat center center/cover; /* Utilisez l'image de votre événement ici */
}

.event-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 0, 70, 0.65); /* La même surcouche violette que le hero */
}

.event-header-content {
    position: relative;
    z-index: 2;
}

.event-header-date {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-header-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- 2. Contenu principal de la page --- */
.event-detail-section {
    background-color: var(--c-light-bg);
}

.event-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 pour la description, 1/3 pour la barre latérale */
    gap: 3rem;
}

.event-main-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--c-violet-dark);
    margin-bottom: 1.5rem;
}

.event-main-content p {
    margin-bottom: 1.5rem;
    color: var(--c-light-text);
}

.event-main-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.event-main-content ul {
    list-style: none;
    padding: 0;
}

.event-main-content ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-main-content ul li i {
    color: var(--c-violet);
}

/* --- 3. Barre latérale avec les infos pratiques --- */
.event-sidebar .info-card {
    background-color: var(--c-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: sticky; /* Reste visible au scroll */
    top: 120px; /* Espace par rapport au header */
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    border-bottom: 2px solid var(--c-violet-xlight);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--c-violet);
    margin-top: 5px;
}

.info-item strong {
    display: block;
    font-weight: 700;
    color: var(--c-dark-text);
}

.info-item span {
    color: var(--c-light-text);
}

.add-to-calendar-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* --- 4. Responsive de la page détail --- */
@media(max-width: 992px) {
    .event-detail-container {
        grid-template-columns: 1fr; /* Une seule colonne sur tablette et mobile */
    }

    .event-sidebar .info-card {
        position: static; /* La carte ne reste plus fixe */
    }
}