/* ═══ AYLINA — MOBILE RESPONSIVE ═══ */

/* Empêche le scroll horizontal causé par la mobile-nav et les images larges */
body { overflow-x: hidden; }

/* Mobile-nav invisible quand fermée (évite qu'elle compte dans le scroll width) */
.mobile-nav { visibility: hidden; pointer-events: none; }
.mobile-nav.open { visibility: visible; pointer-events: auto; }

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
  flex-shrink: 0;
  border-radius: 8px;
  margin-left: 8px;
  transition: background .2s;
}
.nav-burger:hover { background: rgba(0,0,0,.06); }
nav.dark .nav-burger:hover { background: rgba(255,255,255,.1); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #1a1a2e;
  transition: transform .25s ease, opacity .2s;
}
nav.dark .nav-burger span { background: #fff; }
.nav-burger.open span { background: #fff; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: #071A4E;
  display: flex;
  flex-direction: column;
  padding: 86px 28px 48px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  color: rgba(238,242,255,.75);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:active { color: #C1FF72; }
.mob-cta {
  margin-top: 28px;
  background: #C1FF72 !important;
  color: #0E1D94 !important;
  border-radius: 999px;
  padding: 15px 24px !important;
  text-align: center;
  font-weight: 800 !important;
  font-size: 15px !important;
  border-bottom: none !important;
}
.mob-cta:hover { background: #a8f050 !important; }
body.nav-open { overflow: hidden; }

/* ═══ RESPONSIVE MOBILE (≤ 900px) ═══ */
@media (max-width: 900px) {

  /* Hamburger visible */
  .nav-burger { display: flex; }

  /* Nav links et CTAs desktop cachés sur mobile */
  .nav-links { display: none !important; }
  .nav-right  { display: none !important; }
  .nav-cta    { display: none !important; }

  /* Padding latéral réduit */
  .wrap { padding-left: 18px !important; padding-right: 18px !important; }

  /* ── GRILLES → 1 COLONNE ── */
  .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .team-inner   { grid-template-columns: 1fr !important; min-height: auto !important; }
  .blocage-kpis-wrap { grid-template-columns: 1fr !important; min-height: auto !important; }
  .blocage-kpis-photo { height: 280px !important; }
  .blocage-kpis { padding: 40px 18px !important; }

  /* Team left sans hauteur fixe */
  .team-left { min-height: 320px !important; }

  /* Héro */
  .hero-sub { font-size: 16px !important; }

  /* Portfolio */
  .agencies-grid { grid-template-columns: 1fr !important; }
  .case-img-wrap img { height: 220px !important; }
  .lt-img-shadow img { height: 220px !important; }

  /* Flash diag */
  .ben-outer { grid-template-columns: 1fr !important; }
  .ben-photo  { min-height: 260px !important; height: 260px !important; }

  /* Rejoindre — formulaire */
  .f-row { grid-template-columns: 1fr !important; }
  .candidate-form { padding: 24px 18px !important; }

  /* Masquer images décoratives absolues qui débordent */
  #pourquoi > img[src*="Deco_Tech"],
  #methode > img[src*="Trapeze"] { display: none !important; }

  /* Contenir les images de fond avec overflow */
  .fp-items { overflow: hidden !important; }
  .fp-items-bg { display: none !important; }

  /* Sections avec images absolues : contenir le débordement */
  .harness-shape-green,
  .harness-shape-blue { overflow: hidden; }
  .harness-img-green { display: none !important; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 10px 14px; }

  /* Section À propos (grid 2 col sans breakpoint) */
  #apropos { grid-template-columns: 1fr !important; min-height: auto !important; }
  .apropos-right-col { min-height: 260px; }
  .apropos-left-col { padding: 48px 18px !important; }

  /* Tags carousel : contenir overflow */
  .tags-rows { overflow: hidden !important; }
  .tags-track { width: max-content; }

  /* Solutions — grille 3 chantiers */
  .dom-cards-grid { grid-template-columns: 1fr !important; }
  .dom-grid { grid-template-columns: 1fr !important; }

  /* Frise / méthode */
  .frise-pane.active { grid-template-columns: 1fr !important; }

  /* Hero padding réduit */
  #hero { padding-top: 120px !important; padding-bottom: 60px !important; }
}
