/*
===============================================
    AMAL - Association Website Stylesheet
    Version modernisée avec design contemporain
    Feuille de style améliorée 2024
===============================================
*/

/* ====================================
   1. CSS CUSTOM PROPERTIES (Variables)
   ==================================== */

:root {
    /* Couleurs primaires modernisées */
    --color-primary: #4F46E5;
    --color-primary-dark: #4338CA;
    --color-primary-light: #6366F1;
    --color-secondary: #8B5CF6;
    --color-accent: #06B6D4;

    /* Couleurs par pilier */
    --color-solidarity: #10B981;
    --color-solidarity-dark: #059669;
    --color-development: #F59E0B;
    --color-development-dark: #D97706;
    --color-knowledge: #3B82F6;
    --color-knowledge-dark: #2563EB;

    /* Couleurs neutres */
    --color-background: #F8FAFC;
    --color-background-alt: #E2E8F0;
    --color-surface: #FFFFFF;
    --color-text-primary: #1E293B;
    --color-text-secondary: #64748B;
    --color-text-tertiary: #94A3B8;
    --color-border: rgba(148, 163, 184, 0.2);

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Rayons de bordure */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(79, 70, 229, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   2. RESET & BASE STYLES
   ==================================== */

/* Reset universel pour une cohérence cross-browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base du body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 100%);
    min-height: 100vh;
    font-size: 1.0625rem;
    position: relative;
}

/* Pattern subtil en arrière-plan du body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text-primary);
}

/* Conteneur principal pour la largeur max */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   3. HEADER & NAVIGATION
   ==================================== */

/* En-tête avec effet glassmorphism renforcé */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Barre de navigation responsive */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

/* Logo de l'association */
.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

/* Menu de navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

/* Effet de soulignement au survol */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Bouton de changement de langue */
.language-toggle {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Bouton Contact dans la navigation */
.contact-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Menu mobile hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   4. HERO SECTION
   ==================================== */

/* Section héro avec gradient amélioré et formes animées */
.hero {
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.95) 0%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(6, 182, 212, 0.85) 100%
    );
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Effet de formes géométriques animées en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -150px;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: -100px;
    left: -100px;
    animation: morph 15s infinite ease-in-out alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo hero */
.hero-logo {
    flex: 0 0 auto;
    max-width: 35%;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    max-height: clamp(150px, 20vw, 380px);
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: fadeInLeft 1s ease;
}

/* Conteneur du texte hero */
.hero-text {
    flex: 1;
    text-align: left;
}

/* Ajuster l'alignement du texte pour la nouvelle disposition */
.hero-text h1,
.hero-text p,
.hero-text .cta-button {
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Bouton d'appel à l'action avec effet de brillance */
.cta-button {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(79, 70, 229, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ====================================
   5. MAIN CONTENT & SECTIONS
   ==================================== */

/* Conteneur principal avec fond blanc */
main {
    background: var(--color-surface);
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Styles de sections génériques */
.section {
    padding: var(--spacing-2xl) 0;
}

.section:nth-child(even) {
    background: var(--color-background);
}

/* Titres de sections avec effet de soulignement */
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* ====================================
   6. CARDS LAYOUT - Design Moderne
   ==================================== */

/* Grille de cartes responsive */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Carte individuelle avec design moderne */
.card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

/* Gradient subtil au survol */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.03),
        rgba(139, 92, 246, 0.02)
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        var(--shadow-xl),
        0 10px 20px rgba(139, 92, 246, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Icônes des cartes avec couleurs différenciées */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Solidarité - Vert */
#about .card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, var(--color-solidarity), var(--color-solidarity-dark));
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

#about .card:nth-child(1):hover .card-icon {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Développement - Ambre */
#about .card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, var(--color-development), var(--color-development-dark));
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

#about .card:nth-child(2):hover .card-icon {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Savoir - Bleu */
#about .card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, var(--color-knowledge), var(--color-knowledge-dark));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#about .card:nth-child(3):hover .card-icon {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ====================================
   7. NEWS CAROUSEL - Design Amélioré
   ==================================== */

/* Conteneur du carrousel d'actualités */
.news-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 60px;
}

.news-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: opacity 0.15s ease;
}

.news-carousel.fade {
    opacity: 0.3;
}

/* Carte d'actualité modernisée */
.news-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.news-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(79, 70, 229, 0.15),
        0 12px 24px rgba(139, 92, 246, 0.1);
}

/* Conteneur d'image de l'actualité */
.news-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Overlay au survol */
.news-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.news-card:hover .news-image-container::after {
    opacity: 1;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

/* Placeholder pour image manquante */
.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Badge de date amélioré */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.news-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

/* Contenu de la carte d'actualité */
.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.3;
    font-weight: 600;
}

.news-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Lien "Lire la suite" amélioré */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    align-self: flex-start;
}

.read-more::after {
    content: '→';
    transition: transform var(--transition-base);
}

.read-more:hover {
    color: var(--color-primary-dark);
    gap: 0.8rem;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ====================================
   8. CAROUSEL NAVIGATION
   ==================================== */

/* Boutons de navigation du carrousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    font-size: 1.5rem;
    color: var(--color-primary);
    z-index: 100;
}

.carousel-nav:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Indicateurs de pagination */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.indicator.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

.indicator:hover {
    background: var(--color-primary);
    opacity: 0.7;
}

/* ====================================
   9. MODAL
   ==================================== */

/* Overlay de la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
    overflow-y: auto;
}

/* Contenu de la modal */
.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideInModal 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

/* Bouton de fermeture */
.close {
    color: #aaa;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-base);
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #4F46E5;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6 {
    color: #111827 !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem;
    opacity: 1 !important;
}

.modal-content h1 {
    font-size: 2.25rem;
}

.modal-content h2 {
    font-size: 2rem;
}

.modal-content h3 {
    font-size: 1.75rem;
}

.modal-content h4 {
    font-size: 1.5rem;
}

.modal-content h5 {
    font-size: 1.25rem;
}

.modal-content h6 {
    font-size: 1.125rem;
}

.modal-content p,
.modal-content ul {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content ul {
    padding-left: 2rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* ====================================
   10. CONTACT MODAL
   ==================================== */

.contact-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-background);
}

.contact-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

.contact-modal-header h2 {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.contact-modal-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Informations de contact dans la modal */
.contact-info-modal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item-modal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-background);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.contact-item-modal:hover {
    background: var(--color-background-alt);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-modal h3 {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.contact-item-modal p,
.contact-item-modal a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.contact-item-modal a {
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-item-modal a:hover {
    color: var(--color-primary);
}

/* Formulaire de contact */
.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.button-icon {
    font-size: 1.3rem;
}

/* ====================================
   11. FOOTER
   ==================================== */

footer,
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: white;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 1rem;
    opacity: 1 !important;
}

.footer-text {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* ====================================
   12. SCROLL TO TOP BUTTON
   ==================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

/* ====================================
   13. RTL SUPPORT (Right-to-Left)
   ==================================== */

[dir="rtl"] {
    font-family: 'Cairo', 'Amiri', 'Times New Roman', serif;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .news-date {
    right: auto;
    left: 15px;
}

[dir="rtl"] .close {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .read-more::after {
    content: '←';
}

[dir="rtl"] .contact-item-modal:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

/* ====================================
   14. ANIMATIONS
   ==================================== */

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   15. RESPONSIVE DESIGN
   ==================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .news-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero::before,
    .hero::after {
        opacity: 0.5;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a,
    .contact-button {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Hero ajusté */
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Hero logo responsive - Stack vertical */
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-logo {
        max-width: 60%;
    }

    .hero-logo-img {
        max-height: 150px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1,
    .hero-text p,
    .hero-text .cta-button {
        text-align: center;
    }

    /* Sections ajustées */
    .section {
        padding: 2rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    /* Cartes en colonne unique */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* Carrousel mobile */
    .news-carousel-container {
        padding: 0 50px;
    }

    .news-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Modal mobile */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .modal-image {
        height: 200px;
    }

    .close {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Hero logo pour petits mobiles */
    .hero-logo {
        max-width: 80%;
    }

    .hero-logo-img {
        max-height: 120px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Navigation mobile */
    .navbar .container {
        padding: 0 1rem;
    }

    .nav-content {
        min-height: 60px;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.125rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Footer */
    footer,
    .footer {
        padding: var(--spacing-lg) 0;
        margin-top: 2rem;
    }

    .footer-content {
        gap: var(--spacing-md);
        grid-template-columns: 1fr;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-text,
    .footer-links a {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        font-size: 0.8125rem;
        padding-top: var(--spacing-md);
    }
}

/* ====================================
   16. DARK MODE SUPPORT
   ==================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #1E293B;
        --color-background-alt: #0F172A;
        --color-surface: #1E293B;
        --color-text-primary: #F1F5F9;
        --color-text-secondary: #CBD5E1;
        --color-text-tertiary: #94A3B8;
        --color-border: rgba(148, 163, 184, 0.3);
    }

    body {
        background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    }

    body::before {
        background-image:
            radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    }

    header {
        background: rgba(30, 41, 59, 0.8);
        border-bottom-color: rgba(79, 70, 229, 0.3);
    }

    .card {
        background: #1E293B;
        border-color: rgba(148, 163, 184, 0.2);
    }

    .news-card {
        background: #1E293B;
        border-color: rgba(148, 163, 184, 0.2);
    }

    .modal-content {
        background: #1E293B;
    }

    .form-group input,
    .form-group textarea {
        background: #0F172A;
        border-color: rgba(148, 163, 184, 0.3);
        color: var(--color-text-primary);
    }

    .contact-item-modal {
        background: #0F172A;
    }

    .contact-item-modal:hover {
        background: #1E293B;
    }
}

/* ====================================
   17. ACCESSIBILITY IMPROVEMENTS
   ==================================== */

/* Focus visible pour l'accessibilité au clavier */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Mouvement réduit pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Amélioration de la lisibilité */
p, li {
    max-width: 75ch;
}

/* Taille minimale des zones tactiles (44x44px) */
button,
a,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Amélioration du contraste pour les liens */
a {
    text-decoration-skip-ink: auto;
}

/* ====================================
   18. PRINT STYLES
   ==================================== */

@media print {
    header,
    .mobile-menu-toggle,
    .language-toggle,
    .carousel-nav,
    .carousel-indicators,
    .scroll-to-top,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: none;
        color: black;
    }

    .card,
    .news-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ====================================
   STYLES POUR L'AUTHENTIFICATION
   ==================================== */

/* Bouton de connexion dans la navigation */
.login-button {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    text-decoration: none;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Bouton de déconnexion dans la navigation */
.logout-button {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    vertical-align: middle;
}

.logout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.logout-button:hover::before {
    left: 100%;
}

.logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .login-button,
    .logout-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ====================================
   FORM VALIDATION STYLES
   ==================================== */

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   BUTTON LOADING STATE
   ==================================== */

.submit-button {
    position: relative;
    transition: all 0.3s;
}

.submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-button.loading .button-icon {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   FORM STATUS MESSAGE
   ==================================== */

.form-status {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====================================
   RTL SUPPORT FOR FORMS
   ==================================== */

[dir="rtl"] .error-message {
    padding-left: 0;
    padding-right: 0.5rem;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

/* ====================================
   DEMO MODE ALERT
   ==================================== */

.demo-mode-alert {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    max-width: 600px;
    width: 90%;
    animation: slideDown 0.3s ease-out;
}

.demo-mode-alert .alert-content {
    background: linear-gradient(135deg, #fff3cd 0%, #fffbeb 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.demo-mode-alert .alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.demo-mode-alert .alert-text {
    flex: 1;
}

.demo-mode-alert .alert-text strong {
    display: block;
    color: #92400e;
    font-size: 16px;
    margin-bottom: 4px;
}

.demo-mode-alert .alert-text p {
    color: #78350f;
    font-size: 14px;
    margin: 0;
}

.demo-mode-alert .alert-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #92400e;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.demo-mode-alert .alert-close:hover {
    background: rgba(146, 64, 14, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .demo-mode-alert {
        top: 70px;
        width: 95%;
    }

    .demo-mode-alert .alert-content {
        padding: 12px 16px;
    }

    .demo-mode-alert .alert-text strong {
        font-size: 14px;
    }

    .demo-mode-alert .alert-text p {
        font-size: 12px;
    }
}

/* ====================================
   MODAL D'ACTUALITÉS / PROJETS
   ==================================== */
.news-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.news-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.news-modal-date,
.news-modal-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-modal-text {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.news-modal-text p {
    margin-bottom: 1rem;
}

.news-modal-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive pour modal d'actualités */
@media (max-width: 768px) {
    .news-modal-image {
        height: 200px;
    }

    .news-modal-title {
        font-size: 1.4rem;
    }

    .news-modal-meta {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ====================================
   ÉVÉNEMENTS COMPONENTS STYLES
   ==================================== */

/* Event Cards Grid - FOR HOMEPAGE */
.homepage-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .homepage-events-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Event Card - FOR HOMEPAGE ONLY */
.homepage-events-grid .event-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.homepage-events-grid .event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.homepage-events-grid .event-card-header {
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.homepage-events-grid .event-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.homepage-events-grid .event-badge-upcoming {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-solidarity);
}

.homepage-events-grid .event-badge-past {
    background-color: rgba(100, 116, 139, 0.1);
    color: var(--color-text-secondary);
}

.homepage-events-grid .event-association {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.homepage-events-grid .association-logo-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.homepage-events-grid .association-name {
    font-weight: 500;
}

.homepage-events-grid .event-card-body {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.homepage-events-grid .event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.homepage-events-grid .event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.homepage-events-grid .event-date,
.homepage-events-grid .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.homepage-events-grid .event-date .icon,
.homepage-events-grid .event-location .icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.homepage-events-grid .event-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.homepage-events-grid .event-card-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.homepage-events-grid .event-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
}

.homepage-events-grid .event-details-btn:hover {
    color: var(--color-primary-dark);
    gap: 0.75rem;
}

.homepage-events-grid .event-details-btn .icon {
    transition: transform 0.2s ease;
}

.homepage-events-grid .event-details-btn:hover .icon {
    transform: translateX(3px);
}

/* Events Actions */
.events-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Override button styles for homepage events section */
.events-actions .btn-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: 2px solid #d1d5db;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.events-actions .btn-secondary svg {
    color: #374151;
}

.events-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

.events-actions .btn-secondary:hover svg {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .events-actions {
        flex-direction: column;
    }

    .events-actions .btn-primary,
    .events-actions .btn-secondary {
        width: 100%;
    }
}

/* Events Loading */
.events-loading {
    text-align: center;
    padding: var(--spacing-2xl);
}

.events-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.events-loading p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* ====================================
   BOUTONS "VOIR TOUS" - STYLE UNIFIÉ CLAIR
   ==================================== */

/* Style pour le bouton "Voir tous les projets" */
.view-all-projects-btn {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    color: var(--color-primary) !important;
    border: 2px solid rgba(79, 70, 229, 0.2) !important;
    padding: 0.875rem 1.75rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-base) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

/* Le texte à l'intérieur hérite du style parent */
.view-all-projects-btn #viewAllProjectsText {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
    display: inline !important;
}

.view-all-projects-btn svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.view-all-projects-btn:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

/* Style unifié pour le bouton "Voir tous les événements" */
#viewAllEventsBtn {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    color: var(--color-primary) !important;
    border: 2px solid rgba(79, 70, 229, 0.2) !important;
    padding: 0.875rem 1.75rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-base) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
}

#viewAllEventsBtn svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

#viewAllEventsBtn:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

/* Responsive pour les boutons "Voir tous" */
@media (max-width: 768px) {
    .view-all-projects-btn,
    #viewAllEventsBtn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }
}

@media (max-width: 480px) {
    .view-all-projects-btn,
    #viewAllEventsBtn {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
        width: 100%;
        justify-content: center;
    }
}

/* Events Error */
.events-error {
    text-align: center;
    padding: var(--spacing-2xl);
    background-color: rgba(239, 68, 68, 0.05);
    border-radius: var(--radius-md);
}

.events-error p {
    color: #DC2626;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

/* Events Message (No events, upcoming soon, etc.) */
.events-message {
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
}

.events-message .icon-large {
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--spacing-md);
}

.events-message p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.events-note {
    margin-top: var(--spacing-md);
}

.events-note .events-message {
    padding: var(--spacing-md);
    font-size: 0.95rem;
}

/* Event Modal Styles */
.event-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.event-modal-header {
    margin-bottom: 1.5rem;
}

.event-modal-status {
    margin-bottom: 1rem;
}

/* Event badges in modal */
.event-modal-status .event-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
}

.event-modal-status .event-badge-upcoming {
    background-color: #10b981;
    color: #ffffff;
}

.event-modal-status .event-badge-past {
    background-color: #6b7280;
    color: #ffffff;
}

.event-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

.event-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.event-modal-date,
.event-modal-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.event-modal-date .icon,
.event-modal-location .icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.event-modal-association {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
}

.association-logo-modal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.event-modal-association .association-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.event-modal-content-body {
    padding: 1.5rem 0;
}

.event-modal-content-body .event-modal-content {
    color: #374151 !important;
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* S'assurer que TOUS les éléments HTML sont visibles */
.event-modal-content-body .event-modal-content *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(strong):not(b) {
    color: #374151 !important;
    opacity: 1 !important;
}

.event-modal-content-body .event-modal-content p {
    margin-bottom: 1.5rem;
    color: #374151 !important;
    opacity: 1 !important;
}

.event-modal-content-body .event-modal-content div {
    color: #374151 !important;
    opacity: 1 !important;
    margin-bottom: 0.5rem;
}

.event-modal-content-body .event-modal-content span {
    color: #374151 !important;
    opacity: 1 !important;
}

.event-modal-content-body .event-modal-content h1,
.event-modal-content-body .event-modal-content h2,
.event-modal-content-body .event-modal-content h3,
.event-modal-content-body .event-modal-content h4,
.event-modal-content-body .event-modal-content h5,
.event-modal-content-body .event-modal-content h6 {
    color: #111827 !important;
    font-weight: 700 !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    opacity: 1 !important;
    line-height: 1.4;
}

/* Tailles de police par défaut (peuvent être écrasées par styles inline) */
.event-modal-content-body .event-modal-content h1 {
    font-size: 1.75rem;
}

.event-modal-content-body .event-modal-content h2 {
    font-size: 1.5rem;
}

.event-modal-content-body .event-modal-content h3 {
    font-size: 1.25rem;
}

.event-modal-content-body .event-modal-content h4 {
    font-size: 1.125rem;
}

.event-modal-content-body .event-modal-content h5 {
    font-size: 1.0625rem;
}

.event-modal-content-body .event-modal-content h6 {
    font-size: 1rem;
}

.event-modal-content-body .event-modal-content ul,
.event-modal-content-body .event-modal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #374151;
}

.event-modal-content-body .event-modal-content li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.event-modal-content-body .event-modal-content strong {
    color: #111827;
    font-weight: 700;
}

.event-modal-content-body .event-modal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Responsive pour event modal */
@media (max-width: 768px) {
    .event-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: var(--spacing-md);
        margin: 2.5vh auto;
        overflow-y: auto;
    }

    .event-modal-title {
        font-size: 1.25rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .event-modal-meta {
        flex-direction: column;
        gap: 8px;
    }

    .event-modal-meta {
        padding: var(--spacing-sm);
    }

    .association-logo-modal {
        width: 36px;
        height: 36px;
    }
}

/* ====================================
   NAVBAR - Navigation pour pages modernes
   ==================================== */

.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    gap: 2rem;
}

.nav-logo {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.nav-logo:hover {
    color: var(--color-primary-dark);
}

.logo-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.language-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.current-lang {
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation hamburger vers X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ====================================
   EVENTS PAGE - Historique des événements
   ==================================== */

/* Hero Section */
.events-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.events-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.events-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.events-hero .hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Filters Section */
.events-filters-section {
    padding: 2rem 0;
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.filters-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 2px solid #e5e7eb;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--color-background);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Filters Row */
.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.filter-select:hover {
    border-color: #6366f1;
    background: #f9fafb;
}

.filter-select:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    color: #111827;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Stats */
.events-stats {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 2px solid #e5e7eb;
}

.stats-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.stats-text strong {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

#filterInfo {
    font-style: italic;
    color: var(--color-text-tertiary);
}

/* Events Grid Section */
.events-grid-section {
    padding: 2rem 0 4rem;
    background: #f3f4f6;
}

/* States - Loading, Empty, Error */
.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
}

.loading-state {
    min-height: 300px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.error-state p {
    color: #EF4444;
    margin-bottom: 1rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Event Card - ONLY for events.html page (scoped to .events-grid) */
.events-grid .event-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #e5e7eb;
}

.events-grid .event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

/* Event Title - same style as homepage */
.events-grid .event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

/* Card Date Badge */
.events-grid .event-card-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    min-width: 60px;
    z-index: 2;
}

.events-grid .event-date-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.events-grid .event-date-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Card Status */
.events-grid .event-card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 2;
}

.events-grid .event-card-status.status-upcoming {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.events-grid .event-card-status.status-past {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
}

/* Card Content */
.events-grid .event-card-content {
    padding: 5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.events-grid .event-card-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.events-grid .event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.events-grid .event-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.events-grid .event-card-meta .meta-item svg {
    flex-shrink: 0;
    opacity: 1;
    color: var(--color-primary);
}

.events-grid .event-card-description {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.9375rem;
}

/* Card Footer */
.events-grid .event-card-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

.events-grid .event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.events-grid .event-card:hover .event-card-link {
    gap: 0.75rem;
}

.events-grid .event-card-link svg {
    transition: transform var(--transition-fast);
}

.events-grid .event-card:hover .event-card-link svg {
    transform: translateX(4px);
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-pagination {
    padding: 0.625rem 1rem;
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 44px;
    justify-content: center;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--color-primary-light);
    color: white;
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-pagination.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-pagination:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--color-text-tertiary);
}

/* Responsive Events Page */
@media (max-width: 768px) {
    .events-hero {
        padding: 3rem 0 2rem;
    }

    .events-hero .hero-title {
        font-size: 2rem;
    }

    .events-hero .hero-description {
        font-size: 1rem;
    }

    .filters-container {
        padding: 1.5rem;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn-pagination {
        min-width: 40px;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .btn-pagination:first-child,
    .btn-pagination:last-child {
        flex-shrink: 0;
    }
}

/* Responsive Events Page - Mobile Optimization (480px) */
@media (max-width: 480px) {
    /* Hero Events */
    .events-hero {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }

    .events-hero .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .events-hero .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Filters Section */
    .events-filters-section {
        padding: 1.5rem 0;
    }

    .filters-container {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .search-box {
        max-width: 100%;
    }

    .search-box input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.875rem;
    }

    .search-icon {
        width: 18px;
        height: 18px;
        left: 0.875rem;
    }

    .filters-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .filter-label {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .filter-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .btn-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
        width: 100%;
    }

    /* Events Stats */
    .events-stats {
        margin-top: 1rem;
    }

    .stats-text {
        font-size: 0.875rem;
    }

    /* Events Grid Section */
    .events-grid-section {
        padding: 1.5rem 0 3rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Event Cards */
    .events-grid .event-card {
        border-width: 1px;
    }

    .events-grid .event-card-date {
        min-width: 50px;
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem;
    }

    .events-grid .event-date-day {
        font-size: 1.5rem;
    }

    .events-grid .event-date-month {
        font-size: 0.625rem;
    }

    .events-grid .event-card-status {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }

    .events-grid .event-card-content {
        padding: 3.5rem 1rem 1rem;
    }

    .events-grid .event-card-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .events-grid .event-card-meta {
        font-size: 0.8125rem;
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }

    .events-grid .event-card-meta .meta-item {
        gap: 0.375rem;
    }

    .events-grid .event-card-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .events-grid .event-card-footer {
        padding: 0.75rem 1rem;
    }

    .events-grid .event-card-link {
        font-size: 0.875rem;
    }

    /* Event Modal Mobile */
    .event-modal-content {
        max-width: 100vw;
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .event-modal-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .event-modal-meta {
        padding: 1rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .event-modal-date,
    .event-modal-location {
        font-size: 0.9375rem;
        gap: 0.5rem;
    }

    .event-modal-association {
        padding: 1rem;
        gap: 0.75rem;
    }

    .association-logo-modal {
        width: 36px;
        height: 36px;
    }

    .event-modal-association .association-name {
        font-size: 1rem;
    }

    .event-modal-content-body {
        padding: 1rem 0;
    }

    .event-modal-content-body .event-modal-content {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .event-modal-content-body .event-modal-content h1 {
        font-size: 1.5rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .event-modal-content-body .event-modal-content h2 {
        font-size: 1.25rem;
        margin-top: 1rem;
        margin-bottom: 0.625rem;
    }

    .event-modal-content-body .event-modal-content h3 {
        font-size: 1.125rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .event-modal-content-body .event-modal-content p {
        margin-bottom: 1rem;
    }

    .event-modal-content-body .event-modal-content ul,
    .event-modal-content-body .event-modal-content ol {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Close button for modal */
    .close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Pagination */
    .pagination-container {
        margin-top: 2rem;
    }

    .btn-pagination {
        min-width: 36px;
        height: 36px;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }

    .pagination-ellipsis {
        padding: 0 0.25rem;
    }

    /* Loading, Empty & Error States */
    .loading-state,
    .empty-state,
    .error-state {
        padding: 3rem 1.5rem;
    }

    .loading-state .spinner {
        width: 40px;
        height: 40px;
    }

    .empty-state h3 {
        font-size: 1.125rem;
    }

    .empty-state p {
        font-size: 0.875rem;
    }
}

/* ====================================
   PROJECTS PAGE STYLES
   ==================================== */

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Project Card Styles */
.projects-grid .project-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.projects-grid .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

/* Project Card Image */
.projects-grid .project-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.projects-grid .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projects-grid .project-card:hover .project-card-image img {
    transform: scale(1.05);
}

/* Project Card Body */
.projects-grid .project-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Project Card Header */
.projects-grid .project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.projects-grid .project-association {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex: 1;
}

.projects-grid .project-association .icon {
    flex-shrink: 0;
}

.projects-grid .association-name {
    font-weight: 600;
    color: #374151;
}

/* Project Badge */
.project-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-badge-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.project-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.project-badge-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Project Title */
.projects-grid .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Project Description */
.projects-grid .project-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1rem;
    flex: 1;
}

/* Project Meta */
.projects-grid .project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.projects-grid .project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.projects-grid .project-meta-item .icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.projects-grid .project-meta-item .category-icon {
    font-size: 1.25rem;
}

/* Project Card Footer */
.projects-grid .project-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.projects-grid .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.projects-grid .btn-link:hover {
    color: #1d4ed8;
    gap: 0.75rem;
}

.projects-grid .btn-link .icon {
    transition: transform 0.2s ease;
}

.projects-grid .btn-link:hover .icon {
    transform: translateX(4px);
}

/* Project Modal Specific Styles */
.project-modal-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.project-modal-association,
.project-modal-budget,
.project-modal-dates,
.project-modal-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.project-modal-association .icon,
.project-modal-budget .icon,
.project-modal-dates .icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.project-modal-association div,
.project-modal-budget div,
.project-modal-dates div,
.project-modal-category div {
    flex: 1;
}

.project-modal-association strong,
.project-modal-budget strong,
.project-modal-dates strong,
.project-modal-category strong {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.project-modal-association span,
.project-modal-budget span,
.project-modal-dates span,
.project-modal-category span {
    display: block;
    font-size: 1rem;
    color: #111827;
    font-weight: 600;
}

.project-modal-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.project-modal-category .category-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Project Image Gallery in Modal */
.project-image-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-image-container {
    position: relative;
    flex: 1;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-nav {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.gallery-nav:hover svg {
    stroke: white;
}

.gallery-nav:active {
    transform: scale(0.95);
}

.gallery-nav svg {
    stroke: #374151;
    transition: stroke 0.2s ease;
}

/* Responsive adjustments for project cards */
@media (max-width: 640px) {
    .projects-grid .project-card-body {
        padding: 1.25rem;
    }

    .projects-grid .project-title {
        font-size: 1.125rem;
    }

    .projects-grid .project-card-footer {
        padding: 0.875rem 1.25rem;
    }

    .projects-grid .project-meta {
        font-size: 0.8125rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-counter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}
