/* PAGE - SINGLE RECIPE */
.componentBlockPageHeader {
    width: 100%;
    height: 35rem;
    position: relative;
    overflow: hidden;
}


.componentBlockPageHeader-background {
    display: block;
    width: 100%;
    height: 100%;
}

.componentBlockPageHeader-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.componentBlockPageHeader-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-inline: 1rem;
    top: 9%;
    align-items: center;
    text-align: center;
    margin-top: var(--spacing-md);
}

.pageRecipe .pageRecipe-description .pageRecipe-img-left img {
    display: none;
}

.componentBlockPageHeader h1 {
    line-height: 90%;
    margin-bottom: 1.82rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.componentBlockPageHeader h1.text-defaut {
    color: var(--color-primary);
    text-shadow:
        -0.05rem -0.05rem 0 var(--white),
        0.05rem -0.05rem 0 var(--white),
        -0.05rem 0.05rem 0 var(--white),
        0.05rem 0.05rem 0 var(--white);
}

.pageRecipe-preparation-duration,
.pageRecipe-cooking-duration {
    color: white;
    line-height: 100%;
    font-size: 1.125rem;
}



/* ajout du contour pour les subtitles banner */
.componentBlockPageHeader .pageRecipe-preparation-duration,
.componentBlockPageHeader .pageRecipe-cooking-duration {
    text-shadow:
        -0.05rem -0.05rem 0 var(--color-primary),
        0.05rem -0.05rem 0 var(--color-primary),
        -0.05rem 0.05rem 0 var(--color-primary),
        0.05rem 0.05rem 0 var(--color-primary);
}

.pageRecipe .pageRecipe-description {
    display: flex;
    padding: var(--padding-xl) var(--padding-lg) var(--padding-md) var(--padding-lg);
    flex-direction: column;
}

.pageRecipe .pageRecipe-description .pageRecipe-img-left {
    flex: 1;
    order: 2;
    align-items: center;
    margin-top: var(--spacing-md);
}

.pageRecipe .pageRecipe-description .pageRecipe-ingredients-right {
    order: 1;
    flex: 1;
    text-align: center;
    /* align-items: center; */
    display: flex;
    flex-direction: column;
}

.pageRecipe .pageRecipe-description .pageRecipe-ingredients-right h2 {
    font-size: var(--fs-h3);
    margin-bottom: .5rem;
    line-height: 100%;
    font-weight: var(--font-weight-md);
    text-transform: uppercase;
}

.pageRecipe .pageRecipe-description .pageRecipe-preparation-duration,
.pageRecipe .pageRecipe-description .pageRecipe-cooking-duration {
    color: var(--color-secondary, --yellow);
    margin-bottom: var(--spacing-xs);
    /* font-weight: var(--font-weight-md); */
    font-size: 1.125rem;
    line-height: 100%;
}

.pageRecipe-ingredients-global {
    margin-top: var(--spacing-md);
}

.pageRecipe-ingredients-global h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    line-height: 100%;
    font-weight: var(--font-weight-sm);
    text-transform: uppercase;
    text-align: left;
}

.pageRecipe-description-shortDescription {
    /* on ajoute la classe pour les titre de groupe d'ingredients car même style sauf margin */
    font-weight: var(--font-weight-sm);
    text-transform: uppercase;
    font-size: 1.25rem;
    line-height: 100%;
    margin-top: 0;
    width: 95%;
    margin-bottom: 0.125rem;
}

.pageRecipe-ingredientsList {
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: left;
}

.pageRecipe-ingredientsList h3 {
    font-size: 1.25rem;
    line-height: 100%;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0;
}

.pageRecipe-steps {
    padding: 0.5rem var(--padding-lg) 0 var(--padding-lg);
    padding-inline: 1rem;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.pageRecipe-steps .pageRecipe-steps-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pageRecipe-steps figure {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0;
}

.pageRecipe-steps figure img {
    height: auto;
}

.pageRecipe-steps h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 100%;
    font-weight: var(--font-weight-sm);
    text-transform: uppercase;
}

.pageRecipe-steps .steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    /* margin-top: 1.125rem; */
}

.pageRecipe-steps .steps-list li {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    margin-bottom: 0.875rem;
    /* espace entre le numéro et le texte */
}

.pageRecipe-steps .steps-list li .pageRecipe-step-number {
    display: inline-flex;
    font-size: 1.125rem;
    justify-content: center;
    align-items: center;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-family: var(--font-primary);
    border-radius: 50%;
    flex-shrink: 0;
    /* margin-top: -0.25rem; */
}

.pageRecipe-steps .steps-list li p {
    margin-block: 0;
}

.background-desktop {
    display: none;
}

@media (min-width: 568px) {
    .pageRecipe .pageRecipe-description .pageRecipe-img-left {
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 768px) {

    .background-mobile {
        display: none;
    }

    .background-desktop {
        display: block;
    }

    .componentBlockPageHeader-content {
        text-align: left;
        align-items: flex-start;
        top: 5%;
        padding-inline: var(--padding-2xl);
    }

    .componentBlockPageHeader h1 {
        line-height: 3.75rem;
        font-size: 4.375rem;
        /* width: 55%; */
        background-position: center;
    }

    .pageRecipe-preparation-duration,
    .pageRecipe-cooking-duration {
        /* font-weight: var(--font-weight-md); */
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .pageRecipe .pageRecipe-description {
        padding: var(--padding-section) var(--padding-2xl);
        flex-direction: row;
    }

    .pageRecipe .pageRecipe-description .pageRecipe-img-left {
        flex: 0 0 52%;
        order: 1;
        align-items: start;
        margin-top: unset;
    }

    .pageRecipe .pageRecipe-description .pageRecipe-img-left img {
        display: block;
        border-radius: 25px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 50%;
        left: 50%;
    }

    .pageRecipe .pageRecipe-description .pageRecipe-ingredients-right {
        text-align: left;
        align-items: start;
        /* margin-top: 1.563rem; */
    }

    .pageRecipe .pageRecipe-description .pageRecipe-ingredients-right {
        flex: 0 0 50%;
        padding-left: var(--padding-2xl);
        box-sizing: border-box;
        order: 2;
        align-items: flex-start;
    }

    .pageRecipe .pageRecipe-description .pageRecipe-ingredients-right h2 {
        margin-bottom: 0;
        line-height: 3.75rem;
    }

    .pageRecipe .pageRecipe-description .pageRecipe-preparation-duration,
    .pageRecipe .pageRecipe-description .pageRecipe-cooking-duration {
        font-size: 1.625rem;
        line-height: 1.25rem;
    }

    .pageRecipe-ingredients-global {
        font-family: var(--font-primary);
        margin-top: 1.563rem;
    }

    .pageRecipe-ingredients-global h3 {
        font-size: var(--fs-h4-caps);
        margin-bottom: 0;
        line-height: var(--fs-h4-caps);
    }

    .pageRecipe-description-shortDescription {
        width: 100%;
        margin-bottom: 0.375rem;
    }

    .pageRecipe-ingredientsList h3 {
        text-align: left;
    }

    .pageRecipe-steps figure {
        flex: 0 0 20%;
        padding-left: var(--spacing-lg);
    }

}

@media (min-width: 1024px) {
    .componentBlockPageHeader {
        margin-top: var(--min-height-header);
        height: 70vh;
    }

    .componentBlockPageHeader-content {
        top: 50%;
        transform: translateY(-50%);
        padding-inline: 4.37rem;
    }

    .componentBlockPageHeader h1 {
        line-height: 5.75rem;
        width: 55%;
    }

    .pageRecipe-preparation-duration,
    .pageRecipe-cooking-duration {
        /* font-weight: var(--font-weight-md); */
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .pageRecipe .pageRecipe-description {
        padding: var(--padding-section-2xl) 5.25rem var(--padding-lg) 5.25rem;
        flex-direction: row;
    }

    .pageRecipe-steps {
        padding: 2.688rem var(--padding-section, 75px) 6.875rem var(--padding-section, 100px);
    }

    .pageRecipe-steps h2 {
        margin-bottom: 3.375rem;
        font-size: var(--fs-h4-caps);
        line-height: var(--fs-h4-caps);
    }

    .pageRecipe-steps .pageRecipe-steps-content {
        flex: 0 0 60%;
        margin-left: 8.75rem;
        align-items: flex-start;
    }

    .pageRecipe-steps figure {
        flex: 0 0 20%;
        padding-left: var(--spacing-lg);
    }

    .pageRecipe-steps .steps-list {
        margin-top: 0.5rem;
    }

    .pageRecipe-steps .steps-list li {
        gap: var(--fs-extra-small-text-body);
        /* espace entre le numéro et le texte */
    }

    .pageRecipe-steps .steps-list li .pageRecipe-step-number {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: var(--fs-small-text-deco);
        height: var(--fs-small-text-deco);
        color: var(--color-primary);
        border: 2px solid var(--color-primary);
        font-family: var(--font-primary);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .pageRecipe-steps figure {
        position: relative;
    }

    .pageRecipe-steps figure img {
        position: absolute;
        width: 65%;
        right: -3.125rem;
        bottom: 50%;
        transform: translateY(50%);
    }

}

@media (min-width: 1366px) {
    .componentBlockPageHeader-content {
        padding-inline: var(--padding-section);
        max-width: 1440px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .pageRecipe .container-width {
        max-width: 1440px;
        margin: 0 auto;
    }

    .pageRecipe .pageRecipe-description .pageRecipe-ingredients-right {
        padding-left: 4.875rem;
    }
}