/* ==========================================================================
   Événementiel Page – Modern Swiper Slider
   Uses CSS variables from landing.css
   ========================================================================== */

/* ---------- Section ---------- */
.ev-section {
    padding: clamp(40px, 5vw, 80px) 0;
}

.ev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.ev-header {
    text-align: center;
    margin-bottom: clamp(30px, 4vw, 50px);
}

.ev-header__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.ev-header__label i {
    font-size: 16px;
}

.ev-header__title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 40px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.ev-header__title span {
    color: var(--orange);
}

/* ---------- Swiper overrides ---------- */
.ev-swiper {
    overflow: hidden;
    padding-bottom: 70px;
    position: relative;
}

.ev-swiper .swiper-slide {
    height: auto;
}

/* ---------- Event Card ---------- */
.ev-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ev-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Card image */
.ev-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.ev-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ev-card:hover .ev-card__image img {
    transform: scale(1.06);
}

.ev-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(30, 37, 47, 0.5) 100%);
    pointer-events: none;
}

/* Date badge */
.ev-card__date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(235, 83, 16, 0.35);
}

.ev-card__date-day {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.ev-card__date-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Card body */
.ev-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ev-card__title {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card__excerpt {
    font-size: clamp(13px, 0.85vw, 15px);
    color: var(--body-text);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.ev-card__link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ev-card__link:hover {
    color: var(--teal-dark);
    gap: 12px;
}

.ev-card__link:hover i {
    transform: translateX(3px);
}

/* ---------- Controls ---------- */
.ev-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.ev-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ev-nav__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: transparent;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ev-nav__btn:hover {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 195, 172, 0.35);
}

.ev-nav__btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Pagination */
.ev-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ev-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.ev-pagination .swiper-pagination-bullet-active {
    background: var(--orange);
    width: 28px;
}

/* ---------- Empty state ---------- */
.ev-empty {
    text-align: center;
    padding: clamp(50px, 6vw, 100px) 20px;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
}

.ev-empty__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.ev-empty__text {
    font-size: clamp(14px, 1vw, 17px);
    color: var(--body-text);
    line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ev-card__body {
        padding: 18px;
    }

    .ev-nav__btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ev-container {
        padding: 0 16px;
    }
}
