/* Home layout. Shared typography, palette and buttons come from the theme. */
.wp-site-blocks > .wp-block-post-content:has(> .lpd-home-hero:first-child),
.editor-styles-wrapper .wp-block-post-content:has(> .lpd-home-hero:first-child) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0;
}

:is(.wp-site-blocks, .editor-styles-wrapper) .wp-block-post-content > .wp-block-group:is(
    .lpd-home-hero,
    .lpd-home-introduction,
    .lpd-home-news,
    .lpd-home-mission,
    .lpd-home-contact
) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.wp-block-group.lpd-home-hero {
    box-sizing: border-box;
    padding: var(--debrouillards-page-hero-top) var(--debrouillards-page-hero-padding) var(--debrouillards-page-hero-bottom);
}

.lpd-home-hero .lpd-home-hero__columns {
    width: 100%;
    max-width: none;
    gap: clamp(32px, 3.5vw, 56px);
    margin-block: 0;
    margin-inline: auto !important;
}

.lpd-home-hero .lpd-home-hero__copy {
    min-width: 0;
}

.lpd-home-hero .lpd-home-hero__title {
    margin-block: 28px 26px;
}

.lpd-home-hero .lpd-home-hero__intro {
    margin-block: 0 22px;
}

.lpd-home-hero .lpd-home-hero__visual {
    min-width: 0;
    padding-block: 12px;
}

.wp-block-group.lpd-home-introduction {
    box-sizing: border-box;
    margin-block-start: 0;
    padding: 30px max(24px, 4.4vw) 86px;
}

.lpd-home-introduction .lpd-home-introduction__columns {
    width: 100%;
    max-width: none;
    gap: clamp(40px, 5vw, 76px);
    margin-block: 0;
    margin-inline: auto !important;
}

.lpd-home-introduction .lpd-home-introduction__visual,
.lpd-home-introduction .lpd-home-introduction__copy {
    min-width: 0;
}

.lpd-home-introduction .lpd-home-introduction__visual {
    padding-block: 30px;
}

.lpd-home-introduction .lpd-home-introduction__title {
    margin-block: 0 22px;
    text-wrap: balance;
}

.lpd-home-introduction .lpd-home-introduction__text {
    margin-block: 0 22px;
}

.lpd-home-introduction .is-style-lpd-framed-testimonial {
    width: 60%;
    margin-block-start: 40px;
    margin-inline-start: auto;
}

.wp-block-group.lpd-home-news {
    box-sizing: border-box;
    margin-block-start: 0;
    padding: 48px var(--debrouillards-page-content-padding) 84px;
}

.lpd-home-news .lpd-home-news__heading-row {
    gap: 20px 32px;
    margin-block: 0;
}

.lpd-home-news .lpd-home-news__heading {
    flex: 1 1 800px;
    margin: 0;
}

.lpd-home-news .lpd-home-news__archive {
    margin: 0;
    font-size: var(--wp--preset--font-size--medium, 24px);
    font-weight: var(--wp--custom--lpd--weight--bold, 700);
    line-height: 1.2;
}

.lpd-home-news .lpd-home-news__archive a {
    color: var(--wp--preset--color--pink, #e6007e);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lpd-home-news .lpd-home-news__intro {
    margin-block: 20px 0;
}

.lpd-home-news .lpd-latest-news {
    width: 75%;
    max-width: none;
    margin: 42px auto 0;
}

.lpd-home-news .lpd-latest-news__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lpd-home-news .lpd-latest-news__card {
    display: grid;
    grid-template-columns: minmax(0, 25.5%) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    border: 3px solid #111111;
    background: #eff1f2;
    box-shadow: 8px 9px 0 0 #111111;
    color: #111111;
}

.lpd-home-news .lpd-latest-news__card:not(:has(.lpd-latest-news__photo)) {
    grid-template-columns: minmax(0, 1fr);
}

.lpd-home-news .lpd-latest-news__photo {
    position: relative;
    align-self: stretch;
    min-width: 0;
    min-height: 172px;
    height: auto;
    margin: 0;
}

.lpd-home-news .lpd-latest-news__photo a {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
}

.lpd-home-news .lpd-latest-news__photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.lpd-home-news .lpd-latest-news__content {
    align-self: center;
    min-width: 0;
    margin: 0;
    padding: 18px 22px 20px;
}

.lpd-home-news .lpd-latest-news__meta {
    gap: 10px 18px;
    margin: 0;
}

.lpd-home-news .lpd-latest-news__category {
    width: fit-content;
    padding: 7px 12px;
    background: #00b1eb;
    color: #111111;
    font-size: var(--wp--preset--font-size--eyebrow, 16px);
    font-weight: var(--wp--custom--lpd--weight--extrabold, 800);
    line-height: 1.1;
    text-transform: uppercase;
}

.lpd-home-news .lpd-latest-news__category a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.lpd-home-news .lpd-latest-news__date {
    margin: 0;
    color: #111111;
    font-size: var(--wp--preset--font-size--figure-label, 20px);
    font-weight: var(--wp--custom--lpd--weight--bold, 700);
    line-height: 1.2;
}

.lpd-home-news .lpd-latest-news__title {
    margin: 12px 0 6px;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: var(--wp--preset--font-size--x-large, 32px);
    font-weight: var(--wp--custom--lpd--weight--black, 900);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.lpd-home-news .lpd-latest-news__title a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.lpd-home-news .lpd-latest-news__title a:hover,
.lpd-home-news .lpd-latest-news__category a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lpd-home-news .lpd-latest-news__excerpt,
.lpd-home-news .lpd-latest-news__excerpt p {
    margin: 0;
}

.lpd-home-news a:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

.lpd-home-news .lpd-latest-news__photo a:focus-visible {
    outline-offset: -4px;
}

.wp-block-group.lpd-home-mission {
    box-sizing: border-box;
    margin-block-start: 0;
    padding: 84px var(--debrouillards-page-content-padding) 80px;
    background: #e6f1f6;
}

.lpd-home-mission .lpd-home-mission__title {
    margin-block: 0 34px;
}

.lpd-home-mission .lpd-home-mission__columns {
    width: 100%;
    max-width: none;
    gap: clamp(32px, 4vw, 60px);
    margin-block: 0;
    margin-inline: auto !important;
}

.lpd-home-mission .lpd-home-mission__copy {
    order: 2;
    min-width: 0;
}

.lpd-home-mission .lpd-home-mission__evidence {
    order: 1;
    min-width: 0;
}

.lpd-home-mission .lpd-home-mission__text {
    margin-block: 0 20px;
}

.lpd-home-mission .lpd-home-mission__text:last-child {
    margin-block-end: 0;
}

.lpd-home-mission .lpd-home-mission__subtitle {
    margin-block: 0 14px;
}

.lpd-home-mission .lpd-home-mission__figures {
    display: grid;
    gap: 18px;
    margin: 0;
}

.lpd-home-mission .is-style-lpd-framed-testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 2.2vw, 32px);
    width: 100%;
    min-height: clamp(96px, 10.7vw, 154px);
    margin-block-start: 22px;
    padding: clamp(12px, 1.4vw, 20px);
    transform: none;
}

.lpd-home-mission .is-style-lpd-framed-testimonial > p {
    margin: 0;
}

.wp-block-group.lpd-home-contact {
    box-sizing: border-box;
    margin-block-start: 0;
    padding: 0 max(24px, 4.2vw) 80px;
}

.lpd-home-contact > .is-style-lpd-eyebrow {
    margin-inline: 0 !important;
}

.lpd-home-contact .lpd-home-contact__title {
    margin-block: 22px 32px;
}

.lpd-home-contact .lpd-home-contact__columns {
    width: 100%;
    max-width: none;
    gap: clamp(32px, 4vw, 60px);
    margin-block: 0;
    margin-inline: auto !important;
}

.lpd-home-contact .lpd-home-contact__copy,
.lpd-home-contact .lpd-home-contact__evidence {
    min-width: 0;
}

.lpd-home-contact .lpd-home-contact__text {
    margin-block: 0 38px;
}

.lpd-home-contact .is-style-lpd-framed-testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 1.95vw, 28px);
    width: 85%;
    min-height: clamp(96px, 8.85vw, 128px);
    margin: 30px auto 0;
    transform: rotate(2.5deg);
}

.lpd-home-contact .is-style-lpd-framed-testimonial > p {
    margin: 0;
}

@media (max-width: 1100px) and (min-width: 782px) {
    .wp-block-group.lpd-home-hero {
        padding-inline: var(--debrouillards-page-hero-padding);
    }
}

@media (max-width: 781px) {
    .wp-block-group.lpd-home-hero {
        padding: var(--debrouillards-page-hero-top) var(--debrouillards-page-hero-padding) var(--debrouillards-page-hero-bottom);
    }

    .lpd-home-hero .lpd-home-hero__columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .lpd-home-hero .lpd-home-hero__copy {
        display: contents;
    }

    .lpd-home-hero .is-style-lpd-eyebrow {
        grid-row: 1;
    }

    .lpd-home-hero .lpd-home-hero__title {
        grid-row: 2;
    }

    .lpd-home-hero .lpd-home-hero__intro {
        grid-row: 4;
    }

    .lpd-home-hero .lpd-home-hero__copy > .wp-block-buttons {
        grid-row: 5;
        margin-block-start: 0;
    }

    .lpd-home-hero .is-style-lpd-eyebrow {
        font-size: var(--wp--preset--font-size--eyebrow, 16px);
    }

    .lpd-home-hero .wp-block-column.lpd-home-hero__visual {
        grid-row: 3;
        width: 86%;
        max-width: min(86%, 510px);
        margin: 12px auto 38px;
    }

    .wp-block-group.lpd-home-introduction {
        padding: 18px 24px 64px;
    }

    .lpd-home-introduction .lpd-home-introduction__columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .lpd-home-introduction .lpd-home-introduction__copy {
        display: contents;
    }

    .lpd-home-introduction .wp-block-column.lpd-home-introduction__visual {
        grid-row: 2;
        width: 86%;
        max-width: min(86%, 510px);
        margin: 12px auto 28px;
    }

    .lpd-home-introduction .lpd-home-introduction__title {
        grid-row: 1;
    }

    .lpd-home-introduction .lpd-home-introduction__text {
        grid-row: 3;
    }

    .lpd-home-introduction .lpd-home-introduction__copy > .wp-block-buttons {
        grid-row: 4;
        margin-block-start: 0;
    }

    .lpd-home-introduction .is-style-lpd-framed-testimonial {
        grid-row: 5;
        width: 85%;
        margin: 24px auto 0;
    }

    .wp-block-group.lpd-home-news {
        padding: 32px var(--debrouillards-page-content-padding) 64px;
    }

    .lpd-home-news .lpd-home-news__heading {
        flex-basis: 100%;
    }

    .lpd-home-news .lpd-home-news__archive {
        font-size: var(--wp--preset--font-size--figure-label, 20px);
    }

    .lpd-home-news .lpd-latest-news {
        width: 100%;
        margin-block-start: 28px;
    }

    .lpd-home-news .lpd-latest-news__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .lpd-home-news .lpd-latest-news__photo {
        height: auto;
        min-height: 0;
    }

    .lpd-home-news .lpd-latest-news__photo a {
        position: static;
        inset: auto;
        height: auto;
    }

    .lpd-home-news .lpd-latest-news__photo img {
        position: static;
        inset: auto;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 2;
    }

    .lpd-home-news .lpd-latest-news__content {
        padding: 18px;
    }

    .lpd-home-news .lpd-latest-news__title {
        font-size: var(--wp--preset--font-size--x-large, 24px);
    }

    .lpd-home-news .lpd-latest-news__date {
        font-size: var(--wp--preset--font-size--figure-label, 20px);
    }

    .wp-block-group.lpd-home-mission {
        padding: 64px var(--debrouillards-page-content-padding);
    }

    .lpd-home-mission .lpd-home-mission__title {
        margin-block-end: 26px;
    }

    .lpd-home-mission .lpd-home-mission__columns {
        gap: 32px;
    }

    .lpd-home-mission .lpd-home-mission__copy {
        order: 1;
    }

    .lpd-home-mission .lpd-home-mission__evidence {
        order: 2;
    }

    .lpd-home-mission .lpd-home-mission__figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .lpd-home-mission .is-style-lpd-framed-testimonial {
        width: 85%;
        min-height: 96px;
        margin: 20px auto 0;
    }
    .wp-block-group.lpd-home-contact {
        padding: 0 24px 64px;
    }
    .lpd-home-contact .lpd-home-contact__title {
        margin-block: 22px 26px;
    }
    .lpd-home-contact .lpd-home-contact__columns {
        gap: 38px;
    }
    .lpd-home-contact .lpd-home-contact__text {
        margin-block-end: 24px;
    }
    .lpd-home-contact .is-style-lpd-framed-testimonial {
        width: 85%;
        margin-block-start: 20px;
    }
}
