/* ============================================================
   BestOfAnnonces.com — DESIGN SYSTEM (source de vérité)
   Style « Premium épuré & confiance » (Airbnb / Doctolib).
   Palette signature : INDIGO/VIOLET moderne + accent CORAIL.
   Blanc dominant, grands espaces, ombres DOUCES, rayons 12-16px,
   micro-animations subtiles (transform/opacity, 150-250ms).

   Police : 100% système (pas de webfont bloquante → LCP).
   Classes annonces : .card-* / .listing-* / .item-* (jamais
   .ad-/.ads-/.banner-/.sponsored* → bloquées par EasyList).

   Le critical above-the-fold (reset, header, hero, début grille)
   est INLINÉ dans header.php ; ce fichier porte le reste.

   ------------------------------------------------------------
   INVENTAIRE DES COMPOSANTS RÉUTILISABLES (pour details.php &
   pages secondaires — réutiliser, ne pas redéfinir) :
     Boutons ......... .boa-btn / .boa-btn--primary (CTA corail)
                       / .boa-btn--indigo / .boa-btn--ghost
                       / .boa-btn--lg / .boa-btn--block / .boa-btn--icon
     Layout .......... .boa-wrap  .boa-section  .boa-section-title
                       .boa-section-head  .boa-link-more
     Header/nav ...... .boa-header .boa-catnav .boa-nav-links
     Hero/search ..... .hero .hero-search .hero-count .hero-trust
     Chips ........... .chip-row .chip
     Catégories ...... .boa-cats .boa-cat-tile
     "Comment ça" .... .boa-how .boa-how-step
     Confiance ....... .boa-trust .boa-trust-item .badge-trust
     Cards annonce ... .listing-grid  .card-listing  .card-photo
                       .card-price-tag  .card-badge  .card-title
                       .card-meta
     Breadcrumb ...... .boa-breadcrumb
     Listing head .... .boa-listing-head
     Pagination ...... .boa-pagination
     Formulaires ..... .boa-field .boa-label .boa-input .boa-select
     État vide ....... .boa-empty
     Fiche détail .... .boa-detail .boa-gallery-* .boa-detail-*
                       .boa-card-panel .boa-specs .boa-tags .boa-tag
     Reveal scroll ... [data-reveal]  (hook JS, dégrade en visible)
   ============================================================ */

:root {
  /* ---- Couleurs : INDIGO/VIOLET signature ---- */
  --boa-indigo:      #4F46E5;   /* primaire */
  --boa-indigo-600:  #4338CA;   /* primaire foncé (hover) */
  --boa-indigo-700:  #3730A3;
  --boa-ink:         #1E1B4B;   /* texte titres très foncé (indigo-950) */

  /* ---- Accent chaud CORAIL (CTA & highlights) ---- */
  --boa-coral:       #FB7185;
  --boa-coral-600:   #F43F5E;
  --boa-amber:       #F59E0B;   /* highlight secondaire (badges promo) */

  /* ---- Neutres slate/zinc ---- */
  --boa-text:        #0F172A;   /* corps */
  --boa-muted:       #64748B;   /* secondaire */
  --boa-faint:       #94A3B8;   /* tertiaire */
  --boa-border:      #E2E8F0;   /* bordures */
  --boa-border-soft: #EEF0F6;
  --boa-surface:     #ffffff;   /* cartes */
  --boa-bg:          #F8F8FC;   /* fond de page très légèrement teinté */
  --boa-bg-soft:     #F1F2F9;   /* zones douces / placeholders image */
  --boa-tint:        #EEF2FF;   /* indigo très clair (chips, pills) */
  --boa-tint-2:      #F5F3FF;   /* violet très clair */

  /* ---- Ombres DOUCES (jamais lourdes) ---- */
  --boa-shadow-xs: 0 1px 2px rgba(30,27,75,.05);
  --boa-shadow:    0 1px 3px rgba(30,27,75,.06), 0 1px 2px rgba(30,27,75,.04);
  --boa-shadow-md: 0 6px 16px rgba(30,27,75,.08), 0 2px 6px rgba(30,27,75,.05);
  --boa-shadow-lg: 0 18px 40px rgba(30,27,75,.12), 0 6px 14px rgba(30,27,75,.06);
  --boa-ring:      0 0 0 4px rgba(79,70,229,.14);

  /* ---- Rayons ---- */
  --boa-radius:    16px;
  --boa-radius-md: 14px;
  --boa-radius-sm: 12px;
  --boa-radius-xs: 10px;
  --boa-pill:      999px;

  /* ---- Espacements ---- */
  --boa-gap:   16px;
  --boa-gap-2: 24px;
  --boa-gap-3: 40px;

  /* ---- Layout ---- */
  --boa-maxw:     1180px;
  --boa-header-h: 64px;

  /* ---- Durées d'animation ---- */
  --boa-t:   .18s;
  --boa-t-2: .24s;
  --boa-ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--boa-text);
  background: var(--boa-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--boa-ink); letter-spacing: -.02em; }

a { color: var(--boa-indigo-600); text-decoration: none; }
a:hover { color: var(--boa-indigo-700); text-decoration: underline; }

img { max-width: 100%; height: auto; }

::selection { background: var(--boa-tint); color: var(--boa-ink); }

:focus-visible { outline: 2px solid var(--boa-indigo); outline-offset: 2px; border-radius: 4px; }

.boa-wrap { max-width: var(--boa-maxw); margin: 0 auto; padding: 0 16px; }

/* ============================================================
   BOUTONS
   <a class="boa-btn boa-btn--primary">Rechercher</a>      (corail = CTA principal)
   <a class="boa-btn boa-btn--indigo">…</a>                (indigo = action de marque)
   <a class="boa-btn boa-btn--ghost">…</a>                 (contour neutre)
   Modificateurs : --lg (hero), --block (pleine largeur), --icon (carré).
   ============================================================ */
.boa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; line-height: 1; white-space: nowrap;
  padding: 12px 20px; border-radius: var(--boa-radius-xs);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--boa-t) var(--boa-ease),
              box-shadow var(--boa-t) var(--boa-ease),
              transform var(--boa-t) var(--boa-ease),
              border-color var(--boa-t) var(--boa-ease);
}
.boa-btn:hover { text-decoration: none; transform: translateY(-1px); }
.boa-btn:active { transform: translateY(0); }

.boa-btn--primary {
  background: var(--boa-coral); color: #fff;
  box-shadow: 0 6px 16px rgba(244,63,94,.28);
}
.boa-btn--primary:hover { background: var(--boa-coral-600); color: #fff; box-shadow: 0 10px 22px rgba(244,63,94,.34); }

.boa-btn--indigo { background: var(--boa-indigo); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.24); }
.boa-btn--indigo:hover { background: var(--boa-indigo-600); color: #fff; box-shadow: 0 10px 22px rgba(79,70,229,.3); }

.boa-btn--ghost { background: var(--boa-surface); color: var(--boa-ink); border-color: var(--boa-border); }
.boa-btn--ghost:hover { background: var(--boa-tint); color: var(--boa-indigo-700); border-color: #C7D2FE; }

.boa-btn--lg { padding: 0 28px; height: 60px; font-size: 1.05rem; border-radius: 14px; }
.boa-btn--block { width: 100%; }
.boa-btn--icon { padding: 0; width: 44px; height: 44px; }

/* ============================================================
   SECTIONS HOME (titres + lien "tout voir")
   <section class="boa-section">
     <div class="boa-section-head">
       <h2 class="boa-section-title">…</h2>
       <a class="boa-link-more" href="…">Tout voir ›</a>
     </div> … </section>
   ============================================================ */
.boa-section { margin: 40px 0; }
.boa-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.boa-section-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin: 0; font-weight: 800; }
.boa-section-sub { color: var(--boa-muted); margin: 4px 0 0; font-size: .95rem; }
.boa-link-more { font-weight: 650; font-size: .92rem; white-space: nowrap; color: var(--boa-indigo-600); }
.boa-link-more:hover { color: var(--boa-indigo-700); }

/* ============================================================
   HEADER + NAV (le squelette critique est inliné dans header.php ;
   ici on complète les états/responsive non critiques).
   ============================================================ */
.boa-catnav { background: var(--boa-surface); border-bottom: 1px solid var(--boa-border); }
.boa-catnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.boa-catnav ul::-webkit-scrollbar { display: none; }
.boa-catnav li { flex: 0 0 auto; }
.boa-catnav a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--boa-text); white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--boa-t), border-color var(--boa-t); }
.boa-catnav a:hover { color: var(--boa-indigo-600); border-bottom-color: var(--boa-indigo); text-decoration: none; }

/* ============================================================
   HERO + BARRE DE RECHERCHE GÉANTE (home uniquement)
   <section class="hero">
     <div class="boa-wrap hero-inner">
       <h1 class="hero-title">…</h1>
       <p class="hero-sub">…</p>
       <form class="hero-search" …>
         <div class="hero-field hero-field--cat">…select…</div>
         <div class="hero-field hero-field--loc">…input…</div>
         <button class="boa-btn boa-btn--primary hero-go">Rechercher</button>
       </form>
       <div class="chip-row">…chips…</div>
       <div class="hero-count" data-count="12480">…</div>
       <ul class="hero-trust">…badges…</ul>
     </div>
   </section>
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 18% 0%, rgba(99,102,241,.10) 0%, rgba(99,102,241,0) 60%),
    radial-gradient(50% 60% at 92% 18%, rgba(251,113,133,.09) 0%, rgba(251,113,133,0) 60%),
    var(--boa-bg);
  border-bottom: 1px solid var(--boa-border-soft);
}
.hero-inner { padding: 44px 16px 40px; text-align: center; }
.hero-title { font-size: clamp(1.7rem, 1.1rem + 3vw, 2.9rem); line-height: 1.1; margin: 0 0 12px; font-weight: 850; letter-spacing: -.03em; }
.hero-title .hl { color: var(--boa-indigo-600); }
.hero-sub { color: var(--boa-muted); font-size: clamp(1rem, .95rem + .4vw, 1.18rem); margin: 0 auto 26px; max-width: 620px; }

.hero-search {
  display: flex; align-items: stretch; gap: 8px;
  max-width: 820px; margin: 0 auto;
  background: var(--boa-surface);
  border: 1px solid var(--boa-border);
  border-radius: 18px; padding: 8px;
  box-shadow: var(--boa-shadow-lg);
}
.hero-field { position: relative; display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.hero-field--cat { flex: 0 0 38%; border-right: 1px solid var(--boa-border); }
.hero-field .hero-ico { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--boa-indigo); pointer-events: none; }
.hero-field select, .hero-field input {
  width: 100%; height: 60px; border: 0; background: transparent;
  font: inherit; font-size: 1.02rem; color: var(--boa-ink);
  padding: 0 14px 0 46px; border-radius: 12px; -webkit-appearance: none; appearance: none;
}
.hero-field select { cursor: pointer; padding-right: 34px; }
.hero-field--cat::after {
  content: ""; position: absolute; right: 18px; width: 9px; height: 9px;
  border-right: 2px solid var(--boa-muted); border-bottom: 2px solid var(--boa-muted);
  transform: rotate(45deg) translateY(-3px); pointer-events: none;
}
.hero-field input::placeholder { color: var(--boa-faint); }
.hero-field:focus-within { background: var(--boa-tint); border-radius: 12px; }
.hero-go { flex: 0 0 auto; height: 60px; padding: 0 26px; border-radius: 12px; font-size: 1.05rem; }
.hero-go .lbl-full { display: inline; }

/* Chips de catégories populaires sous la barre */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px auto 0; max-width: 760px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--boa-surface); border: 1px solid var(--boa-border);
  color: var(--boa-ink); font-size: .88rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--boa-pill);
  box-shadow: var(--boa-shadow-xs);
  transition: background var(--boa-t), border-color var(--boa-t), transform var(--boa-t), box-shadow var(--boa-t);
}
.chip:hover { background: var(--boa-tint); border-color: #C7D2FE; color: var(--boa-indigo-700); text-decoration: none; transform: translateY(-1px); box-shadow: var(--boa-shadow); }
.chip .chip-ico { width: 16px; height: 16px; color: var(--boa-indigo); flex: 0 0 auto; display: inline-flex; }
.chip .chip-ico svg { width: 100%; height: 100%; display: block; }

/* Compteur "live" (count-up animé via JS) */
.hero-count { margin: 26px 0 0; font-size: .98rem; color: var(--boa-muted); }
.hero-count b { color: var(--boa-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-count .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: boa-pulse 2.4s ease-out infinite; }
@keyframes boa-pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

/* Badges de confiance (hero) */
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; list-style: none; margin: 18px 0 0; padding: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--boa-text); }
.hero-trust svg { width: 18px; height: 18px; color: #16A34A; flex: 0 0 auto; }

/* Pill badge de confiance réutilisable (footer, fiche…) */
.badge-trust {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--boa-tint); color: var(--boa-indigo-700);
  border-radius: var(--boa-pill); padding: 6px 13px; font-size: .82rem; font-weight: 650;
}
.badge-trust svg { width: 15px; height: 15px; }

/* ============================================================
   GRILLE CATÉGORIES (tuiles avec icône)
   <div class="boa-cats"><a class="boa-cat-tile">…</a></div>
   ============================================================ */
.boa-cats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 540px) { .boa-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .boa-cats { grid-template-columns: repeat(4, 1fr); } }
.boa-cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--boa-surface); border: 1px solid var(--boa-border);
  border-radius: var(--boa-radius); padding: 22px 12px; text-align: center;
  color: var(--boa-ink); box-shadow: var(--boa-shadow-xs);
  transition: box-shadow var(--boa-t-2) var(--boa-ease), transform var(--boa-t) var(--boa-ease), border-color var(--boa-t);
}
.boa-cat-tile:hover { box-shadow: var(--boa-shadow-md); transform: translateY(-3px); text-decoration: none; border-color: #C7D2FE; }
.boa-cat-ico-wrap {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--boa-tint); border-radius: 14px; color: var(--boa-indigo);
  transition: background var(--boa-t), color var(--boa-t);
}
.boa-cat-tile:hover .boa-cat-ico-wrap { background: var(--boa-indigo); color: #fff; }
.boa-cat-ico { width: 28px; height: 28px; }
.boa-cat-name { font-size: .94rem; font-weight: 650; }

/* ============================================================
   "COMMENT ÇA MARCHE"
   <ol class="boa-how"><li class="boa-how-step"><span class="boa-how-num">1</span>…</li></ol>
   ============================================================ */
.boa-how { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: how; }
@media (max-width: 680px) { .boa-how { grid-template-columns: 1fr; } }
.boa-how-step {
  background: var(--boa-surface); border: 1px solid var(--boa-border);
  border-radius: var(--boa-radius); padding: 22px 20px; box-shadow: var(--boa-shadow-xs);
}
.boa-how-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: var(--boa-tint); color: var(--boa-indigo-600);
  border-radius: 12px; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px;
}
.boa-how-step h3 { font-size: 1.02rem; margin: 0 0 4px; }
.boa-how-step p { margin: 0; color: var(--boa-muted); font-size: .92rem; }

/* ============================================================
   BLOC CONFIANCE (bande réassurance)
   <div class="boa-trust"><div class="boa-trust-item">…</div></div>
   ============================================================ */
.boa-trust {
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(135deg, var(--boa-tint) 0%, var(--boa-tint-2) 100%);
  border: 1px solid var(--boa-border-soft); border-radius: var(--boa-radius);
  padding: 26px 24px;
}
@media (max-width: 680px) { .boa-trust { grid-template-columns: 1fr; } }
.boa-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.boa-trust-item .ic { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border-radius: 12px; color: var(--boa-indigo); box-shadow: var(--boa-shadow-xs); }
.boa-trust-item .ic svg { width: 24px; height: 24px; }
.boa-trust-item h3 { font-size: 1rem; margin: 0 0 2px; }
.boa-trust-item p { margin: 0; color: var(--boa-muted); font-size: .9rem; }

/* ============================================================
   BREADCRUMB
   <nav class="boa-breadcrumb">…<a>…</a><span class="sep">›</span>…</nav>
   ============================================================ */
.boa-breadcrumb { font-size: .85rem; color: var(--boa-muted); margin: 18px 0 4px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.boa-breadcrumb a { color: var(--boa-muted); }
.boa-breadcrumb a:hover { color: var(--boa-indigo-600); }
.boa-breadcrumb .sep { opacity: .5; }
.boa-breadcrumb span[aria-current] { color: var(--boa-ink); font-weight: 650; }

/* ============================================================
   EN-TÊTE DE LISTING
   <header class="boa-listing-head"><h1>…</h1><div class="boa-count">…</div></header>
   ============================================================ */
.boa-listing-head { margin: 8px 0 20px; }
.boa-listing-head h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin: 0 0 4px; font-weight: 800; }
.boa-listing-head .boa-count { color: var(--boa-muted); font-size: .92rem; }
.boa-listing-head .boa-count b { color: var(--boa-ink); font-weight: 700; }

/* ============================================================
   GRILLE DE CARDS ANNONCE
   <div class="listing-grid">
     <article class="card-listing"><a …>
       <div class="card-photo"><img …><span class="card-price-tag">…</span></div>
       <div class="card-body"><p class="card-title">…</p><p class="card-meta">…</p></div>
     </a></article>
   </div>
   (alias rétro-compat : .boa-grid == .listing-grid)
   ============================================================ */
.listing-grid, .boa-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .listing-grid, .boa-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .listing-grid, .boa-grid { grid-template-columns: repeat(4, 1fr); } }

.card-listing {
  background: var(--boa-surface); border: 1px solid var(--boa-border);
  border-radius: var(--boa-radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--boa-shadow-xs);
  transition: box-shadow var(--boa-t-2) var(--boa-ease), transform var(--boa-t) var(--boa-ease), border-color var(--boa-t);
}
.card-listing:hover { box-shadow: var(--boa-shadow-md); transform: translateY(-3px); border-color: #DDE2EC; }
.card-listing > a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-listing > a:hover { text-decoration: none; }

.card-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--boa-bg-soft); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--boa-ease); }
.card-listing:hover .card-photo img { transform: scale(1.04); }

.card-price-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(30,27,75,.9); color: #fff; backdrop-filter: blur(3px);
  font-weight: 750; font-size: .9rem; padding: 5px 11px; border-radius: 10px;
}
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--boa-coral); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: var(--boa-pill);
  box-shadow: 0 2px 6px rgba(244,63,94,.3);
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; }
.card-title {
  font-size: .95rem; font-weight: 650; margin: 0; line-height: 1.35; color: var(--boa-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.55em;
}
.card-meta { font-size: .8rem; color: var(--boa-muted); margin: auto 0 0; display: flex; align-items: center; gap: 4px; }
.card-meta .ico { width: 13px; height: 13px; flex: 0 0 auto; opacity: .8; }

/* ============================================================
   TEXTE ÉDITORIAL DE RUBRIQUE (bas de page catégorie — SEO)
   <section class="boa-cat-intro"><h2>…</h2><p>…</p></section>
   ============================================================ */
.boa-cat-intro { max-width: 820px; margin: 8px 0 4px; color: var(--boa-muted); }
.boa-cat-intro h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--boa-ink); }
.boa-cat-intro p { margin: 0; font-size: .92rem; line-height: 1.6; }

/* ============================================================
   ÉTAT VIDE
   ============================================================ */
.boa-empty {
  text-align: center; padding: 56px 20px; color: var(--boa-muted);
  background: var(--boa-surface); border: 1px solid var(--boa-border);
  border-radius: var(--boa-radius); margin: 20px 0; box-shadow: var(--boa-shadow-xs);
}
.boa-empty .ic { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--boa-faint); }
.boa-empty p { margin: 0 0 18px; font-size: 1.02rem; }

/* ============================================================
   PAGINATION
   <nav class="boa-pagination"><a>1</a><span class="active">2</span>…</nav>
   ============================================================ */
.boa-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 34px 0; }
.boa-pagination a, .boa-pagination span {
  min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--boa-border); border-radius: 12px;
  font-weight: 650; font-size: .92rem; background: var(--boa-surface); color: var(--boa-ink);
  transition: background var(--boa-t), border-color var(--boa-t), color var(--boa-t);
}
.boa-pagination a:hover { background: var(--boa-tint); border-color: #C7D2FE; color: var(--boa-indigo-700); text-decoration: none; }
.boa-pagination span.active { background: var(--boa-indigo); color: #fff; border-color: var(--boa-indigo); box-shadow: 0 4px 12px rgba(79,70,229,.28); }
.boa-pagination span:not(.active) { color: var(--boa-faint); border-color: transparent; background: transparent; }

/* ============================================================
   FORMULAIRES (réutilisables — saisie, filtres, contact)
   <div class="boa-field"><label class="boa-label">…</label>
     <input class="boa-input"> | <select class="boa-select"></div>
   ============================================================ */
.boa-field { display: flex; flex-direction: column; gap: 6px; }
.boa-label { font-size: .85rem; font-weight: 650; color: var(--boa-ink); }
.boa-input, .boa-select {
  height: 46px; width: 100%; border: 1px solid var(--boa-border); border-radius: 12px;
  background: var(--boa-surface); padding: 0 14px; font: inherit; font-size: .98rem; color: var(--boa-ink);
  transition: border-color var(--boa-t), box-shadow var(--boa-t);
}
.boa-select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.boa-input:focus, .boa-select:focus { outline: none; border-color: var(--boa-indigo); box-shadow: var(--boa-ring); }

/* ============================================================
   FICHE DÉTAIL (pour details.php — réutilise le design system)
   ============================================================ */
.boa-detail { display: grid; gap: 26px; margin: 18px 0 36px; }
@media (min-width: 880px) { .boa-detail { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.boa-gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--boa-bg-soft); border-radius: var(--boa-radius); display: block; box-shadow: var(--boa-shadow); }
.boa-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.boa-gallery-thumbs a { width: 80px; height: 80px; border-radius: var(--boa-radius-sm); overflow: hidden; border: 1px solid var(--boa-border); }
.boa-gallery-thumbs a:hover { border-color: var(--boa-indigo); }
.boa-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.boa-detail-title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); margin: 0 0 8px; line-height: 1.2; font-weight: 800; }
.boa-detail-price { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 850; color: var(--boa-indigo-600); margin: 6px 0 14px; }
.boa-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--boa-muted); font-size: .88rem; margin: 0 0 16px; }
.boa-detail-meta .boa-pro { background: var(--boa-tint); color: var(--boa-indigo-700); border-radius: var(--boa-pill); padding: 3px 10px; font-weight: 700; }
.boa-card-panel { background: var(--boa-surface); border: 1px solid var(--boa-border); border-radius: var(--boa-radius); padding: 20px; box-shadow: var(--boa-shadow); }
.boa-detail-desc { white-space: normal; word-break: break-word; margin: 8px 0 20px; }
.boa-detail-desc p { margin: 0 0 10px; }
.boa-specs { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .92rem; }
.boa-specs th, .boa-specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--boa-border); vertical-align: top; }
.boa-specs th { color: var(--boa-muted); font-weight: 600; width: 42%; }
.boa-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.boa-tag { font-size: .8rem; background: var(--boa-surface); color: var(--boa-text); border: 1px solid var(--boa-border); border-radius: var(--boa-pill); padding: 5px 12px; }
.boa-tag:hover { background: var(--boa-tint); border-color: #C7D2FE; color: var(--boa-indigo-700); text-decoration: none; }
.boa-phone-reveal summary { list-style: none; cursor: pointer; }
.boa-phone-reveal summary::-webkit-details-marker { display: none; }
.boa-phone-img { display: block; margin-top: 10px; }
.boa-contact-stack { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.boa-similar h2 { font-size: 1.15rem; margin: 26px 0 14px; font-weight: 800; }

/* ============================================================
   SAISIE / IFRAME + PAGES TEXTE
   ============================================================ */
.boa-saisie-intro { text-align: center; padding: 26px 16px; }
.boa-saisie-intro h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); margin: 0 0 8px; font-weight: 800; }
.boa-saisie-intro p { color: var(--boa-muted); margin: 0 auto 16px; max-width: 580px; }
.boa-iframe-frame { width: 100%; border: 0; display: block; background: var(--boa-bg-soft); border-radius: var(--boa-radius); box-shadow: var(--boa-shadow); }
.boa-textpage { max-width: 760px; margin: 24px auto; }
.boa-textpage h1 { font-size: 1.7rem; font-weight: 800; }
.boa-textpage h2 { font-size: 1.2rem; margin-top: 26px; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.boa-footer { background: var(--boa-surface); border-top: 1px solid var(--boa-border); margin-top: 56px; padding: 44px 0 28px; }
.boa-footer-top { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
@media (max-width: 900px) { .boa-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .boa-footer-top { grid-template-columns: 1fr; } }
.boa-footer-brand img { height: 34px; width: auto; }
.boa-footer-brand p { color: var(--boa-muted); font-size: .9rem; margin: 12px 0 14px; max-width: 280px; }
.boa-footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.boa-footer h3 { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--boa-muted); margin: 0 0 14px; }
.boa-footer ul { list-style: none; margin: 0; padding: 0; }
.boa-footer li { margin: 0 0 9px; }
.boa-footer a { color: var(--boa-muted); font-size: .92rem; }
.boa-footer a:hover { color: var(--boa-indigo-600); }
.boa-footer-cta-col p { color: var(--boa-muted); font-size: .9rem; margin: 0 0 14px; }
.boa-footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; text-align: center; color: var(--boa-muted); font-size: .82rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--boa-border); }
.boa-footer-bottom a { color: var(--boa-muted); }
.boa-footer-bottom a:hover { color: var(--boa-indigo-600); }

/* ============================================================
   NAV MOBILE (menu déroulant des catégories)
   ============================================================ */
.boa-mobnav { display: none; }
/* Tiroir mobile masqué par défaut (desktop) — sinon le <ul> s'affiche en liste
   à puces brute. Sur mobile (<=860px) la media query ci-dessous le pilote. */
.boa-nav-links { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) {
  .boa-nav-links {
    display: none; position: absolute; top: var(--boa-header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--boa-border);
    flex-direction: column; padding: 8px 0; box-shadow: var(--boa-shadow-md); list-style: none; margin: 0;
  }
  .boa-nav-links.open { display: flex; }
  .boa-nav-links li { width: 100%; }
  .boa-nav-links a { display: block; padding: 12px 18px; color: var(--boa-ink); font-weight: 600; }
  .boa-nav-links a:hover { background: var(--boa-tint); text-decoration: none; }
  .boa-mobnav { display: inline-flex; }
}

/* ============================================================
   REVEAL AU SCROLL (subtil) — hook JS [data-reveal]
   Dégrade en "toujours visible" si JS off (.js classe posée par boa.js).
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--boa-t-2) var(--boa-ease), transform var(--boa-t-2) var(--boa-ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.boa-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Accessibilité : respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card-listing:hover .card-photo img { transform: none; }
}
