/* === Page: prestataires — extracted from inline <style> blocks === */

/* --- block 1 --- */
/* Page head row — title left, stats right */
.page-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px;
}
@media (max-width: 768px) { .page-head-row { flex-direction: column; } }
.page-stats-mini {
  display: flex; gap: 20px; flex-shrink: 0; align-items: flex-start;
}
.page-stats-mini .stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--accent);
  min-width: 0;
}
.page-stats-mini .stat .num {
  font-family: var(--f-display); font-size: 22px; font-weight: 400;
  color: var(--accent-bright); line-height: 1;
  letter-spacing: -0.01em;
}
.page-stats-mini .stat .lbl {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  white-space: nowrap;
}

/* Nav logo size */
.nav-logo img { height: 96px !important; }
.nav-wrap.scrolled .nav-logo img { height: 64px !important; }
@media (max-width: 1024px) { .nav-logo img { height: 72px !important; } .nav-wrap.scrolled .nav-logo img { height: 52px !important; } }
@media (max-width: 640px) { .nav-logo img { height: 56px !important; } .nav-wrap.scrolled .nav-logo img { height: 44px !important; } }

/* Transparent inputs */
.sg-transparent {
  background: transparent !important;
  border: 1px solid rgba(9,28,59,0.08) !important;
  border-radius: 12px;
  color: var(--ink-strong);
  transition: border-color 0.3s, background 0.3s;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 14px;
  width: 100%;
}
.sg-transparent:hover { border-color: var(--accent) !important; background: rgba(255,253,244,0.3) !important; }
.sg-transparent:focus { border-color: var(--accent) !important; outline: none; background: rgba(255,253,244,0.4) !important; }
select.sg-transparent { appearance: auto; cursor: pointer; }

/* =================================================
   Luxury search bandeau — prestataires v2
   ================================================= */
/* Reduce space between hero subtitle and search bandeau */
.page-head { padding-bottom: 32px !important; overflow: visible !important; }

/* Placeholder reserves space when bar goes fixed */
.hero-search-placeholder { height: 0; transition: height 0.3s var(--ease-out); }
.hero-search-placeholder.active { height: 53px; }

/* Search wrap — fixed on scroll via JS */
.hero-search-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0 16px;
  z-index: 40;
  transition: padding 0.4s var(--ease-out);
}
.hero-search-wrap.is-fixed {
  position: fixed;
  top: 112px; left: 0; right: 0;
  margin: 0 auto;
  padding: 0 16px;
  z-index: 101;
  max-width: 1100px;
  animation: heroSearchDrop 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* Compact: search main + filter bar on SAME LINE when fixed */
.hero-search-wrap.is-fixed .hero-search-main {
  flex: 0 0 auto;
  min-width: 280px;
  max-width: 320px;
  padding: 3px 3px 3px 14px;
  margin: 0;
}
.hero-search-wrap.is-fixed .hero-search-input {
  font-size: 13px;
  padding: 7px 8px;
}
.hero-search-wrap.is-fixed .hero-search-btn {
  padding: 7px 14px;
  font-size: 11px;
}
.hero-search-wrap.is-fixed .hero-search-btn span { display: none; }
.hero-search-wrap.is-fixed .hero-search-btn svg { width: 14px; height: 14px; }
.hero-search-wrap.is-fixed .hero-search-icon-wrap svg { width: 14px; height: 14px; }

.hero-search-wrap.is-fixed .hero-filter-bar {
  flex: 1;
  margin-top: 0;
  align-items: center;
}
.hero-search-wrap.is-fixed .hfb-cell { padding: 4px 10px; gap: 5px; }
.hero-search-wrap.is-fixed .hfb-cell:first-child { padding-left: 14px; }
.hero-search-wrap.is-fixed .hfb-cell:last-child { padding-right: 14px; }
.hero-search-wrap.is-fixed .hfb-label { font-size: 7px; letter-spacing: 0.12em; }
.hero-search-wrap.is-fixed .hfb-input,
.hero-search-wrap.is-fixed .hfb-value { font-size: 11px; }
.hero-search-wrap.is-fixed .hfb-icon { width: 11px; height: 11px; }
.hero-search-wrap.is-fixed .hfb-divider { height: 16px; }
.hero-search-wrap.is-fixed .hfb-chevron { width: 9px; height: 9px; }
.hero-search-wrap.is-fixed .hfb-toggle-check { width: 13px; height: 13px; }

/* Hide footer when fixed (reset + sort moved out of view to save space) */
.hero-search-wrap.is-fixed .hero-filter-footer { display: none; }
.nav-wrap.scrolled ~ * .hero-search-wrap.is-fixed,
.nav-wrap.scrolled + .hero-search-wrap.is-fixed,
body:has(.nav-wrap.scrolled) .hero-search-wrap.is-fixed {
  top: 80px;
}
@keyframes heroSearchDrop {
  0% { transform: translateY(-24px) scale(0.96); opacity: 0; filter: blur(4px); }
  60% { filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

/* ── Main search bar (minimal, no focus outline) ── */
.hero-search-main {
  display: flex; align-items: stretch;
  padding: 6px 6px 6px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(9,28,59,0.08);
  transition: box-shadow 0.3s;
}
.hero-search-wrap.is-fixed .hero-search-main {
  background: rgba(255, 253, 244, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 30px -6px rgba(9,28,59,0.16);
}

.hero-search-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font-family: var(--f-display); font-size: 16px; font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink-strong);
  padding: 14px 12px;
}
.hero-search-input::placeholder { color: var(--ink-mute); font-style: italic; }

.hero-search-typewriter::placeholder {
  color: var(--ink-mute);
  opacity: 1;
  transition: none;
  font-style: italic;
  white-space: pre;
}

.hero-search-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: var(--accent); color: var(--navy-deep);
  border: none; border-radius: 999px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.hero-search-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent);
}
.hero-search-btn:active { transform: translateY(0); }

/* ── Segmented filter bar (Airbnb-style) ── */
.hero-filter-bar {
  display: flex; align-items: stretch;
  margin-top: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
  position: relative;
  box-shadow: 0 4px 20px -8px rgba(9,28,59,0.05);
  transition: box-shadow 0.4s, background 0.4s, backdrop-filter 0.4s;
}
.hero-search-wrap.is-fixed .hero-filter-bar {
  background: rgba(255, 253, 244, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 24px -8px rgba(9,28,59,0.14);
}

.hfb-cell {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.3s var(--ease-out);
  position: relative;
}

/* Custom dropdown cell */
.hfb-cell-dropdown { cursor: pointer; }
.hfb-hidden-select { display: none; }
.hfb-value {
  font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  color: var(--ink-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; width: 100%;
}
.hfb-value.placeholder { color: var(--ink); opacity: 0.7; font-weight: 400; }
.hfb-chevron {
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.hfb-cell-dropdown.open .hfb-chevron { transform: rotate(180deg); color: var(--accent-bright); }

.hfb-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: -4px;
  min-width: 180px; max-width: 240px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 16px 48px -12px rgba(9,28,59,0.2);
  z-index: 9999;
  max-height: 280px; overflow-y: auto;
}
.hfb-cell-dropdown.open .hfb-dropdown { display: block; }
.hfb-dropdown li {
  padding: 9px 14px;
  font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hfb-dropdown li:hover { background: rgba(201,168,76,0.1); color: var(--accent-bright); }
.hfb-dropdown li.selected { background: var(--accent); color: var(--navy-deep); font-weight: 600; }
.hfb-cell:first-child { padding-left: 18px; }
.hfb-cell:last-child { padding-right: 18px; }
.hfb-cell:hover {
  background: rgba(201,168,76,0.06);
}

.hfb-icon {
  color: var(--accent-bright);
  flex-shrink: 0;
}

.hfb-cell-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: center; gap: 2px;
}

.hfb-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}

.hfb-input {
  background: transparent; border: none; outline: none;
  font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  color: var(--ink-strong);
  padding: 2px 0; width: 100%;
  cursor: inherit;
}
.hfb-input::placeholder { color: var(--ink); opacity: 0.7; font-weight: 400; }

.hfb-select {
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  padding-right: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%238a6f2d' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* Divider between cells */
.hfb-divider {
  width: 1px; height: 24px;
  background: var(--line);
  align-self: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.hfb-cell:hover + .hfb-divider,
.hfb-divider:has(+ .hfb-cell:hover) { opacity: 0; }

/* Toggle cell */
.hfb-cell-toggle {
  cursor: pointer;
}
.hfb-cell-toggle input { display: none; }
.hfb-toggle-check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.25s var(--ease-out);
}
.hfb-cell-toggle input:checked + .hfb-toggle-check {
  background: var(--accent);
  border-color: var(--accent);
}
.hfb-cell-toggle input:checked + .hfb-toggle-check::after {
  content: ""; position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 10px;
  border: solid var(--navy-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hfb-toggle-label {
  font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  color: var(--ink-strong);
}
.hfb-cell-toggle input:checked ~ .hfb-cell-content .hfb-toggle-label {
  color: var(--accent-bright);
}

/* Footer row: reset + sort */
.hero-filter-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 10px; padding: 0 12px;
  transition: color 0.3s;
}
/* When bar is fixed (over content), switch footer text to white for contrast */
.hero-search-wrap.is-fixed .hero-filter-footer .hfb-reset,
.hero-search-wrap.is-fixed .hero-filter-footer .hfb-sort-wrap > span {
  color: white;
  text-shadow: 0 1px 8px rgba(9,28,59,0.6);
}
.hero-search-wrap.is-fixed .hero-filter-footer .hfb-reset svg { color: white; }
.hero-search-wrap.is-fixed .hero-filter-footer .hfb-sort-cell {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: white;
}
.hero-search-wrap.is-fixed .hero-filter-footer .hfb-sort-cell .hfb-value { color: white; }
.hero-search-wrap.is-fixed .hero-filter-footer .hfb-sort-cell .hfb-chevron { color: white; }

.hfb-reset {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.hfb-reset:hover { color: var(--accent-bright); }

.hfb-sort-wrap {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}

.hfb-sort-cell {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500;
  color: var(--ink-strong);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.hfb-sort-cell:hover { border-color: var(--accent); background: rgba(201,168,76,0.06); }
.hfb-sort-cell.open { border-color: var(--accent); }
.hfb-sort-cell .hfb-value { font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--ink-strong); }
.hfb-sort-cell .hfb-chevron { color: var(--accent-bright); width: 10px; height: 10px; transition: transform 0.2s; }
.hfb-sort-cell.open .hfb-chevron { transform: rotate(180deg); }
.hfb-sort-cell .hfb-dropdown {
  top: calc(100% + 6px);
  right: 0; left: auto;
  min-width: 180px;
}

.hfb-sort-label {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-filter-bar { flex-wrap: wrap; border-radius: 24px; padding: 8px; }
  .hfb-cell { flex: 1 1 45%; min-width: 140px; border-radius: 16px; padding: 10px 14px; }
  .hfb-divider { display: none; }
  .hfb-cell:first-child, .hfb-cell:last-child { padding: 10px 14px; }
}
@media (max-width: 560px) {
  .hero-search-main { flex-direction: column; border-radius: 24px; padding: 8px; gap: 8px; }
  .hero-search-icon-wrap { display: none; }
  .hero-search-input { padding: 14px 16px; font-size: 15px; }
  .hero-search-btn { width: 100%; justify-content: center; }
  .hfb-cell { flex: 1 1 100%; }
  .hero-filter-footer { flex-direction: column; align-items: stretch; }
}

/* Legacy filter toggle (hidden now) */
.filter-toggle-btn, .filter-panel { display: none; }

/* Filter panel */
.filter-panel {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.3s;
  margin-bottom: 0;
}
.filter-panel.open { max-height: 300px; opacity: 1; margin-bottom: 32px; }
.filter-panel-inner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: end;
  padding: 24px;
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
}
.fp-field { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.fp-field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.fp-field-wide { flex: 1; min-width: 300px; }
.fp-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-cat-pill {
  padding: 6px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: 12px; font-weight: 500; color: var(--ink-mute);
  transition: all 0.2s; cursor: pointer;
}
.fp-cat-pill:hover { border-color: var(--accent); color: var(--ink); }
.fp-cat-pill.active { background: var(--accent); color: var(--navy-deep); border-color: var(--accent); }
.fp-toggle-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.fp-toggle-label input { accent-color: var(--accent); width: 16px; height: 16px; }
@media (max-width: 768px) { .filter-panel-inner { flex-direction: column; } .fp-field { min-width: 100%; } .fp-field-wide { min-width: 100%; } }

/* Thematic tabs row (above grid) */
.presta-section-group { padding: 16px 0 8px; }
.theme-tabs-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  padding: 6px 0;
}
.theme-tabs-label {
  display: block;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 10px;
  text-align: center;
}

/* Centered theme tabs */
.theme-tabs-static {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  padding: 4px 0;
}
.theme-tabs-static .theme-tab {
  opacity: 0;
  transform: translateY(10px);
  animation: themeTabIn 0.5s var(--ease-out) both;
}
.theme-tabs-static .theme-tab:nth-child(1) { animation-delay: 0.05s; }
.theme-tabs-static .theme-tab:nth-child(2) { animation-delay: 0.15s; }
.theme-tabs-static .theme-tab:nth-child(3) { animation-delay: 0.25s; }
.theme-tabs-static .theme-tab:nth-child(4) { animation-delay: 0.35s; }
.theme-tabs-static .theme-tab:nth-child(5) { animation-delay: 0.45s; }
@keyframes themeTabIn {
  to { opacity: 1; transform: translateY(0); }
}
.theme-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.theme-tab:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-1px);
}
.theme-tab svg { color: var(--accent-bright); }

/* Theme drawer (slides in from right) */
.theme-drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9, 28, 59, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
}
.theme-drawer-backdrop.open {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s var(--ease-out);
}

.theme-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(480px, 92vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--glass-border);
  box-shadow: -24px 0 64px -16px rgba(9, 28, 59, 0.3);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.theme-drawer.open { transform: translateX(0); }

.theme-drawer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.theme-drawer-top .eyebrow { font-size: 10px; }
.theme-drawer-title {
  font-family: var(--f-display); font-weight: 400; font-size: 28px;
  letter-spacing: -0.015em; line-height: 1.1;
  margin: 8px 0 0; color: var(--ink-strong);
}
.theme-drawer-close {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50%; color: var(--ink-mute); cursor: pointer;
  transition: all 0.2s;
}
.theme-drawer-close:hover { background: var(--accent); color: var(--navy-deep); border-color: var(--accent); }

.theme-drawer-list {
  flex: 1; overflow-y: auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 12px;
  align-content: start;
}

/* Drawer tiles — visual cards */
.drawer-tile {
  position: relative;
  display: block;
  width: 100%; height: 240px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none; color: white;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  opacity: 0;
  transform: translateY(20px);
  isolation: isolate;
  background: var(--bg);
}
.theme-drawer.open .drawer-tile {
  animation: drawerTileIn 0.5s var(--ease-out) both;
}
.theme-drawer.open .drawer-tile:nth-child(1) { animation-delay: 0.12s; }
.theme-drawer.open .drawer-tile:nth-child(2) { animation-delay: 0.18s; }
.theme-drawer.open .drawer-tile:nth-child(3) { animation-delay: 0.24s; }
.theme-drawer.open .drawer-tile:nth-child(4) { animation-delay: 0.30s; }
.theme-drawer.open .drawer-tile:nth-child(5) { animation-delay: 0.36s; }
.theme-drawer.open .drawer-tile:nth-child(6) { animation-delay: 0.42s; }
.theme-drawer.open .drawer-tile:nth-child(7) { animation-delay: 0.48s; }
.theme-drawer.open .drawer-tile:nth-child(8) { animation-delay: 0.54s; }
.theme-drawer.open .drawer-tile:nth-child(n+9) { animation-delay: 0.60s; }
@keyframes drawerTileIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-tile:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px -16px rgba(9,28,59,0.3);
}

.drawer-tile-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.drawer-tile:hover .drawer-tile-img { transform: scale(1.08); }

.drawer-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,27,58,0.1) 0%, rgba(8,27,58,0.3) 50%, rgba(8,27,58,0.92) 100%);
}

.drawer-tile-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.95); color: var(--navy-deep);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.08em; font-weight: 600;
  z-index: 2;
}

.drawer-tile-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  z-index: 2;
}

.drawer-tile-cat {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent); color: var(--navy-deep);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 8px;
}

.drawer-tile-name {
  font-family: var(--f-display); font-weight: 400; font-size: 16px;
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 0 0 4px;
  color: white;
}

.drawer-tile-loc {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 500px) {
  .theme-drawer-list { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.theme-drawer-footer {
  padding: 16px 20px; border-top: 1px solid var(--line);
  background: var(--bg);
}
.theme-drawer-footer .btn { width: 100%; justify-content: center; }

@media (max-width: 500px) {
  .theme-drawer { width: 100vw; }
}

/* Hide old carousel artifacts */
.carousel-arrows, .carousel-dots, .theme-drawer-data { display: none !important; }

/* Reduce padding on main discover section */
#all.discover { padding-top: 20px !important; }

/* Theme card — compact pill style */
.theme-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3/2; text-decoration: none; color: white;
  display: block;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(9,28,59,0.2); }
.theme-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.theme-card:hover img { transform: scale(1.06); }
.theme-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8,27,58,0.82) 100%);
}
.theme-card-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px;
  z-index: 2;
}
.theme-card-cat { display: none; }
.theme-card-info h3 {
  font-family: var(--f-display); font-weight: 400; font-size: 14px;
  letter-spacing: -0.01em; margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.theme-card-info span { font-size: 10px; opacity: 0.7; }
.theme-card-score { display: none; }
.theme-card-verified {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; background: rgba(255,255,255,0.9); color: var(--navy-deep);
  border-radius: 999px; font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; z-index: 2;
}

/* Enhanced presta-card details (v4 style) — white on image overlay */
.masonry .presta-card .presta-cat {
  background: var(--accent) !important;
  color: var(--navy-deep) !important;
  border-color: var(--accent) !important;
  font-weight: 600;
}
.presta-verified {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-deep);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  z-index: 3;
  backdrop-filter: blur(8px);
}
/* Stronger bottom gradient for text readability */
.masonry .presta-card .presta-img::after {
  background: linear-gradient(180deg, transparent 20%, rgba(8, 27, 58, 0.35) 45%, rgba(8, 27, 58, 0.95) 100%) !important;
  opacity: 1 !important;
}
.masonry .presta-card .presta-info {
  padding: 18px 20px 20px !important;
}
.masonry .presta-card .presta-name { color: white !important; }

.presta-loc {
  display: inline-flex !important; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin: 4px 0 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.presta-loc svg { color: var(--accent-bright); flex-shrink: 0; }
.presta-desc {
  font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.presta-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.presta-price {
  font-family: var(--f-display); font-weight: 400; font-size: 14px;
  color: white;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.presta-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600;
  transition: gap 0.3s var(--ease-out);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.presta-card:hover .presta-cta { gap: 9px; }
.presta-cta svg { transition: transform 0.3s; }

/* Masonry override for prestataires */
.masonry { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 500px) { .masonry { columns: 1; } }
.masonry .presta-card { break-inside: avoid; margin-bottom: 16px; border-radius: 16px; }
.masonry .presta-card .presta-img { border-radius: 16px; }
.masonry .presta-card .presta-img img { border-radius: 16px; }

/* Masonry card reveal */
.masonry .presta-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.5s;
}
.masonry .presta-card.in-view { opacity: 1; transform: translateY(0); }
.masonry .presta-card:hover { box-shadow: 0 30px 60px -20px rgba(9,28,59,0.25); }
.masonry .presta-score { display: none; }

/* Description on masonry cards */
.presta-desc {
  font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4;
  margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Page stats row */
.page-stat-row {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px;
}
.page-stat {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
}
.page-stat strong {
  display: block; font-family: var(--f-display); font-size: 28px;
  font-weight: 400; letter-spacing: -0.02em; color: var(--accent-bright);
  margin-bottom: 4px;
}

/* === Providers view toggle (Carte / Grille) === */
.providers-view-toggle-wrap {
  display: flex; justify-content: center;
  margin: 28px 0 32px;
}
.view-toggle {
  display: inline-flex; padding: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.view-toggle button {
  padding: 10px 20px; min-height: 44px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  background: transparent; border: 0; border-radius: 999px;
  cursor: pointer; transition: color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.view-toggle button:hover { color: var(--ink-strong); }
.view-toggle button.active {
  color: var(--bg-elev);
  background: var(--ink-strong);
  box-shadow: 0 2px 10px rgba(9,28,59,0.18);
}
.view-toggle button svg { width: 13px; height: 13px; flex-shrink: 0; }

.providers-view {
  transition: opacity 0.18s ease-out;
}
.providers-view[hidden] { display: none !important; }

/* === Providers map — cream paper look === */
.providers-map-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
  background: #F5EBDA;
  box-shadow: 0 6px 28px rgba(9,28,59,0.08), 0 1px 0 rgba(201,168,76,0.12);
}
.providers-map {
  width: 100%; height: 520px;
  background: #F5EBDA;
  overflow: hidden; position: relative;
  contain: layout paint;
}
.providers-map-caption {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  pointer-events: none;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  background: rgba(255,253,244,0.78);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.28);
  backdrop-filter: blur(4px);
}
.providers-map-meta {
  margin-top: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-dim);
  min-height: 14px; text-align: center;
}
@media (max-width: 900px) { .providers-map { height: 420px; } }
@media (max-width: 640px) {
  .providers-map { height: 320px; }
  .providers-map-wrap { border-radius: 16px; }
  .providers-map-caption { font-size: 9px; top: 10px; left: 10px; padding: 5px 10px; }
}

/* === Map badges (OverlayView pills + dots) === */
.pm-badge {
  position: absolute; transform: translate(-50%, -115%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #091C3B; color: #EFE4CF;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 999px;
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(9,28,59,0.32), 0 1px 0 rgba(255,255,255,0.05) inset;
  cursor: pointer; text-decoration: none;
  user-select: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  will-change: transform;
}
.pm-badge:hover,
.pm-badge:focus-visible {
  transform: translate(-50%, -115%) scale(1.03);
  box-shadow: 0 6px 18px rgba(9,28,59,0.42);
  z-index: 10; outline: none;
}
.pm-rank {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  color: #C9A84C; letter-spacing: 0.05em;
}
.pm-sep { color: rgba(239,228,207,0.35); font-size: 10px; }
.pm-name {
  display: inline-block; max-width: 170px;
  overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;
}
/* Dot for providers beyond the top-20 */
.pm-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #C9A84C;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.22), 0 1px 3px rgba(9,28,59,0.25);
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.pm-dot:hover,
.pm-dot:focus-visible {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.35), 0 2px 6px rgba(9,28,59,0.35);
  outline: none; z-index: 2;
}
@media (max-width: 640px) {
  .pm-badge { font-size: 10px; padding: 5px 10px; }
  .pm-name { max-width: 130px; }
}

/* === Mobile : layout vertical pour searchbar + filtres (anti-débordement) === */
@media (max-width: 768px) {
  /* Searchbar wrap : padding compact + overflow caché pour absorber tout débordement */
  .hero-search-wrap { padding: 0 12px; overflow-x: hidden; }
  .hero-search-wrap > * { max-width: 100%; }

  /* Filter bar : empile en colonne, sans pilule unifiée */
  .hero-filter-bar {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  /* Chaque cellule devient une carte indépendante full-width */
  .hfb-cell {
    width: 100% !important;
    flex: none !important;
    border-radius: 16px !important;
    background: var(--bg-elev) !important;
    border: 1px solid var(--line) !important;
    padding: 12px 14px !important;
    box-sizing: border-box;
  }

  .hfb-divider { display: none !important; }

  /* Searchbar sticky en mobile : visible mais COMPACTE (juste l'input, sans les filtres) */
  .hero-search-wrap.is-fixed {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 12px !important;
    gap: 0 !important;
  }
  .hero-search-wrap.is-fixed .hero-search-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }
  /* Les filtres sont cachés dans la sticky mobile (déjà accessibles en haut de page) */
  .hero-search-wrap.is-fixed .hero-filter-bar { display: none !important; }
  /* Quand le menu burger est ouvert, on masque la sticky pour qu'elle ne reste pas par-dessus */
  body:has(.mobile-drawer.open) .hero-search-wrap.is-fixed { display: none !important; }
}
