/* Fiches Entreprises sur téléphone : galerie balayable et texte intégral.
   Fichier volontairement limité aux petits écrans : aucun effet sur ordinateur. */
@media (max-width: 700px) {
  #supa-business-modal.is-open { align-items: flex-end !important; overflow: hidden !important; }
  #supa-business-modal .business-modal-card { width: 100% !important; max-width: none !important; height: auto !important; max-height: calc(100dvh - 6px) !important; margin: 0 !important; overflow: hidden !important; border-radius: 20px 20px 0 0 !important; }
  :is(#supa-business-modal-content, #supa-service-modal-content) { width: 100% !important; height: auto !important; max-height: calc(100dvh - 6px) !important; padding-bottom: env(safe-area-inset-bottom, 0px) !important; overflow-x: hidden !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; scroll-padding-bottom: 110px; }
  :is(#supa-business-modal-content, #supa-service-modal-content) > .business-detail-layout { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  .business-detail-layout > .business-detail-media { position: static !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 16px 14px 8px !important; overflow: visible !important; }
  .business-detail-media-inner,
  .business-gallery-shell { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  .business-gallery-controls { display: none !important; }
  .business-detail-media .business-media-gallery { display: flex !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; align-items: stretch !important; flex-direction: row !important; gap: 12px !important; padding: 2px 18px 13px 2px !important; overflow-x: scroll !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; scroll-padding-left: 2px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: auto !important; scrollbar-color: #4e7d27 #dce7da !important; }
  .business-detail-media .business-media-gallery::-webkit-scrollbar { display: block !important; height: 8px !important; }
  .business-detail-media .business-media-gallery::-webkit-scrollbar-track { border-radius: 999px; background: #dce7da !important; }
  .business-detail-media .business-media-gallery::-webkit-scrollbar-thumb { border-radius: 999px; background: #4e7d27 !important; }
  .business-detail-media .business-media-gallery > .business-gallery-thumb,
  .business-detail-media .business-media-gallery > .gallery-empty-slot,
  .business-detail-media .business-media-gallery > .business-gallery-owner-item,
  .business-detail-media .business-media-gallery > .public-photo-order-item { width: min(82vw, 320px) !important; height: 205px !important; min-width: min(82vw, 320px) !important; min-height: 205px !important; max-width: 320px !important; flex: 0 0 min(82vw, 320px) !important; scroll-snap-align: start; scroll-snap-stop: always; }
  .business-detail-media .business-media-gallery > .business-gallery-thumb img,
  .business-detail-media .business-media-gallery > .business-gallery-owner-item > .business-gallery-thumb,
  .business-detail-media .business-media-gallery > .business-gallery-owner-item > .business-gallery-thumb img,
  .business-detail-media .business-media-gallery > .public-photo-order-item > .business-gallery-thumb,
  .business-detail-media .business-media-gallery > .public-photo-order-item > .business-gallery-thumb img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; }
  .business-detail-media .business-gallery-help { margin: 5px 2px 10px !important; font-size: .8rem !important; }
  .business-detail-media .business-gallery-help::before { content: "\2190  Faites glisser pour voir toutes les photos. "; font-weight: 800; color: #315f4e; }
  .business-detail-layout > .business-detail-body { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 22px 18px calc(110px + env(safe-area-inset-bottom, 0px)) !important; overflow: visible !important; align-self: auto !important; }
  .business-detail-layout > .business-detail-body > .share-btn { display: flex !important; width: 100% !important; min-height: 52px !important; margin: 24px 0 0 !important; align-items: center !important; justify-content: center !important; }
  .business-detail-body .supa-business-modal-description,
  .business-detail-body .rich-content,
  .business-detail-body .rich-content > * { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; }
  .business-detail-body .supa-business-modal-description { display: block !important; white-space: pre-line !important; overflow-wrap: anywhere !important; }
}

/* Articles Découvrir sur téléphone : galerie balayable et lecture intégrale. */
@media (max-width: 700px) {
  .article-page { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important; }
  .article-detail { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: hidden !important; }
  .article-detail > .article-layout { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  .article-detail .article-media { display: block !important; position: static !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 12px !important; overflow: visible !important; }
  .article-detail .article-media-inner,
  .article-detail .article-gallery-shell,
  .article-detail .article-gallery-shell.has-scroll { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  .article-detail .article-gallery-controls { display: none !important; }
  .article-detail .article-media-gallery { display: flex !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; align-items: stretch !important; flex-direction: row !important; gap: 12px !important; padding: 2px 18px 13px 2px !important; overflow-x: scroll !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: auto !important; scrollbar-color: #4e7d27 #dce7da !important; }
  .article-detail .article-media-gallery::-webkit-scrollbar { display: block !important; height: 8px !important; }
  .article-detail .article-media-gallery::-webkit-scrollbar-track { border-radius: 999px; background: #dce7da !important; }
  .article-detail .article-media-gallery::-webkit-scrollbar-thumb { border-radius: 999px; background: #4e7d27 !important; }
  .article-detail .article-media-gallery > .public-photo-order-item,
  .article-detail .article-media-gallery > .gallery-empty-slot { width: min(82vw, 320px) !important; height: 205px !important; min-width: min(82vw, 320px) !important; min-height: 205px !important; max-width: 320px !important; flex: 0 0 min(82vw, 320px) !important; scroll-snap-align: start; scroll-snap-stop: always; }
  .article-detail .article-photo-button,
  .article-detail .article-photo-button .article-hero { display: block !important; width: 100% !important; height: 100% !important; min-height: 0 !important; max-width: none !important; max-height: none !important; object-fit: cover !important; }
  .article-detail .article-gallery-help::before { content: "\2190  Faites glisser pour voir toutes les photos. "; font-weight: 800; color: #315f4e; }
  .article-detail .article-copy,
  .article-detail .article-body,
  .article-detail .article-text,
  .article-detail .article-text > * { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; }
  .article-detail .article-copy { display: block !important; }
  .article-detail .article-body { padding: 18px 20px calc(105px + env(safe-area-inset-bottom, 0px)) !important; }
  .article-detail .article-share-button { display: flex !important; width: 100% !important; min-height: 52px !important; margin: 30px 0 0 !important; align-items: center !important; justify-content: center !important; }
}
