/* BeandBus · consoles (espace client, autocariste, super admin) · module « formulaire sur le site de l'autocariste »
   v1.0.0 · 2026-10-06 · Manrope, aucune dépendance.
   Thème : variables --bx-* (BeandBus neutre). Un bloc [data-partner] reçoit --p-* (couleurs validées du partenaire)
   et bascule les --bx-* dessus. Mêmes rôles de couleur que le widget (--bbf-*). */

:root {
  --bx-font: Manrope, system-ui, -apple-system, sans-serif;
  --bx-ink: #0B1220;
  --bx-muted: #5B6478;
  --bx-soft: #98A2B3;
  --bx-line: #E3E8F0;
  --bx-border: #C9D1E3;
  --bx-accent: #1D4ED8;
  --bx-accent-hi: #143EB7;
  --bx-tint: #ECF4FF;
  --bx-page: #F6F8FB;
  --bx-card: #fff;
  --bx-ok: #0F7A55;
  --bx-ok-tint: #E7F6EF;
  --bx-err: #C2410C;
  --bx-err-tint: #FFF1EA;
  --bx-radius: 18px;
}
[data-partner] {
  --bx-ink: #16202A;
  --bx-muted: #5B6874;
  --bx-soft: #98A4AF;
  --bx-line: var(--p-filet);
  --bx-border: var(--p-bordure);
  --bx-accent: var(--p-accent);
  --bx-accent-hi: var(--p-primaire);
  --bx-tint: var(--p-fond);
  --bx-page: var(--p-fond);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--bx-font); color: var(--bx-ink); background: var(--bx-page); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--bx-accent-hi); text-decoration: none; }
a:where(:hover) { color: var(--bx-accent); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.bx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— structure ——— */
.bx-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bx-page); color: var(--bx-ink); }
/* 1.137.15 — hauteur minimale (pas fixe) et groupe de droite qui passe à la ligne : entre 701 et ~960 px le dernier bouton
   (« Console de la plateforme ») sortait de la page et le navigateur l'élargissait (899 px pour 821 de fenêtre). */
.bx-top { position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--bx-line); }
.bx-top--compact { min-height: 64px; }
.bx-top__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
@media (min-width: 701px) { .bx-top__end { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; padding: 8px 0; } }
.bx-brand { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #0B1220; white-space: nowrap; }
.bx-brand span { color: #1D4ED8; }
.bx-brand small { margin-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #98A2B3; }
.bx-plogo { height: 38px; width: auto; }
.bx-vsep { width: 1px; height: 28px; background: var(--bx-line); }
.bx-top__title { font-size: 15px; font-weight: 800; color: var(--bx-accent-hi); white-space: nowrap; }
.bx-powered { font-size: 11.5px; font-weight: 600; color: var(--bx-soft); white-space: nowrap; }
.bx-powered b { font-weight: 800; color: #5B6478; }
.bx-powered b span { color: #1D4ED8; }
.bx-tabs { display: flex; gap: 26px; align-self: stretch; }
.bx-tabs a { display: flex; align-items: center; font-size: 14.5px; font-weight: 700; color: var(--bx-muted); white-space: nowrap; }
.bx-tabs a[aria-current="page"] { color: var(--bx-ink); box-shadow: inset 0 -3px 0 var(--bx-accent); }
.bx-user { display: flex; align-items: center; gap: 10px; }
.bx-user__txt { display: flex; flex-direction: column; line-height: 1.25; }
.bx-user__txt b { font-size: 13.5px; }
.bx-user__txt span { font-size: 12px; font-weight: 600; color: var(--bx-soft); }
.bx-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bx-tint); border: 1.5px solid var(--bx-line); font-size: 13px; font-weight: 800; color: var(--bx-accent-hi); object-fit: cover; }

.bx-shell { flex: 1; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.bx-side { padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; border-right: 1px solid var(--bx-line); }
.bx-side a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--bx-muted); }
.bx-side a[aria-current="page"] { background: var(--bx-tint); color: var(--bx-accent-hi); font-weight: 800; }
.bx-side svg { width: 17px; height: 17px; flex: none; }
.bx-side .bx-count { margin-left: auto; }
.bx-advisor { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--bx-accent-hi); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.bx-advisor .bx-kicker { color: rgba(255, 255, 255, .66); }
.bx-advisor b { font-size: 14px; }
.bx-advisor span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.bx-main { min-width: 0; padding: 28px 36px 48px; display: flex; flex-direction: column; gap: 22px; }
.bx-main--wide { max-width: 1240px; width: 100%; margin: 0 auto; padding: 32px 40px 56px; }

/* ——— typographie, petits éléments ——— */
.bx-kicker { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bx-soft); }
.bx-kicker--accent { color: var(--bx-accent); }
.bx-crumb { font-size: 12.5px; font-weight: 600; color: var(--bx-soft); }
.bx-h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.bx-h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.bx-meta { font-size: 13.5px; font-weight: 600; color: var(--bx-muted); }
.bx-text { font-size: 13.5px; font-weight: 500; line-height: 1.6; color: #3F4B57; text-wrap: pretty; }
.bx-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.bx-head__txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bx-head__end { margin-left: auto; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chip { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--bx-line); font-size: 12.5px; font-weight: 700; }
.bx-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--bx-accent-hi); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.bx-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bx-accent); }
[data-partner] .bx-status::before { background: var(--p-accent); }
.bx-status--wait { background: #fff; color: var(--bx-ink); border: 1px solid var(--bx-line); }
.bx-status--ok { background: var(--bx-ok); }
.bx-status--ok::before { background: #fff; }
.bx-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bx-accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.bx-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--bx-tint); color: var(--bx-accent-hi); }
.bx-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bx-accent); }
.bx-badge--direct { background: var(--p-fond, #EEF5F8); color: var(--p-primaire, #0C3D52); }
.bx-badge--direct::before { background: var(--p-accent, #23B7C5); }
.bx-badge--off { background: #F1F3F6; color: #5B6478; }
.bx-badge--on { background: var(--bx-ok-tint); color: var(--bx-ok); }

/* ——— boutons ——— */
.bx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent; background: var(--bx-accent); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform .2s cubic-bezier(.2, .7, .2, 1), background .2s, border-color .2s; }
.bx-btn:hover { color: #fff; background: var(--bx-accent-hi); transform: translateY(-1px); }
.bx-btn--ghost { background: #fff; color: var(--bx-ink); border-color: var(--bx-border); }
.bx-btn--ghost:hover { background: #fff; color: var(--bx-ink); border-color: var(--bx-accent); }
.bx-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
[data-partner] .bx-btn { border-radius: 99px; padding: 0 24px; background: var(--p-primaire); }
[data-partner] .bx-btn:hover { background: var(--p-primaire); filter: brightness(1.12); }
[data-partner] .bx-btn--ghost { background: #fff; color: var(--p-primaire); border-color: var(--p-bordure); }
[data-partner] .bx-btn--ghost:hover { filter: none; border-color: var(--p-accent); }
.bx-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ——— cartes ——— */
.bx-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.bx-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bx-card { padding: 24px 26px; border-radius: 22px; background: var(--bx-card); border: 1.5px solid var(--bx-line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bx-card--note { padding: 18px 20px; border-radius: 18px; border-style: dashed; border-color: var(--bx-border); flex-direction: row; gap: 12px; align-items: flex-start; }
.bx-card--note svg { flex: none; margin-top: 2px; color: var(--bx-accent-hi); }
.bx-price { font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.bx-price small { font-size: 18px; font-weight: 700; color: var(--bx-muted); letter-spacing: 0; }
.bx-row-top { display: flex; align-items: flex-start; gap: 20px; }
.bx-row-top > :last-child { margin-left: auto; }
.bx-check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bx-tint); font-size: 13.5px; font-weight: 600; color: var(--bx-accent-hi); }
.bx-check svg { flex: none; color: var(--bx-accent); }
/* 1.94.0 (JF, 15-10) — « Sur devis » dit pourquoi : cartel orange, la teinte du bloc « Estimation affichée sur votre site »
   de la console (#fff7ed / #fed7aa / #9a3412), quel que soit l'habillage du partenaire. */
.bx-sansprix { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff7ed; box-shadow: inset 0 0 0 1px #fed7aa; color: #3b4457; font-size: 13.5px; font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.bx-sansprix svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #c2410c; }
.bx-sansprix b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a3412; }
.bx-sansprix--cel { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 280px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4; text-align: right; }
.bx-sansprix--cel b { margin: 0; font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.bx-item__fig b.bx-surdevis { color: #9a3412; }
.bx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bx-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.bx-steps li { display: flex; flex-direction: column; gap: 8px; }
.bx-steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--bx-line); }
.bx-steps li b { font-size: 13px; }
.bx-steps li span { font-size: 12px; font-weight: 600; color: var(--bx-soft); }
.bx-steps .is-done::before { background: var(--bx-accent); }
.bx-steps .is-now::before { background: var(--bx-accent-hi); }
.bx-steps .is-now b { color: var(--bx-accent-hi); }
.bx-steps .is-next b { color: var(--bx-soft); }

.bx-msgs { display: flex; flex-direction: column; gap: 14px; }
.bx-msg { display: flex; gap: 10px; align-items: flex-start; }
.bx-msg__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bx-msg__body b { font-size: 12.5px; }
.bx-msg__body p { padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: var(--bx-tint); font-size: 13.5px; font-weight: 500; line-height: 1.55; text-wrap: pretty; }
.bx-msg__body span { font-size: 11.5px; font-weight: 600; color: var(--bx-soft); }
.bx-msg--me { flex-direction: row-reverse; }
.bx-msg--me .bx-msg__body { align-items: flex-end; }
.bx-msg--me .bx-msg__body p { border-radius: 14px 4px 14px 14px; background: var(--bx-accent-hi); color: #fff; }
.bx-reply { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 99px; border: 1.5px solid var(--bx-line); background: #fff; }
.bx-reply input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; font-weight: 500; }
.bx-reply button { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--bx-accent-hi); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ——— liste mixte (1b) ——— */
.bx-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--bx-line); }
.bx-seg a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--bx-muted); white-space: nowrap; }
.bx-seg a[aria-current="true"] { background: #0B1220; color: #fff; }
.bx-seg i { width: 8px; height: 8px; border-radius: 50%; }
.bx-list { display: flex; flex-direction: column; gap: 16px; }
.bx-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--bx-line); }
.bx-item__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bx-item__end { display: flex; align-items: center; gap: 22px; }
.bx-item__fig { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.bx-item__fig span { font-size: 13px; font-weight: 700; color: var(--bx-muted); }
.bx-item__fig b { font-size: 17px; }
.bx-pcard { border-radius: 18px; overflow: hidden; background: #fff; border: 1.5px solid var(--bx-line); box-shadow: 0 14px 30px rgba(12, 61, 82, .08); }
.bx-pcard__band { display: flex; align-items: center; gap: 14px; padding: 12px 26px; background: var(--p-primaire); color: #fff; }
.bx-pcard__band img { height: 24px; width: auto; }
.bx-pcard__band b { font-size: 13.5px; }
.bx-pcard__band .bx-badge { margin-left: auto; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.bx-pcard__band .bx-badge::before { background: var(--p-accent); }
.bx-pcard .bx-item { border: 0; border-radius: 0; }

/* ——— bandeau partenaire (1c) ——— */
.bx-band { display: flex; align-items: center; gap: 18px; padding: 18px 40px; background: var(--p-primaire); color: #fff; }
.bx-band img { height: 30px; width: auto; }
.bx-band__txt { display: flex; flex-direction: column; gap: 2px; }
.bx-band__txt b { font-size: 15px; }
.bx-band__txt span { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .74); }
.bx-band a { margin-left: auto; padding: 10px 18px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .32); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.bx-band a:hover { color: #fff; border-color: #fff; }

/* ——— tableaux ——— */
.bx-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bx-line); border-radius: 18px; overflow: hidden; }
.bx-table th, .bx-table td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--bx-line); font-size: 13.5px; }
.bx-table th { background: var(--bx-page); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bx-soft); }
.bx-table tr:last-child td { border-bottom: 0; }
.bx-table td b { font-size: 14px; }
.bx-table .bx-num { text-align: right; font-variant-numeric: tabular-nums; }
.bx-table__sub { display: block; font-size: 12.5px; font-weight: 600; color: var(--bx-soft); }

/* ——— formulaires ——— */
.bx-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.bx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bx-switch__ui { width: 42px; height: 24px; flex: none; border-radius: 99px; background: #D5DCE3; position: relative; transition: background .2s; }
.bx-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.bx-switch input:checked + .bx-switch__ui { background: var(--bx-ok); }
.bx-switch input:checked + .bx-switch__ui::after { transform: translateX(18px); }
.bx-switch input:focus-visible + .bx-switch__ui { outline: 2px solid var(--bx-accent); outline-offset: 2px; }
.bx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.bx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bx-field--wide { grid-column: 1 / -1; }
.bx-field label, .bx-field .bx-label { font-size: 12.5px; font-weight: 700; color: var(--bx-muted); }
.bx-field small { font-size: 12px; font-weight: 500; color: var(--bx-soft); line-height: 1.45; }
.bx-input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--bx-line); background: #fff; font-size: 14.5px; font-weight: 600; outline: 0; transition: border-color .2s; }
.bx-input:focus { border-color: var(--bx-accent); }
.bx-input[aria-invalid="true"] { border-color: var(--bx-err); background: var(--bx-err-tint); }
textarea.bx-input { min-height: 84px; resize: vertical; line-height: 1.5; }
.bx-colors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bx-color { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bx-color span { font-size: 11.5px; font-weight: 700; color: var(--bx-muted); }
.bx-color__in { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 10px; border: 1.5px solid var(--bx-line); background: #fff; }
.bx-color__in input[type="color"] { width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.bx-color__in input[type="text"] { width: 100%; min-width: 0; border: 0; outline: 0; font-size: 12.5px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.bx-color__in.is-bad { border-color: var(--bx-err); background: var(--bx-err-tint); }
.bx-err { padding: 12px 14px; border-radius: 12px; background: var(--bx-err-tint); color: var(--bx-err); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.bx-ok { padding: 12px 14px; border-radius: 12px; background: var(--bx-ok-tint); color: var(--bx-ok); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.bx-code { position: relative; margin: 0; padding: 16px 18px; border-radius: 14px; background: #0B1220; color: #D8E1F0; font: 500 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; }
.bx-code + .bx-btn { align-self: flex-start; }

/* ——— tiroir (super admin) ——— */
.bx-drawer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(11, 18, 32, .42); }
.bx-drawer__panel { width: min(760px, 100%); height: 100%; overflow-y: auto; background: var(--bx-page); display: flex; flex-direction: column; box-shadow: -30px 0 60px rgba(11, 18, 32, .18); }
.bx-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 20px 28px; background: #fff; border-bottom: 1px solid var(--bx-line); }
.bx-drawer__body { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.bx-drawer__foot { position: sticky; bottom: 0; display: flex; gap: 12px; justify-content: flex-end; padding: 16px 28px; background: #fff; border-top: 1px solid var(--bx-line); margin-top: auto; }
.bx-section-t { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bx-preview { padding: 18px; border-radius: 16px; background: var(--bx-page); border: 1px dashed var(--bx-border); }
.bx-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bx-log li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--bx-line); font-size: 13px; }
.bx-log li span { flex: none; width: 128px; font-weight: 600; color: var(--bx-soft); }
.bx-toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%); padding: 13px 20px; border-radius: 99px; background: #0B1220; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 18px 40px rgba(11, 18, 32, .3); }
.bx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bx-stat { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--bx-line); display: flex; flex-direction: column; gap: 4px; }
.bx-stat b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.bx-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.bx-banner--warn { background: var(--bx-err-tint); color: var(--bx-err); }
.bx-banner--info { background: var(--bx-tint); color: var(--bx-accent-hi); }
.bx-empty { padding: 48px 24px; border-radius: 22px; border: 1.5px dashed var(--bx-border); text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ——— responsive ——— */
.bx-top { min-width: 0; }
.bx-top__end { min-width: 0; }
.bx-tabs { min-width: 0; overflow: hidden; }
@media (max-width: 1180px) {
  .bx-tabs { gap: 18px; }
  .bx-tabs a:nth-child(n+3) { display: none; }
  .bx-powered, .bx-user__txt { display: none; }
}
@media (max-width: 1100px) {
  .bx-grid2 { grid-template-columns: minmax(0, 1fr); }
  .bx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bx-top { padding: 0 20px; gap: 16px; }
  .bx-tabs, .bx-powered, .bx-user__txt, .bx-top__title, .bx-vsep { display: none; }
  .bx-shell { grid-template-columns: minmax(0, 1fr); }
  .bx-side { flex-direction: row; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--bx-line); }
  .bx-advisor { display: none; }
  .bx-main, .bx-main--wide { padding: 22px 20px 40px; }
  .bx-band { padding: 14px 20px; flex-wrap: wrap; }
  .bx-band a { margin-left: 0; }
  .bx-item { grid-template-columns: minmax(0, 1fr); }
  .bx-item__end { justify-content: space-between; }
  .bx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-fields, .bx-colors { grid-template-columns: minmax(0, 1fr); }
  .bx-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ——— fase 133 : ce que la plateforme ajoute à la feuille du designer (rien de ce qui précède n'est modifié) ——— */
.bx-logo-actuel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--bx-border); background: #fff; }
.bx-logo-actuel img { height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.bx-logo-actuel.is-clair { background: #0C3D52; }
.bx-logo-actuel .bx-btn { margin-left: auto; }
.bx-lien { padding: 0; border: 0; background: none; color: var(--bx-accent-hi); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.bx-search { width: min(320px, 100%); min-height: 40px; }
.bx-loading { padding: 80px 24px; text-align: center; font-size: 14px; font-weight: 600; color: var(--bx-soft); }
.bx-input[readonly] { background: var(--bx-page); color: var(--bx-muted); }
button.bx-btn { font-family: inherit; }
.bx-msg--closed { padding: 12px 14px; border-radius: 14px; background: var(--bx-page); font-size: 13px; font-weight: 600; color: var(--bx-muted); }
/* le globe des bandeaux n'avait pas de taille dans la maquette : sans elle, un SVG inline remplit sa colonne flex */
.bx-banner svg { width: 18px; height: 18px; flex: none; }
/* Les menus restent COMPLETS à toutes les largeurs (1.77.1). La maquette masquait les onglets à partir du 3e sous 1180 px
   et tous sous 900 px, sans menu de remplacement : « Mon formulaire », « Intégrations », « Documents » devenaient
   inaccessibles sur tablette et téléphone. Sous 900 px, les onglets passent sur une 2e ligne de l'en-tête, défilable,
   comme le menu latéral de l'espace partenaire (1a). */
@media (max-width: 1180px) {
  .bx-tabs a:nth-child(n+3) { display: flex; }
  .bx-tabs { overflow-x: auto; scrollbar-width: none; }
  .bx-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .bx-top:has(.bx-tabs) { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .bx-top .bx-tabs { display: flex; order: 3; flex: 0 0 calc(100% + 40px); height: 46px; gap: 22px; margin: 12px -20px 0; padding: 0 20px; border-top: 1px solid var(--bx-line); }
  .bx-top .bx-tabs a { font-size: 14px; }
  /* « Nouvelle demande » (1b) tient à côté de la marque sur un téléphone : le bouton passe au format --sm */
  .bx-top__end { gap: 10px; }
  .bx-top__end .bx-btn { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
  /* La grille de l'espace (1a) passe sur une colonne : ses lignes « auto » se partageaient la hauteur libre — avec une
     seule demande, le menu devenu barre mesurait 338 px et l'onglet actif 318 px (vu à 891 px, 07-10). */
  .bx-shell { align-content: start; }
  /* la barre défile : ses onglets gardent leur largeur — rétrécis, « Mes demandes » passait sur deux lignes (375 px) */
  .bx-side a { flex: none; white-space: nowrap; }
}

/* 1.137.13 — tables éditables en cartes sur téléphone (éditeur de la grille de calcul) : une ligne = une carte, champs à pleine largeur */
@media (max-width: 700px) {
  .bx-table--cartes, .bx-table--cartes tbody { display: block; width: 100%; }
  .bx-table--cartes thead { display: none; }
  .bx-table--cartes tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--bx-line); }
  .bx-table--cartes td { display: block; padding: 0; min-width: 0; border: 0; }
  .bx-table--cartes td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bx-soft); }
  .bx-table--cartes td[data-l="Véhicule"], .bx-table--cartes td[data-l="Pays (code)"], .bx-table--cartes .bx-cartes__sw, .bx-table--cartes .bx-cartes__btn { grid-column: 1 / -1; }
  .bx-table--cartes .bx-cartes__btn { display: flex; justify-content: flex-end; }
  .bx-table--cartes .bx-input { width: 100%; min-height: 46px; font-size: 16px; }
  .bx-fields .bx-input, .bx-fields textarea.bx-input { min-height: 46px; font-size: 16px; }
}
/* 1.137.14 — téléphone : la barre du haut passe sur deux lignes (le bouton de droite dépassait et le navigateur élargissait la page à 461 px) */
@media (max-width: 700px) {
  .bx-top { flex-wrap: wrap; height: auto; min-height: 0; padding: 8px 12px; gap: 6px 12px; }
  .bx-top__end { margin-left: 0; flex: 0 0 100%; flex-wrap: wrap; gap: 6px; }
  .bx-top__end .bx-btn { white-space: normal; text-align: center; }
}

