/* === SWIPER CONTAINER === */
.home-events-swiper {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 20px;
    overflow-x: hidden;
}

.home-events-swiper .swiper-wrapper {
    align-items: stretch;
    padding: 10px 0 30px;
}

.home-events-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* S'assurer que les cartes dans le Swiper héritent des styles existants */
.home-events-swiper .home-event-card {
    width: 100%;
    background: var(--e-global-color-nvlightbg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-events-swiper .home-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.home-events-swiper .home-event-card .home-event-title {
    color: var(--e-global-color-6ccf4f8) !important;
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 10px;
    margin-top: 1rem;
    transition: .4s;
}

.home-events-swiper .home-event-card .home-event-button {
    font-size: 14px;
    font-weight: 300;
    color: #FFFFFF;
    background-color: var(--e-global-color-accent);
    margin: 0px 0px 10px 0px;
    display: inline-flex;
    padding: 5px 20px;
    border-radius: 20px;
    width: fit-content;
}

.home-events-swiper .home-event-card .home-event-button:hover {
    color: #FFFFFF;
    background-color: var(--e-global-color-44a2e80);
}

.home-events-swiper .home-event-card .home-event-date {
    display: flex;
    align-items: center;
    color: #047982;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
}

.home-events-swiper .home-event-card .home-event-date .icon-calendar {
    display: flex;
    align-items: center;
}

.home-events-swiper .home-event-card .home-event-date .icon-calendar svg {
    width: 17px;
    margin-right: 10px;
    margin-top: -2px;
}

.home-events-swiper .home-event-card .home-event-venue {
    font-size: 14px;
    margin-bottom: 10px;
}

.home-events-swiper .home-event-card .home-event-venue>span {
    font-weight: 700;
    text-transform: uppercase;
}

.home-events-swiper .home-event-card .home-event-excerpt {
    color: #929292;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Styles spécifiques pour les éléments de la carte dans le Swiper */
.home-events-swiper .home-event-head {
    display: flex;
    align-items: stretch;
}

.home-events-swiper .home-event-venue svg {
    width: 20px;
    color: #666;
}

.home-events-swiper .home-event-date-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-align: center;
}

.home-events-swiper .home-event-date-block .date-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.home-events-swiper .home-event-date-block .day {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #222;
}

.home-events-swiper .home-event-date-block .month {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: lowercase;
    color: #666;
    margin-top: -2px;
    text-transform: uppercase;
}

.home-events-swiper .home-event-date-block.range .separator {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: #aaa;
    height: 100%;
}

/* === GRID FALLBACK (pour les anciens navigateurs) === */
.home-events-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* === SWIPER NAVIGATION === */
.home-events-swiper .swiper-button-next,
.home-events-swiper .swiper-button-prev {
    color: var(--e-global-color-accent);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-events-swiper .swiper-button-next:hover,
.home-events-swiper .swiper-button-prev:hover {
    background: var(--e-global-color-accent);
    color: white;
    transform: scale(1.1);
}

.home-events-swiper .swiper-button-next:after,
.home-events-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* === SWIPER PAGINATION === */
.home-events-swiper .swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.home-events-swiper .swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.home-events-swiper .swiper-pagination-bullet-active {
    background: var(--e-global-color-accent);
    transform: scale(1.2);
}

.home-events-list::after {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -170px;
    background-image: url("../img/logo-bg.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 400px;
    height: 380px;
    z-index: -1;
    opacity: 0.5;
}

/* === RESPONSIVE SWIPER === */
@media screen and (max-width: 1200px) {
    .home-events-swiper {
        padding: 0 60px;
    }
}

@media screen and (max-width: 768px) {
    .home-events-swiper {
        padding: 0 40px;
    }

    .home-events-swiper .swiper-button-next,
    .home-events-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .home-events-swiper .swiper-button-next:after,
    .home-events-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .home-events-swiper {
        padding: 0 20px;
    }

    .home-events-swiper .swiper-button-next,
    .home-events-swiper .swiper-button-prev {
        display: none;
    }
}

/* === RESPONSIVE GRID FALLBACK === */
@media screen and (max-width: 998px) {
    .home-events-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .home-events-list::after {
        bottom: -10%;
        right: -185px;
    }
}

.home-events-list .home-event-card {
    background: var(--e-global-color-nvlightbg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-events-list .home-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.home-events-list .home-event-card .home-event-title {
    color: var(--e-global-color-6ccf4f8) !important;
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 10px;
    margin-top: 1rem;
    transition: .4s;
}

.home-events-list .home-event-card .home-event-button {
    font-size: 14px;
    font-weight: 300;
    color: #FFFFFF;
    background-color: var(--e-global-color-accent);
    margin: 0px 0px 10px 0px;
    display: inline-flex;
    padding: 5px 20px;
    border-radius: 20px;
    width: fit-content;
}

.home-events-list .home-event-card .home-event-button:hover {
    color: #FFFFFF;
    background-color: var(--e-global-color-44a2e80);
}


.home-events-list .home-event-card .home-event-date {
    display: flex;
    align-items: center;
    color: #047982;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
}

.home-events-list .home-event-card .home-event-date .icon-calendar {
    display: flex;
    align-items: center;
}

.home-events-list .home-event-card .home-event-date .icon-calendar svg {
    width: 17px;
    margin-right: 10px;
    margin-top: -2px;
}

.home-events-list .home-event-card .home-event-venue {
    font-size: 14px;
    margin-bottom: 10px;
}

.home-events-list .home-event-card .home-event-venue>span {
    font-weight: 700;
    text-transform: uppercase;
}

.home-events-list .home-event-card .home-event-excerpt {
    color: #929292;
    font-size: 13px;
    margin-bottom: 15px;
}

/* === FILTERS === */

#home-events-filter .events-filter {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-events-filter .events-filter label {
    text-transform: uppercase;
    font-size: 13px;
    padding-right: 10px;
}

.select-wrapper {
    position: relative;
}

.events-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    border-bottom: 1px solid #d9d9d9;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    padding: 5px 30px 5px 5px;
}

/* Flèche custom */
.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-image: url('../svg/chevron-down.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    color: #333;
}


/* === Skeleton Loader === */

.home-events-skeletons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.home-events-skeletons.fade-out {
    opacity: 0;
}

.skeleton {
    background: #f6f7f8;
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.2s infinite;
}

.skeleton-title {
    width: 80%;
    height: 20px;
    background: #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.skeleton-line {
    width: 100%;
    height: 14px;
    background: #e0e0e0;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-button {
    width: 50%;
    height: 32px;
    background: #d8d8d8;
    border-radius: 8px;
    margin-top: 1rem;
}

.home-events-list {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-events-list.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes loading {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

.home-event-head {
    display: flex;
    align-items: stretch;
}

.home-event-venue svg {
    width: 20px;
    color: #666;
}

.home-event-date-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-align: center;
}

.home-event-date-block .date-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.home-event-date-block .day {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #222;
}

.home-event-date-block .month {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: lowercase;
    color: #666;
    margin-top: -2px;
    text-transform: uppercase;
}

.home-event-date-block.range .separator {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: #aaa;
    height: 100%;
}