/* Styles pour les sections de réalisations */
.realisation-meta, .realisation-about, .content-text, .quote-text {
    opacity: 0;
}

.realisation-single {
    background-image: url("../images/bg_1.avif");
    background-size: contain;
    background-position: 0px -60px;
    background-repeat: no-repeat;
    background-color: #fff;
    padding-top: 160px;
}
.realisation-single p:empty {
    display: none;
}
.realisation-header {
    margin-bottom: 40px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.realisation-header .realisation-title {
    font-size: clamp(30px, 6vw, 55px);
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.realisation-header .realisation-meta {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.realisation-header .wp-block-studio-k7-cartouche {
    margin-bottom: 12px;
}

.realisation-header .realisation-client {
    margin-bottom: 5px;
}

.realisation-header .realisation-client,
.realisation-header .realisation-date {
    text-align: right;
    color: var(--wp--preset--color--primary, #0c0c0c);
}

/* Video Section */
.realisation-video {
    margin: 3rem 0;
}

.realisation-video .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
}

.realisation-video .video-container iframe,
.realisation-video .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.realisation-about {
    background: var(--wp--preset--color--base, #f8f9fa);
    display: flex;
    justify-content: space-between;
    padding: 70px 0;
}

.realisation-about .about-title {
    color: #797979;
}

.realisation-about .about-content {
    line-height: 1.2;
    margin-top: 24px;
    width: 70%;
}

.realisation-about .about-content h2 {
    font-weight: 700;
    font-size: 31px;
    line-height: 1;
    margin-top: 0;
}

.realisation-about .about-content p {
    margin-top: 0;
}

/* Gallery Section with Swiper */
.realisation-gallery {
    margin: 4rem 0;
    background: #000;
    padding: 4rem 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .realisation-gallery .swiper {
        width: 100%;
        height: 400px;
        padding: 70px 0;
    }

    .realisation-gallery .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: auto;
    }

    .realisation-gallery .swiper-slide img {
        height: 100%;
        width: auto;
        object-fit: cover;
    }

/* Swiper Pagination */
.realisation-gallery .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
    text-align: center;
}

.realisation-gallery .swiper-pagination-bullet {
    width: 77px;
    height: 8px;
    border-radius: 8px;
    background: #242424;
    transition: all 0.3s ease;
    margin: 0 15px;
    opacity: 1;
}

.realisation-gallery .swiper-pagination-bullet-active {
    background: #fff;
}

/* Content Section */
.realisation-content {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.realisation-content .content-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.realisation-content .content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.realisation-content .content-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

.realisation-content .content-text ul {
    padding-left: 21px;
}

.realisation-content .content-text ul li {
    list-style: none;
    position: relative;
}

.realisation-content .content-text ul li::before {
    content: "";
    background-color: currentColor;
    display: inline-block;
    height: 13px;
    width: 13px;
    left: -21px;
    top: 8px;
    position: absolute;
    border-radius: 3px;
}

.realisation-content .content-text p {
    margin-bottom: 1.5rem;
}

.realisation-content .content-text h2 {
    font-weight: 700;
    font-size: 31px;
    line-height: 1;
    margin-top: 0;
}

/* Quote Section */
.realisation-quote {
    margin: 3rem 0;
}

.realisation-quote .quote-text {
    font-size: 25px;
    line-height: 1.2;
    margin: 0;
    padding: 80px 2rem;
    background: linear-gradient(180deg,#FBE4D2 0%,#FCC7D3 50%,#D7EAF8 100%);
    border-radius: 35px;
    position: relative;
    max-width: 946px;
    box-sizing: border-box;
    margin: 0 auto;
}

.realisation-quote .quote-text p {
    max-width: 752px;
    margin: 0 auto;
}

.realisation-quote .quote-text::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 32px;
    width: 85px;
    height: 63px;
    background: url("../images/quote.svg") no-repeat center center;
    background-size: contain;
    pointer-events: none;
}

.realisation-quote .quote-author {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: bold;
    text-align: right;
}

/* realisation-format-banner Section */
.realisation-format-banner {
    background: #000;
    color: #FFF;
    margin: 0 25px;
    border-radius: 35px;
    position: relative;
}

.realisation-format-banner .format-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 35px;
    z-index: 0;
}

.realisation-format-banner .format-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.realisation-format-banner .format-banner-content {
    display: flex;
    text-align: center;
    align-items: center;
    padding: 40px 60px;
    position: relative;
    flex-direction: column;
    margin-bottom: 150px;
}

.realisation-format-banner h3 {
    font-size: clamp(30px, 6vw, 55px);
    font-weight: 700;
    margin: 18px 0 21px 0;
}

.realisation-format-banner .format-description {
    color: #FFF;
    font-family: "Nohemi", sans-serif;
    font-weight: 500;
    margin: 0;
}

.realisation-format-banner .wp-block-buttons {
    padding-bottom: 0;
}

.realisation-format-banner .format-description {
    color: #FFF;
    font-family: "Nohemi", sans-serif;
    font-weight: 500;
    margin: 0;
}

.realisation-next-project-link-wrapper {
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
}

.realisation-next-project-link-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.realisation-next-project-link-wrapper .next-project-content {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    text-transform: uppercase;
    z-index: 1;
    position: relative;
    color: #FFF;
    font-family: 'Nohemi', sans-serif;
    font-weight: 500;
    padding: 120px 20px;
}

.realisation-next-project-link-wrapper .next-project-content .next-project-label {
    margin: 0 0 5px 0;
    font-size: clamp(16px,2vw,22px);
    font-weight: 400;
}

.realisation-next-project-link-wrapper .next-project-content .next-project-title {
    margin: 0;
    font-size: clamp(22px, 5vw, 47px);
    font-weight: 700;
    max-width: 80%;
}

.realisation-next-project-link-wrapper .next-project-content:after {
    content: "";
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzkiIHZpZXdCb3g9IjAgMCAzOCAzOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuMTQ2NDYgNS44NDU1N1YwLjg2MjU0OUwzNy44NzA4IDAuODYyNTQ5VjMzLjU4NjlIMzIuODg3OEwzMi45NjIxIDkuNDg5ODdMNC4xNzk2MSAzOC4yNzI0TDAuNDYwOTM3IDM0LjU1MzdMMjkuMjQzNSA1Ljc3MTE5TDUuMTQ2NDYgNS44NDU1N1oiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(60px, 12vw, 163px);
    height: clamp(60px, 12vw, 163px);
    background-size: clamp(18px, 5vw, 38px);
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid;
    border-radius: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.realisation-next-project-link-wrapper:hover .next-project-content {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 999px) {
    .realisation-single {
        background-position: center -60px;
        padding-top: 80px;
    }
    .realisation-header {
        flex-direction: column;
        align-items: flex-start;
    }

    
    .realisation-header .realisation-meta {
        flex-direction: column;
        gap: 0;
        align-items: baseline;
        width: 100%;
    }
    
    .realisation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .realisation-about .about-content {
        width: 100%;
    }
    
    .realisation-gallery .realisation-swiper {
        padding: 0 1rem;
    }
    
    .realisation-gallery .swiper-slide {
        aspect-ratio: 1/1;
    }

    .realisation-format-banner .format-banner-content {
        margin-bottom: 4rem;
        padding: 20px 30px;

    }
    
    .realisation-quote .quote-text {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .realisation-about {
        flex-direction: column;
        padding: 0 0 20px 0;
    }
}
