/**
 * Accueil Magazine - Style L'Info CSC
 * Reproduit le design de la page d'accueil de linfo-csc.be
 */

/* ==========================================================================
   COVER HEADER
   ========================================================================== */

.mag-home-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mag-home-header__image {
    width: 100%;
    line-height: 0;
}

.mag-home-header__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   INTRO OVERLAY (Magazine Info)
   ========================================================================== */

.mag-home-intro {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    width: 640px;
    max-width: calc(100% - 40px);
    margin: auto;
    padding: 24px 40px;
    z-index: 2;
}

.mag-home-intro__content {
    text-align: center;
}

.mag-home-intro__meta {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.mag-home-intro__number {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #333;
}

.mag-home-intro__date {
    font-family: 'Antonio', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #666;
}

.mag-home-intro__info {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .mag-home-intro {
        padding: 16px 20px;
        width: auto;
        left: 20px;
        right: 20px;
        transform: none;
    }

    .mag-home-intro__number {
        font-size: 22px;
    }

    .mag-home-intro__date {
        font-size: 16px;
    }
}

/* ==========================================================================
   CAROUSEL (Swiper wrapper — Elementor Loop Template 7292 gère le visuel)
   ========================================================================== */

.mag-home-carousel {
    position: relative;
    width: 100%;
    height: auto;
}

/* Force all slides to equal height */
.mag-swiper-carousel .swiper-wrapper {
    align-items: stretch;
}

.mag-swiper-carousel .swiper-slide {
    width: 500px;
    max-width: calc(100vw - 120px);
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
}

/* Link wrapper inside each slide */
.mag-carousel-item__link-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Elementor content inside link fills available height */
.mag-carousel-item__link-wrap > .elementor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mag-carousel-item__link-wrap > .elementor > .elementor-inner,
.mag-carousel-item__link-wrap > .elementor > .elementor-inner > .elementor-section-wrap,
.mag-carousel-item__link-wrap .elementor-section,
.mag-carousel-item__link-wrap .elementor-container,
.mag-carousel-item__link-wrap .elementor-column,
.mag-carousel-item__link-wrap .elementor-widget-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Swiper scrollbar — hidden */
.mag-home-carousel .swiper-scrollbar {
    display: none !important;
}

/* ==========================================================================
   ENCART — Entièrement stylisé dans Elementor (template 7284)
   Le wrapper ne fait que rendre le lien cliquable sur tout le bloc.
   ========================================================================== */

.mag-home-encart {
    position: relative;
}

.mag-home-encart__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
