        /* Styles spécifiques à la page */
        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        .event-card {
            background: var(--color-white);
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            overflow: hidden;
            transition: transform 0.3s;
            cursor: pointer;
        }
        .event-card:hover {
            transform: translateY(-5px);
        }
        .event-img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            background: #eee;
        }
        .event-content {
            padding: 1.5rem;
        }
        .event-date {
            color: var(--color-secondary);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        /* Petit Calendrier */
        .calendar-wrapper {
            background: #fff;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            margin-bottom: 3rem;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
        .calendar-header {
            text-align: center;
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--color-primary);
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            text-align: center;
        }
        .calendar-day-name {
            font-weight: bold;
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 0.5rem;
        }
        .calendar-day {
            padding: 10px 5px;
            border-radius: 4px;
            background: #f9f9f9;
            font-size: 0.9rem;
        }
        .calendar-day.has-event {
            background: var(--color-secondary);
            color: #fff;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.2s;
        }
        .calendar-day.has-event:hover {
            transform: scale(1.1);
        }
        .calendar-day.empty {
            background: transparent;
        }

        /* Modale */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }
        .modal-content {
            background: var(--color-white);
            padding: 2rem;
            border-radius: 8px;
            max-width: 600px;
            width: 90%;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }
        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1.5rem;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--color-primary);
            background: none;
            border: none;
            padding: 0.5rem;
        }
        .modal-desc-box {
            margin-top: 1.5rem; 
            line-height: 1.8;
        }
        .modal-footer {
            margin-top: 2rem; 
            text-align: center;
        }
        .alert-limit {
            color: #dc2626; 
            font-weight: bold; 
            font-size: 1.1rem; 
            padding: 10px; 
            background: #fef2f2; 
            border-radius: 5px; 
            display: inline-block;
        }

        /* Bouton Itinéraire Moderne */
.btn-route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espace entre l'icône et le texte */
    padding: 10px 20px;
    background-color: #f1f5f9; /* Gris très clair */
    color: #334155; /* Gris ardoise foncé pour le texte */
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #cbd5e1; /* Bordure subtile */
    transition: all 0.2s ease-in-out;
}

.btn-route:hover {
    background-color: #e2e8f0;
    color: #0f172a; /* Texte plus sombre au survol */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.icon-route {
    width: 18px;
    height: 18px;
}

/* Style pour les événements passés */
.event-card.is-past {
    opacity: 0.65;
    background-color: #f8fafc;
    filter: grayscale(100%);
    transition: filter 0.3s, opacity 0.3s;
}

.event-card.is-past:hover {
    filter: grayscale(70%);
    opacity: 0.85;
}

/* Badge optionnel pour la carte */
.event-badge-past {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    line-height: 1;
    transition: background 0.2s;
}

.cal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
        /* Galerie d'images secondaires */
        .modal-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            margin-top: 1.5rem;
        }
        .modal-gallery img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid #e2e8f0;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .modal-gallery img:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

                /* Modale Lightbox (Affichage image en grand) */
        .lightbox-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.85); /* Fond fumé très sombre */
            display: none; /* Caché par défaut */
            justify-content: center;
            align-items: center;
            z-index: 3000; /* Doit être au-dessus de ta modale d'événement (2000) */
        }
        .lightbox-img {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.5);
            object-fit: contain;
        }
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s;
            user-select: none;
        }
        .lightbox-close:hover {
            color: #ccc;
        }
        /* Badge Conférences sur la carte */
.event-badge-conf {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

/* Section Conférences dans la modale */
.conferences-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}
.conference-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.conference-info h4 { margin: 0 0 0.25rem 0; color: var(--color-primary); }
.conference-info p { margin: 0; font-size: 0.9rem; color: #64748b; }

/* Modale d'inscription aux conférences (surcouche) */
#modal-inscription-conf {
    display: none;
    margin-top: 1rem;
    background: #fff;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
#form-inscription-conf input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Boutons de sélection : À venir / Passés */
.events-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.tab-btn.active {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}