/* Cran d'Avance · clair premium : ivoire, encre et bronze. Photo d'abord, chiffres en serif. */
:root {
  --bg: #f3efe7;
  --bg-2: #e9e2d5;
  --surface: #ffffff;
  --surface-2: #f9f6f0;
  --ink: #15130f;
  --ink-2: #3b362f;
  --mut: #756d61;
  --line: #e3dccd;
  --accent: #a46f33;
  --accent-2: #d2a160;
  --accent-soft: #f5ead8;
  --good: #1b7752;
  --good-soft: #e2f0e8;
  --bad: #c6433a;
  --bad-soft: #fbe7e4;
  --info: #2b57c4;
  --info-soft: #e7ecfa;
  --display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Manrope', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 22px;
  --r-s: 14px;
  --ombre: 0 1px 2px rgba(21, 19, 15, .05), 0 12px 32px -16px rgba(21, 19, 15, .28);
  --ombre-forte: 0 2px 6px rgba(21, 19, 15, .08), 0 24px 60px -20px rgba(21, 19, 15, .45);
  --bas: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  /* Mise en page : barre d'onglets flottante sur téléphone, colonne de navigation sur ordinateur */
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
img { max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.mini { width: 15px; height: 15px; }
.ico.gros { width: 34px; height: 34px; color: var(--accent); }
.ico.chev { width: 18px; height: 18px; color: var(--mut); margin-left: auto; }
.mut { color: var(--mut); }
.petit { font-size: 13px; }
.centre { text-align: center; }
.t-rouge { color: var(--bad); } .t-vert { color: var(--good); } .t-bleu { color: var(--info); } .t-or { color: var(--accent); font-style: normal; }
.sur { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin: 0; }
.sur.clair { color: var(--accent-2); }
.titre-xxl { font: 400 46px/1 var(--display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.titre-xl { font: 400 40px/1.02 var(--display); letter-spacing: -.01em; margin: 4px 0 6px; text-wrap: balance; }
.titre-l { font: 400 30px/1.08 var(--display); margin: 0; text-wrap: balance; }
.titre-m { font: 400 24px/1.12 var(--display); margin: 0; text-wrap: balance; }
.titre-s { font: 700 15px/1.3 var(--body); margin: 0; letter-spacing: -.005em; }
.titre-xs { font: 700 12px/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--mut); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.lien { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.rang { display: flex; flex-wrap: wrap; gap: 10px; }
.rang-s { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; transition: transform .12s, background .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-clair { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-bloc { display: flex; width: 100%; }
.btn-ico { padding: 0; width: 46px; }
.btn span { overflow: hidden; text-overflow: ellipsis; }
.rond { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); flex: none; }
.rond.plein { background: var(--ink); color: var(--bg); box-shadow: none; }
.tourne .ico { animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Pastilles */
.pill { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.p-encre { background: var(--ink); color: var(--bg); }
.p-or { background: var(--accent-soft); color: #7a4f1d; }
.p-vert { background: var(--good); color: #fff; } .p-vert-doux { background: var(--good-soft); color: var(--good); }
.p-bleu { background: var(--info); color: #fff; } .p-bleu-doux { background: var(--info-soft); color: var(--info); }
.p-rouge { background: var(--bad); color: #fff; } .p-rouge-doux { background: var(--bad-soft); color: var(--bad); }
.p-gris { background: var(--bg-2); color: var(--mut); }
.pill-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 7px 10px 7px 12px; border-radius: 999px; flex: none; }
.pill-btn.p-encre { background: var(--ink); color: var(--bg); }

/* Structure */
#app { height: 100%; display: flex; flex-direction: column; }
.colonne { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#vue { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; padding-bottom: calc(96px + var(--bas)); -webkit-overflow-scrolling: touch; }
.page { max-width: 1160px; margin: 0 auto; padding: 14px 16px 24px; }
.tete { position: relative; z-index: 3; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top, 0px); }
.tete-in { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 12px; }
.tete-g { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tete-g h1 { font: 400 25px/1 var(--display); margin: 0; white-space: nowrap; }
.tete-d { display: flex; gap: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--accent-2); font-weight: 800; font-size: 14px; letter-spacing: .03em; }
.logo { flex: none; display: block; }

.tabbar { position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(10px + var(--bas)); display: flex; justify-content: space-around; background: var(--surface); border-radius: 26px; box-shadow: var(--ombre-forte); padding: 6px; max-width: 520px; margin: 0 auto; }
.nav-it { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 1px 6px; border-radius: 20px; font-size: 10.5px; white-space: nowrap; font-weight: 700; color: var(--mut); transition: background .2s, color .2s; }
.nav-it .ico { width: 22px; height: 22px; }
.nav-it.on { background: var(--ink); color: var(--bg); }
.nav-it.on .ico { color: var(--accent-2); }
.nav-n { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-style: normal; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }

/* Bandeau d'erreur */
.bandeau-err { display: flex; gap: 8px; align-items: center; margin: 10px 16px 0; padding: 10px 14px; border-radius: var(--r-s); background: var(--bad-soft); color: var(--bad); font-weight: 600; font-size: 14px; }

/* Chargement et bienvenue */
.splash { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.splash-t { font: 400 34px/1 var(--display); margin: 14px 0 0; }
.bienvenue { flex: 1 0 auto; width: 100%; min-height: 100%; display: grid; place-items: center; padding: 32px 20px 60px; background: radial-gradient(120% 70% at 50% 0%, #fff 0%, var(--bg) 60%); }
.bv-in { max-width: 460px; display: grid; gap: 18px; justify-items: start; }
.bv-sous { font-size: 18px; color: var(--ink-2); margin: -6px 0 0; }
.bv-pts { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 14px; }
.bv-pts li { display: flex; gap: 12px; align-items: flex-start; }
.bv-pts .ico { color: var(--accent); margin-top: 1px; }
.bv-boite { background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--ombre); }
.bv-boite p { margin: 4px 0 0; }

/* Accueil */
.acc-tete { padding: 6px 2px 4px; }
.acc-tete .mut { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.hero { margin-top: 16px; display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 28px; background: var(--ink); color: #f7f2e9; box-shadow: var(--ombre-forte); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 161, 96, .28), transparent 65%); pointer-events: none; }
.hero-anneau { position: relative; width: 118px; height: 118px; flex: none; }
.hero-anneau svg { width: 100%; height: 100%; }
.h-fond { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 10; }
.h-val { fill: none; stroke: var(--accent-2); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.hero-anneau > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hero-anneau b { font: 400 46px/1 var(--display); }
.hero-anneau small { color: rgba(255, 255, 255, .6); font-weight: 700; }
.hero-txt { display: grid; gap: 8px; justify-items: start; min-width: 0; z-index: 1; }
.hero-txt h3 { font: 400 25px/1.12 var(--display); margin: 0; text-wrap: balance; }
.hero-serie { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent-2); font-weight: 700; font-size: 14px; }
.hero .btn { margin-top: 4px; }
.bloc { margin-top: 24px; }
.bloc-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bloc > .titre-s { margin-bottom: 10px; }
.liste-act { display: grid; gap: 8px; }
.act-ligne { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--r-s); box-shadow: var(--ombre); text-align: left; font-weight: 700; }
.act-ligne > .ico:first-child { color: var(--accent); }
.act-ligne.chaud > .ico:first-child { color: var(--info); }
.act-ligne.retard > .ico:first-child { color: var(--bad); }
.alertes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.alerte { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 14px; border-radius: var(--r-s); background: var(--surface); box-shadow: var(--ombre); }
.alerte .ico { grid-row: 1 / 3; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.alerte b { font: 400 30px/1 var(--display); }
.alerte span { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.alerte.vide { box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.alerte.vide b, .alerte.vide span { color: var(--mut); }
.alerte.vide .ico { background: var(--bg-2); color: var(--mut); }
.carrousel { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.mini-carte { position: relative; flex: none; width: 168px; height: 216px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; box-shadow: var(--ombre); text-align: left; background: var(--bg-2); }
.mini-carte .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-carte::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 10, 8, .82)); }
.mc-score { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 9px; }
.mc-bas { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; color: #fff; display: grid; }
.mc-bas b { font: 400 26px/1 var(--display); }
.mc-bas small { font-size: 12px; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deux { display: grid; gap: 14px; }
.carte-blanche { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--ombre); }
.barres { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; padding-top: 20px; align-items: end; margin: 6px 0 16px; }
.barre { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; justify-items: center; gap: 6px; }
.barre span { width: 100%; max-width: 34px; min-height: 4px; border-radius: 8px 8px 4px 4px; background: var(--bg-2); position: relative; display: flex; justify-content: center; }
.barre span i { position: absolute; top: -18px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.barre.auj span { background: var(--accent); }
.barre small { font-size: 11.5px; font-weight: 700; color: var(--mut); }
.barre-obj { position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 42px) * var(--o)); border-top: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); pointer-events: none; }
.barre-obj small { position: absolute; right: 0; top: 2px; background: var(--surface); padding: 0 4px; font-size: 11px; font-weight: 700; color: var(--accent); }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.chiffres div { display: grid; }
.chiffres b { font: 400 28px/1.05 var(--display); }
.chiffres small { font-size: 12px; color: var(--mut); font-weight: 600; line-height: 1.2; }
.entonnoir { display: grid; gap: 10px; margin: 8px 0 14px; }
.ent { display: grid; grid-template-columns: 1fr 34px 82px; align-items: center; gap: 10px; }
.ent span { height: 12px; border-radius: 6px; background: var(--ink); display: block; }
.ent-contacter span { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.ent-contacte span { background: var(--info); }
.ent-rdv span { background: var(--accent); }
.ent-mandat span { background: var(--good); }
.ent b { font: 400 22px/1 var(--display); text-align: right; }
.ent small { font-weight: 700; color: var(--ink-2); font-size: 13px; }

/* Puces de filtre */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; flex-shrink: 0; min-height: 46px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip .ico { width: 17px; height: 17px; color: var(--accent); }
.chip i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mut); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip.on .ico { color: var(--accent-2); }
.chip.on i { background: rgba(255, 255, 255, .14); color: var(--bg); }
.chips.petites .chip { height: 32px; padding: 0 11px; font-size: 13px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border-radius: 999px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg.large { display: flex; width: 100%; }
.seg.large button { flex: 1; justify-content: center; text-align: center; line-height: 1.2; }

/* Découvrir */
body[data-vue="decouvrir"] #vue { overflow: hidden; padding-bottom: 0; }
.page.decouvrir { height: 100%; display: flex; flex-direction: column; padding: 8px 12px calc(88px + var(--bas)); max-width: 1160px; }
.deck-zone { flex: 1; min-height: 0; display: flex; gap: 24px; justify-content: center; }
.deck-col { flex: 1; max-width: 470px; display: flex; flex-direction: column; min-height: 0; }
.zone { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin: 2px 0 10px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.zone .ico { color: var(--accent); width: 16px; height: 16px; }
.zone small { color: var(--mut); font-weight: 600; }
.deck { position: relative; flex: 1; min-height: 300px; }
.swipe-card { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: #2a2622; box-shadow: var(--ombre-forte); touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; cursor: grab; }
.swipe-card.dessous { transform: scale(.95) translateY(14px); opacity: .85; box-shadow: var(--ombre); pointer-events: none; }
.swipe-card.top { animation: monte .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes monte { from { transform: scale(.95) translateY(14px); } }
.sc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.sc-ombre { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, transparent 22%, transparent 42%, rgba(10, 8, 6, .9) 100%); pointer-events: none; }
.sc-points { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; gap: 4px; }
.sc-points i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); }
.sc-points i.on { background: #fff; }
.sc-haut { position: absolute; top: 24px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.sc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.b-neuf { background: var(--accent-2); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.b-site { background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.sc-score { display: grid; justify-items: center; gap: 2px; background: rgba(21, 19, 15, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 6px 6px 5px; border-radius: 18px; }
.sc-score small { color: rgba(255, 255, 255, .8); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.anneau { position: relative; display: inline-grid; place-items: center; flex: none; }
.anneau svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-fond { fill: none; stroke: var(--bg-2); }
.a-val { fill: none; stroke: var(--accent); stroke-linecap: round; }
.anneau b { position: relative; font: 400 21px/1 var(--display); }
.sc-score .a-fond { stroke: rgba(255, 255, 255, .2); }
.sc-score .a-val { stroke: var(--accent-2); }
.sc-score .anneau b { color: #fff; font-size: 22px; }
.sc-dm { position: absolute; top: 62px; left: 14px; display: inline-flex; gap: 6px; align-items: center; background: var(--accent-2); color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; pointer-events: none; }
.sc-bas { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; pointer-events: none; }
.sc-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.sc-prix b { font: 400 44px/1 var(--display); letter-spacing: -.01em; }
.sc-prix s { opacity: .7; font-weight: 600; }
.ecart { font-size: 12.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); align-self: center; }
.e-bleu { color: var(--info); } .e-vert { color: var(--good); } .e-rouge { color: var(--bad); }
.sc-titre { margin: 6px 0 10px; font-weight: 700; font-size: 17px; }
.sc-raisons { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sc-raisons span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tampon { position: absolute; top: 74px; font-size: 26px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 12px; border: 4px solid; border-radius: 12px; opacity: 0; pointer-events: none; }
.t-oui { left: 22px; color: #3fca8a; transform: rotate(-12deg); }
.t-non { right: 22px; color: #ff6a5c; transform: rotate(12deg); }
.deck-actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 0 4px; }
.da { display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--ombre); transition: transform .12s; }
.da:active { transform: scale(.92); }
.da-s { width: 50px; height: 50px; color: var(--ink-2); }
.da-l { width: 70px; height: 70px; }
.da-l .ico { width: 30px; height: 30px; stroke-width: 2.3; }
.da-non { color: var(--bad); }
.da-oui { background: var(--ink); color: var(--accent-2); }
.da-oui .ico { fill: var(--accent-2); }
.deck-vide { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 20px; max-width: 420px; margin: 0 auto; }
.vide-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.vide-ico .ico { width: 30px; height: 30px; }
.deck-panneau { width: 380px; flex: none; overflow-y: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre); padding: 20px; align-self: stretch; margin-bottom: 4px; }
.raccourcis { font-size: 12.5px; margin: 14px 0 0; text-align: center; }
.resume { display: grid; gap: 14px; }
.resume p { margin: 0; }
.res-tete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.puces { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.puces li::marker { color: var(--accent); }
.puces.fines { font-size: 14px; color: var(--ink-2); }

/* Jauge d'estimation */
.jauge { background: var(--surface-2); border-radius: var(--r-s); padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.jauge.vide p { margin: 0; }
.j-ligne { display: flex; justify-content: space-between; }
.j-ligne div { display: grid; }
.j-ligne .d { text-align: right; }
.j-ligne b { font: 400 26px/1.1 var(--display); }
.j-barre { position: relative; height: 10px; border-radius: 5px; background: var(--bg-2); margin: 30px 4px 8px; }
.j-bande { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in srgb, var(--good) 35%, transparent); }
.j-est { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--good); transform: translateX(-1px); border-radius: 1px; }
.j-prix { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); transform: translate(-8px, -50%); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.j-prix i { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--ink); color: var(--bg); padding: 2px 7px; border-radius: 6px; }
.j-leg { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--mut); }

/* Carte */
body[data-vue="carte"] #vue { padding-bottom: 0; }
.page.carte-page { height: 100%; display: flex; flex-direction: column; padding: 8px 12px calc(88px + var(--bas)); max-width: none; }
.carte-barre { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.legende span { display: inline-flex; align-items: center; gap: 5px; }
.pt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; }
.pt-nouveau { background: var(--surface); box-shadow: inset 0 0 0 3px var(--ink); }
.pt-chaud { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pt-contacte { background: var(--info); }
.pt-rdv { background: var(--accent-2); box-shadow: inset 0 0 0 2px var(--accent); }
.pt-mandat { background: var(--good); }
.pt-vu { background: #c9c2b5; }
.carte { position: relative; flex: 1; min-height: 320px; border-radius: 26px; overflow: hidden; background: #e2dacb; box-shadow: var(--ombre); touch-action: none; user-select: none; -webkit-user-select: none; }
.ml-place { position: absolute; inset: 0; }
.ml-hote { position: absolute; inset: 0; }
.carte .maplibregl-canvas { outline: none; }
.carte .maplibregl-ctrl-scale { background: rgba(255, 255, 255, .85); border-color: var(--ink-2); color: var(--ink-2); font: 700 11px var(--body); }
.carte .maplibregl-ctrl-attrib { font: 600 11px var(--body); }
.carte .apercu { bottom: 40px; z-index: 3; }
.carte-ctrl { z-index: 3; }
.carte-charge, .carte-echec { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); margin: 0; background: rgba(255, 255, 255, .92); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--ombre); z-index: 2; text-align: center; }
.mk.exact { border-radius: 50% 50% 50% 2px; }
.pt-exact { background: var(--surface); box-shadow: inset 0 0 0 3px var(--ink); border-radius: 50% 50% 50% 1px; }
.carte-leg { position: absolute; left: 12px; top: 12px; z-index: 2; display: grid; grid-template-columns: auto auto; gap: 4px 10px; padding: 8px 10px; background: rgba(255, 255, 255, .86); border-radius: 12px; font-size: 11px; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.mk-travail { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; margin: -13px 0 0 -13px; padding: 4px 9px 4px 5px; border-radius: 999px; background: var(--info); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; pointer-events: auto; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .25); }
.mk-travail .ico { width: 15px; height: 15px; }
.com-carte { display: grid; gap: 8px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre-forte); padding: 10px; }
.com-carte .ap-corps { box-shadow: none; padding: 0; }
.com-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.com-act { display: flex; gap: 8px; flex-wrap: wrap; }
.com-act .btn { flex: 1; }
@media (max-width: 959px) { .carte-leg { display: none; } .carte.leg-on .carte-leg { display: grid; } }
.carte.leg-off .carte-leg { display: none; }
.carte-barre .chips { flex: 1; min-width: 0; padding-bottom: 2px; }
#carte-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dep { fill: #f7f3eb; stroke: none; }
.com { fill: none; stroke: #ddd3c1; stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#carte-svg.loin .com { display: none; }
#carte-svg.proche .com { stroke: #cfc3ad; stroke-width: 1.2; }
.com-sect { fill: color-mix(in srgb, var(--accent) 11%, transparent); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.com-sel { fill: color-mix(in srgb, var(--ink) 9%, transparent); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dep-bord { fill: none; stroke: #b9ad97; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rayon-mute { fill: none; stroke: var(--info); stroke-width: 1.4; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.rayon { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.carte-mk { position: absolute; inset: 0; pointer-events: none; }
.mk { position: absolute; left: 0; top: 0; width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2); border-radius: 50%; pointer-events: auto; background: var(--surface); box-shadow: inset 0 0 0 3px var(--ink), 0 1px 3px rgba(0, 0, 0, .3); transition: box-shadow .15s; }
.mk::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.mk-chaud { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 2px 6px rgba(0, 0, 0, .35); }
.mk-contacte { background: var(--info); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .3); }
.mk-rdv { background: var(--accent-2); box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 2px #fff; }
.mk-mandat { background: var(--good); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .3); }
.mk-vu { background: #c9c2b5; box-shadow: 0 0 0 1.5px #fff; width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.mk.sel { box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px #fff, 0 4px 10px rgba(0, 0, 0, .4); z-index: 2; }
.mk-lieu { position: absolute; left: 0; top: 0; display: block; width: 160px; margin: -8px 0 0 -80px; text-align: center; font-size: 11px; font-weight: 700; color: #8a8172; letter-spacing: .01em; pointer-events: none; text-shadow: 0 0 3px #f7f3eb, 0 0 3px #f7f3eb, 0 0 3px #f7f3eb; white-space: nowrap; }
.mk-lieu.grand { font-size: 12.5px; font-weight: 800; color: #5f584d; }
.mk-ville { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: inline-flex; align-items: center; gap: 3px; margin: -26px 0 0 -10px; font-size: 12px; font-weight: 800; color: var(--accent); background: rgba(255, 255, 255, .9); padding: 2px 8px 2px 4px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.carte-ctrl { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; }
.carte-ctrl .rond { box-shadow: var(--ombre); }
.carte-echelle { position: absolute; left: 14px; top: 14px; margin: 0; display: grid; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); pointer-events: none; }
.carte-echelle i { display: block; height: 6px; border: 2px solid var(--ink-2); border-top: 0; }
.carte-aide { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; background: rgba(255, 255, 255, .92); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--ombre); }
.apercu { position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: 460px; margin: 0 auto; }
.ap-corps { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre-forte); }
.ap-ph { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: none; }
.ap-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ap-txt b { font: 400 24px/1 var(--display); }
.ap-txt > span:nth-child(2) { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-x { position: absolute; top: -14px; right: -6px; width: 32px; height: 32px; z-index: 1; box-shadow: var(--ombre); }

/* Liste */
.page.liste .seg { margin-bottom: 12px; }
.liste-tete { display: grid; gap: 10px; margin-bottom: 14px; }
.recherche { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.recherche .ico { color: var(--mut); }
.recherche input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; font-weight: 600; }
.tris { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.tris button { font-size: 13.5px; font-weight: 700; color: var(--mut); padding: 4px 0; }
.tris button.on { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
.tris .petit { margin-left: auto; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.g-carte { display: flex; flex-direction: column; text-align: left; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); }
.g-ph { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); display: block; }
.g-ph .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-prix { position: absolute; left: 10px; bottom: 8px; color: #fff; font: 400 24px/1 var(--display); text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.g-nb { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 7px; border-radius: 999px; }
.g-score { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .94); font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.g-corps { padding: 10px 11px 12px; display: grid; gap: 7px; }
.g-titre { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-corps small { font-size: 12px; }
.vide-txt { text-align: center; padding: 40px 0; }

/* Photos */
.ph { background: var(--bg-2); }
.ph-vide { display: grid; place-items: center; color: var(--mut); }
img.ph.ko { visibility: hidden; }

/* Suivi */
.suivi-tete { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.obj-rdv { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; background: var(--surface); padding: 8px 14px 10px; border-radius: 16px; box-shadow: var(--ombre); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.obj-rdv span { display: inline-flex; gap: 5px; align-items: center; }
.obj-rdv b { font: 400 22px/1 var(--display); color: var(--ink); text-align: right; }
.obj-rdv i { grid-column: 1 / 3; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--bg-2) var(--p)); margin-top: 6px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 84%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
.col { scroll-snap-align: start; background: var(--bg-2); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.kanban .col { flex: none; }
.col > header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.col > header h3 { margin: 0; font-size: 14px; font-weight: 800; flex: 1; }
.col > header b { font: 400 22px/1 var(--display); }
.col-corps { display: grid; gap: 8px; align-content: start; }
.col-vide { font-size: 13px; padding: 8px 6px; margin: 0; }
.cs { display: flex; align-items: stretch; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); overflow: hidden; }
.cs-corps { flex: 1; min-width: 0; display: flex; gap: 10px; padding: 10px; text-align: left; }
.cs-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.cs-txt { min-width: 0; display: grid; gap: 2px; font-size: 13.5px; align-content: start; }
.cs-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.cs-etat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.cs-etat.retard { color: var(--bad); }
.cs-etat.chaud { color: var(--accent); }
.cs-plus { width: 38px; display: grid; place-items: center; color: var(--mut); border-left: 1px solid var(--line); }
.perdus { margin-top: 10px; }
.perdus-liste { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); opacity: .75; }
.agenda { display: grid; gap: 20px; }
.ag-grp .titre-s { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ag-grp .titre-s small { font-size: 12px; color: var(--mut); background: var(--bg-2); border-radius: 999px; padding: 1px 8px; }
.ag-retard .titre-s { color: var(--bad); }
.ag-ligne { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); padding: 8px 10px; margin-bottom: 8px; }
.ag-corps { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; }
.ag-ph { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.ag-corps > span { display: grid; min-width: 0; }
.ag-corps b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-date input { border: 0; background: var(--surface-2); border-radius: 10px; padding: 6px 8px; font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); max-width: 140px; }
.vide-bloc { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 50px 20px; max-width: 420px; margin: 0 auto; }
.vide-bloc.petit { padding: 30px 16px; }
.vide-bloc p { margin: 0; }

/* Messages */
.msg-tete { margin-bottom: 12px; }
@media (max-width: 959px) { .msg-tete h2 { display: none; } }
.msg-tete p { margin: 4px 0 0; }
.lot { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; margin: 10px 0 4px; border-radius: 18px; background: var(--accent-soft); }
.lot > .ico { color: var(--accent); }
.lot span { flex: 1; display: grid; }
.lot .btn { font-style: normal; }
.matchs { margin-top: 14px; }
.matchs-rang { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.match-av { display: grid; justify-items: center; gap: 4px; width: 68px; flex: none; }
.match-av .ph { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--accent); }
.match-av small { font-size: 12px; font-weight: 700; max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convs { margin-top: 12px; background: var(--surface); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.conv { width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); position: relative; }
.conv:last-child { border-bottom: 0; }
.conv.on { background: var(--accent-soft); }
.conv-av { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; flex: none; }
.conv-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.conv-l1 { display: flex; align-items: center; gap: 6px; }
.conv-l1 b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-l1 small { margin-left: auto; font-size: 12px; color: var(--mut); white-space: nowrap; }
.site { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); flex: none; }
.conv-l2 { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-l3 { display: flex; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; }
.conv-l3 > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.conv-l3 .chaud { color: var(--ink); font-weight: 700; }
.conv-l3 .ko { color: var(--bad); font-weight: 700; }
.conv-l3 .ok { color: var(--mut); }
.conv.nonlu .conv-l1 b { font-weight: 800; }
.point { width: 9px; height: 9px; border-radius: 50%; background: var(--info); flex: none; }
.point.rouge { background: var(--bad); }

/* Conversation */
.fil { height: 100%; display: flex; flex-direction: column; background: var(--bg); min-height: 0; }
.fil-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
.fil-id { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; }
.fil-av { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; flex: none; }
.fil-id span { display: grid; min-width: 0; }
.fil-id b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-id small { font-size: 13px; color: var(--mut); }
.fil-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.fil-intro { text-align: center; padding: 10px 20px; }
.m { max-width: 86%; display: grid; gap: 3px; }
.m p { margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.m-de { font-size: 11.5px; font-weight: 700; color: var(--mut); display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; }
.m-moi { align-self: flex-end; justify-items: end; }
.m-moi p { background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.m-vendeur p { background: var(--surface); box-shadow: var(--ombre); border-bottom-left-radius: 6px; }
.m-claude p { background: var(--accent-soft); color: #4e3415; border-bottom-left-radius: 6px; }
.m-claude .m-de, .m-analyse .m-de { color: var(--accent); }
.m-analyse { max-width: 100%; align-self: stretch; }
.m-analyse p { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent), var(--ombre); border-radius: 14px; }
.m-analyse.appel p { box-shadow: inset 3px 0 0 var(--good), var(--ombre); }
.m-note { align-self: flex-end; justify-items: end; }
.m-note p { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); border-bottom-right-radius: 6px; }
.m-note.attente { opacity: .6; }
.m-sys { align-self: center; margin: 2px 0; font-size: 12px; font-weight: 600; color: var(--mut); text-align: center; max-width: 90%; }
.ecrit { align-self: flex-start; }
.points3 { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--accent-soft); border-radius: 18px; }
.points3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: rebond 1s infinite; }
.points3 i:nth-child(2) { animation-delay: .15s; } .points3 i:nth-child(3) { animation-delay: .3s; }
@keyframes rebond { 50% { transform: translateY(-4px); opacity: .5; } }
.prop { align-self: stretch; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--accent), var(--ombre); }
.prop-t { margin: 0 0 6px; font-weight: 800; display: flex; gap: 6px; align-items: center; color: var(--accent); }
.prop ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 2px; font-size: 14px; }
.fil-bas { padding: 10px 12px calc(10px + var(--bas)); display: grid; gap: 10px; background: var(--surface); border-top: 1px solid var(--line); max-height: 56%; overflow-y: auto; }
.brouillon textarea { field-sizing: content; min-height: 76px; max-height: 180px; }
.br-actions .btn { min-height: 42px; }
.brouillon { display: grid; gap: 8px; }
.br-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.brouillon textarea, .champ textarea, .champ input { width: 100%; border: 0; border-radius: 14px; padding: 11px 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; resize: vertical; outline: none; }
.brouillon textarea:focus, .champ textarea:focus, .champ input:focus, .claude-saisie textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.br-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.br-actions .btn-accent { flex: 1; min-width: 180px; }
.br-actions p { margin: 0; }
.brouillon > p { margin: 0; }
.claude-saisie { display: flex; gap: 8px; align-items: flex-end; }
.claude-saisie textarea { flex: 1; min-height: 44px; max-height: 140px; border: 0; border-radius: 22px; padding: 11px 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); resize: none; outline: none; font-size: 15px; field-sizing: content; }
.claude-saisie .rond { width: 44px; height: 44px; }
.alerte-ligne { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; font-weight: 700; font-size: 14px; margin: 0; }
.alerte-ligne.rouge { background: var(--bad-soft); color: var(--bad); }
.alerte-ligne.or { background: var(--accent-soft); color: #7a4f1d; }
.alerte-ligne span { flex: 1; }

/* Couches (fenêtres) */
#couches { position: relative; z-index: 20; }
.couche { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.voile { position: absolute; inset: 0; background: rgba(21, 19, 15, .42); animation: fondu .2s; }
.couche:not(.haut) .voile { background: transparent; }
@keyframes fondu { from { opacity: 0; } }
.c-boite { position: relative; width: 100%; max-height: 94%; background: var(--bg); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; box-shadow: var(--ombre-forte); animation: glisse .28s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
@keyframes glisse { from { transform: translateY(40px); opacity: .4; } }
.c-plein .c-boite, .c-fiche .c-boite { height: 100%; max-height: 100%; border-radius: 0; }
.c-plein .voile { display: none; }
.c-menu .c-boite { padding: 0 16px calc(16px + var(--bas)); gap: 12px; max-width: 520px; }
.c-match .c-boite { height: 100%; max-height: 100%; border-radius: 0; background: var(--ink); color: #f7f2e9; }
.f-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 10px; }
.f-tete p { margin: 4px 0 0; }
.c-menu .f-tete { padding: 18px 0 4px; }
.f-corps { flex: 1; overflow-y: auto; padding: 6px 18px 24px; display: grid; gap: 22px; align-content: start; grid-auto-rows: max-content; }
.f-corps section { display: grid; gap: 10px; }
.f-corps > section > .titre-xs { margin: 0; }
.f-bas { padding: 12px 18px calc(12px + var(--bas)); border-top: 1px solid var(--line); background: var(--surface); }
.champ { display: grid; gap: 5px; }
.champ > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.deux-champs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: var(--bg); padding: 6px 6px 6px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tag .ico { color: var(--accent-2); }
.tag small { opacity: .6; font-weight: 600; }
.tag button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.resultats { display: grid; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); overflow: hidden; }
.resultats button { display: flex; align-items: center; gap: 8px; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.resultats button:last-child { border-bottom: 0; }
.resultats .ico { color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.regle { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--mut); }
.pas { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); font-weight: 700; }
.pas > div { display: flex; align-items: center; gap: 12px; }
.pas b { font: 400 26px/1 var(--display); min-width: 28px; text-align: center; }
.pas .rond { width: 34px; height: 34px; }
.ligne-lien { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.ligne-lien > .ico:first-child { color: var(--accent); }
.ligne-lien span { display: grid; min-width: 0; }
.etapes { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.legal p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; max-width: 65ch; }
.legal h3 { margin-top: 10px; }
.menu-liste { display: grid; background: var(--surface); border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.menu-it { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 700; }
.menu-it:last-child { border-bottom: 0; }
.menu-it span { flex: 1; }
.menu-it.on { background: var(--accent-soft); }
.menu-it .ico { color: var(--accent); }
.achs { display: grid; gap: 8px; }
.ach { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.ach > .ico { color: var(--accent); }
.ach span { flex: 1; display: grid; min-width: 0; }
.lot-barre { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.lot-barre i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.lot-carte { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 18px; padding: 10px; box-shadow: var(--ombre); }
.lot-ph { width: 92px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.lot-carte p { margin: 0; }
.prix-l { font: 400 28px/1 var(--display); }
.col-btn { display: grid; gap: 8px; }

/* Fiche */
.fiche { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.fiche > .fiche-corps { flex: 1; overflow-y: auto; }
.galerie { position: relative; height: 42%; min-height: 230px; max-height: 420px; background: var(--bg-2); flex: none; }
.gal-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie .rond { position: absolute; background: rgba(255, 255, 255, .92); box-shadow: var(--ombre); }
.gal-x { top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; }
.gal-g { left: 12px; top: 50%; transform: translateY(-50%); }
.gal-d { right: 12px; top: 50%; transform: translateY(-50%); }
.gal-n { position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 9px; border-radius: 999px; }
.gal-site { position: absolute; left: 12px; bottom: 12px; }
.fiche-corps { padding: 18px 18px 24px; display: grid; gap: 22px; align-content: start; grid-auto-rows: max-content; }
.fiche-corps section { display: grid; gap: 8px; }
.fiche-corps section p { margin: 0; }
.fiche-corps > section > .titre-xs { margin: 0; }
.fc-tete { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.fc-tete p { margin: 4px 0 0; }
.prix-xl { font: 400 40px/1 var(--display) !important; margin: 0 !important; }
.prix-xl s { font: 600 16px var(--body); color: var(--mut); }
.raisons { display: flex; flex-wrap: wrap; gap: 6px; }
.raisons span { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: #6d4718; }
.ventes { display: grid; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ventes div { display: grid; grid-template-columns: 72px 1fr auto 86px; gap: 8px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ventes div:last-child { border-bottom: 0; }
.ventes span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ventes b { text-align: right; }
.hist { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.hist s { color: var(--mut); }
.carac { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.carac div { display: grid; background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.carac small { font-size: 11.5px; font-weight: 700; color: var(--mut); }
.carac b { font: 400 22px/1.1 var(--display); }
details summary { cursor: pointer; font-weight: 700; }
.desc p { margin-top: 8px !important; color: var(--ink-2); line-height: 1.55; }
.script { display: grid; gap: 10px; }
.sc-bloc { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: inset 3px 0 0 var(--good), inset 0 0 0 1px var(--line); }
.sc-bloc small { font-size: 11.5px; font-weight: 800; color: var(--good); text-transform: uppercase; letter-spacing: .08em; }
.sc-bloc p { margin: 4px 0 0 !important; font-size: 15px; }
.sc-bloc details { margin-top: 8px; }
.sc-bloc details p { color: var(--ink-2); }
.fiche-bas { display: flex; gap: 10px; padding: 12px 18px calc(12px + var(--bas)); background: var(--surface); border-top: 1px solid var(--line); }
.fiche-bas .btn { flex: 1; }
.fiche-bas .btn-ghost { flex: 0 0 auto; }
.fiche-bas:empty { display: none; }

/* Match */
.match { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; gap: 16px; padding: 30px 24px calc(30px + var(--bas)); background: radial-gradient(90% 60% at 50% 30%, rgba(210, 161, 96, .28), transparent 70%); }
.match .titre-xxl { font-size: 56px; color: var(--accent-2); }
.match .sur { display: flex; gap: 6px; align-items: center; }
.match-ph { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px var(--accent-2), 0 24px 60px rgba(0, 0, 0, .5); }
.match-ph .ph { width: 100%; height: 100%; object-fit: cover; }
.match p { margin: 0; max-width: 340px; color: rgba(247, 242, 233, .85); }
.match .col-btn { width: 100%; max-width: 340px; }

/* Mutés */
.mu-tete { padding: 6px 2px 14px; }
.mu-tete .mut { margin: 0; max-width: 62ch; }
.mu-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 12px; }
.mu-stats div { display: grid; background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--ombre); }
.mu-stats b { font: 400 30px/1 var(--display); }
.mu-stats small { font-size: 12px; font-weight: 700; color: var(--mut); line-height: 1.2; margin-top: 4px; }
.mu-actions { margin-bottom: 12px; }
.ach-grille { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ach-carte { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre); }
.ach-carte.fini { opacity: .6; }
.ac-av { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--accent-2); font-weight: 800; flex: none; }
.ac-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ac-txt b { font-size: 15px; }
.ac-txt small { display: flex; gap: 4px; align-items: flex-start; font-size: 13px; }
.ac-txt small .ico { margin-top: 2px; }
.ac-n { display: grid; justify-items: center; flex: none; min-width: 60px; }
.ac-n b { font: 400 30px/1 var(--display); }
.ac-n small { font-size: 12px; color: var(--mut); font-weight: 700; }
.ac-n i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); margin-top: 2px; white-space: nowrap; }
.vagues { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.vague { display: grid; gap: 2px; align-content: start; padding: 12px 14px; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.vague span { font-weight: 700; font-size: 14px; color: var(--accent); }
.vague small { font-size: 12.5px; }
.vague .pill { justify-self: start; margin-top: 6px; }
.vague.active { box-shadow: inset 0 0 0 1.5px var(--accent), var(--ombre); }
.emps { display: grid; gap: 8px; margin: 10px 0; }
.emp { background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); overflow: hidden; }
.emp-l { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; }
.emp-corps { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; }
.emp-corps > span:last-child { display: grid; min-width: 0; }
.emp-corps b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-corps small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.emp-det { display: grid; gap: 10px; padding: 4px 12px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.emp-det textarea, .note-ach, .carte-blanche textarea { width: 100%; border: 0; border-radius: 14px; padding: 11px 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; resize: vertical; outline: none; }
.carte-blanche textarea { margin: 6px 0 10px; }
.carte-blanche > p { margin: 0 0 8px; }
.emp-ajout { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.emp-ajout input { flex: 1 1 160px; min-width: 0; height: 40px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); outline: none; font-weight: 600; }
.sugg { display: grid; gap: 6px; margin-top: 10px; }
.sugg-l { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.sugg-l > span { flex: 1; display: grid; min-width: 0; }
.bp-liste { display: grid; gap: 8px; }
.bp { display: flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); padding-right: 6px; }
.bp.refus { opacity: .55; }
.bp-corps { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; }
.bp-ph { width: 64px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.bp-corps > span { display: grid; min-width: 0; }
.bp-corps b { font: 400 22px/1 var(--display); }
.bp-corps span span { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-corps small { font-size: 12px; }
.bp-coeur { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); flex: none; }
.bp-coeur.on { color: var(--accent); background: var(--accent-soft); }
.bp-coeur.on .ico { fill: var(--accent); }
.sel-liste { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-it { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.sel-ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.sel-it > span { display: grid; line-height: 1.15; }
.sel-it b { font: 400 18px/1 var(--display); }
.sel-it small { font-size: 12px; color: var(--mut); font-weight: 600; }
.sel-it button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); }
.kit { display: grid; gap: 8px; }
.kit > p { margin: 0; }
.kit-q { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); border-radius: 14px; box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.kit-q span { font-size: 14px; color: var(--ink-2); }
.kit-q small { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; }
.kit .titre-xs { margin: 6px 0 0; }
.case { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.case input { width: 20px; height: 20px; accent-color: var(--accent); }
.champ select { width: 100%; height: 44px; border: 0; border-radius: 14px; padding: 0 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }

/* Toast */
.toast-zone { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(96px + var(--bas)); display: flex; justify-content: center; pointer-events: none; }
body.a-couche .toast-zone { bottom: calc(86px + var(--bas)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 10px 8px 10px 16px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--ombre-forte); font-weight: 600; font-size: 14px; animation: glisse .25s; }
.toast span { flex: 1; }
.toast-act { color: var(--accent-2); font-weight: 800; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.toast-x { width: 30px; height: 30px; display: grid; place-items: center; opacity: .6; }
.toast-x .ico { width: 16px; height: 16px; }

/* Ordinateur */
@media (min-width: 960px) {
  #app { flex-direction: row; }
  #nav { width: 268px; flex: none; height: 100%; }
  #vue { padding-bottom: 32px; }
  .side { height: 100%; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--surface-2); overflow-y: auto; }
  .side-logo { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
  .side-logo b { font: 400 25px/1 var(--display); display: block; }
  .side-logo small { font-size: 10px; white-space: nowrap; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
  .side-nav { display: grid; gap: 4px; }
  .side .nav-it { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: 15px; border-radius: 14px; color: var(--ink-2); }
  .side .nav-it:hover { background: var(--bg-2); }
  .side .nav-it.on { background: var(--ink); color: var(--bg); }
  .side .nav-n { position: static; margin-left: auto; box-shadow: none; }
  .side-sec { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
  .side-lien { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .side-lien:hover { background: var(--bg-2); }
  .side-lien .ico { color: var(--accent); width: 18px; height: 18px; }
  .side-lien span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-maj { margin-top: auto; display: grid; gap: 8px; text-align: center; }
  .page { padding: 28px 32px 40px; }
  .page.decouvrir { padding: 18px 28px 22px; }
  .page.carte-page { padding: 18px 24px 22px; }
  .deux { grid-template-columns: 1fr 1fr; }
  .hero { padding: 28px 32px; gap: 30px; }
  .hero-anneau { width: 140px; height: 140px; }
  .kanban { grid-auto-flow: initial; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .page.messages.split { height: 100%; display: grid; grid-template-columns: 400px 1fr; gap: 0; padding: 0; max-width: none; }
  body[data-vue="messages"] #vue { padding-bottom: 0; overflow: hidden; }
  .msg-liste { overflow-y: auto; padding: 24px 20px; border-right: 1px solid var(--line); }
  .msg-pane { min-height: 0; display: flex; flex-direction: column; }
  .msg-pane .fil { height: 100%; }
  .msg-pane .fil-bas { max-height: 55%; }
  .couche { align-items: stretch; justify-content: flex-end; }
  .c-boite { width: 560px; max-height: none; height: 100%; border-radius: 26px 0 0 26px; animation-name: glisseG; }
  @keyframes glisseG { from { transform: translateX(40px); opacity: .4; } }
  .c-plein .c-boite, .c-fiche .c-boite { width: 640px; border-radius: 26px 0 0 26px; }
  .c-plein .voile { display: block; }
  .c-menu { align-items: center; justify-content: center; }
  .c-menu .c-boite { height: auto; border-radius: 24px; }
  .c-match { align-items: center; justify-content: center; }
  .c-match .c-boite { width: 520px; height: auto; min-height: 640px; border-radius: 28px; }
  .tabbar { display: none; }
  .toast-zone { bottom: 24px; left: 268px; }
}
@media (max-width: 560px) {
  .mu-stats { grid-template-columns: repeat(2, 1fr); }
  .ach-grille { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .titre-xl { font-size: 34px; }
  .hero { padding: 18px; gap: 14px; }
  .hero-anneau { width: 96px; height: 96px; }
  .hero-anneau b { font-size: 38px; }
  .sc-prix b { font-size: 38px; }
  .chiffres b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 959px) {
  body[data-vue="decouvrir"]:not(.a-couche) .toast-zone { bottom: auto; top: calc(66px + env(safe-area-inset-top, 0px)); }
}

/* Accès privé, sur invitation */
.acces-pastille { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: #7a4f1d; font-weight: 700; font-size: 13px; }
.acces-etat { display: flex; gap: 12px; align-items: flex-start; width: 100%; }
.acces-etat > .ico { color: var(--accent); flex: none; margin-top: 2px; }
.acces-form { display: grid; gap: 12px; width: 100%; }
.acces-form > p { margin: -6px 0 0; }
.acces-form input, .acces-form textarea { width: 100%; }
.acc-groupe { display: grid; gap: 8px; }
.acc-tit { margin: 0; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.acc-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: #7a4f1d; font-size: 12px; display: inline-grid; place-items: center; }
.acc-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.acc-qui { flex: 1; min-width: 0; display: grid; gap: 2px; }
.acc-qui small { font-size: 12.5px; overflow-wrap: anywhere; }
.acc-mot { color: var(--ink-2); font-style: italic; }
.acc-btns { display: flex; gap: 6px; flex: none; }
@media (max-width: 520px) { .acc-ligne { flex-direction: column; align-items: stretch; } .acc-btns > .btn { flex: 1; } }

/* Version autonome : connexion, accès directs aux sites, ajout d'annonce */
.cx-form { display: grid; gap: 12px; width: 100%; }
.cx-form > p { margin: 0; }
.cx-form input { width: 100%; }
.cx-form .lien { justify-self: start; }
.cx-erreur { color: var(--bad); font-weight: 700; }
.sites-grille { display: grid; gap: 8px; }
.sites-grille .ligne-lien { text-decoration: none; color: inherit; }
.sans-ia [data-act="emp-suggerer"], .sans-ia [data-act="post-linkedin"], .sans-ia [data-act="ach-kit"] { display: none !important; }
.acces-cree { display: grid; gap: 8px; width: 100%; }
.acces-cree p { margin: 0; }
.mdp-provisoire { font: 700 22px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; user-select: all; }

/* ===== Nouveautés : agence, alertes, équipe, avis de valeur ===== */
.logo-agence{border-radius:22%;object-fit:contain;background:#fff;display:block}
.marque-ligne{display:flex;gap:14px;align-items:center;margin:6px 0 12px}
.marque-logo{width:64px;height:64px;border-radius:16px;background:#fff;border:1px solid rgba(21,19,15,.1);display:grid;place-items:center;overflow:hidden;flex:none}
.marque-logo img{width:100%;height:100%;object-fit:contain}
.col-btn{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.fichier{cursor:pointer}
.couleur-ligne{display:flex;align-items:center;gap:12px}
.couleur-ligne input[type=color]{width:52px;height:36px;border:1px solid rgba(21,19,15,.15);border-radius:10px;padding:2px;background:#fff}
.bascule{display:flex;gap:10px;align-items:center;padding:8px 0;font-size:.95rem}
.bascule input{width:20px;height:20px;accent-color:var(--accent)}
.ligne-lien{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1px solid rgba(21,19,15,.08);border-radius:14px;padding:12px 14px;color:var(--ink);font:inherit;cursor:pointer}
.ligne-lien span{flex:1;display:flex;flex-direction:column;gap:2px}
.eq-totaux{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.eq-totaux div{background:var(--accent-soft);border-radius:14px;padding:10px 8px;text-align:center}
.eq-totaux b{display:block;font-size:1.35rem}
.eq-totaux small{font-size:.72rem;color:rgba(21,19,15,.65)}
.eq-table{display:flex;flex-direction:column;border:1px solid rgba(21,19,15,.08);border-radius:14px;overflow:hidden;margin-bottom:12px;background:#fff}
.eq-l{display:grid;grid-template-columns:minmax(0,2.4fr) repeat(5,minmax(0,1fr));gap:6px;align-items:center;padding:10px 12px;border-top:1px solid rgba(21,19,15,.06);font-size:.88rem;text-align:center}
.eq-l>span:first-child{text-align:left;display:flex;flex-direction:column;min-width:0}
.eq-l>span:first-child b,.eq-l>span:first-child small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eq-h{border-top:0;background:var(--bg);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:rgba(21,19,15,.6)}
.avis-apercu{border:1px solid rgba(21,19,15,.1);border-radius:14px;overflow:hidden;margin-bottom:14px;background:#fff;font-size:.82rem}
.avis{--marque:#a46f33;color:#15130f;background:#fff;padding:22px 20px;font-family:inherit;line-height:1.45}
.av-tete{display:flex;align-items:center;gap:12px;border-bottom:3px solid var(--marque);padding-bottom:12px;margin-bottom:16px}
.av-logo{width:52px;height:52px;object-fit:contain;border-radius:10px}
.av-logo-txt{display:grid;place-items:center;background:var(--marque);color:#fff;font-weight:700;font-size:1.1rem}
.av-agence{font-weight:700;margin:0}
.av-date{margin:0;color:#6b655c;font-size:.85em}
.av-titre{font-size:1.7em;margin:0 0 2px;color:var(--marque)}
.av-sous{margin:0 0 16px;color:#4a453e}
.av-bloc{margin:0 0 16px;break-inside:avoid}
.av-bloc h2{font-size:1.05em;margin:0 0 8px;color:var(--marque);text-transform:uppercase;letter-spacing:.04em}
.av-val{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.av-val>div{border:1px solid #e6dfd3;border-radius:12px;padding:12px}
.av-val small{display:block;color:#6b655c}
.av-val b{display:block;font-size:1.3em;margin:4px 0}
.av-val span{color:#6b655c;font-size:.9em}
.av-position{background:#f7f2ea;border-left:4px solid var(--marque);padding:10px 12px;border-radius:6px;margin:0 0 16px}
.av-carac{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px}
.av-carac small{display:block;color:#6b655c}
.avis table{width:100%;border-collapse:collapse;font-size:.92em}
.avis th{text-align:left;font-weight:600;color:#6b655c;border-bottom:1px solid #e6dfd3;padding:6px 4px}
.avis td{padding:6px 4px;border-bottom:1px solid #f0ebe2}
.av-methode p{color:#4a453e;font-size:.92em}
.av-pied{border-top:1px solid #e6dfd3;padding-top:10px;font-size:.9em}
.av-pied small{display:block;color:#8a8378;margin-top:4px}
#impression{display:none}
@media print{
  @page{size:A4;margin:14mm}
  body>*:not(#impression){display:none!important}
  #impression{display:block!important}
  #impression .avis{padding:0;font-size:11pt}
  body{background:#fff!important}
}

.liens-sites{display:flex;flex-wrap:wrap;gap:8px}

/* Pistes LinkedIn repérées par le robot */
.pistes { display: grid; gap: 10px; }
.piste { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.piste-t { display: grid; gap: 2px; }
.piste p { margin: 8px 0; }
.piste .rang { flex-wrap: wrap; gap: 6px; }

/* ---------- Localisateur : adresse exacte ---------- */
.loc-piste { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
.loc-piste.valide { box-shadow: inset 0 0 0 2px var(--good); }
.loc-vue { position: relative; width: 128px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e9e4da; }
.loc-vue img, .loc-vue svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loc-vue img { object-fit: cover; }
.loc-vue polygon { fill: rgba(255, 59, 48, .12); stroke: #ff3b30; stroke-width: 2; vector-effect: non-scaling-stroke; }
.loc-vue circle { fill: var(--accent-2); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.loc-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.loc-adr { font-size: 15px; line-height: 1.3; }
.loc-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; background: var(--mut); }
.loc-badge.n4 { background: var(--good); } .loc-badge.n3 { background: var(--info); } .loc-badge.n2 { background: var(--accent); }
.loc-ia { font-size: 13px; background: var(--info-soft, #eef3fb); border-radius: 10px; padding: 6px 9px; }
.loc-raisons { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink); }
.loc-liens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.loc-autres summary { cursor: pointer; font-weight: 700; color: var(--accent); margin: 2px 0 10px; }
.loc .lien { margin-top: 4px; }
.loc-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 12px; border-radius: 14px; background: var(--accent-soft); }
@media (max-width: 420px) { .loc-piste { grid-template-columns: 1fr; } .loc-vue { width: 100%; } }

.loc-3d { position: fixed; inset: 0; z-index: 9999; background: #111; display: flex; flex-direction: column; }
.loc-3d-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface, #fff); }
.loc-3d-tete small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.loc-3d-carte { flex: 1; min-height: 0; position: relative; }
.loc-3d-boutons { display: flex; gap: 6px; }
.loc-3d-voile { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(17,17,17,.82); color: #fff; font-weight: 700; letter-spacing: .02em; }
.loc-3d-sous-titre { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; width: min(680px, 92%); padding: 12px 16px; border-radius: 14px; background: rgba(17,17,17,.78); color: #fff; font-size: 15.5px; line-height: 1.45; text-align: center; backdrop-filter: blur(6px); }
.loc-3d-repere { padding: 5px 9px; border-radius: 99px; background: #fff; color: #1b1b1b; font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }
.loc-3d-fiche { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.loc-3d-fiche b { font-size: 14px; }
.loc-3d-photo .cesium-viewer, .loc-3d-photo .cesium-widget { position: absolute; inset: 0; }
.loc-3d-photo .cesium-viewer-bottom { z-index: 2; }
.loc-3d-fiche-fixe { position: absolute; left: 14px; top: 14px; z-index: 4; display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 13.5px; max-width: min(320px, 80%); }
.loc-3d-tete > div:first-child { min-width: 0; }
.loc-3d-tete b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .loc-3d-tete { padding: 8px 10px; gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); }
  .loc-3d-tete b { font-size: 13.5px; }
  .loc-3d-tete small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .loc-3d-boutons { gap: 4px; flex-shrink: 0; }
  .loc-3d-boutons .btn { padding: 6px 8px; font-size: 12.5px; min-height: 0; }
  .loc-3d-fiche-fixe { left: 8px; right: 8px; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); max-width: none; padding: 9px 12px; font-size: 12px; }
  .loc-3d-fiche-fixe b { font-size: 12.5px; }
  .loc-3d-sous-titre { bottom: max(14px, env(safe-area-inset-bottom)); font-size: 14px; padding: 9px 12px; }
  .loc-3d-repere { font-size: 11px; padding: 4px 7px; }
}
.loc-3d-rue { position: absolute; inset: 0; z-index: 3; background: #111; }
.loc-3d-rue[hidden] { display: none; }
.loc-3d-rue-vue { position: absolute; inset: 0; }
.loc-3d-rue-credit { position: absolute; left: 10px; top: 10px; z-index: 5; padding: 5px 10px; border-radius: 99px; background: rgba(17,17,17,.7); color: #fff; font-size: 11.5px; }
.loc-3d-approche canvas { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.loc-3d-int { background: #0d0d0d; overflow: hidden; }
.loc-3d-int-img { position: absolute; inset: 0; }
.loc-3d-int-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease, transform 4.5s linear; transform: scale(1.0); }
.loc-3d-int-img img.plan { object-fit: contain; background: #fff; }
.loc-3d-int-img img.vu { opacity: 1; }
.loc-3d-int-img img.kb0.vu { transform: scale(1.08) translate(-1.5%, -1%); }
.loc-3d-int-img img.kb1.vu { transform: scale(1.08) translate(1.5%, 1%); }
.loc-3d-int-img img.kb2.vu { transform: scale(1.06) translate(1%, -1.5%); }
.loc-3d-int-img img.kb3.vu { transform: scale(1.07) translate(-1%, 1.5%); }
.loc-3d-int-img img.plan.vu { transform: scale(1.03); }
/* visite : bulles des lieux, repère du bien, chapitres */
.loc-3d-repere.pop { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 99px; animation: loc-pop .45s cubic-bezier(.2,1.6,.4,1) both; transform-origin: 50% 100%; transition: opacity .4s, transform .4s; }
.loc-3d-repere .ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff3d6; font-size: 15px; }
.loc-3d-repere b { display: block; font-size: 12px; line-height: 1.15; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.loc-3d-repere small { display: block; font-size: 10.5px; font-weight: 600; color: #2a8a4a; }
.loc-3d-repere.loin { opacity: .55; transform: scale(.85); }
@keyframes loc-pop { 0% { opacity: 0; transform: translateY(8px) scale(.3); } 70% { opacity: 1; transform: translateY(0) scale(1.08); } 100% { transform: scale(1); } }
.loc-3d-bien { position: relative; width: 34px; height: 34px; }
.loc-3d-bien b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #c8102e; color: #fff; font-size: 16px; box-shadow: 0 4px 14px rgba(200,16,46,.5); }
.loc-3d-bien i { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(200,16,46,.75); animation: loc-pulse 1.6s ease-out infinite; }
@keyframes loc-pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.loc-3d-chap { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(17,17,17,.55); backdrop-filter: blur(6px); max-width: calc(100% - 70px); overflow: hidden; }
.loc-3d-chap span { padding: 4px 9px; border-radius: 99px; color: rgba(255,255,255,.55); font-size: 11.5px; font-weight: 700; white-space: nowrap; transition: all .35s; }
.loc-3d-chap span.fait { color: rgba(255,255,255,.85); }
.loc-3d-chap span.actif { background: #fff; color: #161616; transform: scale(1.06); }
@media (max-width: 640px) { .loc-3d-chap { align-items: center; } .loc-3d-chap span:not(.actif) { font-size: 0; width: 8px; height: 8px; padding: 0; background: rgba(255,255,255,.3); } .loc-3d-chap span.fait:not(.actif) { background: rgba(255,255,255,.9); } }
.loc-3d-sous-titre { animation: loc-mont .35s ease both; }
@keyframes loc-mont { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.loc-3d-fiche-fixe.pop { animation: loc-pop .5s cubic-bezier(.2,1.5,.4,1) both; }
.loc-3d-approche.sort { opacity: 0; transition: opacity .4s; }
.loc-3d-html { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.loc-3d-pin { position: absolute; left: 0; top: 0; will-change: transform; }
.loc-3d-pin > .ancre { transform: translate(-50%, -100%); }
.loc-3d-pin > .ancre-c { transform: translate(-50%, -50%); }

/* case pour coller une clé (jeton Cesium, clé Gemini…) */
.loc-cle-case { display: grid; gap: 8px; margin: 6px 0 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.loc-cle-txt { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.loc-cle-case input { width: 100%; height: 44px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.loc-cle-b { display: flex; gap: 8px; flex-wrap: wrap; }

/* preuves de l'adresse en fin de visite */
.loc-3d-pourquoi { display: grid; gap: 3px; margin-top: 6px; padding-top: 7px; border-top: 1px solid rgba(0,0,0,.1); }
.loc-3d-pourquoi small { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; color: #8a6a3b; }
.loc-3d-pourquoi span { font-size: 12.5px; line-height: 1.3; }
.loc-3d-fiche-fixe { max-height: calc(100% - 90px); overflow: auto; }
.loc-3d-fiche-fixe { top: 58px; max-height: calc(100% - 130px); }

.loc-fiab { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }

.loc-autres-ia { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 4px 0 8px; font-size: 13px; }
.loc-autres-ia > span { color: var(--ink-2); font-size: 12.5px; }

/* DPE complet */
.loc-dpe { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.loc-dpe summary { cursor: pointer; font-weight: 700; list-style: none; }
.loc-dpe summary::-webkit-details-marker { display: none; }
.loc-dpe.charge { color: var(--ink-2); font-weight: 600; }
.loc-dpe-grille { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px 12px; margin: 8px 0 6px; }
.loc-dpe-grille span { color: var(--ink-2); }
.loc-dpe-grille b { font-weight: 600; }
.loc-dpe summary b[class^="dpe-"] { display: inline-block; min-width: 22px; text-align: center; border-radius: 6px; color: #fff; padding: 0 5px; }
.dpe-A { background: #009c6d; } .dpe-B { background: #52b153; } .dpe-C { background: #a5cc74; color: #1d1d1d !important; } .dpe-D { background: #f4e70f; color: #1d1d1d !important; }
.dpe-E { background: #f0b40f; color: #1d1d1d !important; } .dpe-F { background: #eb8235; } .dpe-G { background: #d7221f; }

.loc-sur-dpe { margin: 2px 0 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.loc-dpe-pos { font-weight: 700; color: var(--accent); }

.loc-dpe-dossier { margin-top: 8px; }
.dpe-zone { position: fixed; inset: 0; z-index: 9999; background: #ece8e6; display: flex; flex-direction: column; }
.dpe-zone-barre { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: #2a2224; color: #fff; font: 600 14px Helvetica, Arial, sans-serif; flex-wrap: wrap; }
.dpe-zone-barre span { flex: 1; min-width: 120px; }
.dpe-zone-barre button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.dpe-zone-barre button.pdf { background: #a70d35; border: 0; }
.dpe-zone iframe { flex: 1; width: 100%; border: 0; }

.loc-officiel { display: inline-block; margin: 2px 0 4px; padding: 2px 10px; border-radius: 999px; background: #e2f3e6; color: #1e7a3c; font-size: 12px; font-weight: 800; }

/* ---------- Carte vidéo : vignette qui lance la visite 3D commentée ---------- */
.loc-video { display: block; cursor: pointer; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 6px 22px rgba(20, 14, 16, .14), inset 0 0 0 1px var(--line); margin-bottom: 12px; transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.loc-video:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 14, 16, .2), inset 0 0 0 1px var(--line); }
.loc-video:active { transform: scale(.985); }
.loc-video-img { position: relative; aspect-ratio: 16 / 9; background: #2a2224; overflow: hidden; }
.loc-video-img img, .loc-video-img svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loc-video-img img { object-fit: cover; filter: saturate(1.05) contrast(1.04); }
.loc-video-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55)); }
.loc-video-img polygon { fill: rgba(255, 59, 48, .14); stroke: #ff3b30; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.loc-video-img circle { fill: #ffcc00; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.loc-video-play { position: absolute; right: 12px; bottom: 10px; z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.loc-video-play::before { content: ''; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #a70d35; }
.loc-video-tag { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.loc-video-conf { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: var(--mut); }
.loc-video-conf.n4 { background: var(--good); } .loc-video-conf.n3 { background: var(--info); } .loc-video-conf.n2 { background: var(--accent); }
.loc-video-txt { display: grid; gap: 2px; padding: 10px 14px 12px; position: relative; }
.loc-video-txt b { font-size: 15px; line-height: 1.3; }
.loc-video-txt span { font-size: 13px; color: var(--mut); }
.loc-video-lien { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 99px; background: var(--surface-2, #f3eef0); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.loc-video.mini { margin: 0; border-radius: 14px; }
.loc-video.mini .loc-video-play { width: 38px; height: 38px; right: 8px; bottom: 8px; }
.loc-video.mini .loc-video-play::before { left: 15px; top: 11px; border-width: 8px 0 8px 13px; }
.loc-video.mini .loc-video-tag { display: none; }
.loc-video.mini .loc-video-txt { padding: 8px 10px 10px; }
.loc-video.mini .loc-video-txt b { font-size: 13.5px; }
.loc-video.mini .loc-video-txt span { font-size: 12px; }
.loc-galerie { position: fixed; inset: 0; z-index: 9990; background: var(--bg, #f6f2ef); display: flex; flex-direction: column; }
.loc-galerie-barre { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.loc-galerie-barre b { font-size: 17px; } .loc-galerie-barre small { font-weight: 600; color: var(--mut); margin-left: 4px; }
.loc-galerie-grille { flex: 1; overflow: auto; padding: 14px; display: grid; grid-auto-rows: max-content; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-content: start; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .loc-galerie-grille { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; } }
.loc-video-depart { position: fixed; inset: 0; z-index: 9995; display: grid; grid-auto-rows: max-content; place-items: center; align-content: center; gap: 12px; padding: 20px; background: rgba(20, 14, 16, .78); backdrop-filter: blur(6px); }
.loc-video-depart .loc-video { width: min(560px, 100%); }
.loc-video-depart p { color: #fff; margin: 0; text-align: center; font-weight: 600; }
/* Mes connexions aux sites */
.cx-liste { display: grid; gap: 8px; margin: 10px 0; }
.cx-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.cx-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--accent); font-weight: 700; flex: none; }
.cx-nom { display: grid; flex: 1; min-width: 0; }
.cx-nom small { font-size: 12px; }
.cx-ligne.ok .cx-nom small { color: var(--accent); }
/* Équipe : qui a contacté, messageries des membres */
.contact-par { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--accent); line-height: 1.3; }
.contact-par .ico { width: 13px; height: 13px; flex: none; }
.contact-par.sur-photo { color: #fff; background: rgba(0, 0, 0, .38); padding: 4px 10px; border-radius: 999px; width: max-content; max-width: 100%; margin-top: 6px; }
.equipe-msg { margin-bottom: 8px; }
.mm-conv { margin-bottom: 8px; }
.mm-ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.mm-fil { display: grid; gap: 8px; padding: 10px 4px 4px; }
.mm-b { padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--ombre); max-width: 92%; }
.mm-b small { display: block; font-size: 11px; color: var(--mut, #8a7f74); margin-bottom: 3px; }
.mm-b p { margin: 0; white-space: pre-wrap; font-size: 14px; }
.mm-b.moi { justify-self: end; background: #f6efe3; }
.mm-b.note { justify-self: center; background: transparent; box-shadow: none; font-style: italic; }

/* ---- DPE à suivre ---- */
.dpe-o { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
html.dpe-ouvert body { overflow: hidden; }
.dpe-haut { padding: max(12px, env(safe-area-inset-top)) 14px 8px; display: grid; gap: 8px; background: var(--bg); box-shadow: 0 1px 0 var(--line); z-index: 2; }
.dpe-t { display: flex; align-items: center; gap: 12px; }
.dpe-t h2 { margin: 0; }
.dpe-onglets { display: flex; background: var(--bg-2); border-radius: 12px; padding: 3px; }
.dpe-onglets button { flex: 1; min-height: 34px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.dpe-onglets button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21,19,15,.12); }
.dpe-haut .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.dpe-carte { flex: 1; min-height: 0; position: relative; }
.dpe-liste { flex: 1; overflow-y: auto; padding: 10px 14px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; align-content: start; }
.dpe-bas { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 3; max-height: 55vh; overflow-y: auto; }
.dpe-carte-item { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 0 var(--line), 0 6px 22px rgba(21,19,15,.08); display: grid; gap: 6px; }
.dpe-carte-item.suivi { box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 22px rgba(21,19,15,.08); }
.dpe-l1 { display: flex; align-items: flex-start; gap: 10px; }
.dpe-adr { flex: 1; display: grid; gap: 1px; min-width: 0; }
.dpe-adr b { font-size: 15px; }
.dpe-et { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.dpe-l2, .dpe-l3 { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.dpe-libre { color: var(--good); }
.dpe-statuts { display: flex; gap: 6px; flex-wrap: wrap; }
.dpe-note { width: 100%; min-height: 38px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; background: var(--surface-2); font: inherit; font-size: 14px; }
.dpe-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-dpe { background: var(--ink); color: var(--bg); }

/* ---- Visite : plan vu de haut, puis récap à pied ---- */
.loc-plan { position: absolute; inset: 0; z-index: 3; background: #0f0e0c; transition: opacity 1.2s ease; }
.loc-plan.fondu { opacity: 0; pointer-events: none; }
.loc-plan > .loc-plan-carte { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-plan-titre { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: 90%; padding: 9px 15px; border-radius: 99px; background: rgba(17,17,17,.78); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(6px); animation: loc-mont .5s ease both; }
.loc-plan-pin { width: 34px; height: 44px; display: grid; justify-items: center; }
.loc-plan-pin i { width: 28px; height: 28px; margin-top: 2px; border-radius: 50% 50% 50% 0; background: #ff2a2a; transform: rotate(-45deg); box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(0,0,0,.45); animation: loc-pin 1.3s ease-in-out infinite; }
@keyframes loc-pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.loc-marcheur { font-size: 26px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.55)); transform: scaleX(-1); animation: loc-pas .32s ease-in-out infinite alternate; }
@keyframes loc-pas { from { translate: 0 0; } to { translate: 0 -3px; } }
.loc-recap { position: absolute; right: 12px; top: 58px; z-index: 4; width: min(250px, 62%); display: grid; gap: 4px; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 8px 26px rgba(0,0,0,.22); animation: loc-pop .5s cubic-bezier(.2,1.5,.4,1) both; }
.loc-recap > b { font-size: 13px; margin-bottom: 2px; }
.lr-l { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 7px; font-size: 12.5px; opacity: .38; transition: opacity .35s, transform .35s; }
.lr-l.ok { opacity: 1; transform: translateX(-2px); }
.lr-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff3d6; font-size: 13px; }
.lr-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lr-m { font-weight: 800; color: #2a8a4a; }
.lr-l.ok .lr-m::after { content: ' ✓'; }
.loc-recap.fini { box-shadow: inset 0 0 0 2px #2a8a4a, 0 8px 26px rgba(0,0,0,.22); }
.loc-3d-fiche-fixe { align-content: start; }

/* ---- Bouton « Lancer la vidéo » de la fiche ---- */
.loc-video-cta { margin-top: 10px; border: 0; cursor: pointer; }
.loc-video-cta i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }

/* ---- Cartes Google : logo et mentions obligatoires ---- */
.g-marque { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 34px 3px 6px; pointer-events: none; }
.g-marque img { width: 66px; height: 26px; flex: none; }
.g-marque span { font: 500 10px/1.3 system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.9); text-align: right; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-marque.clair span { color: #3c4043; text-shadow: 0 0 3px #fff; }
.maplibregl-ctrl-bottom-left { bottom: 26px; }
.dpe-bas ~ .g-marque, .loc-plan .g-marque { z-index: 3; }

/* ---- GPS : « Y aller » ---- */
.gps-btn { white-space: nowrap; }
.ap-gps { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 4px; }
.ap-gps .gps-btn { box-shadow: var(--ombre-forte); }
.ap-gps small { font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.loc-video-pied { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.loc-video-pied .loc-video-lien { margin-top: 0; }
.gps-choix { position: fixed; inset: 0; z-index: 10050; background: rgba(15,12,10,.45); display: flex; align-items: flex-end; justify-content: center; animation: gps-fondu .2s ease both; }
@keyframes gps-fondu { from { opacity: 0; } }
@keyframes gps-monte { from { transform: translateY(30px); } }
.gps-feuille { animation: gps-monte .28s cubic-bezier(.2,.9,.3,1) both; width: min(460px, 100%); background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.gps-feuille > b { font-size: 16px; margin: 2px 4px 6px; }
.gps-app { min-height: 50px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); }
.gps-app.on { box-shadow: inset 0 0 0 2px var(--accent); }
.gps-retenir { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); margin: 4px 4px 0; }
.gps-retenir small { color: var(--mut); }
.gps-annuler { min-height: 44px; font: inherit; font-weight: 600; color: var(--mut); background: none; }
