/*
 * tw-mobile.css — Optimisations performance mobile uniquement
 * Chargé uniquement sur mobile via <link media="...">
 * Ne touche à aucun effet visuel utile sur desktop
 */

@media (max-width: 767px) {

  /* ── 0. ANTI-DÉBORDEMENT GLOBAL ── */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  * { box-sizing: border-box !important; }

  /* ── 1. Particules : retirées du flux de rendu ── */
  .particles { display: none !important; contain: strict; }

  /* ── 2. Parallax hero : désactivé ── */
  .hero-layer { transform: none !important; will-change: auto !important; }

  /* ── 3. Orbit cards : masquées ── */
  .orbit-card { display: none !important; }

  /* ── 4. Aurora + tech-grid : simplifiés ── */
  .aurora { opacity: .35; animation: none !important; }
  .tech-grid { display: none !important; }

  /* ── 5. cursor-glow : inutile sur tactile ── */
  .cursor-glow { display: none !important; }

  /* ── 6. Tilt cards : désactivé ── */
  .tilt-card { transform: none !important; transition: none !important; }

  /* ── 7. About sticky scroll → display normal ── */
  .about-story   { min-height: auto !important; }
  .about-desktop { display: none !important; }
  .about-mobile  { display: block !important; }

  /* ── 8. Réduction des box-shadow ── */
  .service-card, .process-card, .story-step, .advantage-card {
    box-shadow: 0 2px 12px rgba(15,23,42,.07) !important;
  }

  /* ── 9. backdrop-filter : simplifié ── */
  .dashboard.glass { backdrop-filter: blur(8px) !important; }
  .site-header     { backdrop-filter: blur(16px) !important; }

  /* ── 10. Animations reveal ── */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* ── 11. Hero : dashboard EN PREMIER, texte ensuite ── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 90px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .hero-visual {
    display: none !important;
  }
  .hero {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 60px !important;
  }
  .hero-copy {
    width: 100% !important;
  }

  /* ── 12. Dashboard wrap contenu dans le viewport ── */
  .dashboard-wrap {
    transform: none !important;
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    height: 340px !important;
  }
  .dashboard.glass {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  /* ── 13. Section "Notre façon de travailler" : anti-débordement ── */
  .process {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .process-viewport {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .process-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 0 40px !important;
    gap: 16px !important;
  }
  .process-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    flex-shrink: 1 !important;
  }

  /* ── 14. Toutes les sections : anti-débordement ── */
  section, .section {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* ── 15. Images ── */
  img { content-visibility: auto; max-width: 100% !important; }

  /* ── 16. Scroll-hint : masqué ── */
  .scroll-hint { display: none !important; }

  /* ── 17. Madagascar animations : allégées ── */
  .madagascar-island { animation: none !important; }
  .madagascar-glow   { animation: none !important; }
  .pulse             { animation-duration: 3s !important; }

  /* ── 18. Story-steps ── */
  .story-step { contain: content; }

  /* ── 19. islandFloat / glowFloat désactivés ── */
  .world-card * { animation-play-state: paused; }
  .pulse        { animation-play-state: running; }

  /* ── 20. CTA parallax : suppression will-change inutile sur tactile ── */
  .tw-cta-img { will-change: auto !important; }

  /* ── 21. Footer : content-visibility pour sections hors viewport ── */
  .tw-footer { content-visibility: auto; contain-intrinsic-size: 0 600px; }

}
