/* ==========================================================================
   MS GROUP — responsive.css
   Media queries : 1024px / 768px / 480px
   ========================================================================== */

/* ===================== TABLETTE (<= 1024px) ===================== */
@media (max-width: 1024px) {
  .values-grid,
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .process-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .process-timeline::before { display: none; }

  .targets-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-card:nth-child(even) { border-right: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }

  .col-image img { height: 360px; }
}

/* ===================== MOBILE / MENU BURGER (<= 900px) ===================== */
@media (max-width: 900px) {
  stats-section{
    width: 90%;
    margin: 0 auto;
  }
}

/* ===================== TABLETTE PORTRAIT (<= 768px) ===================== */
@media (max-width: 768px) {
  .section { padding: 30px 0; }
  .hero{
    height: 70vh;
  }
  .btn{
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .checklist li { font-size: 0.9rem; }
  .service-card{
    padding: 15px;
  }
  .value-card{
    padding: 15px;
  }
  .section-cta { text-align: center; margin-top: 20px; }
  .two-col,
  .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-image { order: 0; }
  .two-col.reverse .col-text { order: 1; }

  .vm-grid { grid-template-columns: 1fr; }
  .values-grid,
  .services-grid { grid-template-columns: 1fr; }

  .process-timeline { grid-template-columns: 1fr; }

  .targets-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section{
    width: 90%;
    margin: 0 auto;
  }

  .footer-grid { grid-template-columns: 1fr; text-align: left; }

  .form-row { grid-template-columns: 1fr; }

  .col-form { padding: 18px; }

  .image-badge { right: 10px; bottom: -18px; padding: 10px 14px; }

  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  #contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
    padding: 5px;
   }
   #contact-details .details {
    width: 100%;
    margin-bottom: 20px;
   }
   #contact-details .map {
      width: 100%;
      height: auto;
    }
    #contact-details iframe {
      width: 100%;
      height: 300px;
    }

.vm-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.vm-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--or);
  color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.vm-card h3 { margin-bottom: 10px; }

/* ===================== VALUES ===================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(1fr);
  gap: 20px;
}
.value-card {
  background: var(--blanc);
  border: 1px solid #eef1f7;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--or);
}
.value-icon {
  width: 30px; height: 30px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--gris-clair);
  color: var(--or);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.value-card h3 { font-size: 1rem; margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; }

/* ===================== SERVICES ===================== */

}

/* ===================== MOBILE (<= 480px) ===================== */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { height: 60vh; }
  .brand-text { font-size: 0.9rem; }
  .brand-logo { height: 25px; width: 25px; }

  .hero-subtitle { font-size: 0.9rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 26px; }
  .stat-card:last-child { border-bottom: none; }

  .testimonial-card { padding: 18px; }

  .col-image img { height: 260px; }

  #back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 769px), (max-width: 900px) {
  #contact-btn{
    display: none;
  }
  h1{
    font-size: 18px;
  }
  h2{
    font-size: 17px;
  }
  #home h2{
    font-size: 19px;
  }
  #home {
    height: 80vh;
  }
  h3{
    font-size: 16px;
  }
  nav{
    padding: 10px 20px ;
    height: 60px;
  }
  nav img{
    width: 60px;
    height: 50px;
  }
  #menu-btn{
    display: initial;
  }
  #menu-close{
    display: initial;
    font-size: 1.6rem;
    color: white;
    padding: 10px 0 10px 20px;
  }
  nav .navigation ul {
    position: absolute;
    top: 0;
    width: 220px;
    right: -220px;
    display: flex;
    background-color: rgba(17, 20, 104, 0.45);
    backdrop-filter: blur(4.5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: 1s ease;
  }
  nav .navigation.active ul {
  right: 0;
}
  nav .navigation ul li {
    margin-left:0;
    padding: 20px 0 20px 40px;
  }
  nav .navigation ul li a {
    color: white;
  }
  nav{
    background-color: white;
  }
}
