.rendez-vous{
    position: relative;
}

.rendez-vous figure{
    display: flex;
}

.rendez-vous figure img{
    aspect-ratio: 1;
    object-fit: cover;
}

.rendez-vous .content{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #00000033;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.rendez-vous .content .content-text{
    padding: 47.5px 40px;
    background: #FFF;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rendez-vous .content .content-text .header-rendez-vous{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rendez-vous .content .content-text .header-rendez-vous h2{
    font-family: 'Cormorant Garamond';
    font-weight: 400;
    font-size: 20px;
    line-height: 110.00000000000001%;
    text-transform: uppercase;
    color: var(--canard);
}

.rendez-vous .content .content-text .header-rendez-vous p{
    font-family: 'Lora';
    font-weight: 400;
    font-size: 15px;
    line-height: 180%;
    color: var(--canard-mid);
    display: block;
    height: 0;
    overflow: hidden;
    max-height: 0;
    transition: all 0.5s ease-in-out;
}

.rendez-vous .content .content-text.show .header-rendez-vous p{
    transition: all 0.5s ease-in-out;
    height: 100%;
    max-height: 1000px; /* Adjust as needed */
}

.rendez-vous .content .content-text .see-more,
.rendez-vous .content .content-text .see-less{
    font-family: 'Lora';
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--bleu-hague-mid);
    text-decoration: underline;
    cursor: pointer;
    display: flex;
    text-underline-offset: 4px;
}

.rendez-vous .content .content-text .see-more.hidden,
.rendez-vous .content .content-text .see-less.hidden{
    display: none;
}

@media screen and (max-width: 768px){

    .rendez-vous {
        position: relative;
        padding-top: 60px;
        padding-bottom: 60px;
        /* Force le conteneur à être un contexte d'accélération GPU */
        transform: translateZ(0);
    }

    .rendez-vous figure {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        /* Au lieu de height/width 100% */
        display: flex;
        /* Accélération GPU */
        will-change: contents;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .rendez-vous .content{
        background: unset;
    }

    .rendez-vous figure img {
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* CRUCIAL pour iOS 18 */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        /* Transition fluide sur le GPU */
        transition: transform 0.01ms;
    }

    /* Pour le conteneur qui s'agrandit */
    .rendez-vous .content {
        position: relative;
        z-index: 1;
        /* Utilise max-height au lieu de height si possible */
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media screen and (min-width: 768px) {
.rendez-vous figure img{
    aspect-ratio: 375 / 400;
}
}

@media screen and (min-width: 992px) {
.rendez-vous figure img{
    aspect-ratio: 1440 / 688;
}

.rendez-vous .content{
    align-items: center;
    padding: 0 120px;
}

.rendez-vous .content .content-text{
    margin-bottom: 0;
    padding: 52.5px 50px;
    max-width: 488px;
}

.rendez-vous .content .content-text .header-rendez-vous h2{
    font-size: 30px;
}

.rendez-vous .content .content-text .header-rendez-vous p{
    display: block;
    font-size: 14px;
    height: auto;
    max-height: 1000px;
}

.rendez-vous .content .content-text .see-more,
.rendez-vous .content .content-text .see-less{
    display: none;
}

}