/* RESPONSIVE — Mobile-first. Styles de base = 390px. Mediaquery = expansion. */

/* ────────── HEADER ────────── */
@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  html { scroll-padding-top: var(--header-h); }
}

/* Nav desktop : masqué sur mobile, visible sur desktop */
.nav-desktop { display: none; }
@media (min-width: 860px) {
  .nav-desktop { display: flex; }
}

/* Header CTA masqué sur mobile — PIÈGE PROD #13 */
.header-cta { display: none; }
@media (min-width: 860px) {
  .btn.header-cta { display: inline-flex; } /* specificité 0,2,0 > 0,1,0 */
}

/* FAB mobile : visible sous 860px */
@media (max-width: 859px) {
  .fab-call { display: inline-flex; }
}

/* ────────── HERO SPLIT ────────── */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: calc(var(--header-h-mobile) + 24px) 20px 40px;
  }
  .hero-split__media {
    aspect-ratio: 16/10;
    order: -1;
  }
  /* CTA hero mobile : stack pleine largeur — PIÈGE PROD #2 */
  .hero-split__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-split__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ────────── STATS ────────── */
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); }
  .stat-item:last-child { border-bottom: none; }
}

/* ────────── PROCESS ────────── */
@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid::before { display: none; }
}

/* ────────── SERVICES grid-3 (LAY-3) ────────── */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ────────── RÉALISATIONS gallery grid (LAY-3) ────────── */
@media (max-width: 560px) {
  /* Galerie mobile 1 colonne — PIÈGE PROD #7 */
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ────────── À PROPOS ────────── */
@media (max-width: 768px) {
  .apropos-grid { grid-template-columns: 1fr; }
}

/* ────────── AVIS cards (LAY-3) ────────── */
@media (max-width: 900px) {
  .avis-cards-grid { grid-template-columns: 1fr; }
}

/* ────────── ZONE ────────── */
@media (max-width: 768px) {
  .zone-cols { grid-template-columns: 1fr; }
  .map-wrapper { padding-bottom: 70%; }
}

/* ────────── CONTACT ────────── */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ────────── FOOTER ────────── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ────────── FAB ────────── */
@media (min-width: 860px) {
  .fab-call { display: none !important; }
}

/* ────────── SECTION PADDING (mobile 48px / desktop 80px) ────────── */
@media (min-width: 768px) {
  section { padding: 80px 40px; }
  .stats-strip { padding: 0; }
}

/* ────────── MENU MOBILE (voir aussi layout.css) ────────── */
/* Masquer le menu mobile sur desktop */
@media (min-width: 768px) {
  .burger { display: none; }
  .menu-mobile { display: none; }
}

/* ────────── MISC ────────── */
@media (max-width: 560px) {
  .realisations-header { flex-direction: column; align-items: flex-start; }
}

/* wf-noxoverflow : reveal vertical (le slide horizontal deborde la largeur sur mobile) */
[data-reveal]:not(.in){ transform: translateY(18px) !important; }
