/* =========================================================
   GY CODING ATELIER — design system (repris de gycoding.be)
   ========================================================= */
:root {
  --bg: #0a0b0f; --bg-alt: #14161c; --bg-alt-2: #1b1e26; --bg-card: #15171f;
  --border: #262a34; --border-light: #323744;
  --text: #f4f5f7; --text-muted: #9aa0ac; --text-dim: #6b7180;
  --accent: #ff2d3c; --accent-dark: #c2101d; --accent-glow: rgba(255,45,60,.35);
  --accent-2: #00d4ff; --accent-2-glow: rgba(0,212,255,.35);
  --success: #2ecc71; --warning: #ffb020; --violet: #a970ff;
  --font-head: "Poppins", "Inter", sans-serif; --font-body: "Inter", sans-serif;
  --radius: 14px; --radius-sm: 8px; --container: 1240px;
  --header-bg: rgba(10,11,15,.78); --shadow-soft: rgba(0,0,0,.6);
  --grid-line: rgba(255,255,255,.035);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --bg-alt: #ffffff; --bg-alt-2: #eef0f3; --bg-card: #ffffff;
  --border: #e3e5ea; --border-light: #cfd3da;
  --text: #14151a; --text-muted: #52565f; --text-dim: #767b85;
  --accent: #e2102a; --accent-dark: #ad0c20; --accent-glow: rgba(226,16,42,.25);
  --accent-2: #007b95; --accent-2-glow: rgba(0,123,149,.22);
  --success: #17914b; --warning: #b86e00; --violet: #7a3fe0;
  --header-bg: rgba(255,255,255,.82); --shadow-soft: rgba(20,21,26,.12);
  --grid-line: rgba(20,21,26,.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .25s, color .25s; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }
.muted { color: var(--text-muted); } .dim { color: var(--text-dim); }
.hide { display: none !important; }

/* ---------- Header ---------- */
#hdr { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: var(--header-bg); border-bottom: 1px solid var(--border); }
#hdr .wrap { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.brand .logo-light { display: none; }
:root[data-theme="light"] .brand .logo-dark { display: none; }
:root[data-theme="light"] .brand .logo-light { display: block; }
.brand-tag { font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255,45,60,.35); background: rgba(255,45,60,.08); padding: .22rem .55rem; border-radius: 999px; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--text-muted); padding: .5rem .85rem; border-radius: 999px; transition: color .15s, background .15s; display: flex; align-items: center; gap: .45rem; }
.nav a:hover { color: var(--text); background: var(--bg-alt-2); }
.nav a.on { color: var(--text); background: var(--bg-alt-2); box-shadow: inset 0 0 0 1px var(--border-light); }
.nav a .cnt { font-size: .7rem; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .4rem; min-width: 1.2rem; text-align: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg-alt-2); color: var(--text-muted); cursor: pointer; flex-shrink: 0; transition: color .18s, border-color .18s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-moon { display: none; }
:root[data-theme="light"] .icon-btn .i-sun { display: block; }
.sync { font-size: .72rem; color: var(--text-dim); display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.sync i { width: 7px; height: 7px; border-radius: 99px; background: var(--text-dim); }
.sync.ok i { background: var(--success); box-shadow: 0 0 0 3px rgba(46,204,113,.18); }
.sync.err i { background: var(--warning); }

/* Mobile bottom nav */
.bnav { display: none; }
@media (max-width: 820px) {
  .nav, .sync { display: none; }
  #hdr .wrap { height: 60px; }
  .brand img { height: 38px; }
  .hdr-spacer { margin-left: auto; }
  .bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0 .5rem; font-size: .68rem; font-weight: 600; color: var(--text-dim); position: relative; }
  .bnav a.on { color: var(--accent); }
  .bnav a .cnt { position: absolute; top: 4px; left: 56%; font-size: .6rem; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 .32rem; }
  body { padding-bottom: 70px; }
}

/* ---------- Generic ---------- */
.bg-grid { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.text-gradient { background: linear-gradient(90deg, var(--accent), #ff6a3d 55%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: .88rem; padding: .72rem 1.3rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s, color .18s, background .18s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px var(--accent-glow); }
.btn-outline { background: transparent; border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--bg-alt-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-light); }
.btn-sm { padding: .45rem .9rem; font-size: .78rem; }
.card { background: linear-gradient(180deg, var(--bg-card), var(--bg-alt)); border: 1px solid var(--border); border-radius: var(--radius); }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--border-light); color: var(--text-muted); background: var(--bg-alt-2); white-space: nowrap; }
.section { padding-block: 2.2rem; }
.page-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-dim); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { opacity: .6; }

/* ---------- Hero / search ---------- */
.hero { position: relative; padding: 3.2rem 0 2.4rem; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 85% 0%, var(--accent-glow), transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0,212,255,.12), transparent 60%); pointer-events: none; opacity: .55; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin: .8rem 0 .7rem; max-width: 820px; }
.hero p.lead { color: var(--text-muted); max-width: 640px; font-size: 1.02rem; }
.search { position: relative; margin-top: 1.6rem; max-width: 720px; }
.search input { width: 100%; font: inherit; font-size: 1.02rem; padding: 1rem 1.1rem 1rem 3rem; border-radius: 16px; border: 1px solid var(--border-light); background: var(--bg-alt); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.search > svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; border-radius: 14px; border: 1px solid var(--border-light); background: var(--bg-alt); box-shadow: 0 24px 50px -20px var(--shadow-soft); overflow: hidden; max-height: 380px; overflow-y: auto; }
.sugg a { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.sugg a:last-child { border-bottom: 0; }
.sugg a:hover, .sugg a.act { background: var(--bg-alt-2); }
.sugg .s-t { font-weight: 600; } .sugg .s-s { font-size: .78rem; color: var(--text-dim); }
.sugg .s-y { margin-left: auto; font-size: .76rem; color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.6rem; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; }
.stat span { font-size: .78rem; color: var(--text-dim); }

/* Stepper */
.steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.step { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; font-size: .84rem; padding: .5rem .9rem .5rem .5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-dim); }
.step .n { width: 24px; height: 24px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: .75rem; background: var(--bg-alt-2); border: 1px solid var(--border-light); }
.step.on { color: var(--text); border-color: var(--accent); }
.step.on .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done { color: var(--text-muted); }
.step.done .n { background: rgba(46,204,113,.15); border-color: var(--success); color: var(--success); }
a.step:hover { border-color: var(--border-light); color: var(--text); }

/* Brand grid */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .7rem; }
.btile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.1rem .6rem; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-card), var(--bg-alt)); transition: border-color .18s, transform .18s, box-shadow .18s; text-align: center; min-height: 112px; }
.btile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 36px -22px var(--accent-glow); }
.btile img { height: 34px; width: 34px; object-fit: contain; }
:root:not([data-theme="light"]) .btile img, :root:not([data-theme="light"]) .vh-logo img { filter: invert(1); }
.btile .mono { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: .9rem; background: var(--bg-alt-2); border: 1px solid var(--border-light); color: var(--text-muted); }
.btile b { font-family: var(--font-head); font-size: .86rem; font-weight: 600; }
.btile small { font-size: .7rem; color: var(--text-dim); margin-top: -.4rem; }

/* Lists */
.filter { width: 100%; max-width: 420px; font: inherit; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--border-light); background: var(--bg-alt); color: var(--text); outline: none; margin-bottom: 1rem; }
.filter:focus { border-color: var(--accent); }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.mtile { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-alt); transition: border-color .15s, background .15s; }
.mtile:hover { border-color: var(--accent); background: var(--bg-alt-2); }
.mtile b { font-family: var(--font-head); font-weight: 600; }
.mtile small { display: block; color: var(--text-dim); font-size: .74rem; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.ytile { padding: .75rem 0; text-align: center; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ytile:hover { border-color: var(--accent); color: var(--accent); }
.gens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.gtile { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-card), var(--bg-alt)); transition: border-color .15s, transform .15s; display: block; }
.gtile:hover { border-color: var(--accent); transform: translateY(-2px); }
.gtile b { font-family: var(--font-head); font-size: 1.02rem; display: block; }
.gtile .yr { color: var(--accent-2); font-weight: 600; font-size: .84rem; }
.gtile .sys { font-size: .78rem; color: var(--text-dim); margin-top: .35rem; }
h2.h { font-size: 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
h2.h small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--text-dim); }

/* ---------- Vehicle page ---------- */
.vh { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.vh-logo { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt-2); border: 1px solid var(--border-light); flex-shrink: 0; font-family: var(--font-head); font-weight: 800; color: var(--text-muted); }
.vh-logo img { width: 36px; height: 36px; }
.vh h1 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.vh .yr { color: var(--accent-2); font-family: var(--font-head); font-weight: 600; }
.vh-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.gen-switch { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.gen-switch a { font-size: .76rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.gen-switch a.on { border-color: var(--accent); color: var(--text); background: rgba(255,45,60,.08); }
.gen-switch a:hover { border-color: var(--border-light); color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin-top: 1.5rem; }
.fact { padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-alt); }
.fact span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); font-weight: 600; margin-bottom: .25rem; }
.fact b { font-weight: 600; font-size: .92rem; }
.where { margin-top: .8rem; padding: .9rem 1.1rem; border-radius: 12px; border: 1px dashed var(--border-light); color: var(--text-muted); font-size: .9rem; }
.where b { color: var(--text); }

.layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.6rem; align-items: start; margin-top: 1.8rem; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: .15rem; }
.toc a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-radius: 10px; font-size: .84rem; color: var(--text-muted); border: 1px solid transparent; }
.toc a:hover { background: var(--bg-alt); color: var(--text); }
.toc a.on { background: var(--bg-alt); border-color: var(--border); color: var(--text); }
.toc a .n { font-size: .7rem; font-weight: 700; color: var(--text-dim); background: var(--bg-alt-2); border-radius: 99px; padding: .05rem .45rem; }
.toc a .n.z { opacity: .4; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: sticky; top: 60px; z-index: 20; flex-direction: row; overflow-x: auto; padding: .6rem 0; background: var(--bg); margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; border-bottom: 1px solid var(--border); }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border-color: var(--border); }
}

.op { scroll-margin-top: 96px; margin-bottom: 1rem; overflow: hidden; }
@media (max-width: 960px) { .op { scroll-margin-top: 130px; } }
.op-h { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--border); }
.op-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(255,45,60,.16), rgba(255,45,60,.02)); border: 1px solid rgba(255,45,60,.28); color: var(--accent); }
.op-ic svg { width: 21px; height: 21px; }
.op-h h3 { font-size: 1.04rem; }
.op-h p { font-size: .8rem; color: var(--text-dim); }
.op-h .count { margin-left: auto; font-size: .76rem; color: var(--text-muted); white-space: nowrap; }
.op-b { padding: .4rem 0 .2rem; }
.op-empty { padding: 1rem 1.2rem; color: var(--text-dim); font-size: .88rem; }
.op-tip { margin: .4rem 1.2rem .8rem; padding: .65rem .85rem; border-radius: 10px; background: rgba(0,212,255,.06); border: 1px solid rgba(0,212,255,.22); color: var(--text-muted); font-size: .84rem; display: flex; gap: .55rem; }
.op-tip svg { flex-shrink: 0; color: var(--accent-2); margin-top: 2px; }
.sub-h { padding: .9rem 1.2rem .3rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sub-h .chip { font-family: var(--font-body); }

.mrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem 1rem; padding: .7rem 1.2rem; border-top: 1px solid var(--border); }
.op-b > .mrow:first-child, .sub-h + .mrow { border-top: 0; }
.mrow:hover { background: var(--bg-alt-2); }
.m-name { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.m-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.m-name b { font-weight: 600; font-size: .93rem; }
.m-name a:hover b { color: var(--accent); }
.m-name small { display: block; font-size: .74rem; color: var(--text-dim); }
.m-badges { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; align-items: center; }
.lv { font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: .2rem .5rem; border-radius: 6px; border: 1px solid; white-space: nowrap; cursor: help; }
.lv-obd { color: var(--success); border-color: rgba(46,204,113,.4); background: rgba(46,204,113,.08); }
.lv-eep { color: var(--accent-2); border-color: rgba(0,212,255,.4); background: rgba(0,212,255,.07); }
.lv-ada { color: var(--violet); border-color: rgba(169,112,255,.45); background: rgba(169,112,255,.08); }
.lv-lic { color: var(--warning); border-color: rgba(255,176,32,.45); background: rgba(255,176,32,.08); }
.lv-srv { color: var(--text-muted); border-color: var(--border-light); background: var(--bg-alt-2); }
.lv-unk { color: var(--text-dim); border-color: var(--border-light); border-style: dashed; background: transparent; }
.lv-miss { color: var(--accent); border-color: rgba(255,45,60,.45); background: rgba(255,45,60,.08); }
.lv-yes { color: var(--success); border-color: rgba(46,204,113,.4); background: rgba(46,204,113,.08); }
.tested { font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; }
.tested.ok { background: var(--success); color: #fff; }
.tested.ko { background: var(--accent); color: #fff; }
.nbtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.nbtn:hover { color: var(--accent); border-color: var(--accent); }
.nbtn .c { position: absolute; top: -6px; right: -6px; font-size: .6rem; background: var(--accent-2); color: #000; border-radius: 99px; padding: 0 .3rem; font-weight: 700; }
.acc { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.acc-i { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 600; color: var(--text-muted); background: var(--bg-alt-2); border: 1px solid var(--border-light); border-radius: 6px; padding: .12rem .45rem; white-space: normal; }
.acc-i svg { color: var(--accent-2); flex-shrink: 0; }
.acc-i.miss { color: var(--accent); border-color: rgba(255,45,60,.45); background: rgba(255,45,60,.07); }
.acc-i.miss svg { color: var(--accent); }
.m-name > a { flex-shrink: 0; }
.m-name { flex-wrap: wrap; }
.mrow .m-notes { grid-column: 1 / -1; }
@media (max-width: 560px) { .mrow { grid-template-columns: 1fr; } .m-badges { justify-content: flex-start; } }

/* Notes */
.notes-box { padding: .6rem 1.2rem 1rem; border-top: 1px solid var(--border); }
.note { display: flex; gap: .7rem; padding: .65rem .8rem; border-radius: 10px; background: var(--bg-alt-2); border: 1px solid var(--border); margin-top: .5rem; font-size: .86rem; }
.note .st { width: 22px; height: 22px; border-radius: 99px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; }
.st.ok { background: var(--success); } .st.ko { background: var(--accent); } .st.info { background: var(--accent-2); color: #000; }
.note .meta { font-size: .72rem; color: var(--text-dim); margin-top: .2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.note .meta a:hover { color: var(--accent); }
.note .tx { white-space: pre-wrap; word-break: break-word; }
.note .del { margin-left: auto; background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: 0 .2rem; align-self: flex-start; }
.note .del:hover { color: var(--accent); }
.nform { margin-top: .7rem; display: grid; gap: .5rem; }
.nform textarea { font: inherit; font-size: .88rem; padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--border-light); background: var(--bg-alt); color: var(--text); resize: vertical; min-height: 70px; outline: none; }
.nform textarea:focus { border-color: var(--accent); }
.nform .row { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--border-light); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: .4rem .75rem; font-size: .76rem; font-weight: 600; cursor: pointer; color: var(--text-muted); }
.seg button.on[data-s="ok"] { background: var(--success); color: #fff; }
.seg button.on[data-s="ko"] { background: var(--accent); color: #fff; }
.seg button.on[data-s="info"] { background: var(--accent-2); color: #000; }
.nform select { font: inherit; font-size: .8rem; padding: .4rem .6rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--bg-alt); color: var(--text); }
.add-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--accent-2); background: none; border: 0; cursor: pointer; padding: .3rem 0; }
.add-note:hover { text-decoration: underline; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .76rem; color: var(--text-dim); align-items: center; margin-top: 1rem; }
.legend .lv { cursor: default; }
.disclaimer { font-size: .78rem; color: var(--text-dim); margin-top: 1.2rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); display: flex; gap: .6rem; }
.disclaimer svg { flex-shrink: 0; color: var(--warning); margin-top: 1px; }

/* ---------- Machines ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.mcard { padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; transition: border-color .18s, transform .18s; position: relative; overflow: hidden; }
.mcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mc, var(--accent)); }
.mcard:hover { border-color: var(--border-light); transform: translateY(-3px); }
.mcard .mk { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); font-weight: 600; }
.mcard h3 { font-size: 1.12rem; }
.mcard p { font-size: .86rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: var(--text-dim); padding-top: .4rem; }
.mdetail { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; margin-top: 1.6rem; }
@media (max-width: 960px) { .mdetail { grid-template-columns: 1fr; } }
.mbox { padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.mbox h3 { font-size: 1rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.mbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.mbox li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--text-muted); }
.mbox li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.mbox.pos li::before { background: var(--success); }
.mbox.neg li::before { background: var(--warning); }
.mbox.src li::before { background: var(--accent-2); }
.mbox.src a { color: var(--accent-2); }
.mbox.src a:hover { text-decoration: underline; }
.cov-list { display: grid; gap: .4rem; }
.cov-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .75rem; border-radius: 9px; background: var(--bg-alt-2); border: 1px solid var(--border); font-size: .84rem; flex-wrap: wrap; }
.cov-item .b { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { border: 1px solid var(--border); background: var(--bg-alt); padding: .45rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.tabs button.on { border-color: var(--accent); color: var(--text); background: rgba(255,45,60,.08); }

/* ---------- Settings ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.inp { font: inherit; width: 100%; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--border-light); background: var(--bg-alt); color: var(--text); outline: none; }
.inp:focus { border-color: var(--accent); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 200; background: var(--bg-alt); border: 1px solid var(--border-light); padding: .7rem 1.1rem; border-radius: 12px; font-size: .86rem; box-shadow: 0 20px 40px -16px var(--shadow-soft); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 820px) { .toast { bottom: 84px; } }

footer.ft { border-top: 1px solid var(--border); padding: 1.6rem 0; margin-top: 2.5rem; font-size: .78rem; color: var(--text-dim); }
footer.ft .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fade-in { animation: fi .28s ease; }
.no-anim .fade-in, .no-anim .note { animation: none; }
@keyframes fi { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.m-name .acc { flex-basis: 100%; padding-left: calc(10px + .65rem); margin-top: 0; }

/* ===== v3 : parcours « que voulez-vous faire ? » ===== */
.facts.compact { margin-top: 1.1rem; gap: .5rem; }
.facts.compact .fact { padding: .6rem .8rem; }
.facts.compact .fact b { font-size: .84rem; }
.warnline { display: flex; gap: .5rem; align-items: flex-start; margin-top: .7rem; font-size: .84rem; color: var(--warning); }
.warnline svg { flex-shrink: 0; margin-top: 2px; }
.gnotes { margin-top: .9rem; }
.ask { margin: 2rem 0 .4rem; }
.ask h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: .45rem; }
h3.grp { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin: 1.5rem 0 .7rem; font-weight: 700; }
.opgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.opcard { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto; column-gap: .9rem; row-gap: .15rem; align-items: center; padding: 1.05rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-card), var(--bg-alt)); transition: border-color .18s, transform .18s, box-shadow .18s; }
.opcard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 36px -22px var(--accent-glow); }
.opcard .op-ic { grid-row: 1 / 4; width: 50px; height: 50px; border-radius: 13px; align-self: start; }
.opcard .op-ic svg { width: 24px; height: 24px; }
.opcard > svg { grid-row: 1 / 4; grid-column: 3; color: var(--text-dim); transition: transform .18s, color .18s; }
.opcard:hover > svg { transform: translateX(3px); color: var(--accent); }
.oc-t { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.oc-s { font-size: .76rem; color: var(--text-dim); }
.oc-n { font-size: .8rem; color: var(--accent-2); margin-top: .35rem; }
.oc-n b { font-size: .95rem; }
.oc-n small { display: block; color: var(--text-muted); font-size: .72rem; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opcard.big { border-color: var(--border-light); }
.opcard.big .oc-t { font-size: 1.08rem; }
.opcard.off { opacity: .45; }
.opcard.off .oc-n { color: var(--text-dim); }
.opnav { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 1rem; }
.opchips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .25rem .5rem; min-width: 0; max-width: 100%; flex: 1 1 auto; scroll-padding-inline: .5rem; }
.opchips a { flex: 0 0 auto; }
.opchips::-webkit-scrollbar { display: none; }
.opchips a { white-space: nowrap; font-size: .78rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg-alt); }
.opchips a small { color: var(--text-dim); margin-left: .15rem; }
.opchips a:hover { border-color: var(--border-light); color: var(--text); }
.opchips a.on { border-color: var(--accent); color: var(--text); background: rgba(255,45,60,.1); }
.opchips a.off { opacity: .5; }
@media (max-width: 640px) { .opnav { flex-direction: column; align-items: stretch; } .opnav .btn { align-self: flex-start; } }
.opview .op-h h3 { font-size: 1.3rem; }
.opview .op-ic { width: 50px; height: 50px; }
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; padding: .7rem 1.2rem 1rem; }
.sub-h + .mlist { padding-top: .3rem; }
.mc { position: relative; padding: .9rem 1rem .9rem 1.15rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-alt); display: flex; flex-direction: column; gap: .55rem; overflow: hidden; transition: border-color .15s; }
.mc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mc); }
.mc:hover { border-color: var(--border-light); }
.mc.best { border-color: rgba(46,204,113,.55); box-shadow: 0 0 0 1px rgba(46,204,113,.25), 0 14px 30px -20px rgba(46,204,113,.5); }
.ribbon { position: absolute; top: .55rem; right: 2.9rem; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--success); padding: .15rem .45rem; border-radius: 5px; }
.mc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.mc-name b { font-family: var(--font-head); font-weight: 700; font-size: 1rem; display: block; }
.mc-name small { font-size: .74rem; color: var(--text-dim); }
.mc-name:hover b { color: var(--accent); }
.mc .m-badges { justify-content: flex-start; }
.mc .acc { margin-top: 0; }
.legend-d { margin: .4rem 1.2rem .8rem; font-size: .8rem; }
.legend-d summary { cursor: pointer; color: var(--text-dim); font-weight: 600; }
.legend-d summary:hover { color: var(--accent-2); }
.legend-d .legend { margin-top: .6rem; }

/* =========================================================
   v5 — style « tablette pro » (Autel / Xhorse) : clair, coloré, tactile
   ========================================================= */
:root[data-theme="light"] {
  --bg: #eef1f6; --bg-alt: #ffffff; --bg-alt-2: #f3f5f9; --bg-card: #ffffff;
  --border: #dde2ea; --border-light: #c9d0db; --text: #121826; --text-muted: #4a5466; --text-dim: #7a8496;
  --header-bg: rgba(255,255,255,.92);
}
:root { --radius: 16px; }
body { background: var(--bg); }
.card, .op { background: var(--bg-alt); box-shadow: 0 2px 10px -4px var(--shadow-soft); }
:root[data-theme="light"] .card, :root[data-theme="light"] .op { box-shadow: 0 4px 18px -10px rgba(18,24,38,.25); }
.hero { background: linear-gradient(135deg, #e8202e 0%, #b3121f 100%); color: #fff; border: 0; }
.hero::after { display: none; }
.hero p.lead, .hero .stat span { color: rgba(255,255,255,.85); }
.hero .eyebrow { color: #fff; } .hero .eyebrow::before { background: #fff; }
.hero .text-gradient { background: none; -webkit-text-fill-color: #fff; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 6px; }
.hero .search input { border: 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); color: #121826; background: #fff; }
.hero .search > svg { color: #7a8496; z-index: 1; }
.hero .stat b { color: #fff; }
.bg-grid { background-image: none; }

/* tuiles marques / modèles / années */
.btile, .mtile, .gtile, .ytile { background: var(--bg-alt); border: 2px solid transparent; box-shadow: 0 3px 12px -8px rgba(18,24,38,.35); border-radius: 16px; }
.btile:hover, .mtile:hover, .gtile:hover, .ytile:hover { border-color: var(--accent); transform: translateY(-2px); }
.btile:active, .mtile:active, .gtile:active, .ytile:active, .tile:active { transform: scale(.97); }
.btile img { height: 40px; width: 40px; }
.ytile { padding: .95rem 0; font-size: 1.05rem; }
.step { border-radius: 999px; }
.step.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.step.on .n { background: #fff; color: var(--accent); border-color: #fff; }

/* en-tête véhicule */
.vh-logo { background: var(--bg-alt); box-shadow: 0 3px 12px -8px rgba(18,24,38,.35); border: 0; }
.facts.compact .fact { background: var(--bg-alt); border: 0; box-shadow: 0 3px 12px -8px rgba(18,24,38,.3); border-left: 4px solid var(--accent-2); border-radius: 12px; }
.warnline { background: rgba(255,176,32,.12); padding: .6rem .8rem; border-radius: 12px; }

/* choix de l'opération : grandes tuiles */
h2.ask { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2rem 0 .2rem; }
.ask-s { color: var(--text-muted); margin-bottom: .4rem; }
.opgroup { margin-top: 1.4rem; }
h3.grp { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 .7rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; gap: .65rem; } }
.tile { position: relative; display: flex; flex-direction: column; gap: .35rem; min-width: 0; min-height: 168px; padding: 1.1rem 1rem 1rem; border-radius: 18px; color: #fff; background: var(--c); background-image: linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.12)); box-shadow: 0 10px 24px -14px var(--c); transition: transform .15s, box-shadow .15s, filter .15s; overflow: hidden; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px var(--c); filter: saturate(1.1); }
.tile .t-ic { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
.tile .t-ic svg { width: 32px; height: 32px; }
.tile b { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.2; }
.tile small { font-size: .74rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-n { position: absolute; top: .8rem; right: .8rem; min-width: 34px; height: 34px; padding: 0 .5rem; border-radius: 999px; background: #fff; color: var(--c); font-family: var(--font-head); font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.tile .t-ok { align-self: flex-start; margin-top: auto; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.25); padding: .15rem .5rem; border-radius: 999px; }
.tile.off { background: #9aa3b2; background-image: none; box-shadow: none; opacity: .55; }
.tile.off .t-n { color: #9aa3b2; }
@media (max-width: 520px) { .tile { min-height: 150px; padding: .9rem .8rem; } .tile .t-ic { width: 48px; height: 48px; } .tile .t-ic svg { width: 26px; height: 26px; } .tile b { font-size: .92rem; } }

/* vue d'une opération (la règle .opnav est plus haut, avec sa version mobile) */
.opchips a { border-radius: 999px; border: 2px solid transparent; background: var(--bg-alt); box-shadow: 0 2px 8px -6px rgba(18,24,38,.4); }
.opchips a.on { background: var(--c); color: #fff; border-color: var(--c); }
.opchips a.on small { color: rgba(255,255,255,.85); }
.opview { overflow: hidden; border: 0; }
.opview .op-h { background: var(--c); color: #fff; border: 0; padding: 1.2rem 1.3rem; }
.opview .op-h p, .opview .op-h .count { color: rgba(255,255,255,.88); }
.opview .op-h h3 { font-size: 1.35rem; }
.opview .op-ic { display: flex; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.2); border: 0; color: #fff; }
.opview .op-h .count { font-family: var(--font-head); font-weight: 700; font-size: .9rem; background: rgba(255,255,255,.2); padding: .3rem .8rem; border-radius: 999px; }
@media (max-width: 520px) { .opview .op-h { flex-wrap: wrap; padding: 1rem; } .opview .op-h > div { flex: 1 1 60%; min-width: 0; } .opview .op-h .count { margin-left: calc(56px + .9rem); } .opview .op-h h3 { font-size: 1.2rem; } }
.op-tip { border-radius: 12px; }
.mtgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; padding: 1rem 1.2rem 1.2rem; }
@media (max-width: 520px) { .mtgrid { padding: .8rem; gap: .7rem; } }
.mt { min-width: 0; position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1rem; border-radius: 16px; background: var(--bg-alt-2); border: 2px solid var(--border); transition: border-color .15s, transform .15s; }
.mt:hover { border-color: var(--mc); }
.mt.best { border-color: var(--success); background: rgba(46,204,113,.07); }
.mt-head { display: flex; align-items: center; gap: .75rem; }
.av { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--mc); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .02em; box-shadow: 0 6px 14px -8px var(--mc); }
.mt-name { min-width: 0; flex: 1; }
.mt-name b { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.2; }
.mt-name small { font-size: .75rem; color: var(--text-dim); }
.mt-name:hover b { color: var(--accent); }
.mt .nbtn { width: 38px; height: 38px; border-radius: 12px; background: var(--bg-alt); }
.mt-flags { display: flex; gap: .4rem; flex-wrap: wrap; }
.star { font-size: .74rem; font-weight: 800; color: #fff; background: var(--success); padding: .25rem .6rem; border-radius: 999px; }
.mt .tested { border-radius: 999px; padding: .25rem .6rem; }
.mt-meth { display: flex; flex-wrap: wrap; gap: .4rem; }
.mt-meth .lv { font-size: .78rem; padding: .32rem .7rem; border-radius: 999px; border: 0; color: #fff; }
.mt-meth .lv-obd { background: #2e9d57; } .mt-meth .lv-eep { background: #1e88e5; } .mt-meth .lv-ada { background: #8e24aa; }
.mt-meth .lv-lic { background: #f59e0b; } .mt-meth .lv-srv { background: #546e7a; } .mt-meth .lv-yes { background: #2e9d57; }
.mt-meth .lv-unk { background: transparent; color: var(--text-dim); border: 1.5px dashed var(--border-light); }
.mt-acc { display: flex; flex-direction: column; gap: .3rem; padding-top: .6rem; border-top: 1px dashed var(--border-light); }
.mt-acc b { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.ai { display: flex; align-items: flex-start; gap: .4rem; font-size: .82rem; color: var(--text-muted); }
.ai svg { color: var(--accent-2); margin-top: 3px; flex-shrink: 0; }
.ai.miss { color: var(--accent); font-weight: 600; } .ai.miss svg { color: var(--accent); }
.sub-h { padding: 1.1rem 1.2rem 0; font-size: .95rem; }
.legend-d { margin: 0 1.2rem 1rem; font-size: .82rem; }
.legend-d summary { cursor: pointer; color: var(--text-dim); font-weight: 600; }

/* machines / notes : cartes plus douces */
.mcard { border-radius: 16px; border: 0; }
.mcard::before { width: 5px; }
.mbox { border: 0; }
.btn { border-radius: 999px; }
.kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hero .kicker { color: rgba(255,255,255,.85); }
@media (max-width: 520px) { .facts.compact { grid-template-columns: 1fr 1fr; } .facts.compact .fact b { font-size: .78rem; } .vh-actions { margin-left: 0; } }
.hero.bg-grid { background-color: #c8161f; background-image: linear-gradient(135deg, #e8202e 0%, #b3121f 100%); }

/* ===== animations d'entrée ===== */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pop { animation: pop .45s cubic-bezier(.2,.8,.3,1.2) both; animation-delay: var(--d, 0ms); }
.hero .kicker, .hero h1, .hero p.lead, .hero .search, .hero .stats { animation: rise .6s cubic-bezier(.2,.8,.3,1) both; }
.hero h1 { animation-delay: .08s; } .hero p.lead { animation-delay: .16s; } .hero .search { animation-delay: .24s; } .hero .stats { animation-delay: .32s; }
.hero.bg-grid { position: relative; overflow: hidden; }
.hero.bg-grid::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); animation: sweep 1.6s .3s ease-out both; pointer-events: none; }
.eng { padding: .25rem 1.2rem 0; font-size: .8rem; color: var(--text-muted); }
.no-anim .pop, .no-anim .hero * { animation: none !important; }

/* écran d'ouverture */
#intro { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; background: linear-gradient(135deg, #e8202e, #9e0f1a); color: #fff; transition: opacity .45s ease, visibility .45s; }
#intro.out { opacity: 0; visibility: hidden; }
#intro .i-logo { width: 110px; height: 110px; border-radius: 28px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px -15px rgba(0,0,0,.5); animation: introLogo .7s cubic-bezier(.2,.9,.3,1.3) both; }
#intro .i-logo img { width: 82px; height: 82px; object-fit: contain; }
#intro .i-t { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; animation: rise .5s .25s both; }
#intro .i-t span { opacity: .75; font-weight: 600; }
#intro .i-icons { display: flex; gap: .7rem; }
#intro .i-icons i { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; animation: pop .4s both; }
#intro .i-icons i:nth-child(1) { animation-delay: .35s; } #intro .i-icons i:nth-child(2) { animation-delay: .45s; } #intro .i-icons i:nth-child(3) { animation-delay: .55s; } #intro .i-icons i:nth-child(4) { animation-delay: .65s; }
#intro .i-bar { width: 180px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); overflow: hidden; }
#intro .i-bar b { display: block; height: 100%; width: 0; background: #fff; border-radius: 9px; animation: fill 1.1s .3s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes fill { to { width: 100%; } }
@keyframes introLogo { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } .pop, .hero * { animation: none !important; } .hero.bg-grid::before { display: none; } }

/* VIN */
.vinbox { padding: .9rem 1rem; background: linear-gradient(135deg, rgba(232,32,46,.08), rgba(30,136,229,.06)); border-bottom: 1px solid var(--border); }
.vin-h { display: flex; align-items: center; gap: .55rem; color: var(--accent); }
.vin-h span { color: var(--text); font-size: .88rem; }
.vin-h code { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--bg-alt-2); padding: .1rem .4rem; border-radius: 6px; letter-spacing: .04em; word-break: break-all; }
.vin-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.vin-tags span { font-size: .76rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: var(--accent); color: #fff; }
.vin-tags span:nth-child(2) { background: #546e7a; } .vin-tags span:nth-child(3) { background: #1e88e5; } .vin-tags span:nth-child(4) { background: #2e9d57; }
.vin-notes { margin-top: .55rem; font-size: .76rem; color: var(--warning); }
.sugg a.vin-all { justify-content: space-between; color: var(--accent); }
.hero .search { z-index: 40; }
.hero .stats { position: relative; z-index: 1; }
/* la liste de suggestions ne doit pas être coupée par le bandeau */
.hero.bg-grid { overflow: visible; }
.hero.bg-grid::before { background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%) no-repeat; background-size: 300% 100%; animation: sweepbg 1.6s .3s ease-out both; }
@keyframes sweepbg { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero .sugg { color: var(--text); }

/* ===== bandeau d'accueil allégé (plus de gros bloc rouge) ===== */
.hero.bg-grid { background: var(--bg-alt); background-image: none; color: var(--text); padding: 1.8rem 0 1.5rem; border-bottom: 1px solid var(--border); box-shadow: inset 0 4px 0 var(--accent); }
.hero.bg-grid::before { display: none; }
.hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .45rem 0 .4rem; }
.hero h1 .red { color: var(--accent); }
.hero p.lead { color: var(--text-muted); font-size: .95rem; max-width: 620px; }
.hero .kicker { color: var(--accent); font-size: .72rem; }
.hero .search { margin-top: 1.1rem; max-width: 640px; }
.hero .search input { border: 2px solid var(--border); box-shadow: none; background: var(--bg-alt-2); padding-top: .85rem; padding-bottom: .85rem; }
.hero .search input:focus { border-color: var(--accent); background: var(--bg-alt); }
.hero .stats { gap: .5rem; margin-top: 1rem; }
.hero .stat { display: flex; align-items: baseline; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--bg-alt-2); border: 1px solid var(--border); }
.hero .stat b { font-size: .95rem; color: var(--text); display: inline; }
.hero .stat span { font-size: .74rem; color: var(--text-dim); }
.hero .stat:first-child b { color: var(--accent); }
:root:not([data-theme="light"]) .hero.bg-grid { background: var(--bg-alt); }

/* ===== photos ===== */
.phs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ph { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg-alt-2); border: 1px solid var(--border); flex-shrink: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.ph.loading { background: linear-gradient(90deg, var(--bg-alt-2), var(--border), var(--bg-alt-2)); background-size: 200% 100%; animation: sweepbg 1s linear infinite; }
.ph.missing::after { content: "Photo sur un autre appareil"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .6rem; color: var(--text-dim); padding: .2rem; }
.ph-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 99px; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; line-height: 1; }
.phbtn { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; animation: fi .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ===== procédures ===== */
.pblock { margin: .4rem 1.2rem 1rem; padding: 1rem; border-radius: 14px; background: var(--bg-alt-2); border: 1px dashed var(--border-light); }
.pb-h { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; flex-wrap: wrap; }
.pb-h svg { color: var(--accent-2); } .pb-h b { font-family: var(--font-head); } .pb-h .btn { margin-left: auto; }
.plist { display: grid; gap: .5rem; }
.pitem { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; background: var(--bg-alt); border: 2px solid transparent; box-shadow: 0 3px 10px -8px rgba(18,24,38,.4); transition: border-color .15s, transform .15s; }
.pitem:hover { border-color: var(--accent); transform: translateX(2px); }
.pitem .av { width: 38px; height: 38px; border-radius: 11px; font-size: .7rem; }
.pi-t { flex: 1; min-width: 0; } .pi-t b { display: block; font-family: var(--font-head); font-size: .94rem; } .pi-t small { color: var(--text-dim); font-size: .74rem; }
.pitem > svg { color: var(--text-dim); }
.ph-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pgroup { margin-top: 1.4rem; }
.pv-head { padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 0 14px 30px -18px var(--c); }
.pv-op { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.pv-head h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: .3rem 0 .7rem; }
.pv-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.pv-meta .chip { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.pv-prog { height: 8px; border-radius: 9px; background: rgba(255,255,255,.25); margin-top: 1rem; overflow: hidden; }
.pv-prog i { display: block; height: 100%; background: #fff; border-radius: 9px; transition: width .3s ease; }
.pv-count { display: block; margin-top: .35rem; opacity: .9; font-size: .78rem; }
.steps-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.steps-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: var(--bg-alt); border: 2px solid var(--border); cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; font-size: .95rem; }
.steps-list li:hover { border-color: var(--accent-2); }
.steps-list .sn { width: 30px; height: 30px; border-radius: 99px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: .85rem; background: var(--bg-alt-2); border: 2px solid var(--border-light); }
.steps-list li.done { background: rgba(46,204,113,.08); border-color: rgba(46,204,113,.5); }
.steps-list li.done span:last-child { text-decoration: line-through; color: var(--text-dim); }
.steps-list li.done .sn { background: var(--success); border-color: var(--success); color: #fff; }
.pv-warn { display: flex; gap: .7rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(255,176,32,.12); color: var(--text); }
.pv-warn svg { color: var(--warning); flex-shrink: 0; } .pv-warn ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.pv-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.pform { padding: 1.3rem; display: grid; gap: 1rem; }
.pform label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--text-muted); }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .bnav { grid-template-columns: repeat(5, 1fr); } .bnav a { font-size: .62rem; } }

/* ===== schémas ===== */
.dblock { border-style: solid; }
.pb-h small { font-size: .74rem; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.dcard { text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: .3rem; padding: .6rem; border-radius: 14px; background: var(--bg-alt); border: 2px solid transparent; box-shadow: 0 3px 10px -8px rgba(18,24,38,.4); cursor: zoom-in; transition: border-color .15s, transform .15s; }
.dcard:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.dthumb { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.dthumb svg { display: block; width: 100%; height: auto; }
.dcard b { font-family: var(--font-head); font-size: .9rem; margin-top: .2rem; }
.dcard small { font-size: .74rem; color: var(--text-dim); line-height: 1.35; }
.lightbox.diag { cursor: zoom-out; }
.dl-box { width: min(1100px, 100%); max-height: 100%; overflow: auto; }
.dl-box svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.dl-box p { color: #fff; font-size: .9rem; margin-top: .7rem; text-align: center; }

/* ===== reconnaissance clé ===== */
.keytile { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 18px; background: linear-gradient(135deg, #263238, #37474f); color: #fff; box-shadow: 0 14px 30px -18px rgba(18,24,38,.8); transition: transform .15s, box-shadow .15s; }
.keytile:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(18,24,38,.9); }
.kt-img { width: 150px; flex-shrink: 0; background: #fff; border-radius: 14px; padding: 4px; }
.kt-img svg { display: block; width: 100%; height: auto; }
.kt-img .ph { width: 100%; height: 84px; border: 0; }
.kt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.kt-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #ffcc80; }
.kt-txt b { font-family: var(--font-head); font-size: 1.05rem; }
.kt-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.kt-chips span { font-size: .74rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: rgba(255,255,255,.14); }
.kt-txt small { font-size: .74rem; opacity: .7; }
.keytile > svg { flex-shrink: 0; opacity: .7; }
@media (max-width: 560px) { .keytile { flex-direction: column; align-items: stretch; } .kt-img { width: 100%; } .keytile > svg { display: none; } }
.keyview { overflow: hidden; }
.kv-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; padding: 1.2rem; align-items: center; }
@media (max-width: 760px) { .kv-top { grid-template-columns: 1fr; } }
.kv-draw { background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: .6rem; text-align: center; }
.kv-draw svg { width: 100%; height: auto; display: block; }
.kv-draw small { font-size: .7rem; color: #7a8496; }
.kv-info h3 { font-size: 1.35rem; margin: .4rem 0 .3rem; }
.kv-info .kt-tag { color: var(--accent); }
.kv-extra { display: flex; gap: .4rem; align-items: flex-start; font-size: .86rem; margin: .5rem 0 .8rem; padding: .5rem .7rem; border-radius: 10px; background: rgba(0,212,255,.08); }
.kv-extra svg { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.kv-info .btn { margin-top: .4rem; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; padding: 0 1.2rem 1rem; }
.kv-row { padding: .7rem .85rem; border-radius: 12px; background: var(--bg-alt-2); border-left: 4px solid var(--accent-2); }
.kv-row span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 700; }
.kv-row b { font-size: .92rem; }
.kv-uni { margin: 0 1.2rem 1rem; padding: .9rem 1rem; border-radius: 14px; border: 1px dashed var(--border-light); display: grid; gap: .45rem; }
.kv-uni > b { font-family: var(--font-head); }
.kv-u { font-size: .86rem; color: var(--text-muted); }
.kv-u span { display: inline-block; min-width: 150px; font-weight: 800; color: var(--text); }
.kv-top > * { min-width: 0; }
.kv-info .btn { white-space: normal; text-align: center; }
.kv-u span { min-width: 0; display: block; }
.kv-info h3 { overflow-wrap: anywhere; }

/* fiche clé : groupes */
.kv-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; padding: 0 1.2rem 1rem; }
.kv-g { border-radius: 16px; background: var(--bg-alt-2); border: 1px solid var(--border); overflow: hidden; }
.kv-gh { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: var(--gc); color: #fff; }
.kv-gh span { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.kv-gh b { font-family: var(--font-head); font-size: .95rem; }
.kv-l { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .65rem .9rem; border-top: 1px solid var(--border); font-size: .9rem; }
.kv-l:first-of-type { border-top: 0; }
.kv-l > span { color: var(--text-dim); font-weight: 600; flex-shrink: 0; }
.kv-l > b { text-align: right; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.kv-warn { font-style: normal; font-size: .7rem; font-weight: 800; color: #b86e00; background: rgba(255,176,32,.18); padding: .12rem .45rem; border-radius: 999px; margin-left: .3rem; white-space: nowrap; }
.kv-no { color: var(--accent); }
.kv-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.kv-chips i { font-style: normal; font-size: .74rem; font-weight: 700; padding: .18rem .5rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border-light); }
.kv-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .kv-groups { grid-template-columns: 1fr; } }

.paste-hint { display: block; font-size: .74rem; color: var(--text-dim); margin-top: .1rem; }
.nform.drop { outline: 3px dashed var(--accent-2); outline-offset: 4px; border-radius: 12px; }

/* version + menu allégé */
.ver { font-family: var(--font-head); font-size: .74rem; font-weight: 700; color: var(--text-muted); background: var(--bg-alt-2); border: 1px solid var(--border); padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; margin-left: .5rem; }
.nav + .hdr-spacer { display: none; }
@media (max-width: 820px) { .ver { margin-left: auto; } .bnav { grid-template-columns: repeat(3, 1fr) !important; } .bnav a { font-size: .7rem !important; } }

/* ===== V1.0.1 ===== */
/* badge Atelier : texte sobre (fini la pastille) */
.brand-sep { width: 1px; height: 28px; background: var(--border-light); }
.brand-name { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: var(--text-muted); }
@media (max-width: 820px) { .brand-sep { height: 22px; } .brand-name { font-size: .9rem; } .bnav { grid-template-columns: repeat(5, 1fr) !important; } .bnav a { font-size: .62rem !important; } }
/* variantes de clés */
.kv-vars { margin: 0 1.2rem 1rem; }
.kv-vars > b { font-family: var(--font-head); display: block; margin-bottom: .6rem; }
.kv-vars > b small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--text-dim); margin-left: .3rem; }
.kvv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.kvv { display: flex; flex-direction: column; gap: .2rem; padding: .5rem; border-radius: 14px; background: var(--bg-alt-2); border: 1px solid var(--border); }
.kvv-img { display: block; background: #fff; border-radius: 10px; }
.kvv-img svg { display: block; width: 100%; height: auto; }
.kvv b { font-size: .86rem; font-family: var(--font-head); margin-top: .2rem; }
.kvv small { font-size: .72rem; color: var(--text-dim); line-height: 1.3; }
/* historique */
.hlist { display: grid; gap: .5rem; }
.hl-home { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 1.8rem; }
.hcard { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: 14px; background: var(--bg-alt); box-shadow: 0 3px 12px -8px rgba(18,24,38,.35); border: 2px solid transparent; transition: border-color .15s; }
.hcard:hover { border-color: var(--accent); }
.hcard .vh-logo { width: 42px; height: 42px; border-radius: 11px; }
.hcard .vh-logo img { width: 26px; height: 26px; }
.hc-t { flex: 1; min-width: 0; } .hc-t b { display: block; font-family: var(--font-head); font-size: .95rem; } .hc-t small { color: var(--text-dim); font-size: .76rem; }
.hc-ago { font-size: .74rem; color: var(--text-dim); white-space: nowrap; }
/* comparateur */
.cmp-pick { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.cmp-pick > div { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cmp-pick small { width: 92px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.cmp-chip { font: inherit; font-size: .8rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 2px solid var(--border); background: var(--bg-alt); color: var(--text-muted); cursor: pointer; }
.cmp-chip.on { border-color: var(--mc); background: var(--mc); color: var(--mt, #fff); }
.cmp-wrap { overflow-x: auto; border-radius: 16px; background: var(--bg-alt); box-shadow: 0 4px 18px -10px rgba(18,24,38,.25); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .84rem; }
.cmp th, .cmp td { padding: .6rem .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp thead th { position: sticky; top: 0; background: var(--bg-alt); z-index: 1; }
.cmp th .av { width: 34px; height: 34px; border-radius: 10px; font-size: .66rem; margin-bottom: .3rem; }
.cmp th b { display: block; font-family: var(--font-head); font-size: .84rem; }
.cmp td:first-child { min-width: 210px; }
.cmp td:first-child b { display: block; font-size: .84rem; } .cmp td:first-child small { color: var(--text-dim); font-size: .72rem; }
.cmp-sec td { background: var(--bg-alt-2); font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.cmp-tot td { background: rgba(0,151,167,.06); }
.cmp-op { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-bottom: .25rem; }
.cmp-op i { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--text-dim); min-width: 44px; }
.cmp .lv { font-size: .64rem; padding: .12rem .38rem; }
.cmp-no { color: var(--text-dim); font-weight: 800; }

/* ===== menu déroulant Machines ===== */
.mdd { position: relative; }
.mdd > a { display: flex; align-items: center; gap: .4rem; }
.mdd-chev { opacity: .6; transition: transform .15s; }
.mdd.open .mdd-chev { transform: rotate(180deg); }
.mdd-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); width: min(760px, 92vw); max-height: 70vh; overflow: auto; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(18,24,38,.5); padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; z-index: 150; }
.mdd.open .mdd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mdd-panel::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.mdd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem 1rem; }
.mdd-col b { display: block; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: .35rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
.mdd-col a { display: flex; align-items: center; gap: .45rem; padding: .32rem .4rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--text); }
.mdd-col a:hover { background: var(--bg-alt-2); color: var(--accent); }
.mdd-col a i { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.mdd-all { display: block; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--border); font-weight: 700; font-size: .86rem; color: var(--accent); }
.mk-sel { max-width: 420px; margin: .4rem 0 .4rem; }

/* ===== bandeau défilant des marques de machines ===== */
.mkband { margin-top: 2.5rem; padding: 1.8rem 0 1.6rem; border-top: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; }
.mk-title { text-align: center; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.1rem; }
.mk-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mk-track { display: flex; align-items: center; width: max-content; animation: mk-scroll 40s linear infinite; }
/* au survol : le bandeau ralentit doucement (js : buildMakerBand), il ne s'arrête plus */
.mk-item { padding: 0 1.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text-dim); opacity: .75; white-space: nowrap; transition: color .15s, opacity .15s; }
.mk-item:hover { color: var(--accent); opacity: 1; }
@keyframes mk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mk-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }
footer.ft { margin-top: 0; }

/* logos des marques de machines : badge, ou logo officiel s'il est fourni */
.mk-item { display: flex; align-items: center; opacity: .85; }
.mk-badge { display: inline-flex; align-items: center; gap: .55rem; }
.mk-mono { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 14px -8px var(--c); }
.mk-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--text-muted); letter-spacing: -.01em; }
.mk-item:hover .mk-name { color: var(--c); }
.mk-img { display: none; height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.mk-item.has-img .mk-img { display: block; height: 36px; width: 36px; object-fit: contain; border-radius: 9px; margin-right: .55rem; }
.mk-item.has-img .mk-mono { display: none; }

/* logos texte (marques sans logo officiel) : le logo remplace le nom */
.mk-item.has-img.wm .mk-img { width: auto; height: 26px; max-width: 170px; border-radius: 0; margin-right: 0; }
.mk-item.wm .mk-badge { display: none; }

/* pastille machine = logo de la marque */
.av.av-logo { background: #fff; border: 2px solid var(--mc); padding: 4px; box-shadow: 0 6px 14px -10px var(--mc); overflow: hidden; }
.av.av-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.av { white-space: nowrap; overflow: hidden; font-size: .62rem; }

/* V1.0.7 — pages courtes : le pied de page reste en bas de l'écran */
#app { min-height: calc(100vh - 260px); }
