/* ==========================================================================
   Villands — design system (clair / sombre, responsive)
   ========================================================================== */
:root {
  --brand: #1d4ed8;
  --brand-600: #1e40af;
  --brand-400: #3b82f6;
  --brand-soft: #e8efff;
  --accent: #0ea5e9;
  --success: #059669;
  --success-soft: #e7f7f0;
  --warning: #b45309;
  --warning-soft: #fdf3e2;
  --danger: #dc2626;
  --danger-soft: #fdeceb;
  --info: #0369a1;
  --info-soft: #e6f3fb;
  --whatsapp: #1da851;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f9;
  --surface-3: #e6ebf3;
  --border: #e1e6ef;
  --border-strong: #cbd3e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #7a8699;
  --overlay: rgba(15, 23, 42, .55);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, .35);
  --header-bg: rgba(255, 255, 255, .86);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 68px;
  --bottom-nav-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #4f7dff;
  --brand-600: #6b91ff;
  --brand-400: #8aa8ff;
  --brand-soft: rgba(79, 125, 255, .14);
  --accent: #38bdf8;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, .12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, .12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .13);
  --info: #7dd3fc;
  --info-soft: rgba(125, 211, 252, .12);

  --bg: #0a0f1c;
  --surface: #111827;
  --surface-2: #172033;
  --surface-3: #1f2a40;
  --border: #233049;
  --border-strong: #31405e;
  --text: #e8edf6;
  --text-2: #a7b3c7;
  --text-3: #74829a;
  --overlay: rgba(2, 6, 15, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 28px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, .8);
  --header-bg: rgba(10, 15, 28, .84);
  color-scheme: dark;
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: inline; }
:root[data-theme="dark"] .ico-moon { display: none; }
body:not(.console-body) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not(.console-body) > main { flex: 1 0 auto; }

.container { width: 100%; max-width: 2400px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 clamp(24px, 3.2vw, 80px); } }
/* grands écrans / TV : tout s'agrandit proportionnellement */
@media (min-width: 1800px) { html { font-size: 17px; } body { font-size: 16px; } :root { --header-h: 76px; } }
@media (min-width: 2400px) { html { font-size: 20px; } body { font-size: 19px; } :root { --header-h: 88px; } .brand img { width: 54px; height: 54px; } }
@media (min-width: 3200px) { html { font-size: 25px; } body { font-size: 24px; } :root { --header-h: 108px; } }
/* mises en page larges réutilisables */
.layout-split { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .layout-split { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 2rem; } .layout-split .sticky-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
@media (min-width: 1000px) { .layout-split.aside-left { grid-template-columns: minmax(320px, 1fr) minmax(0, 1.6fr); } }
@media (min-width: 1600px) { .form-grid.cols-3-xl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ----------------------------------------------------------------- utilities */
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: .875rem; }
.small { font-size: .85rem; }
.xs { font-size: .76rem; }
.bold { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
@media (max-width: 767px) { .hide-sm { display: none !important; } }
@media (min-width: 768px) { .show-sm { display: none !important; } }
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }

.grid { display: grid; gap: 1rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .grid-3.xl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > .empty, .cards > .card.empty { grid-column: 1 / -1; }
@media (min-width: 720px) { .cards { gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .cards { gap: 1.2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2100px) { .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1000px) and (max-width: 1399px) { .listing .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) and (max-width: 1799px) { .listing .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1800px) and (max-width: 2299px) { .listing .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ----------------------------------------------------------------- buttons */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.05rem; border-radius: 11px;
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: 600 .92rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .12s, background-color .15s, border-color .15s, box-shadow .15s, color .15s;
  text-decoration: none; user-select: none;
}
.btn:hover { color: var(--b-fg); border-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-primary { --b-bg: var(--brand); --b-fg: #fff; --b-bd: var(--brand); box-shadow: 0 6px 16px -8px var(--brand); }
.btn-primary:hover { --b-bg: var(--brand-600); --b-bd: var(--brand-600); color: #fff; }
:root[data-theme="dark"] .btn-primary { --b-fg: #fff; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-soft { --b-bg: var(--brand-soft); --b-fg: var(--brand); --b-bd: transparent; }
.btn-soft:hover { border-color: var(--brand); }
.btn-success { --b-bg: var(--success); --b-fg: #fff; --b-bd: var(--success); }
.btn-success:hover { color: #fff; filter: brightness(1.06); }
.btn-danger { --b-bg: var(--danger-soft); --b-fg: var(--danger); --b-bd: transparent; }
.btn-danger:hover { --b-bg: var(--danger); --b-fg: #fff; border-color: var(--danger); }
.btn-whatsapp { --b-bg: var(--whatsapp); --b-fg: #fff; --b-bd: var(--whatsapp); }
.btn-whatsapp:hover { color: #fff; filter: brightness(1.07); }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .84rem; border-radius: 9px; }
.btn-xs { min-height: 28px; padding: .2rem .55rem; font-size: .78rem; border-radius: 8px; gap: .35rem; }
.btn-lg { min-height: 50px; padding: .75rem 1.4rem; font-size: 1rem; border-radius: 13px; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ----------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label, .label { font-size: .83rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .78rem; color: var(--text-3); }
.field .error, .form-error { font-size: .8rem; color: var(--danger); }
.input, .select, .textarea, input[type=text].input, select.select {
  width: 100%; min-height: 44px; padding: .6rem .8rem; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 500 .95rem/1.35 var(--font); transition: border-color .15s, box-shadow .15s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a8699' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input[type=file] { padding: .45rem; min-height: 0; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon > .input { padding-left: 2.4rem; }
.form-grid { display: grid; gap: .9rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .form-grid.cols-3 .span-3 { grid-column: span 3; }
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none; transition: .15s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { width: 40px; height: 22px; appearance: none; border-radius: 99px; background: var(--surface-3); position: relative; cursor: pointer; transition: .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 21px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.segmented button, .segmented a {
  border: 0; background: transparent; color: var(--text-2); font: 600 .86rem var(--font);
  padding: .45rem .85rem; border-radius: 9px; cursor: pointer;
}
.segmented .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ----------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.1rem; }
@media (min-width: 768px) { .card-pad { padding: 1.4rem; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.card-body { padding: 1.1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid transparent;
}
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row { height: 100%; display: flex; align-items: center; gap: .5rem; }
.nav-burger { flex-shrink: 0; margin-left: -6px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); flex-shrink: 0; min-width: 0; }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 1.12rem; font-weight: 800; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; }
.brand small { font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.main-nav { display: none; flex: 1 1 auto; min-width: 0; justify-content: center; gap: .1rem; }
.main-nav a { white-space: nowrap; padding: .5rem .7rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-shrink: 0; }
.lang-select { min-width: 64px; min-height: 38px; padding: .3rem 1.7rem .3rem .6rem; font-size: .82rem; border-radius: 10px; width: auto; background-position: right .5rem center; }
@media (max-width: 479px) { .brand small, .lang-form { display: none; } .brand img { width: 36px; height: 36px; } .brand b { font-size: 1rem; } }
@media (min-width: 1200px) { .main-nav { display: flex; } .nav-burger { display: none; } .brand small { display: none; } }
@media (min-width: 1200px) and (max-width: 1319px) { .main-nav a.nav-extra { display: none; } }
@media (min-width: 1500px) { .brand small { display: block; } }
@media (max-width: 1199px) { .hide-md { display: none !important; } }

/* tiroir de navigation (mobile / tablette) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 94; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 95; width: min(86vw, 340px); background: var(--surface);
  border-right: 1px solid var(--border); padding: 1rem; overflow-y: auto; transform: translateX(-105%); transition: transform .24s ease;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
body.drawer-open .nav-drawer { transform: none; box-shadow: var(--shadow-lg); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a, .drawer-nav .drawer-install { display: flex; align-items: center; gap: .8rem; padding: .7rem .75rem; border-radius: 11px; color: var(--text-2); font: 600 .95rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.drawer-nav a i, .drawer-nav .drawer-install i { width: 20px; text-align: center; color: var(--text-3); }
.drawer-nav a:hover, .drawer-nav .drawer-install:hover { background: var(--surface-2); color: var(--text); }
.drawer-nav a.is-active { background: var(--brand-soft); color: var(--brand); }
.drawer-nav a.is-active i { color: var(--brand); }
.drawer-nav hr { margin: .6rem 0; }
@media (min-width: 1200px) { .nav-drawer, .drawer-backdrop { display: none; } }

/* bottom nav (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .2);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--text-3); }
.bottom-nav a i { font-size: 1.1rem; }
.bottom-nav a.is-active { color: var(--brand); }
.bottom-nav .fab-link span.fab { width: 46px; height: 46px; margin-top: -22px; border-radius: 15px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px var(--brand); }
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; } }

/* floating contact */
.float-contact { position: fixed; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 55; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.float-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: transform .15s; }
.float-contact a:hover { transform: scale(1.06); color: #fff; }
.float-contact .wa { background: var(--whatsapp); }
@media (min-width: 768px) { .float-contact { bottom: 24px; right: 24px; } }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #0b1220; color: #a7b3c7; margin-top: 3rem; padding: 3rem 0 1.5rem; }
:root[data-theme="dark"] .site-footer { background: #070b15; border-top: 1px solid var(--border); }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { color: #a7b3c7; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--hero-img, none) center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 12, 30, .55) 0%, rgba(6, 12, 30, .78) 100%); }
.hero h1 { color: #fff; max-width: 980px; }
.hero p.lead { font-size: clamp(1rem, 1.4vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 760px; }
.hero-inner { padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 900px) { .hero-inner { padding-top: 96px; padding-bottom: 104px; } }
.search-panel { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-lg); margin-top: 1.6rem; max-width: 1280px; }
.search-panel .form-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .search-panel .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .search-panel .form-grid { grid-template-columns: 1.1fr 1fr 1fr 1fr auto; align-items: end; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; }
.hero-stats b { display: block; font-size: 1.5rem; color: #fff; }
.hero-stats span { font-size: .82rem; color: rgba(255, 255, 255, .75); }

.page-head { padding: 28px 0 8px; }
.page-head p { color: var(--text-2); margin: 0; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }

/* ----------------------------------------------------------------- property card */
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); color: var(--text); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-tags { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; justify-content: space-between; gap: .4rem; }
.pcard-tags .badge { background: rgba(255, 255, 255, .94); color: #0f172a; box-shadow: var(--shadow-sm); }
.pcard-tags .badge.tx { background: var(--brand); color: #fff; }
.pcard-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pcard-title { font-weight: 700; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-loc { font-size: .84rem; color: var(--text-2); }
.pcard-feats { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .8rem; color: var(--text-3); margin-top: .1rem; }
.pcard-price { margin-top: auto; padding-top: .5rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pcard-price b { font-size: 1.12rem; color: var(--brand); font-weight: 800; }
.pcard-price small { color: var(--text-3); font-size: .78rem; }

@media (max-width: 599px) {
  .pcard-body { padding: .55rem .6rem .7rem; gap: .2rem; }
  .pcard-title { font-size: .86rem; }
  .pcard-loc { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pcard-feats { gap: .45rem; font-size: .7rem; }
  .pcard-feats span:nth-child(n+3) { display: none; }
  .pcard-price { padding-top: .3rem; flex-wrap: wrap; gap: 0 .3rem; }
  .pcard-price b { font-size: .93rem; }
  .pcard-tags { top: .4rem; left: .4rem; right: .4rem; }
  .pcard-tags .badge { font-size: .64rem; padding: .1rem .4rem; }
  .skeleton { min-height: 210px; }
}

/* skeleton / empty */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); min-height: 280px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); animation: shimmer 1.3s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-2); }
.empty i { font-size: 2rem; color: var(--text-3); margin-bottom: .6rem; display: block; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; justify-content: center; padding: 2rem; }

/* ----------------------------------------------------------------- listing layout */
.listing { display: grid; gap: 1.2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 1000px) { .listing { grid-template-columns: clamp(270px, 18vw, 360px) 1fr; align-items: start; } .filters { position: sticky; top: calc(var(--header-h) + 16px); } }
.filters { padding: 1.1rem; }
.filters .field + .field { margin-top: .8rem; }
.filters-toggle { display: inline-flex; }
@media (min-width: 1000px) { .filters-toggle { display: none; } }
@media (max-width: 999px) {
  .filters { position: fixed; inset: auto 0 0 0; z-index: 90; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.map-box { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); z-index: 0; }

/* ----------------------------------------------------------------- detail */
.gallery { display: grid; gap: .5rem; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #0f172a; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery-nav.prev { left: .7rem; } .gallery-nav.next { right: .7rem; }
.gallery-count { position: absolute; bottom: .7rem; right: .7rem; background: rgba(0, 0, 0, .6); color: #fff; padding: .2rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.thumbs button { flex: 0 0 84px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-3); opacity: .75; }
.thumbs button.is-active { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 520px); align-items: start; } .detail-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 12px; background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.feature i { color: var(--brand); width: 18px; text-align: center; }
.feature.off { opacity: .45; text-decoration: line-through; }
.price-box b { font-size: 1.7rem; color: var(--brand); font-weight: 800; }
.price-lines { display: grid; gap: .4rem; font-size: .9rem; }
.price-lines div { display: flex; justify-content: space-between; gap: 1rem; }
.price-lines .total { border-top: 1px dashed var(--border-strong); padding-top: .5rem; font-weight: 800; }
.contact-box { border-radius: var(--radius); padding: 1rem; background: linear-gradient(135deg, var(--brand) 0%, #1e3a8a 100%); color: #fff; }
.contact-box p { color: rgba(255, 255, 255, .85); }
.contact-box .num { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; color: #fff; }
.slot-list { display: grid; gap: .5rem; }
.slot {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; transition: .15s; width: 100%; text-align: left; font: inherit; color: inherit;
}
.slot:hover { border-color: var(--brand); }
.slot.is-active { border-color: var(--brand); background: var(--brand-soft); }
.slot.is-full { opacity: .5; cursor: not-allowed; }
.slot-date { width: 52px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--surface-2); padding: .3rem 0; line-height: 1.1; }
.slot-date b { display: block; font-size: 1.15rem; }
.slot-date small { font-size: .68rem; text-transform: uppercase; color: var(--text-3); font-weight: 700; }

/* ----------------------------------------------------------------- modal / drawer / toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); transform: translateY(24px); transition: transform .22s;
  border: 1px solid var(--border); overflow: hidden;
}
.modal.modal-lg { max-width: 920px; }
.modal-backdrop.is-open .modal { transform: none; }
@media (min-width: 700px) { .modal-backdrop { align-items: center; padding: 24px; } .modal { border-radius: 20px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.modal-body { padding: 1.2rem; overflow-y: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
.modal-foot { padding: .9rem 1.2rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
body.no-scroll { overflow: hidden; }

.toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + 10px); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 13px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: toastIn .22s ease; }
.toast i { margin-top: 2px; }
.toast.success i { color: var(--success); } .toast.error i { color: var(--danger); } .toast.info i { color: var(--brand); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }

/* ----------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .thumb { width: 52px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
@media (max-width: 760px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border-bottom: 1px solid var(--border); padding: .6rem .2rem; }
  .table.stack td { border: 0; padding: .25rem .8rem; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--text-3); font-size: .78rem; text-align: left; }
  .table.stack td.td-main { display: block; text-align: left; }
  .table.stack td.td-main::before { display: none; }
  .table.stack td.td-actions { justify-content: flex-start; }
  .table.stack td.td-actions::before { display: none; }
}

/* ----------------------------------------------------------------- tabs */
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: .75rem .9rem; font: 600 .9rem var(--font); color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; }
.tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .count { background: var(--surface-2); padding: 0 .45rem; border-radius: 99px; font-size: .74rem; }

/* ----------------------------------------------------------------- console layout */
.console { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .22s ease;
}
.sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1100px) { .sidebar { transform: none; position: sticky; height: 100vh; } .console-burger { display: none !important; } }
.sidebar-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.sidebar-nav { padding: .7rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; padding: .9rem .7rem .3rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.sidebar-nav a i { width: 18px; text-align: center; color: var(--text-3); }
.sidebar-nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar-nav a.is-active { background: var(--brand-soft); color: var(--brand); }
.sidebar-nav a.is-active i { color: var(--brand); }
.sidebar-nav .pill { margin-left: auto; background: var(--danger); color: #fff; font-size: .7rem; padding: 0 .45rem; border-radius: 99px; min-width: 20px; text-align: center; }
.sidebar-foot { padding: .9rem 1.1rem; border-top: 1px solid var(--border); font-size: .85rem; }
.console-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.console-top { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: .7rem; padding: 0 16px; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .console-top { padding: 0 24px; } }
.console-content { padding: 18px 16px 48px; width: 100%; }
@media (min-width: 768px) { .console-content { padding: 26px 24px 64px; } }
.sidebar-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 70; display: none; }
.sidebar-backdrop.is-open { display: block; }
@media (min-width: 1100px) { .sidebar-backdrop { display: none !important; } }

.stats { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .2rem; position: relative; overflow: hidden; }
.stat .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: .35rem; }
.stat .ico.success { background: var(--success-soft); color: var(--success); }
.stat .ico.warning { background: var(--warning-soft); color: var(--warning); }
.stat .ico.danger { background: var(--danger-soft); color: var(--danger); }
.stat .ico.info { background: var(--info-soft); color: var(--info); }
.stat b { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.stat span { font-size: .8rem; color: var(--text-2); font-weight: 600; }
a.stat:hover { border-color: var(--brand); color: inherit; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar .fill { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--brand-400), var(--brand)); min-height: 3px; position: relative; transition: height .4s; }
.bars .bar .fill.alt { background: linear-gradient(180deg, #7dd3fc, var(--accent)); }
.bars .bar small { font-size: .66rem; color: var(--text-3); white-space: nowrap; }
.bars .bar .fill:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .25rem .5rem; border-radius: 7px; font-size: .72rem; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; background: var(--brand); }
.legend i.alt { background: var(--accent); }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }

/* calendrier */
.cal { width: 100%; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: .5rem; text-align: center; }
.cal-grid { border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-day { min-height: 104px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .35rem; background: var(--surface); display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { background: var(--surface-2); opacity: .55; }
.cal-day .num { font-size: .78rem; font-weight: 700; color: var(--text-2); }
.cal-day.today .num { background: var(--brand); color: #fff; border-radius: 99px; width: 24px; height: 24px; display: grid; place-items: center; }
.cal-ev { font-size: .7rem; font-weight: 600; padding: 2px 5px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.res { background: var(--success-soft); color: var(--success); }
.cal-ev.res.open { background: var(--warning-soft); color: var(--warning); }
.cal-ev.off { opacity: .5; text-decoration: line-through; }
.cal-more { font-size: .68rem; color: var(--text-3); font-weight: 600; }
@media (max-width: 700px) { .cal-day { min-height: 62px; padding: .25rem; } .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; background: var(--brand); } .cal-ev.res { background: var(--success); } .cal-ev.res.open { background: var(--warning); } .cal-more { display: none; } }

/* media manager */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--surface-3); border: 2px solid transparent; }
.media-item.cover { border-color: var(--brand); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .acts { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; }
.media-item .acts button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 1.2rem; text-align: center; color: var(--text-2); cursor: pointer; transition: .15s; display: block; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* auth pages — image d'un côté, formulaire de l'autre */
.auth-split { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-visual {
  position: relative; color: #fff; padding: 28px 20px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #0ea5e9 100%);
}
.auth-visual::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--auth-img, none) center/cover no-repeat; }
.auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 12, 30, .25) 0%, rgba(6, 12, 30, .82) 100%); }
.auth-visual h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 2.2rem); max-width: 520px; }
.auth-visual p { color: rgba(255, 255, 255, .85); max-width: 480px; margin: 0; }
.auth-visual ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: none; gap: .7rem; }
.auth-visual .av-list { display: none !important; }
@media (min-width: 900px) {
  .auth-visual[data-variant="client"] .av-list[data-for="client"], .auth-visual[data-variant="proprietaire"] .av-list[data-for="proprietaire"] { display: grid !important; }
}
.auth-visual li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.auth-visual li i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex-shrink: 0; }
.auth-form-side { display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 40px; background: var(--bg); }
.auth-form-side .auth-card { width: 100%; max-width: 520px; }
@media (min-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-visual { padding: 56px 48px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); justify-content: flex-end; }
  .auth-visual ul { display: grid; }
  .auth-form-side { align-items: center; padding: 48px 40px; }
}
@media (min-width: 1300px) { .auth-split { grid-template-columns: 1.1fr 1fr; } }
.pwd-meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pwd-meter span { display: block; height: 100%; width: 0; transition: width .2s, background-color .2s; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 2.8rem; }
.input-wrap .toggle-pwd { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--text-3); font-size: .8rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* auth pages (anciens styles) */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 480px; }
.steps { counter-reset: s; display: grid; gap: 1rem; }
.step { display: flex; gap: .9rem; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .9rem; }
.kv dt { color: var(--text-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

.leaflet-container { font-family: var(--font); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.75) invert(1) contrast(.9) hue-rotate(200deg) saturate(.35) brightness(.85); }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(17, 24, 39, .8) !important; color: var(--text-3); }

@media print { .site-header, .bottom-nav, .float-contact, .site-footer, .sidebar, .console-top { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* pages légales */
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }

/* écran de démarrage (splash) */
#splash { display: none; }
html.show-splash #splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at 50% 35%, #1e3a8a 0%, #0b1220 62%); color: #fff; transition: opacity .45s ease, visibility .45s;
}
html.show-splash body { overflow: hidden; }
#splash.is-hidden { opacity: 0; visibility: hidden; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 24px; }
.splash-inner img { border-radius: 28px; box-shadow: 0 24px 60px -20px rgba(59, 130, 246, .6); animation: splashPop .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.splash-inner b { font-size: 1.8rem; letter-spacing: .22em; margin-top: .6rem; animation: splashUp .6s .15s both; }
.splash-inner small { color: rgba(255, 255, 255, .7); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; animation: splashUp .6s .25s both; }
.splash-bar { width: 140px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 1.2rem; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #38bdf8); animation: splashLoad 1s ease-in-out infinite; }
@keyframes splashPop { from { transform: scale(.6); opacity: 0; } }
@keyframes splashUp { from { transform: translateY(10px); opacity: 0; } }
@keyframes splashLoad { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* bandeau réseau + mise à jour */
.net-bar, .update-bar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 24px); background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.net-bar { bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom)); }
.net-bar.is-offline { background: #1f2937; color: #fff; border-color: #374151; }
.update-bar { top: calc(var(--header-h) + 10px); }
@media (min-width: 768px) { .net-bar { bottom: 20px; } }

/* visite guidée */
.tour-layer { position: fixed; inset: 0; z-index: 300; }
.tour-layer.dim { background: var(--overlay); }
.tour-spot { position: fixed; z-index: 301; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(2, 6, 15, .62), 0 0 0 3px var(--brand); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 302; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow-lg); transition: top .25s, left .25s; }

/* guide */
.guide-toc { display: flex; flex-direction: column; gap: .2rem; }
.guide-toc a { padding: .45rem .6rem; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.guide-toc a:hover { background: var(--surface-2); color: var(--text); }
.guide-sec { padding: .6rem 0 1.4rem; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-sec:last-child { border-bottom: 0; }
.guide-sec h2 { display: flex; gap: .6rem; align-items: center; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.guide-sec h2 i { color: var(--brand); }
.guide-steps { padding-left: 1.3rem; display: grid; gap: .55rem; color: var(--text-2); line-height: 1.6; }
.guide-steps b { color: var(--text); }
