/* recherche-mobile.css — Marketplace et Services sur téléphone et tablette (< 992 px), façon Leboncoin
   (demande de Lunis du 15/11) : une seule barre de recherche, sans bouton « Rechercher » (la touche
   Rechercher du clavier lance la recherche) ; dessous, un carrousel de pastilles Filtres, Tri, Vue.
   En descendant, la barre reste collée en haut de l'écran, à la place de la bande de recherche de
   l'en-tête, qui est masquée sur ces deux pages. La ville et le rayon sont dans le panneau Filtres.
   Les pastilles sont créées par recherche_mobile.js à partir des commandes déjà présentes dans la page.
   Feuille chargée seulement par vehicles.html et services2.html. L'ordinateur n'est pas concerné. */

.pc-mfilters,
.pc-mloc-title { display: none; }

@media (max-width: 991.98px) {
  /* Une seule barre : celle de l'en-tête disparaît, la rangée du logo s'efface entièrement en descendant */
  html body.pc-public .site-header .site-global-search { display: none; }
  html body.pc-public .site-header.is-hidden {
    transform: translateY(calc(-100% + var(--pc-android-status, 0px)));
  }

  /* La barre de la page : collée sous la rangée du logo, puis tout en haut quand celle-ci s'efface */
  html body.pc-public .pc-mbar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--pc-mbar-top, var(--site-header-height, 66px));
    z-index: 1020;
    margin: 0 -12px;
    padding: 8px 12px;
    background: var(--pc-color-white, #fff);
    transition: top 0.25s ease, box-shadow 0.2s ease;
  }
  html body.pc-public.pc-mbar-haut .pc-mbar { top: var(--pc-android-status, 0px); }
  html body.pc-public .pc-mbar.is-stuck { box-shadow: 0 1px 0 var(--pc-color-line, #E2E8F0), 0 6px 14px rgba(11, 31, 58, 0.06); }

  /* Pastilles */
  html body.pc-public .pc-mfilters {
    display: flex;
    gap: 8px;
    margin: 0 -12px;
    padding: 4px 12px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html body.pc-public .pc-mfilters::-webkit-scrollbar { display: none; }
  html body.pc-public .pc-mchip {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--pc-color-line, #E2E8F0);
    border-radius: var(--pc-radius-control, 999px);
    background: var(--pc-color-white, #fff);
    box-shadow: none;
    color: var(--pc-color-text, #000);
    font-family: var(--pc-font-body, "Montserrat", sans-serif);
    font-size: var(--pc-text-sm, 0.875rem);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }
  html body.pc-public .pc-mchip i,
  html body.pc-public .pc-mchip svg { margin: 0; font-size: 14px; color: var(--pc-color-blue, #034AAA); }
  html body.pc-public .pc-mchip.is-on {
    border-color: var(--pc-color-blue, #034AAA);
    background: var(--pc-color-blue-soft, #EEF4FC);
    color: var(--pc-color-blue, #034AAA);
  }
  /* Contour de focus au clavier seulement : après un toucher, la pastille ne reste pas entourée */
  html body.pc-public .pc-mchip:focus { outline: none; }
  html body.pc-public .pc-mchip:focus-visible,
  html body.pc-public .pc-mchip:has(select:focus-visible) {
    outline: 3px solid rgba(3, 74, 170, 0.35);
    outline-offset: 2px;
  }
  /* Pastille Tri : la liste du téléphone s'ouvre au toucher (menu natif posé par-dessus, invisible) */
  html body.pc-public .pc-mchip select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    opacity: 0;
    font-size: 16px;
    cursor: pointer;
  }

  /* Ville et rayon dans le panneau Filtres */
  html body.pc-public .pc-mloc {
    position: relative;
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--pc-color-line, #E2E8F0);
  }
  html body.pc-public .pc-mloc-title {
    display: block;
    margin: 0 0 10px;
    font-family: var(--pc-font-body, "Montserrat", sans-serif);
    font-size: var(--pc-text-md, 1rem);
    font-weight: 700;
    color: var(--pc-color-text, #000);
  }
  html body.pc-public .pc-mloc .pc-mloc-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 8px 0 14px;
    border: 1px solid var(--pc-color-line, #E2E8F0);
    border-radius: var(--pc-radius-control, 999px);
    background: var(--pc-color-white, #fff);
  }
  html body.pc-public .pc-mloc .pc-mloc-field input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
  }
  html body.pc-public .pc-mloc .pc-mloc-list {
    position: static !important;
    width: 100% !important;
    margin-top: 6px;
  }
}

/* ─── Marketplace ─── */
@media (max-width: 991.98px) {
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar {
    display: block;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--pc-color-line, #E2E8F0);
    border-radius: var(--pc-radius-control, 999px);
    background: var(--pc-color-bg-soft, #F5F7FA);
  }
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-field input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
  }
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-submit,
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-loc,
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-filters,
  html body.pc-public .vehicles-page--v2 .vehicles-results-bar .vehicles-sort,
  html body.pc-public .vehicles-page--v2 .vehicles-results-bar .pc-view-toggle {
    display: none !important;
  }
  html body.pc-public .vehicles-page--v2 .vehicles-v2-search-wrap { margin-bottom: 0; }
}
@media (max-width: 991.98px) {
  /* Une ancienne règle (vehicles2.css) remplaçait le texte d'exemple par le seul mot « Marque » */
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-field::after { content: none; }
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-field input::placeholder {
    color: var(--pc-color-text-muted, #8A94A6);
  }
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-field i { font-size: 15px; }
  /* Plus de grand blanc entre les pastilles et le nombre d'annonces */
  html body.pc-public .vehicles-page--v2 #vehicules-filters-form > .row { --bs-gutter-y: 0; }
  html body.pc-public .vehicles-page--v2 .vehicles-results-bar { margin: 4px 0 12px; }
}

/* « Trouver pour moi » sur téléphone (choix de Lunis du 15/11) : plus de bouton flottant sur les photos ;
   un petit lien sous le nombre d'annonces et un bandeau discret parmi les annonces */
.pc-mlien { display: none; }
@media (max-width: 767.98px) {
  html body.pc-public .vehicles-page--v2 .vehicles-v2-sticky { display: none !important; }
  html body.pc-public .pc-mlien {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pc-color-blue, #034AAA);
    font-family: var(--pc-font-body, "Montserrat", sans-serif);
    font-size: var(--pc-text-sm, 0.875rem);
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  html body.pc-public .vehicles-page .vehicles-lead-tile.vehicles-lead-tile--v2 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    padding: 12px 16px;
  }
  html body.pc-public .vehicles-lead-tile--v2 .vehicles-lead-tile-eyebrow,
  html body.pc-public .vehicles-lead-tile--v2 .vehicles-lead-tile-points { display: none; }
  html body.pc-public .vehicles-page .vehicles-lead-tile--v2 .vehicles-lead-tile-title {
    font-size: 1rem;
    line-height: 1.25;
  }
  html body.pc-public .vehicles-page .vehicles-lead-tile--v2 .vehicles-lead-tile-btn {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    font-size: var(--pc-text-sm, 0.875rem);
    white-space: nowrap;
  }
}

/* Vue « Liste » sur téléphone (pastille Vue) : carte horizontale compacte, photo à gauche */
@media (max-width: 767.98px) {
  html body.pc-public .vehicles-page .vehicles-grid.vehicles-grid--list { gap: 10px; }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card.vehicles-card--v2 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-media {
    flex: 0 0 38%;
    width: 38%;
    max-width: 150px;
    display: block;
  }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-hero-wrap {
    width: 100%;
    height: 100%;
    min-height: 118px;
    aspect-ratio: auto;
  }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-thumbs,
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-footer { display: none; }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 44px 10px 12px;
    gap: 4px;
  }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-title { font-size: 1rem; }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-meta-line { font-size: 0.8125rem; gap: 2px 10px; }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-price { font-size: 1.0625rem; }
  html body.pc-public .vehicles-page .vehicles-grid--list .vehicles-card--v2 .vehicles-card-badge {
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    font-size: 0.6875rem;
  }
}

/* Rectangle bleu derrière la recherche et les pastilles, comme sur ordinateur : dégradé du bleu de la
   charte vers le bleu pâle, motif de « + », coins du bas arrondis (demande de Lunis du 15/11) */
@media (max-width: 991.98px) {
  html body.pc-public { --pc-mrect-motif: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
  html body.pc-public .pc-mrect { position: relative; }
  html body.pc-public .pc-mrect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pc-mrect-h, 136px);
    border-radius: 0 0 24px 24px;
    background:
      var(--pc-mrect-motif) 0 0 / 60px 60px repeat,
      linear-gradient(180deg, var(--pc-color-blue, #034AAA) 0, var(--pc-color-blue, #034AAA) 40%, #5F8FD3 100%);
    pointer-events: none;
  }
  html body.pc-public .pc-mrect .pc-mbar { background: transparent; padding-top: 12px; }
  html body.pc-public .pc-mrect .pc-mbar.is-stuck {
    background: var(--pc-color-blue, #034AAA);
    box-shadow: 0 6px 14px rgba(11, 31, 58, 0.14);
  }
  html body.pc-public .pc-mrect .pc-mfilters { position: relative; padding-bottom: 28px; }
  html body.pc-public .pc-mrect .pc-mchip { border-color: transparent; }
  html body.pc-public .pc-mrect .pc-mchip.is-on { border-color: var(--pc-color-white, #fff); background: var(--pc-color-blue-soft, #EEF4FC); }
  html body.pc-public .pc-mrect .pc-mchip:focus-visible,
  html body.pc-public .pc-mrect .pc-mchip:has(select:focus-visible) { outline-color: #fff; }

  html body.pc-public .vehicles-page--v2 .vehicles-main { padding-top: 0; }
  html body.pc-public .vehicles-page--v2 form.vehicles-v2-search-bar .vehicles-v2-search-field {
    border-color: transparent;
    background: var(--pc-color-white, #fff);
  }
}

/* Vue « Galerie » sur téléphone : deux colonnes compactes, comme sur l'accueil (choix M3 A du 15/11) */
@media (max-width: 767.98px) {
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;   /* le bandeau « Pas trouvé ? » prend toute la largeur sans laisser de case vide */
    gap: 10px;
  }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-lead-tile { grid-column: 1 / -1; }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-thumbs,
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-footer,
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-meta-line span:nth-child(n+4) {
    display: none;
  }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-body {
    padding: 10px 10px 12px;
    gap: 4px;
  }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-title { font-size: 0.9375rem; }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-meta-line { font-size: 0.75rem; gap: 2px 8px; }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-meta-line i { margin-right: 0.2rem; }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-price { font-size: 1.0625rem; }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-loc { font-size: 0.75rem; }
  html body.pc-public .vehicles-page .vehicles-grid:not(.vehicles-grid--list) .vehicles-card--v2 .vehicles-card-badge {
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    font-size: 0.6875rem;
  }
}

/* ─── Services ─── */
@media (max-width: 991.98px) {
  html body.pc-public.page-services2 .sv2-hero.pc-mbar {
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 12px 12px 8px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  html body.pc-public.page-services2 .sv2-hero.pc-mbar::before,
  html body.pc-public.page-services2 .sv2-hero.pc-mbar::after { content: none; }
  html body.pc-public.page-services2 .sv2-hero.pc-mbar.is-stuck { box-shadow: 0 6px 14px rgba(11, 31, 58, 0.14); }
  html body.pc-public.page-services2 .pc-mrect > .pc-mfilters { margin: 0; }
  html body.pc-public.page-services2 form.sv2-sb {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  html body.pc-public.page-services2 form.sv2-sb .sv2-sb-what {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    min-height: 0;
    margin: 0;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--pc-radius-control, 999px);
    background: var(--pc-color-white, #fff);
  }
  html body.pc-public.page-services2 form.sv2-sb .sv2-sb-what input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
  }
  html body.pc-public.page-services2 form.sv2-sb .sv2-sb-what i { font-size: 15px; }
  html body.pc-public.page-services2 form.sv2-sb .sv2-sb-submit,
  html body.pc-public.page-services2 form.sv2-sb .sv2-sb-where,
  html body.pc-public.page-services2 .sv2-panel-actions .sv2-sort,
  html body.pc-public.page-services2 .sv2-panel-actions .pc-view-toggle,
  html body.pc-public.page-services2 .sv2-body > .sv2-categories-bar {
    display: none !important;
  }

  /* Panneau Filtres de Services (créé par le script) */
  html body.pc-public .pc-msheet {
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
  }
  html body.pc-public .pc-msheet .offcanvas-body { padding-bottom: 8px; }
  html body.pc-public .pc-msheet-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--pc-color-line, #E2E8F0);
    background: var(--pc-color-white, #fff);
  }
  html body.pc-public .pc-msheet-reset {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pc-color-blue, #034AAA);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  html body.pc-public .pc-msheet-apply { flex: 1 1 auto; min-height: 48px; }
  html body.pc-public .pc-msheet .pc-mloc:last-child { border-bottom: 0; margin-bottom: 0; }
}

@media (max-width: 991.98px) {
  html body.pc-public .pc-mloc .pc-mloc-field input[type="text"] { height: 46px; padding: 0; }
  html body.pc-public .pc-mloc .pc-mloc-field > i { flex: 0 0 auto; }

  /* Catégories dans le panneau : pastilles sur plusieurs lignes, sans défilement ni flèches */
  html body.pc-public .pc-msheet .sv2-categories-bar {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    position: static;
  }
  html body.pc-public .pc-msheet .sv2-side-head,
  html body.pc-public .pc-msheet .sv-hscroll-nav { display: none !important; }
  html body.pc-public .pc-msheet .sv-hscroll-wrap {
    margin: 0;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  html body.pc-public .pc-msheet .sv-hscroll-wrap::before,
  html body.pc-public .pc-msheet .sv-hscroll-wrap::after { content: none; }
  html body.pc-public .pc-msheet .sv-cat-scroll,
  html body.pc-public .pc-msheet .sv-subcat-scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  html body.pc-public .pc-msheet .sv-cat-track,
  html body.pc-public .pc-msheet .sv-subcat-track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    padding: 0;
  }
  html body.pc-public .pc-msheet .sv-cat--chip { flex: 0 0 auto; margin: 0; }
  html body.pc-public .pc-msheet .sv2-subcat-bar { margin: 12px 0 0; padding: 0; }
}

/* Services, vue « Liste » sur téléphone : carte horizontale compacte, photo à gauche */
@media (max-width: 767.98px) {
  html body.pc-public.page-services2 .sv2-list.sv2-list--rows { gap: 10px; }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
  }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail > .sv-pro-media-wrap,
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail > .sv-pro-media,
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail > .sv-pro-card-gallery,
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail > .sv-pro-avatar {
    flex: 0 0 34%;
    width: 34%;
    max-width: 136px;
    height: auto;
    min-height: 124px;
    aspect-ratio: auto;
    align-self: stretch;
  }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-media-wrap > *:not(.sv-verified-badge) {
    border-radius: 0;
    width: 100%;
    height: 100%;
    min-height: 124px;
    aspect-ratio: auto;
  }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail > .sv-pro-media-wrap { border-radius: 0; overflow: hidden; }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-thumb,
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-card-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-partner-logo,
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-card-gallery-dots,
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-card-gallery-nav { display: none; }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
  }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-name { font-size: 1rem; }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-actions {
    gap: 6px;
    padding-top: 8px;
  }
  html body.pc-public.page-services2 .sv2-list--rows .sv-pro.sv-pro--rail .sv-pro-actions > * {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.8125rem;
  }
}

/* Le collage de la barre demande « clip » (pas « hidden ») sur html et body : avec « hidden », posé par
   style.css et services.css, Safari sur iPhone décalait la barre d'une hauteur d'en-tête (vu dans le
   simulateur le 15/11 ; components.css ne passe en « clip » que si le pied de page tient dans l'écran). */
@media (max-width: 991.98px) {
  html { overflow-x: clip !important; }
  html body.pc-public { overflow-x: clip !important; }
}


/* Panneau ou fenêtre ouverts : Bootstrap met body en overflow hidden, ce qui décalait la barre collée.
   Le défilement est bloqué sur html à la place, body reste tel quel : la barre ne bouge plus. */
@media (max-width: 991.98px) {
  html body.pc-public { overflow-y: visible !important; }
  /* Idem pour la carte de Services en plein écran et la fiche d'un pro : services.css bloquait la page
     par body { overflow: hidden }, que la règle ci-dessus annule ; le blocage est donc reporté sur html
     (sans lui, la page défilait derrière la carte et l'en-tête se masquait : oubli corrigé le 16/11). */
  html:has(.offcanvas.show, .offcanvas.showing, .offcanvas.hiding, .offcanvas-lg.show, .offcanvas-lg.showing, .offcanvas-lg.hiding, body.modal-open, body.sv-map-drawer-active, body.sv-modal-open) { overflow-y: hidden !important; }
}

/* Bouton « Trouver pour moi » centré dans sa carte (demande de Lunis du 15/11). Ordinateur et tablette :
   bouton centré sous le texte. Téléphone : titre et bouton centrés, l'un sous l'autre. */
html body.pc-public .vehicles-page .vehicles-lead-tile--v2 .vehicles-lead-tile-btn { align-self: center; }
@media (max-width: 767.98px) {
  html body.pc-public .vehicles-page .vehicles-lead-tile.vehicles-lead-tile--v2 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    text-align: center;
  }
}

/* ─── Quatre pastilles égales : Localisation, Filtres, Tri, Vue (demande de Lunis du 15/11).
   Plus petites (36 px) : elles tiennent toutes dans le rectangle bleu, rien ne défile ni ne dépasse. ─── */
@media (max-width: 991.98px) {
  html body.pc-public .pc-mfilters,
  html body.pc-public .pc-mrect .pc-mfilters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 2px 12px 18px;
    overflow: visible;
  }
  html body.pc-public .pc-mchip {
    justify-content: center;
    gap: 5px;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.75rem;
    letter-spacing: -0.01em;
  }
  html body.pc-public .pc-mchip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html body.pc-public .pc-mchip i { flex: 0 0 auto; font-size: 11px; }
  html body.pc-public .pc-mrect::before { height: var(--pc-mrect-h, 124px); }
}

/* ─── Panneau « Où cherchez-vous ? » (pastille Localisation), façon Leboncoin : champ de ville, ville
   choisie, carte avec le cercle du rayon, curseur de rayon, Effacer / Valider. ─── */
@media (max-width: 991.98px) {
  html body.pc-public .pc-msheet--plein {
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  html body.pc-public .pc-msheet--plein .offcanvas-header { border-bottom: 1px solid var(--pc-color-line, #E2E8F0); }
  html body.pc-public .pc-msheet--plein .offcanvas-body { padding-top: 20px; }
  html body.pc-public .pc-mlieu-champ .pc-mloc { margin: 0; padding: 0; border: 0; }
  html body.pc-public .pc-mlieu-champ .pc-mloc-field {
    border-color: transparent;
    background: var(--pc-color-bg-soft, #F1F4F8);
  }
  html body.pc-public .pc-mlieu-champ .pc-mloc-field:focus-within {
    border-color: var(--pc-color-blue, #034AAA);
    background: var(--pc-color-white, #fff);
  }
  /* Le rayon se règle avec le curseur : pas de menu dans le champ */
  html body.pc-public .pc-mlieu-champ .pc-mloc-field .pc-select,
  html body.pc-public .pc-mlieu-champ .pc-mloc-field select { display: none !important; }
  html body.pc-public .pc-mlieu-champ .pc-mloc-field > button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pc-color-blue, #034AAA);
  }
  html body.pc-public .pc-msheet .sv-search-dd { z-index: 1200; left: 0; right: 0; width: auto; max-width: none; }
  html body.pc-public .pc-mlieu-choix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 36px;
    margin: 16px 0 0;
    padding: 0 6px 0 14px;
    border-radius: var(--pc-radius-control, 999px);
    background: var(--pc-color-blue-soft, #EEF4FC);
    color: var(--pc-color-text, #000);
    font-size: var(--pc-text-sm, 0.875rem);
    font-weight: 600;
  }
  html body.pc-public .pc-mlieu-choix[hidden] { display: none; }
  html body.pc-public .pc-mlieu-choix button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pc-color-text-soft, #5A6578);
  }
  html body.pc-public .pc-mlieu-bloc {
    margin: 16px 0 0;
    border: 1px solid var(--pc-color-line, #E2E8F0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--pc-color-white, #fff);
  }
  html body.pc-public .pc-mlieu-carte {
    height: 190px;
    background: var(--pc-color-bg-soft, #F1F4F8);
    z-index: 0;
  }
  html body.pc-public .pc-mlieu-carte .leaflet-control-attribution { font-size: 10px; }
  html body.pc-public .pc-mlieu-rayon { padding: 16px; }
  html body.pc-public .pc-mlieu-rayon-tete {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: var(--pc-text-md, 1rem);
  }
  html body.pc-public .pc-mlieu-rayon-tete strong { color: var(--pc-color-blue, #034AAA); font-size: var(--pc-text-sm, 0.875rem); }
  html body.pc-public .pc-mlieu-rayon input[type="range"] {
    display: block;
    width: 100%;
    height: 44px;
    margin: 4px 0 0;
    accent-color: var(--pc-color-blue, #034AAA);
  }
  html body.pc-public .pc-mlieu-rayon-bornes {
    display: flex;
    justify-content: space-between;
    color: var(--pc-color-text-soft, #5A6578);
    font-size: var(--pc-text-xs, 0.75rem);
  }
  html body.pc-public .pc-msheet--plein .pc-msheet-foot { justify-content: space-between; }
  html body.pc-public .pc-msheet--plein .pc-msheet-reset {
    min-height: 48px;
    padding: 0 20px;
    border: 1.5px solid var(--pc-color-blue, #034AAA);
    border-radius: var(--pc-radius-control, 999px);
    text-decoration: none;
  }
  html body.pc-public .pc-msheet--plein .pc-msheet-apply { flex: 0 1 auto; padding: 0 24px; }
}

/* Carte « Recherche personnalisée » (ordinateur et tablette) : contenu réparti sur la hauteur au lieu
   d'être tassé au milieu (demande de Lunis du 15/11) : titre en haut, points au-dessous, bouton en bas. */
@media (min-width: 768px) {
  html body.pc-public .vehicles-page .vehicles-lead-tile.vehicles-lead-tile--v2 {
    justify-content: flex-start;
    gap: 0;
    padding: 28px 24px;
  }
  html body.pc-public .vehicles-page .vehicles-lead-tile--v2 .vehicles-lead-tile-title { margin-top: 10px; }
  html body.pc-public .vehicles-lead-tile--v2 .vehicles-lead-tile-points {
    margin-top: 22px;
    gap: 0.75rem;
    line-height: 1.4;
  }
  html body.pc-public .vehicles-page .vehicles-lead-tile--v2 .vehicles-lead-tile-btn { margin-top: auto; }
}


/* Panneau Filtres de la Marketplace : calé sous l'en-tête. Il faisait 92 % de la hauteur visible et passe
   derrière l'en-tête : sur un téléphone où Safari affiche ses barres (hauteur visible plus petite), son
   titre glissait sous l'en-tête (vu par Lunis sur son téléphone le 15/11, pas dans le simulateur).
   --pc-mhdr-bas = bas de l'en-tête au moment de l'ouverture, posé par recherche_mobile.js. */
@media (max-width: 991.98px) {
  html body.pc-public .vehicles-filter-sheet.offcanvas-lg.offcanvas-bottom {
    top: calc(var(--pc-mhdr-bas, 71px) + 8px);
    bottom: 0;
    height: auto;
    max-height: none;
  }
}

/* Pastilles de largeurs différentes (retour de Lunis du 15/11) : Lieu et Filtres plus larges que Tri et
   Vue. Aucun mot coupé : une pastille ne rétrécit jamais sous son texte (nom de ville long compris) ;
   si l'ensemble dépasse la largeur, la rangée défile au doigt. */
@media (max-width: 991.98px) {
  html body.pc-public .pc-mfilters,
  html body.pc-public .pc-mrect .pc-mfilters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  html body.pc-public .pc-mchip {
    flex: 1 0 auto;
    padding: 0 12px;
  }
  html body.pc-public .pc-mfilters > .pc-mchip:nth-child(-n+2) { flex-grow: 2.4; }
  html body.pc-public .pc-mchip > span {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
}
/* Au doigt, pas de contour de focus : après un toucher (ou au retour d'un panneau, quand le navigateur
   rend le focus à la pastille), elle restait entourée de blanc. Le contour reste au clavier sur ordinateur. */
@media (hover: none), (pointer: coarse) {
  html body.pc-public .pc-mchip:focus,
  html body.pc-public .pc-mchip:focus-visible,
  html body.pc-public .pc-mchip:has(select:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Services : le bouton noir flottant « Afficher la carte » n'apparaît que lorsque la grande bande
   « Afficher la carte » n'est plus à l'écran (demande de Lunis du 15/11 ; classe posée par le script). */
/* « translate » (et non « transform ») : le bouton est déjà centré par transform: translateX(-50%) ;
   le remplacer le faisait arriver par le côté. Il monte maintenant du bas. */
html body.pc-public .sv2-map-fab { transition: opacity 0.25s ease, translate 0.25s ease; }
html body.pc-public.pc-carte-bandeau-vu .sv2-map-fab {
  opacity: 0;
  translate: 0 24px;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html body.pc-public .sv2-map-fab { transition: none; }
}

/* Catégories dans le panneau Filtres de Services : défilement vertical au doigt. La rangée d'origine
   n'autorisait que le glissement horizontal (touch-action: pan-x), ce qui bloquait le défilement du
   panneau dès qu'on posait le doigt sur une catégorie (signalé par Lunis le 15/11). */
@media (max-width: 991.98px) {
  html body.pc-public .pc-msheet .sv-cat-scroll,
  html body.pc-public .pc-msheet .sv-subcat-scroll,
  html body.pc-public .pc-msheet .sv-cat-track,
  html body.pc-public .pc-msheet .sv-subcat-track,
  html body.pc-public .pc-msheet .sv-cat,
  html body.pc-public .pc-msheet .sv-hscroll-wrap {
    touch-action: pan-y !important;
    overscroll-behavior: auto !important;
    cursor: default;
  }
  html body.pc-public .pc-msheet .offcanvas-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* Services, vue « Galerie » sur téléphone : deux professionnels par ligne (demande de Lunis du 15/11),
   comme les annonces de la Marketplace. Carte compacte : texte plus petit, boutons l'un sous l'autre. */
@media (max-width: 767.98px) {
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) > :not(.sv-pro) { grid-column: 1 / -1; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) > .sv-pro.sv-pro--rail {
    width: auto;
    min-width: 0;
    margin: 0;
  }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-body { padding: 10px; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-row1 { flex-wrap: wrap; gap: 2px 6px; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-name { font-size: 0.9375rem; line-height: 1.2; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-dist { font-size: 0.75rem; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-row2 .sv-pro-city,
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-row2 .sv-pro-type { font-size: 0.75rem; gap: 5px; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-rating { font-size: 0.8125rem; }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
  }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-pro-actions > * {
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.8125rem;
    justify-content: center;
  }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-partner-logo {
    left: 8px;
    bottom: 8px;
    width: 52px;
    height: 34px;
    min-width: 0;
    padding: 4px;
    border-radius: 8px;
  }
  html body.pc-public.page-services2 .sv2-list:not(.sv2-list--rows) .sv-pro.sv-pro--rail .sv-verified-badge--corner {
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
  }
}

/* Catégories du panneau Filtres de Services en liste, comme la colonne de l'ordinateur (demande de Lunis
   du 16/11) : une catégorie par ligne, et les sous-catégories de la catégorie choisie indentées juste
   dessous (.sv-subcat-inline, déjà construit par services_v2.js et masqué jusque-là sur téléphone).
   Le bandeau de sous-catégories à part n'est plus affiché dans le panneau. */
@media (max-width: 991.98px) {
  html body.pc-public .pc-msheet .sv-cat-track {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
  }
  html body.pc-public .pc-msheet .sv-cat--chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: var(--pc-color-text, #000);
    font-size: var(--pc-text-md, 1rem);
    font-weight: 500;
    white-space: normal;
    text-align: left;
  }
  html body.pc-public .pc-msheet .sv-cat--chip .sv-cat-label { flex: 1 1 auto; min-width: 0; text-align: left; }
  html body.pc-public .pc-msheet .sv-cat--chip .sv-cat-count { flex: 0 0 auto; margin-left: auto; }
  html body.pc-public .pc-msheet .sv-cat--chip.on {
    background: var(--pc-color-blue, #034AAA);
    color: var(--pc-color-white, #fff);
    font-weight: 700;
  }
  html body.pc-public .pc-msheet #sv-subcat-bar { display: none !important; }
  html body.pc-public.page-services2 .pc-msheet .sv-subcat-inline {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 8px;
    padding-left: 44px;
  }
  html body.pc-public.page-services2 .pc-msheet .sv-subcat-inline .sv-subcat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: var(--pc-color-text, #000);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    touch-action: pan-y;
  }
  html body.pc-public.page-services2 .pc-msheet .sv-subcat-inline .sv-subcat.on {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--pc-color-blue, #034AAA) !important;
    font-weight: 700;
  }
  html body.pc-public.page-services2 .pc-msheet .sv-subcat-inline .sv-subcat-count {
    flex: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pc-color-text-muted, #6B7280);
  }
  html body.pc-public.page-services2 .pc-msheet .sv-subcat-inline .sv-subcat.on .sv-subcat-count { color: var(--pc-color-blue, #034AAA); }
}


/* Services, carte ouverte sur téléphone : elle occupe exactement tout ce qui est sous l'en-tête, sans
   interstice (demande de Lunis du 16/11). L'en-tête reste affiché même s'il était masqué par le
   défilement au moment de l'ouverture, la barre de recherche collée est retirée, et la carte commence
   au bas réel de l'en-tête (--pc-mhdr-bas, posé par recherche_mobile.js) jusqu'en bas de l'écran. */
@media (max-width: 991.98px) {
  html body.pc-public.sv-map-drawer-active .site-header.is-hidden { transform: none !important; }
  html body.pc-public.sv-map-drawer-active .site-header.is-hidden .site-header-inner > * {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  html body.pc-public.sv-map-drawer-active .pc-mbar,
  html body.pc-public.sv-map-drawer-active .pc-mfilters { visibility: hidden; }
  html body.pc-public.page-services2.sv-map-drawer-active .sv2-map-pane {
    top: var(--pc-mhdr-bas, var(--site-header-height, 71px)) !important;
    /* en bas : jusqu'au bord de l'écran, ou jusqu'à la barre du bas quand elle existe (connecté, app) */
    bottom: var(--sv2-mobile-bottom-nav-height, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    inset: var(--pc-mhdr-bas, var(--site-header-height, 71px)) 0 var(--sv2-mobile-bottom-nav-height, 0px) 0 !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  html body.pc-public.page-services2.sv-map-drawer-active .sv2-map-pane .sv-map-panel,
  html body.pc-public.page-services2.sv-map-drawer-active .sv2-map-pane #sv-map {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}

/* Services sur téléphone : toucher la carte d'un pro ouvre sa fiche (script), le bouton « Voir le
   profil » n'est donc plus affiché dans la liste (demande de Lunis du 16/11). « Appeler » prend toute
   la largeur ; une carte sans bouton d'appel n'a plus de rangée de boutons. */
@media (max-width: 991.98px) {
  html body.pc-public.page-services2 .sv2-list .sv-pro .sv-pro-actions .sv-btn-profil { display: none !important; }
  html body.pc-public.page-services2 .sv2-list .sv-pro .sv-pro-actions:not(:has(.sv-btn-main)) { display: none !important; }
  html body.pc-public.page-services2 .sv2-list .sv-pro .sv-pro-actions > .sv-btn-main { width: 100%; flex: 1 1 auto; }
  html body.pc-public.page-services2 .sv2-list .sv-pro { cursor: pointer; }
}

/* Panneaux Lieu (Marketplace et Services) et Filtres (Services) : ils s'ouvrent comme le panneau Filtres
   de la Marketplace (demande de Lunis du 16/11), du bas de l'en-tête (+ 8 px) au bas de l'écran, coins
   du haut arrondis. Hauteur fixe : une catégorie qu'on ouvre ne fait plus grandir le panneau vers le
   haut (la catégorie touchée restait sous le doigt, voir recherche_mobile.js). --pc-msheet-haut = bas
   de l'en-tête à l'ouverture, posé par recherche_mobile.js. */
@media (max-width: 991.98px) {
  html body.pc-public .pc-msheet.offcanvas-bottom,
  html body.pc-public .pc-msheet--plein.offcanvas-bottom {
    top: calc(var(--pc-msheet-haut, 71px) + 8px);
    bottom: 0;
    height: auto;
    max-height: none;
    border-radius: 16px 16px 0 0;
  }
  html body.pc-public .pc-msheet .offcanvas-body { overflow-anchor: none; }
}

/* Services, carte fermée sur téléphone : hauteur figée (--pc-carte-vh, hauteur de l'écran au chargement,
   posée par recherche_mobile.js). Avec 100dvh, elle suivait les barres de Safari au défilement et la
   liste des pros était redessinée à chaque fois (photos rechargées, barre qui tremblait). */
@media (max-width: 991.98px) {
  html body.pc-public.page-services2:not(.sv-map-drawer-active) .sv2-map-pane {
    height: calc(var(--pc-carte-vh, 100lvh) - var(--site-header-height, 68px) - var(--sv2-mobile-bottom-nav-height, 0px)) !important;
    max-height: none !important;
  }
}

/* Un panneau ouvert (Lieu, Filtres) : l'en-tête réapparaît s'il était masqué par le défilement, pour que
   les panneaux commencent toujours au même endroit, sous lui. */
@media (max-width: 991.98px) {
  html body.pc-public:has(.pc-msheet.show, .pc-msheet.showing, .vehicles-filter-sheet.show, .vehicles-filter-sheet.showing) .site-header.is-hidden { transform: none !important; }
  html body.pc-public:has(.pc-msheet.show, .pc-msheet.showing, .vehicles-filter-sheet.show, .vehicles-filter-sheet.showing) .site-header.is-hidden .site-header-inner > * {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Services sur téléphone : la barre de recherche tremblait au défilement sur iPhone, pas sur la
   Marketplace (signalé par Lunis le 16/11). Seule différence de structure : son conteneur direct
   (.sv-page-wrap) était en overflow-x: clip (services.css). Le découpage horizontal est déjà fait par
   html et body (voir plus haut), on le retire ici, comme sur la Marketplace. */
@media (max-width: 991.98px) {
  html body.pc-public.page-services2 .sv-page-wrap { overflow-x: visible !important; }
}
