/*
Theme Name: ProgiTheme
Theme URI:
Author: Progiseize
Author URI:https://progiseize.fr
Description: Thème WordPress sur mesure pour Progiseize.
Version: 1.2.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: progitheme
*/

/*
rouge: #e30613;
bleu : #37a4c7;
vert : #5.1af3a;
Orange : #bf6019; rgba(191,96,25,1)
*/



/*  CSS Reset */
html,body {
    border: none;
    margin: 0;
    padding: 0;
    background: #fff; 
    font-family: 'Manrope', sans-serif;
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
}
h1,h2,h3,h4,h5,h6,p,blockquote,address,big,cite,code,em,font,img,small,strike,sub,sup,li,ol,ul,fieldset,form,label,legend,button,table,caption,tr,th,td {border: none;font-size: inherit;line-height: inherit;margin: 0;padding: 0;text-align: inherit;}
blockquote::before,blockquote::after {content: "";}

:root {

    /* DEEP SPACE --background-dark: #000000; | --background-light: #434343; */
    /* CELESTIAL --background-dark: #051641; | --background-light: #962469; */
    --background-dark: #0f0c29;
    --background-light: #302b63;

    --color-primary: #4e4d98; /* #A09CD3 | #F1294E | #4374B8; | 78A5E3 || 4e4d98*/
    --color-text: #6c727a; /* #A09CD3 | #F1294E | #4374B8; | 78A5E3*/
    --color-text-light: #bfc4c9; /* */



    --oldcolor-primary: #fb2a52;
    --main-bg-light: #3d3d3d;
    --main-light-grey: #d3dae0;
    --main-medium-grey: #b2b9c1;
    --main-dark-grey: #6c727a;
}


body {background:var(--background-dark);font-family: 'Sora', sans-serif;background-image: url(../images/noise.png), radial-gradient(at center, var(--background-light), var(--background-dark));}
a {transition: all 0.15s ease-in-out;}

/* COL SYSTEM */
.col-wrapper {width: 100%; max-width: 1460px;margin: 0 auto;display: flex;gap: 30px; box-sizing: border-box; padding: 0 40px;}
.col-wrapper .col {flex: 1;}
.col-wrapper .col.col-2 {flex: 2}
.col-wrapper .col.col-3 {flex: 3}
.col-wrapper .col.col-4 {flex: 4}
.col-wrapper .col.col-6 {flex: 6}
.col-wrapper .col.col-8 {flex: 8}
.col-wrapper .col.col-12 {flex: 12}

@media screen and (max-width:1024px){
    .col-wrapper { padding: 0 30px; }
}

@media screen and (min-width: 1261px) and (max-width: 1600px) {
    .col-wrapper { padding-left: 160px !important; padding-right: 40px !important; }
}

@media screen and (max-width:782px){
    .col-wrapper { flex-direction: column; gap: 20px; padding: 0 20px; }
    .col-wrapper .col { flex: 1 1 100% !important; }
    
    /* MODIF: Garder le header en ligne */
    #fixed-top-bar .col-wrapper { 
        padding: 12px 20px !important; 
    }
    #first-header.col-wrapper { 
        padding: 48px 20px !important; 
    }
    #fixed-top-bar .col-wrapper, 
    #first-header.col-wrapper { 
        flex-direction: row !important; 
        align-items: center; 
        justify-content: center !important;
        position: relative;
    }
    #fixed-top-bar .col-4, #first-header .col-4 { flex: 0 0 auto !important; width: auto !important; }
    #fixed-top-bar .col-8, #first-header .col-8 { 
        flex: 1 0 auto !important; 
        width: auto !important; 
        display: none;
        justify-content: flex-end;
        align-items: center;
    }
}

/* BUTTONS */
a.btn, .btn {font-size: 16px;padding: 8px 16px;text-decoration: none;border-radius: 10px;font-weight: 500;text-transform: uppercase;cursor: pointer;}
a.btn.btn-white {border:2px solid #fff;color: #fff;margin-right: 12px;}
a.btn.btn-white:hover {background: #fff;color:var(--background-dark);}
a.btn.btn-color {border:2px solid var(--color-primary);color: var(--color-primary);}
a.btn.btn-color:hover {background: var(--color-primary);color: #fff;}

/* HERO CTA */
.hero-cta { margin-top: 40px; }
.hero-cta .btn-primary-cta {
    background: #fff;
    color: var(--background-dark) !important;
    border: 2px solid #fff;
    font-weight: 700;
    padding: 14px 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-cta .btn-primary-cta:hover {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(78, 77, 152, 0.4);
}

/* FIXED TOP */
#fixed-top-bar {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 24px 0;
}

@media screen and (max-width: 782px) {
    #fixed-top-bar { padding: 12px 0; } /* Thinner on mobile */
}

#fixed-top-bar.show { transform: translateY(0); }
#fixed-top-bar .col-wrapper { display: flex; align-items: stretch; }
#fixed-top-bar .col-wrapper .col { display: flex; align-items: center; justify-content: center; }
#fixed-top-bar .top-nav { flex: 1; }
#fixed-top-bar #logo-fixed {width: 308px;height: 72px;display: block;object-fit: contain;margin-top: 0 !important;}

@media screen and (min-width: 1400px) {
    #fixed-top-bar #logo-fixed { width: 308px; height: 72px; }
}
#fixed-top-bar a { display: inline-block; line-height: 0; }

#fixed-top-bar .top-nav ul {display: flex;justify-content: flex-end;list-style: none;}
#fixed-top-bar .top-nav ul li {color: var(--background-dark);margin: 0 16px; font-weight: 500;font-size: 16px;text-transform: uppercase;line-height: normal;}
#fixed-top-bar .top-nav ul li a {color: var(--background-dark);text-decoration: none;}
#fixed-top-bar .top-nav ul li a:hover {color: var(--color-primary);}
#fixed-top-bar .top-nav ul li i {margin-left: 5px;color: var(--color-primary);}
#fixed-top-bar .top-nav ul li:last-child {margin-right: 0;}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001; /* Above overlay */
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}

#fixed-top-bar .mobile-menu-toggle span {
    background: var(--background-dark);
}

.menu-open .mobile-menu-toggle span:first-child { transform: translateY(9px) rotate(45deg); }
.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Toggle color per header - maintain original color as requested */
#fixed-top-bar.menu-open .mobile-menu-toggle span {
    background: var(--background-dark) !important;
}
#first-header.menu-open .mobile-menu-toggle span {
    background: #fff !important;
}

@media screen and (max-width: 782px) {
    .mobile-menu-toggle { display: flex; }
    
    .top-nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        width: 100%; /* Relative to parent header */
        margin: 0;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.96); 
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px);
        padding: 40px 20px;
        z-index: 10000;
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-bottom: 2px solid rgba(0,0,0,0.05);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; margin-left: auto; position: relative; z-index: 10001; width: 44px; height: 44px; }
    
    /* UNIVERSAL VISIBILITY LOGIC */
    .menu-open .top-nav { 
        display: block !important; 
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        z-index: 10005 !important;
    }

    /* Force parent containers to show menu overflow */
    .menu-open, 
    #page-hero:has(.menu-open) { 
        overflow: visible !important; 
        z-index: 10010 !important; 
    }

    /* Le header hero utilise un fond sombre si besoin, mais le user veut blanc pour le dropdown */
    #first #first-header .top-nav {
        background: #fff;
    }

    /* Permit menus to show in both headers if active - sync with glassmorphism */
    #fixed-top-bar .top-nav { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

    /* Remove header shadow when menu is open to create a seamless connection */
    #fixed-top-bar.menu-open { box-shadow: none; }
    #fixed-top-bar.menu-open .top-nav { border-top: 1px solid rgba(0,0,0,0.03); } /* Micro divider instead of shadow */
    .menu-open #top-nav-hero,
    .menu-open#aaa #top-nav-fixed { /* aaa est l'id du body */ }

    .top-nav ul { 
        display: flex !important;
        flex-direction: column; 
        align-items: center; 
        padding: 0;
        list-style: none;
    }
    
    .top-nav ul li { 
        margin: 8px 0 !important; 
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease-out;
    }
    
    .menu-open .top-nav ul li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .menu-open .top-nav ul li:nth-child(1) { transition-delay: 0.1s; }
    .menu-open .top-nav ul li:nth-child(2) { transition-delay: 0.15s; }
    .menu-open .top-nav ul li:nth-child(3) { transition-delay: 0.2s; }
    .menu-open .top-nav ul li:nth-child(4) { transition-delay: 0.25s; }
    .menu-open .top-nav ul li:nth-child(5) { transition-delay: 0.3s; }

    .top-nav ul li a { 
        color: var(--background-dark) !important; 
        font-weight: 700 !important;
        text-decoration: none;
        display: block;
        padding: 5px 0;
        font-size: 20px !important;
    }
    
    .top-nav ul li i { display: none; }
}

/* FIXED MESSAGE */
#fixed-side {width: 64px;height: 100vh;position: fixed;z-index: 998;border-right: 1px solid rgba(255,255,255,0.25);top:0;left: 0;mix-blend-mode : difference;color:#fff;}
#fixed-side .fixed-message {writing-mode: vertical-lr;text-align: center;padding: 24px 0;line-height: 64px;position: absolute;top: 50%;left: 0;transform: translateY(-50%) rotate(180deg);color: #fff;font-size: 12px;letter-spacing: 6px;white-space: nowrap;text-transform: uppercase;}
#prefered-partner {
    width: 32px;
    height: 32px;
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
#prefered-partner svg { width: 100%; height: 100%; display: block; }
#prefered-partner .logo-path-d { fill: #d3dae0; }
#prefered-partner .logo-path-yellow { fill: #998700; }
#prefered-partner .details {pointer-events: auto; position: absolute;left: 100%;margin-left:16px;background: #998700;white-space: nowrap;color: #fff;font-weight: 700;line-height: 32px;font-size: 0.85em;padding: 0 8px;top:0;opacity: 0;visibility: hidden;transition: all 0.2s ease-in-out;border-radius: 4px;}
#prefered-partner:hover .details {opacity: 1;visibility: visible;}
#prefered-partner .details:after {right: 100%;top: 50%;border: solid transparent;content: "";height: 0;width: 0;position: absolute;pointer-events: none; border-color: rgba(153, 135, 0, 0); border-right-color: #998700; border-width: 4px; margin-top: -4px;}

/* SVG Biseaux transparency for detection */
#first-diagonal, #listservices svg, #tools-logo svg { pointer-events: none; }
@media screen and (max-width:1260px){
    #fixed-side {display: none;}
    #prefered-partner {display: none;}
}

/**/
#first {min-height: 56vh;position: relative;z-index: 990;}

#first #first-header {padding-top: 64px; padding-bottom: 32px; box-sizing: border-box;}
#first-header { display: flex; align-items: stretch; }
#first-header .col { display: flex; align-items: center; justify-content: center; }
#first #first-header .top-nav { flex: 1; }
#first #first-header #logo {width: 308px;height: 72px;display: block;object-fit: contain;margin-top: 0 !important;}

@media screen and (min-width: 1400px) {
    #first #first-header #logo { width: 500px; height: 117px; }
}
#first #first-header a { display: inline-block; line-height: 0; }
#first #first-header .top-nav ul {display: flex;justify-content: flex-end;list-style: none;}
#first #first-header .top-nav ul li {color: #fff;margin: 0 16px; font-weight: 500;font-size: 16px;text-transform: uppercase;}
#first #first-header .top-nav ul li a {color: #fff;text-decoration: none;}
#first #first-header .top-nav ul li a:hover {color: var(--color-primary);}
#first #first-header .top-nav ul li i {margin-left: 5px;color: var(--color-primary);}
#first #first-header .top-nav ul li:last-child {margin-right: 0;}

#first #first-view {margin-top: 48px; margin-bottom: 96px;}
#first #first-view h1 {font-weight: 900;font-size: clamp(32px, 5vw, 48px);color: #fff;line-height: 1.2}
#first #first-view p {font-size: clamp(1.1em, 2vw, 1.3em);color: rgba(255,255,255,0.75);margin: 16px 0;max-width: 75%;line-height: 1.5;}

@media screen and (max-width: 782px) {
    #first #first-header, #page-header { padding-top: 24px; padding-bottom: 12px; position: relative !important; z-index: 999; overflow: visible !important; }
    #first #first-header .col-wrapper,
    #page-header.col-wrapper { width: 100% !important; max-width: 100% !important; margin: 0 !important; flex-direction: row !important; align-items: center; justify-content: center; padding-left: 24px !important; padding-right: 24px !important; box-sizing: border-box; overflow: visible !important; }
    #first #first-header .col, #page-header .col { flex: 0 0 auto !important; width: auto !important; }
    #first #first-header .col:last-child, #page-header .col:last-child { display: flex; justify-content: center; flex: 1 !important; }

    #first { padding-top: 0; }
    #first #first-view { margin-top: 24px; margin-bottom: 48px !important; text-align: center; padding: 0 20px; }
    #first #first-header #logo { width: 300px; height: auto !important; min-height: 60px; margin-bottom: 0; margin-top: 0 !important; display: block; }
    #page-logo { width: 200px; height: 48px; margin-top: 0 !important; }
    #fixed-top-bar #logo-fixed { width: 240px; height: auto !important; min-height: 40px; margin-top: 0 !important; }
    
    #first #first-view h1 { 
        font-size: 30px; 
        line-height: 1.25; 
        margin-bottom: 24px; 
        letter-spacing: -0.5px;
        padding: 0;
    }
    #first #first-view p { 
        max-width: 100%; 
        margin: 0 auto 32px; 
        padding: 0; 
        font-size: 1.1rem; 
        line-height: 1.5; 
        opacity: 0.9; 
        font-weight: 300;
        color: rgba(255,255,255,0.9);
    }
    .btn-hide { 
        display: none !important;
    }
    a.btn.btn-white { margin-right: 0; width: 100%; max-width: 320px; padding: 18px 24px; font-size: 16px; box-sizing: border-box; font-weight: 800; border-radius: 50px; }
    a.btn.btn-color { width: 100%; max-width: 320px; padding: 18px 24px; font-size: 16px; box-sizing: border-box; font-weight: 800; border-radius: 50px; }
}

@media screen and (max-width:1260px){
    #first #first-view {text-align: center;}
    #first #first-view p {max-width: 100%;}
}

/**/
#listservices {position: relative;z-index: 980;padding-bottom: 32px;padding-top: 32px;}
#listservices svg {width: 100%;height: auto;display: block;position: absolute;bottom: 0;z-index: -1}
#listservices .col-wrapper {flex-wrap:wrap;}
#listservices .col {background: #fff;border-radius: 10px;padding: 20px;box-sizing: border-box;box-shadow: 0 0 36px rgba(0,0,0,0.15);display: flex;align-items: center;flex: 1 1 calc(33.333% - 30px);line-height: 1.3; min-width: 300px;}
#listservices .col .col-icon {max-width: 52px;min-width: 52px;margin-right: 24px;color: var(--color-primary);font-size: 3em;text-align: center;}
#listservices .col .col-text h2 {font-size: 21px;color: var(--background-dark);margin-bottom: 6px;}
#listservices .col .col-text p {color: rgba(15, 12, 41, 0.85);}
@media screen and (max-width:1360px){
    #listservices .col {flex: 1 1 calc(50% - 30px);}
}
@media screen and (max-width:782px){
    #listservices .col {flex: 1 1 100%; min-width: 0;}
    #listservices .col .col-icon { font-size: 2.5em; margin-right: 15px; }
}

/**/
#team {background: #fff;padding-bottom: 48px;position: relative;z-index: 5;}
#team p.present {font-family: 'Manrope', sans-serif;text-align: center;font-size: clamp(32px, 6vw, 64px);max-width: 1460px;padding: 64px 20px;line-height: 1.1;margin: 0 auto;color: var(--background-dark);
	background: -webkit-linear-gradient(left, #fff, var(--color-text-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;animation: textShine 5s ease-in-out infinite alternate;background-size: 300% auto;}
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/**/
#tools-logo .col-wrapper {justify-content: center;align-items: center;padding: 64px 0;mix-blend-mode: screen;gap: 48px;flex-wrap: wrap; }
#tools-logo svg {fill: rgba(255, 255, 255, 1); max-width: 150px; height: auto;}

@media screen and (max-width: 782px) {
    #tools-logo .col-wrapper { padding: 32px 0; gap: 30px; }
    #tools-logo svg { max-width: 120px; }
}

/**/
footer {position: relative;background: #fff;}

footer #backtotop {width: 42px;height: 42px;color: rgba(0, 0, 0, 0.25);border-radius: 100vh;line-height: 42px;text-align: center;position: absolute;top: 0;left: 50%;margin-top:-21px;margin-left: -21px;font-size: 0.85em;cursor: pointer;transition: all 0.2s ease-in-out;transform: scale(1);box-sizing: border-box;background: #fff;color:#fff;background: var(--background-dark);}
footer #backtotop:hover {transform: scale(1.1);color: #fff;background: var(--color-primary);}

footer #footer-content {border-top: 1px solid rgba(0,0,0,0.25);padding: 64px 40px 32px 40px;align-items: flex-start;}
footer #footer-content #logo-bottom {width: 162px;height: 36px;display: block;object-fit: contain;}
footer #footer-content .col:last-child {display: flex;justify-content: flex-end;}
footer #footer-content #contact-infos {list-style: none;margin: 0;padding: 0;}
footer #footer-content #contact-infos li {padding: 6px 0;color: var(--color-text);}
footer #footer-content #contact-infos .footer-link {color: var(--color-text);text-decoration: none;}
footer #footer-content #contact-infos .footer-link:hover {color: var(--color-primary);}
footer #footer-content #contact-infos li i {width: 20px;color: var(--color-primary);}
footer #footer-content p {line-height: 1.5;color: var(--color-text);width: 75%; margin: 15px 0;}
footer #footer-content ul.foot-links {list-style: none;margin: 0;padding: 0; display: flex; gap: 16px;font-size: 1.6em;}
footer #footer-content ul.foot-links li a {color: var(--color-text-light);opacity: 0.8;}
footer #footer-content ul.foot-links li a:hover {color: var(--color-primary);opacity: 1;}
footer #footer-content h4 {color: var(--color-primary);margin-bottom: 8px;font-size: 1.05em}
footer #footer-content nav ul {list-style: none;font-size: 0.95em;}
footer #footer-content nav ul li {padding: 4px 0;}
footer #footer-content nav ul li a {color: var(--color-text);text-decoration: none;}
footer #footer-content nav ul li a:hover {color: var(--color-primary);}

footer #footer-legal {text-align: center;padding: 20px 0 0;display: flex;justify-content: center;align-items: center;gap: 24px;}
footer #footer-legal a {color: #6c727a;text-decoration: none;font-size: 0.85em;font-weight: 500;transition: color 0.15s ease-in-out;}
footer #footer-legal a:hover {color: var(--color-primary);}
footer #footer-legal .footer-legal-sep {width: 4px;height: 4px;border-radius: 50%;background: var(--main-light-grey);display: inline-block;}

footer #footer-copyright {font-weight: 500;text-transform: uppercase;font-size: 0.75em;padding: 12px 0 24px;text-align: center;color: #6c727a;}
footer #footer-copyright a {color: var(--color-text-light); text-decoration: none;}
footer #footer-copyright a:hover {color: var(--color-primary);}

@media screen and (max-width: 782px) {
    footer #footer-content { flex-direction: column; text-align: center; gap: 40px; }
    footer #footer-content .col { width: 100%; flex: none !important; }
    footer #footer-content #logo-bottom { margin: 0 auto; }
    footer #footer-content p { width: 100%; margin: 15px auto; }
    footer #footer-content ul.foot-links { justify-content: center; margin: 20px 0; }
    footer #footer-content #contact-infos { 
        display: inline-block; 
        text-align: left; 
        margin: 10px auto; 
        padding: 20px 0; 
        border-top: 1px solid rgba(0,0,0,0.05); 
        border-bottom: 1px solid rgba(0,0,0,0.05); 
        width: 100%;
        max-width: 280px;
    }
    footer #footer-content #contact-infos li { font-size: 0.9em; padding: 8px 0; }
    footer #footer-content #contact-infos li i { color: var(--color-primary); font-size: 0.9em; }
    footer #footer-content .col:last-child { justify-content: center; }
    footer #footer-content nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    footer #footer-legal { flex-direction: column; gap: 16px; margin-top: 32px; border-top: 1px solid rgba(0,0,0,0.05); padding: 32px 20px 0; }
    footer #footer-legal .footer-legal-sep { display: none; }
    footer #footer-copyright { padding: 16px 20px 32px; font-size: 0.7em; opacity: 0.8; }
}


#wall .poster {background: var(--color-primary);border-radius: 10px;justify-content: flex-end;align-items: flex-end;}
#wall .poster.p-3 {height: 420px;}
#wall .poster.p-2 {height: 300px;}
#wall .poster.p-1 {height: 220px;}

/* SECTION CONTACT */
#contact-section {
	background: #fff;
	padding: 96px 0;
	position: relative;
	z-index: 1;
}

#contact-section .section-title {
	font-size: clamp(2em, 5vw, 3em);
	font-weight: 900;
	text-align: center;
	color: var(--background-dark);
	margin-bottom: 16px;
}

#contact-section .section-subtitle {
	text-align: center;
	font-size: clamp(1em, 2vw, 1.2em);
	color: var(--color-text);
	margin-bottom: 48px;
}

#contact-section .contact-form-wrapper {
	background: #f8f9fa;
	padding: 48px;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Personnalisation du formulaire Bitform */
#contact-section .contact-form-wrapper input,
#contact-section .contact-form-wrapper textarea,
#contact-section .contact-form-wrapper select {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e1e4e8;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.2s ease-in-out;
	font-family: 'Sora', sans-serif;
	margin-bottom: 20px;
}

#contact-section .contact-form-wrapper input:focus,
#contact-section .contact-form-wrapper textarea:focus,
#contact-section .contact-form-wrapper select:focus {
	border-color: var(--color-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(78, 77, 152, 0.1);
}

#contact-section .contact-form-wrapper button[type="submit"],
#contact-section .contact-form-wrapper input[type="submit"] {
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: 16px 32px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	width: auto;
	margin-top: 16px;
}

#contact-section .contact-form-wrapper button[type="submit"]:hover,
#contact-section .contact-form-wrapper input[type="submit"]:hover {
	background: var(--background-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(78, 77, 152, 0.3);
}

#contact-section .contact-form-wrapper label {
	color: var(--background-dark);
	font-weight: 500;
	margin-bottom: 8px;
	display: block;
}

@media screen and (max-width:1260px){
	#contact-section {
		padding: 64px 0;
	}
	
	#contact-section .contact-form-wrapper {
		padding: 32px 20px;
	}
}

/* BITFORM RESPONSIVE FIX */
@media screen and (max-width: 782px) {
    .bit-form-column-wrapper { flex-direction: column !important; }
    .bit-form-column { width: 100% !important; max-width: 100% !important; }
    
    #contact-section { 
        padding-top: 184px !important; 
        margin-top: 0 !important;
        position: relative;
        z-index: 1;
        background: #fff;
    }
}

#work-steps {margin-top: 128px; margin-bottom: 32px; position: relative; z-index: 10;}
#work-steps .col-6 { }
#work-steps #steps-maintitle {font-size: 2.1em; font-weight: 800; font-family: 'Manrope'; color: #0F0C29 !important; display: block !important; opacity: 1 !important; visibility: visible !important;}
.content-maintitle { z-index: 10; padding-right: 30px; }

@media screen and (min-width: 783px) {
    /* Synchronise le décollage du titre avec la Carte 1 (top 15vh + height 280px + margin 24px) */
    .content-maintitle { height: calc(15vh + 304px - 128px); }
}

.content--card {
    padding: 40px 48px;
    box-sizing: border-box;
    height: 280px;
    min-height: 280px;
    line-height: normal;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
    will-change: transform;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* Card z-index pour le portefeuille GSAP */
#work-steps .content--card:nth-child(1) { z-index: 1; }
#work-steps .content--card:nth-child(2) { z-index: 2; }
#work-steps .content--card:nth-child(3) { z-index: 3; }
#work-steps .content--card:nth-child(4) { z-index: 4; }

.content--card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.content--card:last-child {margin-bottom: 0;}

/* Color Alternation (White / Blue) */
.bg-1 { 
    background: #ffffff; 
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.bg-2 { 
    background: linear-gradient(135deg, #1b203d 0%, #302b63 100%);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content--card .step {
    position: absolute;
    right: 20px;
    bottom: -20px;
    transition: all 0.5s ease;
    pointer-events: none;
    line-height: 1;
}

.content--card .step::before {
    content: attr(data-step);
    font-weight: 900;
    font-size: 8rem;
    font-family: 'Sora';
    color: #23244C;
    opacity: 0.03;
}

.bg-2 .step::before { color: #ffffff; opacity: 0.05; }

.content--card:hover .step::before {
    transform: scale(1.08); /* Scaling the pseudo for better control */
    opacity: 0.08;
}

.bg-2 .content--card:hover .step::before {
    opacity: 0.12;
}

/* Icons styling */
.step-icon {
    font-size: 2.8rem;
    margin-right: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23244C;
    flex-shrink: 0;
}

.bg-2 .step-icon {
    color: #fff;
}

.content--card .step-content { flex: 1; }

.content__title { 
    font-size: 1.7em; 
    font-weight: 800; 
    margin-bottom: 12px; 
    font-family: 'Manrope'; 
    line-height: 1.2;
}

.bg-1 .content__title { color: var(--background-dark); }
.bg-2 .content__title { color: #fff; }

.content__text { 
    margin: 0;
    line-height: 1.6;
    font-size: 1.05em;
}

.bg-1 .content__text { color: rgba(15, 12, 41, 0.9); }
.bg-2 .content__text { color: rgba(255,255,255,0.9); }

@media screen and (max-width: 782px) {
    .content-maintitle { position: relative !important; top: 0 !important; padding-right: 0; margin-bottom: 32px; }
    .content--sticky { height: auto; position: relative; }
    .content--card { 
        height: auto; 
        min-height: 200px; 
        padding: 32px; 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        margin-bottom: 24px;
        position: relative !important; /* REVERTED FROM STICKY TO ALLOW GSAP TO HANDLE PINNING */
    }
    /* Removal of conflicting top positions for GSAP compatibility */
    #work-steps .content--card:nth-child(2) { z-index: 2; }
    #work-steps .content--card:nth-child(3) { z-index: 3; }
    #work-steps .content--card:nth-child(4) { z-index: 4; }
    .step-icon { margin-right: 0; margin-bottom: 16px; font-size: 2.2rem; width: auto; height: auto; }
    .content--card .step { font-size: 4rem; right: 20px; bottom: -10px; }
}

@media screen and (max-width:1260px){
    #work-steps {margin-top: 32px}
    #work-steps #steps-maintitle {display: block !important;}
}


/*******************************************/
/* PAGE TEMPLATE (mentions légales, etc.)  */
/*******************************************/

#page-hero {position: relative;z-index: 990;min-height: 40vh;display: flex;flex-direction: column;}

/* Diagonale CSS (remplace le SVG) */
#page-hero::after {content: '';position: absolute;bottom: 0;left: 0;right: 0;height: 60px;background: #fff;clip-path: polygon(100% 0%, 100% 100%, 0% 100%);z-index: 1;}

/* Header logo + nav */
#page-header {padding: 64px 40px;box-sizing: border-box;align-items: stretch;}
#page-header .col { display: flex; align-items: center; justify-content: center; }
#page-header .top-nav { flex: 1; }
#page-logo {width: 308px;height: 72px;display: block;object-fit: contain;}
#page-header a { display: inline-block; line-height: 0; }
#page-nav ul {display: flex;justify-content: flex-end;list-style: none;}
#page-nav ul li {color: #fff;margin: 0 16px;font-weight: 500;font-size: 16px;text-transform: uppercase;}
#page-nav ul li a {color: #fff;text-decoration: none;}
#page-nav ul li a:hover {color: var(--color-primary);}
#page-nav ul li i {margin-left: 5px;color: var(--color-primary);}
#page-nav ul li:last-child {margin-right: 0;}

/* Titre de la page */
#page-title-area {padding: 48px 0 96px;flex: 1;text-align: center;}
.page-breadcrumb {color: rgba(255,255,255,0.45);font-size: 0.8em;text-transform: uppercase;letter-spacing: 2px;margin-bottom: 20px;}
.page-breadcrumb a {color: rgba(255,255,255,0.45);text-decoration: none;transition: color 0.15s ease-in-out;}
.page-breadcrumb a:hover {color: var(--color-primary);}
.page-breadcrumb span {margin: 0 10px;opacity: 0.35;}
#page-title-area h1 {font-weight: 900;font-size: 48px;color: #fff;line-height: 1.2;}

/* Zone de contenu */
#page-content {background: #fff;padding: 96px 0 128px;}

#page-article {max-width: 860px;margin: 0 auto;color: var(--color-text);line-height: 1.8;font-size: 1em;}
#page-article h2 {color: var(--background-dark);font-size: 1.5em;font-weight: 700;margin: 48px 0 16px;padding-bottom: 12px;border-bottom: 2px solid var(--color-primary);}
#page-article h3 {color: var(--background-dark);font-size: 1.15em;font-weight: 600;margin: 32px 0 10px;}
#page-article p {margin-bottom: 16px;}
#page-article ul, #page-article ol {margin: 12px 0 16px 28px;}
#page-article li {margin-bottom: 8px;}
#page-article a {color: var(--color-primary);text-decoration: none;}
#page-article a:hover {text-decoration: underline;}
#page-article strong {color: var(--background-dark);font-weight: 600;}
#page-article hr {border: none;border-top: 1px solid var(--main-light-grey);margin: 40px 0;}

@media screen and (max-width:1260px){
    #page-title-area h1 {font-size: 36px;}
    #page-nav:not(.top-nav) {display: none;} /* Don't hide if it's acting as mobile nav */
    #page-content {padding: 64px 0 96px;}
    #page-header { padding: 40px 30px; }
}

/* PARTENER LOGOS SECTION */
#tools-logo {
    background: var(--background-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

#tools-logo .col-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

#tools-logo .logo-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0) invert(1); /* Force monochromatic white */
    opacity: 0.4;
}

#tools-logo .logo-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

#tools-logo svg {
    height: 60px;
    width: auto;
    max-width: 200px;
}

@media screen and (max-width: 782px) {
    #tools-logo { padding: 48px 0; }
    #tools-logo .logo-item { min-width: 120px; opacity: 0.7; }
    #tools-logo svg { height: 32px; }
}

/* ==========================================
   PAGE 404
   ========================================== */
#error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.error-404-inner {
    max-width: 600px;
}

.error-404-code {
    font-family: 'Sora', sans-serif;
    font-size: clamp(120px, 20vw, 220px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--background-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0.9;
}

.error-404-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.error-404-text {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.error-404-inner .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

@media screen and (max-width: 782px) {
    #error-404 { padding: 100px 20px 40px; }
}