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

/* Header Component */
.site-header {
    display: flex;
}
.header-content{
    display: flex;
}

/* 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--noir);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.burger-btn.active + .burger-menu{
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}
.nav-menu{
    display: flex;
}
@media (max-width: 768px) {
    .nav-menu{
    }
}

.burger-open .nav-menu li{
    opacity: 1;
}
.sub-menu{
    display: flex;
    flex-direction: column;
    margin: 0;
    align-items: flex-end;
}
/* 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;
}

/* Footer Component */
.site-footer {
    --footer-curve-height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: var(--wp--preset--color--violet-sombre);
    gap: 4rem;
}
.site-footer::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    height: var(--footer-curve-height);
    pointer-events: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 60' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 60C514.565 24.3716 795.121 23.4379 1280 60L0 60Z' fill='%23090816'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}
.site-footer::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    height: var(--footer-curve-height);
    pointer-events: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 60' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 0H1280V60C795.121 23.4379 514.565 24.3716 0 60V0Z' fill='white'/%3E%3C/svg%3E");
    z-index: 3;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}
.footer-content {
    display: flex;
}
footer.remove-footer{
    display: none;
}
.footer-bottom{
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 1rem calc(var(--gutters) / 2);
    align-items: baseline;
    position: relative;
    z-index: 2;
}
.footer-copyright a, .footer-legals a{
    color: var(--wp--preset--color--vert);
    font-family: "IBM Plex Mono";
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
}

.footer-copyright a .menu-split-visual,
.footer-legals a .menu-split-visual {
    display: inline-flex;
    white-space: nowrap;
}

.footer-copyright a .menu-split-char,
.footer-legals a .menu-split-char {
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1;
}

.footer-copyright a .menu-split-char-inner,
.footer-legals a .menu-split-char-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.footer-copyright a .menu-split-char-layer,
.footer-legals a .menu-split-char-layer {
    display: block;
    line-height: 1;
}
.footer-head{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}
.footer-link.socreativ-btn {
    border-color: var(--wp--preset--color--blanc);
}
.footer-back-to-top {
    display: none;
}
@media (max-width: 768px) {
    .site-footer::before,
    .site-footer::after {
        height: 10vh;
    }
    .footer-back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-bottom: 1rem;
        border: 0;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }
    .footer-back-to-top:focus-visible {
        outline: 2px solid white;
        outline-offset: 4px;
    }
    .footer-bottom {
        flex-wrap: wrap;
        gap: 1.5rem 1rem;
    }
    .footer-svg {
        order: -1;
        flex: 0 0 100%;
        text-align: center;
    }
}
.footer-link.socreativ-btn a{
    color: var(--wp--preset--color--blanc);
}
.footer-text p span{
    color: var(--wp--preset--color--blanc);
}
.footer-underlay{
    position: absolute;
    /* Extend into the curve; the white ::before mask supplies its rounded edge. */
    top: calc(-1 * var(--footer-curve-height));
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.site-footer .footer-back-to-top,
.site-footer .footer-scroll-top {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    cursor: pointer;
}
.site-footer .footer-back-to-top svg,
.site-footer .footer-scroll-top svg {
    display: block;
}
.footer-underlay-svg{
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
}
.footer-underlay-svg.svg-1{
    height: 100vh;
    width: 50%;
    background: url(../svg/s.svg) no-repeat center center;
    background-size: contain;
    top: var(--footer-curve-height);
    left: 0;
    transform: translate(0, -15%);
}
.footer-underlay-svg.svg-2{
    height: 100vh;
    width: 50%;
    background: url(../svg/o.svg) no-repeat center center;
    background-size: contain;
    top: var(--footer-curve-height);
    right: 0;
    transform: translate(0, -15%);
}
/* Buttons */
.btn-cta{
    display: flex;
}
.btn-cta::before{
    content: '';
}

.socreativ-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --circle-size: 0px;
    --circle-x: 50%;
    --circle-y: 50%;
    --circle-opacity: 0;
    --circle-fill-rgb: 81 55 212;
    background: radial-gradient(
        circle var(--circle-size) at var(--circle-x) var(--circle-y),
        rgb(var(--circle-fill-rgb) / var(--circle-opacity)) 0 98%,
        transparent 100%
    );
    transition: color 0.25s ease;
    font-family: "Mona Sans";
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    border: 0.5px solid var(--wp--preset--color--noir);
    padding: 8px 13px;
    width: fit-content;
}
.socreativ-btn.alt-1{
    background-color: var(--wp--preset--color--blanc);
}
.socreativ-btn.alt-2{
    border: 0.5px solid var(--wp--preset--color--blanc);
}
.socreativ-btn.alt-3{
    background: rgba(81, 55, 212, 0.10);
}
.socreativ-btn.alt-4{
    border: 0.5px solid var(--wp--preset--color--noir);
}
.socreativ-btn,
.socreativ-btn a {
    color: var(--wp--preset--color--noir);
    transition: color 0.6s ease;
}
.socreativ-btn.alt-2 a{
    color: var(--wp--preset--color--blanc);
}
.socreativ-btn.alt-3 a{
    color: var(--wp--preset--color--violet);
}
.socreativ-btn.alt-4 a{
    color: var(--wp--preset--color--noir);
}

.socreativ-btn:hover,
.socreativ-btn:focus-within,
.socreativ-btn:hover a,
.socreativ-btn:focus-within a {
    color: var(--wp--preset--color--blanc, #fff);
}
.socreativ-btn.alt-3:hover,
.socreativ-btn.alt-3:focus-within,
.socreativ-btn.alt-3:hover a,
.socreativ-btn.alt-3:focus-within a {
    color: var(--wp--preset--color--violet, #5137d4);
}
@media (max-width: 768px) {
    .select-btn.socreativ-btn.is-selected {
        background: #5137D4;
    }
    .select-btn.socreativ-btn.is-selected,
    .select-btn.socreativ-btn.is-selected * {
        color: #FFF !important;
    }
}

/* 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-button.is-style-outline-button .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--wp--preset--color--vert);
    color: var(--wp--preset--color--vert);
}

.wp-block-button.is-style-outline-button .wp-block-button__link:hover {
    background: var(--wp--preset--color--vert);
    color: var(--wp--preset--color--blanc);
}

.wp-block-button.is-style-ghost-button .wp-block-button__link {
    background: transparent;
    border: none;
    color: var(--wp--preset--color--noir);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wp-block-button.is-style-ghost-button .wp-block-button__link:hover {
    color: var(--wp--preset--color--vert);
    text-decoration: none;
}

.wp-block-button.is-style-arrow-button .wp-block-button__link::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: var(--transition);
}

.wp-block-button.is-style-arrow-button .wp-block-button__link:hover::after {
    transform: translateX(4px);
}
.wp-block-button.is-style-bacalan-button .wp-block-button__link {
    display: flex;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--wp--preset--font-size--size-15);
    overflow: visible;
}
.wp-block-button.is-style-bacalan-button .wp-block-button__link::before{
    content: '';
    display: flex;
    height: 12px;
    width: 1px;
    background-color: var(--wp--preset--color--noir);
    margin-right: 0.5rem;
    transform: rotate(20deg);
    transition: transform 0.6s ease;
}
.wp-block-button.is-style-bacalan-button .wp-block-button__link:hover::before{
    transform: rotate(90deg);
}
.wp-block-button.is-style-bacalan-button .wp-block-button__link:hover{
    transform: unset;
    box-shadow: unset;
}

/* 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: var(--font-display);
    line-height: 1;
}

/* Mobile layout for the maintenance management section. */
@media (max-width: 781px) {
    .wp-block-group.gestion-cyber {
        grid-template-columns: minmax(0, 1fr);
        padding-inline: max(20px, var(--gutters));
        padding-bottom: 40px;
    }

    .gestion-cyber > .wp-block-columns {
        width: 100%;
        min-width: 0;
        gap: 24px;
        margin-block: 0;
    }

    .gestion-cyber > .wp-block-columns > .wp-block-column {
        min-width: 0;
    }

    .gestion-cyber .acf-wysiwyg-editor {
        margin-block: 0;
    }

    .gestion-cyber .acf-wysiwyg-editor + .acf-wysiwyg-editor {
        margin-top: 16px;
    }

    .gestion-cyber .acf-wysiwyg-editor:not(:has(.acf-wysiwyg-mobile)) > .acf-wysiwyg-desktop {
        display: block;
    }

    .gestion-cyber h2,
    .gestion-cyber h2 span {
        color: var(--wp--preset--color--noir) !important;
    }

    .gestion-cyber .acf-wysiwyg-editor p:last-child {
        margin-bottom: 0;
    }
}
