/* ============================================================
   Arial Studio — ergonomie mobile (partagé par l'accueil, Sites web et Motion design)
   Tout ce qui est « mobile » est dans @media (max-width: 600px) : le desktop ne change pas.
   ============================================================ */

/* éléments présents dans le HTML mais invisibles sur desktop */
.swipe-dots, .m-cta, .seo-btn, .faq-more, .m-only { display: none; }
.seo-chk, .faq-chk { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

@media (max-width: 600px) {
  .m-only { display: block; }

  /* ----- Rangées qu'on fait glisser du doigt (au lieu de piles de cartes) ----- */
  html [data-swipe] {
    display: flex !important; flex-direction: row !important; align-items: stretch !important;
    gap: 40px !important; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin-left: -16px !important; margin-right: -16px !important; max-width: none !important;
    padding: 6px 16px 16px !important; scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { flex: 0 0 100% !important; max-width: 100% !important; min-width: 0; scroll-snap-align: center; box-sizing: border-box; }

  .swipe-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 6px; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; transition: all .25s; cursor: pointer; }
  .swipe-dots i.on { width: 22px; border-radius: 4px; background: #2563EB; }
  .swipe-dots.dark i { background: rgba(255,255,255,.28); }
  .swipe-dots.dark i.on { background: #60A5FA; }

  /* ----- Barre d'action collée en bas ----- */
  .m-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    padding: 15px 20px; border-radius: 999px; background: #2563EB; color: #FFFFFF !important;
    font: 700 15.5px 'Plus Jakarta Sans', sans-serif; text-align: center;
    box-shadow: 0 16px 34px -10px rgba(37,99,235,.65), 0 0 0 1px rgba(255,255,255,.18) inset;
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s;
  }
  .m-cta small { font-weight: 600; opacity: .85; font-size: 12.5px; }
  .m-cta.hide { transform: translateY(160%); opacity: 0; pointer-events: none; }

  /* ----- Texte long replié ----- */
  .seo-p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .seo-chk:checked + .seo-p { display: block; }
  .seo-btn { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: #2563EB; cursor: pointer; }
  .seo-chk:checked ~ .seo-btn { display: none; }

  /* ----- FAQ : 3 questions puis « Voir plus » ----- */
  .faq-list > :nth-child(n+4) { display: none; }
  .faq-chk:checked ~ .faq-list > :nth-child(n+4) { display: block; }
  .faq-more { display: block; margin: 16px auto 0; width: max-content; padding: 12px 24px; border-radius: 999px; border: 1.5px solid #CBD5E1; background: #FFFFFF; color: #0A0F1E; font: 700 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
  .faq-chk:checked ~ .faq-more { display: none; }

  /* ----- Pied de page compact : 2 colonnes au lieu d'une longue liste ----- */
  html .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 22px 16px !important; }
  html .footer-grid > div:first-child, html .footer-grid > div:last-child { grid-column: 1 / -1; }
  html .footer-grid > div:first-child img { height: 44px !important; }
  html .footer-grid > div:first-child p { margin: 10px 0 0 !important; max-width: none !important; font-size: 13.5px !important; line-height: 1.55 !important; }
  html .footer-grid > div:nth-child(n+2) > :first-child { margin-bottom: 10px !important; font-size: 12px !important; }
  html .footer-grid > div:nth-child(n+2) > :last-child { gap: 8px !important; font-size: 14px !important; }
  html .footer-grid > div:last-child { padding-top: 18px; border-top: 1px solid #EEF2F7; }
  html .footer-grid > div:last-child > :last-child { flex-direction: row !important; flex-wrap: wrap; gap: 8px 18px !important; }
  html .footer-bottom, html footer > div > div:last-child:not(.footer-grid) { margin-top: 24px !important; padding-top: 16px !important; font-size: 12px !important; }
}
