/* ==========================================================================
   Téléphone : en-têtes compacts sur tout le site — AnkibaMarket (29 novembre 2026)
   Demande : « site vraiment responsive pour le mobile, éviter les hero longs ».
   Chargé en DERNIER (inc/marketplace.php). N'agit que sous 760 px : l'ordinateur
   ne change pas. Principe : le contenu (annonces, formulaire) arrive dès le
   premier écran ; textes d'accroche, chiffres et décors masqués ; titres réduits.
   Arrondis 6 px, couleurs de l'admin (var(--vs-*)).
   ========================================================================== */

@media (max-width: 760px) {

  /* ---------- Accueil : diaporama (.rv) en bandeau horizontal ---------- */
  html body .rv { margin: 6px 0 4px; }
  html body .rv-slide { grid-template-columns: 112px minmax(0, 1fr) !important; align-items: center !important; align-content: center !important; gap: 12px !important; min-height: 0 !important; padding: 12px 12px 50px !important; }
  html body .rv-shot, html body .rv-shot[data-shape], html body .rv-shot.is-small { order: 0 !important; width: 112px !important; justify-self: start !important; }
  html body .rv-shot__frame { aspect-ratio: 1 / 1 !important; border-width: 3px !important; box-shadow: 0 10px 22px rgba(0, 0, 0, .35) !important; }
  html body .rv-shot__back, html body .rv-badge, html body .rv-text, html body .rv-meta, html body .rv-num, html body .rv-ring, html body .rv-dots, html body .rv-tabs, html body .rv-particles { display: none !important; }
  html body .rv-eyebrow { margin: 0 0 6px !important; gap: 6px !important; }
  html body .rv-eyebrow span { padding: 3px 7px !important; font-size: 9.5px !important; letter-spacing: .08em !important; }
  html body .rv-eyebrow em { font-size: 11.5px !important; }
  html body .rv .rv-title { font-size: 16.5px !important; line-height: 1.2 !important; margin: 0 0 8px !important; -webkit-line-clamp: 2 !important; }
  html body .rv-actions { gap: 8px !important; }
  html body .rv .rv-cta { padding: 7px 11px !important; font-size: 12.5px !important; }
  html body .rv .rv-cta svg { width: 14px !important; height: 14px !important; }
  html body .rv-price { font-size: 14px !important; padding: 4px 8px !important; box-shadow: 3px 3px 0 var(--vs-accent, #FFC400) !important; }
  html body .rv-bar { left: 12px !important; right: 12px !important; bottom: 10px !important; }
  html body .rv-count b { font-size: 16px !important; }
  html body .rv .rv-pause { width: 30px !important; height: 30px !important; }
  /* Diapositive vidéo (30/11/2026) : la vidéo entière en haut (16:9), une bande de 46 px en dessous pour les commandes. */
  html body .rv-slide.has-video { grid-template-columns: minmax(0, 1fr) !important; aspect-ratio: auto !important; width: 100% !important; min-width: 0 !important; min-height: calc(56.25cqw + 46px) !important; padding: 0 !important; }
  html body .rv-slide.has-video .rv-shot, html body .rv-slide.has-video .rv-shot[data-shape] { position: absolute !important; inset: 0 0 46px 0 !important; width: 100% !important; }
  html body .rv-slide.has-video .rv-shot__frame { position: absolute !important; inset: 0 !important; aspect-ratio: auto !important; border-width: 0 !important; box-shadow: none !important; }
  html body .rv-slide.has-video .rv-shot__frame img, html body .rv-slide.has-video .rv-shot__frame .rv-video { object-fit: contain !important; object-position: center top !important; }
  html body .rv-slide.has-video .rv-shade { background: linear-gradient(to top, rgba(3, 18, 12, .94) 0, rgba(3, 18, 12, .94) 46px, rgba(3, 18, 12, 0) 46px) !important; }
  html body .rv-slide.has-video .rv-copy { left: 122px !important; height: 46px !important; }
  html body .rv-slide.has-video .rv-actions { gap: 6px !important; }
  html body .rv .rv-slide.has-video .rv-cta { padding: 6px 10px !important; font-size: 12px !important; }
  html body .rv .rv-slide.has-video .rv-sound { width: 32px !important; height: 32px !important; }
  html body .rv-stage.is-video .rv-bar { bottom: 8px !important; }
  html body .rv-slide.has-video .rv-social { bottom: 7px !important; }

  /* ---------- Emploi (.vj) ---------- */
  html body .vj-hero { padding-top: 10px !important; padding-bottom: 12px !important; }
  html body .vj-hero__in { gap: 12px !important; }
  html body .vj-eyebrow, html body .vj-sub { display: none !important; }
  html body .vj-crumbs { margin-bottom: 6px !important; font-size: 12px !important; }
  html body .vj-h1 { font-size: 22px !important; line-height: 1.15 !important; margin: 0 0 10px !important; }
  html body .vj-tabs { margin-bottom: 10px !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  html body .vj-tabs::-webkit-scrollbar { display: none; }
  html body .vj-tabs a { flex: none; }
  html body .vj-finder { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; padding: 6px !important; }
  html body .vj-finder__f { padding: 6px 10px !important; min-height: 0 !important; }
  html body .vj-finder__f--q { grid-column: 1 / -1; }
  html body .vj-finder__go { grid-column: 1 / -1; min-height: 44px !important; }
  html body .vj-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-top: 8px !important; }
  html body .vj-chips::-webkit-scrollbar { display: none; }
  html body .vj-chip { flex: none; }
  html body .vj-map { min-height: 0 !important; }
  html body .vj-map .leaflet-container, html body .vj-map [data-map], html body .vj-map__map { height: 190px !important; min-height: 190px !important; }

  /* ---------- Véhicules (.vv) ---------- */
  html body .vv-hero { min-height: 0 !important; }
  html body .vv-hero__in { padding-top: 12px !important; padding-bottom: 12px !important; }
  html body .vv-eyebrow, html body .vv-sub, html body .vv-figures { display: none !important; }
  html body .vv-crumbs { margin-bottom: 6px !important; font-size: 12px !important; }
  html body .vv-h1 { font-size: 24px !important; line-height: 1.05 !important; margin: 0 0 10px !important; }
  html body .vv-hero__photo { opacity: .55; }
  html body .vv-search { margin-top: 0 !important; }
  html body .vv-modes a, html body .vv-modes button { padding-top: 9px !important; padding-bottom: 9px !important; }
  html body .vv-finder { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; }
  html body .vv-finder__f { padding: 7px 10px !important; min-height: 0 !important; }
  html body .vv-finder__go { grid-column: 1 / -1; min-height: 44px !important; }

  /* ---------- High-tech (.tk) ---------- */
  html body .tk-hero { padding-top: 12px !important; padding-bottom: 12px !important; }
  html body .tk-kick, html body .tk-sub, html body .tk-desk, html body .tk-hint { display: none !important; }
  html body .tk-hero h1 { font-size: 22px !important; line-height: 1.12 !important; margin: 0 0 10px !important; }
  html body .tk-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  html body .tk-tabs::-webkit-scrollbar { display: none; }
  html body .tk-tabs a { flex: none; }
  html body .tk-find { gap: 6px !important; padding: 8px !important; }
  html body .tk-f { padding: 6px 10px !important; min-height: 0 !important; }
  html body .tk-go { min-height: 44px !important; }

  /* ---------- Immobilier (.rd) ---------- */
  html body .rd-search { padding: 10px !important; gap: 10px !important; }
  html body .rd-search__link { display: none !important; }
  html body .rd-seg a { min-height: 38px !important; }
  html body .rd-form { gap: 6px !important; }
  html body .rd-field { min-height: 52px !important; padding: 5px 10px !important; }
  html body .rd-field label { font-size: 11px !important; }
  html body .rd .rd-field input, html body .rd .rd-field select { font-size: 15px !important; height: 22px !important; }
  html body .rd-form__go { min-height: 46px !important; }
  html body .rd-quick { margin-top: 10px !important; }
  html body .rd-chip { min-height: 38px !important; padding: 0 14px !important; }
  html body .rd-main { margin-top: 14px !important; }
  html body .rd-head h1 { font-size: 21px !important; }

  /* ---------- Espace agence (.vag) ---------- */
  html body .vag { padding-top: 8px !important; gap: 10px !important; }
  html body .vag-hero__text { padding: 16px 14px !important; }
  html body .vag-hero .vag-lead, html body .vag-steps { display: none !important; }
  html body .vag-kicker { margin-bottom: 8px !important; }
  html body .vag-hero h1 { font-size: 22px !important; margin: 0 0 12px !important; }
  html body .vag-perks { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  html body .vag-perks small { display: none !important; }
  html body .vag-perks strong { font-size: 12.5px !important; line-height: 1.25; }
  html body .vag-perks span { flex-basis: 28px !important; width: 28px; height: 28px !important; }
  html body .vag-perks span svg { width: 15px !important; height: 15px !important; }

  /* ---------- Journal (.vjr) ---------- */
  html body .vjr-hero { gap: 12px !important; padding-top: 14px !important; padding-bottom: 14px !important; }
  html body .vjr-lead, html body .vjr-note, html body .vjr-facts { display: none !important; }
  html body .vjr-hero h1 { font-size: 24px !important; line-height: 1.1 !important; margin: 4px 0 10px !important; }
  html body .vjr-cover { max-height: 220px; overflow: hidden; }
  html body .vjr-cover img { max-height: 220px; width: auto !important; margin: 0 auto; object-fit: contain; }
  html body .vjr-actions { gap: 8px !important; }

  /* ---------- Explorer les Comores (.vx) ---------- */
  html body .vx-hero { min-height: 0 !important; height: auto !important; }
  html body .vx-hero__inner { padding-top: 18px !important; padding-bottom: 14px !important; min-height: 0 !important; }
  html body .vx-hero__lead, html body .vx-hero__facts, html body .vx-hero__chips { display: none !important; }
  html body .vx-hero h1 { font-size: 28px !important; line-height: 1.05 !important; margin: 6px 0 12px !important; }
  html body .vx-hero__credit { font-size: 9px !important; }
  /* la section suivante gardait 200 px de vide pour les chiffres (masqués ici) */
  html body .vx-hero + .vx-section { padding-top: 22px !important; }

  /* ---------- Parrainage (.vref) ---------- */
  html body .vref-hero { padding-top: 16px !important; padding-bottom: 16px !important; gap: 12px !important; }
  html body .vref-hero h1 { font-size: 23px !important; line-height: 1.12 !important; }
  html body .vref-hero .vref-lead + .vref-lead { display: none !important; }
  html body .vref-hero .vref-lead { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 14px !important; margin-bottom: 12px !important; }
  html body .vref-hero__cta { gap: 8px !important; }
  html body .vref-hero__cta .vistore-button--large { min-height: 44px !important; padding: 0 14px !important; font-size: 14px !important; }
}
