/* Roady — base du thème (couleurs finales dans theme.css : « Mono ») */
:root {
  --bg: #f6f7f6; --card: #ffffff; --ink: #18181b; --ink-2: #3f3f46; --muted: #71717a; --line: #e4e4e7; --line-2: #f0f0f1;
  --accent: #059669; --accent-dark: #047857; --accent-soft: #ecfdf5; --accent-ring: rgba(5, 150, 105, .18);
  --nav: #18181b; --nav-ink: #a1a1aa;
  --ok: #059669; --warn: #b45309; --err: #dc2626;
  --radius: 12px; --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 0 0 1px rgba(24, 24, 27, .05);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.015em; margin: 4px 0 14px; }
h2 { font-size: 13px; font-weight: 600; margin: 0 0 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 14px; margin: 10px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: .95em; }
.pos { color: var(--ok); } .neg { color: var(--err); } .r { text-align: right; } .right { text-align: right; margin-top: 10px; }
.pre { white-space: pre-wrap; } .inline { display: inline; } .hp { position: absolute; left: -5000px; }

/* Barre du haut — graphite */
.topbar { display: flex; align-items: center; gap: 18px; background: var(--nav); color: #fff; padding: 0 20px; height: 56px; position: sticky; top: 0; z-index: 10; }
.topbar nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.topbar nav a { color: var(--nav-ink); padding: 7px 11px; border-radius: 8px; white-space: nowrap; font-weight: 500; transition: color .15s, background .15s; }
.topbar nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.topbar nav a.active { color: #fff; background: rgba(16, 185, 129, .16); box-shadow: inset 0 -2px 0 #10b981; }
.brand { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.brand:hover { color: #fff; }
.brand.big { color: var(--ink); font-size: 26px; justify-content: center; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #34d399, #047857); color: #fff; font-weight: 800; }
.userbox { display: flex; gap: 12px; align-items: center; }
.userbox .muted { color: var(--nav-ink); }
.userbox .link { color: #e4e4e7; font-weight: 500; }
.userbox .link:hover { color: #34d399; }
.burger { display: none; cursor: pointer; font-size: 20px; }

main.app { max-width: 1320px; margin: 0 auto; padding: 24px; }
main.bare { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 50% -10%, #d1fae5 0%, var(--bg) 60%); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.login-card { width: 100%; max-width: 380px; text-align: center; padding: 32px; }
.login-card form { text-align: left; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pagehead h1 { margin-bottom: 4px; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.grid2 > .card, .grid2 > form.card { margin-bottom: 0; }
.grid2 + .card, .grid2 + section, .card + .grid2 { margin-top: 16px; }

/* Boutons & formulaires */
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 500; line-height: 1.3; transition: all .15s; }
.btn:hover { border-color: #d4d4d8; background: #fafafa; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(4, 120, 87, .25); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.on { background: var(--accent-soft); border-color: #a7f3d0; color: var(--accent-dark); }
.link { background: none; border: 0; color: var(--accent-dark); cursor: pointer; font: inherit; padding: 0; }
.link.danger, .danger { color: var(--err); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: #fafafa; color: var(--ink-2); }
.form h2 { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.form h2:first-of-type { margin-top: 0; padding-top: 0; border: 0; }
.cols2, .cols4 { display: grid; gap: 12px; margin-bottom: 12px; }
.cols2 { grid-template-columns: repeat(2, 1fr); } .cols4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.actions { margin-top: 16px; display: flex; gap: 8px; }
.rowform { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.rowform > * { width: auto; flex: 1 1 120px; }
.rowform .btn { flex: 0 0 auto; }
.checksrow { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; min-width: 160px; }
.copy { width: 100%; max-width: 640px; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; }

/* Tableaux */
.tablewrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .tablewrap { box-shadow: none; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafafa; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl.hover tr:hover td { background: #f4fbf8; cursor: pointer; }
.tbl tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
.tbl.small td { font-size: 12px; }
.tbl.lines td { padding: 6px; }
.tbl.lines textarea { min-height: 38px; }
.thumb { width: 64px; } .thumb img { width: 60px; height: 42px; object-fit: cover; border-radius: 6px; display: block; }
tr.late td { background: #fef2f2; }

/* Badges — tons neutres + vert, couleurs sémantiques réservées aux alertes */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #f4f4f5; color: #52525b; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.s-purchase { background: #f4f4f5; color: #52525b; } .s-prep { background: #fffbeb; color: #b45309; } .s-for_sale { background: #ecfdf5; color: #047857; }
.s-reserved { background: #f0fdfa; color: #0f766e; } .s-sold { background: #18181b; color: #fafafa; } .s-archived { background: #f4f4f5; color: #a1a1aa; }
.l-new { background: #f4f4f5; color: #3f3f46; } .l-contacted { background: #f0fdfa; color: #0f766e; } .l-test_drive { background: #ecfeff; color: #0e7490; }
.l-offer { background: #fffbeb; color: #b45309; } .l-won { background: #ecfdf5; color: #047857; } .l-lost { background: #fef2f2; color: #b91c1c; }
.d-draft { background: #f4f4f5; color: #71717a; } .d-issued { background: #f0fdfa; color: #0f766e; } .d-signed { background: #ecfeff; color: #0e7490; }
.d-paid { background: #ecfdf5; color: #047857; } .d-cancelled { background: #fef2f2; color: #b91c1c; }
.r-in { background: #ecfdf5; color: #047857; } .r-out { background: #f4f4f5; color: #3f3f46; } .r-correction { background: #fffbeb; color: #b45309; }

/* Tableau de bord */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .85; }
.kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border: 0; }
.list li.warn::before { content: "⚠ "; color: var(--warn); }
.bar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.bar div { background: #f4f4f5; border-radius: 99px; height: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar i.s-prep { background: #d4d4d8; } .bar i.s-purchase { background: #a1a1aa; } .bar i.s-reserved { background: #34d399; } .bar i.s-sold { background: #18181b; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid transparent; }
.flash.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; } .flash.err { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.flash.info { background: #f4f4f5; color: var(--ink-2); border-color: var(--line); }
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { padding: 5px 0 5px 24px; position: relative; }
.checks li::before { position: absolute; left: 0; }
.checks li.ok::before { content: "✔"; color: var(--ok); } .checks li.warn::before { content: "⚠"; color: var(--warn); } .checks li.error::before { content: "✖"; color: var(--err); }
.checks li.error { color: var(--err); font-weight: 500; }
ul.checks.card { padding: 14px 20px; }

.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 160px; height: 110px; object-fit: cover; border-radius: 8px; display: block; }
.photos figcaption { position: absolute; top: 5px; right: 6px; background: rgba(255, 255, 255, .92); border-radius: 6px; padding: 0 6px; display: flex; gap: 6px; }
.cols-list { columns: 2; padding-left: 18px; }

.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .col { background: #efefef; border-radius: var(--radius); padding: 10px; min-height: 300px; transition: background .15s; }
.kanban .col.over { background: #d1fae5; }
.kanban h3 { margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: grab; transition: box-shadow .15s; }
.kcard:hover { box-shadow: 0 4px 12px rgba(24, 24, 27, .08), 0 0 0 1px rgba(5, 150, 105, .3); }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.timeline li { border-left: 2px solid var(--line); padding: 4px 0 12px 14px; }
.timeline li.todo { border-color: #f59e0b; }
.tabs { display: inline-flex; gap: 2px; margin-bottom: 14px; flex-wrap: wrap; background: #ececec; padding: 3px; border-radius: 10px; }
.tabs a { padding: 6px 13px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.totals { margin: 16px 0 16px auto; max-width: 380px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 1px solid var(--line); font-size: 15px; margin-top: 4px; padding-top: 8px; }
.totals .grand b { color: var(--accent-dark); }

/* Partie publique */
body.public { background: #fafafa; }
.pubbar { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; position: sticky; top: 0; z-index: 5; }
.pubbar .brand { color: var(--ink); }
.pubbar nav { display: flex; gap: 18px; }
.pubbar nav a { color: var(--ink-2); font-weight: 500; }
.pubbar nav a:hover { color: var(--accent); }
.pubmain { max-width: 1200px; margin: 0 auto; padding: 28px; }
.pubfoot { text-align: center; color: var(--muted); font-size: 12px; padding: 32px 20px; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.vcard { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(24, 24, 27, .1); color: var(--ink); }
.vcard .img { aspect-ratio: 4/3; background: #f4f4f5; display: grid; place-items: center; font-size: 48px; position: relative; }
.vcard .img img { width: 100%; height: 100%; object-fit: cover; }
.vcard .body { padding: 14px 16px; }
.vcard h3 { margin: 0; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.price { font-size: 19px; font-weight: 700; color: var(--accent-dark); margin: 6px 0 0; letter-spacing: -.01em; }
.price.big { font-size: 30px; }
.pubgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.gallery img#mainphoto { width: 100%; border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 6px; margin: 8px 0 16px; overflow-x: auto; }
.gallery .thumbs img { width: 90px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.nophoto { aspect-ratio: 4/3; background: #f4f4f5; border-radius: 14px; display: grid; place-items: center; font-size: 80px; }
.signbox { max-width: 680px; margin: 0 auto; }
#sigpad { width: 100%; max-width: 600px; height: auto; aspect-ratio: 3/1; border: 2px dashed #d4d4d8; border-radius: 12px; background: #fff; touch-action: none; }
#sigpad:hover { border-color: var(--accent); }
#sigpad.shake { border-color: var(--err); }

@media (max-width: 900px) {
  .cols4 { grid-template-columns: repeat(2, 1fr); }
  .grid2, .pubgrid { grid-template-columns: 1fr; }
  .burger { display: block; margin-left: auto; color: #e4e4e7; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; }
  .topbar nav { display: none; flex-basis: 100%; flex-direction: column; }
  #navtoggle:checked ~ nav { display: flex; }
  .userbox { flex-basis: 100%; justify-content: flex-end; padding-bottom: 6px; }
}
@media (max-width: 560px) { .cols4, .cols2 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } main.app { padding: 12px; } }
@media print { .topbar, .btns, .actions, form.right { display: none !important; } .card { box-shadow: none; } }

/* Données véhicules, 360° et 3D */
.vinrow { display: flex; gap: 6px; }
.vinrow input { flex: 1; }
.vinrow .btn { white-space: nowrap; }
input.autofilled, select.autofilled { background: var(--accent-soft); border-color: #6ee7b7; }
.provider { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.provider .phead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.provider .phead a { margin-left: auto; }
.provider p { margin: 4px 0 10px; }
.muted-p { background: #fafafa; }
.spin { position: relative; border-radius: 12px; overflow: hidden; background: #f4f4f5; cursor: grab; user-select: none; touch-action: pan-y; aspect-ratio: 4/3; }
.spin.grab { cursor: grabbing; }
.spin img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.spinhint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(24,24,27,.8); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; pointer-events: none; }
.spin.big { border-radius: 14px; }
.mediatabs { display: inline-flex; gap: 2px; background: #ececec; padding: 3px; border-radius: 10px; margin-bottom: 10px; }
.mediatabs button { border: 0; background: none; font: inherit; font-weight: 600; padding: 6px 16px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.mediatabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.mediabadges { position: absolute; right: 10px; top: 10px; display: flex; gap: 5px; }
.mediabadges i { font-style: normal; font-size: 11px; font-weight: 700; background: rgba(24,24,27,.85); color: #ffb547; padding: 3px 8px; border-radius: 99px; }
img.studio { object-fit: contain !important; background: #f4f4f5; }
.mainwrap { position: relative; }
.indicative { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow); }

/* ---- Place de marché dans le CRM : étapes, formules, personnalisation, messagerie ---- */
.badge.stage { --c: #71717a; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); }
.launchbar { background: linear-gradient(90deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 6px 12px; }
.brandlogo { height: 28px; max-width: 120px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.probadge { font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--accent); color: #fff; padding: 3px 7px; border-radius: 6px; margin-left: 6px; }
.marketstrip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.mstats { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.mstats b { color: var(--ink); font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 22px; }
.plancard { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plancard h3 { margin: 0; font-size: 16px; }
.plancard.featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plancard.current { background: var(--accent-soft); }
.plancard ul { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; font-size: 13px; }
.plancard li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.plancard li.no { color: var(--muted); text-decoration: line-through; }
.plancard li.no::before { content: '– '; color: var(--muted); }
.pprice { font-size: 26px; font-weight: 750; letter-spacing: -.03em; margin: 4px 0; }
.pprice span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.permtbl td:not(:first-child), .permtbl th:not(:first-child) { text-align: center; width: 90px; }
.colorrow { display: flex; align-items: center; gap: 10px; }
.colorrow input[type=color] { width: 46px; height: 36px; padding: 2px; }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.brandprev { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; margin: 6px 0 12px; }
.logoprev { display: flex; gap: 12px; align-items: center; }
.logoprev img { height: 54px; max-width: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.newrow td { background: var(--line-2); }
.signup-wrap { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: center; max-width: 1040px; margin: 30px auto; }
.signup-pitch h1 { font-size: 34px; letter-spacing: -.03em; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; margin-right: 10px; font-size: 12px; }
.errcard, .upsell { max-width: 520px; margin: 50px auto; text-align: center; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.crow { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 10px; color: var(--ink); }
.crow.unread { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.crow img, .crow .noimg { width: 92px; height: 68px; border-radius: 9px; object-fit: cover; flex: none; background: var(--line-2); display: grid; place-items: center; font-size: 26px; }
.crow > div { flex: 1; min-width: 0; }
.convwrap { max-width: 760px; }
.convcar { display: flex; gap: 12px; align-items: center; }
.convcar img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.thread.compact { max-height: 340px; overflow: auto; }
.bubble { max-width: 78%; padding: 10px 13px; border-radius: 14px; background: var(--line-2); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble .small { display: block; opacity: .7; margin-top: 4px; font-size: 11px; }
@media (max-width: 900px) { .signup-wrap { grid-template-columns: 1fr; } }

/* ---- Application : photos, choix rapides, bouton d'ajout ---- */
.pickbtns { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.pickbtns .btn { display: inline-flex; align-items: center; gap: 8px; }
.pickbtns svg, .tabbar svg, .fab svg { width: 20px; height: 20px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pgrid figure { position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--line-2); cursor: pointer; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgrid figure b { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 5px; }
.pgrid figure button { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(24,24,27,.7); color: #fff; cursor: pointer; font-size: 12px; }
.picker.missing .pickbtns .btn.primary { box-shadow: 0 0 0 3px rgba(220,38,38,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.chips > span { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); cursor: pointer; transition: all .12s; }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }
.chip.autofilled span, input.autofilled { box-shadow: 0 0 0 3px var(--accent-ring); }
input.bigprice { font-size: 22px; font-weight: 700; padding: 10px 12px; }
.vinrow { display: flex; gap: 8px; }
.quickwrap { max-width: 760px; margin: 0 auto; }
.fab { display: none; }
@media (max-width: 760px) {
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 24px -6px rgba(4,120,87,.6); z-index: 30; }
  .fab svg { width: 26px; height: 26px; }
  input, select, textarea { font-size: 16px; } /* évite le zoom automatique sur iPhone */
}
