/* ============================================================
   FooyDeuk — Home v2 : Compact, moderne, prioritaire annonces
   Conçu pour faire apparaître les biens dès le premier viewport
   ============================================================ */

/* ============= COMMAND BAND — Bande compacte sous navbar ============= */
.cmd-band {
  position: relative;
  padding: 18px 0 22px;
  background:
    radial-gradient(circle at 8% 50%, rgba(244, 163, 0, .08), transparent 45%),
    radial-gradient(circle at 92% 50%, rgba(231, 111, 81, .10), transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
  isolation: isolate;
}
.cmd-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(27,67,50,.05) 1px, transparent 0);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.cmd-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cmd-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin: 0;
}
.cmd-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--terra);
  position: relative;
}
.cmd-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 5px;
  background: var(--gold);
  opacity: .35;
  border-radius: 3px;
  z-index: -1;
}
.cmd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.cmd-badge .dot {
  width: 7px; height: 7px;
  background: var(--forest-3);
  border-radius: 50%;
  position: relative;
  margin-left: 4px;
}
.cmd-badge .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--forest-3);
  border-radius: 50%;
  opacity: .4;
  animation: ping 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }

/* ============= SEARCHBAR V3 — Inline, ultra-compacte ============= */
.searchbar-v3 {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(234, 224, 206, .9);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(27, 67, 50, .08), 0 1px 3px rgba(27,67,50,.04);
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr auto;
  gap: 2px;
  align-items: center;
}
[data-theme="dark"] .searchbar-v3 {
  background: rgba(30, 38, 32, .85);
  border-color: rgba(255,255,255,.06);
}

.sb-tabs {
  display: inline-flex;
  background: var(--bg-sand);
  border-radius: var(--r-full);
  padding: 3px;
  margin-right: 6px;
}
.sb-tabs button {
  padding: 7px 13px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-soft);
  transition: background-color var(--t), color var(--t), box-shadow var(--t);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sb-tabs button.active {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(27,67,50,.2);
}
.sb-tabs button i { font-size: .72rem; }

.sb-field {
  position: relative;
  padding: 4px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--t);
  min-width: 0;
}
.sb-field:hover { background: rgba(242, 232, 212, .5); }
.sb-field + .sb-field::before {
  content: '';
  position: absolute;
  left: 0; top: 24%; bottom: 24%;
  width: 1px;
  background: var(--border);
}
.sb-field-label {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1px;
}
.sb-field select,
.sb-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 0;
}

.sb-go {
  background: var(--terra);
  color: white;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(231, 111, 81, .32);
  transition: background-color var(--t), box-shadow var(--t), transform var(--t);
  white-space: nowrap;
}
.sb-go:hover { background: var(--terra-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(231,111,81,.4); }
.sb-go i { font-size: .85rem; }

/* ============= LISTINGS SECTION V2 ============= */
.listings-v2 {
  padding: 56px 0 64px;
  background: var(--bg-cream);
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}
[data-theme="dark"] .listings-v2 { background: var(--bg-cream); border-color: var(--border); }

.listings-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.listings-v2-head h2 {
  color: var(--forest);
  margin-bottom: 2px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.listings-v2-head h2 em {
  font-style: italic;
  color: var(--terra);
  font-weight: 500;
}
.listings-v2-head .sub {
  color: var(--text-soft);
  font-size: .88rem;
}
.listings-v2-head .head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.listings-v2-head .head-cta:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateX(4px);
}

/* V11-B / S-22 — variante ghost (bouton "Effacer" des récemment consultés) */
.listings-v2-head .head-cta.head-cta-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1.5px solid var(--border-soft);
  cursor: pointer;
}
.listings-v2-head .head-cta.head-cta-ghost:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: none;
  background: rgba(231, 111, 81, 0.06);
}

/* V11-B / S-22 — Section "Récemment consultés" */
.recently-viewed-section {
  padding: clamp(24px, 4vw, 48px) 0;
  background: var(--bg);
}
.recently-viewed-section[hidden] { display: none; }

/* ============= Empty-inline (sélection home filtrée à 0 résultat) — B3 W3 ============= */
.empty-inline {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-inline i {
  font-size: 2.4rem;
  color: var(--text-mute);
  opacity: 0.6;
}
.empty-inline h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  margin: 0;
}
[data-theme="dark"] .empty-inline h3 { color: var(--text); }
.empty-inline p {
  margin: 0;
  font-size: 0.95rem;
}
.empty-inline a {
  color: var(--terra);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--t);
}
.empty-inline a:hover { color: var(--terra-dark, var(--terra)); text-decoration: underline; }

/* ============= FILTRES CHIC — Pills élégantes ============= */
.cat-row-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 22px;
  position: relative;
}

.cat-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .84rem;
  white-space: nowrap;
  transition: background-color 280ms cubic-bezier(.4,0,.2,1), color 280ms cubic-bezier(.4,0,.2,1), border-color 280ms cubic-bezier(.4,0,.2,1), box-shadow 280ms cubic-bezier(.4,0,.2,1), transform 280ms cubic-bezier(.4,0,.2,1);
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(27, 67, 50, .03);
  position: relative;
}
@media (max-width: 600px) {
  .cat-pill-v2 { padding: 6px 14px 6px 6px; font-size: .8rem; gap: 8px; }
  .cat-pill-v2 i { width: 26px; height: 26px; font-size: .76rem; }
}
.cat-pill-v2 i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--bg-sand);
  color: var(--forest);
  border-radius: 50%;
  font-size: .82rem;
  transition: background-color 280ms cubic-bezier(.4,0,.2,1), color 280ms cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.cat-pill-v2:hover {
  border-color: rgba(231, 111, 81, .4);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(27, 67, 50, .25);
}
.cat-pill-v2:hover i {
  background: var(--terra-soft);
  color: var(--terra);
}
.cat-pill-v2.active {
  background: #1B4332;
  background-image: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: var(--cream);
  border-color: #1B4332;
  box-shadow: 0 8px 22px -6px rgba(27, 67, 50, .45);
}
.cat-pill-v2.active i {
  background: rgba(244, 163, 0, .25);
  color: var(--gold);
}
[data-theme="dark"] .cat-pill-v2 i { background: rgba(255,255,255,.05); }

/* Cards grid pour la home (utilise les styles modernisés de style.css) */
.cards-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

/* ============= QUARTIERS V2 — Mosaïque asymétrique ============= */
.hoods-v2 {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.hood-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.hood-tile-v2 {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t);
  box-shadow: var(--sh-sm);
}
.hood-tile-v2:hover { transform: scale(1.02); }
.hood-tile-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,27,22,.85) 0%, rgba(15,27,22,.1) 55%);
  transition: opacity var(--t);
}
.hood-tile-v2:hover::after { background: linear-gradient(to top, rgba(15,27,22,.7) 0%, rgba(231,111,81,.1) 55%); }
.hood-tile-v2 .info {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  z-index: 2;
  color: white;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.hood-tile-v2 .info .name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  /* B8 W3 : double-ombre pour garantir la lisibilité sur images claires */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.55);
}
.hood-tile-v2 .info .city {
  font-size: .76rem;
  opacity: .9;
  margin-top: 3px;
  /* B8 W3 : même renforcement sur le nom de ville */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.55);
}
.hood-tile-v2 .count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Tiles en taille variable */
.hood-tile-v2.t-big   { grid-column: span 2; grid-row: span 2; }
.hood-tile-v2.t-tall  { grid-row: span 2; }
.hood-tile-v2.t-wide  { grid-column: span 2; }

.hood-tile-v2.t-big .info .name { font-size: 1.5rem; }

/* ============= USP V2 — bande horizontale compacte ============= */
.usp-v2 {
  padding: 56px 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
[data-theme="dark"] .usp-v2 { background: var(--bg-cream); border-color: var(--border); }
.usp-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.usp-v2-item {
  padding: 28px 24px;
  position: relative;
  transition: background var(--t);
}
.usp-v2-item:hover { background: var(--bg-cream); }
.usp-v2-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px; bottom: 24px; right: 0;
  width: 1px;
  background: var(--border-soft);
}
.usp-v2-item .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
  background: var(--terra-soft);
  color: var(--terra);
}
.usp-v2-item:nth-child(2) .ic { background: var(--gold-soft); color: var(--gold); }
.usp-v2-item:nth-child(3) .ic { background: rgba(82, 183, 136, .15); color: var(--forest-2); }
.usp-v2-item:nth-child(4) .ic { background: var(--bg-sand); color: var(--forest); }
.usp-v2-item h3,
.usp-v2-item h4 {
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 6px;
}
.usp-v2-item p {
  font-size: .87rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ============= CTA V2 — moderne, plus condensé ============= */
.cta-v2 {
  padding: 40px 0 80px;
}
.cta-v2-box {
  background: #1B4332;
  background-image: linear-gradient(135deg, #1B4332 0%, #0F1B16 100%);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-v2-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 70%; height: 200%;
  background:
    radial-gradient(circle, rgba(231, 111, 81, .35) 0%, transparent 60%);
  filter: blur(40px);
}
.cta-v2-box::after {
  content: '';
  position: absolute;
  bottom: -30%; left: 30%;
  width: 50%; height: 100%;
  background: radial-gradient(circle, rgba(244, 163, 0, .2) 0%, transparent 60%);
  filter: blur(40px);
}
.cta-v2-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
}
.cta-v2-content .eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.cta-v2-content h2 {
  color: var(--cream);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.cta-v2-content h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.cta-v2-content p {
  color: rgba(251, 246, 238, .8);
  margin-bottom: 26px;
  max-width: 480px;
  font-size: .98rem;
}
.cta-v2-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-v2-visual {
  position: relative;
  z-index: 2;
  height: 280px;
}
.cta-v2-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
  border: 6px solid rgba(255,255,255,.12);
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
}
.cta-v2-stat {
  position: absolute;
  bottom: -10px; left: -20px;
  background: var(--surface);
  padding: 14px 20px;
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-v2-stat .ic {
  width: 38px; height: 38px;
  background: var(--terra-soft);
  color: var(--terra);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.cta-v2-stat .num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
  line-height: 1;
}
.cta-v2-stat .lbl {
  font-size: .72rem;
  color: var(--text-mute);
  margin-top: 3px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  .hood-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
  .hood-tile-v2.t-big { grid-column: span 2; grid-row: span 2; }
  .usp-v2-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-v2-item:nth-child(2)::after { display: none; }
  .usp-v2-item:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .cta-v2-box { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-v2-visual { display: none; }
}

@media (max-width: 768px) {
  .cmd-band { padding: 14px 0 18px; }
  .cmd-row { gap: 14px; margin-bottom: 12px; }
  .cmd-title { font-size: 1.2rem; }
  .cmd-badge { font-size: .72rem; }

  .searchbar-v3 {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    border-radius: var(--r);
    gap: 4px;
  }
  .sb-tabs { grid-column: 1 / -1; margin-right: 0; margin-bottom: 4px; justify-content: stretch; }
  .sb-tabs button { flex: 1; justify-content: center; }
  .sb-field { padding: 8px 12px; }
  .sb-field + .sb-field::before { display: none; }
  .sb-go { grid-column: 1 / -1; width: 100%; height: 46px; justify-content: center; margin-top: 4px; }

  .listings-v2 { padding: 22px 0 48px; }
  .cards-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

  .hood-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 12px;
  }
  .hood-tile-v2.t-big { grid-column: span 2; grid-row: span 2; }
  .hood-tile-v2.t-tall { grid-row: span 1; }
  .hood-tile-v2.t-wide { grid-column: span 2; }
  .hood-tile-v2 .info .name { font-size: 1rem; }
  .hood-tile-v2.t-big .info .name { font-size: 1.25rem; }

  .usp-v2-grid { grid-template-columns: 1fr; }
  .usp-v2-item:not(:last-child)::after {
    top: auto; bottom: 0; left: 24px; right: 24px;
    width: auto; height: 1px;
  }

  .cta-v2-box { padding: 32px 22px; }
}

/* ============= DARK MODE — Polissage home ============= */
[data-theme="dark"] .cmd-band {
  background:
    radial-gradient(circle at 8% 50%, rgba(244, 183, 64, .06), transparent 45%),
    radial-gradient(circle at 92% 50%, rgba(231, 111, 81, .08), transparent 50%),
    var(--bg);
  border-bottom-color: var(--border-soft);
}
[data-theme="dark"] .cmd-band::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
}
[data-theme="dark"] .cmd-title { color: var(--text); }
[data-theme="dark"] .cmd-badge {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}

/* Searchbar v3 — verre sombre net */
[data-theme="dark"] .searchbar-v3 {
  background: rgba(27, 38, 32, 0.78);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.04);
}
[data-theme="dark"] .sb-tabs { background: rgba(255,255,255,.04); }
[data-theme="dark"] .sb-tabs button.active {
  background: #1F4F37;
  color: #ECE6D6;
}
[data-theme="dark"] .sb-field:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .sb-field + .sb-field::before { background: var(--border); }

/* Cat pill v2 — actif moins criard en sombre */
[data-theme="dark"] .cat-pill-v2 {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .cat-pill-v2:hover {
  border-color: rgba(240, 131, 104, .35);
  color: var(--terra);
}
[data-theme="dark"] .cat-pill-v2.active {
  background: linear-gradient(135deg, #1F4F37 0%, #143727 100%);
  border-color: #1F4F37;
  color: #ECE6D6;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .55);
}

/* Listings & USP v2 */
[data-theme="dark"] .listings-v2 { background: var(--bg); }
[data-theme="dark"] .usp-v2 { background: var(--bg); }
[data-theme="dark"] .usp-v2-grid {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .usp-v2-item:hover { background: rgba(255,255,255,.02); }
[data-theme="dark"] .usp-v2-item .ic { background: rgba(231, 111, 81, .14); color: var(--terra); }
[data-theme="dark"] .usp-v2-item:nth-child(2) .ic { background: rgba(244, 183, 64, .14); color: var(--gold); }
[data-theme="dark"] .usp-v2-item:nth-child(3) .ic { background: rgba(95, 203, 149, .14); color: var(--forest); }
[data-theme="dark"] .usp-v2-item:nth-child(4) .ic { background: rgba(255, 255, 255, .04); color: var(--text); }

/* Hoods v2 — fond doux, bordures discrètes */
[data-theme="dark"] .hoods-v2 {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
  border-top-color: var(--border-soft);
  border-bottom-color: var(--border-soft);
}

/* CTA v2 — vert profond stable, pas vert néon */
[data-theme="dark"] .cta-v2-box {
  background: #143727;
  background-image: linear-gradient(135deg, #143727 0%, #06100B 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .cta-v2-stat {
  background: var(--surface);
  border: 1px solid var(--border);
}
[data-theme="dark"] .cta-v2-stat .ic { background: rgba(231, 111, 81, .14); color: var(--terra); }


/* ============================================================
   ============= HERO IMMERSIF — refonte éditoriale ============
   Direction artistique :
     - Photo de fond luxueuse plein cadre (villa contemporaine ensoleillée).
     - Voile dégradé bas-vers-haut (forest profond) qui assoit le contenu
       sans assombrir l'image — on garde la lumière du Sénégal en haut.
     - Grain or doux + halo terra/gold aux coins pour la signature visuelle.
     - Carte éditoriale centrale en glass sombre, sertie de hairlines or,
       avec coins arrondis large + ombre profonde — esprit "carte de visite
       premium" qui flotte au-dessus de la villa.
     - Eyebrow détachée en haut (sticker vérifié), 2 cartes d'action en bas.
   Tout tient dans la fold (100vh - header) — pas de scroll requis.
   ============================================================ */
/* ===================================================================
   HERO IMMERSIF — version simple et lisible
   - Photo de fond pleine largeur
   - Voile sombre uniforme et FRANC pour garantir la lisibilité du texte
   - Texte blanc pur (pas de dégradé sur les lettres)
   - "chez-vous" reste en italique terra clair, pour la touche éditoriale
   =================================================================== */

/* ==========================================================================
   HERO IMMERSIF — refonte V-Visual.2-fix
   Tous les éléments DOIVENT tenir above-the-fold (même iPhone SE 320×568).
   Boutons inspirés du <Button> mobile : pill 56px hauteur, label single-line.
   ========================================================================== */
.hero-immersive {
  position: relative;
  /* Hauteur EXACTE du viewport moins le header. */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  /* min-height de sécurité : tenir absolument dans 480px de haut min */
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(14px, 2vw, 28px) 0;
  text-align: center;
  background:
    url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=2400&q=85&auto=format&fit=crop')
    center/cover no-repeat;
}

/* Voile dégradé chaud — plus marqué pour faire ressortir le texte sur la photo.
   3 couches : radial terra coin haut-droit, radial gold coin bas-gauche,
   linéaire vertical forest→night intensifié au centre. */
.hero-i-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(15, 27, 22, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(231, 111, 81, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(244, 163, 0, 0.16), transparent 60%),
    linear-gradient(180deg,
      rgba(15, 27, 22, 0.68) 0%,
      rgba(15, 27, 22, 0.75) 50%,
      rgba(15, 27, 22, 0.85) 100%);
  pointer-events: none;
}

.hero-immersive .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-i-text {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cream);
}

/* Wolof — accroche éditoriale, taille raisonnée pour tenir partout */
.hero-wolof {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  letter-spacing: 0.04em;
  color: rgba(244, 183, 64, 1);
  margin-bottom: 14px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.hero-wolof::before,
.hero-wolof::after {
  content: "";
  display: block;
  width: 32px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(244, 183, 64, 0.75));
}
.hero-wolof::after {
  background: linear-gradient(90deg, rgba(244, 183, 64, 0.75), transparent);
}

/* Titre H1 — gros mais maîtrisé. clamp max 3.6rem (~58px) garantit
   que 2 lignes tiennent dans ~120px de hauteur sur tout viewport. */
.hero-i-text h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--cream);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.75),
    0 8px 32px rgba(0, 0, 0, 0.55);
}
.hero-i-text h1 em {
  font-style: italic;
  font-weight: 500;
  color: #FFB58A;
  white-space: nowrap;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.80),
    0 8px 32px rgba(0, 0, 0, 0.60);
}
.hero-i-text h1 .h1-location {
  display: inline-block;
  font-size: 0.84em;
  opacity: 0.95;
  font-weight: 400;
}

/* Lead — compact, 2 lignes max */
.hero-i-text .lead {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.94rem, 1.05vw, 1.08rem);
  color: rgba(255, 249, 238, 0.94);
  line-height: 1.5;
  font-weight: 400;
  margin: 0 auto 20px;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ====== CARTES D'ACTION — clone exact des 2 cards de la home mobile
   (`app/(tabs)/index.tsx` — Pressable « Trouver mon bien » + « Publier »).
   Spec mobile reproduite :
   - flex: 1, minHeight: 168px
   - borderRadius: t.radius.lg (= 18px)
   - padding: t.spacing[4] (= 16px)
   - justify-content: space-between, gap 12px
   - Halo gold absolu top -32 right -32, 120×120, borderRadius 60, opacité 0.18-0.22
   - Icône pill 48×48 borderRadius 24 backgroundColor gold + icône foncée dedans
   - Texte stack : eyebrow xs bold uppercase letterSpacing 1 + h4 + sub xs opacité 0.88
   - Shadow forest pour la 1ère, terra pour la 2ème
   - overflow: hidden, position: relative
*/
.hero-cards {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  width: 100%;
  max-width: 680px;
}

/* Base commune — carte 140px (compact mais lisible). Sur mobile c'est 168
   parce que c'est SCROLL et le user défile pour voir. Sur web le hero doit
   tenir au-dessus du fold sans scroll. */
.hero-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 140px;
  padding: 16px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  transition: transform var(--t-spring), box-shadow var(--t), opacity var(--t);
}
.hero-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.hero-card:active { transform: scale(0.985); opacity: 0.92; }

/* Halo gold décoratif en haut-droite */
.hero-card .hero-card-halo {
  position: absolute;
  top: -32px;
  right: -32px;
  width: 120px;
  height: 120px;
  border-radius: 60px;
  background: var(--gold);
  pointer-events: none;
  z-index: 0;
}

/* Icône en pill ronde 44×44 (or, icône foncée dedans) */
.hero-card .hero-card-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

/* Bloc texte en bas (gap 2 entre les 3 lignes comme mobile) */
.hero-card .hero-card-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-card .hero-card-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero-card .hero-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.hero-card .hero-card-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
  opacity: 0.88;
  line-height: 1.3;
}

/* ====== Carte "DÉCOUVRIR" — action principale, terra plein (warm + chaleureux)
   Le halo est désactivé pour rester clean ; icône en pill blanc translucide. */
.hero-card-discover {
  background: linear-gradient(135deg, #E2613F 0%, #B84E2F 100%);
  box-shadow:
    0 18px 40px -12px rgba(184, 78, 47, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hero-card-discover .hero-card-halo { display: none; }
.hero-card-discover .hero-card-icon {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
@media (hover: hover) {
  .hero-card-discover:hover {
    transform: translateY(-4px);
    box-shadow:
      0 26px 50px -12px rgba(184, 78, 47, 0.78),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  .hero-card-discover:hover .hero-card-icon {
    background: rgba(255, 255, 255, 0.28);
  }
}

/* ====== Carte "PROPOSER" — action secondaire, forest profond avec accent or fin.
   Le halo gold est SUPPRIMÉ (visuellement trop chargé à côté du terra) au profit
   d'une bordure or fine + icône or qui suffisent à signaler l'accent. */
.hero-card-publish {
  background: linear-gradient(135deg, #1F4D3A 0%, #0F2A1F 100%);
  border: 1.5px solid rgba(244, 163, 0, 0.55);
  box-shadow:
    0 18px 40px -12px rgba(15, 42, 31, 0.65),
    inset 0 1px 0 rgba(244, 163, 0, 0.18);
}
.hero-card-publish .hero-card-halo { display: none; }
.hero-card-publish .hero-card-icon {
  background: rgba(244, 163, 0, 0.18);
  color: var(--gold);
  border: 1px solid rgba(244, 163, 0, 0.42);
}
.hero-card-publish .hero-card-eyebrow {
  color: rgba(244, 163, 0, 0.92);
}
@media (hover: hover) {
  .hero-card-publish:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow:
      0 26px 50px -12px rgba(244, 163, 0, 0.42),
      inset 0 1px 0 rgba(244, 163, 0, 0.30);
  }
  .hero-card-publish:hover .hero-card-icon {
    background: rgba(244, 163, 0, 0.32);
    border-color: var(--gold);
  }
}

/* Scroll hint — discret en bas */
.hero-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 249, 238, 0.65);
  transition: color var(--t);
  cursor: pointer;
}
.hero-scroll-hint i {
  font-size: 0.72rem;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
@media (hover: hover) {
  .hero-scroll-hint:hover { color: var(--cream); }
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50%      { transform: translateY(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint i { animation: none; }
  .hero-immersive { transition: none; }
}

/* Responsive — above-the-fold garanti, wolof toujours visible ============== */
@media (max-width: 900px) {
  .hero-i-text h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
  .hero-i-text .lead { max-width: 500px; }
  .hero-card { min-height: 156px; padding: 16px; }
  .hero-card .hero-card-title { font-size: 1.3rem; }
}
@media (max-width: 720px) {
  .hero-immersive { padding: 16px 0; }
  .hero-wolof { font-size: 0.95rem; margin-bottom: 16px; gap: 12px; }
  .hero-wolof::before, .hero-wolof::after { width: 28px; }
  .hero-i-text h1 { font-size: clamp(1.85rem, 7.5vw, 2.6rem); line-height: 1.02; margin-bottom: 16px; }
  .hero-i-text .lead { font-size: 0.96rem; margin-bottom: 22px; line-height: 1.5; }
  .hero-cards { gap: 10px; margin-bottom: 22px; }
  .hero-card { min-height: 148px; padding: 14px; }
  .hero-card .hero-card-icon { width: 44px; height: 44px; border-radius: 22px; font-size: 1.05rem; }
  .hero-card .hero-card-title { font-size: 1.2rem; }
  .hero-card .hero-card-sub { font-size: 0.8rem; }
  .hero-card .hero-card-halo { width: 100px; height: 100px; top: -28px; right: -28px; }
}
@media (max-width: 480px) {
  .hero-immersive { padding: 14px 0; }
  .hero-wolof { font-size: 0.9rem; margin-bottom: 14px; }
  .hero-wolof::before, .hero-wolof::after { width: 22px; }
  .hero-i-text h1 { font-size: clamp(1.7rem, 8.5vw, 2.2rem); line-height: 1.04; margin-bottom: 14px; }
  .hero-i-text .lead { font-size: 0.92rem; margin-bottom: 18px; }
  .hero-cards { gap: 9px; margin-bottom: 16px; }
  .hero-card { min-height: 134px; padding: 14px; }
  .hero-card .hero-card-icon { width: 40px; height: 40px; border-radius: 20px; font-size: 1rem; }
  .hero-card .hero-card-title { font-size: 1.1rem; }
  .hero-card .hero-card-sub { font-size: 0.76rem; }
  .hero-card .hero-card-eyebrow { font-size: 0.66rem; }
  .hero-card .hero-card-halo { width: 88px; height: 88px; top: -24px; right: -24px; }
}
/* Cas extrême viewport très court (paysage mobile) — on raccourcit mais on garde le wolof */
@media (max-height: 540px) {
  .hero-wolof { font-size: 0.82rem; margin-bottom: 8px; }
  .hero-i-text h1 { font-size: 1.75rem; margin-bottom: 8px; line-height: 1.0; }
  .hero-i-text .lead { font-size: 0.85rem; margin-bottom: 12px; line-height: 1.4; max-width: 460px; }
  .hero-cards { margin-bottom: 8px; gap: 8px; }
  .hero-card { min-height: 110px; padding: 12px; gap: 8px; }
  .hero-card .hero-card-icon { width: 36px; height: 36px; border-radius: 18px; font-size: 0.9rem; }
  .hero-card .hero-card-title { font-size: 1rem; }
  .hero-card .hero-card-sub { display: none; }
  .hero-scroll-hint { display: none; }
}

/* Bouton "Publier une annonce" — variant gold harmonieux avec le primary */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #C57A05 100%);
  color: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-weight: 700;
  box-shadow:
    0 12px 30px -8px rgba(244, 163, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform var(--t-spring), box-shadow var(--t), filter var(--t);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 36px -8px rgba(244, 163, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}
.btn-gold:hover i { transform: rotate(90deg); }
.btn-gold i { transition: transform var(--t-spring); }

/* CTAs hero — premium primary + glass secondary */
.hero-i-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-i-actions .btn {
  padding: 15px 28px;
  font-size: 1rem;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: transform var(--t-spring), box-shadow var(--t), background var(--t), border-color var(--t);
}

/* Hiérarchie B2 W3 : primary = plus grand, secondary/tertiary = taille standard
   → l'œil va d'abord sur "Parcourir les annonces", l'action principale. */
.hero-i-actions .is-primary-cta {
  padding: 18px 34px;
  font-size: 1.08rem;
}
.hero-i-actions .is-secondary-cta,
.hero-i-actions .is-tertiary-cta {
  padding: 13px 24px;
  font-size: 0.95rem;
}
/* Le secondary "Publier" passe en outline pour ne pas concurrencer le primary */
.hero-i-actions .is-secondary-cta.btn-hero-gold {
  background: rgba(216, 139, 5, 0.18);
  color: #FFD480;
  border: 1.5px solid rgba(244, 163, 0, 0.65);
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.hero-i-actions .is-secondary-cta.btn-hero-gold:hover {
  background: rgba(216, 139, 5, 0.32);
  border-color: var(--gold);
  color: #FFE5B0;
  transform: translateY(-2px);
}

/* === Primary : terra plein, l'action principale === */
.btn-hero-primary {
  background: linear-gradient(135deg, #E2613F 0%, #B84E2F 100%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 14px 32px -10px rgba(184, 78, 47, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px -10px rgba(184, 78, 47, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* === Gold filled : action complémentaire (publier).
   Gradient plus foncé pour faire ressortir le texte blanc. === */
.btn-hero-gold {
  background: linear-gradient(135deg, #D88B05 0%, #B26F00 100%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 14px 32px -10px rgba(178, 111, 0, 0.60),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}
.btn-hero-gold i { transition: transform var(--t-spring); }
.btn-hero-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 38px -10px rgba(178, 111, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.btn-hero-gold:hover i { transform: rotate(90deg); }

/* === Ghost : transparent glass, action tertiaire === */
.btn-hero-ghost {
  background: rgba(15, 27, 22, 0.40);
  color: #FFFFFF;
  border: 1.5px solid rgba(251, 246, 238, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.btn-hero-ghost:hover {
  transform: translateY(-2px);
  background: rgba(15, 27, 22, 0.62);
  border-color: rgba(244, 163, 0, 0.65);
  color: var(--gold);
}
.btn-glass {
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.22);
  color: var(--cream);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--t), border-color var(--t), transform var(--t);
}
.btn-glass:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-2px);
  color: var(--cream);
}

/* Trust strip — pictos à plat sous les CTAs */
.hero-i-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(251,246,238,.82);
  font-weight: 500;
}
.hero-i-trust .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-i-trust .item i {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(244,163,0,.18);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .hero-i-actions { width: 100%; }
  .hero-i-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
  .hero-i-trust { gap: 14px; font-size: 0.78rem; }
  .hero-i-trust .item i { width: 24px; height: 24px; font-size: 0.68rem; }
}

/* ===== Barre de recherche flottante PREMIUM ===== */
.hero-bar {
  position: relative;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.50), 0 0 0 1px rgba(0,0,0,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  padding: 6px;
}
[data-theme="dark"] .hero-bar {
  background: rgba(27,38,32,.96);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.70);
}

.hero-bar-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--border-soft);
  margin: 0 6px 6px;
  width: calc(100% - 12px);
}
[data-theme="dark"] .hero-bar-tabs { border-bottom-color: rgba(255,255,255,.08); }
.hero-bar-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-mute);
  letter-spacing: -0.005em;
  transition: background-color var(--t), color var(--t);
}
.hero-bar-tabs button i { font-size: 0.76rem; }
.hero-bar-tabs button:hover { color: var(--text); }
.hero-bar-tabs button.active {
  background: var(--forest);
  color: var(--cream);
}
[data-theme="dark"] .hero-bar-tabs button.active { background: #1F4F37; }
.hero-bar-tabs button.active i { color: var(--gold); }

.hero-bar-fields {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr 1.4fr auto;
  align-items: stretch;
  gap: 0;
}

.hb-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: background var(--t);
  min-width: 0;
}
.hb-field + .hb-field::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}
[data-theme="dark"] .hb-field + .hb-field::before { background: rgba(255,255,255,.08); }
.hb-field:hover {
  background: var(--bg-sand);
}
[data-theme="dark"] .hb-field:hover { background: rgba(255,255,255,.04); }
.hb-field:focus-within {
  background: var(--bg-sand);
  box-shadow: inset 0 0 0 1.5px var(--terra);
}
[data-theme="dark"] .hb-field:focus-within { background: rgba(255,255,255,.06); }

.hb-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--terra-soft);
  color: var(--terra);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.92rem;
  transition: background-color var(--t), color var(--t);
  pointer-events: none;
}
[data-theme="dark"] .hb-icon { background: rgba(231,111,81,.16); color: var(--terra); }
.hb-field:hover .hb-icon,
.hb-field:focus-within .hb-icon { background: var(--terra); color: white; }

.hb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  pointer-events: none;
}
.hb-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.hb-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
[data-theme="dark"] .hb-value { color: var(--text); }
.hb-value.is-empty { color: var(--text-mute); font-weight: 500; }

/* Le select natif couvre tout le champ, invisible mais cliquable */
.hb-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px; /* évite le zoom iOS */
  color: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}
.hb-overlay option { color: var(--text); background: var(--surface); }

.hb-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px;
  padding: 0 26px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 8px 22px -6px rgba(231,111,81,.50), inset 0 1px 0 rgba(255,255,255,.20);
  transition: filter var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.hb-go::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.20) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}
.hb-go:hover::before { transform: translateX(100%); }
.hb-go:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 30px -6px rgba(231,111,81,.60), inset 0 1px 0 rgba(255,255,255,.20);
}
.hb-go i { font-size: 0.92rem; }

@media (max-width: 1024px) {
  /* Vue carte uniquement sur desktop — masque le bouton ghost s'il existe encore
     dans d'anciennes pages qui héritent de hero-i-actions. */
  .hero-i-actions .btn-hero-ghost { display: none; }
}
@media (max-width: 968px) {
  /* hero-bar-fields appartient à la searchbar (composant indépendant du hero refondu) */
  .hero-bar-fields {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .hb-field + .hb-field::before { display: none; }
  .hb-go {
    grid-column: span 2;
    margin: 8px 6px 6px;
    padding: 14px;
    width: calc(100% - 12px);
  }
}
@media (max-width: 480px) {
  .hero-bar-fields { grid-template-columns: 1fr; }
  .hb-go { grid-column: span 1; }
  .hb-field { padding: 12px 14px; }
  .hb-icon { width: 34px; height: 34px; }
  .hb-value { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cmd-badge .dot::after {
    animation: none !important;
    transition: none !important;
  }
}

