/* ==========================================================================
   Home Réalisations Carousel - Swiper
   ========================================================================== */

.home_realisations_carousel {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 60px 0px;
    background: #FFFFFF;
}

.home_realisations_carousel_sized {
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 1400px;
}

/* Header */
.home_realisations_carousel_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.home_realisations_carousel_top h2 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    font: normal normal bold 32px/40px OS_Bold;
    letter-spacing: 0px;
    color: #100D08;
    text-transform: uppercase;
}

.home_realisations_carousel_top h2 img {
    width: 50px;
    height: auto;
}

/* Swiper Container */
.home_realisations_swiper {
    width: 100%;
    padding-bottom: 50px;
}

.home_realisations_swiper .swiper-wrapper {
    align-items: stretch;
}

/* Slide */
.home_realisations_slide {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #E0E0E0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.home_realisations_slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Image */
.home_realisations_slide_img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F5F5F5;
}

.home_realisations_slide_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.home_realisations_slide:hover .home_realisations_slide_img img {
    transform: scale(1.05);
}

.home_realisations_slide_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0E0E0;
    color: #666;
    font: normal normal normal 14px/18px OS_Regular;
}

/* Content */
.home_realisations_slide_content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    background: #100D08;
}

.home_realisations_slide_category {
    font: normal normal 600 12px/14px OS_SemiBold;
    letter-spacing: 0.5px;
    color: #1D7FC7;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.home_realisations_slide_title {
    font: normal normal bold 18px/24px OS_Bold;
    letter-spacing: 0px;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home_realisations_slide_client {
    font: normal normal normal 14px/18px OS_Regular;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

/* Swiper Pagination */
.home_realisations_swiper .swiper-pagination {
    bottom: 0;
}

.home_realisations_swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #E0E0E0;
    opacity: 1;
    transition: background-color 0.2s ease;
}

.home_realisations_swiper .swiper-pagination-bullet-active {
    background: #1D7FC7;
}

/* Swiper Navigation */
.home_realisations_swiper .swiper-button-prev,
.home_realisations_swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: #1D7FC7;
    border-radius: 50%;
    color: #FFFFFF;
    transition: background-color 0.2s ease;
}

.home_realisations_swiper .swiper-button-prev:hover,
.home_realisations_swiper .swiper-button-next:hover {
    background: #16649E;
}

.home_realisations_swiper .swiper-button-prev::after,
.home_realisations_swiper .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.home_realisations_swiper .swiper-button-prev {
    left: -25px;
}

.home_realisations_swiper .swiper-button-next {
    right: -25px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .home_realisations_swiper .swiper-button-prev {
        left: 10px;
    }

    .home_realisations_swiper .swiper-button-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .home_realisations_carousel {
        padding: 40px 0px;
    }

    .home_realisations_carousel_top {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .home_realisations_carousel_top h2 {
        font: normal normal bold 24px/32px OS_Bold;
    }

    .home_realisations_carousel_top h2 img {
        width: 40px;
    }

    .home_realisations_swiper {
        padding-bottom: 40px;
    }

    .home_realisations_slide_content {
        padding: 15px;
    }

    .home_realisations_slide_title {
        font: normal normal bold 16px/22px OS_Bold;
    }
}

@media (max-width: 480px) {
    .home_realisations_carousel {
        padding: 30px 0px;
    }

    .home_realisations_slide_title {
        font: normal normal bold 15px/20px OS_Bold;
    }

    .home_realisations_slide_client {
        font: normal normal normal 13px/16px OS_Regular;
    }
}
