header[role="banner"] {
    min-height: 100vh;
    background-color: var(--z-global-color-primary);
    background-image: url("https://static.zoan.fr/uploads/2024/03/home-hero.webp");
    background-size: cover;
}

header[role="banner"] .logo {
    transform: translateX(calc(50vw - 90px));
    fill: white;
    opacity: 0;
}

header[role="banner"]::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    background-blend-mode: multiply;
    background-color: var(--z-global-color-primary);
    position: absolute;
    top: 0;
    left: 0;
}

#menu-toggle {
    fill: var(--z-global-color-secondary);
}

main {
    display: flex;
    flex-direction: column;
}

h1 {
    width: 100%;
    text-align: center;
    font-size: 33px;
    line-height: 1.2em;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
    z-index: 1;
    opacity: 0;
}

.menu-opened h1 {
    opacity: 0;
}

h1 span {
    font-size: 0.7em;
    font-weight: 300;
    margin: 10px;
    display: block;
    opacity: 0;
}

h1 span:first-child {
    color: #f8b9f6;
}
h1 span:nth-child(2) {
    color: #11e2f4;
}
h1 span:nth-child(3) {
    color: var(--z-global-color-accent);
}

h2 {
    font-size: 35px;
    font-weight: 200;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
}

.sub-title {
    font-size: 38px;
    font-weight: 500;
    text-align: center;
}

section img {
    max-width: 100%;
    height: auto;
}

main > section:first-child {
    order: 1;
}

main > section:nth-child(2) {
    order: 2;
}

main > section:nth-child(3) {
    order: 3;
}

main > section:nth-child(4) {
    order: 5;
}

main > section:last-child {
    order: 4;
}

section#scr {
    background-color: var(--z-global-color-primary);
}

.dark h2,
.dark p {
    color: white;
}

/* Gutenberg */

.wp-block-button__link {
    margin-top: 20px;
}

.dark .wp-block-button__link {
    color: white;
    border-color: white;
}

.dark .wp-block-button__link:hover {
    background-color: white;
    color: var(--z-global-color-primary);
}

section#zoan,
section#zoanews {
    background-color: var(--z-global-color-bg1);
}

section#zoanews {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0px 40px;
}

section#zoanews .wp-block-buttons {
    margin: 40px 0 0;
}

section#zoan h2 {
    font-size: 22px;
    text-transform: none;
}

section#zoanews h2,
section#zoanews p {
    width: 100%;
}

section#zoanews > h2 {
    margin-bottom: 40px;
}

@media (min-width: 1030px) {
    h1 {
        font-size: 64px;
        padding: 0 calc((100vw - 1000px) / 2) 0 calc((100vw - 1000px) / 2);
    }
    h1 span {
        display: inline-block;
    }
    section#zoanews {
        padding: 80px calc((100vw - 1400px) / 2) 0 calc((100vw - 1400px) / 2);
    }
    section#zoanews.category article {
        width: calc(100% / 3 - 30px);
    }
    main
        section:nth-child(even)
        .wp-block-columns
        .wp-block-column:first-child {
        flex-basis: 60%;
    }
    main section:nth-child(even) .wp-block-columns .wp-block-column:last-child {
        flex-basis: 40%;
    }
    main section:nth-child(odd) .wp-block-columns .wp-block-column:first-child {
        flex-basis: 40%;
    }
    main section:nth-child(odd) .wp-block-columns .wp-block-column:last-child {
        flex-basis: 60%;
    }
    main
        section:nth-child(odd)
        .wp-block-columns
        .wp-block-column:last-child
        .wp-block-image {
        height: 100%;
    }
    main
        section:nth-child(odd)
        .wp-block-columns
        .wp-block-column:last-child
        .wp-block-image
        img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .wp-block-columns {
        gap: 0px 40px;
    }

    .wp-block-button {
        margin-top: 40px;
    }
}
