/**
* Theme Name: Tuilex
* Description: Theme enfant du thème WP Made Simple de Publigo
* Author: Hervé - Publigo
* Author URI: https://www.publigo.fr
* Template: wpms-theme 
* Version: 1.0
* Text Domain: tuilex
*/

/*****************************************************
* Ajout de ces lignes au début du fichier style.css du thème enfant (:root et body à ajuster en fonction de la taille du texte en pixels sur une page intérieure de la maquette)
*******************************************************/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --base-size: 1.4rem;
    --height-btn-menu-mobil: 0rem;

    --pu-trs: all .2s;
    --pu-defaut-color: #333;

    --blue: #16286A;
    --blue-sky: #0083C8;
    --yellow: #FAD815;
    --brown: #927F79;
}

html,
body {
    overflow-x: hidden;
}

html {
    font-size: 62.5%;
    max-width: 1920px;
    min-height: 100dvh;
    /*    box-shadow: 0 0 4px rgba(0,0,0,0.42);*/
    /*    background: #eee;*/
    margin: auto;
    overflow-x: hidden;
}

body {
    font-family: "inter", Verdana, sans-serif;
    font-size: 16px;
    color: var(--pu-defaut-color);
    font-weight: 400;
    line-height: 2.4rem;
    position: relative;
    padding-bottom: 5rem;

    @media screen and (min-width: 48em) {
        padding-bottom: 0;
    }
}

*:not(.fancybox-content, .fancybox-content *) {
    transition:
        transform 0.25s,
        fill 0.25s,
        color 0.25s,
        background 0.25s,
        padding 0.25s,
        width 0.25s,
        stroke 0.25s,
        max-height 0.25s;
}

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

@media screen and (min-width: 48em) {
    html {
        font-size: 54%;
    }
}

@media screen and (min-width: 62em) {
    html {
        font-size: 58%;
    }
}

@media screen and (min-width: 75em) {
    html {
        font-size: 62.5%;
    }
}

ul {
    margin: 0;
    list-style: none;
}

/*HEADER*/
@media(min-width:769px) {

    #site_header {
        position: fixed;
        display: flex;
        padding: 0 min(8.8vw, 16rem);
        align-items: center;
        justify-content: space-between;
        height: min(7.315vw, 13.3rem);
        z-index: 10;

        & .open_menu {
            display: none;
        }

        & #navs {
            position: relative;
            flex-direction: column;
            align-items: flex-end;

            & .quicknav {
                display: flex;
            }

            & #top-menu {
                display: flex;

                &>.menu-item {

                    >a {
                        display: flex;
                        align-items: center;
                        height: min(3.135vw, 5.7rem);

                        &:hover {
                            color: var(--yellow);
                        }
                    }

                    &:hover ul {
                        transform: scale(1) translateX(-50%);
                    }

                    & ul {
                        position: absolute;
                        z-index: 10;
                        top: 100%;
                        left: 50%;
                        transform: scale(0) translateX(-50%);
                        transform-origin: top left;
                    }
                }
            }
        }
    }
}

#site_header {
    background: #fff;
    width: 100%;

    & #logo {
        display: flex;
        align-items: center;
        justify-content: space-between;

        & img {
            display: block;
            width: min(11.275vw, 20.5rem);
            height: auto;
        }

        & .open_menu {
            align-items: center;
            padding: min(0.55vw, 1rem);
            margin-right: calc(min(0.55vw, 1rem) * -1);

            & path {
                & svg {
                    width: min(0.99vw, 1.8rem);
                    height: auto;
                }

                fill: var(--blue);
            }
        }
    }

    & #navs {
        display: flex;

        & .quicknav .quickNavItem {
            display: flex;
            align-items: center;

            &:not(:last-child):after {
                content: "";
                display: block;
                width: min(0.33vw, 0.6rem);
                height: min(0.33vw, 0.6rem);
                background: #D9D9D9;
                margin: 0 min(1.32vw, 2.4rem);
            }

            & a {
                display: flex;
                align-items: center;
                gap: min(0.33vw, 0.6rem);
                color: var(--blue);
                font-size: 1.4rem;
                line-height: 1.86;

                &:hover svg {
                    transform: rotateY(180deg);

                    & path {
                        fill: var(--blue);
                    }
                }

                & svg {
                    max-width: min(0.66vw, 1.2rem);
                    max-height: min(0.77vw, 1.4rem);

                    & path {
                        fill: var(--yellow);
                    }
                }
            }
        }

        & #top-menu>.menu-item {
            position: relative;
            padding: min(1.375vw, 2.5rem) 0;

            >a {
                padding: min(1.1vw, 2rem);
                color: var(--blue);
                font-size: clamp(1.1rem, 1.1vw, 1.4rem);
                font-weight: 600;
                line-height: 1.86;
                text-transform: uppercase;

                &:hover {
                    color: var(--yellow);
                }
            }

            &:last-child {
                padding-right: 0;
                padding-left: min(1.1vw, 2rem);

                &>a {
                    background: var(--yellow);
                    border-radius: min(0.44vw, 0.8rem);
                    text-transform: none;

                    &:hover {
                        background: var(--blue);
                        color: #fff;
                    }
                }
            }

            & ul {
                padding: min(1.925vw, 3.5rem) min(2.805vw, 5.1rem);
                background: var(--blue);
                border-radius: 0 0 min(1.1vw, 2rem) min(1.1vw, 2rem);
                list-style: none;
                margin: 0;

                & a {
                    display: block;
                    width: max-content;
                    color: #FFF;
                    font-size: 1.4rem;
                    line-height: 1.86;
                    text-transform: uppercase;
                    padding: min(1.21vw, 2.2rem) min(0.66vw, 1.2rem);

                    &:hover {
                        padding:
                            min(1.21vw, 2.2rem) min(1.32vw, 2.4rem) min(1.21vw, 2.2rem) 0;
                        color: var(--yellow);
                    }
                }

                & li:not(:last-child) {
                    border-bottom: solid min(0.11vw, 0.2rem) #fff3;
                }
            }
        }
    }
}

main:is(#site-main, #main) {
    margin-top: min(7.315vw, 13.3rem);
    overflow: hidden;
}

form.wpcf7-form input[type="submit"] {
    border-radius: 0.8rem;
    background-color: var(--yellow);
    color: var(--blue);
    padding: 1.4rem 2.1rem;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.1;

    &:hover,
    &:focus-within {
        background-color: var(--blue-sky);
        color: #fff;
    }
}

/*HOME BANNER*/

div#home_banner {
    position: relative;
    padding: 0 min(1.1vw, 2rem);

    & img {
        border-radius: min(1.1vw, 2rem);
        display: block;
    }

    & div#home_banner_content {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0 min(1.1vw, 2rem);
        width: calc(100% - min(2.2vw, 4rem));
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 41.36%, rgba(0, 0, 0, 0.35) 92.66%);
        border-radius: min(1.1vw, 2rem);
        height: 100%;
        padding: min(3.08vw, 5.6rem) min(7.7vw, 14rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        & .title {
            color: #FFF;
            font-size: clamp(3.3rem, 3.3vw, 6rem);
            font-weight: 900;
            line-height: 1.2;
            position: relative;
            margin: 0;
            padding-bottom: min(4.95vw, 9rem);

            & span {
                font-size: clamp(2.2rem, 2.2vw, 4rem);
                display: inline-block;
                position: relative;
                transform: translate(min(1.65vw, 3rem), min(1.1vw, 2rem)) rotate(35deg);
                color: var(--yellow);
            }

            &:before {
                font-size: clamp(2.2rem, 2.2vw, 4rem);
                display: block;
                color: var(--yellow);
                content: '|';
                position: absolute;
                top: 0;
                left: 0;
                transform: translate(calc(min(1.65vw, 3rem) * -1), calc(min(1.1vw, 2rem) * -1)) rotate(35deg);
            }
        }

        & .excerpt {
            color: #FFF;
            font-size: clamp(1.4rem, 1.1vw, 2rem);
            font-weight: 600;
            line-height: 1.4;
        }

        & .links {
            margin-top: min(1.1vw, 2rem);
            display: flex;
            gap: min(0.88vw, 1.6rem);

            & a {
                display: block;
                background: var(--yellow);
                border-radius: min(0.44vw, 0.8rem);
                padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
                color: var(--blue);
                font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                font-weight: 500;
                line-height: 1.2;

                &:last-child {
                    background: #fff;
                }

                &:hover {
                    background: var(--blue);
                    color: #fff;
                }
            }
        }
    }
}

/*HOME SLIDER*/

div#home_slider {
    padding-top: min(6.93vw, 12.6rem);
    margin-bottom: min(8.965vw, 16.3rem);

    & svg {
        display: block;
        margin: auto;
    }

    & h2.title {
        margin-bottom: min(4.95vw, 9rem);

        & span {
            display: block;
            text-align: center;
            color: var(--blue);
            line-height: 1.8;
            text-transform: uppercase;

            &.subtext-0 {
                font-size: clamp(1.7rem, 1.375vw, 2.5rem);
                font-weight: 700;
            }

            &.subtext-1 {
                font-size: clamp(3.025rem, 3.025vw, 5.5rem);
                font-weight: 200;
            }
        }
    }

    & nav {
        max-width: min(70.4vw, 128rem);
        margin: 0 auto min(3.41vw, 6.2rem);
        border-bottom: solid min(0.055vw, 0.1rem) #16286A33;
        position: relative;

        &:after,
        &:before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            z-index: 2;
        }

        &:after {
            left: 100%;
            background: linear-gradient(90deg, transparent 0, #fff 10%);
        }

        &:before {
            right: 100%;
            background: linear-gradient(90deg, #fff 90%, transparent);
        }

        & .navbar {
            display: flex;
            gap: min(4.4vw, 8rem);
            width: max-content;
            padding-left: 50%;
            position: relative;
            z-index: 1;

            & .slide_btn {
                color: var(--blue);
                text-align: center;
                font-size: clamp(1.4rem, 0.99vw, 1.8rem);
                font-weight: 400;
                line-height: 1.11;
                padding-bottom: min(1.1vw, 2rem);
                user-select: none;

                &:not(.active) {
                    cursor: pointer;
                }
            }
        }

        & .activeBar {
            position: absolute;
            bottom: min(-0.055vw, -0.1rem);
            height: min(0.165vw, 0.3rem);
            width: min(0.275vw, 0.5rem);
            background: #000;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;

            & svg {
                height: min(0.495vw, 0.9rem);
                width: min(0.495vw, 0.9rem);
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }

    & .home_slides {
        max-width: min(70.4vw, 128rem);
        margin: 0 auto;
        border-bottom: solid min(0.055vw, 0.1rem) #16286A33;
        position: relative;

        img {
            display: block;
            width: min(70.4vw, 128rem);
            height: auto;
        }

        & .slides_bar {
            display: flex;
            width: max-content;
            gap: min(2.2vw, 4rem);

            & .slide {
                position: relative;
                user-select: none;

                & .home_slide {
                    border-radius: min(1.1vw, 2rem);
                    display: block;
                }

                & .slide_content {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    padding: min(4.4vw, 8rem);
                    border-radius: min(1.1vw, 2rem);
                    background: linear-gradient(900deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.00) 100%);

                    & h3.title {
                        color: #FFF;
                        font-size: clamp(1.65rem, 1.65vw, 3rem);
                        font-weight: 700;
                        line-height: 1.1;
                    }

                    & .sub_title {
                        color: #FFF;
                        font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                        line-height: 1.4;
                        margin-bottom: min(2.64vw, 4.8rem);
                    }

                    & a {
                        display: inline-block;
                        padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
                        border-radius: min(0.44vw, 0.8rem);
                        color: #FFF;
                        font-size: 1.4rem;
                        font-weight: 500;
                        line-height: 1.2;

                        &:hover {
                            background: #fff !important;
                            color: var(--blue);
                        }
                    }
                }

                &:not(.active) {
                    cursor: pointer;
                }
            }
        }
    }
}

/*HOME CONTENT*/

div#home_content {
    max-width: min(57.2vw, 104rem);
    margin: auto;
    position: relative;
    margin-bottom: 48rem;

    & svg {
        position: absolute;
        top: min(3.025vw, 5.5rem);
        left: 0;
        z-index: 1;
        width: min(100vw, 192rem);
    }

    & h2,
    & h1 {
        color: var(--blue);
        font-size: clamp(2.2rem, 2.2vw, 4rem);
        font-weight: 400;
        line-height: 1.125;
        text-transform: uppercase;
        text-align: center;
        max-width: min(38.83vw, 70.6rem);
        margin: auto;

        &:after {
            content: "";
            display: block;
            width: 100%;
            height: min(0.66vw, 1.2rem);
            background-image: url(assets/images/deco-title.jpg);
            background-repeat: no-repeat;
            background-position: center;
            margin: min(1.54vw, 2.8rem) 0 min(2.145vw, 3.9rem);
        }
    }

    & :is(p, div, li) {
        color: #525769;
        text-align: center;
        font-size: clamp(1.4rem, 0.88vw, 1.6rem);
        line-height: 1.8;
        position: relative;
        z-index: 2;
    }

    & a {
        color: var(--blue);

        &:hover {
            color: var(--yellow);
        }
    }
}

/*HOME NUMBERS*/

div#home_numbers {
    position: relative;
    z-index: 2;

    & section {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
    }

    & .pannel {
        max-width: min(70.4vw, 128rem);
        margin: auto;
        background: var(--blue);
        border-radius: min(1.1vw, 2rem);
        padding:
            min(5.225vw, 9.5rem) min(2.53vw, 4.6rem) min(2.475vw, 4.5rem);
        transform: translateY(-50%);

        & h2 {
            padding: 0 min(1.87vw, 3.4rem);
            color: #FFF;
            font-size: clamp(2.2rem, 2.2vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: min(1.815vw, 3.3rem);
        }

        & .subtitle {
            color: #FFF;
            font-size: clamp(1.4rem, 0.99vw, 1.8rem);
            line-height: 1.4;
            margin-bottom: min(1.98vw, 3.6rem);
        }

        .list {
            display: flex;
            justify-content: space-between;
            gap: min(1.265vw, 2.3rem);
            align-items: flex-end;

            & .number {
                flex: 1;
                background: #fff;
                border-radius: min(0.44vw, 0.8rem);
                padding: min(2.75vw, 5rem) min(1.375vw, 2.5rem);

                & .value {
                    color: var(--blue);
                    font-size: clamp(2.75rem, 2.75vw, 5rem);
                    font-weight: 800;
                    line-height: 0.8;
                    margin-bottom: min(2.475vw, 4.5rem);
                }

                & .excerpt {
                    color: var(--blue);
                    font-size: 1.4rem;
                    font-weight: 600;
                    line-height: 1.4;
                }
            }
        }
    }
}

/*THEMATIC 1*/

div#home_search_applicateurs {
    position: relative;
    z-index: 2;
}

div#thematic1 {
    position: relative;
    display: flex;
    justify-content: center;
    gap: min(2.365vw, 4.3rem);
    padding-top: 38.4rem;
    padding-bottom: min(5.5vw, 10rem);
    background: #f9f9f9;
    z-index: 1;
    align-items: flex-start;

    &>svg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%);
        z-index: 1;
        width: min(100vw, 192rem);
    }

    &>div {
        position: relative;
        z-index: 2;
        border-radius: min(1.1vw, 2rem);
        overflow: hidden;

        & img {
            display: block;
            width: min(42.2vw, 76.7rem);
        }

        &#t1_left {

            &:after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 29.77%, rgba(0, 0, 0, 0.46) 83.12%);
                z-index: 1;
            }

            & .content {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 2;
                padding: min(3.355vw, 6.1rem) min(2.915vw, 5.3rem);

                & .title {
                    color: #FFF;
                    font-size: clamp(1.925rem, 1.925vw, 3.5rem);
                    font-weight: 800;
                    line-height: 1.1;
                }

                & .excerpt {
                    color: #FFF;
                    font-size: clamp(1.4rem, 0.99vw, 1.8rem);
                    font-weight: 400;
                    line-height: 1.4;
                    margin-bottom: min(2.475vw, 4.5rem);
                }

                & a {
                    display: flex;
                    padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
                    justify-content: center;
                    align-items: center;
                    gap: min(0.55vw, 1rem);
                    border-radius: min(0.44vw, 0.8rem);
                    background: #FFF;
                    color: var(--blue);
                    font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                    font-weight: 500;
                    line-height: 1.7;

                    &:hover {
                        background: var(--blue);
                        color: #fff;
                    }
                }
            }
        }

        &#t1_right {
            & img {
                display: block;
                width: min(25.4vw, 46.1rem);
            }

            & .content {
                position: absolute;
                bottom: 0;
                left: 0;
                padding:
                    min(3.245vw, 5.9rem) min(1.485vw, 2.7rem);
                background: var(--yellow);
                border-radius: 0 min(1.1vw, 2rem) min(1.1vw, 2rem);
                width: min(16.5vw, 30rem);

                & .title {
                    color: var(--blue);
                    font-size: clamp(1.4rem, 1.375vw, 2.5rem);
                    font-weight: 800;
                    line-height: 1;
                    text-transform: uppercase;
                }

                & a {
                    border-radius: min(0.44vw, 0.8rem);
                    background: var(--blue);
                    display: flex;
                    padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
                    justify-content: center;
                    align-items: center;
                    gap: min(0.55vw, 1rem);
                    color: var(--yellow);
                    font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                    font-weight: 500;
                    line-height: 1.7;

                    &:hover {
                        background: #fff;
                        color: var(--blue);
                    }
                }
            }
        }
    }
}

/*POST LIST*/
#recent_post {
    padding-top: min(8.305vw, 15.1rem);
}

div:is(#recent_post, #childs) {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: min(5.61vw, 10.2rem);

    & h2 {
        position: relative;
        color: var(--blue);
        text-align: center;
        font-size: clamp(1.925rem, 1.925vw, 3.5rem);
        line-height: 1.1;
        text-transform: uppercase;
        font-weight: 400;
        margin-bottom: min(3.685vw, 6.7rem);

        & strong {
            font-weight: 800;
        }

        &:before,
        &:after {
            content: "|";
            color: var(--yellow);
            display: inline-block;
            transform: rotate(25deg);
            font-weight: 600;
            margin: min(0.55vw, 1rem);
            line-height: 0.5;
        }

        &:before {
            position: absolute;
            top: 0;
            right: 100%;
        }

        &:after {
            position: relative;
            margin-left: min(0.55vw, 1rem);
        }
    }

    &>a {
        display: inline-block;
        padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
        border-radius: min(0.44vw, 0.8rem);
        border: min(0.055vw, 0.1rem) solid var(--blue);
        color: var(--blue);
        font-size: clamp(1.4rem, 0.825vw, 1.5rem);
        font-weight: 500;
        line-height: 1.2;
        margin-top: min(3.3vw, 6rem);

        &:hover {
            background: var(--blue);
            color: #fff;
        }
    }
}

#post_list {
    display: flex;
    gap: min(1.98vw, 3.6rem);
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 min(12vw, 30rem);

    & img {
        display: block;
        border-radius: min(1.1vw, 2rem);
        width: min(40.3rem, 22.2vw);
    }

    & .date {
        display: flex;
        width: fit-content;
        padding: min(0.715vw, 1.3rem) min(0.77vw, 1.4rem);
        align-items: center;
        gap: min(0.55vw, 1rem);
        border-radius: min(0.55vw, 1rem);
        background: var(--yellow);
        color: var(--blue);
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.2;
        margin-top: calc(min(2.2vw, 4rem) * -1);

        & strong {
            display: block;
            color: var(--blue);
            text-align: center;
            font-size: clamp(1.4rem, 1.21vw, 2.2rem);
            font-weight: 700;
            line-height: 1.2;
        }
    }

    & .excerpt_content {
        width: min(19.36vw, 35.2rem);
        position: relative;
        z-index: 2;
        margin: 0 auto 0;

        & h3 a {
            color: var(--blue);
            font-size: clamp(1.6rem, 1.21vw, 2.2rem);
            font-weight: 700;
            line-height: 1.2;

            &:hover {
                color: var(--yellow);
            }
        }

        & .excerpt {
            color: #525769;
            font-size: clamp(1.4rem, 0.825vw, 1.5rem);
            font-weight: 300;
            line-height: 1.4;
        }

        &>a {
            color: var(--blue);
            font-size: clamp(1.4rem, 0.825vw, 1.5rem);
            font-weight: 500;
            line-height: 1.7;

            &:hover {
                color: var(--yellow);
            }
        }
    }
}

.inner_recent_post {
    background: #f9f9f9;
}

/*THEMATIC 2*/

div#thematic2 {
    display: flex;
    justify-content: center;
    padding: min(5.5vw, 10rem) min(1.1vw, 2rem) min(5.5vw, 10rem);
    position: relative;

    &:after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 50%;
        background: #f9f9f9;
        z-index: 1;
    }

    & img {
        position: relative;
        z-index: 2;
        display: block;
        border-radius: min(1.1vw, 2rem) 0 0 min(1.1vw, 2rem);
    }

    & #t2_buttons {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        &>div {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            padding:
                min(3.85vw, 7rem) min(3.3vw, 6rem) min(2.2vw, 4rem);
            width: min(26.84vw, 48.8rem);

            & .excerpt {
                text-align: center;
                font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                font-weight: 300;
                line-height: 1.4;
            }

            & .title {
                text-align: center;
                font-size: clamp(1.4rem, 1.375vw, 2.5rem);
                font-weight: 800;
                line-height: 1.2;
            }

            & a {
                margin-top: min(1.32vw, 2.4rem);
                display: block;
                padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
                border-radius: min(0.44vw, 0.8rem);
                font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                font-weight: 500;
                line-height: 1.7;
            }

            &#t2_top {
                background: var(--blue);
                border-radius: 0 min(1.1vw, 2rem) 0 0;

                & .title {
                    color: #FFF;
                }

                & .excerpt {
                    color: rgba(255, 255, 255, 0.85);
                }

                & a {
                    background: #FFF;
                    color: var(--blue);

                    &:hover {
                        background: var(--yellow);
                        color: var(--blue);
                    }
                }
            }

            &#t2_bottom {
                background: var(--yellow);
                border-radius: 0 0 min(1.1vw, 2rem) 0;

                & .title {
                    color: var(--blue);
                }

                & .excerpt {
                    color: var(--blue);
                }

                & a {
                    background: var(--blue);
                    color: var(--yellow);

                    &:hover {
                        background: #FFF;
                        color: var(--blue);
                    }
                }
            }
        }
    }
}

/*REINSURANCE */

div#reinsurance_block {
    position: relative;
    background: #f9f9f9;
    padding: min(4.4vw, 8rem) min(1.1vw, 2rem) 0;

    & h2 {
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--blue);
        font-size: clamp(1.925rem, 1.925vw, 3.5rem);
        font-weight: 800;
        line-height: 1.1;
        text-transform: uppercase;

        & span {
            position: relative;

            &:after {
                content: "|";
                position: absolute;
                transform: rotate(25deg);
                color: var(--yellow);
                font-weight: 600;
            }

            &:last-child {
                font-weight: 400;

                &:after {
                    right: calc(min(1.1vw, 2rem) * -1);
                    bottom: calc(min(0.275vw, 0.5rem) * -1);
                }
            }

            &:first-child:after {
                left: calc(min(1.1vw, 2rem) * -1);
            }
        }
    }

    & .items {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: min(2.64vw, 4.8rem);

        & .item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: min(3.85vw, 7rem) 0 min(8.36vw, 15.2rem);

            & svg {
                width: min(4.4vw, 8rem);
                height: min(4.4vw, 8rem);
                margin-bottom: min(1.76vw, 3.2rem);
            }

            & h3 {
                color: var(--blue_tuilex, #16286A);
                text-align: center;
                leading-trim: both;
                text-edge: cap;
                font-family: Inter;
                font-size: clamp(1.6rem, 1.1vw, 2rem);
                font-style: normal;
                font-weight: 700;
                line-height: 1.2;
            }

            & .description {
                color: #525769;
                text-align: center;
                font-size: clamp(1.4rem, 0.825vw, 1.5rem);
                font-style: normal;
                font-weight: 300;
                line-height: 1.4;
            }
        }
    }
}

/*FAQ*/

#faq {
    display: flex;
    align-items: flex-start;
    gap: min(8.8vw, 16rem);
    padding:
        min(6.93vw, 12.6rem) min(17.6vw, 32rem) min(7.865vw, 14.3rem);

    & .left {
        width: min(26.4vw, 48rem);
        flex-shrink: 0;

        & h2 {
            color: var(--blue);
            font-size: clamp(2.64rem, 2.64vw, 4.8rem);
            font-weight: 700;
            line-height: 1.2;
        }

        & .description {
            color: var(--blue);
            font-size: clamp(1.4rem, 0.99vw, 1.8rem);
            line-height: 1.5;
            margin-bottom: min(1.76vw, 3.2rem);

            & strong {
                font-weight: 600;
            }
        }

        & a {
            display: inline-block;
            padding: min(0.88vw, 1.6rem) min(0.99vw, 1.8rem);
            border-radius: min(0.44vw, 0.8rem);
            background: var(--yellow);
            color: var(--blue);
            font-size: clamp(1.4rem, 0.825vw, 1.5rem);
            font-weight: 500;
            line-height: 1.7;

            &:hover {
                background: var(--blue);
                color: #fff;
            }
        }
    }

    & .right {
        & label {
            padding: min(1.1vw, 2rem) 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: min(1.32vw, 2.4rem);
            color: var(--blue);
            font-size: clamp(1.4rem, 1.1vw, 2rem);
            font-weight: 700;
            line-height: 1.4;
            border-top: min(0.055vw, 0.1rem) solid rgba(22, 40, 106, 0.25);
            margin: 0;
            cursor: pointer;

            &:hover {
                color: var(--yellow);
            }

            &:has(~ input:checked) svg {
                transform: rotateX(180deg);
            }
        }

        & input {
            display: none;
        }

        & .answer {
            transform: rotateX(90deg);
            opacity: 0;
            max-height: 0;
            color: var(--blue);
            font-size: clamp(1.4rem, 0.88vw, 1.6rem);
            line-height: 1.5;
            padding-bottom: 0;

            input:checked~& {
                max-height: min(41.25vw, 75rem);
                transform: rotateX(0deg);
                opacity: 1;
                padding-bottom: min(1.32vw, 2.4rem);
            }
        }
    }
}

/*FOOTER*/

footer {
    background-image: url(assets/images/logo_bg.png);
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: var(--blue);
    margin: min(1.1vw, 2rem);
    border-radius: min(1.1vw, 2rem);
    padding:
        min(5.5vw, 10rem) min(16.5vw, 30rem) min(3.85vw, 7rem);

    & #main_footer {
        display: flex;
        justify-content: space-between;
        margin-bottom: min(2.42vw, 4.4rem);

        & img {
            display: block;
            width: min(32rem, 17.6vw);
        }

        & .left {
            & .address {
                margin: min(1.32vw, 2.4rem) 0;
                color: #fff;
                font-size: clamp(1.4rem, 0.88vw, 1.6rem);
                font-weight: 300;
                line-height: 1.25;
            }

            & a {
                color: var(--yellow_tuilex, #FAD815);
                leading-trim: both;
                text-edge: cap;
                font-family: Inter;
                font-size: clamp(1.4rem, 0.88vw, 1.6rem);
                font-style: normal;
                font-weight: 500;
                line-height: 1.25;
            }

            & #socials {
                display: flex;

                & .title {
                    color: #FFF;
                    font-size: clamp(1.4rem, 0.88vw, 1.6rem);
                    font-weight: 500;
                    line-height: 1.25;
                }

                & svg {
                    display: block;
                    margin-left: min(0.55vw, 1rem);

                    & path {
                        fill: #fff;
                    }
                }

                & a:hover svg path {
                    fill: var(--yellow);
                }
            }
        }

        & #footer_menus {
            display: flex;
            gap: min(3.465vw, 6.3rem);

            .title {
                color: #FFF;
                font-size: clamp(1.4rem, 0.88vw, 1.6rem);
                font-weight: 600;
                line-height: 1.4;
                text-transform: uppercase;
                margin-bottom: min(1.87vw, 3.4rem);

                &:before {
                    content: "|";
                    font-size: 1.4rem;
                    color: var(--yellow);
                    display: inline-block;
                    padding-right: min(0.55vw, 1rem);
                    transform: rotate(25deg);
                    font-weight: 600;
                }
            }

            a {
                color: #FFF;
                font-size: clamp(1.4rem, 0.88vw, 1.6rem);
                font-weight: 300;
                line-height: 1.7;

                &:hover {
                    color: var(--yellow);
                }
            }
        }
    }

    ul#menu-mentions-menu {
        display: flex;
        justify-content: flex-end;
        gap: min(1.32vw, 2.4rem);

        & a {
            color: #FFF;
            font-size: 1.4rem;
            line-height: 1.8;

            &:hover {
                color: var(--yellow);
            }
        }
    }
}

#certif {
    padding: min(1.65vw, 3rem) 0 min(2.2vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(1.32vw, 2.4rem);
}

/* PAGES */

div#content_header {
    margin: 0 min(1.1vw, 2rem);

    & .breadcrumbs {
        position: relative;
        z-index: 2;
        padding: 0 min(16.5vw, 30rem);
        height: min(2.8vw, 5rem);
        display: flex;
        align-items: center;
        background: var(--blue);
        border-radius: min(1.1vw, 2rem);
        color: var(--yellow);
        font-size: 1.4rem;
        line-height: 1.86;

        a {
            color: #fff;

            &:hover {
                color: var(--yellow);
            }
        }
    }

    & img {
        position: relative;
        z-index: 1;
        display: block;
        border-radius: min(1.1vw, 2rem);
        margin-top: calc(min(2.2vw, 4rem) * -1);
    }
}

:is(.site-main>article, .main-archvie) {
    padding:
        min(7.48vw, 13.6rem) min(26.4vw, 48rem) min(6.49vw, 11.8rem);
    margin: 0;

    & h1 {
        color: var(--blue);
        font-size: clamp(2.75rem, 2.75vw, 5rem);
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: min(5.115vw, 9.3rem);
        position: relative;

        &:before,
        &:after {
            font-size: clamp(2.2rem, 2.2vw, 4rem);
            font-weight: 700;
            display: inline-block;
            color: var(--yellow);
            content: '|';
        }

        &:before {
            transform: translate(-3rem, -2rem) rotate(32deg);
            position: absolute;
            top: 0;
            left: 0;
        }

        &:after {
            transform: translate(.7rem, 1.4rem) rotate(32deg);
        }
    }

    & .entry-content {
        position: relative;

        &>svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            z-index: -1;
        }



        & :is(p, div, li) {
            color: #525769;
            font-size: clamp(1.4rem, 0.88vw, 1.6rem);
            font-weight: 400;
            line-height: 1.8;
        }

        & h2 {
            color: var(--blue);
            font-size: clamp(1.7rem, 1.65vw, 3rem);
            font-weight: 700;
            line-height: 1.2;
            text-transform: uppercase;
        }

        & h3 {
            color: var(--blue-sky);
            font-size: clamp(1.6rem, 1.1vw, 2rem);
            font-weight: 600;
            line-height: 1.2;
        }

        & a {
            color: var(--blue);

            &:hover {
                text-decoration: none;
                color: var(--yellow);
            }
        }

        & ul {
            margin-bottom: 2rem;
            list-style: disc;
            margin-left: 2rem;
        }
    }
}

@media (max-width: 991px) {
    #site_header {
        padding: 0 1.1vw;
    }

    footer {
        padding: min(5.5vw, 10rem) min(3.3vw, 6rem) min(3.85vw, 7rem);
    }

    div#content_header .breadcrumbs {
        padding: 0 min(3.3vw, 6rem);
    }
}

@media (max-width: 768px) {
    main:is(#site-main, #main) {
        margin-top: 10rem;
    }

    div#home_banner div#home_banner_content .excerpt {
        display: none;
    }

    #site_header #logo {
        position: fixed;
        background: #fff;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 10;
        padding: 2rem;
        height: 10rem;

        & img {
            width: 12.6rem;
        }
    }

    #site_header {
        & #navs {
            position: fixed;
            left: 0;
            top: 0;
            flex-direction: column-reverse;
            align-items: center;
            justify-content: center;
            gap: 2vw;
            width: 100%;
            height: 100%;
            background: #fff;
            z-index: 11;
            overflow: auto;
            transform: translateY(-100%);
            padding: 4rem 2rem;

            & #top-menu>.menu-item {
                & ul {
                    border-radius: 1.1vw;
                    margin-top: 1.375vw;
                }
            }

            & nav.quicknav {
                width: 100%;
                display: flex;
                padding: 2vw;
                border-top: solid 1px var(--yellow);
                border-bottom: solid 1px var(--yellow);
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;

                & .quickNavItem a {
                    gap: 1rem;

                    & svg {
                        max-height: 1.2rem;
                        max-width: 1.4rem;
                    }
                }
            }
        }
    }

    .open_menu {
        cursor: pointer;
    }

    .open_menu.close {
        position: absolute;
        top: 0;
        right: 0;
        padding: 2rem;
        font-size: 2rem;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--blue);
        z-index: 12;
    }

    .menu-opened {
        #site_header {
            & #navs {
                transform: translateY(0);
            }
        }
    }

    div#home_slider .home_slides {
        max-width: calc(100% - 4.4vw);

        & img {
            display: block;
            width: 95.6vw;
            height: auto;
        }

        & .slides_bar .slide .slide_content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
        }
    }

    div#home_content {
        max-width: 96vw;
        margin-bottom: 2rem;

        & h2,
        & h1 {
            max-width: 100%;
        }
    }

    div#home_numbers {

        & section {
            position: relative;
            height: auto;
            padding: 2rem 0;
        }

        & .pannel {
            transform: translateY(0);

            & .list {
                flex-direction: column;

                & .number {
                    padding: 5rem 2.5rem;
                }
            }
        }
    }

    div#thematic1 {
        flex-direction: column;
        padding: 2.2vw;

        &>div {

            & img {
                width: 100%;
            }

            &#t1_right {
                width: 100%;

                & img {
                    display: none;
                }

                & .content {
                    position: relative;
                    width: 100%;
                }
            }
        }

    }

    div#post_list {
        flex-direction: column;

        & img {
            max-width: 40rem;
            width: auto;
            margin: auto;
        }

        & .excerpt_content {
            max-width: 36rem;
            width: auto;
        }
    }

    div#thematic2 {
        flex-direction: column;

        & img {
            border-radius: min(1.1vw, 2rem) min(1.1vw, 2rem) 0 0;
        }

        & #t2_buttons {
            &>div {
                width: 100%;

                &#t2_top {
                    border-radius: 0;
                }

                &#t2_bottom {
                    border-radius: 0 0 min(1.1vw, 2rem) min(1.1vw, 2rem);
                }
            }
        }
    }

    div#reinsurance_block {
        & .items {
            flex-wrap: wrap;

            & .item {
                width: 40%;
                max-width: 15rem;
            }
        }
    }

    div#faq {
        flex-direction: column;
        padding: 6vw 2vw 8vw;

        & .left {
            width: 100%;
        }
    }

    div#main_footer {
        flex-direction: column;
        gap: 5vw;

        & div#footer_menus {
            flex-direction: column;
        }
    }

    ul#menu-mentions-menu {
        margin-top: 10vw;
        flex-direction: column;
    }

    :is(.site-main>article, .main-archvie) {
        padding: min(7.48vw, 13.6rem) 2vw min(6.49vw, 11.8rem);
    }


    div#content_header .breadcrumbs {
        height: auto;
        display: inline-block;
    }
}