        .events-header {
            padding-top: 120px;
            text-align: center;
            padding-bottom: 40px;
            background-color: #f8f9fa;
        }

        .events-header h1 {
            color: #1d396a;
            font-size: 36px;
            margin-bottom: 15px;
        }

        .events-header p {
            color: #555;
            font-size: 18px;
        }

        .events-container {
            max-width: 1000px;
            margin: 40px auto 80px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .event-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        /* Barre de couleur selon le type d'événement */
        .event-type-bar {
            height: 6px;
            width: 100%;
        }
        .type-match { background-color: #e74c3c; } /* Rouge pour les matchs */
        .type-entrainement { background-color: #3498db; } /* Bleu pour les entrainements */
        .type-tournoi { background-color: #f1c40f; } /* Jaune pour les tournois */
        .type-festif { background-color: #9b59b6; } /* Violet pour les soirées */

        .event-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .event-date-box {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .date-badge {
            background-color: #1d396a;
            color: white;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            min-width: 65px;
        }

        .date-badge .day {
            font-size: 24px;
            font-weight: bold;
            line-height: 1;
        }

        .date-badge .month {
            font-size: 12px;
            text-transform: uppercase;
            margin-top: 5px;
        }

        .date-info {
            color: #555;
            font-size: 14px;
        }

        .date-info i {
            width: 20px;
            color: #e67e22;
        }

        .event-title {
            font-size: 20px;
            color: #1d396a;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .event-desc {
            color: #666;
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .event-type-tag {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            align-self: flex-start;
        }

        .tag-match { background-color: #fadbd8; color: #c0392b; }
        .tag-entrainement { background-color: #d6eaf8; color: #2980b9; }
        .tag-tournoi { background-color: #fcf3cf; color: #d4ac0d; }
        .tag-festif { background-color: #ebdef0; color: #8e44ad; }

        /* Message quand il n'y a pas d'événement */
        .no-events {
            grid-column: 1 / -1;
            text-align: center;
            padding: 50px;
            color: #7f8c8d;
            font-style: italic;
            background: #f8f9fa;
            border-radius: 8px;
        }   

        .events-page-body {
            background-color: #f8f9fa;
        }

        .events-header {
            padding-top: 120px;
            text-align: center;
            padding-bottom: 40px;
            background-color: #ffffff;
            border-bottom: 1px solid #eaeaea;
        }

        .events-header h1 {
            color: #1d396a;
            font-size: 36px;
            margin-bottom: 15px;
        }

        .events-header p {
            color: #555;
            font-size: 18px;
        }

        .events-layout {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        /* --- FILTRES --- */
        .filters-container {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            margin-bottom: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }

        .filter-label {
            font-weight: bold;
            color: #1d396a;
            margin-right: 10px;
        }

        .filter-btn {
            background-color: #f0f4f8;
            border: 1px solid #dcdde1;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            color: #555;
            transition: all 0.2s ease;
        }

        .filter-btn:hover {
            background-color: #e2e8f0;
        }

        .filter-btn.active {
            background-color: #1d396a;
            color: white;
            border-color: #1d396a;
        }

        /* --- VUE CARTES A VENIR --- */
        .upcoming-section {
            margin-bottom: 50px;
        }
        
        .section-heading {
            color: #1d396a;
            font-size: 24px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between; /* Espace entre le titre et le bouton export */
            gap: 10px;
        }

        .heading-left { display: flex; align-items: center; gap: 10px; }

        .events-grid {
            display: flex;
            overflow-x: auto; /* Active le scroll horizontal */
            gap: 25px;
            padding-bottom: 20px;
            scroll-snap-type: x mandatory; /* Aimantation du scroll */
            scrollbar-width: thin; /* Esthétique de la barre */
        }

        .event-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            min-width: 320px; /* Taille fixe pour le scroll */
            max-width: 350px;
            flex: 0 0 auto;
            scroll-snap-align: start;
        }

        .event-card-header {
            padding: 15px 20px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* Couleurs par catégorie */
        .bg-match { background-color: #e74c3c; } /* Rouge */
        .bg-entrainement { background-color: #3498db; } /* Bleu */
        .bg-tournoi { background-color: #f1c40f; color: #333 !important;} /* Jaune */
        .bg-festif { background-color: #9b59b6; } /* Violet */

        .event-category-badge {
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            background: rgba(255,255,255,0.2);
            padding: 4px 10px;
            border-radius: 12px;
        }
        
        .event-team-badge {
            font-size: 12px;
            background: rgba(0,0,0,0.2);
            padding: 4px 10px;
            border-radius: 12px;
        }

        .event-card-body {
            padding: 20px;
            flex-grow: 1;
        }

        .event-date-large {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .date-square {
            background-color: #f8f9fa;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            min-width: 60px;
        }
        .date-square .day { font-size: 22px; font-weight: bold; color: #1d396a; line-height: 1; }
        .date-square .month { font-size: 12px; text-transform: uppercase; color: #666; margin-top: 4px;}

        .event-title {
            font-size: 18px;
            color: #1d396a;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .event-details {
            list-style: none;
            margin-bottom: 15px;
        }

        .event-details li {
            font-size: 14px;
            color: #555;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .event-details i { color: #e67e22; width: 16px; text-align: center;}

        .event-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        .export-btn {
            display: inline-block;
            width: 100%;
            text-align: center;
            background-color: #f0f4f8;
            color: #1d396a;
            text-decoration: none;
            padding: 10px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: bold;
            transition: background 0.2s;
            border: none;
            cursor: pointer;
        }
        
        .export-btn:hover {
            background-color: #e2e8f0;
        }

        .no-events {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 8px;
            color: #777;
            font-style: italic;
        }

        /* --- CALENDRIER --- */
        .calendar-section {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            margin-bottom: 60px;
        }

        #calendar {
            max-width: 100%;
        }
        
        /* Personnalisation légère de FullCalendar */
        .fc-theme-standard .fc-scrollgrid { border-color: #eaeaea; }
        .fc-theme-standard th { background-color: #f8f9fa; padding: 10px 0; color: #1d396a;}
        .fc-button-primary { background-color: #1d396a !important; border-color: #1d396a !important;}
        .fc-button-primary:hover { background-color: #2c4a7e !important; }
        .fc-button-active { background-color: #e67e22 !important; border-color: #e67e22 !important; }
        
        .fc-event {
            cursor: pointer;
            border: none !important;
            padding: 2px 4px;
            border-radius: 3px;
        }

        /* Modal pour afficher les détails du calendrier */
        #eventModal {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            position: relative;
        }
        
        .close-modal {
            position: absolute;
            top: 15px; right: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }
        .close-modal:hover { color: #333; }
        