/* ====== RESET SIMPLE ====== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: #0f172a; }
img { max-width: 100%; display: block; height: auto; }
/*a { color: inherit; text-decoration: none; }*/

/* ====== DESIGN TOKENS ====== */
:root{
  --primary: #0ea5e9;   /* bleu clair */
  --primary-600: #0284c7;
  --bg: #ffffff;
  --bg-soft: #92c4a7;
  --ink: #0f172a;
  --muted: #64748b;
  --ring: rgba(14,165,233,.2);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2,8,23,.08);
}

#map { height: 600px; width: 100%; }
.popup-title { font-weight: bold; font-size: 14px; }

@media (max-width: 768px) {
.hero-overlay {
padding: 15px !important;
}
.content-wrapper {
padding: 20px !important;
font-size: 0.95rem;
}
h1 {
font-size: clamp(22px, 7vw, 36px) !important;
}
h4 {
font-size: clamp(14px, 4vw, 18px) !important;
}
}


.veh {
background-color: white;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 120px; 
padding: 15px;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(0,0,0,0.25);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.veh:hover {
transform: scale(1.05);
box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.veh img {
max-width: 100%;
max-height: 100%;
height: auto;
width: auto;
object-fit: contain; /* ← Empêche toute déformation */
margin: 0 auto;
}

/*Galerie*/

.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .overlay {
  background: rgba(0,0,0,0.4);
}

.gallery-item:hover .overlay i {
  opacity: 1;
}


/* ====== LAYOUT ====== */
.container{ width: min(1120px, 92vw); margin: 0 auto; }
.stack{ display: grid; gap: 1rem; }
.grid{ display: grid; gap: 1.25rem; }

/* ====== HEADER ====== */
header{ position: sticky; top: 0; z-index: 50; background: rgba(187,234,198,0.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #e2e8f0; }
/*.nav{ display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; }*/
.brand{ display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand img{ width: 80px; height: 80px; border-radius: 8px; }
/*.menu{ display: flex; gap: 1.2rem; font-weight: 600; color: black; }
.menu a{ padding: .8rem .6rem; border-radius: 10px; }
.menu a:hover{ background: #61a9f1; }*/
.cta{ background: var(--primary); color: white; box-shadow: var(--shadow); }
.cta:hover{ background: var(--primary-600); }

/* ====== HERO ====== */
.hero{ background: linear-gradient(180deg,var(--bg), var(--bg-soft)); }
.heroinv{ background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero .wrap{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 4.5rem 0; }
.eyebrow{ color: var(--primary-600); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
h1{ font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.12; margin: .4rem 0 1rem; }
.lead{ color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem); }
.hero .card{ background: #ffffff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }

/* ====== STRIP ====== */
.strip{ background: var(--bg-soft); padding: 2rem 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.pill{ display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid #e2e8f0; background: white; border-radius: 999px; font-weight: 600; }

/* ====== SERVICES ====== */
section{ padding: 6rem 0; }
h2{ font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 0 0 1.25rem; }
.muted{ color: var(--muted); }
.cards{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card{ background: white; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.card h3{ margin: .4rem 0 .2rem; font-size: 1.1rem; }
.kpi{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.kpi .box{ background: white; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 1.2rem; }

/* ====== LISTE D’ESSAIS ====== */
.list{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.list .item{ background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem; font-weight: 600; }

/* ====== FOOTER ====== */
footer{ background: #0b1220; color: #cbd5e1; padding: 3rem 0; }
footer h4{ color: #e2e8f0; margin: 0 0 .8rem; }
footer a{ color: #e2e8f0; }

/* ====== RESPONSIVE ====== */
@media (max-width: 960px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .cards, .list, .kpi{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .menu{ display: none; }
  .cards, .list, .kpi{ grid-template-columns: 1fr; }
}

/*bar de réseaux sociaux*/
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.facebook { background-color: #3b5998; }
.linkedin { background-color: #0077b5; }
.whatsapp { background-color: #25d366; }
.youtube { background-color: #ff0000; }

/*
.floating-lab-image {
     Flottante par défaut 
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
  }

  .floating-lab-image:hover {
    Descend au survol 
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  @media (max-width: 992px) {
    .floating-lab-image-wrapper {
      position: relative !important;
      right: auto !important;
      top: auto !important;
      width: 100%;
      margin-top: 40px;
    }

    .floating-lab-image {
      transform: translateY(0);
    }
  }*/

/* ====== ANIMATION HOVER SUR .nav-link ====== */
.nav-link {
  display: inline-block !important;
  position: relative !important;
  color: #212529 !important; /* Couleur par défaut Bootstrap */
  text-decoration: none;
  padding: 0.7rem 0.7rem !important; /* Ajuste selon ton design */
  
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease !important;
  background: transparent !important;
}

.nav-link::before {
  content: '';
  display: block;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0;
  height: 100% !important;
  background-color: #98fa18 !important; /* Ton bleu #0ea5e9 */
  z-index: -1;
  
  transition: width 0.3s ease-out !important;
}

.nav-link:hover::before {
  width: 100% !important;
}

.nav-link:hover {
  color: white !important;
}

/* ====== ANIMATION HOVER SUR .nav-link ====== */
.btn {
  display: inline-block !important;
  position: relative !important;
  color: #ffffff !important; /* Couleur par défaut Bootstrap */
  text-decoration: none;
  padding: 0.5rem 0.5rem !important; /* Ajuste selon ton design */
  
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease !important;
  /*background: transparent !important;*/
}

.btn::before {
  content: '';
  display: block;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0;
  height: 100% !important;
  background-color:#1efd31 !important; /* Ton bleu #0ea5e9 */
  z-index: -1;
  
  transition: width 0.3s ease-out !important;
}

.btn:hover::before {
  width: 100% !important;
}

.btn:hover {
  color: rgb(0, 0, 0) !important;
  font-weight: 700;
}