/* flat6gt.com — feuille de style (charte : fond #0E0E10, texte #F2F1EE, accent #F5C400 ; Manrope + JetBrains Mono) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #0E0E10; --surface: #17171B; --line: #26262B; --line-2: #3A3A40;
  --text: #F2F1EE; --soft: #C9C8C3; --muted: #A9A8A3; --faint: #8E8D88;
  --accent: #F5C400; --accent-bg: #2A2410; --ok: #8FD19E; --err: #FF8A80; --info: #9CC0F0;
  --plate-blue: #1F3F9A; --plate-bg: #F7F7F4;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 480px; }
main.wrap { padding-top: 40px; padding-bottom: 72px; min-height: 60vh; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--text); }
.logo-gt { color: var(--accent); }
.logo-sm { font-size: 20px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.nav-on { color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { color: #0E0E10; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang a { padding: 6px 10px; min-height: 32px; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--text); color: var(--bg); }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--text); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }

/* Typo */
.display { margin: 0; font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.display-md { margin: 20px 0 0; font-weight: 800; font-size: clamp(34px, 5vw, 50px); line-height: 1.02; letter-spacing: -0.03em; }
.h1 { margin: 0 0 8px; font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.025em; }
.h2 { margin: 0 0 20px; font-weight: 800; font-size: 24px; letter-spacing: -0.015em; }
.h3 { margin: 0 0 8px; font-weight: 800; font-size: 19px; }
.lead { font-size: 18px; color: var(--soft); max-width: 600px; }
.kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: 14px; }
.mono { font-family: var(--mono); } .strong { font-weight: 700; } .right { text-align: right; } .center { text-align: center; }
.block { display: block; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; }
.todo { background: var(--accent-bg); color: var(--accent); padding: 0 4px; border-radius: 3px; font-weight: 700; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #0E0E10; }
.btn-primary:hover { background: #FFD633; color: #0E0E10; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-danger { background: transparent; border-color: #8C2B2B; color: var(--err); }
.btn-danger:hover { background: #3A1414; color: var(--err); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 17px; }
.btn-block { width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Plaque */
.plate { display: inline-flex; align-items: stretch; background: var(--plate-bg); color: #0E0E10; border-radius: 4px; overflow: hidden; font-family: var(--mono); font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; }
.plate-eu { width: 10px; background: var(--plate-blue); color: #fff; font-size: 0; }
.plate-txt { padding: 3px 10px; }
.plate-md .plate-eu { width: 26px; font-size: 13px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.plate-md .plate-eu-r { font-size: 0; }
.plate-md .plate-txt { padding: 8px 16px; font-size: 24px; }
.plate-lg { border-radius: 8px; }
.plate-lg .plate-eu { width: 40px; font-size: 18px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-family: 'Manrope', sans-serif; font-weight: 800; }
.plate-lg .plate-eu-r { font-size: 0; }
.plate-lg .plate-txt { padding: 12px 24px; font-size: clamp(28px, 5vw, 40px); }
.plate-link { text-decoration: none; display: inline-block; vertical-align: middle; line-height: 0; }
.plate-link .plate, .table .plate { line-height: 1.5; vertical-align: middle; }
.plate-link:hover .plate { outline: 2px solid var(--accent); }
.plate-input { display: flex; align-items: stretch; height: 52px; border-radius: 8px; overflow: hidden; background: var(--plate-bg); }
.plate-input .plate-eu { width: 34px; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.plate-input .plate-eu-r { font-size: 0; }
.plate-input input, .plate-input input[type=text] { flex: 1; min-height: 0; padding: 0; border-radius: 0; outline: none; min-width: 0; border: 0; background: transparent; font-family: var(--mono); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; color: #0E0E10; text-align: center; text-transform: uppercase; }
.plate-input input:focus { outline: none; border: 0; }
.plate-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.plate-input input:disabled { color: #8a8a86; }
.plate-input-lg { height: 64px; }
.plate-input-lg input, .plate-input-lg input[type=text] { font-size: 28px; }
.plate-input-lg .plate-eu { width: 40px; font-size: 16px; }

/* Cartes, accueil */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.dashed { background: transparent; border-style: dashed; border-color: var(--line-2); }
.card.danger { border-color: #4A2020; }
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 48px 0 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.search-card { flex: 1 1 360px; min-width: 0; padding: 28px; }
.lock { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; }
.lock svg { color: var(--accent); flex: none; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 64px; }
.stats-grid > div { background: var(--bg); padding: 26px; }
.stat-n { font-weight: 800; font-size: 50px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px; }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.col-main { flex: 999 1 520px; min-width: 0; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 44px; gap: 14px; align-items: center; }
.bar-row-wide { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) 44px; }
.bar { height: 10px; background: var(--line); border-radius: 5px; }
.bar > div { height: 10px; background: var(--accent); border-radius: 5px; min-width: 4px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.eyebrow), .field > legend:not(.eyebrow) { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 48px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 10px 14px; font: inherit; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check label { font-size: 14px; color: var(--soft); }
.alert { border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.alert-error { background: #2A1414; border: 1px solid #7A2B2B; color: #FFB4AE; }
.alert-ok { background: #13261A; border: 1px solid #2F6B43; color: var(--ok); }
.alert-info { background: #141E2E; border: 1px solid #2F4E7A; color: var(--info); }
.form-inline { display: flex; gap: 8px; margin: 12px 0; }
.form-inline input { flex: 1; }

/* Attente */
.wait-icon { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent); margin: 24px 0 24px; }
.wait-steps { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.wait-steps li { display: flex; gap: 14px; align-items: center; }
.dot { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; }
.dot-done { background: var(--accent); color: #0E0E10; }

/* Registre */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.search-inline { flex: 0 1 420px; min-width: 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text); }
.chip-on { background: var(--accent); border-color: var(--accent); color: #0E0E10; }
.chip-on:hover { color: #0E0E10; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 24px; }
.sel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.sel select { min-height: 40px; width: auto; min-width: 150px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.tog { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; cursor: pointer; }
.tog input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; padding: 14px 16px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.table td { padding: 11px 16px; border-bottom: 1px solid #1E1E22; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.color-cell { display: inline-flex; align-items: center; gap: 10px; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #4A4A50; flex: none; }
.swatch-lg { width: 88px; height: 88px; border-radius: 12px; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; border: 1px solid var(--line-2); color: var(--soft); border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.tag-warn { border-color: #6B5A10; color: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 24px; }
.pager > :last-child { justify-self: end; }

/* Fiche */
.fiche { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; }
.color-card { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.color-name { font-weight: 800; font-size: 24px; }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.kv { margin: 0; padding: 6px 20px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; text-align: right; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--soft); }
.wrap-read { max-width: 820px; }
.legal { font-size: 17px; line-height: 1.7; }
.legal-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-head .h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 12px; }
.legal-head .lead { margin: 0 0 10px; }
.legal-date { margin: 0 0 22px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--soft); }
.legal-nav a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.legal-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 40px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec > h2 { margin: 3px 0 0; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); line-height: 1.5; }
.legal-sec p { margin: 0 0 14px; color: var(--soft); }
.legal-sec p:last-child { margin-bottom: 0; }
.legal-sec strong { color: var(--text); }
.legal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.legal-list li { display: flex; flex-direction: column; gap: 2px; }
.legal-list li span { color: var(--soft); }
.legal-bullets { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.legal-bullets li { position: relative; padding-left: 22px; color: var(--soft); }
.legal-bullets li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--accent); }
.legal-dl { margin: 0; display: flex; flex-direction: column; }
.legal-dl > div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.legal-dl > div:last-child { border-bottom: 0; }
.legal-dl dt { color: var(--muted); } .legal-dl dd { margin: 0; color: var(--text); font-weight: 600; }
.legal-callout { background: var(--accent-bg); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 8px 8px 0; color: var(--text) !important; }
@media (max-width: 720px) {
  .legal { font-size: 16px; }
  .legal-sec { grid-template-columns: 1fr; padding: 24px 0; }
  .legal-sec > h2 { margin-bottom: 6px; }
  .legal-dl > div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Admin (mobile d'abord) ---------- */
body.admin { padding-bottom: env(safe-area-inset-bottom); }
.admin-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.admin-pill { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; background: var(--accent); color: #0E0E10; padding: 2px 6px; border-radius: 4px; }
.admin-site { margin-left: auto; font-size: 14px; color: var(--muted); }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.admin-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 11px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.admin-tabs a.on { background: var(--surface); color: var(--text); }
.badge { background: var(--accent); color: #0E0E10; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.admin-main { max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }
.admin-form { gap: 20px; }
.pill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pill-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.pill-in:checked + .pill { background: var(--accent); border-color: var(--accent); color: #0E0E10; }
.pill-in:focus-visible + .pill { outline: 2px solid var(--text); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: 1 / -1; }
.suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.suggest button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.suggest button[aria-selected=true] { border-color: var(--accent); background: var(--accent-bg); }
.suggest .code { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 14, 16, 0.96); border-top: 1px solid var(--line); z-index: 10; }
.savebar .btn { max-width: 608px; margin: 0 auto; display: flex; }
.status-box { margin-top: 10px; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.status-exists { background: var(--accent-bg); border: 1px solid var(--accent); }
.status-near { background: var(--surface); border: 1px solid #5A86C9; }
.status-new { color: var(--ok); padding: 8px 0 0; }
.admin-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-list li { border-bottom: 1px solid #1E1E22; }
.admin-list li:last-child { border-bottom: 0; }
.admin-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; min-height: 56px; }
.al-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.obs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row-between { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 4px 0; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

@media (max-width: 640px) {
  main.wrap { padding-top: 24px; }
  .hero { padding: 24px 0 40px; gap: 32px; }
  .bar-row { grid-template-columns: minmax(100px, 130px) minmax(0, 1fr) 36px; gap: 10px; font-size: 14px; }
  .stat-n { font-size: 40px; }
}

/* Accueil : la gamme (modèle → générations), façon fiche technique */
.range { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.range-row { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) 72px; align-items: center; gap: 12px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.range-name { display: flex; flex-direction: column; line-height: 1.15; }
.range-family { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.range-model { font-weight: 800; font-size: 21px; letter-spacing: -0.015em; }
.range-data { min-width: 0; }
.range-bar { display: flex; gap: 2px; height: 6px; min-width: 6px; }
.range-bar .seg { display: block; height: 6px; min-width: 3px; }
.range-bar .seg:first-child { border-radius: 3px 0 0 3px; }
.range-bar .seg:last-child { border-radius: 0 3px 3px 0; }
.range-bar .seg:only-child { border-radius: 3px; }
.seg-0 { background: var(--accent); }
.seg-1 { background: #C9C4B4; }
.seg-2 { background: #77735F; }
.seg-3 { background: #57544A; }
.seg-4 { background: #403E37; }
.seg-5 { background: #33312C; }
.range-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.range-legend span { display: inline-flex; align-items: center; gap: 8px; }
.range-legend b { color: var(--text); font-weight: 700; }
.dot-seg { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.range-total { font-weight: 800; font-size: 34px; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .range-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .range-data { grid-column: 1 / -1; grid-row: 2; }
  .range-total { font-size: 28px; }
}

/* ---------- Expérience connaisseur ---------- */
.faint { color: var(--faint); }
a.range-name { text-decoration: none; color: var(--text); }
a.range-name:hover .range-model { color: var(--accent); }
.range-legend a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
.range-legend a:hover { color: var(--text); }
.gen-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 10px 3px; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--mono); font-size: 0.42em; font-weight: 700; letter-spacing: 0.04em; color: var(--soft); position: relative; top: -0.12em; }
.model-link { color: var(--text); text-decoration: none; }
.model-link:hover { color: var(--accent); }

/* Badges (fiche) */
.badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge-gt { padding: 6px 12px; border-radius: 4px; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

/* Rareté */
.rarity { border-color: #4A4020; }
.rar-main { margin: 6px 0 12px; font-size: 16px; line-height: 1.45; color: var(--soft); }
.rar-main strong { color: var(--text); }
.rar-n { display: block; font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 4px; }
.rar-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.rar-sub a { color: var(--soft); }

/* Filtre actif (registre) */
.active-filter { margin: -8px 0 20px; font-size: 14px; color: var(--muted); }
.active-filter strong { color: var(--text); }
.active-filter a { margin-left: 6px; text-decoration: none; color: var(--muted); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; }

/* Nuancier */
.page-intro { padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-intro .lead { margin: 8px 0 0; }
.intro-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 24px; }
.intro-stats div { display: flex; flex-direction: column; }
.intro-stats b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.intro-stats span { font-size: 13px; color: var(--muted); }
.swatch-fam { margin-top: 36px; }
.fam-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.fam-title span { font-family: var(--mono); color: var(--faint); letter-spacing: 0; }
.swatch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.swatch-tile { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--text); min-height: 76px; }
.swatch-tile:hover { border-color: var(--line-2); color: var(--text); }
.swatch-tile:hover .tile-name { color: var(--accent); }
.chip-paint { width: 56px; height: 56px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 -14px 18px -12px rgba(0,0,0,0.35); }
.tile-body { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile-meta { display: flex; gap: 10px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--faint); }
.tile-pts { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); }
.tile-n { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Page modèle */
.model-head { padding: 12px 0 26px; border-bottom: 1px solid var(--line); }
.model-head .display-md { margin-top: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-bottom: 1px solid var(--line); }
.spec-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; }
.spec-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.spec-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec-val { font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.spec-val small { margin-left: 10px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.color-bars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.color-bars li a { display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid #1E1E22; text-decoration: none; color: var(--text); font-size: 15px; }
.color-bars li a:hover { color: var(--accent); }
.color-bars .bar { display: block; height: 6px; background: var(--line); border-radius: 3px; }
.color-bars .bar > span { display: block; height: 6px; background: var(--accent); border-radius: 3px; }
.obs-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.obs-list li { display: flex; align-items: center; gap: 12px; }
.obs-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.price-range { margin: 10px 0 4px; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-val { font-size: 32px; }
  .color-bars li a { grid-template-columns: minmax(0, 1fr) 80px 32px; gap: 10px; font-size: 14px; }
}
