@keyframes vibrate {
    0% { transform: rotate(0); }
    4% { transform: rotate(20deg); }
    8% { transform: rotate(0); }
    12% { transform: rotate(20deg); }
    16% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.n3wtrend img { max-width: 100%; }

.n3wtrend {
    max-width: 1080px;
    margin: auto;
    padding: 0 16px;
}

.n3wtrend h2 { margin-bottom: 16px; }

.n3wtrend__floating {
    position: fixed;
    right: 50px;
    bottom: 30px;
    z-index: 10;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #222;
    box-shadow: gray 0 5px 10px;
    transition: scale 0.3s ease-out;
}

.n3wtrend__floating:hover { scale: 0.8; }

.n3wtrend input {
    border: none;
    background-color: #eee;
}

.n3wtrend__floating img {
    width: 50px;
    height: 50px;
    animation: vibrate 1.6s 5s infinite;
}

.n3wtrend section { margin: 64px 0; }

.n3wtrend__header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.n3wtrend__subtitle { display: inline-block; }

.n3wtrend__title.--main { margin-top: 64px; }

.n3wtrend__subtitle.--main,
.n3wtrend__title.--main {
    display: block;
    text-align: center;
}

.n3wtrend__btn { display: none; }

.n3wtrend__btn .elementor-button:hover { color: #222; }

.n3wtrend__pages { margin-top: 32px; }

.n3wtrend__page {
    display: block;
    margin-bottom: 16px;
}

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

.n3wtrend__page:hover .n3wtrend__page-title {
    transform: translate3d(20px, 0, 0);
}

.n3wtrend__page-title {
    margin-left: 16px;
    transition: transform 0.3s ease-out;
}

.n3wtrend__netlink img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.n3wtrend__img.--paralax {
    display: none;
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.n3wtrend div.wpforms-container-full { width: 100%; }

@media screen and (min-width: 990px) {
    .n3wtrend__localites,
    .n3wtrend__metiers {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .n3wtrend__localites li { list-style-type: none; }

    .n3wtrend__localites a,
    .n3wtrend__metiers a { text-decoration: none; }

    .n3wtrend__btn { display: initial; }

    .n3wtrend__contact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 32px;
    }

    .n3wtrend__pages { margin-top: 0; }

    .n3wtrend__page {
        display: flex;
        align-items: center;
    }

    .n3wtrend__page img {
        width: 150px;
        height: 100px;
    }

    .n3wtrend__netlink {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 16px;
        margin-bottom: 64px;
    }

    .n3wtrend__content-container { margin-bottom: 64px; }

    .n3wtrend__content-container img {
        grid-column: 1 / 6;
        display: inherit;
    }

    .n3wtrend__content-container p { grid-column: 6 / 13; }

    .n3wtrend__content { margin-bottom: 32px; }

    .n3wtrend__links { grid-column: 1 / 5; }

    .n3wtrend__netlink img {
        grid-column: 5 / 13;
        display: inherit;
    }

    .n3wtrend__img.--paralax {
        display: block;
        margin: 64px 0;
    }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: calc(100% + 20px);
    height: 100vh;
    justify-content: center;
    align-items: center;
    transform: translateX(-20px);
    background: rgba(34, 34, 34, 0.5);
}

.popup.open { display: flex; }

.popup__container {
    position: relative;
    width: 500px;
    height: 300px;
    margin: auto;
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px #222;
}
