/*
Theme Name: Platz Blank Theme
Theme URI: https://www.platz-studio.fr/
Author: Kevin WILHELM @ PLATZ SAS
Author URI: https://www.platz-studio.fr/
Description: Thème vide
Version: 1.0
Text Domain: platz
*/


/*^ ------------------------------- wp reset -------------------------------- */
    /*@media (min-width: 800px) {
        body > [class*="wp-block-"],
        body > p,
        body > ul,
        p.has-background,
        .wp-block-preformatted.has-background,
        ol.has-background, ul.has-background,
        h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background,
        .wp-block-columns.has-background {
            padding: 1.25em !important;
        }
    }*/
    blockquote, em {font-style:italic;}
    p {text-align: justify;}
/*^ -------------------------------- General -------------------------------- */
    .home h1 {
        text-align: center;
        font-size: 3em;
    }
    body {padding-top: 100px;color:#000;}/*54595F*/
    body > .attachment-post-thumbnail {
        width: 100%;
        height: auto;
        min-height: 300px;
        max-height: 500px;
        object-fit: cover;
        object-position: top center;
    }
    body > div, body > div, body > .attachment-post-thumbnail, body > p {
        margin-bottom: 0;
    }
    a {color: inherit;transition: all .2s linear;}
    a:hover, .current-menu-item > a, .current-menu-parent > a {color: #1333cf;}
    body > h1, body > h2, body > h3, body > h4, body > h5, body > h6 {
        width: min(100%, 1140px);
        margin: 0 auto;
        padding: 0;
    }
    h1 {
        font-weight: 900;
        margin-bottom: 0;
        padding: 1em 0.25em !important;
    }
    body > h2 {
        padding: 1.25em 1.25em 0.5em 1.25em !important;
    }
    body > [class*="wp-block-"],
    body > p,
    body > ul {
        width: min(100%, 1140px);
        margin: 0 auto;
        padding: 0;
        padding: 0 2.375em 1.25em 2.375em;
    }

    body > [class*="wp-block-"] h2 {
        padding-bottom: .25em;
    }
    body > [class*="wp-block-"] ul,
    body > [class*="wp-block-"] p {
        padding-bottom: .5em;
    }

    .wp-block-columns {
        gap: 1.25em;
    }
    .wp-block-column figure.wp-block-image {
        text-align: center;
    }
    .wp-block-column figure.wp-block-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
    .wp-block-column figure.wp-block-image figcaption {
        font-weight: bold;
    }
    .wp-block-group .wp-block-columns {
    }
    body > .has-background {
        position: relative;
        z-index: 1;
        p {
            padding: 1.25em 0;
        }

    }
    body > .has-background::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50vw);
        background: inherit;
        width: 100vw;
        height: 100%;
        z-index: -1;
    }
    [class*="wp-block-"] ul,
    body > ul  {
        padding-left: 2em;
        list-style-type: disc;
    }
    .wp-block-embed-youtube iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        display: block;
    }
/*^ -------------------------------- header --------------------------------- */
    header {
        top: 0;
        left: 0;
        position: fixed;
        z-index: 99;
        height: 100px;
        padding: max(3vh, 1rem);
        display: flex;
        background: #ffffff;
        width: 100%;
        gap: max(3vh, 1rem);
    }

    header .logo {
        width: auto;
    }
    header .logo > * {
        height: 100%;
        width: 41px;
        object-fit: contain;
        display: block;
        max-width: none;
    }
    header .site-informations {
        flex: 0 0 auto;
        align-self: center;
        line-height: 1;
    }
    header .site-name {
        font-weight: bold
    }
    header .site-description {
        font-size: var(--step--1);
        font-weight: 300;
    }
    /*^ ---------------------------------- Nav ---------------------------------- */
        header nav {
            flex: 1;
            align-self: flex-end;
            font-weight: 300;
        }
        header nav > ul {
            display: flex;
            width: 100%;
            justify-content: flex-end;
            gap: 1.25em;
            font-size: var(--step--1);
            li {
                position: relative;
                ul {
                    opacity: 0;
                    pointer-events: none;
                    position: absolute;
                    display: flex;
                    flex-direction: column;
                    top: 100%;
                    right: -0.5em;
                    min-width: 100%;
                    background: #FFF;
                    padding: 0 0.5em 0.5em 0.5em;
                    white-space: nowrap;
                }
                &:hover {
                    ul {
                        opacity: 1;
                        pointer-events: all;
                    }
                }
            }
        }

        header nav ul a {
            text-decoration: none;
        }
        @media (max-width: 800px) {
            header .site-informations {
                flex: 1;
            }
            header nav {
                display: none;
                position: fixed;
                top: 100px;
                left: 0;
                width: 100%;
                height: calc(100% - 100px);
                background: #FFF;
            }
            header nav > ul {
                height: 100%;
                flex-direction: column;
                justify-content: center;
                align-content: center;
                text-align: center;
                font-size: var(--step-2);
                li {
                    ul {
                        position: static;
                        opacity: 1;
                        pointer-events: all;
                    }

                }
            }
        }
        /*^ ------------------------------- Hamburger ------------------------------- */
            .hamburger-menu {
                background-color: transparent;
                border: none;
                cursor: pointer;
                display: none;
                padding: 0;
                flex: 0 0 calc(100px - max(3vh, 1rem));
            }
            @media (max-width: 800px) {
                .hamburger-menu {
                    display: flex;
                }
                header .hamburger-menu.opened + nav {
                    display: block;
                }
            }
            .hamburger-menu svg {
                height: 100%;
                aspect-ratio: 1;
                display: block;
                margin-left: auto;
            }
            .hamburger-menu svg .line {
                fill: none;
                stroke: black;
                stroke-width: 6;
                transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
            }
            .hamburger-menu svg .line1 {
                stroke-dasharray: 60 207;
                stroke-width: 6;
            }
            .hamburger-menu svg .line2 {
                stroke-dasharray: 60 60;
                stroke-width: 6;
            }
            .hamburger-menu svg .line3 {
                stroke-dasharray: 60 207;
                stroke-width: 6;
            }
            .hamburger-menu.opened svg .line1 {
                stroke-dasharray: 90 207;
                stroke-dashoffset: -134;
                stroke-width: 6;
            }
            .hamburger-menu.opened svg .line2 {
                stroke-dasharray: 1 60;
                stroke-dashoffset: -30;
                stroke-width: 6;
            }
            .hamburger-menu.opened svg .line3 {
                stroke-dasharray: 90 207;
                stroke-dashoffset: -134;
                stroke-width: 6;
            }
/*^ -------------------------------- footer --------------------------------- */
    footer {
        background: #3A3A3A;
        color: #ffffff;
        padding: 1.25em 0 10px 0;
    }
    footer hr {
        background: #DED8CE;
        height: 2px;
        width: 100%;
        margin: .5em 0;
    }
    footer > div {
        width: min(90%, 1140px);
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    footer > div > div {
        flex: 1;
        font-size: var(--step--2);
        text-align: center;
    }
    footer > div:first-child > div b {
        font-size: var(--step-0);
    }

    footer > div > div img {
        display: block;
        margin: auto;
        max-height: 90px;
    }
