/* ================================================
   EVENTS PAGE
   ================================================ */

/* ── Wrapper ── */
.events_wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ── Hero ── */
.events_hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    background: #fff;
    color: #1a1a2e;
    margin-bottom: 2rem;
}

.events_hero_title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    color: #1a1a2e;
}

.events_hero_sub {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* ── Grille ── */
.events_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Lien card ── */
.events_card_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ── Card ── */
.events_card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.events_card_link:hover .events_card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

/* ── Image card ── */
.events_card_img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.events_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.events_card_link:hover .events_card_img img {
    transform: scale(1.03);
}

.events_card_noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #f3f4f6;
    color: #9ca3af;
}

/* ── Badge date ── */
.events_date_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 48px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

.events_date_day {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.events_date_month {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ── Body card ── */
.events_card_body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.events_card_title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.events_card_info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.events_card_info i {
    color: #2563eb;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.events_dates_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.events_date_tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Bouton retour ── */
.events_back_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin: 1.5rem 0 2rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 1px solid #e5e7eb;
}

.events_back_btn:hover {
    background: #1a1a2e;
    color: #fff;
}

/* ── Vue détail ── */
.event_detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.event_detail_img {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #f3f4f6;
}

.event_detail_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f3f4f6;
}

.event_detail_body {
    padding: 2rem 2rem 2rem 0;
}

.event_detail_title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.event_detail_section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.event_detail_icon {
    color: #2563eb;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.event_detail_dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event_modal_date_tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.event_detail_adresse {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ── Empty state ── */
.events_empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
    font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .event_detail {
        grid-template-columns: 1fr;
    }

    .event_detail_img {
        height: 260px;
    }

    .event_detail_body {
        padding: 1.5rem;
    }

    .event_detail_title {
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .events_hero_title {
        font-size: 1.6rem;
    }

    .events_grid {
        grid-template-columns: 1fr;
    }

    .events_card_img {
        height: 180px;
    }
}