/* Panneau « Couleurs » — BUREAU seulement (lot 1 couleurs, 20/10/2026). Voir public/js/couleurs-bureau.js.
   Tout est scopé .bease-cb-on, classe posée par ce script UNIQUEMENT au-delà de 768 px et hors mobile :
   sur téléphone aucune de ces règles ne s'applique (rendu mobile inchangé). */

/* ── doublons d'origine masqués (toujours présents et vivants : ils portent les gestionnaires) ── */
.bease-cb-on #bease-colors-active > .bease-colors-hint,
.bease-cb-on #bease-colors-zone,
.bease-cb-on #bease-zone-selector,
.bease-cb-on #bease-colors-active > div:has(> .bease-bg-btn),
.bease-cb-on [data-bg-panel="solid"],
.bease-cb-on [data-bg-panel="gradient"],   /* [dégradé 26/10] remplacé par .bease-cb-deg (il poussait « Enregistrer ces couleurs » au milieu) */
.bease-cb-on #bease-colors-active > .bease-color-row { display: none !important; }
/* « Couleurs du club » (seul choix PAR RÔLE) : replié derrière le lien, jamais retiré */
.bease-cb-on:not(.bease-cb-club-ouvert) .bease-club-couleurs { display: none !important; }
.bease-cb-on .bease-club-ligne { flex-wrap: wrap; }
.bease-cb-on .bease-club-ligne > .bease-fam-nom,
.bease-cb-on .bease-club-ligne > .bease-fam-onglets { flex: 1 0 100%; }

/* ── blocs ── */
.bease-cb { --cb-p: 26px; --cb-encre: #111; --cb-trait: #e5e7eb; --cb-doux: #64748b; margin-bottom: 10px; }
.bease-cb [hidden] { display: none !important; }
.bease-cb-bloc { margin-bottom: 10px; }
.bease-cb-titre { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--cb-encre); }
.bease-cb-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bease-cb-tete .bease-cb-titre { margin: 0; }

/* 1. zones : grille de 3, retour à la ligne */
.bease-cb-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bease-cb-z { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 7px; border: 1px solid var(--cb-trait); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; line-height: 1.2; color: var(--cb-encre); text-align: left; }
.bease-cb-z:hover { border-color: #cbd5e1; }
.bease-cb-z.is-on { border: 2px solid var(--cb-encre); padding: 5px 6px; font-weight: 600; }
.bease-cb-z-p { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
/* [6.47.33 lot 2d] Nom complet (« Emmanchures »), sur deux lignes si besoin : plus de « … » (Eric 24/10). Un mot seul
   ne se coupe pas : la grille passe à des colonnes de 112 px au moins (3 si la place le permet, sinon 2). */
.bease-cb-zones { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.bease-cb-z-l { min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* 2. Uni / Dégradé en petit segment */
.bease-cb-seg { display: inline-flex; border: 1px solid var(--cb-trait); border-radius: 8px; overflow: hidden; }
.bease-cb-seg button { border: 0; background: #fff; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--cb-doux); cursor: pointer; }
.bease-cb-seg button + button { border-left: 1px solid var(--cb-trait); }
.bease-cb-seg button.is-on { background: var(--cb-encre); color: #fff; }

/* 3. couleur actuelle */
.bease-cb-actuelle { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bease-cb-grande { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bease-cb-grande.is-clair { box-shadow: inset 0 0 0 1px #9ca3af; }
.bease-cb-grande input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.bease-cb-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bease-cb-nom { font-size: 14px; color: var(--cb-encre); }
.bease-cb-sur { font-size: 12px; color: var(--cb-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* #id : bat les règles générales des champs du panneau (largeur 100 %) — 7 caractères toujours entiers */
#bease-configurator-app .bease-cb .bease-cb-hex { flex: none; box-sizing: content-box; width: 7.5ch; min-width: 7.5ch; max-width: 7.5ch; height: auto; margin: 0; padding: 5px 6px; border: 1px solid #cbd5e1; border-radius: 6px; font: 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; color: var(--cb-encre); background: #fff; }

/* 4. palette : une ligne par famille */
.bease-cb-fam { display: flex; align-items: center; gap: 6px; min-height: calc(var(--cb-p) + 4px); }
.bease-cb-fam-nom { flex: 0 0 92px; font-size: 12px; color: var(--cb-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bease-cb-pastilles { display: flex; flex-wrap: wrap; gap: 4px; }
.bease-cb-p { width: var(--cb-p); height: var(--cb-p); padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bease-cb-p.is-clair { box-shadow: inset 0 0 0 1px #9ca3af; }
.bease-cb-p:hover { transform: scale(1.08); }
.bease-cb-p.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cb-encre); }

.bease-cb-club-lien { margin-top: 6px; border: 0; background: none; padding: 0; font-size: 12px; color: var(--cb-doux); text-decoration: underline; cursor: pointer; }

@media (min-width: 1400px) { .bease-cb { --cb-p: 30px; } .bease-cb-fam-nom { flex-basis: 100px; } }

/* ═══ [dégradé 26/10, Eric] Mode Dégradé : bandeau, Couleur 1 ⇄ Couleur 2, Direction, Transition, puis la palette ═══ */
/* la palette reste ; la « couleur actuelle » unie et « Couleur personnalisée » (couleur unie) se retirent */
.bease-cb-on.bease-cb-degrade .bease-cb-actuelle,
.bease-cb-on.bease-cb-degrade .bpc-perso-btn,
.bease-cb-on.bease-cb-degrade .bpc-perso { display: none !important; }
.bease-cb-deg { margin-bottom: 10px; }
.bease-cb-deg-apercu { width: 100%; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); margin-bottom: 8px; }
.bease-cb-cases { display: flex; align-items: center; gap: 6px; }
.bease-cb-case { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--cb-trait); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: var(--cb-encre); }
.bease-cb-case:hover { border-color: #cbd5e1; }
.bease-cb-case.is-on { border: 2px solid var(--cb-encre); padding: 6px 7px; }
.bease-cb-case-p { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bease-cb-case-p.is-clair { box-shadow: inset 0 0 0 1px #9ca3af; }
.bease-cb-case-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bease-cb-case-l { font-size: 11px; color: var(--cb-doux); }
.bease-cb-case-n { font-size: 13px; overflow-wrap: anywhere; }
.bease-cb-inverser { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--cb-trait); border-radius: 50%; background: #fff; color: var(--cb-encre); font-size: 16px; line-height: 1; cursor: pointer; }
.bease-cb-inverser:hover { border-color: var(--cb-encre); }
.bease-cb-deg-aide { margin: 6px 0 8px; font-size: 12px; line-height: 1.35; color: var(--cb-doux); }
.bease-cb-sous { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--cb-encre); }
.bease-cb-dirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.bease-cb-dir { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 4px; border: 1px solid var(--cb-trait); border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; }
.bease-cb-dir:hover { border-color: #cbd5e1; }
.bease-cb-dir.is-on { border: 2px solid var(--cb-encre); padding: 3px; }
.bease-cb-dir-v { display: block; height: 34px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bease-cb-dir-l { font-size: 11px; line-height: 1.2; color: var(--cb-encre); text-align: center; }
.bease-cb-trans-tete { margin-bottom: 4px; }
