/* ============================================================
   PROPI - Design system (proto web)
   DA : creme / teal, police unique sans serif (Inter), immobilier premium
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #F4F1EA;
  --surface: #F4F1EA;
  --card: #FFFFFF;
  --card-2: #E7E1D6;
  --hairline: rgba(23,63,58,.16);
  --hairline-soft: rgba(23,63,58,.09);

  /* Teal */
  --gold: #2F6F63;
  --gold-bright: #173F3A;
  --gold-deep: #173F3A;
  --gold-grad: linear-gradient(135deg, #2F6F63 0%, #173F3A 100%);
  --video-accent: #8FB3A8;

  /* Texte */
  --text: #1C1E26;
  --text-dim: #4F6F66;
  --text-faint: #8A958F;

  /* Propi Score (match acheteur) */
  --score-green: #5BB98B;
  --score-blue: #5B8FD6;
  --score-orange: #D9943F;

  /* DPE / GES */
  --dpe-a: #00b050; --dpe-b: #57b000; --dpe-c: #92c01f;
  --dpe-d: #ffcc00; --dpe-e: #f0a500; --dpe-f: #e06000; --dpe-g: #cc0000;
  --ges: #6B48C8;

  /* Typo */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --app-w: 440px;
  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #F4F1EA;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Chiffres de même hauteur partout (lining-nums) pour des prix alignés. */
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

/* Prix et chiffres en tabular-nums (largeur fixe) pour des montants bien alignés. */
.price, .feed-price, .pp-price, .pp-m2, .pcard .pprice,
.loan-result .amt, .loan-card .loan-line .val, .spec .v, .stats .v,
.score .score-num, .score-head .big, .rail-score, .map-pin,
.criterion .c-val, .fsval, .fthumb.thumb-more,
.kpi .v, .ag-row .price, .hero-count, .photo-progress-label, .floorplan-count {
  font-family: var(--font-body) !important; /* prime sur les définitions serif éparses (dont les <style> inline des pages) */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Neutralise le double-tap-zoom Safari iOS sur les éléments interactifs (pinch-zoom préservé) */
button, .btn, a.btn, .rail-btn, .loc-quick, .loc-result, .fchip, .sheet-reset, .seg, [role="button"] { touch-action: manipulation; }
button:active, .btn:active, .rail-btn:active, .loc-quick:active, .fchip:active, .sheet-reset:active { transform: scale(.97); opacity: .8; }
img { display: block; max-width: 100%; }

/* ---- App shell (colonne mobile centrée) ---- */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app-w);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}
@media (min-width: 480px) {
  body { padding: 0; }
  .app { box-shadow: 0 0 80px rgba(0,0,0,0.6); }
}

.scroll-pad { padding-bottom: calc(var(--tabbar-h) + 24px); }

/* ---- Typo helpers ---- */
.serif { font-family: var(--font-display); }
.eyebrow {
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.price {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.5px; line-height: 1;
}
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }

/* Wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold);
}
.monogram {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
}

/* ---- Propi Score badge ---- */
.score {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1; color: #0A0A0E;
  background: var(--score-green);
}
.score .score-num { font-weight: 700; font-size: 15px; line-height: 1; }
.score .score-label { font-size: 10px; letter-spacing: 1px; line-height: 1; text-transform: uppercase; opacity: .85; }
.score.is-green  { background: var(--score-green); }
.score.is-blue   { background: var(--score-blue); }
.score.is-orange { background: var(--score-orange); color: #1A1206; }
.score.is-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold); padding: 5px 12px;
}

/* ---- DPE / GES pill ---- */
.dpe {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  font-weight: 800; color: #fff; font-size: 14px;
}
.dpe[data-c="A"]{background:var(--dpe-a)} .dpe[data-c="B"]{background:var(--dpe-b)}
.dpe[data-c="C"]{background:var(--dpe-c); color:#1a1a1a} .dpe[data-c="D"]{background:var(--dpe-d); color:#1a1a1a}
.dpe[data-c="E"]{background:var(--dpe-e)} .dpe[data-c="F"]{background:var(--dpe-f)} .dpe[data-c="G"]{background:var(--dpe-g)}
.ges-pill { background: var(--ges); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .3px;
}
.btn-gold { background: var(--gold-grad); color: #F4F1EA; box-shadow: 0 6px 22px rgba(23,63,58,.22); }
.btn-gold:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--hairline); }

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hairline);
  font-size: 13px; color: var(--text); }
.chip .i { color: var(--gold); }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden; }

/* ---- Tab bar ---- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w); height: var(--tabbar-h);
  background: rgba(244,241,234,0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom); z-index: 50;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-faint); font-size: 10px; letter-spacing: .3px;
}
.tabbar a i { font-size: 18px; }
.tabbar a.active { color: var(--gold); }

/* ---- Generic header ---- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
}
.topbar .icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--hairline);
  color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.topbar .title { flex: 1; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); text-align: center; }

/* ---- Caractéristiques grid ---- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--hairline); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--card); padding: 14px 8px; text-align: center; }
.spec .v { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.spec .k { font-size: 10px; color: var(--text-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: .6px; }
.spec .i { color: var(--gold); font-size: 14px; margin-bottom: 6px; display:block; }

/* ---- Score detail bars ---- */
.criterion { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.criterion .c-label { flex: 0 0 116px; font-size: 13px; color: var(--text-dim); }
.criterion .c-track { flex: 1; height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.criterion .c-fill { height: 100%; border-radius: 999px; background: var(--gold-grad); }
.criterion .c-val { flex: 0 0 34px; text-align: right; font-family: var(--font-display); font-size: 15px; font-weight: 600; }

/* ---- Section label ---- */
.section-label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); margin: 24px 0 12px; }

/* ---- Carte de bien (listes) ---- */
.pcard { display: flex; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: 12px; }
.pcard .pimg { flex: none; width: 118px; height: 118px; border-radius: 12px; overflow: hidden; position: relative; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard .ptop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .ptitle { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-top: 6px; line-height: 1.1; }
.pcard .ploc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pcard .pprice { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-top: auto; }
.pcard .pspecs { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pcard.map-focus { border-color: rgba(23,63,58,.75); box-shadow: 0 0 0 1px rgba(47,111,99,.2); }

/* ---- Pagination progressive ---- */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
}
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  background: var(--card);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.paged-sentinel {
  width: 100%;
  height: 1px;
}

/* ---- Page header simple ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 20px) 18px 12px; }
.page-head h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.page-head .hbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--hairline); color: var(--text); display: flex; align-items: center; justify-content: center; }

.empty { text-align: center; color: var(--text-dim); padding: 60px 30px; }
.empty i { font-size: 34px; color: var(--text-faint); margin-bottom: 14px; display: block; }

/* ---- Bottom sheet (filtres) ---- */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.74); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; transform: translateZ(0); will-change: opacity; }
.sheet-overlay.show { opacity: 1; }
.sheet { width: 100%; max-width: var(--app-w); background: var(--surface); border-radius: 22px 22px 0 0; max-height: 88dvh; display: flex; flex-direction: column; border-top: 1px solid var(--hairline); transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.sheet-overlay.show .sheet { transform: translateY(0); }
.sheet-handle { width: 42px; height: 4px; border-radius: 2px; background: var(--hairline); margin: 10px auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 12px; }
.sheet-head h2 { font-size: 24px; font-weight: 600; }
.sheet-reset { background: none; border: none; color: var(--gold); font-size: 13px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 14px; }
.sheet-foot { padding: 12px 18px calc(env(safe-area-inset-bottom) + 16px); border-top: 1px solid var(--hairline-soft); }
.fgroup { margin-bottom: 18px; }
/* Groupe de filtre grisé/inactif (ex. surface terrain pour un appartement) */
.fgroup.is-disabled { opacity: .45; }
.fgroup.is-disabled .frange { pointer-events: none; }
.flabel { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.frow { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--hairline); color: var(--text); font-size: 13px; font-weight: 500; }
.fchip.on { background: var(--gold-grad); color: #F4F1EA; border-color: transparent; }
.ftoggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; font-size: 14px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--card-2); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--gold); }
.switch.on::after { transform: translateX(18px); }
.switch-btn { border: none; padding: 0; cursor: pointer; }

/* ---- Feed : vidéo, mute, hint swipe ---- */
.feed-vid { width: 100%; height: 100%; object-fit: cover; background: #000; }
.mute-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.swipe-hint { position: absolute; right: 12px; top: 33%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,.85); font-size: 10px; letter-spacing: .5px; pointer-events: none; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); animation: nudge 1.9s ease-in-out infinite; }
.swipe-hint i { font-size: 18px; }
@keyframes nudge { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(-7px, -50%); } }

/* utility */
.px { padding-left: 18px; padding-right: 18px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.divider { height: 1px; background: var(--hairline-soft); margin: 18px 0; }

/* ---- Filtres : curseurs (budget / surface) ---- */
.fslabel { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.fslabel .flabel { margin-bottom: 0; }
.fsval { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--gold); }
.frange {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background-image: linear-gradient(to right, var(--gold) var(--p, 50%), var(--card-2) var(--p, 50%));
  background-repeat: no-repeat; cursor: pointer; margin: 6px 0 4px;
}
.frange::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-grad); border: 2px solid var(--bg); box-shadow: 0 2px 7px rgba(0,0,0,.55);
}
.frange::-moz-range-track { height: 6px; border-radius: 999px; background: var(--card-2); }
.frange::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--gold); }
.frange::-moz-range-thumb { width: 22px; height: 22px; border: 2px solid var(--bg); border-radius: 50%; background: var(--gold); }
.precise-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.precise-field input {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}
.precise-field.is-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.precise-field.is-range label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.precise-field.is-range input {
  min-width: 0;
}
.precise-field.is-range > span {
  grid-column: 1 / -1;
}
.precise-field input:focus { border-color: var(--gold-deep); }
.precise-field span {
  flex: 0 0 108px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.25;
}

/* ---- Sélecteur de localisation national ---- */
.loc-picker {
  display: grid;
  gap: 10px;
}
.loc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
}
.loc-search i {
  color: var(--gold);
  flex: none;
}
.loc-search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.loc-actions,
.loc-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.loc-quick,
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 11px;
}
.loc-quick.on,
.loc-chip.mode {
  background: var(--gold-grad);
  border-color: transparent;
  color: #F4F1EA;
}
.loc-chip i {
  color: currentColor;
  font-size: 11px;
}
.loc-empty {
  color: var(--text-faint);
  font-size: 13px;
}
.loc-noresult {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 4px;
}
.loc-results {
  display: grid;
  gap: 6px;
  max-height: 236px;
  overflow-y: auto;
}
.loc-result {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
}
.loc-result span {
  font-size: 14px;
  font-weight: 600;
}
.loc-result small {
  grid-column: 1;
  color: var(--text-dim);
  font-size: 11px;
}
.loc-result i {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--gold);
}
.loc-result.on {
  border-color: var(--gold-deep);
  background: rgba(47,111,99,.10);
}
.loc-picker.compact .loc-search {
  border-radius: 999px;
}
.loc-picker.compact .loc-results {
  max-height: 188px;
}

/* ---- Ajustements picker / budget onboarding ---- */
.loc-quick, .loc-chip { white-space: nowrap; }
.ftoggle + .hint { margin-top: 10px; }

/* Wizard : picker sans scroll interne (résultats non coupés, la page scrolle) */
#wbody .loc-results { max-height: none; overflow: visible; }

/* Explorer par zone : le picker occupe toute la page */
#s-zone .ob-wbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
#s-zone .ob-wbody > .fgroup { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#s-zone .ob-wbody > .fgroup > .loc-picker { flex: 1 1 auto; min-height: 0; }
#s-zone .loc-results { flex: 1 1 auto; max-height: none; }

/* Budget : curseur à deux poignées (fourchette min / max) */
.range-dual { position: relative; height: 24px; margin: 10px 0 4px; }
.range-dual .range-track { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 999px; background: var(--card-2); }
.range-dual .range-fill { position: absolute; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 999px; background: var(--gold); left: var(--pmin, 0%); right: calc(100% - var(--pmax, 100%)); }
.range-dual input.frange-dual { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; background: none; pointer-events: none; }
.range-dual input.frange-dual::-webkit-slider-thumb { pointer-events: auto; position: relative; z-index: 2; }
.range-dual input.frange-dual::-moz-range-thumb { pointer-events: auto; }
.range-dual input.frange-dual::-moz-range-track { background: none; }

/* ============================================================
   FICHE BIEN - propositions A (rail vignettes) & B (onglets)
   ============================================================ */

/* Bloc info commun */
.fiche-info { padding: 22px 18px 0; }
.fiche-scroll { padding-bottom: 140px; }
.pp-eyebrow { display: flex; align-items: center; gap: 10px; }
.pp-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.05; margin-top: 8px; }
.pp-loc { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.pp-priceRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pp-priceRow > div:first-child { flex: 1; min-width: 0; }
.pp-priceRow .agency-chip { max-width: 42%; }

/* Profil agence (remplace le 2e score sur la fiche) */
.agency-chip { display: flex; align-items: center; gap: 9px; max-width: 56%; }
.agency-logo { width: 40px; height: 40px; border-radius: 11px; flex: none; background: var(--gold-grad); color: #F4F1EA; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; overflow: hidden; }
.agency-logo img { width: 100%; height: 100%; object-fit: cover; }
.agency-meta { min-width: 0; }
.agency-nm { font-size: 13px; font-weight: 600; line-height: 1.15; }
.agency-sub { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
/* Sur le feed (fond vidéo) : marge haute pour respirer + lisibilité */
.feed-info .agency-chip { margin-top: 16px; }
.feed-info .agency-nm { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.feed-info .agency-sub { color: rgba(242,239,233,.7); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
/* Bouton enregistrer : icône remplie en doré quand actif, libellé fixe (pas de décalage) */
.rail-btn.saved i { color: var(--video-accent); }
.pp-price { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; white-space: nowrap; }
.pp-m2 { color: var(--gold); font-size: 12px; margin-top: 5px; letter-spacing: .3px; }
.pp-desc { color: var(--text); font-size: 15px; line-height: 1.6; margin-top: 8px; }
.pp-desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.voirplus { color: var(--gold); font-size: 14px; margin-top: 8px; display: inline-block; }
.specs.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* DPE / GES / Exposition */
.pp-dpe { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: 20px; }
.pp-dpe .blk { display: flex; align-items: center; gap: 10px; }
.pp-dpe .blk .lab { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.pp-dpe .blk .txt { font-size: 13px; color: var(--text); }

/* Détail Propi Score */
.score-head { display: flex; align-items: center; justify-content: space-between; }
.score-head .big { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.score-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px 18px; }
/* Propi Score replié sur la fiche (clic -> bottom sheet) */
.score-collapsed { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px 16px; text-align: left; color: var(--text); }
.score-collapsed .sc-tx { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.score-collapsed .sc-tx small { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.score-collapsed .sc-go { color: var(--text-faint); }
.score-note { color: var(--text-dim); font-size: 12px; margin: 6px 0 12px; }

/* Carte secteur */
.pmap-wrap { position: relative; }
#pmap { height: 190px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); z-index: 0; }
.leaflet-container { background: #ECE7DE; font-family: var(--font-body); }
.pmap-wrap .cap { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 11px; color: #F4F1EA; z-index: 401; background: rgba(23,63,58,.72); padding: 5px 9px; border-radius: 7px; }

/* Conseiller */
.agent { display: flex; align-items: center; gap: 12px; }
.agent .av { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); color: #F4F1EA; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.agent .nm { font-size: 15px; font-weight: 600; }
.agent .rl { font-size: 12px; color: var(--text-dim); }

/* Barre sticky bas (Contacter + cœur) */
.cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); display: flex; gap: 12px; padding: 14px 18px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(180deg, transparent, var(--bg) 30%); z-index: 50; }
.cta .fav { flex: none; width: 132px; border-radius: 12px; background: var(--card); border: 1px solid var(--hairline); color: var(--text); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.cta .fav i { font-size: 16px; }
.cta .fav.on { color: var(--gold-bright); border-color: rgba(23,63,58,.38); }

/* Hero média (commun A/B) */
.fiche-hero { position: relative; width: 100%; height: 62vh; background: #000; overflow: hidden; }
.fiche-hero .hero-fab { position: absolute; top: calc(env(safe-area-inset-top) + 14px); width: 40px; height: 40px; border-radius: 50%; background: rgba(10,10,14,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 6; }
.fiche-hero .hero-back { left: 16px; }
.fiche-hero .hero-acts { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 16px; left: auto; display: flex; gap: 10px; }
.fiche-hero .hero-acts .hero-fab { position: static; }
.fiche-hero .hero-count { position: absolute; right: 16px; bottom: 16px; background: rgba(10,10,14,.62); color: #fff; font-size: 12px; padding: 5px 11px; border-radius: 999px; z-index: 6; }
.fiche-hero .hero-fab.on { color: #ff4d6d; }

/* Lecteur vidéo */
.vplayer { position: absolute; inset: 0; }
.vplayer .vp-vid { width: 100%; height: 100%; object-fit: cover; }
.vp-badge { position: absolute; top: calc(env(safe-area-inset-top) + 16px); left: 66px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #fff; background: rgba(10,10,14,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); padding: 7px 12px; border-radius: 999px; z-index: 6; }
.vp-badge i { color: var(--video-accent); font-size: 10px; }
.vp-tap { position: absolute; inset: 0; background: none; border: none; z-index: 3; }
.vp-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(10,10,14,.5); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 20px; display: none; align-items: center; justify-content: center; z-index: 4; pointer-events: none; }
.vplayer.paused .vp-bigplay { display: flex; }
.vp-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px calc(env(safe-area-inset-bottom) + 14px); z-index: 5; background: linear-gradient(180deg, transparent, rgba(10,10,14,.72)); }
.vp-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.22); margin-bottom: 10px; cursor: pointer; }
.vp-fill { height: 100%; width: 0; border-radius: 999px; background: var(--video-accent); }
.vp-row { display: flex; align-items: center; gap: 14px; color: #fff; }
.vp-time { font-size: 12px; font-variant-numeric: tabular-nums; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.vp-sp { flex: 1; }
.vp-row button { background: none; border: none; color: #fff; font-size: 17px; padding: 4px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

/* Proposition A : rail de vignettes */
.frail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 14px 18px 4px; }
.frail::-webkit-scrollbar { display: none; }
.fthumb { position: relative; flex: none; width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--card); }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.fthumb.on { border-color: var(--gold); }
.fthumb.thumb-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--text); border: 2px solid var(--hairline); }
.fthumb.thumb-video.on { border-color: var(--gold); }
.fthumb.thumb-video i { color: var(--gold); font-size: 17px; }
.fthumb.thumb-video span { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.fthumb.thumb-more { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.fthumb.thumb-more::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,14,.5); }
.fthumb.thumb-more span { position: relative; z-index: 1; }

/* Proposition B : onglets segmentés Vidéo / Photos */
.seg-tabs { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; background: rgba(10,10,14,.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px; z-index: 6; }
.seg-tabs button { min-width: 44px; min-height: 44px; background: none; border: none; color: rgba(242,239,233,.7); font-size: 13px; font-weight: 600; padding: 0 14px; border-radius: 999px; white-space: nowrap; }
.seg-tabs button.on { background: var(--gold-grad); color: #F4F1EA; }
.seg-tabs.seg-tabs-four { left: 68px; right: 68px; transform: none; }
.seg-tabs.seg-tabs-four button { flex: 1; min-width: 0; padding-inline: 4px; }
.fiche-carousel { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fiche-carousel::-webkit-scrollbar { display: none; }
.fiche-carousel img { width: 100%; height: 100%; object-fit: cover; flex: none; scroll-snap-align: start; }
.is-hidden { display: none !important; }

/* Lecteur vidéo plein écran (depuis le bouton play de la galerie fiche) */
.video-overlay { position: fixed; inset: 0; z-index: 3000; background: #000; }
.vo-close { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 16px; z-index: 4000; width: 40px; height: 40px; border-radius: 50%; background: rgba(10,10,14,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ============================================================
   Enrichissements maquette - Lot 1 (tags feed, statut, vues, prêt)
   ============================================================ */

/* Tags vidéo (variante A : chips sur la vidéo) */
.vtag-stack { position: absolute; left: 18px; top: calc(env(safe-area-inset-top) + 62px); z-index: 28; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vtag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: rgba(10,10,14,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.vtag i { color: var(--video-accent); font-size: 12px; }
.vtag .dpe { width: 20px; height: 20px; font-size: 11px; }
.vtag-rotation { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(232,146,26,.16); border: 1px solid rgba(232,146,26,.45); color: #E8921A; font-size: 10px; font-weight: 600; letter-spacing: .5px; }

/* Tags vidéo (variante B : lettre DPE inline dans les specs) */
.dpe-inline { font-weight: 800; }
.dpe-inline[data-c="A"]{color:var(--dpe-a)} .dpe-inline[data-c="B"]{color:var(--dpe-b)}
.dpe-inline[data-c="C"]{color:var(--dpe-c)} .dpe-inline[data-c="D"]{color:var(--dpe-d)}
.dpe-inline[data-c="E"]{color:var(--dpe-e)} .dpe-inline[data-c="F"]{color:var(--dpe-f)} .dpe-inline[data-c="G"]{color:var(--dpe-g)}

/* Pastille statut commercial (feed + fiche) */
/* Statut commercial : mention typographique sobre (pas un badge). La couleur porte le sens. */
.statut-pill { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.statut-pill.is-sous_offre { color: #D9A65C; }
.statut-pill.is-vendu { color: #C2675F; }
.statut-pill.is-archive { color: var(--text-faint); }
.hide-statut .statut-pill { display: none; }
.feed-info .statut-pill { margin-bottom: 4px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.feed-info .statut-pill:not(.is-sous_offre):not(.is-vendu):not(.is-archive) { color: rgba(242,239,233,.82); }
.feed-info .statut-pill.is-archive { color: rgba(242,239,233,.58); }

/* Compteur de vues (fiche) */
.pp-views { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; margin-top: 14px; }
.pp-views i { color: var(--gold); }
/* Superficie terrain (fiche), libellé "Terrain : X m²" facon SeLoger, chiffres en Inter */
.pp-terrain { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; margin-top: 12px; }
.pp-terrain i { color: var(--gold); }

/* Calculateur de prêt (fiche) */
.loan-card .loan-line { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0; }
.loan-card .loan-line .lab { color: var(--text-dim); font-size: 13px; }
.loan-card .loan-line .val { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.loan-card .frow { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.loan-result { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline-soft); }
.loan-result .lab { color: var(--text-dim); font-size: 13px; }
.loan-result .amt { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--gold); white-space: nowrap; }

/* ============================================================
   Enrichissements maquette - Lot 2 (notifications, réglages, profil)
   ============================================================ */

/* En-tête de sous-écran (back + titre + action) */
.sub-head { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 18px) 18px 12px; }
.sub-head h1 { flex: 1; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.sub-head .hbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--hairline); color: var(--text); display: flex; align-items: center; justify-content: center; flex: none; }

/* Listes de réglages */
.set-section { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); margin: 22px 18px 10px; }
.set-card { margin: 0 18px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; }
.set-row-button { width: 100%; background: none; border: none; color: var(--text); text-align: left; }
.set-row + .set-row { border-top: 1px solid var(--hairline-soft); }
.set-row > .ic { width: 20px; text-align: center; color: var(--gold); flex: none; }
.set-row .tx { flex: 1; min-width: 0; }
.set-row .tx .t { font-size: 14px; }
.set-row .tx .s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.set-row .go { color: var(--text-faint); }

/* Action sensible */
.danger-card {
  margin: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.015);
}
.danger-card .danger-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #d7685f;
  background: rgba(212,58,48,.08);
  border: 1px solid rgba(212,58,48,.18);
}
.danger-copy {
  flex: 1;
  min-width: 0;
}
.danger-card h3 { color: var(--text); font-size: 14px; font-weight: 600; }
.danger-card p { color: var(--text-dim); font-size: 12px; line-height: 1.45; margin-top: 3px; }
.danger-card .btn-danger {
  width: auto;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: none;
}
.btn-danger { background: rgba(212,58,48,.10); color: #ff7a70; border: 1px solid rgba(212,58,48,.36); }

/* Notifications */
.notif-row { display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--hairline-soft); }
.notif-ic { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(255,255,255,.05); }
.notif-tx { flex: 1; min-width: 0; }
.notif-tx .t { font-size: 14px; line-height: 1.4; }
.notif-tx .tm { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.notif-row .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.notif-row.unread { background: rgba(47,111,99,.08); }
.notif-row .udot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 7px; }

/* Mode "J'ai trouvé mon bien" */
.found-banner { display: flex; align-items: center; gap: 12px; margin: 16px 18px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--gold-grad); color: #F4F1EA; }
.found-banner i { font-size: 18px; }
.found-banner .t { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.3; }
.found-banner button { background: rgba(244,241,234,.16); border: none; color: #F4F1EA; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

/* Toast */
.toast { position: fixed; bottom: calc(var(--tabbar-h) + 20px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card-2); border: 1px solid var(--hairline); color: var(--text); font-size: 13px; padding: 11px 18px; border-radius: 999px; z-index: 2000; opacity: 0; transition: opacity .2s, transform .2s; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Badge point sur un bouton d'en-tête (cloche avec notifs non lues) */
.hbtn.has-dot { position: relative; }
.hbtn.has-dot::after { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }

/* ============================================================
   Onboarding 60 s (splash / choix / wizard critères)
   ============================================================ */
.ob-screen { min-height: 100dvh; display: flex; flex-direction: column; }
.ob-screen.center { justify-content: center; align-items: center; text-align: center; padding: 40px 28px calc(env(safe-area-inset-bottom) + 28px); }

/* Splash */
.ob-splash { padding: 36px 28px calc(env(safe-area-inset-bottom) + 28px); text-align: center; }
.ob-splash .ob-main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ob-splash .ob-logo { width: 200px; max-width: 64%; margin: 0 auto 28px; }
.ob-splash .ob-tag { color: var(--text-dim); font-size: 14px; line-height: 1.55; max-width: 300px; }
.ob-splash .ob-sub { color: var(--text-faint); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 14px; }
.ob-foot { margin-top: auto; width: 100%; }
.ob-foot .btn { margin-top: 20px; }

/* Écran de choix */
.ob-choice { padding: calc(env(safe-area-inset-top) + 40px) 22px calc(env(safe-area-inset-bottom) + 24px); }
.ob-choice .ob-h { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.12; margin-top: 8px; }
.ob-choice .ob-lead { color: var(--text-dim); font-size: 14px; margin-top: 10px; line-height: 1.5; }
.ob-cards { display: grid; gap: 12px; margin-top: 26px; }
.ob-card { display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--hairline); color: var(--text); transition: border-color .2s, transform .2s; }
.ob-card:active { transform: translateY(1px); }
.ob-card.primary { border-color: var(--gold-deep); background: linear-gradient(160deg, rgba(47,111,99,.10), var(--card) 60%); }
.ob-card .ic { width: 46px; height: 46px; flex: none; border-radius: 13px; background: rgba(47,111,99,.12); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.ob-card .tx { flex: 1; min-width: 0; }
.ob-card .tx h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.ob-card .tx p { color: var(--text-dim); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.ob-card .go { color: var(--text-faint); }
.ob-skip { display: block; text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 24px; }

/* Wizard critères (réutilise .fgroup/.fchip/.frange/.switch du panneau filtres) */
.ob-wizard { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
.ob-whead { padding: calc(env(safe-area-inset-top) + 18px) 22px 8px; }
.ob-whead .step { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.ob-whead h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 6px; }
.ob-wbody { padding: 14px 22px 0; }
.ob-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); padding: 14px 22px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(180deg, transparent, var(--bg) 32%); z-index: 50; }

/* ============================================================
   Partage public d'une sélection (hors compte)
   ============================================================ */
.share-wrap { padding: 0 18px calc(env(safe-area-inset-bottom) + 100px); }
.share-head { text-align: center; padding: calc(env(safe-area-inset-top) + 34px) 0 8px; }
.share-head .share-logo { width: 140px; max-width: 50%; margin: 0 auto 22px; }
.share-head .share-by { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.share-head .share-sub { color: var(--text-dim); font-size: 13px; margin-top: 8px; }
.share-note { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 8px; }
.share-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); padding: 14px 18px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(180deg, transparent, var(--bg) 32%); z-index: 50; }

/* ============================================================
   Enrichissements maquette - Lot 3 (back-office agence)
   ============================================================ */

/* En-tête agence (logo + nom + sous-titre) */
.ag-head { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 18px) 18px 12px; }
.ag-head .ag-logo { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--gold-grad); color: #F4F1EA; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ag-head .tx { flex: 1; min-width: 0; }
.ag-head .tx .t { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.1; }
.ag-head .tx .s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.ag-head .hbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--hairline); color: var(--text); display: flex; align-items: center; justify-content: center; flex: none; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.role-toggle button { border: none; background: none; color: var(--text-dim); border-radius: 9px; padding: 9px 10px; font-size: 13px; font-weight: 600; }
.role-toggle button.on { background: var(--gold-grad); color: #F4F1EA; }

/* Grille de KPIs (2 x 2) */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px 0; }
.kpi { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; }
.kpi .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.kpi .k { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .7px; margin-top: 6px; }
.kpi .delta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; margin-top: 9px; }
.kpi .delta.up { color: var(--score-green); }
.kpi .delta.down { color: #E8716B; }

/* Lignes de liste génériques (biens, leads, agents) */
.ag-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: 10px; }
.ag-row .thumb { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; flex: none; background: var(--card-2); }
.ag-row .av { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--gold-grad); color: #F4F1EA; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ag-row .tx { flex: 1; min-width: 0; }
.ag-row .tx .t { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ag-row .tx .s { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.ag-row .tx .s b { color: var(--text); font-weight: 600; }
.ag-row .end { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ag-row .go { color: var(--text-faint); }
.ag-row .price { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

/* Pastille statut éditable (select déguisé en pastille) */
.statut-sel { position: relative; display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 24px 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.statut-sel select { appearance: none; -webkit-appearance: none; background: transparent; border: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; margin: 0; cursor: pointer; outline: none; }
.statut-sel select option { color: #1a1a1a; }
.statut-sel .chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 9px; opacity: .7; }
.statut-sel.is-disponible { background: #2f5d46; color: #c6ecd6; }
.statut-sel.is-sous_offre { background: #E8921A; color: #1A1206; }
.statut-sel.is-vendu { background: #3a3a44; color: #cfccc4; }
.statut-sel.is-archive { background: #2A2A33; color: var(--text-dim); }

/* Barre de quota (biens / agents) */
.quota { font-size: 12px; color: var(--text-dim); }
.quota b { color: var(--text); font-weight: 600; }
.quota-bar { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin-top: 7px; }
.quota-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold-grad); }

/* Bouton « + Nouveau bien » flottant en pied de liste */
.ag-add { position: fixed; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); left: 50%; transform: translateX(-50%); width: calc(100% - 36px); max-width: calc(var(--app-w) - 36px); z-index: 45; }

/* Formulaire annonce */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; color: var(--text); font-family: inherit; font-size: 15px; padding: 13px 14px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-deep); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.prefill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gold); margin-left: 8px; }

/* Contrôle segmenté (Pro/POV, analytics) */
.segmented { display: flex; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { flex: 1; background: none; border: none; color: var(--text-dim); font-size: 13px; font-weight: 600; padding: 10px 8px; border-radius: 9px; }
.segmented button.on { background: var(--gold-grad); color: #F4F1EA; }

/* Zone d'upload vidéo (fake progress) */
.upload-zone { border: 1.5px dashed var(--hairline); border-radius: var(--radius); padding: 26px 18px; text-align: center; color: var(--text-dim); background: rgba(255,255,255,.02); }
.upload-zone i { font-size: 26px; color: var(--gold); display: block; margin-bottom: 10px; }
.upload-zone .t { font-size: 14px; color: var(--text); }
.upload-zone .s { font-size: 12px; margin-top: 4px; }
.upload-prog { margin-top: 14px; height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; display: none; }
.upload-prog.on { display: block; }
.upload-prog i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold-grad); transition: width .3s linear; }
.upload-done { display: none; align-items: center; gap: 8px; margin-top: 12px; color: var(--score-green); font-size: 13px; font-weight: 600; }
.upload-done.on { display: flex; }

/* Galerie photos (compteur ambre -> vert) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-cell { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card-2); position: relative; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-add { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--hairline); color: var(--text-faint); font-size: 18px; background: none; }
.photo-count { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(232,146,26,.16); border: 1px solid rgba(232,146,26,.45); color: #E8921A; }
.photo-count.ok { background: rgba(91,185,139,.14); border-color: rgba(91,185,139,.5); color: var(--score-green); }
/* Progression photos "douce" : N ajoutées / encore M recommandées + barre dorée (cible 20) */
.photo-progress-label { font-size: 13px; color: var(--text-dim); margin: 2px 0 10px; }
.photo-progress-label.ok { color: var(--score-green); }
.photo-prog { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin-bottom: 14px; }
.photo-prog i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold-grad); transition: width .3s ease; }
.floorplan-count { font-size: 13px; color: var(--text-dim); margin: 2px 0 10px; }

/* Cartes d'abonnement (paliers, sans montant) */
.plan-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.plan-action { width: 100%; color: var(--text); text-align: left; }
.plan-card.on { border-color: var(--gold); background: linear-gradient(160deg, rgba(47,111,99,.10), var(--card) 60%); }
.plan-card .plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-card .plan-nm { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.plan-card .plan-tag { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 3px 9px; }
.plan-card ul { list-style: none; margin-top: 10px; }
.plan-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.plan-card li i { color: var(--gold); font-size: 12px; margin-top: 3px; }

/* Code d'activation (agents, inscription) */
.code-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 1px; font-weight: 600; background: var(--card-2); border: 1px dashed var(--gold-deep); color: var(--gold-bright); border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* Export CSV : ligne d'action discrète */
.ag-export { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 600; background: none; border: none; padding: 4px; }

/* ============================================================
   Lots suivants : états globaux (focus, hover, reduced-motion)
   + utility classes pour le nettoyage inline back-office.
   Ajout seul : aucune classe existante n'est redéfinie ici.
   ============================================================ */

/* ---- Focus visible : anneau doré sur tout élément focusable ---- */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Les overlays/sheets ont déjà leur propre rendu, on évite le ring sur l'overlay lui-même */
.sheet-overlay:focus-visible, .tabbar a:focus-visible { outline-offset: -2px; }

/* ---- Hover (desktop avec souris uniquement, pas de hover collé sur tactile) ---- */
@media (hover: hover) {
  .btn-gold:hover { filter: brightness(1.06); }
  .btn-outline:hover, .btn-ghost:hover, .btn-danger:hover { border-color: var(--gold-deep); }
  .btn-danger:hover { border-color: rgba(212,58,48,.55); background: rgba(212,58,48,.14); color: #ff8a81; }
  .card:hover, .pcard:hover, .ag-row:hover, .hub-card:hover, .ob-card:hover,
  .plan-card:hover, .set-row:hover, .notif-row:hover, .thread:hover {
    border-color: var(--gold-deep);
  }
  .hbtn:hover, .topbar .icon-btn:hover, .hero-fab:hover { background: rgba(255,255,255,.1); }
  .fchip:hover, .chip:hover { border-color: var(--gold-deep); }
  .tabbar a:hover { color: var(--text-dim); }
  .vp-row button:hover, .rail-btn:hover i { opacity: .82; }
  .ag-export:hover, .voirplus:hover, .sheet-reset:hover { opacity: .75; }
}

/* ---- Reduced motion : on coupe les animations décoratives ----
   (nudge swipe-hint, burst like, progress bar feed, transitions sheets) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Utility spacers (remplace les <div style="height:Xpx">) ---- */
.spacer-xs { height: 6px; }
.spacer-s { height: 8px; }
.spacer-m { height: 16px; }
.spacer-l { height: 24px; }
.spacer-xl { height: 32px; }

/* ---- Encart info doré (back-office : notes, leads, SIRET) ---- */
.note-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  font-size: 13px; color: var(--text-dim);
}
.note-row > i { color: var(--gold); flex: none; }
.note-row.is-success > i { color: var(--score-green); }
.note-row > span { min-width: 0; }
.note-row > span b { color: var(--text); font-weight: 600; }

/* ---- Carte lead (agence-leads) ---- */
.lead-card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.lead-card .lead-head {
  display: flex; align-items: flex-start; gap: 12px;
}
.lead-card .lead-av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--gold-grad); color: #F4F1EA;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.lead-card .lead-mid { flex: 1; min-width: 0; }
.lead-card .lead-titleline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lead-card .lead-mid .lead-buyer { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-weight: 600; min-width: 0; }
.lead-card .lead-mid .lead-meta { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.lead-card .lead-contact { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.lead-card .lead-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12px; font-weight: 600; }
.lead-card .lead-contact i { font-size: 11px; }
.lead-card .lead-msg {
  font-size: 13px; color: var(--text-dim); margin-top: 10px; line-height: 1.45;
}
.lead-card .lead-cta { margin-top: 12px; }
.agent-filter:empty { display: none; }

/* ---- Inscription agence ---- */
.siret-result {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-top: 10px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  font-size: 13px;
}
.siret-result > i { color: var(--score-green); flex: none; }
.siret-result b { color: var(--text); font-weight: 600; }
.siret-fallback { margin: -6px 0 16px; }

/* Carte parcours (inscription) : icône de sélection homogène */
.plan-card .plan-top .sel-ic { color: var(--text-faint); }
.plan-card.on .plan-top .sel-ic { color: var(--gold); }
.plan-card .plan-desc { font-size: 13px; margin-top: 4px; }
.plan-foot-note { margin-top: 14px; }
.agency-note { margin-bottom: 10px; }

/* ---- Formulaire annonce : note + CTA publier ---- */
.form-note {
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
}
.video-kind-note { margin-top: 10px; line-height: 1.45; }

.publish-cta {
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
}
.publish-cta .btn-draft { flex: 1; }
.publish-cta .btn-publish { flex: 2; }

/* ---- Sub-head : combleur d'espace pour l'alignement titre centré ---- */
.sub-head .spacer { width: 40px; flex: none; }

/* ---- Section label en ligne (label + contre-valeur) ---- */
.section-row { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.section-row .section-label { margin: 0; }
.section-action { color: var(--gold); font-size: 13px; font-weight: 700; }
.watch-help { margin-top: -2px; margin-bottom: 10px; line-height: 1.45; }
.role-demo-note { font-size: 11px; color: var(--text-faint); margin: -6px 0 14px; line-height: 1.4; }
#siretResult > div, #manualCompany > .field:first-child { margin-top: 12px; }

/* ---- Hint avec marge (formulaire annonce) ---- */
.photo-hint { margin-top: 8px; }

/* ---- Back-office agence : compléments de nettoyage inline ---- */
.agency-signup {
  padding-bottom: calc(env(safe-area-inset-bottom) + 40px);
}
.agency-signup-head {
  padding: calc(env(safe-area-inset-top) + 24px) 24px 14px;
}
.agency-signup-head .share-logo {
  width: 112px;
  margin-bottom: 18px;
}
.agency-signup-head .share-sub {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
.agency-list-app {
  padding-bottom: calc(var(--tabbar-h) + 96px);
}
.form-bottom-pad {
  padding-bottom: calc(env(safe-area-inset-bottom) + 96px);
}
.grow-1 { flex: 1; }
.grow-2 { flex: 2; }
.agency-quota-note {
  text-transform: none;
  letter-spacing: 0;
  float: right;
  color: var(--text-faint);
}
.cancel-card {
  padding: 16px;
}
.cancel-card.subtle {
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  background: transparent;
}
.cancel-link {
  margin-top: 8px;
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.cancel-link:hover { color: var(--text); }
.loan-card .loan-taux {
  width: 68px;
  text-align: right;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 4px 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.loan-card .loan-taux:focus { border-color: var(--gold); }
.cancel-card p {
  font-size: 13px;
  line-height: 1.55;
}
.set-card.no-hover:hover,
.cancel-card.no-hover:hover {
  border-color: var(--hairline);
}
.set-card.no-hover .set-row:hover {
  border-color: transparent;
}
.plan-note {
  font-size: 12px;
  margin-top: 4px;
}
.analytics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.analytics-actions .btn { padding-inline: 10px; }
.quota-card {
  padding: 14px 16px;
}
.ag-row-link {
  color: inherit;
}
.draft-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.resume-link {
  color: var(--gold);
}
.watch-warning {
  color: #E8921A;
}
.small-muted {
  font-size: 13px;
}
.analytics-period {
  font-size: 12px;
  margin-bottom: 12px;
}
.analytics-chart-wrap {
  margin-top: 18px;
}
.analytics-row {
  align-items: flex-start;
}
.analytics-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analytics-extra {
  color: var(--text-faint);
  font-size: 11px;
}
.analytics-track {
  margin-top: 5px;
}
.sheet-choice {
  justify-content: flex-start;
  margin-bottom: 8px;
}
.sheet-copy {
  font-size: 14px;
  line-height: 1.55;
}
.sheet-copy-tight {
  font-size: 14px;
  line-height: 1.5;
}
.share-context {
  max-width: 310px;
  margin: 10px auto 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}
.sheet-muted-small {
  font-size: 13px;
}
.section-label.flush {
  margin-top: 0;
}
.found-win {
  padding: 40px 30px;
}
.found-win .monogram {
  margin: 0 auto 16px;
}
.found-title {
  font-size: 22px;
}
.found-copy {
  margin-top: 10px;
  font-size: 14px;
}
.account-deleted {
  padding-top: 40vh;
}
.gold-link {
  color: var(--gold);
}

/* Console admin interne (maquette) - ajout seul */
.role-pill { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.role-pill.is-buyer { background: var(--card-2); color: var(--text-dim); }
.role-pill.is-agent { background: rgba(47,111,99,.14); color: var(--gold-deep); }
.role-pill.is-admin { background: var(--gold-deep); color: #F4F1EA; }

.admin-actions { display: flex; gap: 10px; margin-top: 12px; }
.admin-actions .btn { flex: 1; }
.btn-danger { background: transparent; color: #C0493F; border: 1px solid rgba(192,73,63,.4); }

.admin-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 11px 14px; }
.admin-search i { color: var(--gold); font-size: 14px; flex: none; }
.admin-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 15px; }
.admin-search input::placeholder { color: var(--text-faint); }

.kpi-link { display: block; text-decoration: none; color: inherit; }
.kpi-link:active { transform: scale(.985); }

.admin-meta { font-size: 12px; color: var(--text-dim); }

@media (hover: hover) {
  .kpi-link:hover .kpi { border-color: var(--gold); }
}

/* ============================================================
   Console admin interne - layout DESKTOP (maquette, ajout seul).
   Sidebar fixe + tableaux denses. N'utilise PAS le cadre mobile .app :
   ces classes ne touchent aucune page acheteur/agence existante.
   DA crème/teal conservée, registre épuré. Sans framework.
   ============================================================ */
.admin-shell { display: flex; align-items: stretch; min-height: 100vh; }

.admin-side {
  width: 236px; flex: none; background: var(--card);
  border-right: 1px solid var(--hairline);
  padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 3px;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 20px; }
.admin-brand .mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--gold-grad); color: #F4F1EA;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.admin-brand .bt { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.15; }
.admin-brand .bs { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-dim); font-size: 14px; font-weight: 500; text-decoration: none;
}
.admin-nav a i { width: 18px; text-align: center; font-size: 14px; }
.admin-nav a:hover { background: var(--card-2); color: var(--text); }
.admin-nav a.active { background: rgba(47,111,99,.12); color: var(--gold-deep); font-weight: 600; }
.admin-nav a.active i { color: var(--gold); }
.admin-side .side-foot { margin-top: auto; font-size: 11px; color: var(--text-faint); padding: 12px 10px 0; line-height: 1.5; }

.admin-main { flex: 1; min-width: 0; padding: 28px 34px 64px; max-width: 1120px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.admin-head .ph-t { font-size: 23px; font-weight: 700; color: var(--text); line-height: 1.1; }
.admin-head .ph-s { font-size: 13px; color: var(--text-dim); margin-top: 5px; max-width: 56ch; }
.admin-head .admin-search { max-width: 320px; flex: none; }

.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-kpi { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 18px 16px; display: block; text-decoration: none; color: inherit; }
.admin-kpi .v { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.admin-kpi .k { font-size: 12px; color: var(--text-dim); margin-top: 9px; }
a.admin-kpi { transition: border-color .12s ease; }
a.admin-kpi:hover { border-color: var(--gold); }

.admin-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-panel { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.admin-panel > .pnl-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hairline-soft); }
.admin-panel > .pnl-head .pnl-t { font-size: 14px; font-weight: 600; color: var(--text); }
.admin-panel > .pnl-head a { font-size: 12px; color: var(--gold-deep); text-decoration: none; }
.pnl-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hairline-soft); text-decoration: none; color: inherit; }
.pnl-row:last-child { border-bottom: none; }
.pnl-row:hover { background: var(--card-2); }
.pnl-row .ic { width: 34px; height: 34px; border-radius: 9px; flex: none; background: rgba(47,111,99,.12); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pnl-row .tx { min-width: 0; flex: 1; }
.pnl-row .tx .t { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.pnl-row .tx .s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pnl-row .when { font-size: 12px; color: var(--text-faint); flex: none; }

.admin-tablewrap { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.admin-tablescroll { overflow-x: auto; }
.admin-toolbar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--hairline-soft); }
.admin-toolbar .admin-search { flex: 1; max-width: 360px; }
.admin-toolbar .tb-count { margin-left: auto; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
table.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.admin-table thead th { text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.admin-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--hairline-soft); color: var(--text-dim); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr.is-dim td { opacity: .55; }
.admin-table .c-strong { color: var(--text); font-weight: 600; }
.admin-table .c-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.admin-table .c-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table td.c-actions { text-align: right; white-space: nowrap; }
.admin-table a.c-link { color: var(--gold-deep); text-decoration: none; }
.admin-empty { padding: 40px 16px; text-align: center; color: var(--text-faint); font-size: 14px; }

.cell-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--text-dim); white-space: nowrap; }
.cell-pill.is-type i { color: var(--gold-deep); }
.cell-pill.is-ok { background: rgba(91,185,139,.16); color: #2F7D55; }
.cell-pill.is-bad { background: rgba(192,73,63,.12); color: #C0493F; }
.cell-pill.is-warn { background: rgba(217,148,63,.16); color: #9A6620; }
.cell-quote { color: var(--text-dim); }

.admin-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hairline-soft); font-size: 13px; color: var(--text-dim); }
.admin-pager .pg-info { font-variant-numeric: tabular-nums; }
.admin-pager .pg-btns { display: inline-flex; gap: 8px; }
.admin-pager button { background: var(--card); border: 1px solid var(--hairline); border-radius: 8px; padding: 6px 12px; font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.admin-pager button:hover:not(:disabled) { border-color: var(--gold); }
.admin-pager button:disabled { opacity: .4; cursor: default; }

.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.t-actions { display: inline-flex; gap: 8px; justify-content: flex-end; }
.seg-inline { display: inline-flex; background: var(--card); border: 1px solid var(--hairline); border-radius: 10px; padding: 3px; gap: 3px; }
.seg-inline button { background: none; border: none; color: var(--text-dim); font-size: 12.5px; font-weight: 600; font-family: inherit; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.seg-inline button.on { background: var(--gold-grad); color: #F4F1EA; }

@media (max-width: 940px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; border-right: none; border-bottom: 1px solid var(--hairline); padding: 12px 14px; }
  .admin-side .admin-brand { padding: 0 8px 0 4px; }
  .admin-side .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side .side-foot { display: none; }
  .admin-main { padding: 20px 18px 48px; max-width: none; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .admin-panels { grid-template-columns: 1fr; }
  .admin-toolbar { flex-wrap: wrap; }
}

/* Abonnement agence web (maquette) - ajout seul */
.sub-page { min-height: 100vh; background: var(--bg); padding: 40px 20px 64px; display: flex; justify-content: center; }
.sub-shell { width: 100%; max-width: 480px; margin: 0 auto; }
.sub-hero { text-align: center; margin-bottom: 24px; }
.sub-hero .share-logo { width: 112px; display: block; margin: 0 auto 18px; }
.sub-hero h1 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text); line-height: 1.2; }
.sub-hero .sub-sub { color: var(--text-dim); font-size: 13px; margin-top: 8px; }

.sub-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.sub-steps .step { display: inline-flex; align-items: center; gap: 7px; color: var(--text-faint); font-size: 12px; font-weight: 500; }
.sub-steps .step .dot { width: 22px; height: 22px; flex: none; border-radius: 999px; border: 1px solid var(--hairline); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.sub-steps .step.is-active { color: var(--gold-deep); }
.sub-steps .step.is-active .dot { background: var(--gold-grad); border-color: transparent; color: #F4F1EA; }
.sub-steps .step.is-done .dot { background: rgba(47,111,99,.14); border-color: transparent; color: var(--gold); }
.sub-steps .sep { width: 16px; height: 1px; background: var(--hairline); flex: none; }

.sub-plans { display: grid; gap: 12px; }
.sub-plans .plan-card { margin-bottom: 0; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.plan-price .amount { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 13px; color: var(--text-dim); }
.plan-price .apx { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-dim); background: var(--card-2); border-radius: 999px; padding: 3px 8px; }
.sub-plans .plan-card .btn { margin-top: 14px; }

.sub-checkout { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; }
.sub-checkout .stripe-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--hairline-soft); }
.sub-checkout .stripe-badge i { color: var(--gold); }
.sub-checkout .co-recap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.sub-checkout .co-recap .co-plan { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.sub-checkout .co-recap .co-amount { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub-checkout .co-recap .co-amount .per { font-size: 12px; font-weight: 500; color: var(--text-dim); }
.sub-checkout .field:last-of-type { margin-bottom: 0; }
.sub-checkout .pay-btn { margin-top: 18px; }
.sub-note { font-size: 12px; color: var(--text-faint); line-height: 1.5; margin-top: 12px; }
.sub-back { display: inline-block; margin-top: 14px; background: none; border: none; padding: 4px 0; color: var(--text-dim); font-family: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.sub-back:hover { color: var(--text); }

.sub-confirm { text-align: center; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 34px 24px; }
.sub-confirm .check { color: var(--gold); font-size: 40px; margin-bottom: 16px; }
.sub-confirm h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); }
.sub-confirm .cf-recap { margin: 18px auto 24px; max-width: 300px; display: grid; gap: 9px; }
.sub-confirm .cf-recap .cf-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-dim); }
.sub-confirm .cf-recap .cf-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sub-confirm .cf-actions { display: grid; gap: 10px; }

.sub-portal-head { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.sub-portal-head .ph-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sub-portal-head .ph-plan { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); }
.sub-portal-head .ph-price { font-size: 13px; color: var(--text-dim); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sub-portal-head .ph-meta { margin-top: 16px; display: grid; gap: 10px; }
.sub-portal-head .pm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-dim); }
.sub-portal-head .pm-row b { color: var(--text); font-weight: 500; }

.sub-section-label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); margin: 22px 0 12px; }
.sub-actions { display: grid; gap: 10px; margin-top: 16px; }

.sub-login { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px 20px; }
.sub-login .sub-login-lead { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 18px; }
.sub-login .field:last-of-type { margin-bottom: 4px; }
.sub-login .btn { margin-top: 16px; }
.sub-login .sub-login-alt { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); text-decoration: underline; }
.sub-login .sub-login-alt:hover { color: var(--text); }

.sub-account { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px; }
.sub-account .acc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-dim); padding: 9px 0; border-bottom: 1px solid var(--hairline-soft); }
.sub-account .acc-row:first-child { padding-top: 0; }
.sub-account .acc-row:last-child { padding-bottom: 0; border-bottom: none; }
.sub-account .acc-row b { color: var(--text); font-weight: 600; }
