
:root{
  --navy:#071b2e;
  --navy2:#0b2943;
  --blue:#1694f7;
  --blue2:#1ca7ff;
  --ink:#0b2238;
  --muted:#61758a;
  --line:#d9e2e9;
  --light:#f6f9fc;
  --white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}
img{max-width:100%}
a{text-decoration:none;color:inherit}
.container{width:min(1120px,calc(100% - 64px));margin:auto}
.eyebrow{margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:1.2px;color:#14a7ff}
.eyebrow.blue{color:#168ee8}
h1,h2,h3,p{margin-top:0}
h2{font-size:28px;line-height:1.05;margin-bottom:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border-radius:3px;border:1px solid transparent;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.2px;cursor:pointer}
.btn-primary{background:var(--blue);color:#fff}
.btn-ghost{border-color:rgba(255,255,255,.65);color:#fff;background:transparent}
.btn-outline-blue{border-color:var(--blue);color:var(--blue);background:#fff}

/* header */
.site-header{height:58px;background:#f8fbfd;border-bottom:1px solid #dfe7ee;position:relative;z-index:10}
.nav-wrap{height:100%;display:grid;grid-template-columns:190px 1fr 240px;align-items:center;gap:24px}
.brand{display:flex;align-items:center;height:52px}
.brand img{display:block;width:auto;max-width:150px;max-height:48px;height:auto;background:transparent}
.main-nav{display:flex;justify-content:center;gap:34px;font-size:12px}
.main-nav a{padding:20px 0 17px;border-bottom:2px solid transparent}
.main-nav a.active{color:var(--blue);border-bottom-color:var(--blue)}
.header-tagline{text-align:right;font-size:11px;line-height:1.25;color:#27435d}
.nav-toggle{display:none}

/* hero — deux colonnes réelles, image panoramique non zoomée */
.hero{
  background:#071b2e;
  color:#fff;
}
.hero-grid{
  display:grid;
  grid-template-columns:41% 59%;
  min-height:270px;
}
.hero-copy{
  position:relative;
  z-index:2;
  min-height:270px;
  padding:28px 22px 26px 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-copy h1{
  font-size:31px;
  line-height:1.08;
  margin-bottom:10px;
}
.hero-copy h1 span{color:var(--blue)}
.hero-lead{
  font-size:15px;
  line-height:1.25;
  margin-bottom:12px;
}
.hero-tags{
  font-size:9px;
  line-height:1.7;
  white-space:normal;
}
.hero-tags i{
  font-style:normal;
  color:#22a8ff;
  padding:0 6px;
}
.hero-actions{
  display:flex;
  gap:14px;
  margin-top:12px;
}
.hero-picture{
  position:relative;
  min-height:270px;
  overflow:hidden;
}
.hero-picture img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.hero-picture:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    90deg,
    rgba(7,27,46,.78) 0%,
    rgba(7,27,46,.34) 9%,
    rgba(7,27,46,.08) 19%,
    rgba(7,27,46,0) 30%
  );
  pointer-events:none;
}
.hero-industries{
  position:absolute;
  z-index:2;
  right:14px;
  bottom:13px;
  font-size:9px;
  line-height:1.4;
  padding:8px 10px;
  background:rgba(7,22,37,.52);
}

/* expertises */
.expertises{padding:18px 0 20px;background:#fff}
.expertise-head{display:grid;grid-template-columns:1fr 360px;gap:40px;align-items:start;margin-bottom:12px}
.expertise-head h2{font-size:27px;margin:0}
.expertise-head>p{font-size:11px;line-height:1.35;border-left:1px solid #cbd9e4;padding-left:18px}
.expertise-grid{display:grid;grid-template-columns:repeat(6,1fr)}
.expertise-card{padding:9px 14px 5px;border-right:1px solid var(--line);min-height:145px}
.expertise-card:first-child{padding-left:0}
.expertise-card:last-child{border-right:0}
.expertise-card img{width:34px;height:34px;object-fit:contain;margin-bottom:6px}
.expertise-card h3{font-size:11px;line-height:1.12;margin:0 0 7px}
.expertise-card p{font-size:9.5px;line-height:1.25;color:#334c62;margin:0}

/* feature pair — léger chevauchement texte / image */
.feature-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#051a2d;
  color:#fff;
}
.feature{
  position:relative;
  min-height:258px;
  overflow:hidden;
  isolation:isolate;
  background:#051a2d;
}
.feature:nth-child(2){
  border-left:2px solid #fff;
}
.feature-text{
  position:relative;
  z-index:4;
  width:59%;
  min-height:258px;
  padding:25px 8px 22px max(36px,calc((100vw - 1120px)/2));
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:left;
}
.feature:nth-child(2) .feature-text{
  padding-left:28px;
}
.feature-text h2{
  font-size:27px;
  line-height:1.05;
  margin-bottom:13px;
}
.feature-text p{
  font-size:10.5px;
  line-height:1.38;
  margin-bottom:11px;
}
.feature-text .btn{
  align-self:flex-start;
  margin-top:3px;
}

/* L'image est à droite, mais revient sous le texte d'environ 10 à 12 %. */
.feature-photo{
  position:absolute;
  z-index:1;
  top:0;
  right:0;
  bottom:0;
  width:62%;
  overflow:hidden;
}
.feature-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.feature-temp .feature-photo img{
  object-position:47% 50%;
}
.feature-measure .feature-photo img{
  object-position:58% 50%;
}

/* Fondu qui permet au texte de chevaucher l'image sans perdre en lisibilité. */
.feature-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      #051a2d 0%,
      rgba(5,26,45,.97) 9%,
      rgba(5,26,45,.82) 20%,
      rgba(5,26,45,.40) 35%,
      rgba(5,26,45,.08) 50%,
      rgba(5,26,45,0) 68%
    );
  pointer-events:none;
}

/* process */
.process-section{padding:18px 0;background:#fff}
.process-layout{display:grid;grid-template-columns:1fr 180px;gap:18px;align-items:end}
.process-main h2{font-size:27px;margin-bottom:12px}
.process{display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.process:before{content:"";position:absolute;top:14px;left:18px;right:20px;height:1px;background:#1694f7}
.step{position:relative;padding-right:12px}
.step span{position:relative;z-index:2;width:29px;height:29px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1694f7;color:white;font-size:10px;font-weight:800}
.step h3{font-size:9px;margin:7px 0 4px}
.step p{font-size:8.5px;line-height:1.25;margin:0;color:#435a70}
.skills-box{background:#eef5fa;color:#688098;font-size:10px;line-height:1.5;padding:13px 16px}

/* projects */
.projects{padding:14px 0 16px;background:#06213a;color:#fff}
.projects-head{display:grid;grid-template-columns:1fr auto;align-items:start;margin-bottom:11px}
.projects-head h2{font-size:24px;margin:0}
.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.project-grid img{width:100%;height:67px;object-fit:cover;display:block;margin-bottom:6px}
.project-grid h3{font-size:11px;margin-bottom:4px}
.project-grid p{font-size:8.8px;line-height:1.2;color:#f0f5f9;margin-bottom:8px}
.project-grid small{font-size:7px;color:#169cf8}

/* redesign exact strip */
.redesign{display:grid;grid-template-columns:minmax(220px,26%) minmax(320px,30%) 1fr 180px;background:#f7fafc;min-height:150px;border-bottom:1px solid #dde6ed}
.redesign-photo{overflow:hidden}
.redesign-photo img{width:100%;height:100%;object-fit:cover;display:block}
.redesign-copy{padding:15px 20px;align-self:center}
.redesign-copy h2{font-size:24px;margin-bottom:7px}
.redesign-copy h3{font-size:11px;margin-bottom:6px}
.redesign-copy p{font-size:9px;line-height:1.22;margin-bottom:8px}
.redesign-list{list-style:none;margin:0;padding:16px 18px;align-self:center}
.redesign-list li{position:relative;padding-left:20px;margin:4px 0;font-size:9px}
.redesign-list li:before{content:"✓";position:absolute;left:0;color:#1694f7;font-size:14px;font-weight:bold}
.redesign-note{margin:10px 18px 10px 0;background:#edf4f9;border-left:1px solid #d5e2eb;padding:14px;color:#688098;font-size:10px;line-height:1.28;display:flex;flex-direction:column;justify-content:center}
.redesign-note span{font-size:25px;margin-bottom:8px;color:#688098}

/* about */
.about{padding:14px 0;background:#fff}
.about-grid{display:grid;grid-template-columns:45% 55%;gap:35px;align-items:center}
.about-copy h2{font-size:21px;margin-bottom:6px}
.about-copy p{font-size:9px;line-height:1.25;margin-bottom:4px}
.values{display:grid;grid-template-columns:repeat(4,1fr)}
.values>div{text-align:center;border-left:1px solid var(--line);padding:6px 10px}
.values img{width:35px;height:35px;object-fit:contain;display:block;margin:0 auto 4px}
.values strong{font-size:9px;display:block}
.values span{font-size:8px;line-height:1.15;color:#3f5365;display:block;margin-top:3px}

/* added contact banner */
.contact-band{background:#f7fafc;color:var(--ink);border-top:1px solid #dfe7ed;border-bottom:1px solid #dfe7ed}
.contact-band-grid{min-height:90px;display:grid;grid-template-columns:190px 1fr 190px;align-items:center;gap:24px}
.contact-logo{height:68px;display:flex;align-items:center}
.contact-logo img{max-height:58px;max-width:150px;width:auto;height:auto;display:block;background:transparent}
.contact-band-copy{text-align:center}
.contact-band-copy strong{font-size:14px;line-height:1.25;display:block}
.contact-band-copy span{display:block;color:#1694f7;font-size:24px;font-weight:800;margin-top:4px}

/* contact form */
.contact-form-section{display:none;padding:38px 0;background:#f5f9fc}
.contact-form-section.open{display:block}
.contact-form-wrap{display:grid;grid-template-columns:360px 1fr;gap:55px;align-items:start}
.contact-form-wrap h2{font-size:28px}
.contact-form-wrap p{font-size:13px}
.contact-form{display:grid;gap:10px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.contact-form input,.contact-form textarea{width:100%;border:1px solid #cbd8e2;background:#fff;padding:11px;font:inherit;font-size:12px;border-radius:3px}
.contact-form textarea{resize:vertical}
.hp{display:none!important}
.notice.success{padding:10px;background:#e8f7ee;border:1px solid #9dd8b5;color:#215b37}

/* footer */
.site-footer{background:#f7fafc;border-top:1px solid #dfe7ed;color:#62758a}
.footer-grid{min-height:62px;display:grid;grid-template-columns:1fr 1fr 42px;align-items:center;gap:20px;font-size:8px}
.footer-grid nav{display:flex;gap:16px}
.footer-grid>span{text-align:right}
.to-top{width:30px;height:30px;border-radius:50%;background:#153754;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}

/* responsive */
@media(max-width:980px){
  .container{width:min(100% - 32px,1120px)}
  .nav-wrap{grid-template-columns:160px 1fr}.header-tagline{display:none}
  .hero-tags{white-space:normal}
  .expertise-grid{grid-template-columns:repeat(3,1fr)}
  .process-layout{grid-template-columns:1fr}
  .skills-box{display:none}
  .redesign{grid-template-columns:220px 1fr 1fr}.redesign-note{display:none}
  .about-grid{grid-template-columns:1fr}.values{margin-top:10px}
}
@media(max-width:980px) and (min-width:721px){
  .feature{min-height:235px}
  .feature-text{width:63%;min-height:235px;padding-left:24px}
  .feature:nth-child(2) .feature-text{padding-left:24px}
  .feature-photo{width:60%}
}

@media(max-width:720px){
  .site-header{height:auto;min-height:58px}.nav-wrap{grid-template-columns:1fr auto}.nav-toggle{display:block;border:0;background:transparent;font-size:24px}
  .main-nav{display:none;grid-column:1/-1;flex-direction:column;gap:0;padding-bottom:10px}.main-nav.open{display:flex}
  .main-nav a{padding:10px 0;border-bottom:1px solid #e0e7ed}
  .hero-copy h1{font-size:30px}
  .expertise-head{grid-template-columns:1fr}.expertise-grid{grid-template-columns:1fr 1fr}
  .feature-pair{grid-template-columns:1fr}
  .feature:nth-child(2){border-left:0;border-top:2px solid white}
  .feature{min-height:300px}
  .feature-text{width:68%;min-height:300px;padding:24px 18px}
  .feature:nth-child(2) .feature-text{padding-left:18px}
  .feature-photo{width:66%}
  .process{grid-template-columns:1fr;gap:10px}.process:before{display:none}.step{display:grid;grid-template-columns:40px 110px 1fr;align-items:center}.step h3,.step p{margin:0}
  .project-grid{grid-template-columns:1fr 1fr}
  .redesign{grid-template-columns:1fr}.redesign-photo{height:180px}.redesign-note{display:block;margin:0 16px 16px}
  .values{grid-template-columns:1fr 1fr}
  .contact-band-grid{grid-template-columns:1fr;text-align:center;padding:18px 0}.contact-logo{justify-content:center}.contact-band-copy{text-align:center}
  .contact-form-wrap{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr auto}.footer-grid nav{grid-column:1/-1;justify-content:center;flex-wrap:wrap}.footer-grid>span{text-align:left}
}




@media(max-width:980px){
  .hero-grid{grid-template-columns:46% 54%;min-height:250px}
  .hero-copy{min-height:250px}
  .hero-picture{min-height:250px}
}
@media(max-width:720px){
  .hero-grid{grid-template-columns:1fr}
  .hero-copy{min-height:auto;padding:25px 0 24px}
  .hero-copy h1{font-size:29px}
  .hero-actions{flex-wrap:wrap}
  .hero-picture{min-height:210px}
  .hero-picture img{position:absolute}
  .hero-picture:before{
    background:linear-gradient(180deg,rgba(7,27,46,.05),rgba(7,27,46,.18));
  }
}

/* Performance: picture wrappers keep exactly the same visual behavior */
.hero-picture picture,
.feature-photo picture,
.project-grid picture,
.redesign-photo picture{
  display:block;
  width:100%;
  height:100%;
}
.hero-picture picture img,
.feature-photo picture img,
.redesign-photo picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.project-grid picture{
  height:67px;
  margin-bottom:6px;
}
.project-grid picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  margin:0;
}


/* Carousel réalisations */
.project-carousel{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  gap:10px;
  align-items:center;
}
.project-viewport{
  overflow:hidden;
  width:100%;
}
.project-track{
  display:flex;
  gap:20px;
  transition:transform .55s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
.project-card{
  flex:0 0 calc((100% - 60px)/4);
  min-width:0;
}
.project-card picture{
  display:block;
  width:100%;
  height:67px;
  margin-bottom:6px;
  overflow:hidden;
}
.project-card picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.project-card h3{
  font-size:11px;
  margin-bottom:4px;
}
.project-card p{
  font-size:8.8px;
  line-height:1.2;
  color:#f0f5f9;
  margin-bottom:8px;
}
.project-card small{
  font-size:7px;
  color:#169cf8;
}
.carousel-arrow{
  width:32px;
  height:52px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:3px;
  background:rgba(4,24,40,.72);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s,border-color .2s,transform .2s;
}
.carousel-arrow:hover{
  background:#1694f7;
  border-color:#1694f7;
  transform:scale(1.04);
}
.carousel-arrow:focus-visible{
  outline:2px solid #1694f7;
  outline-offset:2px;
}
.carousel-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:11px;
}
.carousel-dot{
  width:7px;
  height:7px;
  border:0;
  border-radius:50%;
  padding:0;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}
.carousel-dot.active{
  background:#1694f7;
}

@media(max-width:980px){
  .project-card{flex-basis:calc((100% - 40px)/3)}
}
@media(max-width:720px){
  .project-carousel{
    grid-template-columns:28px minmax(0,1fr) 28px;
    gap:6px;
  }
  .project-card{flex-basis:calc((100% - 14px)/2)}
  .project-track{gap:14px}
  .carousel-arrow{width:28px;height:46px;font-size:24px}
}
@media(max-width:480px){
  .project-card{flex-basis:100%}
}

/* Project cards + detail modals */
.project-card > img{width:100%;height:67px;object-fit:cover;display:block;margin-bottom:6px}
.project-more{border:0;background:none;color:#169cf8;font-size:7px;font-weight:700;padding:7px 0 0;cursor:pointer}
.project-more:hover{text-decoration:underline}
.project-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:28px}
.project-modal.open{display:flex}
.project-modal-backdrop{position:absolute;inset:0;background:rgba(4,20,34,.78);backdrop-filter:blur(3px)}
.project-modal-dialog{position:relative;z-index:1;width:min(1180px,96vw);max-height:92vh;overflow:auto;background:#fff;color:#0a1d38;border-radius:12px;padding:30px 34px 28px;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.project-modal-close{position:absolute;right:18px;top:14px;border:0;background:#edf5fb;color:#0c6fb8;width:38px;height:38px;border-radius:50%;font-size:27px;cursor:pointer}
.modal-project-head small{color:#54708e;font-weight:700;letter-spacing:.08em}
.modal-project-head h2{font-size:34px;margin:5px 0 2px}
.modal-project-head>p{font-size:19px;color:#5b7fa4;margin-bottom:20px}
.modal-project-grid{display:grid;grid-template-columns:48% 52%;gap:30px}
.modal-project-visual img{width:100%;height:100%;max-height:570px;object-fit:cover;border-radius:7px}
.modal-project-content section{margin-bottom:18px}
.modal-project-content h3{font-size:18px;margin-bottom:5px}
.modal-project-content p,.modal-project-content li{font-size:14px;line-height:1.38}
.modal-project-content ul{padding-left:20px}
.modal-project-content li::marker{color:#168edc}
.modal-result{display:flex;align-items:center;gap:24px}
.modal-result>div{flex:1}
.modal-result strong{min-width:190px;text-align:center;background:#e7f4ff;color:#0874be;border-radius:8px;padding:12px;font-size:38px;line-height:.95}
.modal-result strong span{display:block;font-size:14px;margin-top:7px}
.modal-result .cem-ok{font-size:22px;line-height:1.05}
.modal-result .cem-ok span{font-size:22px;margin-top:2px}
.modal-tags{display:flex;flex-wrap:wrap;gap:7px}
.modal-tags span{background:#e7f4ff;color:#086caf;border-radius:18px;padding:7px 11px;font-size:10px;font-weight:700}
body.modal-open{overflow:hidden}
@media(max-width:800px){
 .project-modal{padding:12px}.project-modal-dialog{padding:25px 18px}
 .modal-project-grid{grid-template-columns:1fr}.modal-project-visual img{max-height:320px}
 .modal-project-head h2{font-size:27px}.modal-project-head>p{font-size:16px}
 .modal-result{flex-direction:column;align-items:stretch}
}

/* V4.8 — correction visuels projets */
.project-card > img{
  width:100%;
  height:84px;
  object-fit:cover;
  object-position:center;
  display:block;
  margin:0 0 7px;
  border-radius:2px;
}
.project-card h3{
  min-height:26px;
}
.project-card p{
  min-height:34px;
}
.project-card small{
  display:block;
  min-height:16px;
  line-height:1.25;
}
.project-more{
  display:block;
  margin-top:7px;
  padding:0;
  line-height:1.2;
}
.modal-project-visual{
  background:#eef3f7;
  border-radius:7px;
  overflow:hidden;
  align-self:stretch;
}
.modal-project-visual img{
  width:100%;
  height:100%;
  min-height:500px;
  max-height:600px;
  object-fit:cover;
  object-position:center;
  display:block;
}
@media(max-width:800px){
  .modal-project-visual img{
    min-height:280px;
    max-height:340px;
  }
}

/* V4.9 — réalisations sur fond blanc */
.projects{
  padding:22px 0 24px;
  background:#fff !important;
  color:#0b2238 !important;
}
.projects .eyebrow{color:#168ee8}
.projects-head{
  align-items:start;
  margin-bottom:20px;
}
.projects-head h2{
  color:#0b2238;
  font-size:28px;
}
.projects-head .btn{
  color:#0b2238;
  border-color:#7890a7;
  background:#fff;
}
.project-carousel{
  grid-template-columns:42px minmax(0,1fr) 42px;
  gap:14px;
}
.project-viewport{
  padding:4px 0 10px;
}
.project-track{
  gap:22px;
}
.project-card.white-card{
  flex:0 0 calc((100% - 66px)/4);
  background:#fff;
  color:#0b2238;
  border:1px solid #e4ebf1;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(25,55,80,.10);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.project-card.white-card > img{
  width:100%;
  height:170px;
  object-fit:cover;
  object-position:center;
  display:block;
  margin:0;
  border-radius:0;
}
.project-card-body{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.project-category{
  color:#168ee8;
  font-size:10px;
  font-weight:800;
  letter-spacing:.4px;
  margin-bottom:8px;
}
.project-category:after{
  content:"";
  display:inline-block;
  width:18px;
  height:2px;
  background:#168ee8;
  margin-left:7px;
  vertical-align:middle;
}
.project-card.white-card h3{
  min-height:auto;
  color:#0b2238;
  font-size:16px;
  line-height:1.18;
  margin-bottom:10px;
}
.project-card.white-card p{
  min-height:66px;
  color:#38516a;
  font-size:12px;
  line-height:1.4;
  margin-bottom:12px;
}
.project-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-height:30px;
  margin-bottom:14px;
}
.project-tags span{
  display:inline-flex;
  align-items:center;
  padding:6px 9px;
  background:#e8f4fd;
  color:#0873bd;
  border-radius:16px;
  font-size:8px;
  font-weight:800;
}
.project-more{
  margin-top:auto;
  align-self:flex-start;
  color:#0873bd;
  font-size:10px;
  font-weight:800;
  border-bottom:1px solid #0873bd;
  padding:0 0 4px;
}
.carousel-arrow{
  width:38px;
  height:54px;
  border:1px solid #d6e3ee;
  border-radius:50%;
  background:#edf6fd;
  color:#0873bd;
}
.carousel-arrow:hover{
  background:#0873bd;
  color:#fff;
  border-color:#0873bd;
}
.carousel-dot{
  background:#cedae4;
}
.carousel-dot.active{
  background:#1694f7;
}
.hive-result{
  font-size:17px !important;
  line-height:1.05 !important;
}
.hive-result span{
  font-size:17px !important;
  margin-top:4px !important;
}

/* desktop/tablet card counts */
@media(max-width:1100px){
  .project-card.white-card{flex-basis:calc((100% - 44px)/3)}
}
@media(max-width:760px){
  .project-card.white-card{flex-basis:calc((100% - 18px)/2)}
  .project-track{gap:18px}
  .project-card.white-card > img{height:145px}
}
@media(max-width:520px){
  .project-card.white-card{flex-basis:100%}
}

/* V5.0 — carrousel plus compact verticalement */
.projects{padding-top:18px;padding-bottom:18px}
.projects-head{margin-bottom:14px}
.projects-head h2{font-size:26px;line-height:1.05}
.project-track{gap:18px}
.project-card.white-card{flex-basis:calc((100% - 54px)/4)}
.project-card.white-card > img{height:135px}
.project-card-body{padding:10px 13px 12px}
.project-category{margin-bottom:5px;font-size:9px}
.project-card.white-card h3{font-size:15px;margin-bottom:7px}
.project-card.white-card p{
  min-height:54px;
  font-size:10.5px;
  line-height:1.32;
  margin-bottom:8px;
}
.project-tags{gap:4px;min-height:25px;margin-bottom:9px}
.project-tags span{padding:5px 7px;font-size:7px}
.project-more{font-size:9px;padding-bottom:3px}
.carousel-dots{margin-top:4px}
@media(max-width:1100px){
  .project-card.white-card{flex-basis:calc((100% - 36px)/3)}
}
@media(max-width:760px){
  .project-card.white-card{flex-basis:calc((100% - 18px)/2)}
  .project-card.white-card > img{height:130px}
}
@media(max-width:520px){
  .project-card.white-card{flex-basis:100%}
}

/* V5.7 — alignement des deux bandeaux sur le gabarit principal du site.
   Même largeur que .container : 1120 px max, 32 px de marge mini de chaque côté.
   Les images restent recadrées par overflow:hidden au bord exact du bandeau. */
@media (min-width:761px){
  .feature-pair,
  .redesign{
    width:min(1120px, calc(100% - 64px));
    max-width:1120px;
    margin-left:auto;
    margin-right:auto;
    overflow:hidden;
  }

  /* On conserve le chevauchement/fondu validé des blocs expertise. */
  .feature-text{
    width:59%;
    padding:25px 8px 22px 36px;
  }
  .feature:nth-child(2) .feature-text{
    padding-left:28px;
  }
  .feature-photo{
    width:62%;
    right:0;
  }
  .feature-photo:after{
    display:block;
  }

  /* Pérennisation : l'image commence exactement au bord gauche du gabarit
     et la note finit exactement au bord droit. */
  .redesign{
    grid-template-columns:minmax(220px,26%) minmax(320px,30%) 1fr 180px;
  }
  .redesign-photo{margin-left:0;}
  .redesign-note{margin-right:0;}
}


/* V5.8 — popup "Toutes nos réalisations" */
.all-projects-modal{
  position:fixed;
  inset:0;
  z-index:990;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.all-projects-modal.open{display:flex}
.all-projects-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,20,34,.78);
  backdrop-filter:blur(3px);
}
.all-projects-dialog{
  position:relative;
  z-index:1;
  width:min(1320px,96vw);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  color:#0b2238;
  border-radius:12px;
  padding:28px 34px 34px;
  box-shadow:0 24px 70px rgba(0,0,0,.32);
}
.all-projects-head{padding-right:55px;margin-bottom:22px}
.all-projects-head h2{font-size:32px;margin:3px 0 4px}
.all-projects-head>p:last-child{font-size:14px;color:#5b7fa4;margin:0}
.all-projects-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}
.all-projects-grid .project-card.white-card{
  flex:none;
  width:auto;
  min-width:0;
}
.all-projects-grid .project-card.white-card > img{height:170px}
.all-projects-grid .project-card.white-card p{min-height:66px}
.all-projects-open{cursor:pointer;font:inherit}
@media(max-width:1050px){
  .all-projects-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .all-projects-modal{padding:12px}
  .all-projects-dialog{padding:24px 18px}
  .all-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .all-projects-head h2{font-size:27px}
}
@media(max-width:480px){
  .all-projects-grid{grid-template-columns:1fr}
}

/* V6.2 — image et titre des projets cliquables */
.project-card > img,
.project-card h3{cursor:pointer;}
.project-card h3:hover{color:#169cf8;}


/* V7.2 - fiche Escape Game : bloc résultat lisible sur toute la largeur */
#modal-escape-rf .escape-result {
  display: block;
  width: 100%;
  margin-top: 18px;
}
#modal-escape-rf .escape-result h3 {
  margin: 0 0 8px;
}
#modal-escape-rf .escape-result p {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
}
#modal-escape-rf .escape-result-badge {
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 16px 22px;
  border-radius: 8px;
  background: #eaf6ff;
  text-align: center;
}
#modal-escape-rf .escape-result-badge strong,
#modal-escape-rf .escape-result-badge span {
  display: block;
}
#modal-escape-rf .escape-result-badge strong {
  font-size: 1.45rem;
  line-height: 1.1;
  color: #118df0;
}
#modal-escape-rf .escape-result-badge span {
  margin-top: 3px;
  font-weight: 700;
  color: #118df0;
}


/* V7.3 — Harmonisation de toutes les fiches projet sur le modèle Escape Game */
.project-modal-dialog{
  width:min(1180px,96vw);
}

.modal-project-head{
  padding-right:42px;
}

.modal-project-head small{
  display:block;
  color:#54708e;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:3px;
}

.modal-project-head h2{
  font-size:34px;
  line-height:1.08;
  margin:4px 0 3px;
}

.modal-project-head > p{
  font-size:19px;
  line-height:1.25;
  color:#5b7fa4;
  margin:0 0 20px;
}

.modal-project-grid{
  display:grid;
  grid-template-columns:minmax(0,48%) minmax(0,52%);
  gap:30px;
  align-items:start;
}

.modal-project-content section{
  width:100%;
  margin:0 0 18px;
}

.modal-project-content h3{
  font-size:18px;
  line-height:1.15;
  margin:0 0 6px;
}

.modal-project-content p,
.modal-project-content li{
  font-size:14px;
  line-height:1.38;
}

.modal-project-content p{
  margin:0 0 9px;
}

.modal-project-content ul{
  margin:4px 0 0;
  padding-left:20px;
}

/* Résultat : texte pleine largeur, encart bleu systématiquement en dessous */
.modal-result{
  display:block;
  width:100%;
  margin-top:2px;
}

.modal-result > div{
  display:block;
  width:100%;
}

.modal-result > div > p{
  width:100%;
  max-width:none;
}

.modal-result strong{
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin-top:14px;
  padding:16px 22px;
  border-radius:8px;
  background:#eaf6ff;
  color:#118df0;
  text-align:center;
  font-size:24px;
  line-height:1.05;
}

.modal-result strong span{
  display:block;
  margin-top:4px;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

/* Les anciens cas particuliers gardent la même géométrie */
.modal-result .cem-ok,
.modal-result .hive-result{
  font-size:24px;
  line-height:1.05;
}

.modal-result .cem-ok span,
.modal-result .hive-result span{
  font-size:13px;
  margin-top:4px;
}

.modal-tags{
  margin-top:10px;
}

/* La fiche Escape Game reste la référence et conserve son rendu validé */
#modal-escape-rf .escape-result{
  width:100%;
}

@media(max-width:800px){
  .modal-project-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  .modal-project-head h2{
    font-size:27px;
  }
  .modal-project-head > p{
    font-size:16px;
  }
  .modal-result strong{
    font-size:20px;
  }
}

/* V7.7 - Pérennisation & redesign */
.redesign.redesign-v77{
  display:block;
  width:min(1120px,calc(100% - 64px));
  max-width:1120px;
  margin:0 auto;
  padding:0;
  overflow:hidden;
  background:#fff;
}
.redesign-services-banner{
  display:block;
  width:100%;
  height:auto;
}
@media(max-width:760px){
  .redesign.redesign-v77{
    width:calc(100% - 28px);
  }
}


/* V7.8 — Pérennisation & redesign décomposé en vrais blocs HTML */
.redesign.redesign-v78{
  display:block;
  width:min(1120px,calc(100% - 64px));
  max-width:1120px;
  margin:0 auto;
  padding:0;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid #dde6ed;
}
.redesign-head-v78{
  min-height:150px;
  display:grid;
  grid-template-columns:minmax(0,58%) minmax(320px,42%);
  background:linear-gradient(105deg,#06213a 0%,#0b365a 58%,#0d2944 100%);
  color:#fff;
}
.redesign-head-copy{
  padding:26px 34px 24px;
  align-self:center;
}
.redesign-head-copy .eyebrow{
  color:#6dc9ff;
  margin-bottom:6px;
}
.redesign-head-copy h2{
  margin:0;
  color:#fff;
  font-size:30px;
  line-height:1.05;
}
.redesign-head-copy h2 span{
  color:#16b9ff;
}
.redesign-head-visual{
  position:relative;
  overflow:hidden;
  min-height:150px;
}
.redesign-head-visual:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,#0b365a 0%,rgba(11,54,90,.35) 32%,rgba(11,54,90,.05) 70%);
}
.redesign-head-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.redesign-head-note{
  position:absolute;
  z-index:2;
  left:22px;
  bottom:20px;
  color:#fff;
  font-size:17px;
  font-style:italic;
  line-height:1.05;
  transform:rotate(-4deg);
}
.redesign-services-v78{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:18px 18px 10px;
  background:#f7fafc;
}
.redesign-service-v78{
  overflow:hidden;
  background:#fff;
  border:1px solid #e0e8ef;
  border-radius:8px;
  box-shadow:0 6px 16px rgba(7,37,61,.05);
}
.redesign-service-v78>img{
  width:100%;
  height:96px;
  object-fit:cover;
  display:block;
}
.redesign-service-body{
  padding:13px 14px 14px;
}
.redesign-service-body h3{
  margin:0 0 4px;
  color:#0a4f9e;
  font-size:12px;
  line-height:1.15;
  text-transform:uppercase;
}
.redesign-service-lead{
  margin:0 0 8px;
  color:#55718d;
  font-size:9.5px;
  line-height:1.2;
}
.redesign-service-body ul{
  list-style:none;
  margin:0;
  padding:0;
}
.redesign-service-body li{
  position:relative;
  margin:5px 0;
  padding-left:14px;
  color:#27435e;
  font-size:8.8px;
  line-height:1.25;
}
.redesign-service-body li:before{
  content:"•";
  position:absolute;
  left:1px;
  top:-1px;
  color:#16a8ef;
  font-size:15px;
  line-height:1;
}
.redesign-cta-v78{
  padding:6px 18px 18px;
  text-align:center;
  background:#f7fafc;
}
.redesign-cta-v78 .btn{
  min-width:170px;
}

@media(max-width:980px){
  .redesign-head-v78{grid-template-columns:1fr 42%}
  .redesign-services-v78{grid-template-columns:repeat(2,minmax(0,1fr))}
  .redesign-service-v78>img{height:120px}
}
@media(max-width:720px){
  .redesign.redesign-v78{width:calc(100% - 28px)}
  .redesign-head-v78{grid-template-columns:1fr}
  .redesign-head-visual{min-height:145px}
  .redesign-head-copy{padding:22px 20px}
  .redesign-head-copy h2{font-size:25px}
  .redesign-services-v78{grid-template-columns:1fr;padding:14px}
  .redesign-service-v78>img{height:145px}
  .redesign-service-body h3{font-size:13px}
  .redesign-service-lead{font-size:10px}
  .redesign-service-body li{font-size:9.5px}
}


/* V8.0 — bandeau QUI SOMMES-NOUS renforcé */
.about{
  padding:42px 0;
  background:
    linear-gradient(90deg,#ffffff 0%,#f7fbfe 48%,#edf6fb 100%);
  border-top:1px solid #dfe8ef;
  border-bottom:1px solid #dfe8ef;
}

.about-grid{
  display:grid;
  grid-template-columns:minmax(330px,42%) minmax(0,58%);
  gap:52px;
  align-items:center;
  min-height:220px;
}

.about-copy{
  position:relative;
  padding-left:20px;
}

.about-copy:before{
  content:"";
  position:absolute;
  left:0;
  top:4px;
  width:4px;
  height:64px;
  background:#1694f7;
  border-radius:3px;
}

.about-copy .eyebrow{
  margin-bottom:8px;
  font-size:12px;
  letter-spacing:.08em;
}

.about-copy h2{
  font-size:31px;
  line-height:1.08;
  margin:0 0 15px;
  color:#102f4b;
}

.about-copy p{
  font-size:13px;
  line-height:1.55;
  margin:0 0 10px;
  color:#40566a;
}

.values{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.values>div{
  min-height:155px;
  text-align:center;
  border:1px solid #dbe7ef;
  border-left:1px solid #dbe7ef;
  padding:22px 12px 16px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 7px 18px rgba(15,55,83,.06);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.values img{
  width:56px;
  height:56px;
  object-fit:contain;
  display:block;
  margin:0 auto 12px;
}

.values strong{
  font-size:12px;
  display:block;
  color:#123957;
  letter-spacing:.03em;
}

.values span{
  font-size:10px;
  line-height:1.3;
  color:#617487;
  display:block;
  margin-top:6px;
}

@media(max-width:980px){
  .about{padding:34px 0}
  .about-grid{
    grid-template-columns:1fr;
    gap:26px;
  }
  .values{margin-top:0}
}

@media(max-width:720px){
  .about{padding:28px 0}
  .about-copy{padding-left:16px}
  .about-copy h2{font-size:26px}
  .about-copy p{font-size:12px}
  .values{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .values>div{min-height:130px;padding:18px 10px 14px}
  .values img{width:48px;height:48px}
}


/* V8.2 — Réalisations : empilement propre sur mobile */
@media (max-width: 720px){
  .projects-head{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:18px;
  }

  .projects-head > div:first-child{
    width:100%;
    max-width:none;
  }

  .projects-head h2{
    width:100%;
    max-width:none;
  }

  .projects-head .btn{
    width:100%;
    max-width:none;
    align-self:stretch;
    box-sizing:border-box;
  }
}


/* V8.3 — Pérennisation & redesign : 4 vignettes en 2x2 sur mobile */
@media (max-width: 720px){
  .redesign-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .redesign-card{
    min-width:0;
    padding:10px !important;
  }

  .redesign-card img{
    width:100%;
    height:auto;
    display:block;
  }

  .redesign-card h3{
    font-size:14px !important;
    line-height:1.15;
  }

  .redesign-card p,
  .redesign-card li{
    font-size:10px !important;
    line-height:1.3;
  }
}


/* V8.4 — correction réelle : Pérennisation & redesign en 2x2 sur mobile */
@media (max-width:720px){
  .redesign-services-v78{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding:12px !important;
  }

  .redesign-service-v78>img{
    height:95px !important;
  }

  .redesign-service-body{
    padding:10px 10px 11px !important;
  }

  .redesign-service-body h3{
    font-size:11px !important;
    line-height:1.12 !important;
  }

  .redesign-service-lead{
    font-size:8.5px !important;
    line-height:1.18 !important;
    margin-bottom:6px !important;
  }

  .redesign-service-body li{
    font-size:8px !important;
    line-height:1.2 !important;
    margin:4px 0 !important;
    padding-left:11px !important;
  }

  .redesign-service-body li:before{
    font-size:12px !important;
  }
}
