/* Style de base : Mobile */
.componentBlockHpBlockImageRight {
    position: relative;
    display: block;
    margin: 0 auto;
    /* Centre horizontalement */
    text-align: left;
    /* Centre le texte si besoin */
    /* Centre les éléments */
    background: var(--color-tertiary, blue);
    padding: var(--padding-xl);
    padding-top: var(--padding-2xl);
    gap: var(--spacing-md);
}

.componentBlockHpBlockImageRight .homepage-imageRight-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centre verticalement */
    justify-content: center;
    /* Optionnel si tu veux centrer aussi horizontalement */
    text-align: center;
    margin-bottom: var(--spacing-xl);
}


.componentBlockHpBlockImageRight .homepage-imageRight-content h2 {
    margin-bottom: 0;
    font-weight: var(--font-weight-lg);
    /* gérée par le sout-titre/p en dessous */
}

.componentBlockHpBlockImageRight .homepage-imageRight-content p {
    line-height: var(--line-height-sm);
    margin-block: var(--spacing-lg);
}

.componentBlockHpBlockImageRight figure {
    margin: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Empêche l’image de dépasser */
}

.componentBlockHpBlockImageRight .img-responsive {
    max-width: 100%;
    object-fit: contain;
    height: auto;
}

.componentBlockHpBlockImageRight .cta {
    display: inline-block;
    width: auto;
    /* Ne s'étend pas sur toute la largeur */
    max-width: max-content;
    /* Prend seulement la place nécessaire */
    margin: 0;
    z-index: 3;
}

.componentBlockHpBlockImageRight .homepage-imageRight-secondRow {
    display: flex;
    justify-content: start;
    width: 100%;
    position: relative;
    margin-top: -6.25rem;
    z-index: 2;
    left: -1.75rem;
}

.componentBlockHpBlockImageRight .homepage-imageRight-secondRow img {
    width: 30%;
}

@media (min-width: 568px) {
    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow {
        left: -0.75rem;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow img {
        width: 22%;
    }
}

/* Version Desktop : Affichage en ligne */
@media (min-width: 768px) {

    /* Style de base : Mobile */
    .componentBlockHpBlockImageRight {
        padding-top: 7.5rem;
        padding-bottom: var(--padding-3xl);
        padding-inline: 5.375rem;
        text-align: center;
        /* Centre le texte si besoin */
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-firstRow {
        display: flex;
        flex-direction: row;
        /* Passe en ligne sur grand écran */
        justify-content: space-between;
        align-items: center;
        /* height: 100vh; */
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-content {
        flex: 0 0 50%;
        align-items: start;
        text-align: left;
        /* Réaligner à gauche sur desktop */
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-content h2 {
        margin-bottom: var(--spacing-md);
        font-size: 6.25rem;
        line-height: 6.8575rem;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-content p {
        /* max-width: 80%; */
        margin-top: 0;
        margin-bottom: var(--spacing-lg);
        font-size: 1.125rem;
        line-height: 2rem;
    }

    /* .componentBlockHpBlockImageRight .homepage-imageRight-firstRow figure .img-responsive { */
    /* margin-top: 3rem;
        margin-bottom: 5rem; */
    /* } */

    .componentBlockHpBlockImageRight figure {
        flex: 0 0 50%;
        justify-content: end;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow {
        width: 100%;
        justify-content: center;
        position: relative;
        z-index: 2;
        /* S'assure qu'elle passe devant */
    }


    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow img {
        width: 13%;
    }

    /* .componentBlockHpBlockImageRight .img-responsive {
        max-width: 90%;
        height: auto;
    } */
}

@media (min-width: 1024px) {
    .componentBlockHpBlockImageRight .homepage-imageRight-firstRow figure .img-responsive {
        /* width: 73%; */
    }

}

@media (min-width: 1366px) {
    /* .componentBlockHpBlockImageRight .homepage-imageRight-content p {
        max-width: 80%;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow {
        margin-top: -10rem;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow img {
        width: 10%;
    } */
}

@media (min-width: 1366px) {
    .componentBlockHpBlockImageRight {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-firstRow {
        max-width: 1440px;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow {
        margin-top: -10rem;
    }

    .componentBlockHpBlockImageRight .homepage-imageRight-secondRow img {
        width: 14%;
    }
}