/* --- 1. Variables Globales (Génériques) --- */
:root {
    --color-accent: #00bcd4; /* Cyan/Turquoise pour l'énergie ADT */
    --color-primary: #1e88e5; /* Bleu standard */
    --color-text-dark: #212121;
    --color-text-light: #ffffff;
    --color-gray-light: #f4f4f4;
    --color-gray-dark: #333333;
    --color-discord: #5865F2; /* NOUVEAU: Couleur Blurple de Discord */
    --color-instagram: #C13584; /* Instagram Deep Magenta */
    --color-youtube: #FF0000;
    --color-tiktok-cyan: #69C9D0; /* TikTok Cyan (pour l'effet de survol) */
    --font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius-main: 8px;
    --box-shadow-main: 0 4px 15px rgba(0, 0, 0, 0.1);
    --card-hover-scale: 1.03; /* Agrandissement au survol */
    --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.2); /* Ombre au survol */
    --link-primary-color-light: #1e88e5;  /*#FF8C00; /* Orange vif pour le mode clair */
    --link-primary-color-dark: #1e88e5; /*#ffae00;  /* Or pour le mode sombre */
}

/* --- Variables de Thème (Light Mode par défaut) --- */
.light-mode {
    --color-background: var(--color-gray-light);
    --color-surface: var(--color-text-light);
    --color-text: var(--color-text-dark);
    --color-header-bg: var(--color-text-light);
    --color-footer-bg: var(--color-gray-dark);
    --color-footer-text: var(--color-text-light);
    --color-hover-bg: rgba(0, 0, 0, 0.05);
    --box-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.08);
    --color-link-default: var(--color-gray-dark);
}

/* --- Variables de Thème (Dark Mode) --- */
.dark-mode {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-text: var(--color-text-light);
    --color-header-bg: #1e1e1e;
    --color-footer-bg: #1e1e1e;
    --color-footer-text: var(--color-text-light);
    --color-hover-bg: rgba(255, 255, 255, 0.1);
    --box-shadow-card: 0 4px 15px rgba(0, 0, 0, 0.4);
    --color-link-default: var(--color-accent);
}

/* --- 2. Styles de Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h2, h3 {
    margin-bottom: 0.8em;
    color: var(--color-text);
}

a {
    color: var(--color-link-default);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent);
}

/* --- 3. Header et Navigation (Moderne & Burger) --- */
.header {
    background-color: var(--color-header-bg);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-accent); 
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-text);
    transition: all 0.3s ease-in-out;
}

/* NAVIGATION DESKTOP: Centrage du menu */
.main-nav {
    display: block; 
    width: 100%; 
    padding: 15px 0; 
    background-color: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    justify-content: center; 
}

.main-nav a {
    /*color: var(--color-text);*/
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(1);
    transition: transform 0.3s ease-out;
}

.main-nav a:not(.active)::after {
    transform: scaleX(1);
}

/* --- Styles de Navigation des Réseaux Sociaux --- */

.discord-nav-link {
    color: var(--color-discord) !important;
    transition: color 0.3s ease;
}

.discord-nav-link:hover {
    color: #7983F5 !important; /* Lighter Blurple on hover */
}

/* NOUVEAU STYLE INSTAGRAM */
.insta-nav-link {
    color: var(--color-instagram) !important;
    transition: color 0.3s ease;
}

.insta-nav-link:hover {
    color: #E1306C !important; /* Rose/Rouge plus clair au survol */
}

/* NOUVEAU STYLE YOUTUBE */
.youtube-nav-link {
    color: var(--color-youtube) !important;
    transition: color 0.3s ease;
}

.youtube-nav-link:hover {
    color: #FF5555 !important; /* Rouge légèrement plus clair au survol */
}

/* NOUVEAU STYLE TIKTOK */
.tiktok-nav-link {
    /* La couleur de base est la couleur du texte (noir/blanc) pour garder l'icône lisible */
    color: black !important; 
    transition: color 0.3s ease;
}

.tiktok-nav-link:hover {
    /* Survol en Cyan pour un effet distinctif */
    color: var(--color-tiktok-cyan) !important; 
}

/* --- 4. Mode Sombre (Toggle) --- */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-toggle i {
    font-size: 1.2em;
}

.light-mode .fa-sun { color: orange; }
.dark-mode .fa-moon { color: var(--color-accent); }

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--color-accent);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--color-accent);
}
input:checked + .slider:before {
    transform: translateX(16px);
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}


/* --- 5. Sections de Contenu --- */
.content {
    padding-top: 20px;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section {
    background-color: var(--color-surface);
    padding: 80px 0;
    text-align: center;
    border-radius: var(--border-radius-main);
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section h2 strong {
    color: var(--color-accent);
}

.hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* CTA Standard (Base pour tous les boutons) */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease; /* Ajout de la transition pour 'transform' et 'box-shadow' */
    text-align: center;
    border: 2px solid transparent;
}

/* NOUVEAU HOVER: Primary CTA (Bouton principal solide) */
.cta-button.primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.cta-button.primary:hover {
    background-color: #008c9f; 
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4); /* Ombre plus forte */
    transform: translateY(-2px); /* Effet de levage subtil */
}

/* NOUVEAU HOVER: Secondary CTA (Bouton principal bordé) */
.cta-button.secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-button.secondary:hover {
    background-color: rgba(0, 188, 212, 0.15); /* Remplissage léger */
    color: var(--color-accent);
    transform: translateY(-2px); /* Effet de levage subtil */
}

.current-event-section {
    background-color: var(--color-background);
}

.event-card.wide {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow-card);
    margin-bottom: 40px;
    padding: 25px;
}

.event-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-hover-bg);
    padding-bottom: 15px;
}

.event-card.wide h3 {
    font-size: 1.5em;
    color: var(--color-accent);
}

.event-type {
    font-style: italic;
    color: var(--color-gray-dark);
}

.dark-mode .event-type {
    color: #aaaaaa;
}

.event-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.event-image-container {
    flex: 0 0 250px; 
    height: 180px; 
    overflow: hidden;
    border-radius: var(--border-radius-main);
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.event-details {
    flex-grow: 1;
}

.event-details ul {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.event-details ul li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-details ul li i {
    color: var(--color-accent);
    min-width: 15px;
}

.card-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* NOUVEAU HOVER: Link CTA Primary (Petits boutons pleins) */
.cta-button.link-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-button.link-primary:hover {
    background-color: #008c9f; 
    transform: translateY(-1px);
}

/* NOUVEAU HOVER: Link CTA Outline (Petits boutons bordés) */
.cta-button.link-outline {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-button.link-outline:hover {
    background-color: rgba(0, 188, 212, 0.1);
    transform: translateY(-1px);
}

/* NOUVEAU HOVER: Link CTA Secondary (Bouton Cagnotte) */
.cta-button.link-secondary {
    background-color: var(--color-gray-dark);
    color: var(--color-text-light);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}
.dark-mode .cta-button.link-secondary {
    background-color: #383838;
}
.cta-button.link-secondary:hover {
    background-color: #555; /* Éclaircissement survol */
    transform: translateY(-1px);
}
.dark-mode .cta-button.link-secondary:hover {
    background-color: #484848;
}

/* CTA Footer Section */
.cta-section.centered {
    text-align: center;
    padding: 40px 0;
}

.cta-section h3 {
    font-size: 2em;
}

.cta-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* NOUVEAU HOVER: Footer Link CTA (Boutons bordés footer) */
.cta-link-secondary {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: var(--border-radius-main);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.cta-link-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    transform: translateY(-2px); /* Effet de levage */
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.2);
}

/* --- 6. Footer --- */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-accent);
}

/* --- 7. Media Queries pour le Responsive (Mobile First) --- */
@media (max-width: 900px) {
    /* ... (Code du menu burger inchangé) ... */
    .burger-menu {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--color-surface);
        padding-top: 80px; 
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .main-nav.open {
        transform: translateX(0); 
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start; 
    }

    .main-nav ul li {
        border-bottom: 1px solid var(--color-hover-bg);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        color: var(--color-text);
    }
    
    .main-nav a:hover {
        background-color: var(--color-hover-bg);
    }
    
    .main-nav a.active::after,
    .main-nav a:hover::after {
        content: none; 
    }
    
    .discord-nav-link {
        border-top: 2px solid var(--color-accent);
        margin-top: 10px;
        font-weight: bold;
    }
    
    .burger-menu.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.open .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-section h2 {
        font-size: 2em;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .event-body {
        flex-direction: column;
        gap: 20px; 
    }
    
    .event-image-container {
        flex: 1 1 auto;
        height: 200px; 
        width: 100%;
        display: flex; 
        justify-content: center; 
        align-items: center; 
        background-color: #f0f0f0; 
    }

    .dark-mode .event-image-container {
        background-color: #2a2a2a;
    }

    .event-image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain; 
        object-position: center; 
    }
    
    .card-actions {
        justify-content: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- 8. Styles Spécifiques aux Pages Contenu/Légales (pour mentions-legales.html) --- */

.mentions-legales-page {
    padding-top: 40px;
    padding-bottom: 80px;
}

.legal-block {
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow-card);
    margin-bottom: 30px;
}

.legal-block h3 {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-hover-bg);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.legal-block p {
    margin-bottom: 10px;
}

.legal-block ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.legal-block ul li {
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.legal-block ul li i {
    color: var(--color-accent);
    margin-top: 3px;
}

.intro-legal {
    font-style: italic;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 9. Styles Spécifiques à la Page "À Propos" --- */

/* Section Hero spécifique à À Propos */
.about-hero-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-main);
    margin: 20px auto;
    box-shadow: var(--box-shadow-card);
}

.about-hero-section h2 {
    font-size: 2.5em;
}

/* Bloc Vision/Mission (Disposition Flex) */
.mission-vision-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mission-vision-section .text-block {
    flex: 1;
}

.mission-vision-section .visual-block {
    flex: 1;
    text-align: center;
}

.mission-vision-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow-card);
}

/* Grille des Valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: var(--border-radius-main);
    text-align: center;
    box-shadow: var(--box-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.value-card i {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--color-text);
}

/* Timeline Historique */
.history-section {
    background-color: var(--color-background);
    color: var(--text-color-primary);
}

.history-section a{
    color: var(--text-color-primary);
}

.history-section a:hover{
    text-decoration: underline;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* Ligne centrale de la timeline */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--color-accent);
    transform: translateX(-50%);
}

.dark-mode .timeline::before {
    background: var(--color-accent);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

/* Le point sur la ligne */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    top: 15px;
    border: 3px solid var(--color-surface); /* Bordure pour le contraste en mode sombre */
    z-index: 1;
}
.dark-mode .timeline-item::after {
    border-color: var(--color-background); 
}


.timeline-item:nth-child(odd)::after {
    right: -11px;
}

.timeline-item:nth-child(even)::after {
    left: -11px;
}

.timeline-item h4 {
    font-size: 1.1em;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 0.9em;
}

/* Responsive pour la page À Propos */
@media (max-width: 900px) {
    .mission-vision-section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .mission-vision-section .text-block {
        order: 2; /* Texte en bas */
    }
    .mission-vision-section .visual-block {
        order: 1; /* Image en haut */
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px; /* Déplacer la ligne à gauche */
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Augmenter l'espace à gauche */
        padding-right: 20px;
        text-align: left !important;
        left: 0 !important;
        border-right: none;
        border-left: none !important;
    }
    .timeline-item::after {
        left: 9px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
    }

    .timeline-item:nth-child(even)::after {
        left: 9px;
    }
}

/* --- 10. Styles Spécifiques à la Page "Membres" --- */

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
}

.member-grid {
    display: grid;
    /* Crée une grille de colonnes qui s'adaptent */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.member-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow-card);
    overflow: hidden; /* Important pour les bords de la photo */
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px); /* Effet de levage au survol */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.member-photo-container {
    width: 100%;
    /* Utilise un ratio d'aspect 4:3 pour toutes les photos (133% de la largeur) */
    padding-top: 75%; 
    position: relative;
    overflow: hidden;
}

.member-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que la photo remplit le conteneur et ne soit pas déformée */
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo {
    transform: scale(1.05); /* Zoom subtil au survol */
}

.member-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.member-info h4 {
    color: var(--color-accent);
    font-size: 1.4em;
    margin-bottom: 5px;
}

.member-role {
    font-style: italic;
    color: var(--color-gray-dark);
    margin-bottom: 15px;
    display: block; /* S'assure qu'il prend toute la ligne */
}

.dark-mode .member-role {
    color: #aaa;
}

.view-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: var(--color-primary); /* Utilise la couleur primaire ou accent */
}

.member-card:hover .view-profile {
    color: var(--color-accent);
}

.view-profile i {
    transition: transform 0.3s ease;
}

.member-card:hover .view-profile i {
    transform: translateX(5px);
}

/* --- 11. Styles Spécifiques à la Page "Événements" --- */

.events-hero-section {
    padding: 40px 0;
    text-align: center;
}

.events-hero-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

.upcoming-events-section h3, .past-events-section h3 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
    margin: 20px 0 30px 0;
}

/* --- Cartes Grands Événements (Upcoming) --- */
.event-card-large {
    display: flex;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow-card);
    overflow: hidden;
    margin-bottom: 40px;
}

.event-large-photo {
    width: 35%;
    height: auto;
    object-fit: cover;
    min-height: 250px;
}

.event-details-large {
    padding: 30px;
    flex: 1;
}

.event-details-large h4 {
    font-size: 1.6em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.event-date-location {
    display: flex;
    align-items: center;
    gap: 15px;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 500;
}

.event-date-location i {
    font-size: 1.1em;
}

.event-details-large p {
    margin-bottom: 20px;
}

.event-details-large .card-actions {
    margin-top: 25px;
    /* Utilisé ici pour aligner correctement les boutons */
    justify-content: flex-start; 
}


/* --- Rétrospective (Past Events) --- */
.past-events-section {
    padding-top: 20px;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.past-event-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow-card);
    padding: 20px;
    position: relative;
    transition: transform 0.2s ease;
}

.past-event-card:hover {
    transform: translateY(-3px);
}

.event-status {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-gray-dark);
    color: var(--color-text-light);
    padding: 5px 10px;
    border-radius: 0 0 var(--border-radius-main) 0;
    font-size: 0.8em;
    font-weight: bold;
}

.event-status.success {
    background-color: #4caf50; /* Vert pour Terminé */
}

.past-event-card h4 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.past-event-card-icon {
    margin: 15px 0;
}

.past-event-card-icon a {
    color: #ff0000; /* Couleur YouTube pour l'icône */
    font-weight: bold;
    font-size: 1.1em;
}

.date-archive {
    display: block;
    font-size: 0.9em;
    font-style: italic;
    color: var(--color-gray-dark);
    margin-top: 10px;
}

.dark-mode .date-archive {
    color: #aaa;
}


/* Responsive pour la page Événements */
@media (max-width: 900px) {
    .event-card-large {
        flex-direction: column;
    }
    .event-large-photo {
        width: 100%;
        height: 200px;
        min-height: 0;
    }
    .event-details-large {
        padding: 20px;
    }
    .event-details-large .card-actions {
        /* Recentrer les boutons sur mobile */
        justify-content: center; 
    }
}

/* --- 12. Styles Spécifiques à la Page "Contact & FAQ" --- */

.contact-hero-section {
    padding: 40px 0;
    text-align: center;
}

.faq-section h3, .direct-contact-section h3, .contact-form-section h3 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
    margin: 20px 0 30px 0;
}

/* --- Formulaire de Contact --- */
.contact-form-section {
    padding-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-accent);
}

/* Styles pour tous les champs de texte et textarea (visibilité maximale) */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    /* Bordure plus contrastée pour une meilleure visibilité */
    border: 1px solid var(--color-gray-dark); 
    border-radius: var(--border-radius-small);
    background-color: var(--color-background); 
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

/* Style spécifique au Dark Mode pour les champs */
.dark-mode .form-group input[type="text"],
.dark-mode .form-group input[type="email"],
.dark-mode .form-group textarea {
    border-color: #555; /* Bordure plus claire en mode sombre */
    background-color: var(--color-surface); /* Pour donner plus de contraste avec le fond principal */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-note-warning {
    text-align: center;
    font-style: italic;
    color: var(--color-gray-dark);
    margin-top: -10px;
    margin-bottom: 20px;
}
.dark-mode .form-note-warning {
    color: #aaa;
}

.full-width {
    width: 100%;
}

/* --- FAQ Accordion --- */
.faq-section {
    padding-bottom: 50px;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-hover-bg);
    border-radius: var(--border-radius-small);
}

.faq-question:hover {
    background-color: var(--color-accent-light);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    background-color: var(--color-surface);
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Ajustez selon le contenu max */
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
}

.faq-answer p a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- Cartes de contact direct (Grille) --- */
.direct-contact-section {
    padding-bottom: 80px;
}
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
}

.contact-card i {
    color: var(--color-accent);
    margin-bottom: 15px;
}


.contact-card h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact-card-discord {
    text-align: center;
    padding: 30px 20px;
}

.contact-card-discord i {
    color: var(--color-discord);
    margin-bottom: 15px;
}


.contact-card-discord h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact-detail {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: var(--color-gray-dark);
}

.dark-mode .contact-detail {
    color: #aaa;
}

.contact-card-discord .cta-button.discord {
    background-color: #5865F2; 
    border-color: #5865F2;
    color: white;
}

.contact-card-discord .cta-button.discord:hover {
    background-color: #404EED;
    border-color: #404EED;
}

/* --- 13. Styles pour les Alertes de Formulaire (send_mail.php) --- */
.alert-message {
    padding: 15px;
    border-radius: var(--border-radius-small);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.alert-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Styles pour le Dark Mode */
.dark-mode .alert-message.success {
    background-color: #1e452a;
    color: #72f28e;
    border-color: #2c5837;
}

.dark-mode .alert-message.error {
    background-color: #4f1d24;
    color: #f07d81;
    border-color: #632d34;
}

/* --- 14. Styles des Pages de Profil des Membres (membreX.html) --- */

.member-profile-section {
    padding-bottom: 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-large-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
}

.profile-header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.profile-role {
    font-size: 1.2em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-contact a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

.profile-contact a:hover {
    color: var(--color-primary);
}

.profile-bio {
    padding: 30px;
    margin-bottom: 40px;
}

.profile-bio h3 {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
}
.profile-bio h3:first-child {
    margin-top: 0;
}

/* Grille des événements participés */
.member-events-section h2 {
    margin-bottom: 30px;
}

.member-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.event-card-participated {
    text-align: center;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 3em;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.event-date {
    display: block;
    color: var(--color-gray-dark);
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.dark-mode .event-date {
    color: #aaa;
}

.member-role-event {
    display: block;
    margin: 15px 0 20px 0;
    font-weight: 600;
    color: var(--color-primary);
}

.cta-button2 {
    /* Style du bouton 2 pour les événements */
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid var(--color-accent);
    font-size: 0.9em;
}

.cta-button2:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverted);
}


/* Règle pour les petits écrans */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================= */
/* === PAGE 206RAID2027.HTML STYLES (NOUVEAU DESIGN) === */
/* ========================================= */



/* Ajustement pour les couleurs de liens/boutons selon le mode */
body.light-mode {
    --link-primary-color: var(--link-primary-color-light);
}

body.dark-mode {
    --link-primary-color: var(--link-primary-color-dark);
}

/* --- 1. Hero Banner (Bannière d'introduction) --- */
.event-hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../pictures/206raid-hero-bg.jpg') no-repeat center center / cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden; /* Pour que le border-radius s'applique au background */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.event-hero-banner h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #fff; /* Toujours blanc sur la bannière sombre */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-hero-banner .tagline {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.hero-stats .stat-item {
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
}

.hero-stats .stat-item i {
    color: var(--link-primary-color);
    margin-right: 10px;
    font-size: 1.3em;
}

.hero-cta {
    margin-top: 40px;
    font-size: 1.1em;
    padding: 15px 30px;
    background-color: var(--link-primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-cta:hover {
    background-color: darken(var(--link-primary-color), 10%); /* Ajuster pour le thème */
    filter: brightness(1.1); /* Légèrement plus lumineux */
}

/* --- 2. Styles Génériques pour les Sections de Cartes --- */
.section-title-centered {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 15px;
    color: var(--text-color-primary);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-color-secondary);
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-left: 2%;
}

/* Animation et style de base des cartes */
.card-animate {
    background-color: var(--background-color-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-color); /* Utilisation de la variable globale */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Important pour aligner les cartes dans une grille */
}

.card-animate:hover {
    transform: translateY(-5px) scale(var(--card-hover-scale));
    box-shadow: var(--card-shadow-hover);
}

/* --- 3. Section Overview (Présentation) --- */
.description-overview {
    margin-top: -80px; /* Chevauche la bannière pour un effet moderne */
    position: relative;
    z-index: 1; /* Pour être au-dessus du hero banner si besoin */
}

.overview-card h2 {
    color: var(--link-primary-color);
    margin-top: 0;
    font-size: 1.8em;
}
.overview-card p {
    line-height: 1.6;
}

/* --- 4. Section Objectives (3 Piliers) --- */
.objective-card {
    text-align: center;
}

.objective-card .icon-large {
    font-size: 3.5em;
    color: var(--link-primary-color);
    margin-bottom: 20px;
}

.objective-card h3 {
    font-size: 1.5em;
    color: var(--text-color-primary);
    margin-bottom: 15px;
}

/* --- 5. Section Humanitarian Impact (3 cartes d'impact) --- */
.impact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.impact-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.impact-card .impact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.impact-card i {
    color: var(--link-primary-color);
    font-size: 2.5em; /* Ajusté */
}

.impact-card h4 {
    margin: 0;
    font-size: 1.3em;
    color: var(--text-color-primary);
}


/* --- 6. Section Budget Breakdown (6 cartes de budget) --- */
.budget-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.budget-card {
    display: flex;
    flex-direction: column;
}

.budget-card h3 {
    font-size: 1.3em;
    color: var(--text-color-primary);
    margin-bottom: 10px;
}

.budget-card h3 i {
    color: var(--link-primary-color);
    margin-right: 10px;
}

.budget-card .budget-amount {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--link-primary-color);
    margin-top: 10px;
    margin-bottom: 20px;
}

.budget-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: auto; /* Pousse les éléments vers le bas si la carte s'allonge */
}

.budget-card ul li {
    margin-bottom: 8px;
    padding-left: 1.2em;
    position: relative;
    color: var(--text-color-secondary);
    font-size: 0.95em;
}

.budget-card ul li::before {
    content: "•";
    color: var(--link-primary-color); 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.total-budget {
    background-color: var(--link-primary-color); /* Couleur distinctive pour le total */
    color: #fff;
    text-align: center;
    border: none;
}

.total-budget h3, .total-budget p, .total-budget i {
    color: #fff !important; /* Force le texte et les icônes en blanc */
}
.total-budget .budget-amount {
    color: #fff !important; /* Le montant reste blanc */
    font-size: 2em;
}

/* --- 7. Section Sponsoring CTA --- */
.sponsoring-cta-section {
    text-align: center;
    background-color: var(--background-color-tertiary);
    border-radius: var(--border-radius);
    padding: 50px 30px;
    margin-top: 60px;
}

.sponsoring-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.benefit-card {
    text-align: center;
    border-left: 5px solid var(--link-primary-color);
}

.benefit-card i {
    color: var(--link-primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    color: var(--text-color-primary);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.cta-link-cagnotte {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: var(--border-radius-main);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.cta-link-cagnotte:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    transform: translateY(-2px); /* Effet de levage */
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.2);
}


.cta-action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.cta-action-buttons .cta-button {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-action-buttons .primary-button {
    background-color: var(--link-primary-color);
    color: #fff;
}

.cta-action-buttons .primary-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.cta-action-buttons .secondary-button {
    background-color: var(--background-color-secondary);
    color: var(--link-primary-color);
    border: 1px solid var(--link-primary-color);
}

.cta-action-buttons .secondary-button:hover {
    background-color: var(--link-primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.sponsorship-reminder {
    margin-top: 30px;
    font-style: italic;
    color: var(--text-color-secondary);
    font-size: 0.95em;
}

.sponsorship-reminder a {
    color: var(--link-primary-color);
    text-decoration: none;
}
.sponsorship-reminder a:hover {
    text-decoration: underline;
}

/* --- Réactivité Générale --- */
@media (max-width: 768px) {
    .event-hero-banner {
        padding: 60px 15px;
    }
    .event-hero-banner h1 {
        font-size: 2.2em;
    }
    .event-hero-banner .tagline {
        font-size: 1.1em;
    }
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    .hero-stats .stat-item {
        width: 100%;
        justify-content: center;
    }
    .description-overview {
        margin-top: -60px;
    }
    .container-grid, .impact-cards-grid, .budget-cards-grid, .sponsoring-benefits-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 25px;
    }
    .section-title-centered {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 1em;
    }
    .sponsoring-cta-section {
        padding: 30px 15px;
    }
    .cta-action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .cta-action-buttons .cta-button {
        width: 100%;
        max-width: 300px; /* Limite la largeur des boutons */
    }
}

@media (max-width: 480px) {
    .event-hero-banner h1 {
        font-size: 1.8em;
    }
    .event-hero-banner .tagline {
        font-size: 1em;
    }
}

/* ========================================= */
/* === STYLES POUR HEADER ET SCROLL-TO-TOP (Couleurs ajustées) === */
/* ========================================= */



/* --- Bouton Scroll-to-Top --- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    padding: 15px 20px;
    /* Utilisation de la couleur primaire pour le fond du bouton */
    background-color: var(--color-primary); 
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1.2em;
    line-height: 0;
}

#scrollToTopBtn:hover {
    /* L'effet de survol utilise un filtre pour éclaircir/assombrir la couleur primaire */
    filter: brightness(1.1);
    transform: translateY(-2px);
}

