/* =========================================================
ROOT
========================================================= */

:root{
    --primary:#005d9c;
    --primary-light:#0a75c2;
    --primary-dark:#00497b;

    --accent:#f7b119;

    --white:#ffffff;
    --light:#f5f8fc;

    --text:#1b1f24;

    --radius:20px;
}

/* =========================================================
GLOBAL
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    color:var(--text);
    overflow-x:hidden;
    background:white;
}

img{
    max-width:100%;
    display:block;
}

.container-custom{
    max-width:1400px;
    margin:auto;
    padding-left:40px;
    padding-right:40px;
}
.noderline{
    text-decoration: none;
}

/* =========================================================
HEADER
========================================================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(0,0,0,0.05);
}

.navbar{
    padding:18px 0;
}
.navbar-nav{
    gap:20px;
}
.logo{
    height:58px;
}

.nav-link{
    color:var(--text);
    font-weight:600;
    /*margin:0 14px;*/
    margin:0;
    font-size:.95rem;
    letter-spacing:.3px;
    position:relative;
}

.nav-link:after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--accent);
    transition:.3s;
}

.nav-link:hover:after{
    width:100%;
}

.btn-hvs{
    background:var(--accent);
    color:#000;
    border:none;
    padding:14px 28px;
    border-radius:10px;
    font-weight:700;
    transition:.3s;
}

.btn-hvs:hover{
    transform:translateY(-2px);
    background:#ffca4c;
}

.dropdown-hvs:hover > .nav-link:after{
    width:100%;
}

/*.dropdown-hvs:hover .bi-chevron-down{
    transform:rotate(180deg);
}

.bi-chevron-down{
    transition:.3s;
}*/
.dropdown-hvs{
    position:relative;
}
.dropdown-hvs > .nav-link{
    display:inline-flex;
    align-items:center;
}

/*.dropdown-hvs > a{
    display:block;
}*/

.mega-dropdown::before{
    content:"";
    position:absolute;
    top:-15px;
    left:0;
    width:100%;
    height:15px;
}

.mega-dropdown{
    display: grid;
    grid-template-columns:1fr 1fr;
    position:fixed;
    top:97px;
    /*top:calc(100% + 10px);*/
    left:50%;
    margin-left:-425px;
    transform: translateY(15px);
    width:min(850px,90vw);
    background:white;
    border-radius:20px;
    padding:20px;
    box-shadow:
0 10px 30px rgba(0,0,0,.05),
0 30px 80px rgba(0,0,0,.08);
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.dropdown-hvs:hover .mega-dropdown{
    opacity:1;
    visibility:visible;
    transform: translateY(0);

}
/* ANIMATION */
.mega-dropdown a{
    display:grid;
    padding:15px;
    border-radius:12px;
    text-decoration:none;
    transition:.3s;
}

.mega-dropdown a:hover{

    /*background:#f5f8fc;*/
    background:rgba(0,93,156,.06);
    transform:translateX(6px);
}
.dropdown-right{
    margin-left:20px;
}

/*.mobile-submenu{
    display:none;
}*/

/* =========================================================
HERO
========================================================= */

.hero{
    position:relative;
    min-height:100vh;
    /*background:
    linear-gradient(135deg,
    var(--primary) 0%,
    var(--primary-light) 100%);*/
    background:
    radial-gradient(circle at top right,
    rgba(255,255,255,0.12),
    transparent 30%),

    radial-gradient(circle at bottom left,
    rgba(247,177,25,0.08),
    transparent 25%),

    linear-gradient(
    135deg,
    #005d9c 0%,
    #0a75c2 45%,
    #00497b 100%);
    overflow:hidden;
    display:flex;
    align-items:center;
    padding-top:200px;
}

.hero:before{
    content:'';
    position:absolute;
    top:-250px;
    right:-250px;
    width:700px;
    height:700px;
    background:rgba(255,255,255,0.06);
    border-radius:50%;
}

.hero:after{
    content:'';
    position:absolute;
    bottom:-300px;
    left:-300px;
    width:700px;
    height:700px;
    background:rgba(255,255,255,0.05);
    border-radius:50%;
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-subtitle{
    color:var(--accent);
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:20px;
}

.hero h1{
    color:white;
    font-size:5rem;
    line-height:1.05;
    font-weight:800;
    margin-bottom:30px;
}

.hero p{
    color:rgba(255,255,255,0.9);
    font-size:1.2rem;
    line-height:1.8;
    max-width:650px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
}

.btn-outline-custom{
    border:1px solid rgba(255,255,255,0.4);
    color:white;
    padding:14px 28px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btn-outline-custom:hover{
    background:white;
    color:var(--primary);
}

.hero-image{
    position:relative;
    z-index:2;
}

.hero-image img{
    border-radius:30px;
    box-shadow:0 30px 80px rgba(0,0,0,0.25);
}

/* =========================================================
SECTION
========================================================= */

section{
    padding:120px 0;
}

.section-light{
    background:white;
}
.section-bleu{
    background:
    linear-gradient(135deg,
    var(--primary),
    var(--primary-light));
    color:white;
    /*border-radius:30px;*/
    padding:80px;
}
.section-grey{
    background:var(--light);
}

.section-title{
    margin-bottom:70px;
}
.section-title-bis{
    margin-bottom:70px;
}

.section-title span, .section-title-bis span{
    color:var(--primary);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
}

.section-title h2{
    font-size:3.5rem;
    font-weight:800;
    margin-top:15px;
}

/* =========================================================
CARDS
========================================================= */

.service-card{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 0px 12px rgba(0,0,0,0.1);
    transition:.4s;
    height:100%;
}

.service-card:hover{
    transform:translateY(-12px);
}

.service-card img{
    height:260px;
    width:100%;
    object-fit:cover;
}

.service-content{
    padding:35px;
}

.service-content h4{
    font-size:1.4rem;
    font-weight:700;
    margin-bottom:15px;
}

.service-content p{
    color:#666;
    line-height:1.7;
}

/* ************** SLIDER ****************/
.services-section{
    padding:140px 0;
    background:#fff;
    overflow:hidden;
}

.services-header{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:60px;
}

.services-header h2{
    font-size:3rem;
    font-weight:800;
    max-width:700px;
    margin-top:15px;
}

.mini-title{
    color:#005d9c;
    text-transform:uppercase;
    font-weight:700;
    letter-spacing:1px;
}

.services-nav{
    display:flex;
    gap:15px;
}

.custom-prev,
.custom-next{
    margin-top: -150px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#f5f8fc;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
    font-size:1.2rem;
    font-weight:700;
}

.custom-prev:hover,
.custom-next:hover{
    background:#005d9c;
    color:white;
}

.servicesCardsSlider{
    overflow:visible;
}

.service-card{
    background:white;
    border-radius:10px;
    overflow:hidden;

    box-shadow:
    0 0px 12px rgba(0,0,0,0.1);

    transition:.5s;
}

.service-card:hover{
    transform:translateY(-10px);
}

.service-card img{
    width:100%;
    height:280px;
    object-fit:cover;
}

.service-content{
    padding:35px;
}

.service-content span{
    color:#f7b119;
    font-weight:700;
    text-transform:uppercase;
    font-size:.85rem;
    letter-spacing:1px;
}

.service-content h3{
    font-size:1.8rem;
    font-weight:800;
    margin:15px 0;
    line-height:1.2;
}

.service-content p{
    color:#666;
    line-height:1.8;
}

.service-content a{
    display:inline-block;
    margin-top:20px;
    text-decoration:none;
    color:#005d9c;
    font-weight:700;
}

/* ************** CAROUSEL **************/
.services-slider{
    padding:140px 0;
    background:#fff;
    overflow:hidden;
}

.servicesSwiper{
    padding-top:50px;
    overflow:visible;
}

.service-slide{
    position:relative;
    border-radius:28px;
    overflow:hidden;
    height:700px;
}

.service-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:1.2s;
}

.service-slide:hover img{
    transform:scale(1.06);
}

.service-overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
    to top,
    rgba(0,0,0,0.82),
    rgba(0,0,0,0.15));

    display:flex;
    align-items:flex-end;

    padding:60px;
}

.service-text span{
    color:#f7b119;
    text-transform:uppercase;
    font-weight:700;
    letter-spacing:1px;
}

.service-text h3{
    color:white;
    font-size:3rem;
    font-weight:800;
    margin:15px 0;
    max-width:500px;
}

.service-text p{
    color:rgba(255,255,255,0.85);
    max-width:500px;
    line-height:1.8;
}

.service-text a{
    display:inline-block;
    margin-top:25px;
    color:white;
    text-decoration:none;
    font-weight:700;
}

/* =========================================================
STATS
========================================================= */

.stats{
    background:
    linear-gradient(135deg,
    var(--primary-dark),
    var(--primary));
    color:white;
    position:relative;
    overflow:hidden;
}

.stats-box{
    text-align:center;
}
.el-stats-box:not(:last-child) {
    border-right: 1px solid #4a7ba7;
}

.stats-box h3{
    font-size:4rem;
    font-weight:800;
    color:var(--accent);
}

.stats-box p{
    font-size:1.1rem;
    opacity:0.9;
}

/* =========================================================
PROJECTS
========================================================= */

.project-card{
    position:relative;
    overflow:hidden;
    border-radius:24px;
}

.project-card img{
    transition:.6s;
}

.project-card:hover img{
    transform:scale(1.08);
}

.project-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:flex-end;
    padding:40px;
    background:
    linear-gradient(to top,
    rgba(0,0,0,0.75),
    transparent);
}

.project-overlay h4{
    color:white;
    font-size:1.5rem;
    font-weight:700;
}

/* =========================================================
CTA
========================================================= */

/*.cta{
    background:
    linear-gradient(135deg,
    var(--primary),
    var(--primary-light));
    color:white;
    padding:80px;
}*/

.cta h2{
    font-size:3rem;
    font-weight:800;
    margin-bottom:20px;
}

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

footer{
    background:#f8fafc;
    padding:90px 0 40px;
}

.footer-logo{
    height:60px;
    margin-bottom:25px;
}

footer h5{
    font-weight:700;
    margin-bottom:25px;
}

footer ul{
    list-style:none;
    padding:0;
}

footer ul li{
    margin-bottom:12px;
}

footer a{
    text-decoration:none;
    color:#444;
}

.footer-bottom{
    border-top:1px solid #ddd;
    margin-top:50px;
    padding-top:25px;
    text-align:center;
}

/* ==========================================
OFFCANVAS MOBILE
========================================== */

.offcanvas{
    width:min(340px,90vw);
    background:#fff;
}

.offcanvas-header{
    padding:20px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.offcanvas-body{
    padding:0;
    overflow-y:auto;
}


.mobile-nav{
    list-style:none;
    margin:0;
    padding:0;
}
.mobile-nav li{
    border-bottom:1px solid rgba(0,0,0,.05);
}
.mobile-nav > li > a{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:18px 20px;

    color:#222222;

    text-decoration:none;

    font-weight:600;
}
.mobile-dropdown-trigger i{
    transition:.3s;
}
.mobile-dropdown.active i{
    transform:rotate(180deg);
}

.mobile-dropdown i{
    transition:.3s;
}
.mobile-submenu{

    max-height:0;

    overflow:hidden;

    transition:max-height .35s ease;

    background:#f8fafc;
}
.mobile-dropdown.active .mobile-submenu{
    max-height:300px;
}
.mobile-submenu a{

    display:block;

    padding:14px 20px 14px 40px;

    color:#5f6b7a;

    text-decoration:none;

    font-size:.95rem;
}
.mobile-submenu a:hover{
    background:#eef5fb;
    color:#005d9c;
}
.mobile-cognex div{
    padding: 18px 20px;
    font-size: 13px;
    text-align:center;
}
.mobile-cognex img{
    width: 200px;
    margin: 0 auto;
}

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

@media(max-width:992px){

    .hero h1{
        font-size:3rem;
    }

    .section-title h2{
        font-size:2.4rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .mega-dropdown{
        display:none !important;
    }

    .mobile-submenu a{

        display:block;

        /*padding:10px 0;*/

        color:#666;

        text-decoration:none;

        font-size:.95rem;
    }
    
    /*.mobile-submenu{

        display:block;
        padding-left:15px;
        max-height:0;

        overflow:hidden;

        transition:max-height .35s ease;
    }*/

    /*.mobile-submenu.open{

        max-height:300px;
    }
    .dropdown-hvs{
        position:static;
    }
    .dropdown-hvs.active > .nav-link{
        color:#005d9c;
    }
    .dropdown-hvs.active .bi-chevron-down,
    .dropdown-hvs:hover .bi-chevron-down{
        transform:rotate(180deg);
    }
    .dropdown-hvs.active > .nav-link:after{
        width:100%;
    }*/
    .container-custom{
        padding-left:25px;
        padding-right:25px;
    }

}
