/* CRM des commerciaux : design « Showroom » choisi le 27/10/2026 (logo du client en grand, visuel de la campagne, couleur de la ville). */
:root {
  --bg: #F4F4F2; --panel: #FFFFFF; --ink: #141414; --mute: #5A5A55; --line: #E4E4E0; --soft: #EFEFEB;
  --accent: #1C3F6E; --accent-ink: #FFFFFF; --ok: #0F7A3D; --ok-bg: #E3F4EA; --warn: #B45309; --warn-bg: #FFF4E0;
  --bad: #B42318; --bad-bg: #FDECEC; --wa: #14532D; --wa-bg: #E8F5EC; --kompass-bg: #FFF8E6; --kompass-line: #F3D18A;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
a { color: var(--accent); }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 8px; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.pad { padding: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

button, .btn { font: 600 14px var(--font); border-radius: 4px; padding: 10px 14px; min-height: 44px; border: 1px solid #D5DAE1; background: var(--panel); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wa { background: var(--wa-bg); color: var(--wa); border-color: #BFE3CB; }
.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--mute); font-weight: 500; text-decoration: underline; }
input, select, textarea { font: 15px var(--font); color: var(--ink); background: var(--panel); border: 1px solid #D5DAE1; border-radius: 4px; padding: 10px 12px; min-height: 44px; width: 100%; }
label { font-size: 13px; color: var(--mute); display: block; margin-bottom: 4px; }

/* connexion */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; }
.login .box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }

/* en-tête */
.top { background: var(--bg); }
.bar { background: var(--panel); border-bottom: 1px solid var(--line); padding: 18px 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand .logo { height: 22px; width: auto; display: block; }
.brand .sep { width: 1px; height: 26px; background: #D6D6D0; }
.brand .app-name { font-size: 15px; font-weight: 500; color: #4A4A46; }
.who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--mute); }
.by { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.by img { width: 30px; height: 30px; display: block; }

/* campagne : onglets + bande avec le visuel du modèle */
.campaign { background: var(--panel); border-bottom: 1px solid var(--line); }
.camps { display: flex; gap: 4px; padding: 0 32px; overflow-x: auto; border-bottom: 1px solid #EDEDE9; }
.camps a { text-decoration: none; padding: 14px 16px 12px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; color: var(--mute); box-shadow: inset 0 -2px 0 transparent; }
.camps a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.hero { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 220px; }
.hero-text { flex: 1 1 340px; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.model { font-size: 48px; font-weight: 300; line-height: 1.05; letter-spacing: -.01em; }
.sub { font-size: 14px; color: #4A4A46; }
.city-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; font-size: 14px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; transition: background .3s; }
.hero-img { flex: 2 1 520px; min-height: 220px; position: relative; overflow: hidden; background: #E9E9E5; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* villes : la ville choisie prend sa couleur */
.cities { display: flex; gap: 8px; padding: 16px 32px 0; overflow-x: auto; }
.cities a { text-decoration: none; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid #DCDCD6; white-space: nowrap; transition: background .2s, color .2s; }
.cities a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
.city-bar { height: 4px; margin: 12px 32px 0; border-radius: 2px; transition: background .3s; }
.views { display: flex; gap: 6px; padding: 14px 32px 4px; overflow-x: auto; }
.views a { text-decoration: none; padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 4px; font-size: 13px; color: var(--ink); background: var(--panel); border: 1px solid #DCDCD6; white-space: nowrap; }
.views a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
@media (max-width: 700px) {
  .bar { padding: 14px 16px; }
  .brand .logo { height: 16px; }
  .camps, .cities, .views { padding-left: 16px; padding-right: 16px; }
  .city-bar { margin: 12px 16px 0; }
  .hero-text { padding: 20px 16px; }
  .model { font-size: 34px; }
  .hero-img { min-height: 150px; }
}

/* liste : cartes sur téléphone, tableau sur ordinateur */
.list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card .name { font-weight: 600; font-size: 16px; }
.card .actions { display: flex; gap: 8px; }
.card .actions > * { flex: 1; }
.table-wrap { display: none; margin: 12px 32px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1000px; }
th { text-align: left; background: #FAFAF8; color: #4A4A46; font-weight: 600; padding: 12px 14px; white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid #EEEEEA; vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #F8F8F5; }
@media (min-width: 900px) {
  .list { display: none; }
  .table-wrap { display: block; }
}

.pill { display: inline-block; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--ink); }
.q-Chaud { background: var(--ok-bg); color: var(--ok); }
.q-Tiède { background: var(--warn-bg); color: var(--warn); }
.q-Froid { background: #E8EEFB; color: var(--accent); }
.q-Invalide { background: var(--soft); color: var(--mute); }
.late { color: var(--bad); font-weight: 600; }

/* fiche */
.sheet { position: fixed; inset: 0; background: rgba(20, 24, 31, .35); display: flex; justify-content: flex-end; z-index: 10; }
.sheet .panel { background: var(--bg); width: 100%; max-width: 480px; height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.sheet header { background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.sheet section { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.new-contact { background: var(--panel); border: 2px solid var(--accent); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.outcomes button { font-weight: 500; font-size: 13px; padding: 10px 6px; text-align: center; }
.outcomes button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.quals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.quals button[aria-pressed="true"] { outline: 2px solid var(--ink); }
.kompass { background: var(--kompass-bg); border: 1px solid var(--kompass-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }

/* équipe */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .v { font-size: 24px; font-weight: 700; }

.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; max-width: 90vw; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--bad); }

/* aide */
.faq { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.faq li { margin: 6px 0; }
.count { padding: 10px 32px 0; }
@media (max-width: 700px) { .count { padding: 10px 16px 0; } .table-wrap { margin: 12px; } }

/* pages : tableau de bord / leads */
.pages { background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 32px; display: flex; gap: 4px; }
.pages a { text-decoration: none; padding: 12px 16px 10px; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--mute); box-shadow: inset 0 -2px 0 transparent; }
.pages a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.views.between { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.views .row { gap: 6px; flex-wrap: nowrap; }
.period { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; }

/* tableau de bord */
.dash { padding: 12px 32px 40px; display: flex; flex-direction: column; gap: 14px; }
.insights { display: flex; flex-direction: column; gap: 10px; }
.insight { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.insight .big { flex: 0 0 120px; font-size: 34px; font-weight: 300; line-height: 1; }
.insight .itext { flex: 1 1 380px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #4A4A46; }
.insight .itext strong { color: var(--ink); font-size: 16px; }
.insight button { border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: var(--ink); min-height: 0; }
button.tile { cursor: pointer; }
button.tile:hover { border-color: #C9C9C2; }
.tile .tl { font-size: 13px; color: var(--mute); }
.tile .tv { font-size: 32px; font-weight: 300; line-height: 1.2; }
.tile .tn { font-size: 12px; color: var(--mute); }
.t-bad { border-top-color: var(--bad); } .t-warn { border-top-color: #C27A1A; } .t-ok { border-top-color: var(--ok); } .t-info { border-top-color: var(--accent); }
.panel-d { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel-d h2 { margin: 0; font-size: 16px; }
.two { display: flex; flex-wrap: wrap; gap: 14px; }
.two > * { flex: 1 1 440px; }
.stack { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--soft); }
.q0 { background: var(--ok); } .q1 { background: #C27A1A; } .q2 { background: #8DA4C4; } .q3 { background: #6B6B66; } .q4 { background: #D6D6D0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.scroll { overflow-x: auto; }
table.dt { min-width: 640px; font-size: 13px; }
.dt th { background: none; padding: 8px 6px; }
.dt td { padding: 9px 6px; }
.dt .b { font-weight: 600; }
.dt .w { width: 22%; }
.track { flex: 1; display: flex; height: 14px; background: var(--soft); border-radius: 3px; min-width: 60px; }
.fill { background: var(--ink); border-radius: 3px; transition: width .4s; }
.f-ok { background: var(--ok); } .f-info { background: var(--accent); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.brow { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.brow .bl { flex: 0 0 150px; display: flex; align-items: center; gap: 8px; }
.brow .br { flex: 0 0 auto; min-width: 110px; text-align: right; }
.vdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.months { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.mcol { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mbar { width: 100%; max-width: 48px; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.back { display: flex; flex-direction: column; }
.back-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 0; border: 0; border-top: 1px solid #EEEEEA; border-radius: 0; background: none; text-align: left; font: inherit; color: var(--ink); min-height: 44px; justify-content: flex-start; }
button.back-row:hover { background: #F8F8F5; }
.back-row .bn { font-weight: 600; flex: 0 0 200px; }
.back-row .bp { flex: 1 1 300px; color: var(--mute); font-size: 13px; }
@media (max-width: 700px) {
  .pages { padding: 0 16px; }
  .dash { padding: 12px 16px 32px; }
  .insight .big { flex-basis: auto; font-size: 28px; }
  .brow .bl { flex-basis: 100px; }
  .brow .br { min-width: 0; }
}
.v-faux { background: var(--bad-bg); color: var(--bad); }
.v-doute { background: var(--warn-bg); color: var(--warn); }
.verif { border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.score { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.s-a { background: #141414; color: #FFFFFF; } .s-b { background: #DDE6F3; color: #1C3F6E; } .s-c { background: #F1EBDD; color: #6B4A08; } .s-d { background: var(--soft); color: var(--mute); }
.score-box { font-size: 13px; }
.score-box summary { cursor: pointer; min-height: 28px; display: flex; align-items: center; gap: 6px; }
.score-box ul { margin: 6px 0 0; padding-left: 18px; color: #4A4A46; }

/* relances et newsletters */
.h-light { font-size: 28px; font-weight: 300; margin: 0; }
.notice { background: var(--warn-bg); color: #5A3A05; border-radius: 6px; padding: 12px 16px; font-size: 14px; }
.tpl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tpl-card { flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 14px; min-height: 0; font-weight: 400; }
.tpl-card:hover { border-color: var(--ink); }
.pickbar { margin: 10px 32px 0; background: var(--ink); color: #FFFFFF; border-radius: 6px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pickbar .primary { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; margin-left: auto; }
.link.light { color: #FFFFFF; }
.relances { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.st-brouillon { background: var(--soft); color: var(--mute); } .st-a_valider { background: var(--warn-bg); color: var(--warn); }
.st-actif { background: var(--ok-bg); color: var(--ok); } .st-pause { background: #E6ECF6; color: var(--accent); } .st-fini { background: var(--soft); color: var(--ink); }
.editor .pname { font-size: 22px; font-weight: 300; max-width: 640px; }
.ed { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ed-who { flex: 1 1 300px; }
.ed-steps { flex: 2 1 420px; min-width: 0; }
.ed-preview { flex: 2 1 380px; min-width: 0; }
.aud .tv { font-size: 40px; font-weight: 300; line-height: 1; }
.who-form { display: flex; flex-direction: column; gap: 12px; }
.lbl { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 36px; padding: 6px 10px; font-weight: 400; font-size: 13px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.who-form .row label, .inline { font-size: 12px; }
.who-form .row input { width: 110px; }
.inline { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.inline input { width: auto; min-height: 0; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { background: var(--panel); border: 1px solid #DCDCD6; border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.step.on { border: 2px solid var(--ink); cursor: default; }
.wait { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); padding: 8px 0; }
.wait input { width: 70px; min-height: 36px; }
.fields { display: flex; flex-direction: column; gap: 8px; }
.linkf { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; }
.linkf .lbl { grid-column: 1 / -1; margin: 0; }
.add { margin-top: 10px; align-self: center; border-style: dashed; font-weight: 400; }
.preview { background: #E9E9E5; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mail { background: #FFFFFF; border-radius: 4px; overflow: hidden; }
.mail-logo { padding: 16px 20px; border-bottom: 1px solid #EEEEEA; }
.mail-logo img { height: 12px; display: block; }
.mail-hero { width: 100%; height: 170px; object-fit: cover; display: block; }
.mail-body { padding: 18px 20px; font-size: 14px; line-height: 1.55; }
.mail-title { font-size: 21px; font-weight: 300; margin-bottom: 10px; }
.mail-btn { display: inline-block; background: var(--ink); color: #FFFFFF; padding: 11px 18px; font-weight: 600; margin: 8px 0; }
.mail-link { color: var(--accent); text-decoration: underline; font-size: 13px; }
.mail-foot { background: #FAFAF8; padding: 12px 20px; font-size: 11px; color: var(--mute); }
@media (max-width: 700px) { .pickbar { margin: 10px 16px 0; } .linkf { grid-template-columns: 1fr; } }
.who-form .row { align-items: flex-end; }
.who-form .row label { display: flex; flex-direction: column; gap: 4px; }
.pickbar[hidden] { display: none; }

/* Contenus Volvo (Kiosque) */
.kiosque .k-head { align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.kiosque .k-head p { margin: 4px 0 0; }
.k-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.k-filters button { min-height: 40px; font-size: 13px; }
.k-filters button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.k-filters select { width: auto; min-height: 40px; }
.k-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.k-grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.k-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.k-card.on { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.k-photo { position: relative; }
.k-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--soft); }
.k-photo span { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #FFFFFF; background: rgb(0 0 0 / .55); padding: 2px 6px; border-radius: 3px; }
.k-in { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.k-meta { font-size: 12px; color: var(--mute); }
.k-meta b { color: var(--accent); }
.k-in h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.k-in p { margin: 0; font-size: 14px; line-height: 1.45; color: #3A3A36; }
.k-in .k-pv { font-size: 13px; color: var(--mute); }
.k-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.k-foot a { font-size: 12px; }
.k-add { color: var(--accent); border-color: var(--accent); min-height: 40px; }
.k-added { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); min-height: 40px; }
.k-cart { flex: 1 1 320px; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.k-cart h2 { margin: 0; font-size: 18px; }
.k-line { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; }
.k-line img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.k-line span { flex-grow: 1; }
.k-line button { border: 0; background: none; font-size: 18px; color: var(--mute); min-width: 36px; }
.k-form { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.k-form label { font-size: 13px; color: var(--mute); display: flex; flex-direction: column; gap: 4px; }
.k-cart .row button { flex: 1 1 auto; }
.sheet .panel.k-prev { max-width: 640px; padding: 16px; gap: 12px; }
.mail-bloc { margin: 14px 0 20px; }
.mail-bloc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mail-bloc .credit { font-size: 11px; color: var(--mute); margin-top: 4px; }
.mail-bloc .mb-title { font-size: 18px; font-weight: 600; margin: 10px 0 4px; line-height: 1.3; }
.mail-bloc p { margin: 0 0 6px; }
@media (max-width: 760px) { .k-cart { max-width: none; position: static; } }

/* Poste du vendeur (accueil) et fiche client 360 : design « 1 + 4 » choisi par Hamza (27/10/2026) */
.pv { max-width: 1180px; margin: 0 auto; width: 100%; }
.pv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-top: 12px; }
.pv-head .h-light { font-size: 36px; text-transform: none; }
.pv-head .eyebrow::first-letter { text-transform: uppercase; }
.pv-month { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-month > div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; min-width: 120px; display: flex; flex-direction: column; }
.pv-month b { font-size: 28px; font-weight: 300; line-height: 1.1; }
.pv-month span { font-size: 12px; color: var(--mute); }
.pv-search { background: var(--ink); color: #FFFFFF; border-radius: 8px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.pv-label { color: #D6D6D0; font-size: 15px; margin: 0; }
.pv-q { font-size: 22px; min-height: 60px; padding: 12px 18px; border: 0; border-radius: 6px; }
.pv-q:focus { outline: 3px solid #8DA4C4; }
.pv-results { display: flex; flex-direction: column; gap: 6px; }
.pv-results:empty { display: none; }
.pv-hit { display: grid; grid-template-columns: 1.3fr 1.3fr 0.9fr 1.4fr; align-items: center; gap: 6px 16px; text-align: left; font-weight: 400; background: var(--panel); border: 0; justify-content: stretch; }
.pv-hit:hover { background: #F3F5F9; }
.pv-n { font-weight: 600; font-size: 16px; }
.pv-s { justify-self: start; }
.pv-new { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: transparent; color: #FFFFFF; border: 1px dashed #8A8A84; font-weight: 400; }
.pv-new .muted { color: #BDBDB7; }
.pv-new:hover { border-color: #FFFFFF; }
.pv-list { display: flex; flex-direction: column; }
.pv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 0; border: 0; border-top: 1px solid #EEEEEA; border-radius: 0; background: none; text-align: left; font: inherit; color: var(--ink); min-height: 44px; justify-content: flex-start; }
.pv-list > .pv-row:first-child { border-top: 0; }
button.pv-row:hover { background: #F8F8F5; }
.pv-row > b { min-width: 52px; font-variant-numeric: tabular-nums; }
.pv-row .row { margin-left: auto; }
.pv-row .row button { min-height: 40px; padding: 8px 12px; }
.link.strong { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 15px; }
.es-prevu { background: #E6ECF6; color: var(--accent); } .es-venu { background: var(--ok-bg); color: var(--ok); }
.es-pas_venu { background: var(--bad-bg); color: var(--bad); } .es-annule { background: var(--soft); color: var(--mute); }
.av-0 { background: var(--soft); } .av-1 { background: #E6ECF6; color: var(--accent); } .av-2, .av-3 { background: var(--warn-bg); color: var(--warn); } .av-4, .av-5 { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 700px) {
  .pv-head .h-light { font-size: 28px; }
  .pv-month { width: 100%; } .pv-month > div { flex: 1 1 0; min-width: 0; padding: 8px 10px; } .pv-month b { font-size: 22px; }
  .pv-search { padding: 16px; }
  .pv-q { font-size: 18px; min-height: 54px; }
  .pv-hit { grid-template-columns: 1fr auto; }
  .pv-hit .pv-c, .pv-hit .pv-w { grid-column: 1 / -1; }
  .pv-row .row { margin-left: 0; }
  .pv .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pv .tile .tv { font-size: 26px; }
}

.c360 { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; max-width: 1280px; margin: 0 auto; width: 100%; flex-direction: row; }
.c-left { flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.c-right { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.c-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.c-card h2 { margin: 0; font-size: 16px; }
.c-name { font-size: 30px; font-weight: 300; line-height: 1.15; margin-top: 4px; }
.c-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 6px 0 0; font-size: 14px; align-items: center; }
.c-dl dt { color: var(--mute); font-size: 13px; }
.c-dl dd { margin: 0; overflow-wrap: anywhere; }
.c-dl select { width: 100%; }
.c-call > * { flex: 1; }
.fld { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.fld > span { font-size: 13px; color: var(--mute); }
.c-veh { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.c-veh li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #EEEEEA; font-size: 14px; }
.c-veh li:first-child { border-top: 0; }
.c-vadd { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6px; }
.c-vadd > :first-child { grid-column: 1 / -1; }
.c-vadd button { grid-column: 1 / -1; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.c-actions button { flex: 1 1 120px; }
.c-actions .soon { font-size: 11px; font-weight: 500; color: var(--mute); margin-left: 4px; }
.avance { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; counter-reset: av; }
.avance li { flex: 1; text-align: center; font-size: 13px; padding: 12px 10px 12px 18px; background: var(--soft); color: var(--mute); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); white-space: nowrap; }
.avance li:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: 10px; border-radius: 4px 0 0 4px; }
.avance li.done { background: #3A3A36; color: #FFFFFF; }
.avance li.cur { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { display: grid; grid-template-columns: 112px 30px 1fr; gap: 0 12px; padding: 10px 0; border-top: 1px solid #EEEEEA; align-items: start; }
.hist li:first-child { border-top: 0; }
.hi-at { padding-top: 5px; font-variant-numeric: tabular-nums; }
.hi-ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--mute); }
.hi-t { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.hi-appel .hi-ico { background: #E6ECF6; color: var(--accent); }
.hi-essai .hi-ico { background: var(--warn-bg); color: var(--warn); }
.hi-vente .hi-ico { background: var(--ok-bg); color: var(--ok); }
.hi-email .hi-ico { background: #EFE9F7; color: #5B3C8C; }
.hi-rdv .hi-ico, .hi-note .hi-ico { background: var(--kompass-bg); color: #6B4A08; }
.hi-lead .hi-ico { background: var(--ink); color: #FFFFFF; }
@media (max-width: 760px) {
  /* téléphone : qui il est, puis les boutons et l'avancement, puis son projet, puis le reste */
  .c360 { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .c-left, .c-right { display: contents; }
  .c-left > :first-child { order: 1; } .c-right > .c-actions { order: 2; } .c-right > .avance { order: 3; }
  .c-left > :not(:first-child) { order: 4; } .c-right > :not(.c-actions):not(.avance) { order: 5; }
  .c-left { max-width: none; }
  .c-name { font-size: 26px; }
  .avance { flex-wrap: wrap; }
  .avance li { flex: 1 1 30%; font-size: 12px; padding: 10px 8px 10px 16px; }
  .hist li { grid-template-columns: 30px 1fr; }
  .hist .hi-at { grid-column: 2; padding: 0; order: 3; }
}

/* fenêtres de saisie (essai, vente, rendez-vous, note, nouveau client) */
.sheet .panel.form-panel { max-width: 520px; }
.fp-title { font-size: 18px; font-weight: 500; }
.fp { display: flex; flex-direction: column; gap: 12px; }
.two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-f > :only-child { grid-column: 1 / -1; }
.veh-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
@media (max-width: 480px) { .two-f { grid-template-columns: 1fr; } }
.pv .tile { justify-content: flex-start; }

/* v0.11.0 : sélecteur de marque tout en haut, catalogue, stock, vue Groupe */
.marques { background: #141414; color: #FFFFFF; padding: 8px 32px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.marques-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #B9B9B2; margin-right: 8px; }
.marque-b { min-height: 40px; padding: 6px 14px; background: transparent; color: #FFFFFF; border: 1px solid #3A3A36; border-radius: 999px; font-weight: 500; gap: 8px; }
.marque-b img { height: 18px; width: auto; max-width: 90px; background: #FFFFFF; border-radius: 4px; padding: 2px 6px; box-sizing: content-box; }
.marque-b[aria-pressed="true"] { background: #FFFFFF; color: #141414; border-color: #FFFFFF; font-weight: 700; }
.marque-b.groupe { border-style: dashed; }
.marque-b.groupe[aria-pressed="true"] { border-style: solid; }
.brand-txt { font-size: 18px; letter-spacing: .02em; }
.stack { display: flex; flex-direction: column; gap: 6px; }
[hidden] { display: none !important; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.cat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.cat-photo { aspect-ratio: 16 / 7; background: var(--soft); overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-photo.vide { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 300; color: var(--mute); letter-spacing: .04em; }
.cat-in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cat-in h2 { font-size: 22px; font-weight: 400; margin: 0 0 4px; }
table.cat-v { min-width: 0; width: 100%; }
.p-estime { background: var(--warn-bg); color: #7A4A06; }
.p-demo { background: #EFE8FB; color: #4B2A86; }
.warn-t { color: var(--warn); }
.vs-stock { background: var(--ok-bg); color: var(--ok); }
.vs-arrivage { background: #E7EEF8; color: #1C3F6E; }
.vs-reservee { background: var(--warn-bg); color: #7A4A06; }
.vs-vendu, .vs-hors_service { background: var(--soft); color: var(--mute); }
.stock-f select { width: auto; min-width: 170px; }
.g-marque { display: inline-flex; align-items: center; gap: 10px; }
.g-marque img { height: 18px; width: auto; max-width: 90px; }
.groupe .pv-row { flex-wrap: wrap; }
@media (max-width: 700px) {
  .marques { padding: 8px 16px; }
  .marques-l { display: none; }
  .marque-b { padding: 6px 10px; }
  .stock-f select { min-width: 0; flex: 1 1 140px; }
}

/* ---- v0.12.0 : devis et bons de commande */
.sheet .panel.form-panel.wide { max-width: 640px; }
.dv-lignes { display: flex; flex-direction: column; gap: 10px; }
.dv-box { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dv-stack { display: flex; flex-direction: column; gap: 6px; }
.dv-stack [hidden] { display: none; }
.dv-info { margin-top: -4px; }
.dv-info:empty { display: none; }
.dv-net { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 2px; padding-bottom: 8px; }
.dv-net b { font-size: 20px; font-weight: 600; }
.dv-h { font-size: 14px; margin: 6px 0 0; }
.dv-total { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.dv-total > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.dv-total .tot { font-size: 17px; border-top: 1px solid var(--line); padding-top: 6px; }
.dv-row .row { flex-wrap: wrap; justify-content: flex-end; }
.pill.dv-brouillon { background: var(--soft); color: var(--mute); }
.pill.dv-envoye { background: #E6EEF8; color: var(--accent); }
.pill.dv-accepte { background: var(--ok-bg); color: var(--ok); }
.pill.dv-refuse, .pill.dv-expire { background: var(--bad-bg); color: var(--bad); }
.c-print { align-self: flex-start; font-size: 13px; }

/* ---- v0.12.0 : relances WhatsApp et SMS (canal, facilitateur, compteur, aperçu sur un téléphone) */
.canaux { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.canaux .lbl { margin: 0 6px 0 0; }
.canaux button { min-height: 38px; padding: 6px 14px; font-weight: 500; }
.canaux button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.canaux .soon { font-size: 11px; font-weight: 500; opacity: .75; margin-left: 4px; }
.facil { background: var(--panel); border: 1px dashed #C9C9C2; border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.facil .add { margin: 0; align-self: flex-start; }
.counter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--mute); margin-top: -4px; }
.counter b { color: var(--ink); }
.counter .warn-t { color: var(--warn); }
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: #111; border-radius: 34px; padding: 12px 10px 16px; box-shadow: 0 6px 24px #0003; position: relative; }
.ph-notch { width: 90px; height: 18px; background: #111; border-radius: 0 0 12px 12px; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; }
.ph-head { background: #F7F7F5; border-radius: 24px 24px 0 0; padding: 26px 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; border-bottom: 1px solid #E2E2DE; }
.ph-head.wa { background: #075E54; color: #FFFFFF; flex-direction: row; justify-content: flex-start; gap: 10px; border-bottom: 0; }
.ph-head.wa > span:last-child { display: flex; flex-direction: column; }
.ph-av { width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; color: #075E54; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ph-body { min-height: 380px; border-radius: 0 0 24px 24px; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.ph-body.sms { background: #FFFFFF; }
.ph-body.wa { background: #ECE5DD; }
.bubble { max-width: 88%; border-radius: 16px; padding: 9px 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.sms { background: #E9E9EB; color: #141414; border-bottom-left-radius: 4px; }
.bubble.wa { background: #FFFFFF; color: #111; border-top-left-radius: 4px; padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 1px #0001; }
.bubble.wa > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block; }
.bubble.wa > b, .bubble.wa > div, .bubble.wa > span { padding: 0 6px; }
.wa-link { color: #027EB5; text-decoration: underline; font-size: 13px; }
.wa-pied { font-size: 12px; color: #667781; }
.wa-h { align-self: flex-end; font-size: 11px; color: #667781; }
.ph-meta { font-size: 11px; color: var(--mute); padding-left: 4px; }
.pick-list { gap: 8px; }
.pick-c { justify-content: flex-start; text-align: left; gap: 12px; font-weight: 400; padding: 8px; }
.pick-c img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.pick-c > span { display: flex; flex-direction: column; gap: 2px; }
.lienc { display: flex; flex-direction: column; gap: 2px; }

/* 0.14.0 : en-tête « Scandinavian Auto CRM » + menu des marques ; charte de chaque marque (police, en-tête clair ou sombre, trait) */
@font-face { font-family: "Volvo Centum"; src: url(/fonts/volvo-centum-lt.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Volvo Centum"; src: url(/fonts/volvo-centum-rg.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Volvo Centum"; src: url(/fonts/volvo-centum-md.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-600.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
body[data-marque="volvo"] { --font: "Volvo Centum", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body[data-marque="lynkco"] { --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body[data-marque="lotus"] { --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.grp-name { font-size: 16px; font-weight: 300; white-space: nowrap; color: var(--ink); }
.grp-name b { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin-right: 2px; }
.brand .logo { height: 16px; }
.mm { position: relative; }
.mm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; margin: -4px -10px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: inherit; cursor: pointer; }
.mm-btn:hover, .mm-btn[aria-expanded="true"] { background: var(--soft); }
.mm-btn .chev { font-size: 12px; color: var(--mute); }
.mm-pop { position: absolute; top: calc(100% + 8px); left: -10px; z-index: 30; width: 290px; background: #FFFFFF; color: #141414; border: 1px solid #E0E0DC; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); padding: 8px; display: flex; flex-direction: column; }
.mm-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6E6E68; padding: 6px 10px 8px; }
.mm-i { display: grid; grid-template-columns: 104px 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 8px 10px; background: transparent; border: 0; text-align: left; font: inherit; font-size: 14px; color: #2A2A27; cursor: pointer; }
.mm-i:hover, .mm-i:focus-visible { background: #F3F3F1; outline: none; }
.mm-i[aria-checked="true"] { background: #F3F3F1; font-weight: 600; }
.mm-i.grp { border-top: 1px solid #ECECE8; margin-top: 4px; }
.mm-logo img { height: 13px; width: auto; max-width: 100px; display: block; }
.mm-grp { color: #6E6E68; }
.pages a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--trait, var(--ink)); }
body[data-entete="sombre"] .bar, body[data-entete="sombre"] .pages { background: #111111; border-color: #262626; }
body[data-entete="sombre"] .grp-name, body[data-entete="sombre"] .pages a[aria-current="page"] { color: #FFFFFF; }
body[data-entete="sombre"] .who, body[data-entete="sombre"] .who a, body[data-entete="sombre"] .who .link, body[data-entete="sombre"] .pages a, body[data-entete="sombre"] .mm-btn .chev { color: #BDBDB7; }
body[data-entete="sombre"] .brand .sep { background: #3A3A36; }
body[data-entete="sombre"] .mm-btn:hover, body[data-entete="sombre"] .mm-btn[aria-expanded="true"] { background: #222222; }
@media (max-width: 720px) {
  .grp-name { font-size: 14px; }
  .grp-name b { font-size: 11.5px; }
  .brand { gap: 10px; }
  .mm-pop { width: min(290px, calc(100vw - 32px)); }
  /* 0.19.1 : un logo très large (Volvo) ne fait plus défiler la page sur téléphone : il rapetisse dans sa boîte */
  .brand .logo { max-width: calc(100vw - 250px); object-fit: contain; object-position: left center; }
}

/* 0.14.0 : import glissé dans la liste (proposition 3) */
.ech { display: flex; flex-direction: column; gap: 10px; }
.ech-drop { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; border: 1.5px dashed #9DB3D4; background: #F4F7FB; font-size: 14px; }
.ech.drag .ech-drop { border-color: var(--accent); background: #E6EEF8; }
.ech-drop.on { border-style: solid; border-color: #2A609D; background: #EEF3FA; }
.ech-a { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.ghost.sm, a.btn.sm { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 13px; }
.ech-leg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ech-f { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-size: 13px; cursor: pointer; }
.ech-f.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.ech-t td { vertical-align: top; }
.ech-t tr.ech-new td { background: #EEF8F1; } .ech-t tr.ech-new td:first-child { box-shadow: inset 3px 0 #1E7A46; }
.ech-t tr.ech-upd td { background: #FDF6EA; } .ech-t tr.ech-upd td:first-child { box-shadow: inset 3px 0 #C27A1A; }
.ech-t tr.ech-err td { background: #FCEFEF; } .ech-t tr.ech-err td:first-child { box-shadow: inset 3px 0 #BF2E2E; }
.ech-t s { color: #9A9A94; }
.ech-t .bad { color: var(--bad); }
/* ---- après-vente et métiers (0.14.0) : planning atelier, suivi des voitures, mes voitures, échéances, vie de la voiture ---- */
.av-head { align-items: flex-end; gap: 12px; }
.av-head select { width: auto; }
.table-wrap.av-show { display: block; margin: 0; }
.av-s-a_confirmer { background: #FFF1DC; color: #8A4B06; border-color: #C27A1A; }
.av-s-confirme { background: #E6EEF8; color: #1C3F6E; border-color: #2A609D; }
.av-s-arrive { background: #E3F4EA; color: #0F6A35; border-color: #1E7A46; }
.av-s-atelier { background: #EDE7F8; color: #4B2C8A; border-color: #5B3BA6; }
.av-s-pret { background: #141414; color: #FFFFFF; border-color: #141414; }
.av-s-rendu { background: var(--soft); color: var(--mute); border-color: #B9B9B3; }
.av-s-annule, .av-s-pas_venu { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.av-p-bad { background: var(--bad-bg); color: var(--bad); } .av-p-warn { background: #FFF1DC; color: #8A4B06; } .av-p-info { background: #E6EEF8; color: #1C3F6E; } .av-p-muted { background: var(--soft); color: var(--mute); }
.av-pr-urgente { background: var(--bad-bg); color: var(--bad); } .av-pr-haute { background: #FFF1DC; color: #8A4B06; } .av-pr-normale { background: #E6EEF8; color: #1C3F6E; } .av-pr-basse { background: var(--soft); color: var(--mute); }
/* planning : une ligne par poste, les heures en colonnes, une ligne rouge pour « maintenant » */
.av-plan-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.av-plan { position: relative; min-width: 860px; --lbl: 110px; }
.av-pl-h, .av-pl-r { display: grid; grid-template-columns: var(--lbl) 1fr; }
.av-pl-h { border-bottom: 1px solid var(--line); font-size: 11px; color: var(--mute); }
.av-pl-hours { display: grid; grid-template-columns: repeat(var(--h), 1fr); }
.av-pl-hours span { padding: 6px 4px; border-left: 1px solid #F0F0ED; }
.av-pl-r { border-bottom: 1px solid #F0F0ED; min-height: 78px; }
.av-pl-n { padding: 12px; font-size: 13px; color: #4A4A46; border-right: 1px solid var(--line); }
.av-pl-t { position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--h) - 1px), #F3F3F0 calc(100% / var(--h) - 1px) calc(100% / var(--h))); }
.av-bk { position: absolute; top: 8px; bottom: 8px; min-height: 0; padding: 5px 8px; font-size: 11.5px; font-weight: 400; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; overflow: hidden; border: 0; border-left: 3px solid; border-radius: 2px; text-align: left; }
.av-bk b { font-size: 12.5px; font-weight: 600; }
.av-bk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.av-now { position: absolute; top: 0; bottom: 0; left: calc(var(--lbl) + (100% - var(--lbl)) * var(--x) / 100); border-left: 2px solid #BF2E2E; pointer-events: none; }
.av-now span { position: absolute; top: 0; left: 4px; font-size: 10.5px; color: #BF2E2E; background: var(--panel); padding: 0 3px; }
/* suivi des voitures : colonnes par état */
.av-kan { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.av-col { background: #E9E9E6; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }
.av-col-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 2px 4px; }
.av-card { background: var(--panel); border: 1px solid #E1E1DD; border-radius: 4px; padding: 10px 12px; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; font-weight: 400; font-size: 13px; text-align: left; }
.av-card:hover { border-color: var(--ink); }
.av-tag { font-size: 12px; background: var(--ok-bg); color: var(--ok); padding: 5px 7px; border-radius: 3px; }
.av-tag.warn { background: #FFF1DC; color: #8A4B06; } .av-tag.ok { background: #EEF6F1; color: #0F6A35; }
.av-box { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.av-box .row input { width: 120px; }
.av-sin { display: flex; flex-direction: column; gap: 8px; }
.av-pieces { display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* mécanicien : une colonne, gros boutons, sur téléphone */
.av-meca { max-width: 560px; margin: 0 auto; }
.av-mc { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid; border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.av-mc.av-s-pret { background: var(--panel); color: var(--ink); }
.av-mc-v { font-size: 16px; font-weight: 600; }
.av-mc-a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
/* échéances */
.av-act { white-space: nowrap; display: flex; gap: 12px; justify-content: flex-end; align-items: center; font-size: 13px; }
.av-note { border-left: 3px solid var(--accent); }
.av-code { display: block; margin-top: 6px; word-break: break-all; font-size: 13px; background: #FFFFFF; padding: 6px 8px; border-radius: 4px; }
/* fiche client : vie de la voiture */
.av-fiche { display: contents; }
.av-veh { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.av-veh-t { font-size: 18px; font-weight: 400; }
.av-veh-k { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.av-veh-k div { display: flex; flex-direction: column; font-size: 12px; color: var(--mute); }
.av-veh-k b { font-size: 19px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.av-vie { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.av-vie li { display: grid; grid-template-columns: 90px 24px 1fr; gap: 8px; padding: 6px 0; align-items: start; font-size: 14px; }
.av-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--soft); color: var(--mute); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.av-v-vente .av-dot { background: var(--ink); color: #FFFFFF; } .av-v-atelier .av-dot { background: #E6EEF8; color: #1C3F6E; } .av-v-rappel .av-dot { background: #FFF1DC; color: #8A4B06; }
.av-v-maintenant .av-dot { background: var(--ok-bg); color: var(--ok); } .av-v-prochain .av-dot { background: var(--panel); border: 1px dashed #8A8A84; }
@media (max-width: 700px) {
  .av-kan { grid-template-columns: repeat(6, 78vw); }
  .av-vie li { grid-template-columns: 74px 22px 1fr; }
  .av-act { flex-wrap: wrap; justify-content: flex-start; }
}
/* ---- fin après-vente et métiers (0.14.0) ---- */
/* mécanicien sur téléphone : rien ne déborde ; plaques marocaines (lettres arabes) isolées pour ne pas mélanger le sens de lecture */
.av-meca, .av-mc, .av-mc > * { min-width: 0; }
.av-mc-v, .av-mc .av-tag { overflow-wrap: anywhere; }
.av-plq bdi { unicode-bidi: isolate; white-space: nowrap; }
@media (max-width: 560px) { .av-meca { padding-left: 12px; padding-right: 12px; } .av-meca > .row.between { flex-wrap: wrap; } }
/* ---- v0.14.0 : chaîne de vente, design « Une étape à la fois » (étapes en haut, l'étape en grand à gauche, totaux collés à droite) */
.pages { overflow-x: auto; }
.vx-tabs a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); font-size: 14px; background: var(--panel); }
.vx-tabs a[aria-current="page"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); font-weight: 600; }
.vx-row { flex-wrap: wrap; }
.vx-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vx-col-l { gap: 14px; }
.vx-mini { display: inline-flex; gap: 3px; }
.vx-mini i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #B9B9B3; background: var(--panel); display: inline-block; }
.vx-mini i.m-fait { background: var(--ink); border-color: var(--ink); }
.vx-mini i.m-cours { border-color: #C27A1A; box-shadow: 0 0 0 2px var(--warn-bg); }
.vx-mini i.m-bloque { border-color: var(--bad); background: var(--bad-bg); }
.vx-dh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vx-dh h1 { margin-top: 2px; }
.vx-stp { list-style: none; margin: 0; padding: 4px 14px; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.vx-stp li { flex: 1 1 0; min-width: 140px; }
.vx-stp button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; padding: 10px 6px; width: 100%; border-radius: 4px; }
.vx-stp button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #B9B9B3; background: var(--panel); grid-row: span 2; margin-top: 4px; }
.vx-stp button:focus-visible { outline: 2px solid var(--accent); }
.vx-stp b { font-weight: 500; font-size: 14px; }
.vx-stp span { font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.vx-stp .st-fait button::before { background: var(--ink); border-color: var(--ink); }
.vx-stp .st-cours button::before { border-color: #C27A1A; box-shadow: 0 0 0 4px var(--warn-bg); }
.vx-stp .st-cours b { color: #8A4B06; }
.vx-stp .st-bloque button::before { border-color: var(--bad); background: var(--bad-bg); }
.vx-stp .st-bloque b { color: var(--bad); }
.vx-stp .st-vue button { background: var(--soft); }
.vx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.vx-pnl { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vx-h { font-size: 22px; margin: 0; }
.vx-frm { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.vx-frm > label { margin: 0; font-size: 13.5px; color: var(--mute); }
.vx-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px; }
.vx-docs label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; margin: 0; background: var(--soft); border-radius: 4px; font-size: 13px; color: var(--ink); min-height: 40px; }
.vx-docs label.ko { color: #8A4B06; }
.vx-docs input[type="checkbox"] { width: 18px; min-height: 0; height: 18px; flex: none; }
.vx-foot { justify-content: flex-end; margin-top: 6px; }
.vx-tot { position: sticky; top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; }
.vx-tot .ln { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0F0ED; font-size: 13.5px; }
.vx-tot b { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vx-tot .t-strong span, .vx-tot .t-strong b { font-weight: 600; }
.vx-tot .vx-sub { font-size: 12.5px; color: var(--mute); padding-left: 10px; }
.vx-tot .t-mens { background: var(--ink); color: #FFFFFF; padding: 10px 12px; margin: 6px -4px; border: 0; border-radius: 4px; align-items: center; }
.vx-tot .t-mens b { font-size: 18px; font-weight: 600; }
.vx-alertes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.vx-al { border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.vx-warn { background: var(--warn-bg); color: #5A3A05; }
.vx-bad { background: var(--bad-bg); color: var(--bad); }
.vx-info { background: #E6EEF8; color: var(--accent); }
.vx-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.vx-tl li { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--mute); }
.vx-tl li.ok { background: var(--ok-bg); color: var(--ok); }
.vx-tl li.ok::before { content: "✓ "; }
@media (max-width: 900px) {
  .vx-cols { grid-template-columns: 1fr; }
  .vx-tot { position: static; }
  .vx-frm { grid-template-columns: 1fr; }
  .vx-frm > label { margin-top: 4px; }
}
/* beaucoup d'onglets (accès complet : ventes + après-vente) : une seule ligne qui défile, jamais coupée en deux */
.pages { overflow-x: auto; scrollbar-width: thin; }
.pages a { white-space: nowrap; padding-left: 12px; padding-right: 12px; flex: 0 0 auto; }
/* 0.15.0 : instance de démonstration (DEMO=1) : bandeau discret en bas à gauche, ne gêne aucun clic */
.demo-bandeau { position: fixed; left: 10px; bottom: 10px; z-index: 15; pointer-events: none; background: rgba(20, 20, 20, .72); color: #fff; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .02em; padding: 6px 9px; border-radius: 999px; }
@media print { .demo-bandeau { display: none; } }
/* ---- pièces (0.16.0) : comptoir du magasinier, commandes en route, stock (vrac au litre et au kilo), voitures bloquées ---- */
.pc-sub { margin-top: -4px; }
.pc-tiles .tile .tv { font-size: 28px; }
.pc-tiles-s { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-tiles-s .tile .tv { font-size: 22px; }
.pc-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.pc-todo { display: flex; flex-direction: column; }
.pc-td { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; min-height: 0; border: 0; border-bottom: 1px solid #F0F0ED; border-radius: 0; background: none; text-align: left; font-weight: 400; font-size: 14px; }
.pc-td:last-child { border-bottom: 0; }
.pc-td:hover .pc-lnk { color: var(--ink); }
.pc-td-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-td-t b { font-weight: 500; }
.pc-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.pc-d-bad { background: var(--bad); } .pc-d-warn { background: #C27A1A; } .pc-d-ok { background: var(--ok); } .pc-d-info { background: var(--accent); }
.pc-lnk { font-size: 13px; text-decoration: underline; color: var(--accent); white-space: nowrap; }
.pc-scroll { overflow-x: auto; }
table.pc-mini { min-width: 0; font-size: 13px; }
.pc-mini td { padding: 8px 6px; }
.pc-mono { font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: .02em; white-space: nowrap; }
.pc-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-in input { width: 90px; min-height: 36px; padding: 6px 8px; text-align: right; }
.pc-h2 { font-size: 22px; font-weight: 300; margin: 0; }
.pc-route-s { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pc-cmds { display: flex; flex-direction: column; gap: 10px; }
.pc-cmd { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; text-align: left; font-weight: 400; font-size: 14px; color: var(--ink); }
.pc-cmd:hover { border-color: var(--ink); }
.pc-cmd.bad { border-left: 4px solid var(--bad); }
.pc-cmd-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pc-eta { text-align: right; display: flex; flex-direction: column; flex: 0 0 auto; }
.pc-eta b { font-size: 16px; font-weight: 500; }
.pc-cmd.late .pc-eta b { color: var(--bad); }
.pc-route { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; }
.pc-route li { padding: 8px 6px 0 0; font-size: 12.5px; color: #8A8A84; border-top: 3px solid var(--line); }
.pc-route li.done { border-color: var(--ink); color: var(--ink); }
.pc-route li.cur { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.pc-route li.cur.bad { border-color: var(--bad); color: var(--bad); }
.pc-bad { color: var(--bad); font-weight: 600; }
.pc-p-bad { background: var(--bad-bg); color: var(--bad); } .pc-p-warn { background: #FFF1DC; color: #8A4B06; } .pc-p-info { background: #E6EEF8; color: #1C3F6E; } .pc-p-ok { background: var(--ok-bg); color: var(--ok); } .pc-p-muted { background: var(--soft); color: var(--mute); }
.pc-filtres { justify-content: space-between; }
.pc-filtres input[type=search] { max-width: 320px; }
.pc-t tr.pc-r-rupture td { background: #FCEFEF; }
.pc-t tr.pc-r-sous_seuil td { background: #FDF6EA; }
.pc-t tr.pc-r-dormante td { color: #7A7A74; }
.pc-tag { background: var(--bad-bg); color: var(--bad); }
.pc-bk { color: var(--bad); font-weight: 600; }
.pc-cont { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.pc-jauge { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.pc-jauge span { display: block; height: 100%; background: var(--accent); }
.pc-jauge span.bas { background: #C27A1A; }
.pc-lignes { display: flex; flex-direction: column; gap: 6px; }
.pc-ligne { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr); gap: 6px; }
.pc-res { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid #F0F0ED; font-size: 13px; }
.pc-q { width: 90px !important; }
@media (max-width: 760px) {
  .pc-cols { grid-template-columns: minmax(0, 1fr); }
  .pc-route li { font-size: 11px; }
  .pc-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pc-ligne input:last-child { grid-column: 1 / -1; }
}
/* aperçu d'import : case à cocher à la taille du texte */
.ech-leg input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0 6px 0 0; vertical-align: -3px; }
/* ---- facturation (0.17.0) : mêmes jetons de couleur que le reste ; préfixe fa- */
.sheet .panel.form-panel.fa-panel { max-width: 860px; }
.fa-s-payee { background: var(--ok-bg); color: var(--ok); }
.fa-s-partielle { background: var(--warn-bg); color: #7A4A06; }
.fa-s-impayee { background: var(--bad-bg); color: var(--bad); }
.fa-s-annulee { background: var(--soft); color: var(--mute); text-decoration: line-through; }
.fa-s-avoir { background: #E6EEF8; color: var(--accent); }
.fa-dt td.fa-n, .fa-lines td.fa-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fa-dt th:nth-child(6), .fa-dt th:nth-child(7) { text-align: right; }
.fa-dt td:first-child { white-space: nowrap; }
.fa-af > button { margin-left: auto; min-height: 40px; padding: 8px 12px; }
.fa-lines { min-width: 560px; }
.fa-lines input, .fa-lines select { min-height: 38px; padding: 6px 8px; font-size: 14px; }
.fa-lines .fa-q, .fa-lines .fa-u { width: 80px; }
.fa-lines .fa-pu { width: 120px; }
.fa-lines .fa-t { width: 92px; }
.fa-tot-p { color: var(--mute); font-variant-numeric: tabular-nums; }
.fa-tot { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; display: flex; flex-direction: column; }
.fa-tot .ln { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #F0F0ED; font-size: 13.5px; }
.fa-tot b { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fa-tot .t-strong span, .fa-tot .t-strong b { font-weight: 600; }
.fa-tot .vx-sub { font-size: 12.5px; color: var(--mute); padding-left: 10px; }
.fa-actions { justify-content: flex-end; }
@media (max-width: 700px) { .fa-af > button { margin-left: 0; } .fa-dt { min-width: 0; } .fa-dt th:nth-child(3), .fa-dt td:nth-child(3), .fa-dt th:nth-child(5), .fa-dt td:nth-child(5), .fa-dt th:nth-child(7), .fa-dt td:nth-child(7) { display: none; } }
/* ---- marketing et réseaux sociaux (0.19.0) : préfixes so- (community manager) et br- (briefs pour Djin) ; mêmes jetons de couleur */
.so-note { margin: 0; }
.so-sub { margin-top: -4px; }
.sheet .panel.form-panel.so-wide { max-width: 560px; }
.so-p-brouillon { background: var(--soft); color: var(--mute); }
.so-p-avalider { background: var(--warn-bg); color: #7A4A06; }
.so-p-amodifier { background: var(--bad-bg); color: var(--bad); }
.so-p-programme { background: #E6EEF8; color: #1C3F6E; }
.so-p-publie { background: var(--ok-bg); color: var(--ok); }
.br-p-plan { background: #FCE7EF; color: #A3123F; }
.so-k-essai { background: #FFF1A8; color: #3D3300; }
.so-k-prix { background: #E6EEF8; color: #1C3F6E; }
.so-k-question { background: var(--soft); color: #3A3A36; }
.so-k-critique { background: var(--bad-bg); color: var(--bad); }
.so-k-positif { background: var(--ok-bg); color: var(--ok); }
.so-k-spam { background: var(--soft); color: var(--mute); text-decoration: line-through; }
.so-r { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px; border: 1px solid #D5DAE1; border-radius: 3px; font-size: 10.5px; font-weight: 700; color: #3A3A36; background: var(--panel); }
.so-r-instagram { border-color: #E9B7CF; color: #A3123F; } .so-r-facebook { border-color: #B9CBE8; color: #1C3F6E; } .so-r-linkedin { border-color: #B9D4E8; color: #0A5A8A; } .so-r-tiktok { border-color: #3A3A36; } .so-r-youtube { border-color: #F0B9B9; color: #B42318; }
.so-res { display: inline-flex; gap: 4px; }
.so-thumb { display: block; background: #2A2A28; border-radius: 4px; }
/* messages */
.so-perf-w { display: flex; flex-direction: column; gap: 8px; }
.so-perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.so-pf { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 8px; align-items: center; font-size: 12px; }
.so-pf img, .so-pf .so-thumb { width: 56px; height: 70px; object-fit: cover; border-radius: 4px; display: block; }
.so-pf b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-n { display: flex; gap: 4px 10px; color: var(--mute); flex-wrap: wrap; } .so-n strong { color: var(--ink); font-weight: 600; }
.so-split { display: grid; grid-template-columns: 330px minmax(0, 1fr) 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; min-height: 600px; overflow: hidden; }
.so-lst { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.so-lst-h { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.so-lst-h select { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.so-flt { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-b { min-height: 32px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; border-radius: 4px; }
.pill-b[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.so-it { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; padding: 12px; border: 0; border-bottom: 1px solid #EEEEEA; border-radius: 0; font: inherit; font-size: 13px; text-align: left; background: var(--panel); color: var(--ink); min-height: 0; justify-content: stretch; align-items: start; }
.so-it:hover { background: #FAFAF8; }
.so-it.sel { background: #FFF9D6; box-shadow: inset 3px 0 var(--ink); }
.so-av { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: var(--mute); grid-row: span 2; }
.so-it-h { display: flex; gap: 6px; align-items: center; min-width: 0; } .so-it-h b { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .so-t { color: var(--mute); font-size: 12px; white-space: nowrap; }
.so-x { color: #3A3A36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; display: block; }
.so-conv { display: flex; flex-direction: column; min-width: 0; }
.so-vide { align-items: center; justify-content: center; }
.so-ch { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.so-ch button { min-height: 38px; padding: 6px 12px; }
.so-thread { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFAF8; }
.so-ctx { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: 12px; color: var(--mute); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.so-ctx img, .so-ctx .so-thumb { width: 44px; height: 55px; object-fit: cover; border-radius: 4px; display: block; }
.so-m { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.so-m.in { background: var(--panel); border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.so-m.out { align-self: flex-end; background: #111111; color: #FFFFFF; border-top-right-radius: 4px; }
.so-m small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.so-det { background: #FFF200; color: #111111; padding: 0 3px; border-radius: 2px; }
.so-sugg { font-size: 12px; color: var(--mute); padding: 8px 12px 0; border-top: 1px solid var(--line); }
.so-comp { padding: 10px 12px; display: flex; gap: 8px; }
.so-comp button { white-space: nowrap; }
.so-lead { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.so-lead input, .so-lead select { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.so-src { font-size: 12px; background: var(--soft); border-radius: 4px; padding: 8px 10px; color: #3A3A36; }
.so-go { background: #111111; border-color: #111111; color: #FFFFFF; }
.so-dbl { margin: 0; color: var(--mute); } .so-dbl.warn { color: #7A4A06; }
.so-hors { color: #7A4A06; }
/* calendrier */
.so-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #3A3A36; }
.so-calw { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.so-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.so-dh { font-size: 12px; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.so-day { min-height: 112px; border-right: 1px solid #EEEEEA; border-bottom: 1px solid #EEEEEA; padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.so-day:nth-child(7n) { border-right: 0; }
.so-day.hors { background: #FAFAF8; } .so-day.hors .so-dn { color: #B5B5AF; }
.so-day.sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.so-dn { font-size: 12px; color: var(--mute); }
.so-dn.auj { background: var(--bad); color: #FFFFFF; border-radius: 10px; padding: 0 6px; align-self: flex-start; font-weight: 600; }
.so-band { display: block; font-size: 11px; padding: 1px 5px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-b0 { background: #DCE8F5; color: #1C3F6E; } .so-b1 { background: #111111; color: #FFFFFF; } .so-b2 { background: #DDF0E4; color: #0F5A2E; } .so-b3 { background: #F5E3EC; color: #7A1236; }
.so-band.ph-t { background: transparent; border: 1px dashed currentColor; } .so-band.ph-r { opacity: .55; }
.so-b1.ph-t { color: #111111; }
.so-chip { display: flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 6px; font-size: 11.5px; font-weight: 400; border: 1px solid #DCDCD6; border-radius: 3px; background: var(--panel); color: var(--ink); justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.so-chip i, .so-leg i { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; margin-right: 2px; }
.so-chip.so-p-brouillon i, .so-leg i.so-p-brouillon { background: #A8A8A2; } .so-chip.so-p-avalider i, .so-leg i.so-p-avalider { background: var(--warn); } .so-chip.so-p-amodifier i { background: var(--bad); }
.so-chip.so-p-programme i, .so-leg i.so-p-programme { background: #2B5C9E; } .so-chip.so-p-publie i, .so-leg i.so-p-publie { background: var(--ok); }
.so-chip.so-p-brouillon { border-style: dashed; color: var(--mute); }
.so-chip.so-p-brouillon, .so-chip.so-p-avalider, .so-chip.so-p-amodifier, .so-chip.so-p-programme, .so-chip.so-p-publie { background: var(--panel); }
.so-cald { display: flex; flex-direction: column; gap: 10px; }
.so-cald-b { display: flex; gap: 8px; align-items: center; } .so-cald-b .so-band { display: inline-block; }
.so-band.so-vide { visibility: hidden; }
.so-calm { display: none; }
/* cartes (publications, visuels, détail du jour) */
.so-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.so-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; gap: 0; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 0; }
.so-card:hover { border-color: #C9C9C3; }
.so-card-img { position: relative; display: block; aspect-ratio: 4 / 5; background: #E9E9E5; overflow: hidden; }
.so-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.so-card-img .pill { position: absolute; top: 10px; left: 10px; }
.so-card.big .so-card-img { aspect-ratio: 1 / 1; }
.so-card-img.f-post { aspect-ratio: 16 / 10; }
.so-card-img.f-1080x1080 { aspect-ratio: 1 / 1; } .so-card-img.f-1080x1350 { aspect-ratio: 4 / 5; } .so-card-img.f-1080x1920 { aspect-ratio: 9 / 13; } .so-card-img.f-1200x628 { aspect-ratio: 1200 / 628; }
.so-fmt { position: absolute; bottom: 8px; right: 8px; background: rgba(17, 17, 17, .78); color: #FFFFFF; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.so-card-b { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; align-items: flex-start; }
.so-card-b b { font-size: 14px; }
.so-card-t { color: #3A3A36; white-space: pre-wrap; }
.so-dem { color: var(--bad); }
.so-bandeau { margin: 0; background: var(--warn-bg); color: #7A4A06; padding: 10px 14px; border-radius: 6px; }
.so-ap img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 6px; display: block; }
.so-vis { background: #E9E9E5; border-radius: 6px; overflow: hidden; position: relative; }
.so-vis img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-vis.f-1080x1080 { aspect-ratio: 1 / 1; } .so-vis.f-1080x1350 { aspect-ratio: 4 / 5; } .so-vis.f-1080x1920 { aspect-ratio: 9 / 16; max-height: 520px; } .so-vis.f-1200x628 { aspect-ratio: 1200 / 628; }
.so-cb { gap: 6px 14px; }
.so-cbl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); margin: 0; }
.so-cbl input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.so-chg { border-top: 1px solid var(--line); padding-top: 10px; }
.so-h3 { font-size: 14px; margin: 6px 0 0; }
.so-hist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.so-hist li { display: grid; grid-template-columns: 120px 1fr; gap: 8px; } .so-hist b { font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.so-pl { flex-wrap: nowrap; }
/* briefs : colonnes et fiche */
.br-lay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.br-lay.avec { grid-template-columns: minmax(0, 1fr) 420px; }
.br-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.br-col { background: #EAEAE6; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; min-width: 0; }
.br-col-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; padding: 2px 4px 4px; }
.br-col-h span { font-weight: 400; color: var(--mute); }
.br-c { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; font: inherit; text-align: left; color: var(--ink); min-height: 0; justify-content: flex-start; }
.br-c.sel { outline: 2px solid var(--ink); }
.br-img { display: block; height: 72px; overflow: hidden; } .br-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-in { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; align-items: flex-start; }
.br-t { font-size: 14px; font-weight: 600; }
.br-manque { color: var(--bad); }
.br-bar { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; } .br-bar i { display: block; height: 100%; background: var(--ok); }
.br-add { border: 1.5px dashed #B9B9B3; border-radius: 6px; background: transparent; color: var(--mute); font-weight: 500; }
.br-drawer { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; position: sticky; top: 16px; min-width: 0; }
.br-dh { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.br-h { font-size: 24px; font-weight: 300; margin: 0; }
.br-db { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.br-kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; margin: 0; } .br-kv dt { color: var(--mute); } .br-kv dd { margin: 0; }
.br-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .br-res > div { display: flex; flex-direction: column; } .br-big { font-size: 30px; font-weight: 300; line-height: 1.1; }
.br-check { display: flex; flex-direction: column; gap: 4px; background: #FAFAF8; border-radius: 4px; padding: 8px 10px; }
.br-reply { border-left: 3px solid #E5195E; background: #FDF0F4; border-radius: 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.br-djin { color: #E5195E; }
.br-plan { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; } .br-plan td { padding: 6px 0; border-top: 1px solid #F3D3DD; } .br-plan td:last-child { text-align: right; font-weight: 600; }
.br-feed { display: flex; flex-direction: column; gap: 8px; font-size: 13px; } .br-feed div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; } .br-feed b { font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.br-fiche { padding-bottom: 96px; }
.br-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); background: var(--panel); border-bottom: 1px solid var(--line); min-height: 230px; }
.br-hero-t { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
.br-titre, .br-titre-in { font-size: 44px; font-weight: 300; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.br-titre-in { border: 0; border-bottom: 1px dashed #C9C9C3; border-radius: 0; padding: 4px 0; background: transparent; }
.br-hero-img { position: relative; background: #E9E9E5; min-height: 230px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.br-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.br-chg { position: absolute; right: 12px; bottom: 12px; width: auto; min-height: 38px; padding: 6px 10px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.br-body { padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; max-width: 1240px; margin: 0 auto; }
.br-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.br-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.br-sec h2 { font-size: 16px; font-weight: 500; margin: 0; display: flex; gap: 10px; align-items: baseline; }
.br-n { font-size: 12px; color: var(--mute); font-weight: 400; }
.br-obj { display: flex; gap: 18px; flex-wrap: wrap; }
.br-obj label { display: flex; flex-direction: column; gap: 0; margin: 0; color: var(--mute); font-size: 13px; }
.br-num { font-size: 34px; font-weight: 300; border: 0; border-bottom: 1px dashed #C9C9C3; border-radius: 0; padding: 0; width: 110px; min-height: 0; background: transparent; }
.br-obj label:last-child .br-num { width: 64px; }
.br-h-u { font-size: 30px; font-weight: 300; color: var(--ink); }
.br-budget { border: 1px solid #D5DAE1; border-radius: 4px; padding: 10px 12px; background: #FAFAF8; color: var(--ink); }
.br-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.br-frise { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 2px; }
.br-fr-ax { display: flex; justify-content: space-between; border-bottom: 1px solid #EEEEEA; padding-bottom: 4px; }
.br-fr-l { position: relative; height: 26px; }
.br-fr { position: absolute; top: 0; height: 24px; font-size: 12px; padding: 3px 8px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-fr.c { background: #DCE8F5; color: #1C3F6E; } .br-fr.t { border: 1px dashed #C08A2B; background: #FFF7E6; color: #7A4A06; } .br-fr.r { background: #EFEFEB; color: var(--mute); }
.br-fr-l.ici .br-fr.c { background: #111111; color: #FFFFFF; }
.br-villes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.br-v { border: 1px solid var(--line); border-left: 4px solid #DCDCD6; border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--ink); font-size: 14px; }
.br-v.on { border-color: #C9C9C3; border-left-color: var(--vc); }
.br-v input { width: 64px; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.br-v .row { flex-wrap: nowrap; gap: 4px; font-size: 12.5px; color: var(--mute); }
.br-can td input:not([type]) { min-height: 36px; padding: 6px 8px; font-size: 13px; }
table.br-can { min-width: 720px; }
.br-can input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; }
.br-can tr.off td { color: var(--mute); }
.br-pj { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.br-pjc { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: #E9E9E5; display: flex; align-items: center; justify-content: center; }
.br-pjc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.br-leg { position: absolute; left: 8px; bottom: 8px; background: rgba(17, 17, 17, .78); color: #FFFFFF; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.br-x { position: absolute; top: 6px; right: 6px; min-height: 28px; width: 28px; padding: 0; border-radius: 50%; }
.br-lien { padding: 12px; text-align: center; }
.br-drop { aspect-ratio: 4 / 5; border: 1.5px dashed #9DB3D3; border-radius: 4px; background: #F3F7FC; color: #1C3F6E; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 13px; text-align: center; }
.br-drop select, .br-drop input { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.br-drop button { min-height: 36px; padding: 6px 10px; }
.br-djinv { aspect-ratio: 4 / 5; border: 1.5px dashed #E5195E; border-radius: 4px; background: #FDF0F4; color: #A3123F; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 13px; }
.br-foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 12px 32px; display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; z-index: 5; }
.br-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.br-checks .ok { color: var(--ok); } .br-checks .non { color: var(--mute); }
.br-av { flex-basis: 100%; }
.br-send { background: #E5195E; border-color: #E5195E; color: #FFFFFF; }
@media (max-width: 1150px) {
  .so-split { grid-template-columns: 280px minmax(0, 1fr); } .so-lead { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .so-perf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-calw { grid-template-columns: 1fr; }
  .br-lay.avec { grid-template-columns: 1fr; } .br-drawer { position: static; }
}
@media (max-width: 760px) {
  .br-board { grid-template-columns: 1fr; } .br-col { min-height: 0; }
  .br-two { grid-template-columns: 1fr; } .br-dates { grid-template-columns: 1fr 1fr; }
  .br-hero { grid-template-columns: 1fr; } .br-hero-t { padding: 20px 16px; } .br-hero-img { min-height: 180px; }
  .br-titre, .br-titre-in { font-size: 34px; }
  .br-body { padding: 16px; } .br-foot { padding: 10px 16px; }
  .br-fiche { padding-bottom: 150px; }
  .br-villes { grid-template-columns: 1fr 1fr; } .br-pj { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .so-split { grid-template-columns: 1fr; } .so-lst { border-right: 0; border-bottom: 1px solid var(--line); }
  .so-perf { grid-template-columns: 1fr; } .so-perf .so-pf:nth-child(n+3) { display: none; }
  .so-m { max-width: 92%; }
  .so-cal { display: none; } .so-cald { display: none; }
  .so-calm { display: flex; flex-direction: column; gap: 8px; }
  .so-calm-j { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
  .so-calm-j.auj { border-left: 4px solid var(--bad); }
  .so-calm-d { font-size: 13px; font-weight: 600; }
  .so-calm-x { display: flex; flex-direction: column; gap: 6px; }
  .so-calm-p { justify-content: space-between; min-height: 40px; padding: 6px 8px; font-weight: 400; font-size: 13px; text-align: left; gap: 8px; }
  .so-calm-p > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .so-hist li { grid-template-columns: 1fr; gap: 0; }
}
/* ---- rapports (0.20.0) : bibliothèque, rapport, tableau à niveaux, rapports constructeurs ; préfixe rp- ; --rp-acc : couleur des graphiques de la marque */
:root { --rp-acc: #2A5C9A; }
.rp .up { color: var(--ok); } .rp .down { color: var(--bad); } .rp .flat { color: var(--mute); } .rp .strong { font-weight: 600; }
main.rp { overflow-x: clip; }
.rp-ctl { max-width: 100%; }
.rp-head { align-items: flex-end; gap: 12px 24px; }
.rp-head .h-light { font-size: 30px; }
.rp-h2 { font-size: 17px; font-weight: 500; margin: 6px 0 0; }
.rp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rp-tabs button { background: none; border: 0; border-radius: 0; min-height: 42px; padding: 8px 12px; font-weight: 500; font-size: 14px; color: var(--mute); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.rp-tabs button[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.rp-ctl { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.rp-lab { font-size: 12px; color: var(--mute); }
.rp-seg { display: inline-flex; border: 1px solid #DCDCD6; border-radius: 4px; overflow: hidden; background: var(--panel); flex-wrap: wrap; }
.rp-seg button { border: 0; border-right: 1px solid #DCDCD6; border-radius: 0; min-height: 36px; padding: 6px 12px; font-weight: 400; font-size: 13px; }
.rp-seg button:last-child { border-right: 0; }
.rp-seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; font-weight: 600; }
.rp-nav { min-height: 36px; padding: 6px 10px; font-size: 12px; }
.rp-per { font-size: 13px; font-weight: 600; padding: 0 2px; }
.rp-date { width: auto; min-height: 36px; padding: 6px 8px; font-size: 13px; }
.rp-cmp { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: 13px; color: var(--ink); }
.rp-cmp input { width: 16px; height: 16px; min-height: 0; margin: 0; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rp-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--rp-acc); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rp-card-t { font-weight: 600; font-size: 15px; }
.rp-card-k { font-size: 30px; font-weight: 300; line-height: 1.1; }
.rp-card-a { margin-top: auto; padding-top: 6px; }
.rp-card-a button, .rp-card-a .btn { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rp-grid-1 { grid-template-columns: minmax(0, 1fr); } .rp-grid-1 > .rp-col:empty { display: none; }
.rp-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rp-met { display: flex; flex-direction: column; }
.rp-met-r { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; padding: 10px 0; border-top: 1px solid #EFEFEB; align-items: start; }
.rp-met-r:first-child { border-top: 0; }
.rp-met-m { font-weight: 500; padding-top: 7px; }
.rp-oem-r { justify-content: space-between; }
.rp-note { margin: 0; padding: 10px 12px; background: var(--soft); border-radius: 4px; }
.rp-s-a { background: var(--bad-bg); color: var(--bad); } .rp-s-p { background: var(--warn-bg); color: #7A4A06; } .rp-s-v { background: #E6EEF8; color: #1C3F6E; } .rp-s-e { background: var(--ok-bg); color: var(--ok); }
.rp-bref { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 28px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--rp-acc); border-radius: 6px; padding: 14px 20px; }
.rp-bref h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin: 0 0 6px; }
.rp-bref ul { margin: 0; padding-left: 18px; } .rp-bref li { margin: 0 0 4px; }
.rp-att li::marker { color: var(--bad); }
.rp-tiles { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.rp-tile { border-top-color: var(--rp-acc); }
.rp-tile .tv { font-size: 28px; white-space: nowrap; }
.rp-dt td.n small, .rp-mx td.n small { display: block; font-size: 11px; color: var(--mute); font-weight: 400; }
table.dt.rp-dt { min-width: 0; }
.rp-dt th.n, .rp-dt td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-dt tr.tot td { font-weight: 600; border-top: 1px solid var(--ink); }
.rp-dt td.b { white-space: nowrap; }
.rp-autres td { color: var(--mute); font-style: italic; }
.rp-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rp-gt { margin-bottom: 6px; }
.rp-svg svg { display: block; width: 100%; max-height: 280px; }
.rp .up, .rp .down, .rp .flat { white-space: nowrap; }
.rp-leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--mute); margin: 0 0 6px; }
.rp-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rp-leg i.tick { width: 2px; height: 12px; background: var(--ink); border-radius: 0; }
.rp-hb { display: grid; grid-template-columns: minmax(70px, 120px) 1fr auto; gap: 8px 10px; align-items: center; font-size: 13px; }
.rp-hb-t { position: relative; height: 10px; background: #F0F0EC; border-radius: 0 4px 4px 0; }
.rp-hb-f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.rp-hb-m { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.rp-hb-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-mx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
/* 0.20.1 : le tableau tient dans sa carte à 1280 px (colonnes serrées, courbe plus étroite) ; plus étroit, il défile dans la carte seulement */
table.dt.rp-mx { min-width: 720px; width: 100%; }
.rp-mx th, .rp-mx td { padding-left: 4px; padding-right: 4px; }
.rp-mx td.n { font-size: 12.5px; }
.rp-mx-commercial td.n { font-size: 12px; }
.rp-mx th { white-space: normal; line-height: 1.25; vertical-align: bottom; font-size: 12px; }
.rp-mx th.n, .rp-mx td.n { text-align: right; font-variant-numeric: tabular-nums; }
.rp-mx td.n.click { cursor: pointer; white-space: nowrap; } .rp-mx td.n.click:hover { background: #F3F3F1; }
.rp-mx td.nm { white-space: nowrap; font-weight: 500; }
.rp-mx-groupe td { background: #F7F7F4; font-weight: 600; }
.rp-mx-showroom td.nm { padding-left: 34px; color: var(--mute); font-weight: 400; }
.rp-mx-commercial td.nm { padding-left: 52px; color: var(--mute); font-weight: 400; font-size: 13px; }
.rp-mx-commercial td { font-size: 13px; }
.rp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.rp-tog { min-height: 0; padding: 0 6px 0 0; text-decoration: none; color: var(--mute); }
.rp-sp { width: 66px; padding-right: 0 !important; }
.rp-sp svg { display: block; width: 62px; height: 20px; }
.rp-cal .pv-row { justify-content: space-between; }
.rp-steps { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rp-steps > div { flex: 1; padding: 10px 14px; border-right: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.rp-steps > div:last-child { border-right: 0; }
.rp-steps b { display: block; font-size: 14px; color: var(--ink); }
.rp-steps .ok { background: var(--ok-bg); }
.rp-steps .cur { box-shadow: inset 0 3px 0 var(--ink); }
.rp-oem { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.rp-sheets { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.rp-sheets button { min-height: 34px; padding: 6px 10px; font-size: 12px; font-weight: 400; border-radius: 4px 4px 0 0; background: #F6F6F3; white-space: nowrap; }
.rp-sheets button[aria-selected="true"] { background: var(--panel); font-weight: 600; }
table.dt.rp-fx { min-width: 0; }
.rp-fx th { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--ink); background: #F6F6F3; white-space: nowrap; }
.rp-fx td { font-size: 12px; white-space: nowrap; }
.rp-warn { color: var(--warn); }
.rp-chk { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rp-chk li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid #EFEFEB; }
.rp-chk li > span { font-weight: 700; }
.rp-hash { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.rp-chips button { min-height: 34px; }
.sheet .panel.form-panel.rp-modal { max-width: 720px; }
@media (max-width: 1100px) { .rp-grid, .rp-mx-grid, .rp-oem { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .rp-two, .rp-bref { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .rp-head .h-light { font-size: 24px; }
  .rp-cmp { margin-left: 0; }
  .rp-met-r { grid-template-columns: 1fr; gap: 6px; } .rp-met-m { padding-top: 0; }
  .rp-steps { flex-direction: column; } .rp-steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .rp-card-k { font-size: 26px; } .rp-tile .tv { font-size: 24px; }
  .rp-hb { grid-template-columns: 84px 1fr auto; }
}
/* ---- fin rapports (0.20.0) */
