/* ===== RESPONSIVE MOBILE — PAGES VILLE (vidéosurveillance + alarme) ===== */
/* Ce fichier doit être chargé APRÈS le bloc <style> inline de chaque page ville */

/* ── Hero badge ── */
@media (max-width: 768px) {
  .page-hero-badge {
    display: flex !important;
    flex-wrap: wrap;
    max-width: 100%;
    font-size: 0.7rem !important;
    padding: 0.4rem 0.75rem !important;
    line-height: 1.4;
    letter-spacing: 0.06em !important;
  }

  /* ── Hero ── */
  .page-hero {
    padding: 5.5rem 0 3rem !important;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 7vw, 3rem) !important;
  }

  .page-hero-lead {
    font-size: 0.97rem !important;
  }

  .page-hero-law,
  .law-badge {
    flex-wrap: wrap;
    max-width: 100%;
    font-size: 0.78rem !important;
    line-height: 1.5;
  }

  /* ── KPIs hero ── */
  .page-hero-kpis {
    gap: 1.25rem !important;
    padding-top: 1.25rem !important;
  }

  .page-kpi strong {
    font-size: 2rem !important;
  }

  /* ── Boutons hero ── */
  .page-hero .hero-dark-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .page-hero .hero-dark-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Grilles 3 colonnes → 1 colonne ── */
  .commerce-grid,
  .cameras-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Grilles alarme 3 colonnes → 1 ── */
  .commerces-grid {
    grid-template-columns: 1fr !important;
  }

  .risques-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Solutions alarme ── */
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Process 4 étapes → 1 colonne ── */
  .process-4 {
    grid-template-columns: 1fr !important;
  }

  .process-4::before {
    display: none !important;
  }

  /* ── Related cards ── */
  .related-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Definition bloc ── */
  .definition-bloc {
    padding: 1.5rem !important;
  }

  /* ── CTA reassurance ── */
  .cta-reassurance {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem !important;
  }

  /* ── Footer ── */
  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem !important;
  }
}

/* ── KPIs en 2×2 sur mobile moyen ── */
@media (max-width: 480px) {
  .page-hero-kpis {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .page-kpi strong {
    font-size: 1.75rem !important;
  }

  .page-kpi span {
    font-size: 0.75rem !important;
  }

  /* CTA buttons full width */
  .cta-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .cta-buttons .btn {
    width: 100% !important;
  }

  /* Bouton floating plus compact */
  .floating-cta span {
    display: none;
  }

  .floating-cta {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center;
  }
}
