#realisations {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 50px 0px;
    gap: 20px;
    width: 80%;
}

#realisations h2 {
    font-family: 'Trenda Bold', sans-serif;
    font-size: 3em;
    margin: 0;
    text-align: start;
    font-weight: normal;
    font-size: 4em;
    text-align: justify;
    padding: 0px 30px;
    color: var(--color-primary);
}

#realisations #carrousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

#realisations .arrow {
    height: 90px;
    width: 30px;
    background-color: var(--color-primary);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

#realisations .arrow:hover {
    background-color: #555555;
    cursor: pointer;
}

#realisations #right-arrow {
    transform: rotate(180deg);
    cursor: pointer;
}

#realisations #liste-realisation-container {
    width: 1200px;
    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
}

#realisations #liste-realisation {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    position: relative;
    transition: left 0.3s ease;
    left: 0px;
}

#realisations .realisation {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 30px;
    flex-shrink: 0;
    perspective: 1000px; /* Perspective pour l'effet 3D */
}

#realisations .realisation .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

#realisations .realisation:hover .card-inner {
    transform: rotateY(180deg);
}

#realisations .realisation:hover .card-inner {
    transform: rotateY(180deg);
}

#realisations .realisation .card-front,
#realisations .realisation .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#realisations .realisation .card-front {
    background-size: cover;
    background-position: center;
    color: var(--color-background);
    font-size: 24px;
    font-weight: bold;
}

#realisations .realisation .card-front .title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(89, 89, 89, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#realisations .realisation .card-front h3 {
    margin: 0;
    padding: 0 10px;
    color: var(--color-background);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#realisations .realisation .card-back {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--color-background);
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
}

#realisations .realisation .card-back .sous-texte {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#realisations .realisation .card-back .sous-texte p {
    font-size: 16px;
    line-height: 1.5em;
    margin: 0;
    text-align: justify;
    color: var(--color-background);
}

#separator-activite-realisation {
    height: 100px;
}

#separator-realisation {
    height: 100px;
}

@media (max-width: 768px) {
    #separator-activite-realisation {
        height: 20px;
    }

    #separator-realisation {
        height: 20px;
    }

    #realisations {
        width: 100%;
    }

    #realisations h2 {
        font-size: 2em;
        padding: 0px 15px;
        width: 80%;
        margin: 0 auto;
    }

    #realisations #carrousel {
        /* flex-direction: column; */
        gap: 10px;
    }

    #realisations #liste-realisation-container {
        width: 80vw;
    }

    #realisations .arrow {
        /* display: none; */
        width: 5vw;
    }

    #realisations #liste-realisation {
        /* flex-direction: column; */
        width: 100%;
    }

    #realisations .realisation {
        /* width: 80%; */
        /* height: auto; */
        margin: 20px 5vw;
        width: 70vw;
        height: 70vw;
    }
}

@media (min-width: 769px) and (max-width: 1025px) {
    #separator-activite-realisation {
        height: 20px;
    }

    #separator-realisation {
        height: 20px;
    }

    #realisations {
        width: 100%;
    }

    #realisations h2 {
        font-size: 2em;
        padding: 0px 15px;
        width: 80%;
        margin: 0 auto;
    }

    #realisations #carrousel {
        /* flex-direction: column; */
        gap: 10px;
    }

    #realisations #liste-realisation-container {
        width: 80vw;
    }

    #realisations .arrow {
        /* display: none; */
        width: 5vw;
    }

    #realisations #liste-realisation {
        /* flex-direction: column; */
        width: 100%;
    }

    #realisations .realisation {
        /* width: 80%; */
        /* height: auto; */
        margin: 20px 5vw;
        width: 70vw;
        height: 70vw;
    }
}