/* Reset page pour plein écran */
body:has(#bcs-club-order-app) #main-container,
body:has(#bcs-club-order-app) .ct-header,
body:has(#bcs-club-order-app) .ct-footer,
body:has(#bcs-club-order-app) header,
body:has(#bcs-club-order-app) footer,
body:has(#bcs-club-order-app) .bh-badge-compact,
body:has(#bcs-club-order-app) .bh-badge-float { display: none !important; }

#bcs-club-order-app {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column;
    background: #f2f2f2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transform: none !important;
}

/* TOPBAR */
.bco-topbar {
    height: 52px; background: #fff;
    border-bottom: 1px solid #e8e8e8;
    display: flex; align-items: center;
    padding: 0 20px; gap: 14px; flex-shrink: 0;
    justify-content: flex-start;
}
.bco-back {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid #e8e8e8; display: flex;
    align-items: center; justify-content: center;
    cursor: pointer; background: #f8f8f8;
    text-decoration: none; color: inherit;
}
.bco-product-name { font-size: 14px; font-weight: 500; }
.bco-product-ref  { font-size: 12px; color: #888; }

/* VIEWS COLUMN */
.bco-views-col {
    background: #fff;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
}
.bco-vt {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    background: transparent;
    transition: all .15s;
}
.bco-vt:hover { background: #f8f8f8; }
.bco-vt.active {
    border-color: #111;
    background: #f5f5f5;
}
.bco-vt-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bco-vt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bco-vt span {
    font-size: 10px;
    color: #888;
}
.bco-vt.active span { color: #111; }

/* MAIN — grid 3 colonnes : views | canvas | right */
.bco-main {
    display: grid; grid-template-columns: 90px 1fr 320px;
    grid-template-rows: minmax(0, 1fr);
    flex: 1; overflow: hidden; min-height: 0;
    align-items: stretch;
}

/* CANVAS COL */
.bco-canvas-col {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px; gap: 14px;
}
.bco-tools {
    display: flex; gap: 8px;
}
.bco-tool {
    background: #fff; border: 1.5px solid #e8e8e8;
    border-radius: 12px; padding: 9px 16px;
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #888; cursor: pointer;
    transition: all .15s; outline: none;
}
.bco-tool:hover { border-color: #ccc; color: #333; }
.bco-tool.active { border-color: #111; color: #111; font-weight: 500; }
.bco-tool i { font-size: 17px; }

.bco-canvas-wrap {
    position: relative; display: flex;
    align-items: center; justify-content: center;
}
#bco-canvas { border-radius: 12px; display: block; background: #f5f5f5 !important; }
.canvas-container { background: #f5f5f5 !important; border-radius: 12px; }
.bco-zone-lbl {
    position: absolute; bottom: 8px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e8e8e8; border-radius: 20px;
    padding: 4px 12px; font-size: 11px; color: #888;
    display: flex; align-items: center; gap: 4px;
    pointer-events: none;
}

/* Dropdown police custom (compat Safari) — vivait dans l'ancienne
   #bco-text-toolbar (retirée étape i), sert maintenant la toolbar flottante */
.btt-fontdd {
    position: relative; min-width: 104px; max-width: 132px;
    border: 1px solid #e0e0e0; border-radius: 6px; background: #fff;
    color: #1a1a1a;   /* explicite : le .btt-fontdd vit aussi dans la toolbar sombre */
    padding: 4px 6px; font-size: 12px; cursor: pointer; user-select: none;
}
.btt-fontdd:focus { outline: 2px solid #FF6B35; outline-offset: 1px; }
.btt-fontdd-current { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.btt-fontdd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btt-fontdd-caret { color: #888; font-size: 9px; flex: 0 0 auto; }
.btt-fontdd-list {
    display: none; position: absolute; left: 0; top: 100%; margin: 4px 0 0;
    padding: 4px 0; list-style: none; min-width: 170px; max-height: 320px;
    overflow-y: auto; background: #fff; border: 1px solid #e0e0e0;
    border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 40;
}
.btt-fontdd.open .btt-fontdd-list { display: block; }
.btt-fontdd-opt { padding: 7px 12px; font-size: 16px; white-space: nowrap; line-height: 1.1; }
.btt-fontdd-opt:hover { background: #f3f3f3; }
.btt-fontdd-opt[aria-selected="true"] { background: #FF6B3522; }

/* (c) — dropdown taille custom : presets cliquables + saisie libre */
.btt-sizedd {
    position: relative; min-width: 56px; max-width: 80px;
    border: 1px solid #e0e0e0; border-radius: 6px; background: #fff;
    color: #1a1a1a;   /* explicite : .btt-sizedd vit dans la toolbar sombre */
    padding: 4px 6px; font-size: 12px; cursor: pointer; user-select: none;
}
.btt-sizedd:focus { outline: 2px solid #FF6B35; outline-offset: 1px; }
.btt-sizedd-current { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.btt-sizedd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btt-sizedd-caret { color: #888; font-size: 9px; flex: 0 0 auto; }
.btt-sizedd-pop {
    display: none; position: absolute; left: 0; top: 100%; margin: 4px 0 0;
    padding: 4px; min-width: 88px; background: #fff; border: 1px solid #e0e0e0;
    border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 40;
}
.btt-sizedd.open .btt-sizedd-pop { display: block; }
.btt-sizedd-input {
    width: 100%; box-sizing: border-box; margin: 0 0 4px;
    border: 1px solid #e0e0e0; border-radius: 6px; padding: 5px 6px;
    font-size: 13px; text-align: center; color: #1a1a1a;
}
.btt-sizedd-input:focus { outline: 2px solid #FF6B35; outline-offset: 0; }
.btt-sizedd-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.btt-sizedd-opt { padding: 6px 10px; font-size: 13px; text-align: center; border-radius: 4px; }
.btt-sizedd-opt:hover { background: #f3f3f3; }
.btt-sizedd-opt[aria-selected="true"] { background: #FF6B3522; }

/* ───────────────────────────────────────────────────────────────
   Toolbar flottante d'édition de texte (BCS 8.3.0)
   Squelette + style — contrôles ajoutés étapes (b)→(g).
   ─────────────────────────────────────────────────────────────── */
#bco-float-toolbar {
    position: absolute; z-index: 50; top: 0; left: 0;
    background: #1a1a1a; color: #fff;
    padding: 6px; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    font-size: 13px;
    /* visibility:hidden → hors flux tab quand inactive (important pendant a→g) */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s ease, visibility 0s linear .15s;   /* fade in 150ms */
}
#bco-float-toolbar.visible {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .15s ease;
}
#bco-float-toolbar:not(.visible) {
    transition: opacity .1s ease, visibility 0s linear .1s;     /* fade out 100ms */
}
.bco-ft-inner { display: flex; align-items: center; gap: 4px; }
.bco-ft-group { display: flex; align-items: center; gap: 4px; }
.bco-ft-divider { width: 1px; height: 20px; background: rgba(255,255,255,.15); margin: 0 2px; }
.bco-ft-btn {
    background: transparent; color: #fff; border: none; cursor: pointer;
    padding: 6px 10px; border-radius: 6px; font-size: 13px;
    display: flex; align-items: center; gap: 5px;
}
.bco-ft-btn:hover  { background: rgba(255,255,255,.1); }
.bco-ft-btn.active { background: rgba(255,255,255,.15); }
.bco-ft-placeholder { padding: 6px 10px; font-size: 12px; opacity: .6; }
.bco-ft-arrow {
    position: absolute; width: 12px; height: 12px;
    background: #1a1a1a; transform: rotate(45deg);
}
.bco-ft-arrow.bottom { bottom: -5px; }
.bco-ft-arrow.top    { top: -5px; }

/* (d) — groupe bascule Gras / Italique (deux boutons collés) */
.bco-ft-toggle-group { display: flex; }
.bco-ft-toggle {
    background: transparent; color: #fff; border: none; cursor: pointer;
    width: 28px; height: 28px; padding: 0; font-size: 14px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.bco-ft-toggle:first-child { border-radius: 6px 0 0 6px; }
.bco-ft-toggle:last-child  { border-radius: 0 6px 6px 0; }
.bco-ft-toggle + .bco-ft-toggle { border-left: 1px solid rgba(255,255,255,.12); }
.bco-ft-toggle:hover  { background: rgba(255,255,255,.08); }
.bco-ft-toggle.active { background: rgba(255,255,255,.15); }   /* état actif */
.bco-ft-toggle:focus-visible { outline: 2px solid #FF6B35; outline-offset: -2px; }
#bco-ft-bold   { font-weight: 700; }
#bco-ft-italic { font-style: italic; }

/* (e) — swatch couleur du texte → ouvre #bco-color-popover (8.4.4 : ex
   <input type=color>, le popup OS masquait le texte). background-color
   posé en inline par le picker = couleur courante du texte. */
.bco-ft-color {
    width: 22px; height: 22px; padding: 0; border-radius: 5px;
    border: 1px solid rgba(255,255,255,.2); cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    flex: 0 0 auto;
}
.bco-ft-color:hover { border-color: rgba(255,255,255,.5); }
.bco-ft-color:focus-visible { outline: 2px solid #FF6B35; outline-offset: 1px; }
.bco-ft-color[aria-expanded="true"] { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.bco-ft-color:disabled { cursor: not-allowed; }

/* (g) — bouton Supprimer : blanc au repos, rouge au survol. L'icône Tabler
   hérite de `color` → bascule rouge automatique sans règle dédiée. */
#bco-ft-delete { padding: 6px 8px; font-size: 15px; line-height: 1; }
#bco-ft-delete:hover { background: rgba(255,107,107,.15); color: #ff6b6b; }
#bco-ft-delete:focus-visible { outline: 2px solid #FF6B35; outline-offset: -2px; }

/* ───────────────────────────────────────────────────────────────
   (f) — Boutons « Effets » / « Contour » + popovers (BCS 8.3.1,
   popover Contour ajouté en 8.4.1)
   Popover blanc (contraste avec la toolbar sombre), ancré sous la
   toolbar. Gestion du débordement viewport (.bco-pop) :
     .above          → bascule au-dessus de la toolbar (déborde le bas)
     .bco-pop-scroll → plafonne la hauteur + scroll interne (déborde
                       encore, typiquement le haut en position .above)
   ─────────────────────────────────────────────────────────────── */
.bco-fx-caret { font-size: 9px; opacity: .7; margin-left: 1px; }

/* (8.4.1) base partagée — popover Effets ET popover Contour */
.bco-pop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 300px;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    z-index: 60;
    font-size: 13px;
    cursor: default;
}
.bco-pop.open  { display: block; }
.bco-pop.above { top: auto; bottom: calc(100% + 4px); }
/* (8.4.1) — débordement viewport résiduel : scroll interne, hauteur
   plafonnée (JS affine maxHeight à l'espace réellement disponible). */
.bco-pop.bco-pop-scroll {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.bco-fx-section { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.bco-fx-section:last-child { border-bottom: none; }
.bco-fx-section-head {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 20px;
}
.bco-fx-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: #999;
}

/* radios (Style, Sens du dégradé) */
.bco-fx-radios { display: flex; gap: 16px; margin-top: 10px; }
.bco-fx-radios-wrap { flex-wrap: wrap; gap: 8px 16px; }
.bco-fx-radio {
    display: flex; align-items: center; gap: 5px;
    cursor: pointer; font-size: 12px; color: #333;
}
.bco-fx-radio input { accent-color: #FF6B35; margin: 0; cursor: pointer; }

/* lignes de contrôle */
.bco-fx-controls { margin-top: 10px; }
.bco-fx-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bco-fx-controls > .bco-fx-row:first-child { margin-top: 0; }
.bco-fx-label { font-size: 12px; color: #555; flex: 0 0 76px; }
.bco-fx-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.bco-fx-toggle-row .bco-fx-label { flex: 1; color: #333; }
.bco-fx-sub {
    margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0;
}
.bco-fx-disabled { opacity: .4; pointer-events: none; }
.bco-fx-note { font-size: 11px; color: #aaa; margin-top: 10px; line-height: 1.35; }

/* swatch couleur */
.bco-fx-color {
    width: 32px; height: 24px; padding: 0; border: 1px solid #e0e0e0;
    border-radius: 5px; background: none; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.bco-fx-color::-webkit-color-swatch-wrapper { padding: 0; }
.bco-fx-color::-webkit-color-swatch { border: none; border-radius: 4px; }
.bco-fx-color::-moz-color-swatch { border: none; border-radius: 4px; }

/* ───────────────────────────────────────────────────────────────
   (8.4.4) — Picker couleur custom (#bco-color-popover)
   Plan Saturation/Valeur + slider Teinte + champ hex + presets.
   Remplace le <input type=color> natif (popup OS masquait le texte).
   ─────────────────────────────────────────────────────────────── */
.bco-cp-body { padding: 14px 16px; }
.bco-cp-sv {
    position: relative; width: 100%; height: 150px;
    border-radius: 6px; cursor: crosshair; touch-action: none;
    outline: none; box-sizing: border-box;
}
.bco-cp-sv-white, .bco-cp-sv-black {
    position: absolute; inset: 0; border-radius: 6px;
}
.bco-cp-sv-white { background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.bco-cp-sv-black { background: linear-gradient(to top,   #000, rgba(0,0,0,0)); }
.bco-cp-sv-thumb {
    position: absolute; width: 14px; height: 14px; box-sizing: border-box;
    border: 2px solid #fff; border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45);
    transform: translate(-50%, -50%); pointer-events: none;
}
.bco-cp-sv:focus-visible { outline: 2px solid #FF6B35; outline-offset: 2px; }
.bco-cp-hue {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    display: block; width: 100%; height: 12px; margin: 12px 0 0;
    border-radius: 6px; cursor: pointer; touch-action: none;
    background: linear-gradient(to right,
        #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%,
        #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}
.bco-cp-hue::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45); cursor: pointer;
}
.bco-cp-hue::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45); cursor: pointer;
}
.bco-cp-hue::-moz-range-track { background: transparent; }
.bco-cp-row { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.bco-cp-preview {
    width: 26px; height: 26px; border-radius: 5px; flex: 0 0 auto;
    border: 1px solid #e0e0e0; box-sizing: border-box;
}
.bco-cp-hash { font-size: 13px; color: #888; }
.bco-cp-hex {
    flex: 1; min-width: 0; box-sizing: border-box;
    font-size: 13px; letter-spacing: .5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    padding: 6px 8px; border: 1px solid #e0e0e0; border-radius: 6px;
    color: #1a1a1a; text-transform: uppercase;
}
.bco-cp-hex:focus-visible { outline: 2px solid #FF6B35; outline-offset: 0; }
.bco-cp-presets {
    display: grid; grid-template-columns: repeat(10, 1fr);
    gap: 5px; margin-top: 12px;
}
.bco-cp-preset {
    width: 100%; aspect-ratio: 1 / 1; padding: 0; border-radius: 4px;
    border: 1px solid rgba(0,0,0,.18); cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    transition: transform .08s ease;
}
.bco-cp-preset:hover { transform: scale(1.14); }
.bco-cp-preset:focus-visible { outline: 2px solid #FF6B35; outline-offset: 1px; }

/* slider */
.bco-fx-range { flex: 1; accent-color: #FF6B35; cursor: pointer; }
.bco-fx-val {
    font-size: 12px; color: #888; min-width: 28px; text-align: right;
}

/* interrupteur — même langage visuel que .bco-switch de la maquette */
.bco-fx-switch {
    position: relative; display: inline-block;
    width: 36px; height: 20px; flex: 0 0 auto;
}
.bco-fx-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.bco-fx-switch-track {
    position: absolute; inset: 0; background: #ddd;
    border-radius: 10px; transition: background .2s; cursor: pointer;
}
.bco-fx-switch-track::after {
    content: ''; position: absolute;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; top: 2px; left: 2px; transition: left .2s;
}
.bco-fx-switch input:checked + .bco-fx-switch-track { background: #FF6B35; }
.bco-fx-switch input:checked + .bco-fx-switch-track::after { left: 18px; }
.bco-fx-switch input:disabled + .bco-fx-switch-track {
    opacity: .4; cursor: not-allowed;
}
.bco-fx-switch input:focus-visible + .bco-fx-switch-track {
    outline: 2px solid #FF6B35; outline-offset: 2px;
}

/* RIGHT COL */
.bco-right {
    background: #fff; border-left: 1px solid #e8e8e8;
    display: flex; flex-direction: column; overflow: hidden;
    max-height: 100%;
}
/* La zone scrollable = tout sauf .bco-cart */
.bco-right > *:not(.bco-cart) {
    overflow-y: auto;
    min-height: 0;
}
.bco-section {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.bco-section-title {
    font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .05em;
    color: #aaa; margin-bottom: 10px;
}

/* (Panneau contextuel Phase 2a retiré — chantier Option B clos) */

/* Coloris */
.bco-colors { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bco-color {
    width: 26px; height: 26px; border-radius: 50%;
    cursor: pointer; border: 2.5px solid transparent;
    transition: transform .15s, border-color .15s;
    background-size: cover;
}
.bco-color:hover { transform: scale(1.1); }
.bco-color.active { border-color: #111; }
.bco-color-name { font-size: 12px; color: #888; margin-top: 6px; }

/* Panneau IA */
.bco-ai-tag {
    padding: 4px 10px; border: 1px solid #e0e0e0;
    border-radius: 20px; font-size: 11px; cursor: pointer;
    color: #666; background: #fff; transition: all .15s;
}
.bco-ai-tag.active {
    background: #FF6B35; color: #fff; border-color: #FF6B35;
}
.bco-ai-result {
    border: 1px solid #e8e8e8; border-radius: 10px;
    padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
    transition: border-color .15s;
}
.bco-ai-result:hover { border-color: #FF6B35; }
.bco-ai-result-text {
    font-size: 16px; font-weight: 700; margin-bottom: 4px;
}
.bco-ai-result-desc { font-size: 11px; color: #888; }
.bco-tc {
    width: 24px; height: 24px; border-radius: 50%;
    cursor: pointer; border: 2px solid transparent;
    transition: transform .15s;
}
.bco-tc:hover { transform: scale(1.1); }
.bco-tc.active { border-color: #111; }
.bco-tc.disabled { opacity: .2; cursor: not-allowed; }

/* Quantités */
.bco-qty-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.bco-qty-item {
    background: #f8f8f8; border-radius: 10px;
    padding: 8px 6px; text-align: center;
}
.bco-qty-size { font-size: 11px; color: #888; margin-bottom: 6px; font-weight: 500; }
.bco-qty-controls { display: flex; align-items: center; justify-content: center; gap: 4px; }
.bco-qty-btn {
    width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid #ddd; background: #fff;
    cursor: pointer; font-size: 14px; color: #333;
    display: flex; align-items: center; justify-content: center;
    transition: background .1s; line-height: 1;
}
.bco-qty-btn:hover { background: #f0f0f0; }
.bco-qty-val { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; color: #111; }
.bco-qty-val.active { color: #FF6B35; }
.bco-qty-total {
    margin-top: 8px; background: #f8f8f8; border-radius: 10px;
    padding: 8px 12px; display: flex; justify-content: space-between;
}
.bco-qty-total-lbl { font-size: 12px; color: #888; }
.bco-qty-total-val { font-size: 14px; font-weight: 500; }

/* Toggle noms */
.bco-toggle-row {
    display: flex; align-items: center;
    justify-content: space-between; cursor: pointer;
}
.bco-toggle-lbl { font-size: 13px; color: #111; }
.bco-toggle-sub { font-size: 11px; color: #aaa; margin-top: 2px; }
.bco-switch {
    width: 36px; height: 20px; border-radius: 10px;
    background: #ddd; position: relative; flex-shrink: 0;
    transition: background .2s; cursor: pointer;
}
.bco-switch.on { background: #FF6B35; }
.bco-switch-knob {
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; position: absolute;
    top: 2px; left: 2px; transition: left .2s;
}
.bco-switch.on .bco-switch-knob { left: 18px; }

/* Liste joueurs */
.bco-names { display: none; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.bco-names.visible { display: block; }
.bco-paste-btn {
    width: 100%; padding: 8px; border: 1.5px dashed #ddd;
    border-radius: 8px; background: transparent; font-size: 12px;
    cursor: pointer; color: #888; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.bco-paste-btn:hover { background: #f8f8f8; }
.bco-player {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; border-bottom: 1px solid #f5f5f5;
}
.bco-player:last-child { border-bottom: none; }
.bco-av {
    width: 22px; height: 22px; border-radius: 50%;
    background: #e8f0fb; color: #3366cc; font-size: 10px;
    font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.bco-p-name { font-size: 12px; flex: 1; }
.bco-p-num {
    font-size: 11px; background: #f5f5f5; color: #888;
    padding: 2px 7px; border-radius: 20px;
}

/* Cart */
.bco-cart {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding: 14px 16px;
    background: #fff;
    z-index: 10;
}
.bco-cart-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.bco-cart-total { font-size: 20px; font-weight: 500; }
.bco-cart-detail { font-size: 11px; color: #888; margin-top: 2px; }
.bco-cart-badge {
    background: #e8f7ee; color: #2a7a4b; font-size: 11px;
    padding: 4px 10px; border-radius: 20px; font-weight: 500;
}
.bco-order-btn {
    width: 100%; padding: 13px; border-radius: 12px;
    border: none; background: #FF6B35; color: #fff;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: opacity .15s;
}
.bco-order-btn:hover { opacity: .9; }
.bco-order-btn:disabled { opacity: .35; cursor: not-allowed; }

.bco-qty-input {
    width: 44px; text-align: center;
    border: 1px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; font-weight: 500; padding: 2px 4px;
    -moz-appearance: textfield;
}
.bco-qty-input::-webkit-outer-spin-button,
.bco-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Amélioration 4 — feedback stock (plafond par coloris × taille) */
.bco-qty-item { position: relative; }
.bco-qty-over .bco-qty-input {
    border-color: #e11d48 !important;
    color: #e11d48 !important;
}
.bco-qty-btn.bco-qty-blocked {
    background: #ddd; color: #999; cursor: not-allowed;
}
.bco-qty-tip {
    position: absolute; left: 0; right: 0; bottom: 100%;
    margin-bottom: 4px;
    background: #1A1D23; color: #fff;
    font-size: 10px; line-height: 1.3;
    padding: 4px 6px; border-radius: 4px;
    text-align: center; z-index: 30;
}

/* Complément 2 — badges de stock dispo par taille */
.bco-qty-stock {
    margin-top: 3px;
    min-height: 14px;
    font-size: 11px;
    line-height: 1.2;
}
.bco-qty-stock.lvl-mid { color: #999; }
.bco-qty-stock.lvl-low { color: #FF9F1C; font-weight: 600; }
.bco-qty-stock.lvl-out { color: #E63946; font-weight: 600; }
.bco-qty-input:disabled {
    background: #f3f3f3; color: #bbb; cursor: not-allowed;
}

/* Tablette (< 1024px) */
@media (max-width: 1024px) {
    .bco-main {
        grid-template-columns: 60px 1fr 280px;
    }
    .bco-right { width: 280px; }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    #bcs-club-order-app {
        overflow-y: auto;
    }
    .bco-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        min-height: unset;
        overflow: visible;
    }
    .bco-views-col {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 8px 0;
    }
    .bco-vt { width: 60px; }
    .bco-vt-thumb { width: 44px; height: 44px; }
    .bco-canvas-col {
        padding: 12px;
        min-height: 300px;
    }
    .bco-right {
        width: 100%;
        max-height: unset;
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
    .bco-tools {
        gap: 6px;
    }
    .bco-tool {
        padding: 7px 10px;
        font-size: 12px;
    }
    .bco-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    }
    .bco-right { padding-bottom: 80px; }
}

/* Feedback ajout joueur (8.6.0) — flash B.EASE sur la ligne nouvellement créée */
.bcs-player-just-added {
    animation: bcs-flash-row 1.5s ease-out;
    border-radius: 6px;
}
@keyframes bcs-flash-row {
    0%, 30% { background-color: #FF6B35; }
    100%    { background-color: transparent; }
}

/* ─── Courbure (8.9.0) — pictos Arc / Arc inversé dans les radios ────────── */
.bco-fx-curve-icon {
    font-size: 16px; line-height: 1; color: #FF6B35;
    margin-right: 2px; user-select: none;
}
