:root{
  --teal:#00C4B8;--blue:#2C7FB0;--red:#EF3F2C;--dark:#0F2A3D;--navy:#061B2E;--soft:#F7FBFD;--line:#DEEAF0;--muted:#617385;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;background:#fff;color:var(--dark)}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.site{max-width:1024px;margin:auto;background:#fff;box-shadow:0 0 35px rgba(0,0,0,.14)}
.topbar{height:30px;background:#031421;color:#fff;display:flex;align-items:center;justify-content:flex-end;gap:28px;padding:0 36px;font-size:12px}
.header{height:75px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid #edf2f5}
.brand,.footer-brand{display:flex;align-items:center;gap:10px}
.brand-mark{width:62px;height:48px;position:relative;display:inline-block}
.brand-mark:before{content:"";position:absolute;width:43px;height:43px;border:5px solid var(--teal);border-radius:50% 8px 50% 8px;transform:rotate(-10deg);top:2px;left:0}
.brand-mark:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:var(--red);top:19px;left:22px}
.brand-text strong{display:block;font-size:30px;line-height:.85;color:#081d34;font-weight:900}
.brand-text small{display:block;font-size:13px;letter-spacing:1.3px;color:#081d34}
.nav{display:flex;align-items:center;gap:20px;font-size:11px;text-transform:uppercase;font-weight:900;color:#061B2E}
.nav-cta{background:var(--teal);color:#fff;padding:11px 14px;border-radius:5px}
.hero{height:350px;background:linear-gradient(90deg,rgba(3,20,33,.95),rgba(3,20,33,.72) 44%,rgba(3,20,33,.08)),url("../images/hero-bg.jpg") center/cover;display:flex;align-items:center;padding:0 46px;color:#fff}
.hero-content{width:440px}
.hero h1{font-size:46px;line-height:0.90;text-transform:uppercase;font-weight:900;letter-spacing:-1px;margin-bottom:17px}
.hero h1 span{display:block;color:var(--teal)}
.hero p{font-size:14px;line-height:1.58;color:rgba(255,255,255,.9);margin-bottom:24px}
.actions{display:flex;gap:17px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:13px 18px;text-transform:uppercase;font-size:12px;font-weight:900}
.primary{background:var(--teal);color:#fff}
.outline{border:1px solid rgba(255,255,255,.8);color:#fff}
.section{padding:34px 33px}
.section h2{font-size:20px;text-align:center;text-transform:uppercase;font-weight:900;color:#061B2E;margin-bottom:21px;position:relative}
.section h2:after,.why h2:after{content:"";display:block;width:54px;height:3px;background:var(--teal);margin:7px auto 0;border-radius:8px}
.expertise-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:11px}
.card{height:190px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:center;padding:18px 10px 12px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;box-shadow:0 8px 22px rgba(15,42,61,.05)}
.card img{height:58px;object-fit:contain;margin-bottom:4px}
.card h3{font-size:11px;text-transform:uppercase;line-height:1.22;color:#061B2E}
.card p{font-size:10.5px;line-height:1.35;color:#34475A}
.card a{color:var(--teal);font-size:20px;font-weight:900}
.why{display:grid;grid-template-columns:45% 55%;height:238px}
.why-img{background:url("../images/atelier-jumeau.jpg") center/cover}
.why-content{background:#061B2E;color:#fff;padding:25px 35px}
.why h2{font-size:22px;text-transform:uppercase;font-weight:900;margin-bottom:20px}
.why h2 span{display:block;color:var(--teal)}
.why h2:after{margin:6px 0 0;width:40px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.why-grid article{text-align:center;border-left:1px solid rgba(255,255,255,.28);padding:0 9px}
.why-grid article:first-child{border-left:none}
.why-grid img{height:42px;margin:0 auto 12px}
.why-grid h3{font-size:12px;text-transform:uppercase;line-height:1.18;margin-bottom:7px}
.why-grid p{font-size:10.5px;line-height:1.35;color:rgba(255,255,255,.78)}
.projects{padding-bottom:40px}
.project-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}
.project{height:178px;border-radius:8px;overflow:hidden;background-size:cover;background-position:center;display:flex;align-items:flex-end;box-shadow:0 12px 25px rgba(15,42,61,.14);position:relative}
.project:after{content:"→";position:absolute;right:12px;bottom:10px;color:#fff;font-size:22px;font-weight:900}
.project div{padding:16px 14px;color:#fff;position:relative;z-index:2}
.project h3{font-size:12px;line-height:1.15;text-transform:uppercase;margin-bottom:8px}
.project p{font-size:10.5px;line-height:1.32;color:rgba(255,255,255,.9)}
.p1{background-image:linear-gradient(180deg,transparent 15%,rgba(5,22,38,.92)),url("../images/projet-production.jpg")}
.p2{background-image:linear-gradient(180deg,transparent 15%,rgba(5,22,38,.92)),url("../images/projet-jumeau.jpg")}
.p3{background-image:linear-gradient(180deg,transparent 15%,rgba(5,22,38,.92)),url("../images/projet-robotique.jpg")}
.p4{background-image:linear-gradient(180deg,transparent 15%,rgba(5,22,38,.92)),url("../images/projet-metrologie.jpg")}
.p5{background-image:linear-gradient(180deg,transparent 15%,rgba(5,22,38,.92)),url("../images/projet-haptique.jpg")}
.project-btn{border:1px solid var(--teal);color:#061B2E;margin:26px auto 0;width:300px;background:#fff}
.figures{height:120px;background:#061B2E;color:#fff;display:grid;grid-template-columns:72% 28%}
.figures-left{padding:18px 46px}
.figures-left h2{text-transform:uppercase;font-size:18px;margin-bottom:16px}
.figures-left h2 span{color:var(--teal)}
.figure-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}
.figure-grid article{border-left:1px solid rgba(255,255,255,.25);padding-left:12px}
.figure-grid strong{display:block;font-size:22px}
.figure-grid span{font-size:10.5px;color:rgba(255,255,255,.78)}
.figures-cta{background:linear-gradient(135deg,var(--teal),#07879D);padding:24px 30px}
.figures-cta h2{text-transform:uppercase;font-size:18px;margin-bottom:8px}
.figures-cta p{font-size:11px;margin-bottom:6px;color:rgba(255,255,255,.88)}
.white{background:#fff;color:#061B2E;padding:10px 18px;font-size:11px}
.footer{background:#061B2E;color:#fff;padding:28px 43px 13px}
.footer-grid{display:grid;grid-template-columns:1.35fr repeat(4,1fr) 1.35fr;gap:24px}
.brand-mark.small{width:44px;height:36px;transform:scale(.75);transform-origin:left center}
.footer-brand strong{font-size:26px;color:#fff}
.footer p,.footer a{display:block;font-size:11px;line-height:1.45;color:rgba(255,255,255,.76);margin-bottom:7px}
.footer h4{font-size:12px;text-transform:uppercase;margin-bottom:12px;color:#fff}
.footer h4:before{content:"";display:block;width:28px;height:3px;background:var(--teal);margin-bottom:11px}
.footer-btn{border:1px solid rgba(255,255,255,.45);border-radius:5px;padding:10px 14px;margin-top:10px;text-transform:uppercase;color:#fff!important;text-align:center}
.legal{border-top:1px solid rgba(255,255,255,.12);margin-top:22px;padding-top:12px;display:flex;gap:55px;font-size:10px;color:rgba(255,255,255,.56)}
.socials{display:flex;gap:10px;margin-top:16px}
.socials a{font-size:18px;width:40px;height:40px;border:1px solid rgba(255,255,255,.5);border-radius:5px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900}
.socials a:hover{border-color:var(--teal);color:var(--teal)}
@media(max-width:900px){
.site{max-width:100%;box-shadow:none}.topbar,.nav{display:none}.header{height:80px}.hero{height:auto;padding:70px 28px}.hero h1{font-size:36px}.hero-content{width:100%}.actions{flex-direction:column;align-items:flex-start}.expertise-grid{grid-template-columns:repeat(2,1fr)}.why{grid-template-columns:1fr;height:auto}.why-img{height:260px}.why-grid{grid-template-columns:repeat(2,1fr)}.project-grid{grid-template-columns:1fr}.project{height:230px}.figures{height:auto;grid-template-columns:1fr}.figure-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.legal{gap:16px;flex-wrap:wrap}
}
@media(max-width:520px){.expertise-grid,.why-grid,.figure-grid,.footer-grid{grid-template-columns:1fr}.hero h1{font-size:30px}}


.real-logo{
  width:190px;
  height:auto;
  display:block;
}

.footer-logo{
  width:140px;
  height:auto;
  display:block;
  margin-bottom:10px;
}

.brand-mark,
.brand-text{
  display:none;
}


.footer-brand-white{
  display:flex;
  align-items:center;
  gap:12px;
}

.footer-logo-text strong{
  display:block;
  color:#ffffff;
  font-size:30px;
  line-height:0.9;
  font-weight:900;
  letter-spacing:-1px;
}

.footer-logo-text span{
  display:block;
  color:#ffffff;
  font-size:12px;
  letter-spacing:2px;
  margin-top:4px;
}


.real-logo-header{
  width:215px;
  height:auto;
  display:block;
}

.real-logo-footer{
  width:185px;
  height:auto;
  display:block;
}

.footer-brand-final{
  display:flex;
  align-items:center;
}

.brand-mark,
.brand-text,
.footer-logo-text{
  display:none !important;
}


/* Correction position titre projets */
.projects{
  padding-top: 52px !important;
  margin-top: 18px;
  background:#ffffff;
}

.projects .section-title,
.projects h2{
  position: relative;
  top: 10px;
}


/* =====================================================
   CORRECTION MENU RESPONSIVE
   Le menu haut reste visible lorsque la fenêtre est réduite
   ===================================================== */

/* Le header peut passer sur plusieurs lignes sans masquer le menu */
#section-haute,
#section-haute *,
.zone-haute,
.zone-haute *{
  box-sizing:border-box;
}

/* Les navigations restent visibles et se réorganisent */
#section-haute nav,
#section-haute .nav,
#section-haute .navbar,
#section-haute .navigation,
.zone-haute nav,
.zone-haute .nav,
.zone-haute .navbar,
.zone-haute .navigation{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px 18px !important;
  max-width:100% !important;
  overflow:visible !important;
}

/* Les lignes internes du header peuvent s'adapter */
#section-haute .navrow,
#section-haute .header,
#section-haute .site-header,
.zone-haute .navrow,
.zone-haute .header,
.zone-haute .site-header{
  height:auto !important;
  min-height:72px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px 22px !important;
  overflow:visible !important;
}

/* Liens du menu lisibles en largeur réduite */
#section-haute nav a,
#section-haute .nav a,
.zone-haute nav a,
.zone-haute .nav a{
  display:inline-flex !important;
  white-space:nowrap !important;
  font-size:12px !important;
  line-height:1.2 !important;
}

/* Le bouton CTA reste visible mais peut passer sous le menu */
#section-haute .cta,
#section-haute .header-cta,
.zone-haute .cta,
.zone-haute .header-cta{
  display:inline-flex !important;
  white-space:nowrap !important;
}

/* Mobile/tablette : menu toujours visible, en grille propre */
@media(max-width:900px){
  #section-haute{
    position:sticky !important;
    top:0 !important;
  }

  #section-haute nav,
  #section-haute .nav,
  .zone-haute nav,
  .zone-haute .nav{
    display:flex !important;
    width:100% !important;
    order:3 !important;
    justify-content:center !important;
    padding:8px 0 4px !important;
  }

  #section-haute nav a,
  #section-haute .nav a,
  .zone-haute nav a,
  .zone-haute .nav a{
    font-size:11px !important;
    padding:6px 8px !important;
  }

  #section-haute .brand,
  .zone-haute .brand{
    flex:1 1 auto !important;
  }

  #section-haute .brand img,
  .zone-haute .brand img{
    max-width:180px !important;
    height:auto !important;
  }

  #section-haute .cta,
  #section-haute .header-cta,
  .zone-haute .cta,
  .zone-haute .header-cta{
    order:2 !important;
    font-size:11px !important;
    padding:9px 12px !important;
  }
}

/* Très petit écran : menu en 2 colonnes au lieu de disparaître */
@media(max-width:560px){
  #section-haute nav,
  #section-haute .nav,
  .zone-haute nav,
  .zone-haute .nav{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:6px !important;
  }

  #section-haute nav a,
  #section-haute .nav a,
  .zone-haute nav a,
  .zone-haute .nav a{
    justify-content:center !important;
    text-align:center !important;
    white-space:normal !important;
    border:1px solid rgba(0,196,184,.25) !important;
    border-radius:6px !important;
  }

  .critt-topbar{
    font-size:11px !important;
  }
}


/* =====================================================
   LOGOS INSTITUTIONNELS HEADER — FEDER / RÉGION
   ===================================================== */
.institutional-logos{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-left:18px !important;
  margin-right:18px !important;
  flex:0 0 auto !important;
  max-width:240px !important;
}

.institutional-logos img{
  height:58px !important;
  width:auto !important;
  display:block !important;
  object-fit:contain !important;
}

/* Alignement dans les lignes header existantes */
#section-haute .navrow,
.zone-haute .navrow,
header .navrow{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:18px !important;
}

#section-haute .brand,
.zone-haute .brand,
header .brand{
  display:flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
}

@media(max-width:1100px){
  .institutional-logos{
    max-width:190px !important;
    margin-left:8px !important;
    margin-right:8px !important;
  }

  .institutional-logos img{
    height:46px !important;
  }
}

@media(max-width:760px){
  .institutional-logos{
    order:2 !important;
    width:100% !important;
    max-width:100% !important;
    justify-content:center !important;
    margin:8px 0 !important;
  }

  .institutional-logos img{
    height:42px !important;
  }
}

/* Footer navigation links */
.footer h4 a{color:inherit;text-decoration:none;cursor:pointer;}
.footer h4 a:hover,.footer-grid a:hover{text-decoration:none;opacity:.85;}
.footer-grid a{cursor:pointer;}


/* V64 standard sans CAPTCHA - contrôleur unique */
.central-content[aria-hidden="true"]{display:none!important;}
.central-content.central-content-active{display:block!important;}
.actualites-v52-news[hidden]{display:none!important;}
.actualites-v52-chip{cursor:pointer;appearance:none;}
.actualites-v52-chip.is-active{border-color:#00a99d!important;box-shadow:0 0 0 2px rgba(0,196,184,.18);}


/* V65 Clean Architecture */
.central-content[aria-hidden="true"]{display:none!important;}
.central-content.central-content-active{display:block!important;}
.actualites-v52-news[hidden]{display:none!important;}
.actualites-v52-chip{cursor:pointer;appearance:none;}
.actualites-v52-chip.is-active{border-color:#00a99d!important;box-shadow:0 0 0 2px rgba(0,196,184,.18);}

.legal a.footer-admin-link{color:rgba(255,255,255,.72);text-decoration:none;font-weight:700}.legal a.footer-admin-link:hover{color:#00C4B8;text-decoration:underline}.legal .footer-search-link{border:0;background:transparent;color:rgba(255,255,255,.72);padding:0;font:inherit;font-size:10px;cursor:pointer;font-weight:700}.legal .footer-search-link:hover{color:#00C4B8;text-decoration:underline}

/* V67.5 - correction bloc vert bas de page "Vous avez un projet ?"
   Les liens Admin V67 / Recherche sont dans la barre légale du footer et ne doivent
   pas perturber le CTA vert situé au-dessus du footer. */
.figures{
  height:auto !important;
  min-height:150px !important;
  display:grid !important;
  grid-template-columns:minmax(0,72%) minmax(320px,28%) !important;
  align-items:stretch !important;
  overflow:visible !important;
}
.figures-left{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
.figures-cta{
  min-height:150px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:8px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
.figures-cta h2,
.figures-cta p{max-width:100% !important;overflow:visible !important;}
.figures-cta .btn.white{display:inline-flex !important;align-items:center !important;justify-content:center !important;white-space:nowrap !important;margin-top:2px !important;}
.legal{display:flex !important;align-items:center !important;gap:18px !important;flex-wrap:wrap !important;}
.legal span{display:inline-flex !important;align-items:center !important;}
.legal .footer-admin-link,
.legal .footer-search-link{display:inline-flex !important;align-items:center !important;line-height:1.45 !important;}
@media(max-width:900px){
  .figures{grid-template-columns:1fr !important;min-height:0 !important;}
  .figures-cta{min-height:140px !important;}
}

/* V67.8 — icône Paramétrage en pied de page */
.legal a.footer-admin-link.footer-param-link{
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,196,184,.12) !important;
  border:1px solid rgba(0,196,184,.42) !important;
  color:#00C4B8 !important;
  text-decoration:none !important;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.legal a.footer-admin-link.footer-param-link:hover{
  background:#00C4B8 !important;
  color:#0F2A3D !important;
  border-color:#00C4B8 !important;
  transform:translateY(-1px) !important;
  box-shadow:0 8px 18px rgba(0,196,184,.22) !important;
  text-decoration:none !important;
}
.footer-param-icon{
  width:18px !important;
  height:18px !important;
  display:block !important;
  fill:currentColor !important;
}
