/* Espace professionnel (B2B) : compte pro, bon de commande, encart vitrine des fiches produits */
.b2b-page { --ink: #14171c; --mute: #5c6370; --line: #e6e8ec; --soft: #f4f5f7; --acc: var(--brand-accent, #14171c); max-width: 1200px; margin: 0 auto; padding: 40px 22px 90px; color: var(--ink); }
.b2b-head { max-width: 760px; margin-bottom: 30px; }
.b2b-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.b2b-head h1 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.b2b-lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--mute); }
.b2b-links { margin: 14px 0 0; }
.b2b-links a { color: #0a66d6; font-weight: 500; text-decoration: none; }
.b2b-flash { padding: 14px 18px; border-radius: 14px; background: #eaf6ee; color: #1e5b33; margin-bottom: 20px; }
.b2b-error { padding: 12px 16px; border-radius: 12px; background: #fdecec; color: #8a1f1f; margin-bottom: 16px; font-size: 14px; }
.b2b-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.b2b-status { display: flex; gap: 14px; align-items: flex-start; }
.b2b-status p { margin: 4px 0 0; color: var(--mute); }
.b2b-status.is-off { background: #fff7f5; }
.b2b-dot { width: 10px; height: 10px; border-radius: 50%; background: #e3a008; margin-top: 6px; flex: none; animation: b2bp 1.4s infinite; }
@keyframes b2bp { 0% { box-shadow: 0 0 0 0 rgba(227,160,8,.5); } 100% { box-shadow: 0 0 0 10px rgba(227,160,8,0); } }
.b2b-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 30px; align-items: start; }
.b2b-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: sticky; top: 100px; }
.b2b-perks li { padding: 18px 20px; border-radius: 18px; background: var(--soft); }
.b2b-perks strong { display: block; font-size: 16px; }
.b2b-perks span { display: block; font-size: 14px; color: var(--mute); margin-top: 3px; }
.b2b-form h2 { font-size: 18px; margin: 4px 0 14px; letter-spacing: -.01em; }
.b2b-form h2 + .b2b-fields { margin-bottom: 22px; }
.b2b-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b2b-fields .wide { grid-column: 1 / -1; }
.b2b-fields span, .b2b-summary label span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 5px; }
.b2b-fields input, .b2b-fields select, .b2b-fields textarea, .b2b-summary input, .b2b-summary textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #dcdfe5; border-radius: 10px; background: #fff; color: inherit; }
.b2b-fields input:focus, .b2b-fields select:focus, .b2b-fields textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,23,28,.08); }
.b2b-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); margin: 8px 0 18px; line-height: 1.45; }
.b2b-check input { margin-top: 3px; }
.b2b-btn-main { width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--acc); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.b2b-btn-main:hover { opacity: .88; }
.b2b-btn-main:disabled { opacity: .35; cursor: not-allowed; }
.b2b-muted { font-size: 12.5px; color: var(--mute); margin: 12px 0 0; line-height: 1.5; }

/* Bon de commande */
.b2b-order { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.b2b-lines { display: grid; gap: 10px; }
.b2b-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 130px; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.b2b-line.is-on { border-color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.b2b-line-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.b2b-line-img img { width: 100%; height: 100%; object-fit: contain; }
.b2b-cat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.b2b-line-info strong { display: block; font-size: 15.5px; margin: 2px 0; }
.b2b-sku { font-size: 12px; color: var(--mute); }
.b2b-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.b2b-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: #3a3f47; white-space: nowrap; }
.b2b-chip.is-active { background: var(--ink); color: #fff; }
.b2b-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.b2b-qty button { width: 38px; height: 42px; border: 0; background: var(--soft); font-size: 18px; cursor: pointer; color: var(--ink); }
.b2b-qty input { width: 58px; height: 42px; border: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.b2b-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.b2b-line-total { text-align: right; }
.b2b-line-total span { display: block; font-size: 12px; color: var(--mute); }
.b2b-line-total strong { font-size: 16px; }
.b2b-summary { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; }
.b2b-summary h2 { margin: 0 0 4px; font-size: 18px; }
.b2b-sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--mute); }
.b2b-sum-row.is-total { color: var(--ink); font-size: 20px; font-weight: 700; padding: 8px 0 6px; border-top: 1px solid var(--line); margin-bottom: 6px; }

/* Encart vitrine des fiches produits */
.b2b-box { margin: 18px 0 8px; padding: 20px; border-radius: 18px; background: #f4f5f7; }
.b2b-box .b2b-eyebrow { margin-bottom: 4px; }
.b2b-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.b2b-price small { font-size: 14px; font-weight: 500; color: #5c6370; }
.b2b-tiers { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.b2b-tiers th, .b2b-tiers td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eceef1; }
.b2b-tiers th { font-size: 11.5px; color: #5c6370; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.b2b-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b2b-btn { border-radius: 999px !important; }
.b2b-pro { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3e5e9; font-size: 14px; }
.b2b-pro span { color: #5c6370; }
.b2b-pro a { font-weight: 600; text-decoration: none; }
.b2b-pro .b2b-login { font-weight: 500; font-size: 13px; color: #5c6370; }

@media (max-width: 960px) {
    .b2b-grid, .b2b-order { grid-template-columns: 1fr; }
    .b2b-perks, .b2b-summary { position: static; }
    .b2b-line { grid-template-columns: 72px minmax(0, 1fr); }
    .b2b-qty { grid-column: 2; justify-self: start; }
    .b2b-line-total { grid-column: 2; text-align: left; }
    .b2b-fields { grid-template-columns: 1fr; }
    .b2b-page { padding: 28px 16px 70px; }
}

.b2b-min { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #8a4b00; font-size: 13px; font-weight: 600; }
.b2b-variants{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px;font-size:14px;}
.b2b-variants span{font-weight:700;margin-right:4px;}
.b2b-variants em{font-style:normal;font-weight:600;border:1.5px solid #d9dee7;border-radius:999px;padding:4px 12px;background:#fff;}
.b2b-variants small{color:#6c757d;margin-left:4px;}
