/*
 * Components - Modern UI Components
 * Composants modernes pour le thème
 */

/* Header Component */
.site-header {
    display: flex;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--wp--preset--color--blanc);
    z-index: var(--z-fixed);
    border-bottom: 1px solid var(--wp--preset--color--beige);
}
.header-content{
    display: flex;
    width: 100%;
    background-color: var(--wp--preset--color--blanc);
    padding-right: var(--gutters);
}
.site-branding{
    height: 100%;
    padding: 1.5rem 4rem 1.5rem var(--gutters);
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%);
    transition: background-color 0.3s ease-in-out;
    position: relative;
    z-index: 3;
}
.site-branding:hover{
    cursor: pointer;
}
.site-branding a svg path{
    transition: fill 0.3s ease-in-out;
}

/* Navigation */
.main-navigation{
    display: flex;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: max-content;
}
.nav-menu{
    display: flex;
    height: 100%;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: var(--wp--preset--color--blanc);
}
.nav-menu li{
    display: flex;
    height: 100%;
    align-items: center;
}
.nav-menu li a{
    display: flex;
    text-transform: uppercase;
    align-items: center;
    font-weight: 500;
    line-height: 27px;
    color: var(--wp--preset--color--bleu-fonce);
    transition: color 0.3s ease;
    font-size: var(--wp--preset--font-size--size-14);
    transition: font-weight 0.3s ease-in-out;
}
.nav-menu li a:hover{
    font-weight: 800;
}
.nav-menu li.menu-item-has-children > a.menu-link::after{
    content: '';
    background-image: url(../svg/chevron-down.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 8px;
    height: 8px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease-in-out;
}
.nav-menu li.menu-item-has-children:has(> .sub-menu.active) > a.menu-link::after{
    transform: rotate(-180deg);
}
.nav-menu li.menu-item-has-children:has(> .sub-menu.active) > a.menu-link{
    font-weight: 700;
}
.nav-menu{
    display: flex;
    align-items: center;
}
.sub-menu{
    display: flex;
    width: 100vw;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%,0%);
    background-color: var(--wp--preset--color--blanc);
    justify-content: center;
    padding: 1rem 0;
    margin: 0;
    z-index: -1;
    gap: 1rem;
    align-items: center;
    transition: transform 0.3s ease-in-out, z-index 0.3s ease-in-out;
}
.submenu-separator{
    width: 5px;
    height: 5px;
    background-color: var(--wp--preset--color--bleu);
}
.sub-menu.active{
    transform: translate(-50%,100%);
    z-index: 1;

}
.wp-block-buttons.burger-btn{
    display: none;
}
nav li.current-menu-item a{
    font-weight: 800;
}
header .wp-block-buttons{
    position: relative;
    z-index: 3;
}

@media (max-width: 1024px) {
    .nav-menu{
        justify-content: center;
    }
    .nav-menu li {
        height: auto;
    }
}
@media (max-width: 768px) {
    .site-branding {
        width: 180px;
    }
    .site-branding a {
        width: 90%;
    }
    .main-navigation {
        display: none;
    }
    .wp-block-buttons.burger-btn{
        display: flex;
    }
    body .header-contact-btn{
        display: none;
    }
}
/* Burger BTN */
.burger-btn {
    display: none;
}
.burger-btn.active, body.white-menu .burger-btn {
    display: flex;
}
/* Burger MENU */
#burger-menu{
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--wp--preset--color--bleu-fonce);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
#burger-menu.active{
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}
@media (max-width: 768px) {
    .mobile-menu-content {
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-nav-menu{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .mobile-nav-menu li a{
        font-size: var(--wp--preset--font-size--size-14);
        color: var(--wp--preset--color--blanc);
        text-transform: uppercase;
        font-weight: 600;
    }
    .sub-menu{
        display: flex;
        width: fit-content;
        position: static;
        bottom: unset;
        left: unset;
        transform: unset;
        justify-content: flex-start;
        padding: 1rem 0;
        margin: 0;
        z-index: 0;
        gap: 1rem;
        align-items: flex-start;
        transition: transform 0.3s ease-in-out;
        flex-direction: column;
        background-color: transparent;
        padding-left: 1rem;
    }
    .sub-menu li{
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .sub-menu li::before{
        display: flex;
        content: '';
        width: 5px;
        height: 5px;
        background-color: var(--wp--preset--color--bleu);
    }
    .sub-menu.active{
        transform: translate(0);
    }
    .mobile-menu-content .site-branding{
        position: absolute;
        top: 2rem;
        left: var(--gutters);
        clip-path: none;
        padding: 0;
        height: auto;
    }
    .burger-btn-close{
        display: flex;
        position: absolute;
        top: 2rem;
        right: var(--gutters);
        flex-direction: column;
        gap: 0.5rem;
        cursor: pointer;
        width: 25px;
        height: 25px;
    }
    .burger-btn-close span{
        display: flex;
        position: absolute;
        width: 25px;
        height: 1px;
        background-color: var(--wp--preset--color--blanc);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease;

    }
    .burger-btn-close span:nth-child(1) {
        transform: translate(-50%, -50%)rotate(45deg);
    }
    .burger-btn-close span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-45deg); 
    }

    .site-header:has(.mobile-navigation.active) .site-branding a svg path{
        fill: var(--wp--preset--color--blanc);
    }
    .burger-btn .wp-element-button div{
        display: flex;
        flex-direction: column;
        gap: 2.5px;
    }
    .burger-btn .wp-element-button div span{
        display: flex;
        width: 3px;
        height: 3px;
        background-color: var(--wp--preset--color--blanc);
        transition: all 0.3s ease;
    }

}

/* Active / open states with smooth transitions */
.burger-menu.active,
body.burger-open .burger-menu {
    background-color: var(--wp--preset--color--noir);
}
.burger-menu.active p,
body.burger-open .burger-menu p {
    color: var(--wp--preset--color--background);
    opacity: 0.7;
}
.burger-menu.active p::before,
body.burger-open .burger-menu p::before {
    color: var(--wp--preset--color--blanc);
}
.burger-menu.active .mobile-navigation,
body.burger-open .burger-menu .mobile-navigation {
    transform: translateY(-1rem);
    background-color: var(--wp--preset--color--noir);
    pointer-events: all;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .burger-menu.active .mobile-navigation,
    body.burger-open .burger-menu .mobile-navigation {
        transform: translateY(0);
        border-radius: 0;
    }
}
.burger-menu .mobile-navigation .mobile-menu-content ul{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    text-transform: uppercase;
    color: var(--wp--preset--color--blanc);
}
.burger-menu.active div span {
    background: var(--wp--preset--color--blanc);
}
.burger-menu.active .mobile-navigation .mobile-menu-content ul li{
    opacity: 1;
}

@media (max-width: 768px) {
    .burger-bkg {
        display: none;
    }
}


/* HEADER WHITE */
.site-header.header-white{
    background-color: transparent;
    color: var(--wp--preset--color--blanc);
    backdrop-filter: none;
}

/* Homepage Loader */
body.loader-active {
    overflow: hidden;
}
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    background-color: var(--wp--preset--color--noir);
}
.loader.is-closing {
    opacity: 0;
    visibility: hidden;
}
.loader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer Component */
.site-footer {
    display: flex;
    flex-direction: column;
    position: relative;
}
.footer-head{
    display: flex;
    width: 100%;
    justify-content: space-between;
    background-color: var(--wp--preset--color--bleu-fonce);
    padding: 2rem 0;
}
.site-footer .site-branding{
    clip-path: none;
    height: auto;
}
.site-footer .site-branding svg{
    max-width: unset;
}
.site-footer .site-branding svg path{
    fill: var(--wp--preset--color--blanc);
}
.footer-wrap{
    display: flex;
    flex-direction: column;
    max-width: 40%;
}
.footer-wrap:nth-child(2){
    width: 60%;
    flex-direction: row;
    max-width: unset;
    justify-content: space-between;
    padding-right: var(--gutters);
    align-items: center;
    
}
.footer-col{
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    gap: 1rem;
}
.footer-col:nth-child(2), .footer-col:nth-child(3){
    padding-top: 0;
}
.footer-col nav{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: static;
    left: unset;
    transform: translate(0);
}
.footer-col nav h4{
    color: var(--wp--preset--color--blanc);
    margin:0;
    font-size: 12px;
    font-weight: 400;
}
.footer-content {
    display: flex;
    padding-left: var(--gutters);
}
.footer-content p{
    max-width: 340px;
}
.footer-content p{
    color: var(--wp--preset--color--blanc);
}
.footer-adress{
    display: flex;
    padding-left: var(--gutters);
    font-size: 14px;
}
.footer-adress p a{
    color: var(--wp--preset--color--blanc);
}
.footer-menu li a {
    color: var(--wp--preset--color--blanc);
    font-size: 13px;
    font-weight: 400;
}
.footer-menu li a:hover{
    font-weight: 700;
}
/* .footer-col:nth-child(2) .footer-menu li a{
    font-weight: 700;
} */
footer.remove-footer{
    display: none;
}
.footer-bottom{
    display: flex;
    justify-content: space-between;
    padding: 1rem var(--gutters);
    background-color: var(--wp--preset--color--beige);
}
.copyright p{
    margin: 0;
    color: var(--wp--preset--color--bleu-fonce);
    font-size: 11px;
    font-weight: 400;
}
.footer-infos{
    display: flex;
    gap: 1rem;
}
.footer-infos a{
    color: var(--wp--preset--color--bleu-fonce);
    font-size: 11px;
    font-weight: 400;
    transition: font-weight 0.3s ease-in-out;
}
.footer-infos a:hover{
    font-weight: 700;
}
.footer-up-arrow{
    display: flex;
    background-color: var(--wp--preset--color--bleu);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: var(--gutters);
    transform: translateY(-50%);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.footer-up-arrow::after{
    content: '';
    display: flex;
    background: url(../svg/up-arrow.svg) no-repeat center center;
    background-size: contain;
    width: 16px;
    height: 16px;
}
.footer-img{
    display: flex;
    width: 100%;
    height: 250px;
}
.footer-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-up-arrow.arrow-img{
    transform: translateY(230px);
}
@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
    }
    .footer-head{
        display: flex;
        flex-direction: column;
    }
    .site-footer .site-branding{
        width: 100%;
        justify-content: center;
        padding: 1.5rem var(--gutters) 1.5rem var(--gutters);
    }
    .site-footer .site-branding a{
        width: 100%;
        justify-content: center;
    }
    .footer-wrap{
        max-width: 100%;
        align-items: center;
        width: 100%;
    }
    .footer-wrap:nth-child(2){
        flex-direction: column;
        max-width: 100%;
        padding-right: 0;
        width: 100%;
        gap: 2rem;
    }
    .footer-col{
        align-items: center;
    }
    .footer-wrap:nth-child(2) .footer-col:last-child{
        padding-top: 0;
    }
    .footer-content {
        padding-left: 0;
        justify-content: center;
    }
    .footer-adress{
        padding-left: 0;
        justify-content: center;
    }
    .footer-up-arrow{
        right: 50%;
        transform: translate(50%, -50%);
    }
    .footer-bottom{
        flex-direction: column-reverse;
        width: 100%;
        align-items: center;
        gap: 1rem;
    }
    .footer-infos{
        flex-direction: column;
        gap: 1rem;
    }
    .footer-up-arrow.arrow-img{
        transform: translate(50%, 230px);
    }
}
/* Buttons */
.btn-cta{
    display: flex;
}
.btn-cta::before{
    content: '';
}

/* Hero Section */
.hero {
    display: flex;
}

/* Responsive images */
.wp-block-image img,
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Modern spacing */
.has-small-margin { margin: var(--spacing-sm); }
.has-medium-margin { margin: var(--spacing-md); }
.has-large-margin { margin: var(--spacing-lg); }

.has-small-padding { padding: var(--spacing-sm); }
.has-medium-padding { padding: var(--spacing-md); }
.has-large-padding { padding: var(--spacing-lg); }

/* === Modern Block Styles === */

/* Custom Columns Styles */
.wp-block-columns.is-style-border-columns {
    position: relative;
}

.wp-block-columns.is-style-border-columns .wp-block-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(11, 11, 11, 0.1);
}

.wp-block-columns.is-style-third-columns {
    --wp--style--block-gap: var(--spacing-lg);
}

.wp-block-columns.is-style-third-columns .wp-block-column:first-child {
    flex-basis: 33.333%;
}

.wp-block-columns.is-style-third-columns .wp-block-column:last-child {
    flex-basis: 66.666%;
}

.wp-block-columns.is-style-equal-height {
    align-items: stretch;
}

.wp-block-columns.is-style-equal-height .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Custom Button Styles */
.wp-block-buttons{
    display: flex;
    width: fit-content;
}
.wp-block-button.is-style-button-white button:hover{
    cursor: pointer;
}
.wp-block-button.is-style-button-white a, .wp-block-button.is-style-button-white button{
    background-color: var(--wp--preset--color--blanc);
    color: var(--wp--preset--color--bleu-fonce);
    border-radius: 3px;
    border: 1px solid var(--wp--preset--color--bleu-fonce);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.wp-block-button.is-style-button-white a:hover, .wp-block-button.is-style-button-white button:hover{
    background-color: var(--wp--preset--color--bleu-fonce);
    color: var(--wp--preset--color--blanc);
}
.wp-block-button.is-style-button-blue a{
    background-color: var(--wp--preset--color--bleu-fonce);
    color: var(--wp--preset--color--blanc);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.wp-block-button.is-style-button-blue a:hover{
    background-color: var(--wp--preset--color--blanc);
    color: var(--wp--preset--color--bleu-fonce);
}
.wp-block-button.is-style-button-square a{
    background-color: var(--wp--preset--color--beige);
    color: var(--wp--preset--color--bleu);
    border-radius: 3px;
    border: 1px solid var(--wp--preset--color--bleu);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    gap: 3rem;
}
.wp-block-button.is-style-button-square a::after{
    content: "";
    display: flex;
    width: 5px;
    height: 5px;
    background-color: var(--wp--preset--color--bleu);
    transition: transform 0.3s ease-in-out;
}
.wp-block-button.is-style-button-square a:hover::after{
    transform: translateX(-1rem);
}
.wp-block-button.is-style-button-square-blue a, .wp-block-button.is-style-button-square-blue-light a{
    display: flex;
    align-items: center;
    background-color: var(--wp--preset--color--bleu-fonce);
    color: var(--wp--preset--color--blanc);
    border-radius: 3px;
    border: 1px solid var(--wp--preset--color--bleu-fonce);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    gap: 3rem;
}
.wp-block-button.is-style-button-square-blue-light a{
    background-color: var(--wp--preset--color--bleu);
    border: 1px solid var(--wp--preset--color--bleu);
}
.wp-block-button.is-style-button-square-blue a::after, .wp-block-button.is-style-button-square-blue-light a::after{
    content: "";
    display: flex;
    width: 5px;
    height: 5px;
    background-color: var(--wp--preset--color--blanc);
    transition: transform 0.3s ease-in-out;
}
.wp-block-button.is-style-button-square-blue a:hover::after, .wp-block-button.is-style-button-square-blue-light a:hover::after{
    transform: translateX(-1rem);
}
@media (max-width: 768px) {
    .wp-block-button.is-style-button-square-blue a:hover::after, .wp-block-button.is-style-button-square a:hover::after, .wp-block-button.is-style-button-square-blue-light a:hover::after{
        transform: translateX(0);
    }
    .wp-block-button.is-style-button-blue a:hover, .wp-block-button.is-style-button-white a:hover, .wp-block-button.is-style-button-square a:hover, .wp-block-button.is-style-button-square-blue a:hover, .wp-block-button.is-style-button-square-blue-light a:hover{
        background-color: var(--wp--preset--color--bleu-fonce);
        color: var(--wp--preset--color--blanc);
    }
}
/* Custom Group/Container Styles */
.wp-block-group.is-style-container-grid {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.wp-block-group.is-style-container-medium {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.wp-block-group.is-style-container-small {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.wp-block-group.is-style-card-style {
    background: var(--wp--preset--color--blanc);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.wp-block-group.is-style-card-style:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Custom Heading Styles */
.wp-block-heading.is-style-gradient-heading {
    background: linear-gradient(135deg, var(--wp--preset--color--vert) 0%, var(--wp--preset--color--jaune) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.wp-block-heading.is-style-underline-heading {
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.wp-block-heading.is-style-underline-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--wp--preset--color--vert);
    border-radius: 2px;
}

/* Custom Paragraph Styles */
.wp-block-paragraph.is-style-lead-text {
    font-size: var(--wp--preset--font-size--size-14);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(11, 11, 11, 0.8);
}

.wp-block-paragraph.is-style-highlight-text {
    background: var(--wp--preset--color--jaune);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--wp--preset--color--vert);
}

/* Custom Image Styles */
.wp-block-image.is-style-rounded-image img {
    border-radius: var(--border-radius-lg);
}

.wp-block-image.is-style-shadow-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.wp-block-image.is-style-shadow-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Custom Quote Styles */
.wp-block-quote.is-style-modern-quote {
    border: none;
    background: var(--wp--preset--color--background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    position: relative;
}

.wp-block-quote.is-style-modern-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--wp--preset--color--vert);
    position: absolute;
    top: 0;
    left: var(--spacing-md);
    font-family: 'Urbanist', serif;
    line-height: 1;
}

/* LOGO */
.second-logo{
    display: flex;
    position: absolute;
    bottom: 0;
    right: 1rem;
    gap: 30px;
    z-index: -1;
}
.second-logo-squares{
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.second-logo-square{
    width: 60px;
    height: 60px;
    border: 0.75px solid var(--wp--preset--color--blanc);
}
.second-logo-rectangle{
    width: 60px;
    height: 180px;
    border: 0.75px solid var(--wp--preset--color--blanc);
    transform: translateY(-50px);
}
.mobile-navigation .second-logo{
    transform: translateY(30px);
}