/* Socle mobile commun, chargé après les styles de page. */
.mobile-filters-toggle, .mobile-page-summary { display: none; }
@media (max-width: 960px) {
  html body:not(#va-x) .va-header-inner { gap: 8px !important; padding-inline: 12px !important; }
  body .va-logo { flex: 1 1 auto; min-width: 0; gap: 6px !important; }
  body .va-logo > div { min-width: 0; overflow: hidden; }
  html body:not(#va-x) .va-logo-text { display: block; overflow: hidden; text-overflow: ellipsis; }
  html body:not(#va-x) .va-logo-img { width: 30px !important; height: 30px !important; padding: 0 !important; flex: none; border-radius: 0; box-shadow: none; }
  html body:not(#va-x) .va-logo-text { font-size: 16px !important; letter-spacing: .025em !important; white-space: nowrap; }
  body .va-header-actions { flex: none; gap: 4px !important; margin-left: 0 !important; }
  body .va-header-icon, body .va-burger { width: 44px !important; height: 44px !important; min-width: 44px; flex: none; }
  body .va-burger { padding: 10px; }
  body .va-mobile-search-inner { min-height: 48px; }
  body input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]), body select, body textarea { font-size: 16px !important; }
  body .va-mobile-search input, body .va-mm2-search input { min-height: 44px; }
  body #va-chat-fab { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }
  body.mobile-chat-obstructed #va-chat-widget:not(.open) { visibility: hidden; pointer-events: none; }
  body .cookie-banner, body .cookie-modal-card { box-sizing: border-box; min-width: 0; max-width: calc(100vw - 24px); }
  body .cookie-actions { min-width: 0; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
  body .cookie-btn { min-width: 0; white-space: normal; overflow-wrap: anywhere; min-height: 44px; }
}
@media (max-width: 380px) {
  html body:not(#va-x) .va-header-inner { gap: 4px !important; }
  html body:not(#va-x) .va-logo-text { font-size: 14px !important; }
  html body:not(#va-x) .va-logo-img { width: 28px !important; height: 28px !important; }
}
@media (max-width: 760px) {
  body.page-register { background: #fff; color: #18252e; }
  body.page-register::before, body.page-register::after { content: none; }
  body.page-register .auth-section { display: block; min-height: 0; padding: 28px 20px 36px; }
  body.page-register .auth-wrapper { display: block; width: 100% !important; max-width: 420px; margin: 0 auto; }
  body.page-register .auth-side, body.page-register .auth-register-brand, body.page-register .auth-mobile-trust { display: none; }
  body.page-register .auth-card { width: 100%; min-width: 0; max-width: none; box-sizing: border-box; padding: 0; background: #fff; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
  body.page-register .auth-title { margin: 0 0 10px; color: #18252e; font-size: 30px; }
  body.page-register .auth-subtitle { color: #536472; font-size: 15px; margin-bottom: 24px; }
  body.page-register .auth-row { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body.page-register .auth-label { color: #263641; font-size: 14px; letter-spacing: 0; text-transform: none; }
  body.page-register .auth-input { min-height: 50px; color: #18252e; background: #fff; border: 1px solid #8797a4; border-radius: 4px; }
  body.page-register .auth-input:focus { border-color: #145960; box-shadow: 0 0 0 2px #dcebed; }
  body.page-register .auth-btn { min-height: 50px; border-radius: 4px; background: #18252e; color: #fff; box-shadow: none; font-size: 16px; }
  body.page-register .auth-check, body.page-register .auth-link, body.page-register .auth-bottom { color: #425563; }
  body.page-register .auth-field-icon svg { color: #617583; }
  body.page-register .auth-form { gap: 16px; }
  body.page-register #va-chat-widget { display: none; }
  body.page-catalogue .mobile-filters-toggle { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 32px); min-height: 48px; margin: 16px; padding: 10px 14px; background: #fff; border: 1px solid #8797a4; color: #18252e; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; }
  body.page-catalogue.mobile-layout-ready .catalogue-filters-wrap:not(.mobile-filters-open) { display: none !important; }
  body.page-catalogue .catalogue-filters-wrap { position: static; display: block; padding: 0 16px 16px; overflow: visible; box-shadow: none; background: #fff; }
  body.page-catalogue .catalogue-filters-wrap::after { content: none; }
  body.page-catalogue .cf-row-chips { display: grid !important; grid-template-columns: minmax(0,1fr); gap: 8px; }
  body.page-catalogue .cf-row-chips .chip { width: 100% !important; min-width: 0; box-sizing: border-box; min-height: 48px; margin: 0; font-size: 15px; border-radius: 4px; }
  body.page-catalogue .cf-row-btn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  body.page-catalogue .cf-btn-full, body.page-catalogue .cf-reset { min-height: 48px; margin: 0; }
  body.page-catalogue .catalogue-pagination { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; padding: 24px 16px; align-items: center; }
  body.page-catalogue .catalogue-page-number { display: none; }
  body.page-catalogue .mobile-page-summary { display: block; grid-column: 2; grid-row: 1; color: #425563; font-size: 14px; }
  body.page-catalogue .catalogue-page-prev { grid-column: 1; grid-row: 1; }
  body.page-catalogue .catalogue-page-next { grid-column: 3; grid-row: 1; }
  body.page-catalogue .catalogue-page-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; box-sizing: border-box; font-size: 13px; }
  body.page-catalogue .catalogue-page-number { display: none; }
  body.page-contact { background: #fff; }
  body.page-contact::before, body.page-contact::after { content: none; }
  body.page-contact .contact-page { padding: 24px 20px 36px; }
  body.page-contact .contact-shell { display: block; }
  body.page-contact .contact-portrait, body.page-contact .contact-form-panel { background: #fff; color: #18252e; border: 0; border-radius: 0; box-shadow: none; min-height: 0; padding: 0; }
  body.page-contact .contact-portrait::before, body.page-contact .contact-portrait::after, body.page-contact .contact-form-panel::before { content: none; }
  body.page-contact .contact-title { color: #18252e; font-size: 28px; line-height: 1.2; margin: 10px 0 12px; }
  body.page-contact .contact-title em { color: inherit; font-style: normal; }
  body.page-contact .contact-manifest { color: #536472; font-size: 14px; }
  body.page-contact .contact-ledger, body.page-contact .contact-note { display: none; }
  body.page-contact .contact-method-list { margin: 16px 0 24px; gap: 8px; }
  body.page-contact .contact-method { padding: 8px 0; border: 0; background: transparent; border-radius: 0; }
  body.page-contact .contact-method-label, body.page-contact .contact-method-value, body.page-contact .contact-kicker { color: #425563; }
  body.page-contact .contact-method-value a { color: #145960; overflow-wrap: anywhere; }
  body.page-contact .contact-left-address { display: none; }
  body.page-contact .contact-form-panel { padding-top: 24px; border-top: 1px solid #d9e0e6; }
  body.page-contact .contact-submit { width: 100%; min-height: 50px; border-radius: 4px; background: #18252e; font-size: 16px; text-transform: none; letter-spacing: 0; }
  body.page-contact .contact-input, body.page-contact .contact-select, body.page-contact .contact-textarea { border-radius: 4px; }
  body.page-annonce .annonce-breadcrumb-current { display: none; }
  body.page-annonce .annonce-breadcrumb-sep:last-of-type { display: none; }
  body.page-annonce .annonce-product .atb-h1 { font-size: 24px; line-height: 1.25; }
  body.page-annonce .annonce-product .atb-meta-date { margin-top: 4px; }
  body.page-suivi .suivi-hero { background: #101c2d; padding: 28px 20px; }
  body.page-suivi .suivi-hero::before, body.page-suivi .suivi-hero::after { content: none; }
  body.page-suivi .suivi-hero-scene { display: none; }
  body.page-suivi .suivi-hero h1 { font-size: 28px; }
  body.page-suivi .suivi-hero-btn { border-radius: 4px; box-shadow: none; }
  body.page-suivi .suivi-input { min-height: 50px; border-radius: 4px; }
  body .va-ft-inner { padding-inline: 20px; }
  body .va-ft a { overflow-wrap: anywhere; }
  /* Blog : son en-tête emploie un groupe d'icônes distinct. */
  body.wp-theme-vintageart .va-header-inner { gap: 6px !important; }
  body.wp-theme-vintageart .va-icons { flex: none; gap: 2px; }
  body.wp-theme-vintageart .va-icons a { width: 32px; min-width: 32px; height: 44px; }
  body.wp-theme-vintageart .va-icons a[aria-label=Favoris] { display: none; }
  body.wp-theme-vintageart .va-logo-text { font-size: 17px !important; }
  body.wp-theme-vintageart .va-logo-sub { font-size: 9px; }
  body.wp-theme-vintageart .va-header .va-search:not(.va-search--mobile) { display: none; }
  body.wp-theme-vintageart .va-feature-title, body.wp-theme-vintageart .va-card-title { overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  body input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]), body select { min-height: 48px; }
  body.page-register .auth-hint, body.page-register .auth-terms, body.page-register .auth-divider { color: #536472; }
  body.page-register .auth-terms a, body.page-register .auth-divider a { color: #145960; }
  body.page-register .auth-error { color: #9b1c16; background: #fff3f1; border-color: #d79d96; }
  body.page-register .auth-title, body.page-register .auth-subtitle { text-align: left; }
  body.page-contact .site-main, body.page-contact main { background: #fff; }
  body.page-contact .contact-shell { width: 100%; }
  body.page-contact .contact-manifest, body.page-contact .contact-form-intro, body.page-contact .contact-brief { display: none; }
  body.page-contact .contact-form-title { font-size: 24px; line-height: 1.25; }
  body.page-contact .contact-method-icon { color: #145960; background: transparent; border: 1px solid #145960; border-radius: 50%; }
  body.page-contact .contact-form-eyebrow { color: #425563; }
  body.page-catalogue .listing-card-price { flex-wrap: wrap; white-space: nowrap; gap: 6px; }
  body.page-catalogue .badge-auction { white-space: nowrap; }
}
@media (max-width: 360px) {
  body.page-catalogue .catalogue-grid { grid-template-columns: minmax(0,1fr); }
  body.page-catalogue .listing-card-title { font-size: 14px; }
  body.page-catalogue .listing-card-price { font-size: 18px; }
}

@media (max-width: 760px) {
  body.page-register .auth-card > p { color: #536472 !important; }
  body.page-register .auth-logo-text { color: #18252e; }
}

/* Bannière d'installation : compacte, et absente des pages qui ont déjà une barre d'action fixe. */
@media (max-width: 960px) {
  body.page-annonce #va-pwa-banner, body.page-payment #va-pwa-banner, body.page-wire #va-pwa-banner { display: none !important; }
  body #va-pwa-banner { padding: 10px 12px; gap: 10px; border-radius: 14px; }
  body .va-pwa-icon { width: 38px; height: 38px; padding: 4px; border-radius: 10px; }
  body .va-pwa-btns { gap: 2px; }
  body .va-pwa-btn-install { padding: 8px 14px; }
  body .va-pwa-btn-close { min-height: 28px; padding: 2px 0; }
}

/* Header identique sur toutes les pages : icônes sans cadre, comme sur l'accueil.
   Le compte est déjà dans la barre du bas : on ne garde l'icône du header que sur les pages qui n'ont pas cette barre. */
@media (max-width: 960px) {
  html body:not(#va-x) .va-header-actions .va-header-icon { border: 0 !important; background: transparent !important; box-shadow: none !important; }
  html body:not(.page-annonce):not(.page-auth):not(.page-account):not(.page-admin) .va-header-actions .va-icon-mobile { display: none !important; }
}

/* Lisibilité : aucun texte sous 12 px sur mobile. */
@media (max-width: 960px) {
  html body:not(#va-x) :is(
    .va-bottom-link span,
    .va-hero3-eyebrow, .va-hero3-rating-scale, .va-hero3-rating-verified, .va-hero3-total, .va-hero3-cap-k,
    .hv-kicker, .hv-link, .hv-lot-cat, .hv-card-cta, .hv-article-cat, .hm-kicker,
    .hv-film-play-label, .hv-film-play-duration, .hv-film-caption, .hv-film-language,
    .va-new-cat, .antique-meta span, .va-new-cta,
    .va-ft-top-sub, .va-ft-contact-label,
    .cat-editorial-count-label, .cat-editorial-badge, .listing-card-meta span, .listing-card-cta,
    .enc-hero-badge,
    .contact-kicker, .contact-method-label, .contact-form-eyebrow, .contact-label, .ct-team-kicker,
    .qsn-hero-eyebrow, .qsn-hero-stat span, .qsn-eyebrow, .qsn-tl-year, .qsn-stat-card span, .qsn-chiffre-item span, .qsn-cta-eyebrow,
    .auth-context,
    .annonce-product-seller-label, .sc-pro-badge, .annonce-securite-badge, .annonce-securite-soon em, .annonce-sim-meta, .annonce-abar-icon span,
    .cookie-text, .cookie-link
  ) { font-size: 12px !important; }
  html body:not(#va-x).page-annonce th { font-size: 12px !important; }
  html body:not(#va-x) .va-bn2 .va-bottom-link span { font-size: 12px !important; }
  /* Encart des avis de l'accueil : le bouton reste sur une ligne dans son cadre */
  html body:not(#va-x) .va-hero3-rating { width: auto !important; }
  html body:not(#va-x) .va-hero3-rating-cta { font-size: 11.5px !important; padding-inline: 7px; }
  html body:not(#va-x) .va-hero3-rating-cta span { display: none; }
  html body:not(#va-x) .va-hero3-stars { font-size: 10px !important; }
}

/* Zones tactiles : au moins 44 px de haut, sans décaler la mise en page. */
@media (max-width: 960px) {
  html body:not(#va-x) :is(
    .va-ft-story, .va-ft-news-privacy a, .va-ft-bottom-links a, .contact-method-value a,
    .annonce-breadcrumb a, .annonce-product-protection a, .cookie-link
  ) { padding-block: 12px; margin-block: -12px; }
  html body:not(#va-x) .va-ft-bottom-links a { padding-inline: 8px; margin-inline: -8px; }
  html body:not(#va-x) .va-hero3-thumb::before { content: ''; position: absolute; inset: -4px -2px; }
  html body:not(#va-x) :is(.enc-sort-btn, .auth-back, .auth-links a, .auth-help) { display: inline-flex; align-items: center; min-height: 44px; }
  html body:not(#va-x) :is(#va-chat-close, .vcw-head-expand) { min-width: 40px; min-height: 40px; }
  html body:not(#va-x) .va-pwa-btn-close { min-height: 36px; }
}

/* The same language navigation remains directly accessible from the mobile header. */
@media (max-width: 960px) {
  html body:not(#va-x) .va-header-actions .va-lang-dropdown { display: block; flex: none; }
  html body:not(#va-x) .va-header-actions .va-lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 4px !important; gap: 4px; letter-spacing: .04em !important; }
  html body:not(#va-x) .va-header-actions .va-lang-menu { width: 220px; min-width: 0; max-width: calc(100vw - 24px); max-height: min(420px, calc(100dvh - 84px)); overflow-y: auto; overscroll-behavior: contain; background: #fff; padding: 6px; }
  html body:not(#va-x) .va-header-actions .va-lang-item { min-height: 44px; padding: 10px 12px; box-sizing: border-box; border-radius: 0; font-size: 14px; color: #192b3a; }
  html body:not(#va-x) .va-header-actions .va-lang-item-code { color: #536471; }
  html body:not(#va-x) .va-header-actions .va-lang-item.active { background: #eef2f5 !important; color: #192b3a !important; }
  html body:not(#va-x) .va-header-actions .va-lang-btn:focus-visible,
  html body:not(#va-x) .va-header-actions .va-lang-item:focus-visible { outline: 2px solid #192b3a; outline-offset: 2px; }
}
@media (max-width: 360px) {
  html body:not(#va-x) .va-header-actions { gap: 0 !important; }
  html body:not(#va-x) .va-logo { gap: 4px !important; }
  html body:not(#va-x) .va-logo-text { font-size: 13px !important; letter-spacing: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .va-lang-dropdown.open .va-lang-menu { animation: none; }
}
