/* Base Painter. Ne surcharge pas marges/transform de .content-grid (gere par js/sidebar/sidebar.js). */
.bpt {
  --bpt-bg: #0b0d2a; --bpt-card: #141739; --bpt-card2: #1a1e4a; --bpt-line: rgba(255,255,255,.08);
  --bpt-violet: #6c3cff; --bpt-violet2: #a855f7; --bpt-green: #22c55e; --bpt-orange: #f97316; --bpt-red: #ef4444; --bpt-gold: #f5c542;
  --bpt-text: #eef1ff; --bpt-muted: #a3a9d6;
  color: var(--bpt-text); background: var(--bpt-bg); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 14px;
}
.bpt *, .bpt-toasts * { box-sizing: border-box; }
.bpt h1, .bpt h2, .bpt h3 { color: var(--bpt-text); margin: 0; }
.bpt a { color: inherit; }

/* Sous-navigation */
.bpt-subnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bpt-crumb { margin: 0; font-weight: 800; color: var(--bpt-muted); }
.bpt-crumb a { color: var(--bpt-text); text-decoration: none; }
.bpt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bpt-tab { display: inline-flex; border: 1px solid var(--bpt-line); background: var(--bpt-card); color: var(--bpt-muted); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .85rem; text-decoration: none; transition: background .2s, color .2s; }
.bpt-tab:hover { color: #fff; }
.bpt-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--bpt-violet), var(--bpt-violet2)); border-color: transparent; }
.bpt-page-title { font-size: 1.5rem; font-weight: 900; }

/* Boutons (le theme impose button{width:100%} : on le neutralise ici) */
.bpt-btn { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 10px 18px; font-weight: 800; font-size: .9rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: filter .2s, transform .2s; }
.bpt-btn:hover { filter: brightness(1.1); }
.bpt-btn:focus-visible, .bpt-tab:focus-visible { outline: 2px solid var(--bpt-violet2); outline-offset: 2px; }
.bpt-btn--primary { color: #fff; background: linear-gradient(135deg, var(--bpt-violet), var(--bpt-violet2)); }
.bpt-btn--ghost { color: #fff; background: transparent; border-color: rgba(168,85,247,.55); }
.bpt-btn--danger { color: #fff; background: transparent; border-color: rgba(239,68,68,.6); }

/* Badges et pastilles de bases */
.bpt-badge { display: inline-block; width: auto; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; background: rgba(168,85,247,.2); color: #d8c4ff; }
.bpt-badge--new { background: var(--bpt-green); color: #06210f; }
.bpt-chip { --bpt-chip: #fff; display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; padding: 3px 9px; font-size: .78rem; font-weight: 800;
  color: var(--bpt-chip); background: color-mix(in srgb, var(--bpt-chip) 16%, transparent); border: 1px solid color-mix(in srgb, var(--bpt-chip) 45%, transparent); }

/* Banniere */
.bpt-hero { position: relative; overflow: hidden; border-radius: 16px; min-height: 200px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px;
  background: radial-gradient(ellipse at 80% 20%, rgba(168,85,247,.35), transparent 60%), linear-gradient(120deg, #1b1f5e 0%, #2a1a6b 55%, #3a1170 100%); border: 1px solid rgba(168,85,247,.35); }
.bpt-hero-text { max-width: 60%; }
.bpt-hero-title { margin: 8px 0 0 !important; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1; }
.bpt-hero-sub { margin: 10px 0 0; color: #dfe4ff; font-weight: 700; }
.bpt-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bpt-hero-art { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 36%; }
.bpt-hero-art .bpt-chip { font-size: 1rem; padding: 8px 14px; }

/* Garanties + stats */
.bpt-guarantees, .bpt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bpt-guarantee, .bpt-stat { background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bpt-guarantee strong { font-weight: 900; }
.bpt-guarantee span, .bpt-stat-lbl { color: var(--bpt-muted); font-size: .8rem; font-weight: 700; }
.bpt-stat-val { font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: var(--bpt-violet2); }

/* Cartes */
.bpt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bpt-card { background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 16px; padding: 16px 18px; }
.bpt-card h2 { font-size: 1.1rem; font-weight: 900; }
.bpt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bpt-card-head a { color: var(--bpt-violet2); font-weight: 800; text-decoration: none; font-size: .85rem; }
.bpt-empty { margin: 0; color: var(--bpt-muted); }
.bpt-steps { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; color: #dfe4ff; }
.bpt-safety ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: #dfe4ff; }
.bpt-soon { text-align: center; padding: 28px 18px; }
.bpt-soon h2 { margin: 10px 0 6px !important; }
.bpt-soon p { margin: 0; color: var(--bpt-muted); }

/* Bloc d acces (connexion / Discord obligatoire) */
.bpt-gate { display: flex; align-items: center; gap: 16px; border-radius: 16px; padding: 16px 18px; background: linear-gradient(120deg, rgba(88,101,242,.22), rgba(168,85,247,.16)); border: 1px solid rgba(88,101,242,.5); }
.bpt-gate-icon { font-size: 1.8rem; }
.bpt-gate h2 { font-size: 1.05rem; font-weight: 900; }
.bpt-gate p { margin: 4px 0 10px; color: #dfe4ff; }

/* Devenir Painter */
.bpt-apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.bpt-verified { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #3b82f6; color: #fff; font-size: .8rem; vertical-align: middle; }
.bpt-lead { margin: 8px 0 12px; color: #dfe4ff; font-weight: 700; }
.bpt-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bpt-checklist li { position: relative; padding-left: 28px; color: #dfe4ff; }
.bpt-checklist li::before { content: '✔'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bpt-green); color: #06210f; font-size: .7rem; font-weight: 900; display: grid; place-items: center; }
.bpt-apply-req { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--bpt-line); }
.bpt-apply-req h2 { font-size: .95rem !important; }
.bpt-apply-req ul { margin: 6px 0 0; padding-left: 18px; color: var(--bpt-muted); display: grid; gap: 4px; }
.bpt-form { display: grid; gap: 14px; }
.bpt-field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.bpt-field > span, .bpt-field > legend { font-weight: 800; font-size: .85rem; color: var(--bpt-text); padding: 0; margin-bottom: 2px; }
.bpt-field b { color: var(--bpt-violet2); }
.bpt .bpt-field input[type=text], .bpt .bpt-field textarea, .bpt .bpt-field input[type=file] {
  width: 100%; background: var(--bpt-card2); color: var(--bpt-text); border: 1px solid rgba(168,85,247,.35); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 600; height: auto; }
.bpt .bpt-field textarea { resize: vertical; }
.bpt .bpt-field input:focus, .bpt .bpt-field textarea:focus { outline: 2px solid var(--bpt-violet2); outline-offset: 1px; }
.bpt-readonly { margin: 0; background: var(--bpt-card2); border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.bpt-ok { color: var(--bpt-green); font-weight: 900; }
.bpt-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.bpt-pick-item { --bpt-chip: #a855f7; position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.bpt-pick-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bpt-pick-item span { border-radius: 8px; padding: 6px 10px; font-size: .8rem; font-weight: 800; color: var(--bpt-muted); border: 1px solid var(--bpt-line); background: var(--bpt-card2); transition: all .15s; }
.bpt-pick-item input:checked + span { color: var(--bpt-chip); border-color: var(--bpt-chip); background: color-mix(in srgb, var(--bpt-chip) 16%, transparent); }
.bpt-pick-item input:checked + span::before { content: '✔ '; }
.bpt-pick-item input:focus-visible + span { outline: 2px solid var(--bpt-violet2); outline-offset: 2px; }
.bpt-hint { color: var(--bpt-muted); font-size: .78rem; margin: 0; }
.bpt-err { color: #fca5a5; font-weight: 700; font-size: .8rem; min-height: 0; }
.bpt-err:empty { display: none; }
.bpt-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.bpt-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bpt-line); }
.bpt-btn--block { width: 100%; padding: 12px 18px; }
.bpt-btn:disabled { opacity: .6; cursor: progress; }
.bpt-state { display: grid; gap: 8px; justify-items: start; }
.bpt-state h2 { font-size: 1.15rem !important; }
.bpt-state p { margin: 0; color: #dfe4ff; }
.bpt-state--ok h2 { color: var(--bpt-green) !important; }
.bpt-state--warn h2 { color: var(--bpt-gold) !important; }
.bpt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bpt-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.35); color: #fde68a; }

/* Annuaire */
.bpt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bpt-filters { display: grid; gap: 10px; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 14px; padding: 12px; }
.bpt-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bpt .bpt-search input, .bpt .bpt-select select, .bpt .bpt-select input {
  width: 100%; height: auto; background: var(--bpt-card2); color: var(--bpt-text); border: 1px solid rgba(168,85,247,.35); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: .85rem; }
.bpt-search { margin: 0; flex: 1 1 220px; }
.bpt-select { margin: 0; flex: 0 1 auto; }
.bpt-select--price { width: 120px; }
.bpt-view { display: inline-flex; gap: 4px; margin-left: auto; }
.bpt-view-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--bpt-line); background: var(--bpt-card2); color: var(--bpt-muted); cursor: pointer; font-size: 1rem; }
.bpt-view-btn.is-active { background: var(--bpt-violet); color: #fff; }
.bpt-count { margin: 0 0 8px; color: var(--bpt-muted); font-weight: 800; font-size: .85rem; }
.bpt-painters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bpt-painters.is-list { grid-template-columns: 1fr; }
.bpt-painters--mini { grid-template-columns: 1fr; }
.bpt-pcard { display: flex; flex-direction: column; gap: 10px; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 14px; padding: 14px; transition: border-color .2s, transform .2s; }
.bpt-pcard:hover { border-color: rgba(168,85,247,.55); transform: translateY(-2px); }
.bpt-painters.is-list .bpt-pcard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto; align-items: center; }
.bpt-painters.is-list .bpt-pcard-headline, .bpt-painters.is-list .bpt-coverage { grid-column: 2; }
.bpt-pcard-head { display: flex; align-items: center; gap: 10px; }
.bpt-pcard-id { flex: 1; min-width: 0; }
.bpt-pcard-name { font-weight: 900; font-size: 1.05rem; text-decoration: none; }
.bpt-pcard-id .bpt-verified { width: 18px; height: 18px; font-size: .6rem; margin-left: 4px; }
.bpt-pcard-headline { margin: 0; color: #dfe4ff; font-size: .85rem; }
.bpt-avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--bpt-card2); }
.bpt-avatar--lg { width: 96px; height: 96px; border-radius: 18px; }
.bpt-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--bpt-muted); font-size: .78rem; font-weight: 700; }
.bpt-status { flex: 0 0 auto; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 900; }
.bpt-status.is-on { background: rgba(34,197,94,.18); color: #86efac; }
.bpt-status.is-off { background: rgba(249,115,22,.18); color: #fdba74; }
.bpt-coverage { margin: 0; font-size: .82rem; font-weight: 800; color: #c4b5fd; }
.bpt-coverage.is-full { color: #86efac; }
.bpt-pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.bpt-price { display: flex; flex-direction: column; line-height: 1.2; }
.bpt-price small { color: var(--bpt-muted); font-size: .72rem; font-weight: 700; }
.bpt-price strong { font-size: 1.15rem; font-weight: 900; }
.bpt-more-wrap { display: flex; justify-content: center; margin-top: 12px; }
.bpt-more-wrap [hidden] { display: none; }

/* Fiche Painter */
.bpt-profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.bpt-profile-head .bpt-ok { margin: 4px 0 0; font-size: .85rem; }
.bpt-profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.bpt-ptabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--bpt-line); padding-bottom: 8px; }
.bpt-ptab { width: auto; border: 0; background: transparent; color: var(--bpt-muted); font-weight: 800; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.bpt-ptab.is-active { background: var(--bpt-card2); color: #fff; box-shadow: inset 0 -2px 0 var(--bpt-violet2); }
.bpt-mt { margin-top: 18px !important; }
.bpt-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.bpt-offer { border: 1px solid var(--bpt-line); background: var(--bpt-card2); border-radius: 14px; padding: 14px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.bpt-offer h3 { font-size: .95rem; font-weight: 900; }
.bpt-offer p { margin: 0; }
.bpt-offer--free { border-color: rgba(34,197,94,.45); }
.bpt-offer--flat { border-color: rgba(245,197,66,.45); }
.bpt-offer-price { font-size: 1.2rem; font-weight: 900; color: #fff; }
.bpt-offer-desc { color: var(--bpt-muted); font-size: .82rem; }
.bpt-bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.bpt-base { --bpt-chip: #a855f7; width: auto; display: grid; gap: 4px; justify-items: center; text-align: center; text-decoration: none; cursor: pointer; border-radius: 12px; padding: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--bpt-chip) 55%, transparent); background: color-mix(in srgb, var(--bpt-chip) 12%, var(--bpt-card2)); color: var(--bpt-text); font: inherit; }
.bpt-base strong { color: var(--bpt-chip); }
.bpt-partial { color: #fdba74; font-weight: 800; font-size: .8rem; }
.bpt-base .bpt-ok { font-size: .8rem; }
.bpt-chip-btn { cursor: pointer; width: auto; }
.bpt-chip-btn.is-active { outline: 2px solid var(--bpt-chip); }
.bpt-inline-check { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 700; font-size: .85rem; cursor: pointer; }
.bpt .bpt-inline-check { padding: 10px 14px; border: 1px solid rgba(139,92,246,.3); border-radius: 12px; background: rgba(30,41,70,.55); color: var(--bpt-text); transition: border-color .15s, background .15s, box-shadow .15s; }
.bpt .bpt-inline-check:hover { border-color: rgba(168,85,247,.75); background: rgba(76,29,149,.25); }
.bpt .bpt-inline-check:has(input:checked) { border-color: #a855f7; background: rgba(124,58,237,.25); box-shadow: 0 0 0 3px rgba(168,85,247,.12); }
.bpt .bpt-inline-check input { appearance: auto; -webkit-appearance: checkbox; width: 18px !important; height: 18px !important; margin: 0; accent-color: var(--bpt-violet2); }
.bpt-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 10px; }
.bpt-tile { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--bpt-card2); border: 1px solid var(--bpt-line); }
.bpt-tile img { width: 64px; height: 64px; object-fit: contain; }
.bpt-tile.has-stock { border-color: rgba(34,197,94,.5); }
.bpt-tile.is-missing { box-shadow: 0 0 0 2px rgba(168,85,247,.6); }
.bpt-tile-name { font-size: .72rem; font-weight: 800; line-height: 1.2; }
.bpt-tile-qty { font-size: .75rem; color: #86efac; font-weight: 900; }
.bpt-tile-flag { font-size: .65rem; color: #d8b4fe; font-weight: 900; text-transform: uppercase; }
.bpt-stock-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 7px; padding: 28px 18px; border: 1px dashed rgba(168,85,247,.4); border-radius: 16px; background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(15,23,42,.28)); color: var(--bpt-text); text-align: center; }
.bpt-stock-empty__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(168,85,247,.2); color: #d8b4fe; font-size: 1.3rem; }
.bpt-stock-empty strong { font-size: .95rem; }
.bpt-stock-empty small { max-width: 420px; color: var(--bpt-muted); font-size: .78rem; }
.bpt .bpt-qty { width: 64px; height: auto; text-align: center; background: var(--bpt-bg); color: #fff; border: 1px solid rgba(168,85,247,.35); border-radius: 8px; padding: 4px; font-weight: 800; }
.bpt-catalog--edit .bpt-tile:not(.has-stock) img { opacity: .45; filter: grayscale(.7); }
.bpt-week { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; }
.bpt-week dt { font-weight: 800; }
.bpt-week dd { margin: 0; color: #dfe4ff; }
.bpt-bio { color: #dfe4ff; }

/* Espace Painter */
.bpt-dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.bpt-dash-nav { display: grid; gap: 4px; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 14px; padding: 10px; position: sticky; top: 90px; }
.bpt-dash-nav a { padding: 9px 12px; border-radius: 10px; font-weight: 800; text-decoration: none; color: var(--bpt-muted); }
.bpt-dash-nav a.is-active, .bpt-dash-nav a:hover { background: var(--bpt-card2); color: #fff; }
.bpt-dash-soon { padding: 8px 12px; font-size: .72rem; color: var(--bpt-muted); }
.bpt-dash-main { display: grid; gap: 14px; min-width: 0; }
.bpt-todo li.is-done { opacity: .6; text-decoration: line-through; }
.bpt-todo li:not(.is-done)::before { background: var(--bpt-card2); color: var(--bpt-muted); content: '•'; }
.bpt-offer-form { border-top: 1px solid var(--bpt-line); padding-top: 14px; margin-top: 14px; }
.bpt-offer-form h3 { font-size: 1rem; font-weight: 900; }
.bpt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bpt .bpt-field select { width: 100%; height: auto; background: var(--bpt-card2); color: var(--bpt-text); border: 1px solid rgba(168,85,247,.35); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 600; }
.bpt-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bpt-day { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--bpt-line); padding: 8px 0; }
.bpt-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.bpt-slot { display: inline-flex; align-items: center; gap: 4px; background: var(--bpt-card2); border-radius: 10px; padding: 4px 8px; }
.bpt .bpt-slot input { width: auto; height: auto; background: transparent; color: #fff; border: 0; font: inherit; font-weight: 700; color-scheme: dark; }
.bpt-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(239,68,68,.25); color: #fecaca; cursor: pointer; }
.bpt-btn--sm { padding: 6px 10px; font-size: .78rem; }

/* Publier une demande */
.bpt-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.bpt-stepper li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--bpt-muted); font-weight: 800; font-size: .78rem; text-align: center; }
.bpt-stepper li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--bpt-line); }
.bpt-stepper li.is-done:not(:last-child)::after { background: var(--bpt-violet2); }
.bpt-stepdot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--bpt-line); background: var(--bpt-card2); color: var(--bpt-muted); }
.bpt-stepper li.is-current .bpt-stepdot, .bpt-stepper li.is-done .bpt-stepdot { background: linear-gradient(135deg, var(--bpt-violet), var(--bpt-violet2)); border-color: transparent; color: #fff; }
.bpt-stepper li.is-current { color: #fff; }
.bpt-step h2 { margin-bottom: 12px !important; }
.bpt-vtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bpt-vtile { --bpt-chip: #a855f7; width: auto; display: grid; place-items: center; gap: 6px; min-height: 84px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 900;
  color: var(--bpt-chip); background: color-mix(in srgb, var(--bpt-chip) 10%, var(--bpt-card2)); border: 2px solid color-mix(in srgb, var(--bpt-chip) 35%, transparent); padding: 10px; }
.bpt-vtile.is-active { border-color: var(--bpt-chip); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpt-chip) 35%, transparent); }
.bpt-vtile--other { color: var(--bpt-text); margin: 0; }
.bpt .bpt-vtile--other select { width: 100%; height: auto; background: var(--bpt-bg); color: #fff; border: 1px solid var(--bpt-line); border-radius: 8px; padding: 6px; font: inherit; font-size: .8rem; }
.bpt-info { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35); color: #dbeafe; font-size: .88rem; }
.bpt-wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bpt-line); }
.bpt-tile.is-pickable { cursor: pointer; user-select: none; }
.bpt-tile.is-pickable:not(.is-picked) img { opacity: .45; filter: grayscale(.8); }
.bpt-tile.is-picked { border-color: var(--bpt-violet2); box-shadow: 0 0 0 2px rgba(168,85,247,.55); }
.bpt-tile.is-picked::after { content: '✔'; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bpt-violet2); color: #fff; font-size: .65rem; display: grid; place-items: center; }
.bpt-tile:focus-visible { outline: 2px solid var(--bpt-violet2); outline-offset: 2px; }
.bpt-radios { display: grid; gap: 8px; margin-bottom: 10px; }
.bpt-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bpt-card2); border: 1px solid var(--bpt-line); cursor: pointer; font-weight: 800; margin: 0; }
.bpt .bpt-radio input { appearance: auto; -webkit-appearance: radio; width: 18px !important; height: 18px !important; margin: 0; accent-color: var(--bpt-violet2); }
.bpt-radio:has(input:checked) { border-color: var(--bpt-violet2); background: rgba(168,85,247,.12); }
.bpt-recap { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.bpt-recap dt { font-weight: 800; color: var(--bpt-muted); }
.bpt-recap dd { margin: 0; color: #fff; white-space: pre-wrap; word-break: break-word; }

/* Demandes */
.bpt-req-tabs { margin: 4px 0 6px; }
.bpt-req-tabs .bpt-chip { text-decoration: none; padding: 6px 12px; }
.bpt-requests { display: grid; gap: 10px; }
.bpt-rcard { --bpt-chip: #a855f7; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 14px; padding: 12px 14px; transition: border-color .2s; }
.bpt-rcard:hover { border-color: var(--bpt-chip); }
.bpt-rcard-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; color: var(--bpt-chip); background: color-mix(in srgb, var(--bpt-chip) 15%, var(--bpt-card2)); border: 1px solid color-mix(in srgb, var(--bpt-chip) 45%, transparent); }
.bpt-rcard-body { display: grid; gap: 2px; min-width: 0; }
.bpt-rcard-count { border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: .8rem; background: linear-gradient(135deg, var(--bpt-violet), var(--bpt-violet2)); color: #fff; white-space: nowrap; }
.bpt-req-head { --bpt-chip: #a855f7; display: grid; gap: 14px; border-left: 4px solid var(--bpt-chip); }
.bpt-recap--inline { grid-template-columns: auto 1fr; }
.bpt-catalog--compact { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.bpt-proposals { display: grid; gap: 10px; }
.bpt-proposal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--bpt-card2); border: 1px solid var(--bpt-line); border-radius: 14px; padding: 12px; }
.bpt-proposal.is-accepted { border-color: rgba(34,197,94,.6); }
.bpt-proposal.is-declined, .bpt-proposal.is-withdrawn { opacity: .55; }
.bpt-proposal-msg { margin: 6px 0 0; color: #dfe4ff; font-size: .88rem; }
.bpt-proposal-side { display: grid; gap: 6px; justify-items: end; }

/* Commandes */
.bpt-ocard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 14px; padding: 12px 14px; }
.bpt-ocard:hover { border-color: rgba(168,85,247,.55); }
.bpt-ocard.tone-live { border-color: rgba(34,197,94,.6); }
.bpt-ostatus { display: inline-block; border-radius: 999px; padding: 5px 12px; font-weight: 900; font-size: .78rem; white-space: nowrap; background: rgba(168,85,247,.2); color: #e9d5ff; }
.bpt-ostatus.tone-live { background: var(--bpt-green); color: #052e14; }
.bpt-ostatus.tone-ok { background: rgba(34,197,94,.18); color: #86efac; }
.bpt-ostatus.tone-warn { background: rgba(245,197,66,.18); color: #fde68a; }
.bpt-ostatus.tone-danger { background: rgba(239,68,68,.2); color: #fecaca; }
.bpt-ostatus.tone-muted { background: rgba(255,255,255,.08); color: var(--bpt-muted); }
.bpt-order { display: grid; gap: 14px; }
.bpt-order-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; }
.bpt-order-head .bpt-info, .bpt-order-head [data-bpt-o-actions] { grid-column: 1 / -1; margin: 0; }
.bpt-order-badges { display: flex; gap: 10px; align-items: center; }
.bpt-timer { font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 900; }
.bpt-progress { height: 14px; border-radius: 999px; background: var(--bpt-card2); overflow: hidden; }
.bpt-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #4ade80); transition: width .4s ease; }
.bpt-order-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.bpt-table-wrap { overflow-x: auto; }
.bpt-items { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bpt-items th { text-align: center; color: var(--bpt-muted); font-weight: 800; padding: 8px 6px; border-bottom: 1px solid var(--bpt-line); }
.bpt-items th:nth-child(2) { text-align: left; }
.bpt-items td { padding: 8px 6px; border-bottom: 1px solid var(--bpt-line); text-align: center; vertical-align: middle; }
.bpt-items tr.is-lent, .bpt-items tr.is-indexed { background: rgba(168,85,247,.1); outline: 1px solid rgba(168,85,247,.5); }
.bpt-items tr.is-not_returned { background: rgba(239,68,68,.12); }
.bpt-item-name { text-align: left !important; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.bpt-item-name img { width: 36px; height: 36px; object-fit: contain; }
.bpt-cell { white-space: nowrap; }
.bpt-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bpt-green); color: #052e14; font-size: .7rem; font-weight: 900; margin-right: 4px; }
.bpt-cell small { color: var(--bpt-muted); }
.bpt-nil { color: var(--bpt-muted); }
.bpt-item-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bpt-pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 900; background: rgba(255,255,255,.08); color: var(--bpt-muted); }
.bpt-pill.is-returned { background: var(--bpt-green); color: #052e14; }
.bpt-pill.is-lent, .bpt-pill.is-indexed { background: rgba(168,85,247,.3); color: #fff; }
.bpt-pill.is-not_returned { background: rgba(239,68,68,.3); color: #fff; }
.bpt-chat { display: grid; gap: 10px; }
.bpt-chat-log { display: flex; flex-direction: column; gap: 8px; height: 420px; overflow-y: auto; padding: 4px; }
.bpt-msg { max-width: 85%; align-self: flex-start; display: grid; gap: 2px; background: var(--bpt-card2); border-radius: 12px 12px 12px 4px; padding: 8px 10px; }
.bpt-msg.is-mine { align-self: flex-end; background: rgba(108,60,255,.35); border-radius: 12px 12px 4px 12px; }
.bpt-msg.is-system { align-self: center; max-width: 95%; background: transparent; border: 1px dashed var(--bpt-line); color: var(--bpt-muted); font-size: .8rem; text-align: center; }
.bpt-msg.is-warning { border: 1px solid rgba(245,197,66,.5); }
.bpt-msg-who { font-size: .72rem; color: var(--bpt-muted); font-weight: 800; }
.bpt-msg-body { white-space: pre-wrap; word-break: break-word; font-size: .88rem; }
.bpt-msg-att img { max-width: 180px; max-height: 140px; border-radius: 8px; margin-top: 4px; }
.bpt-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.bpt .bpt-chat-form input[type=text] { width: 100%; height: auto; background: var(--bpt-card2); color: #fff; border: 1px solid rgba(168,85,247,.35); border-radius: 10px; padding: 10px 12px; font: inherit; }
.bpt-chat-file { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--bpt-card2); cursor: pointer; margin: 0; }
.bpt.bpt-modal { position: fixed; inset: 0; z-index: 10040; background: rgba(5,6,20,.75); display: grid; place-items: center; padding: 16px; border-radius: 0; }
.bpt.bpt-modal[hidden] { display: none; }
.bpt-modal-box { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; color: var(--bpt-text); }

/* Avis */
.bpt-stars { margin: 0; color: var(--bpt-gold); letter-spacing: 2px; font-size: 1.05rem; }
.bpt-star-pick { display: flex; gap: 4px; }
.bpt-star { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bpt-card2); color: #4b4f7a; font-size: 1.4rem; cursor: pointer; }
.bpt-star.is-on { color: var(--bpt-gold); }
.bpt-star:focus-visible { outline: 2px solid var(--bpt-violet2); }
.bpt .bpt-review-card textarea, .bpt .bpt-reviews textarea { width: 100%; background: var(--bpt-card2); color: #fff; border: 1px solid rgba(168,85,247,.35); border-radius: 10px; padding: 10px; font: inherit; }
.bpt-review-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin: 10px 0 16px; }
.bpt-review-avg { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.bpt-review-avg small { font-size: 1rem; color: var(--bpt-muted); }
.bpt-review-bars { display: grid; gap: 4px; }
.bpt-review-bar { display: grid; grid-template-columns: 36px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: .78rem; font-weight: 800; color: var(--bpt-muted); }
.bpt-review-bar .bpt-progress { height: 8px; }
.bpt-review-bar .bpt-progress span { background: var(--bpt-gold); }
.bpt-reviews { display: grid; gap: 10px; }
.bpt-review { background: var(--bpt-card2); border: 1px solid var(--bpt-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.bpt-review p { margin: 0; }
.bpt-review-text { color: #dfe4ff; }
.bpt-review-reply { border-left: 3px solid var(--bpt-violet2); padding-left: 10px; color: #dfe4ff; font-size: .88rem; }
.bpt-linkbtn { width: auto; border: 0; background: none; padding: 0; color: var(--bpt-muted); text-decoration: underline; font: inherit; font-size: .78rem; cursor: pointer; justify-self: start; }
.bpt-linkbtn:hover { color: #fca5a5; }
.bpt-stats--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bpt-pay-info { flex-basis: 100%; margin: 0; font-weight: 800; color: #fde68a; }

/* Toasts */
.bpt-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 10050; display: flex; flex-direction: column; gap: 8px; }
.bpt-toast { background: #1a1e4a; color: #eef1ff; border: 1px solid rgba(168,85,247,.45); border-radius: 12px; padding: 10px 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.bpt-toast--error { border-color: rgba(239,68,68,.6); }

@media (max-width: 1100px) {
  .bpt-guarantees, .bpt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpt-painters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpt-dash { grid-template-columns: 1fr; }
  .bpt-order-grid { grid-template-columns: 1fr; }
  .bpt-dash-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .bpt-dash-nav a { white-space: nowrap; }
  .bpt-dash-soon { display: none; }
}
@media (max-width: 760px) {
  .bpt-painters, .bpt-grid2 { grid-template-columns: 1fr; }
  .bpt-painters.is-list .bpt-pcard { display: flex; }
  .bpt-profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .bpt-profile-head .bpt-status { grid-column: 2; justify-self: start; }
  .bpt-day { grid-template-columns: 1fr; }
  .bpt-vtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpt-steplbl { display: none; }
  .bpt-rcard { grid-template-columns: auto minmax(0, 1fr); }
  .bpt-rcard-count { grid-column: 2; justify-self: start; }
  .bpt-proposal { grid-template-columns: auto minmax(0, 1fr); }
  .bpt-proposal-side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; }
  .bpt-view { margin-left: 0; }
}
@media (max-width: 760px) {
  .bpt-hero { flex-direction: column; align-items: flex-start; }
  .bpt-hero-text, .bpt-hero-art { max-width: 100%; }
  .bpt-hero-art { justify-content: flex-start; }
  .bpt-cols, .bpt-apply { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bpt { padding: 10px; }
  .bpt-guarantees, .bpt-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bpt-hero-cta .bpt-btn { flex: 1 1 100%; }
}
@media screen and (max-width: 680px) { .content-grid.bpt-grid-wrap { padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .bpt-btn, .bpt-tab { transition: none; } }

/* =====================================================================
   Habillage v2 (19/11) : profondeur, typo, icones. Memes classes, aucun
   changement de gabarit : cette couche se contente de surcharger.
   ===================================================================== */
.bpt {
  --bpt-card: #12153a; --bpt-card2: #191d4c; --bpt-line: rgba(160,150,255,.12);
  --bpt-glow: 0 18px 40px -18px rgba(108,60,255,.55);
  position: relative; isolation: isolate; gap: 20px; padding: 22px; font-size: 15px; line-height: 1.55;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(108,60,255,.18), transparent 60%),
    radial-gradient(700px 380px at 100% 10%, rgba(236,72,153,.10), transparent 60%),
    linear-gradient(180deg, #0d1033 0%, #090b26 100%);
  border: 1px solid rgba(160,150,255,.10); border-radius: 22px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.bpt-crumb { font-size: .95rem; letter-spacing: .01em; }
.bpt-crumb a { color: #c4b5fd; }
.bpt-page-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.01em; }
.bpt-tabs { gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--bpt-line); }
.bpt-tab { border: 0; background: transparent; padding: 8px 16px; font-size: .88rem; }
.bpt-tab:hover { background: rgba(255,255,255,.06); }
.bpt-tab.is-active { box-shadow: 0 6px 18px -6px rgba(168,85,247,.7); }

/* Boutons */
.bpt-btn { border-radius: 12px; padding: 12px 20px; font-size: .95rem; letter-spacing: .01em; }
.bpt-btn:hover { transform: translateY(-1px); }
.bpt-btn--primary { box-shadow: 0 10px 24px -10px rgba(140,70,255,.9); }
.bpt-btn--ghost { background: rgba(168,85,247,.08); }
.bpt-btn--sm { padding: 7px 12px; font-size: .8rem; border-radius: 10px; }

/* Cartes */
.bpt-card, .bpt-filters, .bpt-guarantee, .bpt-stat, .bpt-pcard, .bpt-rcard, .bpt-ocard, .bpt-dash-nav {
  background: linear-gradient(160deg, rgba(30,34,86,.85), rgba(16,19,54,.9));
  border: 1px solid var(--bpt-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.bpt-card { border-radius: 18px; padding: 20px 22px; }
.bpt-card h2 { font-size: 1.2rem; letter-spacing: -.01em; }
.bpt-card-head { margin-bottom: 14px; }
.bpt-card-head a { padding: 6px 12px; border-radius: 999px; background: rgba(168,85,247,.12); }
.bpt-card-head a:hover { background: rgba(168,85,247,.22); }

/* Etats vides */
.bpt-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; text-align: center; border: 1.5px dashed rgba(160,150,255,.2); border-radius: 14px; background: rgba(255,255,255,.02); }
.bpt-empty::before { content: '✦'; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; color: #c4b5fd; background: rgba(168,85,247,.15); }
.bpt-soon { padding: 40px 18px; }
.bpt-soon h2 { font-size: 1.3rem; }

/* Banniere */
.bpt-hero { min-height: 260px; padding: 36px 40px; border-radius: 22px; border-color: rgba(168,85,247,.45);
  background:
    radial-gradient(500px 260px at 85% 30%, rgba(236,72,153,.35), transparent 65%),
    radial-gradient(600px 300px at 70% 100%, rgba(59,130,246,.30), transparent 65%),
    linear-gradient(120deg, #1c1f63 0%, #2c1673 50%, #46107a 100%);
  box-shadow: var(--bpt-glow); }
.bpt-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%); }
.bpt-hero > * { position: relative; z-index: 1; }
.bpt-hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff 30%, #e9d5ff 70%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bpt-hero-sub { font-size: 1.08rem; max-width: 520px; color: #e6e9ff; }
.bpt-hero-cta { margin-top: 22px; gap: 12px; }
.bpt-hero-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 340px; }
.bpt-hero-art .bpt-chip { justify-content: center; padding: 16px 18px; font-size: 1.05rem; border-radius: 14px; border-width: 1.5px;
  background: color-mix(in srgb, var(--bpt-chip) 18%, rgba(10,12,40,.55)); backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px -12px var(--bpt-chip); transform: rotate(-2deg); }
.bpt-hero-art .bpt-chip:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.bpt-badge--new { box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

/* Garanties avec icones */
.bpt-guarantees, .bpt-stats { gap: 14px; }
.bpt-guarantee { position: relative; padding: 18px 18px 18px 72px; min-height: 84px; justify-content: center; border-radius: 16px; transition: transform .2s, border-color .2s; }
.bpt-guarantee:hover { transform: translateY(-2px); border-color: rgba(168,85,247,.45); }
.bpt-guarantee::before { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(108,60,255,.35), rgba(236,72,153,.25)); border: 1px solid rgba(168,85,247,.35); }
.bpt-guarantee:nth-child(1)::before { content: '🔁'; }
.bpt-guarantee:nth-child(2)::before { content: '🛡️'; }
.bpt-guarantee:nth-child(3)::before { content: '📡'; }
.bpt-guarantee:nth-child(4)::before { content: '⭐'; }
.bpt-guarantee strong { font-size: 1rem; }
.bpt-guarantee span { font-size: .84rem; }

/* Statistiques */
.bpt-stat { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 16px; gap: 6px; }
.bpt-stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.28), transparent 70%); }
.bpt-stat-val { font-size: 2.2rem; letter-spacing: -.02em; background: linear-gradient(90deg, #c4b5fd, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bpt-stat-lbl { font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; }

/* Comment ca marche : frise numerotee */
.bpt-steps { list-style: none; counter-reset: bptstep; padding: 0; margin-top: 4px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.bpt-steps li { counter-increment: bptstep; position: relative; padding: 52px 16px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--bpt-line); }
.bpt-steps li::before { content: counter(bptstep); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 900; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, var(--bpt-violet), var(--bpt-violet2)); box-shadow: 0 6px 16px -6px rgba(168,85,247,.9); }
.bpt-safety { border-color: rgba(245,197,66,.25); background: linear-gradient(160deg, rgba(60,45,20,.35), rgba(16,19,54,.9)); }
.bpt-safety ul { list-style: none; padding: 0; }
.bpt-safety li { position: relative; padding-left: 28px; }
.bpt-safety li::before { content: '🔒'; position: absolute; left: 0; top: 0; }

/* Formulaires et filtres */
.bpt .bpt-field input[type=text], .bpt .bpt-field textarea, .bpt .bpt-field input[type=file], .bpt .bpt-field select,
.bpt .bpt-search input, .bpt .bpt-select select, .bpt .bpt-select input, .bpt .bpt-chat-form input[type=text] {
  min-height: 46px; background: rgba(8,10,34,.7); border: 1px solid rgba(160,150,255,.22); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.bpt .bpt-field input:focus, .bpt .bpt-field textarea:focus, .bpt .bpt-field select:focus,
.bpt .bpt-search input:focus, .bpt .bpt-select select:focus, .bpt .bpt-select input:focus, .bpt .bpt-chat-form input:focus {
  outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.25); }
.bpt-filters { padding: 16px; gap: 12px; border-radius: 18px; }
.bpt-search { position: relative; }
.bpt .bpt-search input { padding-left: 42px; font-size: .95rem; }
.bpt-search::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .7; pointer-events: none; z-index: 1; }
.bpt-filter-row { gap: 10px; }
.bpt-view-btn { width: 44px; height: 44px; border-radius: 12px; }
.bpt-count { font-size: .9rem; }
.bpt-field > span, .bpt-field > legend { font-size: .9rem; }
.bpt-pick-item span { padding: 8px 12px; border-radius: 10px; font-size: .85rem; }
.bpt-pick-item:hover span { border-color: rgba(168,85,247,.45); color: #fff; }

/* Cartes Painters / demandes / commandes */
.bpt-painters { gap: 16px; }
.bpt-pcard { padding: 18px; border-radius: 18px; gap: 12px; }
.bpt-pcard:hover, .bpt-rcard:hover, .bpt-ocard:hover { border-color: rgba(168,85,247,.55); box-shadow: var(--bpt-glow); }
.bpt-avatar { border-radius: 16px; box-shadow: 0 0 0 2px rgba(168,85,247,.45); }
.bpt-pcard-foot { padding-top: 12px; border-top: 1px solid var(--bpt-line); }
.bpt-rcard, .bpt-ocard { border-radius: 16px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.bpt-rcard:hover, .bpt-ocard:hover { transform: translateY(-1px); }

/* Acces (connexion / Discord) */
.bpt-gate { padding: 22px 24px; border-radius: 18px; gap: 18px; box-shadow: var(--bpt-glow); }
.bpt-gate-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(88,101,242,.25); font-size: 1.6rem; flex: none; }
.bpt-gate h2 { font-size: 1.15rem; }

/* Devenir Painter */
.bpt-apply { gap: 20px; }
.bpt-apply-intro { border-color: rgba(59,130,246,.3); background: linear-gradient(160deg, rgba(30,50,110,.55), rgba(16,19,54,.92)); }
.bpt-apply .bpt-page-title { font-size: 1.7rem; }
.bpt-checklist { gap: 12px; }
.bpt-checklist li { padding-left: 34px; }
.bpt-checklist li::before { width: 24px; height: 24px; font-size: .75rem; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.bpt-apply-req ul { list-style: none; padding: 0; gap: 8px; }
.bpt-apply-req li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--bpt-line); color: #dfe4ff; }
.bpt-apply-req li::before { content: '•'; color: var(--bpt-violet2); font-weight: 900; }

@media (max-width: 760px) {
  .bpt { padding: 14px; gap: 14px; }
  .bpt-hero { padding: 24px 20px; min-height: 0; }
  .bpt-hero-art { display: flex; flex-wrap: wrap; max-width: 100%; }
  .bpt-hero-art .bpt-chip { padding: 8px 12px; font-size: .9rem; transform: none !important; }
  .bpt-guarantee { padding-left: 66px; }
  .bpt-stat-val { font-size: 1.8rem; }
  .bpt-tabs { border-radius: 16px; }
}
@media (max-width: 560px) {
  .bpt-guarantees { grid-template-columns: 1fr; }
  .bpt-guarantee { min-height: 0; padding: 14px 14px 14px 66px; }
}
@media (prefers-reduced-motion: reduce) { .bpt-guarantee, .bpt-rcard, .bpt-ocard, .bpt-pcard { transition: none; } }

/* Logos des bases (images des categories de la collection) */
.bpt-vimg { display: block; height: 22px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.bpt-chip--img { padding: 6px 10px; }
.bpt-hero-art .bpt-chip--img { padding: 14px 16px; }
.bpt-hero-art .bpt-vimg { height: 34px; }
.bpt-pick-item .bpt-vimg { height: 20px; }
.bpt-pick-item input:checked + span::before { content: none; }
.bpt-pick-item input:not(:checked) + span .bpt-vimg { opacity: .55; filter: grayscale(.6); }
.bpt-base .bpt-vimg { height: 26px; margin: 2px auto; }
.bpt-vtile { gap: 4px; }
.bpt-vtile .bpt-vimg { height: 30px; }
.bpt-vtile small { color: var(--bpt-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

/* Pas de banniere de page : on supprime le vide de 112 px laisse par le theme. */
.content-grid.bpt-grid-wrap { padding-top: 24px; }
@media screen and (max-width: 680px) { .content-grid.bpt-grid-wrap { padding-top: 12px; } }
