/* Onglet « Couleurs », barre basse, barre du haut — TÉLÉPHONE, coquille v2 (lot 1b, 20/10/2026). Voir public/js/couleurs-mobile.js.
   Tout est scopé #bmw-shell.bcm-on, classe posée par ce script UNIQUEMENT à 768 px ou moins et seulement sur la
   coquille v2 : le bureau et l'assistant v1 ne sont touchés par aucune de ces règles.
   Cibles tactiles : 44 px partout. Là où le dessin demande plus petit (onglets de famille 34 px, segment Uni / Dégradé),
   la pilule dessinée est un <span> et le bouton qui la porte fait 44 px. */

#bmw-shell.bcm-on { --bcm-encre: #111; --bcm-trait: #e5e7eb; --bcm-doux: #64748b; }

/* ═══ Barre du haut : ‹ Design · prix · Mon projet · ⋯ ═══ */
body:not(.bmw-entry) #bmw-shell.bcm-on .bmw-back-design { top: 8px; left: 8px; height: 44px; border-radius: 22px; }
#bmw-shell.bcm-on .bmw-more { top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 22px; line-height: 44px; }
#bmw-shell.bcm-on .bmw-price { top: 12px; left: auto; right: 112px; transform: none; }
#bmw-shell.bcm-on .bmw-tier-note { top: 58px; }
#bmw-shell.bcm-on .bmw-menu { top: 58px; right: 8px; }
#bmw-shell.bcm-on .bmw-menu .bmw-action { min-height: 44px; }
.bcm-projet { display: none; }
body:not(.bmw-entry):not(.bmw-placing) #bmw-shell.bcm-on .bcm-projet {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 8px; right: 60px; z-index: 6;
  width: 44px; height: 44px; padding: 0; border: none; border-radius: 22px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 5px rgba(0, 0, 0, .18); color: #111; cursor: pointer;
}
.bcm-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; background: var(--bease-accent, #E8001E); color: #fff;
  font: 700 11px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-align: center;
}
@media (max-width: 370px) { #bmw-shell.bcm-on .bmw-price { padding: 0 10px; font-size: 14px; } }

/* ═══ Barre basse : rangée d'actions (même hauteur que l'ancien CTA plein-largeur : 52 px) + pictogrammes ═══ */
#bmw-shell.bcm-on .bcm-actions {
  flex: 0 0 auto; display: flex; gap: 8px; height: 52px; box-sizing: border-box; padding: 4px 8px;
  border-bottom: 1px solid var(--bcm-trait); background: #fff;
}
#bmw-shell.bcm-on .bcm-actions .bmw-cta { flex: 1 1 auto; height: 44px; border: none; border-radius: 10px; }
.bcm-short {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 104px; height: 44px; padding: 0 12px; border: 1.5px solid #cbd5e1; border-radius: 10px;
  background: #fff; color: var(--bcm-encre); font-family: inherit; cursor: pointer; line-height: 1.1;
}
.bcm-short-l1 { font-size: 14px; font-weight: 800; }
.bcm-short-l2 { font-size: 10px; font-weight: 600; color: var(--bcm-doux); }
#bmw-shell.bcm-on .bmw-nav-ico { display: block; width: 22px; height: 22px; }
#bmw-shell.bcm-on .bmw-nav-ico svg { display: block; width: 22px; height: 22px; }

/* ═══ Onglet Couleurs ═══ */
#bmw-shell.bcm-on .bmw-panel[data-panel="colors"] > .bmw-panel-title { display: none; }
/* #bease-colors-active garde son display:none inline tant qu'aucun design n'est choisi ; montré, il devient colonne */
#bmw-shell.bcm-on #bease-colors-active { display: flex; flex-direction: column; }
#bmw-shell.bcm-on #bease-zone-selector { order: 1; }
#bmw-shell.bcm-on #bcm-ligne { order: 2; }
#bmw-shell.bcm-on #bcm-deg { order: 3; }
#bmw-shell.bcm-on #bease-colors-active > .bease-color-row { order: 3; }
#bmw-shell.bcm-on #bcm-pal { order: 4; }
#bmw-shell.bcm-on #bease-colors-active > [data-bg-panel="gradient"] { order: 5; }
#bmw-shell.bcm-on #bease-colors-active > .bease-club-couleurs { order: 6; }
#bmw-shell.bcm-on #bease-colors-active > #bease-my-palettes-wrap { order: 7; }
#bmw-shell.bcm-on #bease-colors-active > :not(#bease-zone-selector):not(#bcm-ligne):not(.bease-color-row):not(#bcm-pal):not(#bcm-deg):not([data-bg-panel="gradient"]):not(.bease-club-couleurs):not(#bease-my-palettes-wrap) { order: 9; }

/* doublons d'origine masqués (présents et vivants : ils portent les gestionnaires) */
#bmw-shell.bcm-on #bease-colors-active > div:has(> .bease-bg-btn),
#bmw-shell.bcm-on #bease-colors-active > [data-bg-panel="solid"],
#bmw-shell.bcm-on #bease-colors-active > .bmw-more-options,
#bmw-shell.bcm-on:not(.bcm-libre) #bease-colors-active > .bease-color-row,
#bmw-shell.bcm-on:not(.bcm-club) #bease-colors-active > .bease-club-couleurs,
#bmw-shell.bcm-on:not(.bcm-club) #bease-colors-active > #bease-my-palettes-wrap,
#bmw-shell.bcm-club #bease-zone-selector,
#bmw-shell.bcm-club #bcm-ligne,
#bmw-shell.bcm-club #bease-colors-active > .bease-color-row,
#bmw-shell.bcm-club #bease-colors-active > [data-bg-panel="gradient"],
#bmw-shell.bcm-club .bcm-pastilles,
#bmw-shell.bcm-on #bease-colors-active > [data-bg-panel="gradient"],   /* [dégradé 26/10] remplacé par #bcm-deg */
#bmw-shell.bcm-degrade .bcm-f[data-fam="perso"] { display: none !important; }
#bmw-shell.bcm-on [hidden] { display: none !important; }

/* 1. bande des zones (celle d'origine) : pilules de 44 px, pastille + libellé, zone active bordée 2 px foncé.
   Les !important battent le border-color posé en ligne par syncZoneUI (configurator.js) — couleurs seulement. */
#bmw-shell.bcm-on [data-panel-body="colors"] .bease-zone-selector { padding: 4px 0 6px; margin: 0; gap: 6px; }
#bmw-shell.bcm-on [data-panel-body="colors"] .bease-zone-btn {
  height: 44px; box-sizing: border-box; gap: 7px; padding: 0 14px 0 8px !important;
  border: 1px solid var(--bcm-trait) !important; border-radius: 22px; background: #fff; color: var(--bcm-encre);
  font-size: 13px; font-weight: 600;
}
#bmw-shell.bcm-on [data-panel-body="colors"] .bease-zone-btn.active { border: 2px solid var(--bcm-encre) !important; padding: 0 13px 0 7px !important; color: var(--bcm-encre); }
#bmw-shell.bcm-on [data-panel-body="colors"] .bease-zone-btn .bease-zone-preview { width: 24px; height: 24px; border-radius: 50%; }

/* 2. ligne : couleur actuelle (toucher = saisie libre) · Uni / Dégradé */
.bcm-ligne { display: flex; align-items: center; gap: 8px; height: 44px; margin: 2px 0 0; }
.bcm-actuelle {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0;
  border: 0; background: none; text-align: left; cursor: pointer; color: var(--bcm-encre); font-family: inherit;
}
.bcm-rond { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bcm-rond.is-clair { box-shadow: inset 0 0 0 1px #9ca3af; }
.bcm-textes { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.bcm-nom { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcm-hex { flex: none; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--bcm-doux); text-decoration: underline dotted; text-underline-offset: 3px; }
.bcm-seg { flex: none; display: flex; }
.bcm-seg button { min-width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.bcm-seg button span {
  display: block; padding: 0 10px; height: 28px; line-height: 26px; box-sizing: border-box;
  border: 1px solid var(--bcm-trait); background: #fff; color: var(--bcm-doux); font-size: 12px; font-weight: 600;
}
.bcm-seg button:first-child span { border-radius: 8px 0 0 8px; }
.bcm-seg button:last-child span { border-radius: 0 8px 8px 0; border-left: 0; }
.bcm-seg button.is-on span { background: var(--bcm-encre); border-color: var(--bcm-encre); color: #fff; }
/* saisie libre d'origine (sélecteur + code), montrée au toucher de la couleur actuelle */
#bmw-shell.bcm-libre #bease-colors-active > .bease-color-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
#bmw-shell.bcm-on #bease-colors-active > .bease-color-row input { height: 44px; box-sizing: border-box; }
#bmw-shell.bcm-on #bease-colors-active > .bease-color-row input[type="color"] { width: 44px; padding: 2px; }

/* 3. onglets des familles : pilules de 34 px dans des boutons de 44, défilement horizontal */
.bcm-familles { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bcm-familles::-webkit-scrollbar { display: none; }
.bcm-f { flex: none; min-width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.bcm-f span {
  display: block; height: 34px; line-height: 32px; padding: 0 12px; box-sizing: border-box; white-space: nowrap;
  border: 1px solid #d1d5db; border-radius: 17px; background: #fff; color: #374151; font-size: 13px; font-weight: 600;
}
.bcm-f.is-on span { background: var(--bcm-encre); border-color: var(--bcm-encre); color: #fff; }

/* 4. pastilles de la famille : 44 px, nom dessous en 10 px */
.bcm-pastilles { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bcm-pastilles::-webkit-scrollbar { display: none; }
.bcm-p { flex: none; width: 56px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit; }
.bcm-p-rond { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bcm-p.is-clair .bcm-p-rond { box-shadow: inset 0 0 0 1px #9ca3af; }
.bcm-p.is-on .bcm-p-rond { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bcm-encre); }
.bcm-p-nom { max-width: 56px; font-size: 10px; line-height: 12px; color: var(--bcm-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcm-p.is-on .bcm-p-nom { color: var(--bcm-encre); font-weight: 700; }

/* 5. onglet Club : « Couleurs du club » (une rangée par rôle, toutes les teintes au glissement) + « Mes palettes » */
#bmw-shell.bcm-club #bease-colors-active > .bease-club-couleurs { margin: 6px 0 4px; padding: 0; border: 0; background: none; }
#bmw-shell.bcm-club .bease-club-titre { display: none; }
#bmw-shell.bcm-club .bease-club-ligne { display: block; margin: 0 0 6px; }
#bmw-shell.bcm-club .bease-club-role { display: block; font-size: 12px; font-weight: 700; color: var(--bcm-doux); margin: 0 0 2px; }
#bmw-shell.bcm-club .bease-club-couleurs .bease-fam-nom,
#bmw-shell.bcm-club .bease-club-couleurs .bease-fam-onglets { display: none !important; }
#bmw-shell.bcm-club .bease-club-pastilles { display: flex !important; flex-wrap: nowrap !important; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px; scrollbar-width: none; }
#bmw-shell.bcm-club .bease-club-pastilles::-webkit-scrollbar { display: none; }
#bmw-shell.bcm-club .bease-club-couleurs .bease-club-pastilles .bease-fam-cache { display: block !important; }
#bmw-shell.bcm-club .bease-club-pastille { flex: none; width: 44px !important; height: 44px !important; border-radius: 50%; }
#bmw-shell.bcm-club #bease-my-palettes-wrap { margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--bcm-trait); }
#bmw-shell.bcm-club #bease-save-palette { min-height: 44px; padding: 0 14px !important; font-size: 13px !important; }
#bmw-shell.bcm-club #bease-my-palettes .bease-mypal-btn { height: 44px; }

/* Dégradé : le panneau d'origine (Début / Fin / Direction), cibles portées à 44 px */
#bmw-shell.bcm-on [data-bg-panel="gradient"] input[type="color"] { width: 44px !important; height: 44px !important; }
#bmw-shell.bcm-on [data-bg-panel="gradient"] input[type="text"] { width: 9ch !important; height: 44px; box-sizing: content-box; padding: 0 6px; font-size: 13px !important; }
#bmw-shell.bcm-on [data-bg-panel="gradient"] .bease-grad-dir { min-height: 44px; }

/* ═══ [dégradé 26/10, Eric] Dégradé : bandeau · Couleur 1 ⇄ Couleur 2 · directions (ligne qui défile) · Douce / Nette ═══ */
#bmw-shell.bcm-degrade .bcm-actuelle { display: none; }   /* couleur unie cachée : le bandeau la remplace dans la ligne */
.bcm-deg-apercu { display: none; }
#bmw-shell.bcm-degrade .bcm-deg-apercu { display: block; flex: 1 1 auto; min-width: 0; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bcm-deg { margin: 0 0 2px; }
.bcm-cases { display: flex; align-items: center; gap: 4px; }
.bcm-case {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 7px; height: 48px; box-sizing: border-box; padding: 0 8px;
  border: 1px solid var(--bcm-trait); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: var(--bcm-encre);
}
.bcm-case.is-on { border: 2px solid var(--bcm-encre); padding: 0 7px; }
.bcm-case-p { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bcm-case-p.is-clair { box-shadow: inset 0 0 0 1px #9ca3af; }
.bcm-case-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.bcm-case-l { font-size: 10px; color: var(--bcm-doux); }
.bcm-case-n { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcm-inverser { flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.bcm-inverser span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 auto; border: 1px solid var(--bcm-trait); border-radius: 50%; background: #fff; color: var(--bcm-encre); font-size: 16px; line-height: 30px; text-align: center; }
.bcm-dirs { display: flex; gap: 4px; margin: 6px 0 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bcm-dirs::-webkit-scrollbar { display: none; }
.bcm-dir { flex: 1 0 84px; display: flex; flex-direction: column; gap: 3px; padding: 3px; border: 1px solid var(--bcm-trait); border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; }
.bcm-dir.is-on { border: 2px solid var(--bcm-encre); padding: 2px; }
.bcm-dir-v { display: block; height: 26px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.bcm-dir-l { font-size: 11px; line-height: 13px; color: var(--bcm-encre); text-align: center; white-space: nowrap; }
.bcm-trans-ligne { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.bcm-sous { font-size: 13px; font-weight: 700; color: var(--bcm-encre); }
