:root {
  --ink: #12151b; --soft: #5a6170; --faint: #8a91a0; --line: #e6e8ee; --bg: #ffffff; --tint: #f5f6f9;
  --accent: #1767ff; --accent-dark: #0f4fd0; --ok: #0d8a52; --warn: #b56b00; --bad: #cf3232;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; } /* appli : pas de zoom au double toucher */
body { background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 18px; letter-spacing: -.01em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(32px + var(--safe-b)); display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { border-radius: 8px; flex: none; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0 6px; }
.hero-icon { border-radius: 22px; box-shadow: 0 12px 30px rgba(23, 103, 255, .28); }
.hero-logo { width: min(230px, 62vw); height: auto; }
.install img { border-radius: 11px; flex: none; }
.muted { color: var(--soft); }
.small { font-size: 13.5px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 600; background: var(--tint); }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.big { min-height: 60px; font-size: 18px; width: 100%; border-radius: var(--r); }
.btn.line { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; }
.link { color: var(--accent); font-weight: 600; padding: 6px 2px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 400; font-size: 16px; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted, #667); padding: 0; cursor: pointer; }
textarea { min-height: 150px; resize: vertical; }
form { display: flex; flex-direction: column; gap: 14px; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; }

.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }

.credits { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pill { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill b { color: var(--accent); }

.withbar { padding-bottom: calc(92px + var(--safe-b)); }
.sticky-act { position: sticky; bottom: calc(78px + var(--safe-b)); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(15,20,34,.35); }
.appbar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark { height: 22px; width: auto; }
.icon-btn { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.ico { display: inline-flex; }
.mif { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.mif svg { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.tabs { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.tabs button { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--tint); color: var(--soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tabs button.on { background: var(--accent); color: #fff; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + var(--safe-b)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--soft); font-size: 12px; font-weight: 600; text-decoration: none; }
.tabbar a.on { color: var(--accent); }
.list { display: flex; flex-direction: column; gap: 10px; }
.day { color: var(--soft); font-size: 14px; margin-top: 6px; }
.car { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: left; width: 100%; }
.car .thumb { width: 112px; height: 84px; flex: none; border-radius: 10px; object-fit: cover; background: var(--tint); }
.car .name { font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-car { display: grid; place-items: center; padding: 6px; }
.sketch { width: 100%; height: auto; display: block; }
.sketch path { fill: none; stroke: var(--soft); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.sketch .thin, .sketch .floor { display: none; }
.sketch .mid { stroke-width: 1.4; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--soft); font-size: 12.5px; font-weight: 600; }
.status.ok { background: #e6f6ee; color: var(--ok); }
.status.warn { background: #fdf1df; color: var(--warn); }
.choice.on { box-shadow: inset 0 0 0 2px var(--accent); }
.profile { display: flex; align-items: center; gap: 14px; }
.profile img { border-radius: 16px; flex: none; }
.menu { display: flex; flex-direction: column; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.row-link { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; color: var(--ink); font-weight: 600; text-decoration: none; }
.row-link + .row-link { border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.panel.flat { gap: 0; padding: 0 16px; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 0; position: relative; }
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggle b, .toggle .small { display: block; }
.toggle input { position: absolute; opacity: 0; width: 46px; height: 28px; right: 0; margin: 0; }
.toggle i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #d6d9e0; position: relative; transition: background .15s; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.tip { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.tip-car { background: var(--tint); border-radius: 10px; padding: 6px; }
.spec { display: flex; justify-content: space-between; gap: 16px; }
.spec .muted { flex: none; }
.spec .small:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }

.empty { text-align: center; padding: 34px 12px; color: var(--soft); }

.sheet { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; text-align: left; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tint); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--soft); text-align: center; padding: 6px; }
.tile .flag { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.94); color: var(--warn); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.tile .working { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.62); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

.panel { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.output { white-space: pre-wrap; font-size: 14.5px; background: var(--tint); border-radius: 10px; padding: 12px; max-height: 340px; overflow: auto; }

.viewer { position: fixed; inset: 0; background: #fff; z-index: 40; display: flex; flex-direction: column; }
.viewer .vhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: calc(12px + var(--safe-t)) 16px 8px; }
.viewer .vstage { flex: 1; min-height: 0; position: relative; background: #f5f6f9; }
.viewer .vtrack { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.viewer .vtrack::-webkit-scrollbar { display: none; }
.viewer .vtrack figure { flex: none; width: 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.viewer .vtrack img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer .varrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); box-shadow: 0 2px 10px rgba(0,0,0,.2); font: 700 26px/1 system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.viewer .varrow.left { left: 10px; } .viewer .varrow.right { right: 10px; }
.viewer .varrow:disabled { opacity: 0; pointer-events: none; }
.viewer .vwarn { color: var(--warn); padding: 10px 16px 0; font-weight: 600; margin: 0; }
@media (hover: none) { .viewer .varrow { display: none; } }
.viewer .bar { display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.seg button { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted, #5b6475); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.vmodal { position: fixed; inset: 0; z-index: 60; background: rgba(13,15,19,.82); display: grid; place-items: center; padding: 16px; }
.vbox { background: #fff; border-radius: 18px; padding: 18px; width: min(560px, 100%); text-align: center; }
.vbox h2 { margin: 0 0 12px; font-size: 18px; }
.vcanvas { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #000; border-radius: 12px; margin-bottom: 12px; }

/* ---------- prise de vue ---------- */
.shoot { position: fixed; inset: 0; background: #0d0f13; color: #fff; display: grid; grid-template-rows: auto 1fr auto; z-index: 30; touch-action: manipulation; user-select: none; }
.shoot .head { display: flex; align-items: center; gap: 12px; padding: calc(8px + var(--safe-t)) 14px 8px; }
.shoot .x { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 19px; color: #fff; flex: none; }
.shoot .title { flex: 1; min-width: 0; }
.shoot .title b { display: block; font-size: 17px; line-height: 1.2; }
.shoot .title span { font-size: 13px; opacity: .78; display: block; line-height: 1.25; }
.shoot .count { font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }
.stagewrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.frame { position: relative; aspect-ratio: 4 / 3; width: 100%; max-height: 100%; background: #23272f; overflow: hidden; }
@media (min-aspect-ratio: 4/3) { .frame { width: auto; height: 100%; } }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame { touch-action: none; }
.frame .guidebox { position: absolute; inset: 0; pointer-events: none; }
.frame .guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frame .tools { position: absolute; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(13,15,19,.6); }
.frame .tools.left { left: 8px; }
.frame .tools.right { right: 8px; }
.frame .tool { min-width: 36px; height: 32px; padding: 0 9px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px; }
.frame .tool.on { background: #fff; color: #0d0f13; }
.frame .tool[aria-label^="Changer la silhouette"] { font-size: 13px; font-weight: 600; border-right: 1px solid rgba(255,255,255,.25); border-radius: 999px 0 0 999px; }
.frame .toolname { color: #fff; font-size: 12px; opacity: .85; padding: 0 2px; }
.frame .guide { filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); }
.guide path, .guide circle, .guide ellipse { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.guide .body { fill: rgba(255,255,255,.1); }
.guide .mid { stroke-width: 2.4; }
.guide .thin { stroke-width: 1.7; opacity: .9; }
.guide .floor { stroke-width: 1.8; stroke-dasharray: 7 7; opacity: .75; }
.guidebox:not(.int) .guide .floor { display: none; } /* 2026-12-05 : plus de pointilles au sol sous la voiture (NGS) */
.level { position: absolute; inset: 0; pointer-events: none; }
/* regle graduee en haut et en bas : le repere glisse avec l'inclinaison, vert quand c'est droit */
.ruler { position: absolute; left: 22%; right: 22%; height: 16px; }
.ruler.top { top: 6px; display: none; } /* 2026-12-04 : barre du haut retiree (s'affichait mal sur Android) ; celle du bas suffit */
.ruler.bottom { bottom: 6px; }
.ruler .ticks { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.ruler .ticks i { width: 1.5px; height: 9px; background: rgba(255,255,255,.75); box-shadow: 0 0 2px rgba(0,0,0,.6); }
.ruler .ticks i.mid { height: 15px; background: #fff; }
.ruler .mark { position: absolute; top: 1px; width: 18px; height: 14px; margin-left: -9px; border-radius: 7px; background: #ff4d3d; box-shadow: 0 0 0 2px rgba(0,0,0,.35); transition: left .12s linear, background .15s; }
.ruler .mark.ok { background: #36d17c; }
/* nom de la photo, colle au bord droit du cadre */
.shotchip { display: none !important; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 46%; background: rgba(13,15,19,.78); border-radius: 14px; padding: 8px 12px; display: grid; gap: 2px; pointer-events: none; }
.shotchip b { font-size: 15px; line-height: 1.2; }
.shotchip span { font-size: 12px; opacity: .8; line-height: 1.25; }
/* bande des photos a faire */
.shoot .strip { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.shoot .strip::-webkit-scrollbar { display: none; }
.shoot .thumb { flex: none; width: 58px; height: 44px; border-radius: 9px; background: rgba(255,255,255,.12); border: 2px solid transparent; overflow: hidden; padding: 0; position: relative; }
.shoot .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shoot .thumb svg { width: 100%; height: 100%; }
.shoot .thumb svg path, .shoot .thumb svg circle, .shoot .thumb svg ellipse { stroke-width: 9 !important; }
.shoot .thumb.on { border-color: var(--accent); background: rgba(23,103,255,.35); }
.shoot .thumb.done::after { content: "✓"; position: absolute; right: 2px; bottom: 1px; font-size: 11px; font-weight: 900; color: #36d17c; text-shadow: 0 0 3px #000; }
.shoot .round { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; font-weight: 700; display: grid; place-items: center; }
.shoot .round.on { background: #ffd43b; color: #111; }
/* schemas d'interieur : traits epais, bien lisibles sur une image sombre */
.guide.int path, .guide.int circle, .guide.int ellipse, .guidebox.int .guide path, .guidebox.int .guide circle, .guidebox.int .guide ellipse { stroke-width: 5.4; }
.guidebox.int .guide .thin { stroke-width: 3.4; opacity: .95; }
.leveltip { position: absolute; left: 50%; bottom: 54px; transform: translateX(-50%); background: rgba(13,15,19,.72); padding: 5px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.frame .map { position: absolute; top: 8px; right: 8px; width: 74px; height: 74px; background: rgba(13,15,19,.45); border-radius: 50%; }
.map .ring { fill: none; stroke: #fff; stroke-opacity: .55; stroke-dasharray: 4 4; stroke-width: 1.5; }
.map .mcar { fill: rgba(255,255,255,.24); stroke: #fff; stroke-width: 1.5; }
.map .thin { stroke: #fff; fill: none; stroke-width: 1; }
.map .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
/* carre de mise au point (toucher l'image), 2026-12-04 */
.focusring { position: absolute; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 2px solid #ffd43b; border-radius: 6px; pointer-events: none; animation: focusring 1.3s ease-out forwards; }
@keyframes focusring { 0% { transform: scale(1.5); opacity: 0; } 15% { transform: scale(1); opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .16s ease-out; }
@keyframes flash { from { opacity: .75; } to { opacity: 0; } }
/* 2026-12-04 : telephone tenu droit -> ecran entier avec un telephone qui bascule en paysage */
.turn { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #0d0f13; color: #fff; text-align: center; padding: 24px; }
.turn[hidden] { display: none; }
.turn b { font-size: 22px; margin-top: 18px; }
.turn span { font-size: 15px; opacity: .75; max-width: 280px; line-height: 1.4; }
.turnstage { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.turnphone { position: relative; width: 74px; height: 138px; border: 4px solid #fff; border-radius: 16px; display: grid; place-items: center; animation: turnphone 3s cubic-bezier(.6,0,.3,1) infinite; }
.turnphone .cam { position: absolute; top: 7px; left: 50%; width: 22px; height: 5px; margin-left: -11px; border-radius: 3px; background: #fff; opacity: .7; }
.turnphone svg { width: 58px; transform: rotate(90deg); fill: none; stroke: #7fb0ff; stroke-width: 4; stroke-linejoin: round; animation: turncar 3s cubic-bezier(.6,0,.3,1) infinite; }
.turnarrow { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #7fb0ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; animation: turnarrow 3s ease-in-out infinite; }
@keyframes turnphone { 0%, 22% { transform: rotate(0); } 55%, 92% { transform: rotate(-90deg); } 100% { transform: rotate(-90deg); opacity: 0; } }
@keyframes turncar { 0%, 45% { opacity: .35; } 60%, 100% { opacity: 1; } }
@keyframes turnarrow { 0%, 15% { opacity: 0; transform: rotate(20deg); } 30%, 50% { opacity: 1; transform: rotate(-10deg); } 62%, 100% { opacity: 0; transform: rotate(-40deg); } }
.shoot .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 18px calc(14px + var(--safe-b)); }
.shoot .side { display: flex; gap: 10px; align-items: center; justify-self: start; }
.shoot .side.right { justify-self: end; }
.shutter { width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #0d0f13, 0 0 0 7px #fff; transition: background .15s, box-shadow .15s; }
.shutter.ok { background: #b6f24a; box-shadow: 0 0 0 4px #0d0f13, 0 0 0 7px #b6f24a; }
.shutter.bad { background: #ff5a47; box-shadow: 0 0 0 4px #0d0f13, 0 0 0 7px #ff5a47; }
.shutter:active { transform: scale(.93); }
.uploads { position: absolute; left: 8px; top: 8px; background: rgba(13,15,19,.6); padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.retake { position: absolute; z-index: 3; left: 50%; bottom: 54px; transform: translateX(-50%); background: #fff; color: var(--ink); padding: 8px 8px 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; white-space: nowrap; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.retake button { background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 600; }
@media (orientation: landscape) and (max-height: 520px), (orientation: landscape) and (min-width: 900px) and (pointer: coarse) {
  /* 2026-12-04 (NGS) : colonne noire a gauche avec les schemas (on fait defiler du doigt), la camera au milieu,
     le bouton photo dans sa colonne a droite. minmax(0,...) : la colonne des schemas ne pousse jamais la camera. */
  .shoot { grid-template-rows: minmax(0, 1fr); grid-template-columns: auto minmax(0, 1fr) auto; }
  .shoot .head { grid-column: 1; grid-row: 1; min-height: 0; overflow: hidden; flex-direction: column; gap: 8px; background: #0d0f13; padding: 8px 6px 8px calc(6px + env(safe-area-inset-left, 0px)); }
  .shoot .strip { flex-direction: column; overflow-x: hidden; overflow-y: auto; min-height: 0; }
  .shoot .count { font-size: 13px; }
  .shoot .stagewrap { grid-column: 2; grid-row: 1; }
  .shoot .foot { grid-column: 3; grid-row: 1; width: 92px; }
  .shutter { width: 62px; height: 62px; }
  .shoot .foot { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; padding: 12px calc(14px + env(safe-area-inset-right, 0px)) 12px 14px; justify-items: center; width: 110px; }
  .shoot .side, .shoot .side.right { justify-self: center; flex-direction: column; }
  .frame .map { top: auto; bottom: 8px; }
  /* 2026-12-04 : appli iPhone en plein ecran (bords du telephone compris) : rien sous l'encoche */
  /* 2026-12-04 (NGS : « on dirait une petite camera ») : l'image remplit toute la place libre.
     La photo enregistree reste le 4:3 entier : elle garde un peu plus de marge en haut et en bas que l'ecran. */
  .frame { aspect-ratio: auto; width: 100%; height: 100%; }
  .shotchip { top: 10px; transform: none; }
  .frame .tools.right { right: 90px; }
}

.intro { position: absolute; inset: 0; z-index: 5; background: #fff; color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 26px; overflow: auto; }
.intro ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.intro li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.intro li i { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; }

#toast { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14.5px; z-index: 60; }

/* ---------- manager ---------- */
.admin { display: grid; grid-template-columns: 216px 1fr; min-height: 100dvh; }
.admin nav { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.admin nav .brand { padding: 4px 10px 16px; }
.admin nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--soft); font-weight: 600; text-decoration: none; }
.admin nav a.on { background: var(--tint); color: var(--ink); }
.admin .content { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; display: flex; flex-direction: column; gap: 22px; max-width: 1100px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font-size: 25px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; color: var(--soft); font-weight: 600; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--tint); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--tint); color: var(--soft); }
.tag.ok { color: var(--ok); background: #e7f5ee; }
.tag.bad { color: var(--bad); background: #fbeaea; }
.tag.warn { color: var(--warn); background: #fdf1df; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.decors { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.decor { position: relative; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #fff; display: flex; flex-direction: column; }
.decor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); display: block; }
.decor .meta { padding: 9px 11px; font-size: 14px; }
.decor.pick { cursor: pointer; }
.decor.pick.on { box-shadow: inset 0 0 0 3px var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-weight: 500; }
.switch input { width: 44px; height: 24px; appearance: none; background: var(--line); border: 0; border-radius: 999px; position: relative; padding: 0; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 22px; }
.invite { word-break: break-all; background: var(--tint); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
@media (max-width: 760px) {
  .admin { grid-template-columns: 1fr; }
  .admin nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .admin nav .brand { width: 100%; padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition: none !important; } }

body.capturing { background: #0d0f13; }
body.capturing #toast { bottom: auto; top: calc(10px + var(--safe-t)); }
.tile .working { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.tile .working .spin { width: 16px; height: 16px; border-width: 2px; }
.shoot .import { color: #fff; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); flex: none; }
.pickers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.picker { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.picker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picker span { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.94); font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.picker.on { box-shadow: 0 0 0 3px var(--accent); }

/* ---------- tour 360 ---------- */
.spin360 { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tint); touch-action: pan-y; cursor: grab; user-select: none; }
.spin360 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .28s; pointer-events: none; }
.spin360 img.on { opacity: 1; }
.spin360 .spincanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.spin360.fluid .spin-hint { pointer-events: none; }
.spin-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(13,15,19,.62); color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.picker { position: relative; }
.badge360 { position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; padding: 2px 6px; border-radius: 999px; }

/* achat de credits : une carte par pack, le prix bien visible */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line, #e3e6ee); background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.offer:hover { border-color: var(--accent, #1767ff); transform: translateY(-2px); }
.offer strong { font-size: 20px; margin-top: 4px; }
.offer:disabled { opacity: .6; }
.offer { position: relative; }
.offer.on { border-color: var(--accent, #1767ff); box-shadow: 0 0 0 2px var(--accent, #1767ff); background: color-mix(in srgb, var(--accent, #1767ff) 7%, #fff); }
.offer.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent, #1767ff); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.offer-picker { display: grid; gap: 12px; }
.offer-go { width: 100%; min-height: 48px; font-size: 16px; }
.offer-go:disabled { opacity: .5; cursor: default; }
label.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
label.check input { width: 20px; height: 20px; flex: none; }

/* mon equipe */
.team { display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }
.invite { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--tint); }
.invite input { width: 100%; }

/* Mise en place du garage : choix des showrooms, logo, plaque */
.setup-cta { display: grid; gap: 6px; text-decoration: none; color: inherit; border: 1px solid var(--accent); background: #f2f6ff; }
.setup-cta .btn { justify-self: start; margin-top: 4px; }
.decor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.decor-pick { position: relative; display: grid; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font-weight: 600; font-size: 14px; color: var(--ink); }
.decor-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: var(--tint); }
.decor-pick.on { border-color: var(--accent); box-shadow: 0 0 0 3px #1767ff22; }
.decor-pick.on::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.decor-pick .badge { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: #12151bcc; color: #fff; }
.btn.file { position: relative; overflow: hidden; display: inline-block; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: auto; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; margin-top: 8px; }

/* Mon equipe : acces commerciaux */
.seats { border: 1px solid var(--line, #e3e3e8); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; }
.seats.full { border-color: #d6337f; background: rgba(214, 51, 127, .06); }
.seats p { margin: 0 0 8px; }

/* choix de la langue */
.lang-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted, #6b7280); }
.lang-pick select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #dde1e8); background: #fff; color: inherit; }
button.link { background: none; border: 0; cursor: pointer; color: var(--muted, #6b7280); text-decoration: underline; }
.danger-zone { border-color: #f1c4c4; margin-top: 14px; }

/* verification des photos a la fin de la prise de vue */
.review { position: absolute; inset: 0; z-index: 6; background: #0d0f13; color: #fff; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: calc(16px + var(--safe-t)) calc(16px + env(safe-area-inset-right, 0px)) calc(20px + var(--safe-b)) calc(16px + env(safe-area-inset-left, 0px)); }
.review h2 { margin: 0; font-size: 22px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.review-tile { background: #1b1f27; border-radius: 12px; overflow: hidden; border: 2px solid transparent; display: flex; flex-direction: column; }
.review-tile.warn { border-color: #ffb020; }
.review-tile img, .review-missing { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: #23272f; font-size: 13px; opacity: .9; }
.review-meta { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px 0; font-size: 13px; }
.review-meta span { color: #ffb020; font-weight: 700; }
.review-tile .tool { margin: 6px 8px 8px; align-self: flex-start; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; }
.review .btn.big { align-self: center; min-width: 260px; }

/* traitement en cours apres la prise de vue */
.busybox { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #eef4ff; border: 1px solid #cfe0ff; }
.busybox > div:last-child { flex: 1; min-width: 0; }
.busybox .progress { margin-top: 8px; }
.spin.big { width: 34px; height: 34px; border-width: 4px; flex: none; }

/* ---------- tablettes (iPad, Galaxy Tab...) ---------- */
@media (min-width: 760px) {
  .page { max-width: 860px; padding-left: 28px; padding-right: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .pickers { grid-template-columns: repeat(4, 1fr); }
  .decor-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .tabbar { padding-left: max(8px, calc(50% - 430px)); padding-right: max(8px, calc(50% - 430px)); }
  .tabbar a { font-size: 13px; }
}
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
/* prise de vue sur tablette : barre laterale plus large, declencheur et vignettes plus grands */
@media (orientation: landscape) and (min-width: 900px) and (min-height: 600px) and (pointer: coarse) {
  .shoot .foot { width: 120px; }
  .shutter { width: 76px; height: 76px; }
  .shoot .thumb { width: 76px; height: 57px; }
  .frame .tools.right { right: 12px; }
}
/* tablette tenue a la verticale : le cadre 4:3 prend toute la largeur, le message invite a la tourner */
@media (orientation: portrait) and (min-width: 700px) {
  .shoot .thumb { width: 70px; height: 52px; }
  .shutter { width: 88px; height: 88px; }
}

/* manager : notifications et tableau des formules */
.navbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
.notifs { display: flex; flex-direction: column; }
.notif { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 8px; }
.notif:last-child { border-bottom: 0; }
a.notif:hover { background: var(--tint, #f4f6fb); }
.notif.new { background: #eef4ff; font-weight: 600; }
.notif-icon { font-size: 18px; text-align: center; }
.notif-when { font-size: 12px; color: var(--muted, #5b6475); white-space: nowrap; }
.offer-grid td, .offer-grid th { padding: 12px 10px; }
.offer-grid .price { font-size: 18px; }
details.panel summary { cursor: pointer; }

/* pastilles d'abonnement du Manager */
.subdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: #b8bec8; box-shadow: 0 0 0 2px rgba(0,0,0,.04); }
.subdot.green { background: #1fa45a; } .subdot.orange { background: #f08c00; } .subdot.red { background: #d93a3a; }
h1 .subdot { width: 14px; height: 14px; }
.sublegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; }

/* presentation a la premiere utilisation */
.tour { position: fixed; inset: 0; z-index: 90; background: rgba(12,16,26,.55); display: grid; place-items: center; padding: 18px; animation: tourIn .2s ease-out; }
.tour-card { position: relative; width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 30px 22px 22px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.tour-card h2 { margin: 6px 0 8px; }
.tour-card p { margin: 0 0 16px; line-height: 1.5; }
.tour-emoji { font-size: 54px; line-height: 1; }
.tour-skip { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--soft); font-size: 14px; padding: 6px; }
.tour-dots { display: flex; gap: 7px; justify-content: center; margin: 0 0 16px; }
.tour-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots span.on { background: var(--accent); width: 22px; border-radius: 6px; }
@keyframes tourIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tour { animation: none; } }

/* onglets : 4 entrees, le libelle ne passe jamais a la ligne */
.tabbar a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 380px) { .tabbar a { font-size: 11px; } }

/* guidage du premier lancement : bouton eclaire, fleche, bulle */
.coach { position: fixed; inset: 0; z-index: 95; }
.coach.center { background: rgba(12, 16, 26, .66); display: grid; place-items: center; padding: 18px; }
.coach-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(12, 16, 26, .66), 0 0 0 3px #fff inset; animation: coachRing 1.6s ease-in-out infinite; }
@keyframes coachRing { 0%, 100% { box-shadow: 0 0 0 9999px rgba(12, 16, 26, .66), 0 0 0 3px #fff inset; } 50% { box-shadow: 0 0 0 9999px rgba(12, 16, 26, .66), 0 0 0 3px #fff inset, 0 0 0 7px rgba(255, 255, 255, .35); } }
.coach-arrow { position: fixed; width: 44px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.coach-arrow svg { display: block; animation: coachBob 1s ease-in-out infinite; }
@keyframes coachBob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.coach-tip { position: fixed; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 28px)); background: #fff; border-radius: 20px; padding: 20px 18px 16px; box-shadow: 0 24px 70px -18px rgba(0, 0, 0, .55); }
.coach.center .coach-tip { position: relative; left: auto; transform: none; text-align: center; padding-top: 28px; }
.coach-tip h2 { margin: 0 44px 6px 0; font-size: 19px; }
.coach.center .coach-tip h2 { margin: 6px 0 8px; font-size: 21px; }
.coach-tip p { margin: 0 0 14px; color: var(--soft); line-height: 1.5; }
.coach-emoji { font-size: 50px; line-height: 1; }
.coach-skip { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--soft); font-size: 14px; padding: 8px; }
.coach-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.coach.center .coach-foot { flex-direction: column; }
.coach-foot .tour-dots { margin: 0; }
@media (prefers-reduced-motion: reduce) { .coach-hole, .coach-arrow svg { animation: none; } }

/* communaute : liste des discussions et fil de messages */
.threads { display: grid; gap: 8px; margin-top: 14px; }
.thread { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; }
.thread-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.thread-main b { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thread-n { flex: none; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--tint); color: var(--soft); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.chat { display: grid; gap: 10px; margin: 12px 0 16px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; max-width: 92%; justify-self: start; }
.msg.mine { justify-self: end; background: #f2f6ff; border-color: #d6e2ff; }
.msg.first { max-width: 100%; justify-self: stretch; }
.msg-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.msg-head .muted { margin-left: auto; white-space: nowrap; }
.msg h2 { margin: 6px 0 4px; font-size: 18px; }
.msg p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.msg-more { background: none; border: 0; color: var(--soft); font-size: 20px; line-height: 1; padding: 2px 6px; }
.msg-menu { display: flex; gap: 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.msg-menu .danger { color: var(--bad); }
.chat-box { align-items: flex-end; }
.chat-box textarea { flex: 1; min-width: 0; min-height: 0; height: 56px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: none; }
.tour-card.charter { text-align: left; }
.tour-card.charter ul { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- dossier de vente d'une voiture ---------- */
.salelink { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 14px 16px; text-align: left; text-decoration: none; color: var(--ink); }
.salelink .small { font-weight: 500; }
.salelink.soon { opacity: .92; }
.soonlist { display: flex; flex-direction: column; gap: 14px; }
.soonstep { display: flex; gap: 12px; align-items: flex-start; }
.soonstep > i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg, #fff); font-style: normal; font-weight: 700; font-size: 14px; }
.soonstep p { margin: 2px 0 0; }
.soonbadge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--line, #e6e6e6); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 600; vertical-align: middle; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.copyrows { display: flex; flex-direction: column; }
.copyrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.copyrow + .copyrow { border-top: 1px solid var(--line); }
.copyrow b { font-size: 17px; letter-spacing: .02em; word-break: break-all; }
.docrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.docrow a { color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; flex: none; }
.ok { color: #12805c; font-weight: 600; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }
a.btn { text-decoration: none; }

/* ---------- Manager : liste des garages (recherche, filtres) ---------- */
.gtools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gtools input[type=search] { flex: 1 1 280px; min-width: 0; }
.gtools select { width: auto; }
.gchips { display: flex; gap: 8px; flex-wrap: wrap; }
.gchips button { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; }
.gchips button.on { background: var(--ink); color: #fff; box-shadow: none; }
.gnote { max-width: 240px; }
