/* WatchEagle — liquid glass / dark / gold · production */
:root {
  --gold-hi: #E6CD86;
  --gold: #C9A84C;
  --gold-lo: #8F7320;
  --blur: 28px;
  --radius: 18px;   /* cartes / panneaux */
  --r-ctl: 12px;    /* contrôles : boutons, inputs, selects */
  --r-sm: 10px;     /* petits éléments imbriqués */
  --gold-ink: #14110a;  /* texte sombre posé sur fond or */

  --bg: #060810;
  --ink: #E8E8F0;
  --text: #E8E8F0;
  --muted: #A0A0B8;
  --faint: rgba(160, 160, 184, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.04);

  --success: #30D158;
  --error: #FF5C5C;
  --warning: #FF9F0A;

  --font-ui: -apple-system, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;

  --card-pad: 14px;
  --gap: 16px;
  --grid-min: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; overflow-x: hidden; }
body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: color-mix(in oklab, var(--gold) 40%, transparent); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }

/* ---------- background aura ---------- */
.root { position: relative; min-height: 100vh; isolation: isolate; }
.bg-aura {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 50% at 78% -8%, color-mix(in oklab, var(--gold) 16%, transparent), transparent 60%),
    radial-gradient(60% 45% at 12% 4%, rgba(60, 70, 110, 0.20), transparent 62%),
    radial-gradient(90% 80% at 50% 120%, color-mix(in oklab, var(--gold) 9%, transparent), transparent 60%),
    var(--bg);
}
.bg-aura::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.5) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: .02; mix-blend-mode: overlay;
}

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.015) 55%, rgba(255,255,255,.04));
  backdrop-filter: blur(var(--blur)) saturate(1.7) brightness(1.06);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7) brightness(1.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 1px rgba(0,0,0,.35), 0 18px 40px -22px rgba(0,0,0,.85);
}
/* Arête spéculaire : anneau en dégradé qui accroche la lumière en haut à gauche
   et laisse un reflet doré discret en bas à droite — le « liquid » du liquid glass. */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(165deg,
    rgba(255,255,255,.32),
    rgba(255,255,255,.07) 30%,
    rgba(255,255,255,0) 55%,
    color-mix(in oklab, var(--gold) 16%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ---------- shared bits ---------- */
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 19px; white-space: nowrap; }
.wordmark__gold { display: inline-block; padding-right: .12em; background: linear-gradient(110deg, var(--gold-hi), var(--gold) 70%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
  transition: .15s;
}
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.chip--on {
  color: var(--gold-ink); border-color: transparent;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  box-shadow: 0 4px 14px -6px color-mix(in oklab, var(--gold) 60%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); transition: .15s; white-space: nowrap; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn--gold {
  color: var(--gold-ink); border-color: transparent;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 58%, var(--gold-lo));
  box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--gold) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn--gold:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn--glass { background: rgba(255,255,255,.05); color: var(--ink); }
.btn--glass:hover:not(:disabled) { background: rgba(255,255,255,.1); }

.vbadge {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  color: var(--gold); background: color-mix(in oklab, var(--gold) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); flex: none;
}
.stars { display: inline-flex; gap: 2px; align-items: center; }

/* ---------- SPA hero (DealersPage) ---------- */
.we-hero { padding: clamp(48px,8vw,88px) 24px clamp(40px,6vw,72px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 26px;
  background: linear-gradient(180deg, rgba(7,7,9,.86), rgba(7,7,9,.5));
  backdrop-filter: blur(18px) saturate(1.6) brightness(1.04); -webkit-backdrop-filter: blur(18px) saturate(1.6) brightness(1.04);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; flex: none; background: none; color: inherit; }
.topbar__brand:hover .wordmark { color: var(--ink); }
.searchwrap { display: flex; align-items: stretch; gap: 10px; flex: 1; max-width: 760px; }
.locpill {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 44px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); flex: none; position: relative; z-index: 50;
}
.locpill:hover { border-color: rgba(255,255,255,.22); }
.locpill__city { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locpill__rad { color: var(--muted); font-weight: 500; }
.locmenu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 280px; z-index: 60;
  padding: 14px; border-radius: 14px; text-align: left; cursor: default;
  background: rgba(18,18,22,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: 0 24px 50px -20px #000;
}
.locmenu__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 4px 0 8px; }
.locmenu__cities { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.locmenu__done { width: 100%; padding: 9px; border-radius: 10px; font-weight: 700; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); cursor: pointer; }

.searchbox { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; flex: 1; }
.searchbox__input { flex: 1; border: none; background: none; outline: none; font-size: 14.5px; color: var(--ink); }
.searchbox__input::placeholder { color: var(--faint); }
.searchbox__clear { display: grid; place-items: center; color: var(--muted); width: 24px; height: 24px; border-radius: 50%; }
.searchbox__clear:hover { background: rgba(255,255,255,.1); }

.topbar__actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; position: relative; }
.iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: .15s; }
.iconbtn:hover { background: rgba(255,255,255,.1); }
.iconbtn__badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-weight: 800; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.acctbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-ctl); font-weight: 700; font-size: 13.5px; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--gold) 65%, transparent); }
.acctbtn:hover { filter: brightness(1.06); }

/* ---------- layout ---------- */
.layout { display: flex; gap: 26px; max-width: 1480px; margin: 0 auto; padding: 24px 26px 96px; align-items: flex-start; }
.sidebar { flex: none; width: 270px; position: sticky; top: 88px; }
.content { flex: 1; min-width: 0; }

/* ---------- filters ---------- */
.filters { display: flex; flex-direction: column; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.filters__reset { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filters__reset:hover { color: var(--gold); }
.fgroup { border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: none; }
.fgroup__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 2px; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.fgroup__body { padding: 0 2px 18px; }

.brandlist { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow-y: auto; margin: -4px -6px; padding: 4px 6px; }
.checkrow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; transition: .12s; }
.checkrow:hover { background: rgba(255,255,255,.05); }
.checkbox { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; color: var(--gold-ink); flex: none; transition: .12s; }
.checkrow--on .checkbox { background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); border-color: transparent; }
.checkrow__name { flex: 1; font-size: 13.5px; font-weight: 600; }
.checkrow--on .checkrow__name { color: var(--ink); }
.checkrow__count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 8px; }
.togglerow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 2px; }
.togglerow__lbl { flex: 1; text-align: left; font-size: 13.5px; font-weight: 600; }
.switch { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line); position: relative; transition: .18s; flex: none; cursor: pointer; }
.switch__dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.switch--on { background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.switch--on .switch__dot { left: 18px; background: var(--gold-ink); }

/* dual range */
.range { padding: 6px 4px 2px; }
.range__track { position: relative; height: 26px; }
.range__track::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.range__fill { position: absolute; top: 11px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-hi), var(--gold-lo)); }
.range input { position: absolute; top: 0; left: 0; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(150deg, #fff, #d8d8d8); border: 2px solid var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.6); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); cursor: grab; }
.range__vals { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; margin-top: 6px; }

/* ---------- sort bar ---------- */
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sortbar__count { font-size: 14.5px; color: var(--muted); }
.sortbar__count strong { color: var(--ink); font-family: var(--font-display); font-size: 17px; }
.sortbar__right { display: flex; align-items: center; gap: 10px; }
/* filterbtn only appears on mobile (desktop has the sidebar) */
.sortbar__filterbtn { display: none; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: var(--r-ctl); font-weight: 700; font-size: 13.5px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); position: relative; }
.sortbar__fbadge { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-weight: 800; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.selectwrap { position: relative; }
.select { height: 40px; padding: 0 34px 0 14px; border-radius: var(--r-ctl); font-weight: 600; font-size: 13.5px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.select option { background: #15151a; }
.selectwrap__chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .6; }
.viewtoggle { display: flex; padding: 3px; gap: 3px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.viewtoggle button { width: 36px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.viewtoggle button.on { color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }

/* ---------- grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-min), 1fr)); gap: var(--gap); }
.card { overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--gold) 38%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 26px 50px -24px rgba(0,0,0,.9), 0 0 0 1px color-mix(in oklab, var(--gold) 16%, transparent); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.card__new { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(10,10,12,.5); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); transition: .15s; }
.card__fav:hover { background: rgba(10,10,12,.75); transform: scale(1.07); }
.card__fav--on { color: var(--gold); border-color: color-mix(in oklab, var(--gold) 45%, transparent); }
.card__fav--static { position: static; width: 40px; height: 40px; flex: none; }
.card__cond { position: absolute; bottom: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--ink); background: rgba(10,10,12,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); }
.card__body { padding: var(--card-pad); }
.card__brandrow { display: flex; align-items: center; gap: 7px; }
.card__brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__model { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 3px; line-height: 1.2; }
.card__ref { font-size: 12px; color: var(--faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; gap: 8px; }
.card__loc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__loc svg { flex: none; }
.card__acc { display: inline-flex; gap: 5px; color: var(--ink); }
.card__price { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-top: 9px; color: var(--gold); letter-spacing: .01em; }

/* ---------- dial placeholder ---------- */
.dial-ph { position: absolute; inset: 0; background: radial-gradient(125% 105% at 50% -4%, hsl(var(--h) 26% 17%), #0a0a0d 72%); overflow: hidden; }
.dial-ph__rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 45%, rgba(255,255,255,.06) 0 1px, transparent 1px 8px); -webkit-mask: radial-gradient(circle at 50% 45%, #000 30%, transparent 62%); mask: radial-gradient(circle at 50% 45%, #000 30%, transparent 62%); }
.dial-ph__glow { position: absolute; inset: 0; background: radial-gradient(42% 38% at 50% 44%, color-mix(in oklab, var(--gold) 30%, transparent), transparent 68%); mix-blend-mode: screen; }
.dial-ph__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18%; color: rgba(255,255,255,.14); letter-spacing: .04em; }
.dial-ph__tag { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); }

/* ---------- empty / loading ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 90px 20px; text-align: center; color: var(--muted); }
.empty__title { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin-top: 6px; }
.empty__sub { font-size: 14px; margin-bottom: 6px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- map ---------- */
.mapview { position: relative; border-radius: var(--radius); overflow: hidden; height: 640px; border: 1px solid var(--line); }
.mapview__canvas { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #12131a, #08080b 75%); }
.mapgrid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask: radial-gradient(120% 90% at 50% 30%, #000, transparent 85%); }
.maproads { position: absolute; inset: 0; background: linear-gradient(28deg, transparent 47.6%, color-mix(in oklab, var(--gold) 10%, transparent) 48%, color-mix(in oklab, var(--gold) 10%, transparent) 49%, transparent 49.4%), linear-gradient(-46deg, transparent 61%, rgba(255,255,255,.05) 61.5%, rgba(255,255,255,.05) 62.2%, transparent 62.6%), linear-gradient(82deg, transparent 30%, rgba(255,255,255,.04) 30.4%, rgba(255,255,255,.04) 31%, transparent 31.4%); }
/* mappin usé dans les Leaflet divIcon — ne pas forcer position:absolute ni translate */
.mappin { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(12,12,16,.88); backdrop-filter: blur(8px); border: 1.5px solid rgba(201,168,76,.55); box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: .15s; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; }
.mappin::after { content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(12,12,16,.88); }
.mappin:hover { background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); color: var(--gold-ink); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 24px -6px color-mix(in oklab, var(--gold) 60%, transparent); }
/* Used by the old fake canvas — kept for backward compat */
.mapview__canvas .mappin { position: absolute; transform: translate(-50%, -50%); }
.mapview__canvas .mappin:hover { transform: translate(-50%, -56%); }
/* Leaflet divIcon container needs overflow visible */
.leaflet-div-icon { background: none !important; border: none !important; overflow: visible !important; }
.mapcard { position: absolute; left: 18px; bottom: 18px; width: 300px; display: flex; gap: 12px; padding: 12px; z-index: 10; }
.mapcard__close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.08); }
.mapcard__media { position: relative; width: 84px; height: 84px; border-radius: var(--r-ctl); overflow: hidden; flex: none; }
.mapcard__body { flex: 1; min-width: 0; }

/* ---------- mobile filter sheet ---------- */
.sheet-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(4,4,6,.55); backdrop-filter: blur(4px); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 86%; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; padding: 10px 18px 18px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet-overlay { animation: fade .2s; }
  .sheet { animation: sheetup .3s cubic-bezier(.2,.8,.2,1); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheetup { from { transform: translateY(60px); } }
.sheet__handle { width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 4px auto 8px; flex: none; }
.sheet__scroll { overflow-y: auto; flex: 1; }
.sheet__apply { margin-top: 12px; }

/* ============================================================
   INNER PAGES
   ============================================================ */

/* ---------- inner page header ---------- */
.topbar--inner { gap: 16px; }
.backbtn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 11px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 13.5px; color: var(--ink); border: 1px solid var(--line); background: var(--glass-bg); flex: none; }
.backbtn:hover { background: rgba(255,255,255,.09); }
.topbar__pagetitle { font-weight: 700; font-size: 15px; }
.topbar__pagetitle--center { position: absolute; left: 50%; transform: translateX(-50%); font-size: 16px; }

/* ---------- generic page wrapper ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 24px 26px 96px; }
.page__h1 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 0; }
.page__lead { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.page__headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 16px; }

.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill--ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.pill--rdv   { background: rgba(234,179,8,.12);   border: 1px solid rgba(234,179,8,.35); color: #ca8a04; }

/* ---------- Page 2 detail ---------- */
.page--detail { max-width: 1240px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb button { color: var(--muted); font-size: 13px; }
.breadcrumb button:hover { color: var(--gold); }
.breadcrumb__cur { color: var(--ink); font-weight: 600; }
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; z-index: 2; transition: background .15s; }
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__counter { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); pointer-events: none; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; padding: 52px 72px 52px; box-sizing: border-box; }
.lightbox__stage--zoom { overflow: auto; align-items: flex-start; justify-content: flex-start; cursor: grab; }
.lightbox__img { max-height: 82vh; max-width: 100%; object-fit: contain; display: block; user-select: none; border-radius: 8px; transition: transform .22s; }
.lightbox__stage--zoom .lightbox__img { max-height: none; max-width: none; width: auto; height: 90vh; cursor: zoom-out; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .15s; z-index: 2; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--l { left: 14px; }
.lightbox__nav--r { right: 14px; }
.lightbox__dots { display: flex; gap: 7px; padding: 14px; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); }
.lightbox__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: .15s; border: none; padding: 0; }
.lightbox__dot--on { background: var(--gold); transform: scale(1.35); }
.lightbox__zoom-hint { position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,.35); pointer-events: none; white-space: nowrap; }

/* Rendre le hero cliquable */
.detail__hero--clickable { cursor: zoom-in; }

.detail__gallery { position: sticky; top: 88px; }
.detail__hero { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.detail__statusbadge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--c); background: color-mix(in oklab, var(--c) 16%, #0a0c14); border: 1px solid color-mix(in oklab, var(--c) 45%, transparent); backdrop-filter: blur(8px); }
.detail__thumbs { display: flex; gap: 11px; margin-top: 13px; }
.detail__thumb { position: relative; width: 84px; height: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); opacity: .55; transition: .15s; }
.detail__thumb--on { opacity: 1; border-color: var(--gold); }
.detail__titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.08; margin: 5px 0 6px; }
.detail__sub { font-size: 14px; color: var(--muted); }
.detail__pricerow { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.detail__price { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--gold); letter-spacing: -0.01em; }
.condrow { display: flex; flex-wrap: wrap; gap: 8px; }
.condrow__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); }
.condrow__item.on { color: var(--success); background: color-mix(in oklab, var(--success) 12%, transparent); border-color: color-mix(in oklab, var(--success) 32%, transparent); }
.condrow__item.off { color: var(--faint); }
.condrow__item.neutral { color: var(--gold); background: color-mix(in oklab, var(--gold) 12%, transparent); border-color: color-mix(in oklab, var(--gold) 32%, transparent); }
.detail__desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 20px 0; }
.detail__divider { height: 1px; background: var(--line); margin: 6px 0 22px; }
.dealerblock { padding: 18px; }
.dealerblock__head { display: flex; align-items: center; gap: 13px; }
.dealerblock__logo { width: 48px; height: 48px; border-radius: var(--r-ctl); display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex: none; overflow: hidden; }
.dealerblock__name { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; }
.dealerblock__rate { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dealerblock__addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.dealerblock__cta { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 9px; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 15px 4px; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); transition: .15s; }
.rowlink:hover { color: var(--gold); }
.simblock { margin-top: 46px; }

/* ---------- favorites ---------- */
.favwrap { position: relative; }
.favwrap__sold { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink); background: rgba(10,12,20,.7); backdrop-filter: blur(6px); border: 1px solid var(--line); }

/* ---------- push notifications banner ---------- */
.push-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-top: 18px; }
.push-banner__icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in oklab, var(--gold) 15%, transparent); display: grid; place-items: center; color: var(--gold); }
.push-banner__text { flex: 1; min-width: 0; }
.push-banner__title { font-weight: 700; font-size: 14px; }
.push-banner__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.push-banner__action { flex-shrink: 0; }
.push-banner__blocked { font-size: 12px; color: var(--muted); font-style: italic; }
.btn--sm { padding: 6px 14px; font-size: 13px; }

/* ---------- alerts ---------- */
.alertlist { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.alertcard { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.alertcard__main { flex: 1; min-width: 0; }
.alertcard__kw { font-weight: 700; font-size: 16px; }
.alertcard__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.alertcard__hits { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.alertcard__actions { display: flex; align-items: center; gap: 10px; }
.alertcard__actions .switch { width: 40px; height: 23px; }

/* ---------- site footer ---------- */
/* ---------- language switcher ---------- */
.langsw { display: flex; gap: 2px; margin-left: 4px; }
.langsw__btn { padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--muted); background: none; border: 1px solid transparent; letter-spacing: .05em; transition: color .15s, border-color .15s, background .15s; cursor: pointer; }
.langsw__btn:hover { color: var(--ink); }
.langsw__btn.on { color: var(--gold); border-color: rgba(201,168,76,.35); background: rgba(201,168,76,.08); }

.site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; padding: 22px 16px 32px; font-size: 12px; color: var(--muted); }
.site-footer__sep { color: var(--line); }
.site-footer__link { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; padding: 0; }
.site-footer__link:hover { color: var(--gold); }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8888; background: rgba(18,16,12,.97); border-top: 1px solid var(--line); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; min-width: 220px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cookie-banner__text strong { color: var(--text); }
.cookie-banner__more { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; background: none; border: none; padding: 0; font-size: 13px; cursor: pointer; }
.cookie-banner__btns { display: flex; gap: 8px; flex-shrink: 0; }
html.mobile .cookie-banner { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 60px); }

/* ---------- legal pages ---------- */
.legal-page { max-width: 760px; padding-bottom: 48px; }
.legal-section { margin: 28px 0; }
.legal-section h2 { font-size: 16px; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.legal-section p, .legal-section li { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 6px 0; }
.legal-section ul { padding-left: 20px; }
.legal-section a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 70;
  display: flex; justify-content: space-around; padding: 8px 6px;
  border-radius: 22px; background: rgba(14,16,26,.78);
  backdrop-filter: blur(24px) saturate(1.7) brightness(1.06); -webkit-backdrop-filter: blur(24px) saturate(1.7) brightness(1.06);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 40px -14px #000;
}
.bottomnav__tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); padding: 4px 12px; transition: .15s; }
.bottomnav__tab.on { color: var(--gold); }
.bottomnav__icon { position: relative; }
.bottomnav__lbl { font-size: 10.5px; font-weight: 600; }
.bottomnav__badge { position: absolute; top: -5px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 800; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-ctl); font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: rgba(18,20,30,.92); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 14px 36px -14px #000;
  animation: toastin .25s cubic-bezier(.2,.8,.2,1); }
@keyframes toastin { from { transform: translateX(20px); opacity: 0; } }
.toast--success { border-left: 3px solid var(--success); }
.toast--success svg { color: var(--success); }
.toast--error { border-left: 3px solid var(--error); }
.toast--error svg { color: var(--error); }
.toast--info { border-left: 3px solid var(--gold); }
.toast--info svg { color: var(--gold); }

/* ---------- Page 3 dashboard ---------- */
.dash__header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 14px 26px;
  background: linear-gradient(180deg, rgba(6,8,16,.9), rgba(6,8,16,.55)); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.dash__crumb { font-weight: 700; font-size: 15px; }
.dash__profile { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dash__shop { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.dash__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--gold-ink);
  background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.dash__body { display: flex; max-width: 1380px; margin: 0 auto; }
.dash__nav { flex: none; width: 232px; padding: 24px 16px; border-right: 1px solid var(--line); position: sticky; top: 70px; align-self: flex-start; min-height: calc(100vh - 70px); }
.dash__navitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); transition: .15s; margin-bottom: 3px; }
.dash__navitem:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.dash__navitem.on { color: var(--gold); background: color-mix(in oklab, var(--gold) 12%, transparent); }
.dash__navitem--out { margin-top: 12px; color: var(--faint); }
.dash__navitem--out:hover { color: var(--error); }
.dash__main { flex: 1; min-width: 0; padding: 26px 30px 110px; }
.dash__titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.statcard { padding: 18px; }
.statcard__top { display: flex; align-items: center; justify-content: space-between; }
.statcard__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.statcard__icon { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.statcard__icon--gold { color: var(--gold); background: color-mix(in oklab, var(--gold) 14%, transparent); border-color: color-mix(in oklab, var(--gold) 34%, transparent); }
.statcard__value { font-family: var(--font-display); font-weight: 700; font-size: 32px; margin-top: 12px; letter-spacing: -0.02em; }
.dash__tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-ctl); background: rgba(14,16,26,.6); border: 1px solid var(--line); width: fit-content; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.dash__tabs::-webkit-scrollbar { display: none; }
.dash__tab { white-space: nowrap; padding: 9px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: .15s; }
.dash__tab.on { color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }

.stocktable { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--glass-bg); }
.stocktable__head, .stockrow { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1.1fr 0.7fr 1.2fr; align-items: center; gap: 12px; padding: 14px 18px; }
.stocktable__head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; border-bottom: 1px solid var(--line); }
.stockrow { border-top: 1px solid var(--line); transition: .12s; }
.stockrow:hover { background: rgba(255,255,255,.025); }
.stockrow__watch { display: flex; align-items: center; gap: 13px; min-width: 0; }
.stockrow__thumb { position: relative; width: 52px; height: 52px; border-radius: var(--r-sm); overflow: hidden; flex: none; border: 1px solid var(--line); }
.stockrow__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stockrow__ref { font-size: 12px; color: var(--faint); margin-top: 2px; }
.stockrow__price { font-weight: 700; font-size: 14.5px; color: var(--gold); }
.stockrow__cond { font-size: 13px; color: var(--muted); }
.stockrow__views { font-weight: 600; color: var(--muted); }
.ta-c { text-align: center; } .ta-r { text-align: right; justify-self: end; }
.statusdot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--c); }
.statusdot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.stockrow__actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.iconbtn--sm { width: 34px; height: 34px; border-radius: 10px; }
.iconbtn--danger:hover { color: var(--error); border-color: color-mix(in oklab, var(--error) 40%, transparent); }

/* ---------- Page 4 form ---------- */
.page--form { max-width: 1080px; }
.formgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.formcol { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field__label { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.field__hint { font-weight: 500; color: var(--faint); }
.input { height: 46px; padding: 0 15px; border-radius: 12px; font-size: 14.5px; color: var(--ink); background: var(--glass-bg); border: 1px solid var(--line); outline: none; transition: .15s; width: 100%; }
.input:focus { border-color: color-mix(in oklab, var(--gold) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 16%, transparent); }
.input::placeholder { color: var(--faint); }
.textarea { height: auto; padding: 13px 15px; resize: vertical; line-height: 1.5; font-family: inherit; }
.priceinput { display: flex; gap: 10px; }
.priceinput .input { flex: 1; }
.selectwrap--full { width: 100%; }
.select--full { width: 100%; height: 46px; }
.togglegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ftoggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--glass-bg); border: 1px solid var(--line); }
.btn--lg { height: 52px; font-size: 15px; width: 100%; border-radius: 14px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 38px 20px; border-radius: var(--radius);
  border: 1.5px dashed color-mix(in oklab, var(--gold) 38%, var(--line)); background: color-mix(in oklab, var(--gold) 5%, transparent); color: var(--gold); text-align: center; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone--over { background: color-mix(in oklab, var(--gold) 14%, transparent); border-color: var(--gold); }
.dropzone__t { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dropzone__s { font-size: 12.5px; color: var(--muted); }
.slotgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 1/1; border-radius: 12px; display: grid; place-items: center; color: var(--faint); background: var(--glass-bg); border: 1px solid var(--line); overflow: hidden; }
.slot--main { border-color: color-mix(in oklab, var(--gold) 40%, transparent); color: var(--gold); }
.slot__tag { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }

/* ---------- Page 5 auth ---------- */
.authstage { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 18px 120px; }
.authstage__aura { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 40% at 50% 18%, color-mix(in oklab, var(--gold) 18%, transparent), transparent 70%); }
.authcard { position: relative; z-index: 1; width: 100%; max-width: 408px; padding: 34px 30px 30px; display: flex; flex-direction: column; }
.authcard__brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; }
.authcard__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-align: center; letter-spacing: -0.02em; margin: 0; }
.authcard__sub { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 22px; }
.roleseg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-ctl); background: var(--glass-bg); border: 1px solid var(--line); margin-bottom: 18px; }
.roleseg button { flex: 1; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); transition: .15s; }
.roleseg button.on { color: var(--gold-ink); background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo)); }
.authcard .field { margin-bottom: 14px; }
.pwfield { position: relative; }
.pwfield .input { padding-right: 46px; }
.pwfield__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); }
.pwfield__eye:hover { color: var(--ink); }
.authcard__submit { margin-top: 6px; }
.authcard__link { align-self: center; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.authcard__link:hover { color: var(--gold); }
.authcard__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--faint); font-size: 12px; }
.authcard__divider::before, .authcard__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* ---- topbar ---- */
  .topbar { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  /* Row 1: brand (left) + actions (right) */
  .topbar__brand { flex: none; gap: 6px; }
  .topbar__actions { flex: none; margin-left: auto; gap: 7px; }
  /* favoris / alertes / compte sont déjà dans la bottomnav : on libère la topbar */
  .topbar__actions .iconbtn, .topbar__actions .acctbtn { display: none; }
  .topbar__actions .iconbtn--theme { display: grid; }
  /* Row 2: search (full width)
     flex: 0 0 auto + width: 100% avoids flex-basis:100% percentage bugs in mobile WebViews */
  .searchwrap { order: 3; flex: 0 0 auto; width: 100%; max-width: 100%; min-width: 0; }
  .locpill { height: 40px; padding: 0 10px; font-size: 12.5px; flex-shrink: 1; }
  /* constrain locmenu to avoid overflow on small screens */
  .locmenu { width: calc(100vw - 28px); max-width: 320px; left: 0; }
  .searchbox { height: 40px; min-width: 0; overflow: hidden; }

  /* ---- sortbar ---- */
  .sortbar__filterbtn { display: inline-flex; }   /* show on mobile (sidebar is hidden) */
  .viewtoggle { display: flex; }                    /* carte Leaflet utilisable sur mobile */
  .sortbar { flex-wrap: wrap; gap: 8px; }
  .sortbar__count { font-size: 13px; }
  /* la rangée de contrôles occupe toute la largeur : bords alignés des deux côtés */
  .sortbar__right { gap: 8px; width: 100%; justify-content: space-between; }
  /* constrain select width so it doesn't overflow */
  .selectwrap .select { max-width: 160px; font-size: 12.5px; padding-right: 28px; }

  /* ---- layout ---- */
  .layout { display: block; padding: 16px 14px 96px; }
  .sidebar { display: none; }

  /* ---- grid ---- */
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; --grid-min: 0; }
  .card__model { font-size: 14px; }
  .card__price { font-size: 16px; }

  /* ---- map ---- */
  .mapview { height: 460px; }
  .mapcard { width: calc(100% - 28px); left: 14px; bottom: 14px; }

  /* ---- misc buttons ---- */
  .iconbtn { width: 40px; height: 40px; border-radius: var(--r-sm); }

  /* ---- pages ---- */
  .page { padding: 16px 14px 96px; }
  .page__h1 { font-size: 23px; }

  /* ---- detail ---- */
  .detail { grid-template-columns: 1fr; gap: 18px; }
  .detail__gallery { position: static; }
  .detail__title { font-size: 24px; }
  .detail__price { font-size: 27px; }
  .dealerblock__cta { grid-template-columns: 1fr; }

  /* ---- misc grids ---- */
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--auto { grid-template-columns: 1fr 1fr; }
  .simblock { margin-top: 30px; }

  /* ---- dashboard ---- */
  .dash__header { padding: 12px 14px; }
  .dash__crumb { display: none; }
  .dash__nav { display: none; }
  .dash__main { padding: 16px 14px 96px; }
  .statgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .statcard__value { font-size: 26px; }
  .dash__tabs { width: 100%; }
  .stocktable { display: none; }

  /* ---- forms ---- */
  .formgrid { grid-template-columns: 1fr; gap: 22px; }

  /* ---- misc ---- */
  .page--detail .breadcrumb { display: none; }
  .topbar--inner { padding: 12px 14px; }
  .wordmark { display: none; }
  .authstage { min-height: 100%; padding: 30px 16px 110px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: 1fr 1fr; }
}

/* stock cards for mobile */
.stockcards { display: none; }
@media (max-width: 768px) {
  .stockcards { display: flex; flex-direction: column; gap: 12px; }
  .stockcard { display: flex; flex-direction: column; gap: 0; padding: 12px; }
  .stockcard__top { display: flex; align-items: center; gap: 12px; }
  .stockcard__thumb { position: relative; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line); }
  .stockcard__body { flex: 1; min-width: 0; }
  .stockcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
  .stockcard__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* ============================================================
   JS-CLASS MOBILE FALLBACK
   Applied by inline JS: if (innerWidth < 768) html.classList.add('mobile')
   Mirrors the @media rules above — ensures layout even when
   media queries are mis-evaluated (some older WebViews).
   ============================================================ */
html.mobile .topbar { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
html.mobile .topbar__brand { flex: none; gap: 6px; }
html.mobile .topbar__actions { flex: none; margin-left: auto; gap: 7px; }
html.mobile .topbar__actions .iconbtn, html.mobile .topbar__actions .acctbtn { display: none; }
html.mobile .topbar__actions .iconbtn--theme { display: grid; }
html.mobile .searchwrap { order: 3; flex: 0 0 auto; width: 100%; max-width: 100%; min-width: 0; }
html.mobile .locpill { height: 40px; padding: 0 10px; font-size: 12.5px; }
html.mobile .locmenu { width: calc(100vw - 28px); max-width: 320px; left: 0; }
html.mobile .searchbox { height: 40px; }
html.mobile .wordmark { display: none; }
html.mobile .layout { display: block; padding: 16px 14px 96px; }
html.mobile .sidebar { display: none; }
html.mobile .sortbar__filterbtn { display: inline-flex; }
html.mobile .viewtoggle { display: flex; }
html.mobile .sortbar { flex-wrap: wrap; gap: 8px; }
html.mobile .sortbar__right { gap: 8px; width: 100%; justify-content: space-between; }
html.mobile .selectwrap .select { max-width: 160px; font-size: 12.5px; padding-right: 28px; }
html.mobile .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
html.mobile .grid--4 { grid-template-columns: 1fr 1fr; }
html.mobile .grid--auto { grid-template-columns: 1fr 1fr; }
html.mobile .card__model { font-size: 14px; }
html.mobile .card__price { font-size: 16px; }
html.mobile .iconbtn { width: 40px; height: 40px; border-radius: var(--r-sm); }
html.mobile .page { padding: 16px 14px 96px; }
html.mobile .page__h1 { font-size: 23px; }
html.mobile .detail { grid-template-columns: 1fr; gap: 18px; }
html.mobile .detail__gallery { position: static; }
html.mobile .detail__title { font-size: 24px; }
html.mobile .detail__price { font-size: 27px; }
html.mobile .dealerblock__cta { grid-template-columns: 1fr; }
html.mobile .dash__header { padding: 12px 14px; }
html.mobile .dash__crumb { display: none; }
html.mobile .dash__nav { display: none; }
html.mobile .dash__main { padding: 16px 14px 96px; }
html.mobile .statgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
html.mobile .statcard__value { font-size: 26px; }
html.mobile .dash__tabs { width: 100%; }
html.mobile .stocktable { display: none; }
html.mobile .stockcards { display: flex; flex-direction: column; gap: 12px; }
html.mobile .stockcard { flex-direction: column; padding: 12px; }
html.mobile .stockcard__top { display: flex; align-items: center; gap: 12px; }
html.mobile .stockcard__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
html.mobile .formgrid { grid-template-columns: 1fr; gap: 22px; }
html.mobile .topbar--inner { padding: 12px 14px; }
html.mobile .mapview { height: 460px; }
html.mobile .mapcard { width: calc(100% - 28px); left: 14px; bottom: 14px; }
/* hero sections — fit viewport above BottomNav on mobile */
html.mobile .we-hero { padding: 18px 20px 22px; }
html.mobile .we-hero h1 { font-size: 21px !important; line-height: 1.15 !important; margin-bottom: 12px !important; }
html.mobile .we-hero > div > p:first-of-type { font-size: 13px !important; margin-bottom: 18px !important; }

/* ── Profile form ─────────────────────────────────────────────────────────── */
.profilform { display: flex; flex-direction: column; gap: 24px; }
.profilform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.profilform__col { display: flex; flex-direction: column; gap: 16px; }
.profilform__section { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.profilform__h2 { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.profilform__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.profilform__label .input { color: var(--text); }
.profilform__info-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.profilform__info-row:last-child { border-bottom: none; }
.profilform__info-label { color: var(--muted); }
.profilform__submit-mobile { display: none; }

/* Badge utility */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.badge--gold { background: rgba(201,168,76,.18); color: var(--gold-hi); border: 1px solid rgba(201,168,76,.3); }

/* Link-style button */
button.link { background: none; border: none; padding: 0; color: var(--gold); font-size: inherit; cursor: pointer; text-decoration: underline; }

@media (max-width: 768px) {
  .profilform__grid { grid-template-columns: 1fr; }
  .profilform__submit-mobile { display: block; }
  .dash__titlerow { align-items: flex-start; }
  .dash__titlerow .btn--gold { font-size: 13px; padding: 7px 12px; }
}
html.mobile .profilform__grid { grid-template-columns: 1fr; }
html.mobile .profilform__submit-mobile { display: block; }
html.mobile .dash__titlerow { align-items: flex-start; }
html.mobile .dash__titlerow .btn--gold { font-size: 13px; padding: 7px 12px; }

/* ── Dealer public page ───────────────────────────────────────────────────── */
.dealerhero { display: flex; gap: 24px; align-items: flex-start; padding: 28px 30px; margin-bottom: 8px; }
.dealerhero__logo { width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.08); flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.dealerhero__initials { font-size: 28px; font-weight: 700; color: var(--gold); }
.dealerhero__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dealerhero__name { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dealerhero__desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; max-width: 600px; }
.dealerhero__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); align-items: center; }
.dealerhero__meta span { display: flex; align-items: center; gap: 5px; }
.dealerhero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dealerhero__cta .btn { text-decoration: none; }
.page__h2 { font-size: 18px; font-weight: 600; color: var(--text); }
@media (max-width: 640px) {
  .dealerhero { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
  .dealerhero__meta { justify-content: center; }
  .dealerhero__cta { justify-content: center; }
}
html.mobile .dealerhero { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
html.mobile .dealerhero__meta { justify-content: center; }
html.mobile .dealerhero__cta { justify-content: center; }

/* ============================================================
   LANDING PAGE (static /landing.html)
   ============================================================ */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.lp-nav__right { display: flex; align-items: center; gap: 12px; }
.lp-lang {
  width: 40px; height: 36px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: .15s;
}
.lp-lang:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.btn--lp { height: 44px; padding: 0 20px; border-radius: var(--r-ctl); }
a.btn { text-decoration: none; }

.lp { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }

/* reveal animation — only active once JS adds .reveal-on (content visible otherwise) */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* hero */
.lp-hero { text-align: center; padding: 56px 0 64px; max-width: 760px; margin: 0 auto; }
.lp-eyebrow {
  display: inline-block; margin: 0 0 18px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: transparent; background: linear-gradient(110deg, var(--gold-hi), var(--gold) 70%, var(--gold-hi));
  -webkit-background-clip: text; background-clip: text;
}
.lp-hero__title {
  margin: 0 0 20px; font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.03em; color: var(--text);
}
.lp-hero__sub {
  margin: 0 auto 30px; max-width: 600px; font-size: 16px; line-height: 1.6; color: var(--muted);
}
.lp-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* sections */
.lp-section { padding: 36px 0; }
.lp-section__head { margin-bottom: 24px; }
.lp-section__kicker {
  display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.lp-section__title {
  margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700; letter-spacing: -.02em; color: var(--text);
}
.lp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.lcard { padding: 24px 22px; border-radius: var(--radius); }
.lcard__num {
  display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: transparent;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text; background-clip: text;
}
.lcard__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.lcard__txt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* final cta */
.lp-cta { text-align: center; padding: 56px 0 32px; }
.lp-cta__title {
  margin: 0 0 22px; font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; color: var(--text);
}

/* mobile — keep it calm: single column, tighter rhythm */
@media (max-width: 760px) {
  .lp-nav { padding: 16px; }
  .lp { padding: 0 16px 32px; }
  .lp-hero { padding: 18px 0 22px; }
  .lp-hero__title { font-size: 21px; line-height: 1.15; }
  .lp-hero__sub { font-size: 13px; margin-bottom: 16px; }
  .lp-hero__cta { flex-direction: column; }
  .lp-hero__cta .btn--lp { width: 100%; }
  .lp-section { padding: 26px 0; }
  .lp-grid { grid-template-columns: 1fr; gap: 12px; }
  .lcard { padding: 20px 18px; }
  .lcard__num { margin-bottom: 10px; }
  .lp-cta { padding: 40px 0 24px; }
  .lp-cta .btn--lp { width: 100%; }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
html.light {
  --bg:       #E2DDD5;
  --ink:      #18150E;
  --text:     #18150E;
  --muted:    #6A6055;
  --faint:    rgba(80, 68, 52, 0.45);
  --line:     rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.55);
  color-scheme: light;
}

html.light body { background: var(--bg); color: var(--ink); }

html.light *::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); }

html.light .bg-aura {
  background:
    radial-gradient(70% 50% at 78% -8%, color-mix(in oklab, var(--gold) 10%, transparent), transparent 60%),
    radial-gradient(60% 45% at 12% 4%, rgba(180, 170, 155, 0.15), transparent 62%),
    radial-gradient(90% 80% at 50% 120%, color-mix(in oklab, var(--gold) 6%, transparent), transparent 60%),
    var(--bg);
}

html.light .glass {
  background: linear-gradient(155deg, rgba(255,255,255,.82), rgba(255,255,255,.58) 55%, rgba(255,255,255,.68));
  backdrop-filter: blur(var(--blur)) saturate(1.3) brightness(1.01);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3) brightness(1.01);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
html.light .glass::before {
  background: linear-gradient(165deg,
    rgba(255,255,255,.9) 0%,
    rgba(255,255,255,0) 45%,
    color-mix(in oklab, var(--gold) 8%, transparent));
}

html.light .topbar {
  background: rgba(240, 237, 230, 0.88);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.07), 0 2px 12px rgba(0,0,0,.06);
}

html.light .iconbtn { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.10); color: var(--ink); }
html.light .iconbtn:hover { background: rgba(0,0,0,.10); }

html.light .searchbox__clear:hover { background: rgba(0,0,0,.08); }
html.light .locpill:hover { border-color: rgba(0,0,0,.18); }

html.light .switch { background: rgba(0,0,0,.12); border-color: rgba(0,0,0,.12); }
html.light .switch__dot { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

html.light .bottomnav {
  background: rgba(232, 229, 221, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 28px -10px rgba(0,0,0,.15);
  border-color: rgba(0,0,0,.08);
}

html.light .dash__navitem:hover { background: rgba(0,0,0,.05); color: var(--ink); }
html.light .dash__navitem.on { background: color-mix(in oklab, var(--gold) 14%, transparent); }

html.light .lp-lang { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.10); }
html.light .lp-lang:hover { border-color: rgba(0,0,0,.22); color: var(--ink); }

/* Logo : or invisible sur fond clair → assombri via filter */
html.light .topbar__brand img { filter: brightness(0.42) saturate(1.5); }

/* Boutons glass : fond blanc doux, bordure marquée */
html.light .btn--glass { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.18); color: var(--ink); }
html.light .btn--glass:hover:not(:disabled) { background: rgba(255,255,255,.80); border-color: rgba(0,0,0,.28); }

/* Bouton gold : ombre ambrée pour le détacher du fond */
html.light .btn--gold { box-shadow: 0 4px 16px -6px rgba(180,130,0,.45); }

/* Désactiver les transitions pendant le switch de thème */
html.no-transition * { transition: none !important; }
