/* =========================================================
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;
}
.cap{text-transform: uppercase;}
a.noderline{
    text-decoration: none;
    display: inline-block;
    position: relative;
}
a.noderline::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f7b119;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

a.noderline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* =========================================================
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
========================================================= */
.hero2{
    position:relative;
    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;
    align-items:center;
    padding-top:250px;
}

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

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

.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:3.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;
}

.hero2 h1{
    color:white;
    font-size:2.5rem;
    line-height:1.05;
    font-weight:800;
}

.hero2 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;
    padding: 60px 0;
    overflow:hidden;
}

  .container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }
 
  /* Colonne texte gauche */
  .stats .eyebrow {
    color: #f5a623;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
 
  .stats h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
  }
 
  .btn-outline-stats {
    display: inline-block;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
  }
 
  .btn-outline-stats:hover {
    background: #ffffff;
    color: #035b9d;
  }
 
  /* Colonne des 4 stats */
  .el-stats-box {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0 20px;
  }
 
  .el-stats-box:first-child {
    border-left: none;
  }
 
  .stats-box {
    text-align: center;
  }
 
  .stats-box .icon-wrap {
    height: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .stats-box .icon-wrap svg {
    width: 34px;
    height: 34px;
    stroke: #f5a623;
  }
 
  .stats-box h3 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
  }
 
  .stats-box p {
    font-size: 13px;
    color: #c9d6e3;
    line-height: 1.5;
    margin: 0;
  }
 
  @media (max-width: 991px) {
    .el-stats-box {
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.25);
      padding: 24px 12px;
    }
    .el-stats-box:first-child {
      border-top: none;
    }
  }


/* =========================================================
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
========================================================= */

  .tech {
    background-color: #f4f6fa;
    padding: 50px 0;
  }
 
  .container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
 
  .tech .eyebrow {
    color: #005d9c;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
 
  .tech h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f1b33;
    margin-bottom: 18px;
  }
 
  .link-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a5fd0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
  }
 
  .link-tech svg {
    width: 16px;
    height: 16px;
    stroke: #1a5fd0;
    transition: transform 0.2s ease;
  }
 
  .link-tech:hover svg {
    transform: translateX(4px);
  }
 
  .el-tech-box {
    border-left: 1px solid #d7dce4;
    padding: 0 16px;
  }
 
  .el-tech-box:first-child {
    border-left: none;
  }
 
  .tech-box {
    text-align: center;
  }
 
  .tech-box .icon-wrap {
    height: 34px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .tech-box .icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: #1a5fd0;
  }
 
  .tech-box p {
    font-size: 12.5px;
    color: #3a4657;
    line-height: 1.4;
    margin: 0;
  }
 
  @media (max-width: 991px) {
    .el-tech-box {
      border-left: none;
      border-top: 1px solid #d7dce4;
      padding: 20px 10px;
    }
    .el-tech-box:first-child {
      border-top: none;
    }
  }

/*.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;
}

/* =========================================================
CONTACT
============================================================

  .contact-section {
    padding: 70px 0;
  }
 
  .contact-section .eyebrow {
    color: #f5a623;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
 
  .contact-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f1b33;
    margin-bottom: 16px;
  }
 
  .contact-section .lead-text {
    color: #55627a;
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 480px;
  }
 
  /* --- Formulaire --- */
  .contact-form-wrap {
    background: #f4f6fa;
    border-radius: 8px;
    padding: 36px;
  }
 
  .contact-form-wrap .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f1b33;
    margin-bottom: 6px;
  }
 
  .contact-form-wrap .form-control,
  .contact-form-wrap .form-select {
    border: 1px solid #d7dce4;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
  }
 
  .contact-form-wrap .form-control:focus,
  .contact-form-wrap .form-select:focus {
    /*border-color: #035b9d;*/
    box-shadow: 0 0 0 0.2rem #f7b119;
  }
 
  .btn-contact {
    background-color: #035b9d;
    color: #ffffff;
    border: none;
    padding: 13px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 0.2s ease;
  }
 
  .btn-contact:hover {
    background-color: #f7b119;
    color: #ffffff;
  }
 
  /* --- Bloc infos --- */
  .info-card {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
  }
 
  .info-card .icon-wrap {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .info-card .icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: #035b9d;
  }
 
  .info-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f1b33;
    margin-bottom: 4px;
  }
 
  .info-card p, .info-card a {
    font-size: 13.5px;
    color: #55627a;
    margin: 0;
    text-decoration: none;
    line-height: 1.5;
  }
 
  .info-card a:hover {
    color: #035b9d;
    text-decoration: underline;
  }
 
  /* --- Horaires --- */
  .hours-box {
    background: #035b9d;
    border-radius: 8px;
    padding: 26px 28px;
    color: #ffffff;
    margin-bottom: 26px;
  }
 
  .hours-box h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f7b119;
    margin-bottom: 16px;
  }
 
  .hours-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
 
  .hours-box li {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
 
  .hours-box li:last-child {
    border-bottom: none;
  }
 
  .hours-box li span:first-child {
    color: #c9d6e3;
  }
 
  .hours-box li span:last-child {
    font-weight: 600;
  }
 
  /* --- Carte --- */
  .map-wrap {
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid #d7dce4;
  }
 
  .map-wrap iframe {
    width: 100%;
    height: 260px;
    border: 0;
  }


/* =========================================================
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;
}
footer .eyebrow {
    color: #005d9c;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

/* ==========================================
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;
    }

}
