/* CONTAINER */
.realisations-slider {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 60px;
    overflow: hidden; /* empêche le débordement horizontal sur mobile */
}

.realisations-slider .swiper-wrapper {
    align-items: center;
}

.swiper-pagination-bullet-active {
    background: var(--global-palette1);
}

.realisations-slider .swiper-pagination {
    position: absolute !important;
    bottom: 0 !important;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
}

/* TAILLE DES CARTES - responsive via media queries */
.realisations-slider .swiper-slide {
    width: 85%;
    max-width: 320px;
    opacity: .35;
    transition: opacity .4s, transform .4s;
}

@media (min-width: 600px) {
    .realisations-slider .swiper-slide {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .realisations-slider .swiper-slide {
        max-width: 550px;
    }
}

/* CARTE ACTIVE */
.realisations-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* CARTE */
.realisations-slider article {
    display: flex;
    flex-direction: column;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

@media (min-width: 1024px) {
    .realisations-slider article {
        height: 700px;
    }
}

/* IMAGE */
.realisation-image {
    flex-shrink: 0;
    height: 250px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .realisation-image {
        height: 400px;
    }
}

.realisation-image picture,
.realisation-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* CONTENU */
.realisations-slider .entry-content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .realisations-slider .entry-content {
        padding: 30px;
    }
}

/* BADGE CATEGORIE */
/* CONTENEUR DES BADGES */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    align-self: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

/* BADGE - style commun, largeur fittée au contenu */
.category-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
}


/* TITRE + LOGO */
.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

/* LOGO */
.project-logo {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* EXCERPT */
.excerpt {
    margin-bottom: var(--global-lg-spacing);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1024px) {
    .excerpt {
        -webkit-line-clamp: 6;
    }
}