/* Présentations : mise en page pour petits écrans (téléphones, portrait et paysage).
   Aucun effet sur grand écran. Chargé après la feuille de la présentation et inline.css. */
@media (max-width: 900px), (max-height: 520px) {
  html body .slide { padding: 20px 16px 96px; justify-content: flex-start; align-items: stretch; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html body .content { max-width: 100%; width: 100%; margin-block: auto; }
  html body .content > *, html body .slide > .content > * { max-width: 100% !important; }
  html body h1 { font-size: clamp(26px, 8vw, 40px) !important; line-height: 1.15; }
  html body h2 { font-size: clamp(22px, 6.4vw, 32px) !important; line-height: 1.2; }
  html body p.subtitle, html body p.body { max-width: 100% !important; line-height: 1.55; }
  html body .grid-2, html body .grid-3, html body .grid-4 { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  html body .card { padding: 14px 16px; min-width: 0; }
  html body .slide, html body .slide * { overflow-wrap: anywhere; }
  html body .card-row, html body .stat-row, html body .final-cta { flex-direction: column !important; gap: 14px; align-items: stretch; }
  html body .stat-big { max-width: 100% !important; }
  html body .timeline { max-width: 100% !important; }
  html body .timeline-item { gap: 12px; }
  html body .checklist li { padding: 10px 0; gap: 10px; }
  html body .shield-wrap { width: 88px; height: 88px; }
  html body .shield { font-size: 44px !important; }
  /* Navigation : cibles tactiles de 44 px, zone sûre des téléphones, points masqués (illisibles à cette taille) */
  html body .nav { bottom: max(12px, env(safe-area-inset-bottom)); gap: 6px; padding: 4px 8px; max-width: calc(100% - 24px); }
  html body .nav button { min-width: 44px; min-height: 44px; font-size: 22px !important; padding: 0 !important; }
  html body .nav .dots { display: none; }
  html body .nav .counter { font-size: 14px !important; min-width: 64px; }
  html body .meta { margin-top: 12px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  html body .slide { padding: 12px 24px 72px; }
  html body .shield-wrap { display: none; }
  html body h1 { font-size: clamp(22px, 5vw, 30px) !important; }
  html body h2 { font-size: clamp(20px, 4.5vw, 26px) !important; }
  html body .grid-2, html body .grid-3 { grid-template-columns: 1fr 1fr !important; }
}
