/*!
Theme Name: WebLine
Theme URI: https://webline-solutions.fr/
Author: WebLine
Author URI: http://webline-solutions.fr/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: webline
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

body {
    overflow-x: hidden;
}

thead tr {
    background-color: var(--fifth-color);
}

thead tr td {
    color: var(--second-color);
}

td {
    padding: 3px 5px;
}

ul {
    padding-inline-start: 20px;
}

chapito-static {
    scroll-margin-top: clamp(100px, 20vh, 300px);
}

/*  CSS Header  */
/*  General  */

.back-clicked>div {
    animation: flash-bg 1s .2s ease-out;
}

@keyframes flash-bg {
    0% {
        background-color: #ffffffa3;
    }
    20% {
        background-color: #ffffffa3;
    }
    100% {
        background-color: var(--chapito-color-block-background);
    }
}

.container-get-up {
    position: sticky;
    top: 100vh;
    z-index: 9999;
    height: 0;
    width: 0;
}

#scrollToTopBtn {
    position: absolute;
    bottom: 30px;
    left: calc(100vw - clamp(68px, 6vw, 86px) - var(--padding-centered));
    z-index: 999;
    background-color: #C80911;
    color: white;
    width: clamp(68px, 6vw, 86px);
    border: 1px solid var(--third-color);
    padding: 12px 16px;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform .3s;
}

@supports (bottom: env(safe-area-inset-bottom)) {
    #scrollToTopBtn {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

#scrollToTopBtn.get-up {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

#scrollToTopBtn:hover::after {
    transform: rotate(170deg);
}

#scrollToTopBtn::after {
    content: "";
    width: 100%;
    display: flex;
    aspect-ratio: 1;
    margin-right: 15px;
    transition: transform .3s;
    transform: rotate(180deg);
    background: url(/wp-content/themes/webline/assets/arrow-title.svg) center / contain no-repeat;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    background-color: var(--first-color);
}

body:not(.home) .site-header {
    background-color: var(--second-color);
}

.site-header li {
    list-style: none;
}

.site-header a {
    text-decoration: none;
    display: inline-flex;
    position: relative;
}

.site-header .logo-link a::after,
.site-header .linkedin-link a::after,
.site-header .logo_link::after {
    content: none;
}

.site-header .site-logo {
    text-align: center;
}

.logo_link {
    width: clamp(100px, 7.2vw, 137px);
}

/* Menu Haut */
.site-header .top-menu {
    padding: 7px 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: var(--gap-m);
    background-color: var(--first-color);
}

.site-header .top-menu__content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.menu-menu-haut-container {
    display: flex;
    align-items: center;
}

.header__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-menu__engagement {
    color: var(--third-color);
    width: max-content;
    max-width: 100%;
}

.site-header .top-menu * {
    color: var(--third-color);
}

.top-pre_texte {
    text-align: center;
}

.top-pre_texte a {
    text-decoration: underline;
}

/* Menu Principal */

.site-header .principal-nav {
    padding-top: var(--gap-s);
    padding-bottom: var(--gap-s);
    background-color: var(--second-color);
    transition: background-color .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.principal-nav a {
    font-size: var(--font-text-large);
    color: var(--third-color);
    font-family: var(--font-extra-bold);
}

.principal-nav .menu>li>a {
    text-transform: uppercase;
    padding: clamp(10px, 1.1vw, 20px);
    gap: var(--gap-xs);
}

.principal-nav .menu>li.cta-fdm>a {
    border-radius: 21px;
    padding: 13px 20px;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    color: var(--second-color);
    background-color: var(--third-color);
    font-family: var(--font-medium);
    font-size: var(--font-text);
}

.principal-nav .menu>li.black-cta>a {
    color: var(--third-color);
    background-color: var(--first-color);
    display: inline-flex;
    gap: var(--gap-xs);
}

.principal-nav .menu>li.white-cta>a::after {
    content: url(/wp-content/themes/webline/assets/arrow-cta-red.svg);
}

.principal-nav .menu {
    display: flex;
    width: 100%;
    align-items: center;
    gap: var(--gap-xl);
    padding-inline-start: 0;
}

.site-header .top-menu .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-inline-start: 0;
}

.principal-nav .menu-item-has-children {
    position: relative;
}

.principal-nav .sub-menu {
    flex-direction: column;
    background-color: var(--second-color);
    padding: 15px;
}

.principal-nav .sub-menu li>a {
    padding: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: var(--third-color);
    width: 100%;
    font-size: 17px;
    font-family: var(--font-regular);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#colophon {
    position: relative;
    max-width: calc(var(--centered) + var(--padding-centered) * 2);
    margin: 0 auto;
    padding: var(--gap-xl) var(--padding-centered);
    display: flex;
    align-items: flex-start;
    gap: var(--gap-s);
}

.footer li {
    list-style: none;
}

.footer a {
    text-decoration: none;
}

.footer .menu>li>a {
    font-family: var(--font-extra-bold);
    text-transform: uppercase;
    line-height: 250%;
}

.footer .sub-menu {
    padding: 0;
}

.footer .sub-menu>li>a {
    line-height: 250%;
}

.footer__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--gap-m);
}

.footer__navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--gap-xxl);
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--gap-m);
}

.footer__logo {
    width: 200px;
}

#menu-footer {
    padding-inline-start: 0;
}

.footer__social {
    display: flex;
    gap: var(--gap-xs);
}

.footer__social a {
    height: var(--font-footer);
    display: inline-flex;
    align-items: center;
}

.footer__container-title {
    position: relative;
}

.footer__title-media {
    font-size: var(--font-footer);
    text-transform: uppercase;
    font-family: var(--font-extra-bold);
    color: var(--second-color);
    line-height: var(--line-height-xs);
}

.footer__hashtag {
    position: absolute;
    left: 0;
    top: 50%;
    font-family: var(--font-light);
    font-size: 30px;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.footer__copyright {
    background-color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-s);
}

.footer__obligatories-container {
    margin: 10px 0;
}

.footer .copyright-container {
    width: 100vw;
    background: var(--second-color);
    text-align: center;
    padding: 10px;
    margin: 0 -30px;
}

.footer__obligatories-pages {
    padding-inline-start: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--gap-m) / 2);
    flex-wrap: wrap;
}

.footer__obligatories-pages li {
    list-style: none;
}

.footer__obligatories-pages a {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--third-color);
}

.footer__obligatories-pages li:hover a {
    color: var(--second-color);
}

.footer__obligatories-pages li:not(:last-child) a:after {
    content: "-";
    margin-left: calc(var(--gap-m) / 2);
}

/* ==========================================================================
   FOOTER - Responsive
   ========================================================================== */
@media (min-width: 1024px) {
    #colophon:after {
        content: "";
        position: absolute;
        top: var(--gap-xl);
        left: 100%;
        height: 104px;
        width: calc(50vw - var(--centered) / 2 - var(--padding-centered));
        background-color: var(--first-color);
    }
}

@media (max-width: 768px) {
    #colophon {
        flex-direction: column;
        gap: var(--gap-s);
    }

    .footer__container {
        flex-direction: column;
    }

    .footer__navigation {
        flex-direction: column;
        gap: var(--gap-s);
    }
}

/* ==========================================================================
   EROR 404
   ========================================================================== */
.error-banner,
.error-banner .container,
.error-banner .title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xl);
}

.error-banner .container,
.error-banner .title-content {
    gap: var(--gap-l);
}

.error-banner .absol {
    font-size: var(--font-h1);
    font-family: var(--font-bold);
    color: var(--first-color);
    line-height: initial;
}

.error-banner .form-error.full_bloc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-m);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px)
    }
}

/* ==========================================================================
  RESPONSIVE
   ========================================================================== */

@media (min-width:1370px) {

    #site-navigation {
        display: flex;
        gap: var(--gap-s);
    }

    .site-header .top-menu .menu {
        gap: var(--gap-s);
    }

    .principal-nav .menu-item-has-children:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        top: 100%;
        transform: translateY(0);
    }

    .principal-nav .menu-item-has-children .sub-menu {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        background-color: var(--second-color);
        top: 100%;
        transform: translateY(-20px);
        transition: opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease,
            top 0.3s ease;
        width: 150%;
        min-width: max-content;
    }

    .principal-nav .sub-menu li:hover>a {
        background-color: #c6454b;
        border-radius: 5px;
    }

    .principal-nav .menu>li:not([class*="-cta"])>a::before {
        content: "";
        position: absolute;
        left: 0;
        transition: width .3s;
        height: 5px;
        width: 0;
        background-color: var(--third-color);
        bottom: 0;
    }

    .principal-nav .menu>li:not([class*="-cta"]):hover>a::before {
        width: 100%;
    }

    .principal-nav .menu-item-has-children>a::after {
        content: url(/wp-content/themes/webline/assets/detail-nav.svg);
        filter: invert(1) brightness(2);
    }
}

@media (max-width:1370px) {
    /* General */

    .site-header {
        flex-direction: column;
        display: flex;
    }

    .site-header li {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .site-header.active .main-navigation {
        display: flex;
        width: 100%;
        background-color: var(--seventh-color);
        justify-content: flex-end;
        max-height: 70vh;
        flex-direction: column;
        padding: 0 var(--gap-s) var(--gap-s) var(--gap-s);
        gap: var(--gap-m);
    }

    .site-header .burger {
        width: 35px;
        cursor: pointer;
    }

    .site-header .burger:before,
    .site-header .burger:after,
    .site-header .burger div {
        background: var(--third-color);
        content: "";
        display: block;
        height: 3px;
        margin: 7px 0;
        transition: 0.5s;
    }

    .site-header.active .burger:before {
        transform: translateY(12px) rotate(135deg);
    }

    .site-header.active .burger:after {
        transform: translateY(-12px) rotate(-135deg);
    }

    .site-header.active .burger div {
        transform: scale(0);
    }

    .site-header .logo_link img {
        width: 150px;
        object-fit: contain;
    }

    .principal-nav .menu-item-has-children {
        flex-direction: column;
        align-items: flex-end;
    }

    /* Menu Haut */
    .site-header .top-menu {
        display: flex;
        max-width: none;
        width: 100%;
        justify-content: flex-end;
    }

    .site-header .top-menu__content {
        padding: 0;
    }

    .site-header .top-menu nav {
        max-width: 100%;
        justify-content: flex-end;
    }

    /* Menu Principal*/
    .principal-nav .site-header__container {
        position: relative;
        flex-direction: column-reverse;
        padding: 0;
    }

    .principal-nav .site-header__container:after {
        content: "";
        position: absolute;
        width: 100%;
        bottom: 0;
        background: linear-gradient(0deg, var(--second-color) 20%, transparent);
        right: 0;
        height: 15px;
    }

    .site-header .principal-nav {
        flex-direction: column-reverse;
        padding: 0;
    }

    .site-header .main-navigation {
        display: none;
    }

    .site-header .menu {
        height: max-content;
        width: 100%;
        overflow: scroll;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-xs);
    }

    .principal-nav .sub-menu {
        position: static;
        display: none;
        padding-top: 0;
        padding-bottom: 0;
    }

    .principal-nav .menu-item-has-children.active .sub-menu {
        display: flex;
        margin-right: calc(-1 * var(--gap-m));
    }

    .principal-nav .sub-menu li>a {
        justify-content: flex-end;
    }

    .site-header__content {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: var(--gap-s);
    }

    .principal-nav .menu-item-has-children {
        padding-right: var(--gap-m);
    }

    .principal-nav .menu-item-has-children::after {
        content: "";
        position: absolute;
        top: calc(clamp(10px, 1.1vw, 20px));
        right: calc(var(--gap-m) / 2);
        transform: translateX(50%);
        height: var(--font-text-large);
        aspect-ratio: 1;
        filter: invert(1) brightness(2);
        cursor: pointer;
        background: url(/wp-content/themes/webline/assets/detail-nav.svg) center/contain no-repeat;
    }

    .principal-nav .menu-item-has-children.active::after {
        transform: translateX(50%) rotate(180deg);
    }
}

@media (max-width: 768px) {

    /* Responsive header */
    .site-header .logo_link img {
        width: 65px;
    }
}

@media (max-width: 500px) {

    .text-outline-red-xl,
    .text-outline-red-xl *,
    .text-outline-white-xl,
    .text-outline-white-xl *,
    .text-outline-black-xl,
    .text-outline-black-xl *,
    .text-outline-blue-xl,
    .text-outline-blue-xl *,
    .text-solid-black-xl,
    .text-solid-black-xl *,
    .text-solid-red-xl,
    .text-solid-red-xl *,
    .text-solid-blue-xl,
    .text-solid-blue-xl * {
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}