/*
 * Bowling Cartes Licenciés — interface 4.0
 * Front client, carte caisse plein écran et console de gestion.
 */

.bcl-wrap {
  --bcl-ink: #102532;
  --bcl-ink-strong: #06141d;
  --bcl-muted: #637480;
  --bcl-line: #dce6eb;
  --bcl-surface: #ffffff;
  --bcl-surface-soft: #f5f8fa;
  --bcl-navy: #071c27;
  --bcl-navy-2: #0b2f3b;
  --bcl-teal: #008a95;
  --bcl-teal-2: #00a9a6;
  --bcl-orange: #f47721;
  --bcl-red: #ec3d35;
  --bcl-gold: #ffbf46;
  --bcl-success: #17864b;
  --bcl-warning: #b96500;
  --bcl-danger: #c93434;
  --bcl-shadow-sm: 0 8px 28px rgba(8, 31, 43, .08);
  --bcl-shadow-md: 0 22px 65px rgba(8, 31, 43, .14);
  --bcl-shadow-lg: 0 38px 110px rgba(3, 18, 27, .28);
  position: relative;
  isolation: isolate;
  width: min(100%, 1440px);
  min-height: calc(100vh - 32px);
  margin: 0 auto 32px;
  padding: 24px;
  color: var(--bcl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.bcl-wrap,
.bcl-wrap * {
  box-sizing: border-box;
}

.bcl-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 3%, rgba(0, 169, 166, .19), transparent 29%),
    radial-gradient(circle at 92% 8%, rgba(244, 119, 33, .17), transparent 27%),
    radial-gradient(circle at 50% 100%, rgba(8, 62, 76, .28), transparent 36%),
    linear-gradient(145deg, #06151f 0%, #082935 44%, #06151f 100%);
}

.bcl-wrap::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

body:has(.bcl-wrap) {
  background: #071c27 !important;
}

body:has(.bcl-wrap) .entry-title,
body:has(.bcl-wrap) .wp-block-post-title {
  display: none !important;
}

body:has(.bcl-wrap) .entry-content,
body:has(.bcl-wrap) .wp-block-post-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
}

body:has(.bcl-wrap) footer,
body:has(.bcl-wrap) .wp-block-template-part:has(footer),
body:has(.bcl-wrap) .wp-site-blocks > footer,
body:has(.bcl-wrap) .site-footer,
body:has(.bcl-wrap) #colophon {
  display: none !important;
}

.bcl-wrap h1,
.bcl-wrap h2,
.bcl-wrap h3,
.bcl-wrap h4 {
  color: inherit;
  font-family: inherit;
  font-weight: 850;
  letter-spacing: -.035em;
}

.bcl-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
}

.bcl-wrap h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.1;
}

.bcl-wrap h3 {
  margin: 24px 0 11px;
  font-size: 19px;
  line-height: 1.2;
}

.bcl-wrap h4 {
  margin: 14px 0 9px;
  font-size: 16px;
}

.bcl-wrap p {
  margin: 0 0 14px;
}

.bcl-wrap a {
  color: var(--bcl-teal);
  font-weight: 750;
  text-underline-offset: 3px;
}

.bcl-wrap img {
  max-width: 100%;
}

/* Header / identité */
.bcl-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 150px;
  margin: 0 0 22px;
  padding: 25px 28px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(5, 24, 34, .96), rgba(8, 55, 66, .92)),
    radial-gradient(circle at 15% 20%, rgba(0, 169, 166, .35), transparent 42%);
  box-shadow: 0 25px 85px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}

.bcl-hero::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,119,33,.48), rgba(236,61,53,.10) 53%, transparent 70%);
}

.bcl-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: 7%;
  bottom: -155px;
  border-radius: 50%;
  border: 28px solid rgba(0,169,166,.14);
}

.bcl-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.bcl-brand-text {
  min-width: 0;
}

.bcl-brand-text p {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.72);
}

.bcl-logo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 15px 24px rgba(0,0,0,.35));
}

.bcl-login-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.25));
}

.bcl-mini-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  vertical-align: middle;
}

.bcl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  padding: 7px 11px;
  color: #c9fbf8;
  border: 1px solid rgba(0, 211, 204, .28);
  border-radius: 999px;
  background: rgba(0,169,166,.13);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bcl-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.bcl-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}

.bcl-user-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #42d989;
  box-shadow: 0 0 0 5px rgba(66,217,137,.13);
}

.bcl-user-chip strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

/* Cartes de contenu */
.bcl-card {
  margin: 18px 0;
  padding: 24px;
  color: var(--bcl-ink);
  border: 1px solid rgba(218, 229, 235, .94);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--bcl-shadow-sm);
}

.bcl-card > :last-child,
.bcl-client-section > :last-child {
  margin-bottom: 0;
}

.bcl-login-card {
  width: min(100%, 540px);
  margin: 28px auto;
  padding: 30px;
}

.bcl-login-card h2 {
  text-align: center;
}

.bcl-subtitle {
  margin-top: -6px !important;
  color: var(--bcl-muted);
  text-align: center;
}

.bcl-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Formulaires */
.bcl-field {
  margin: 15px 0;
}

.bcl-wrap label {
  color: var(--bcl-ink-strong);
  font-weight: 750;
}

.bcl-wrap input[type="text"],
.bcl-wrap input[type="email"],
.bcl-wrap input[type="password"],
.bcl-wrap input[type="search"],
.bcl-wrap input[type="tel"],
.bcl-wrap input[type="number"],
.bcl-wrap input[type="date"],
.bcl-wrap input:not([type]),
.bcl-wrap textarea,
.bcl-wrap select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 11px 13px;
  color: var(--bcl-ink-strong);
  border: 1px solid #cfdae0;
  border-radius: 13px;
  outline: 0;
  background: #fff;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.bcl-wrap textarea {
  min-height: 108px;
  resize: vertical;
}

.bcl-wrap input::placeholder,
.bcl-wrap textarea::placeholder {
  color: #94a4ad;
}

.bcl-wrap input:focus,
.bcl-wrap textarea:focus,
.bcl-wrap select:focus {
  border-color: var(--bcl-teal);
  box-shadow: 0 0 0 4px rgba(0,138,149,.12);
}

.bcl-wrap input[type="checkbox"],
.bcl-wrap input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--bcl-teal);
}

.bcl-wrap input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  color: var(--bcl-muted);
  border: 1px dashed #c9d7dd;
  border-radius: 13px;
  background: #f7fafb;
}

.bcl-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bcl-ink);
  font-weight: 650;
}

.bcl-checkbox input {
  flex: 0 0 auto;
  margin-top: 2px !important;
}

.bcl-two-cols,
.bcl-postal-grid,
.bcl-theme-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bcl-postal-grid {
  grid-template-columns: minmax(220px, 2fr) minmax(120px, .8fr) minmax(170px, 1.2fr);
}

.bcl-two-cols > p,
.bcl-postal-grid > p,
.bcl-theme-choice > p {
  margin: 0;
}

.bcl-color-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #cfdae0;
  border-radius: 13px;
  background: #fff;
}

.bcl-color-field input[type="color"] {
  width: 40px !important;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.bcl-license-help,
.bcl-mail-help {
  display: block;
  margin-top: 6px;
  color: var(--bcl-muted);
  font-size: 12px;
  font-weight: 650;
}

.bcl-license-check-message {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 800;
}

.bcl-license-check-message.is-ok { color: var(--bcl-success); }
.bcl-license-check-message.is-err { color: var(--bcl-danger); }
.bcl-license-check-message.is-wait { color: var(--bcl-warning); }

/* Boutons */
.bcl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  color: #17313d !important;
  border: 1px solid #cbd8de;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(8,31,43,.07);
  font: inherit;
  font-weight: 850;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.bcl-btn:hover {
  transform: translateY(-1px);
  border-color: #9eb3bc;
  background: #f8fafb;
  box-shadow: 0 12px 24px rgba(8,31,43,.11);
}

.bcl-btn:focus-visible {
  outline: 3px solid rgba(0,169,166,.28);
  outline-offset: 2px;
}

.bcl-primary {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--bcl-teal), #00717d) !important;
  box-shadow: 0 12px 27px rgba(0,138,149,.25) !important;
}

.bcl-primary:hover {
  background: linear-gradient(135deg, #00a0a9, #00717d) !important;
  box-shadow: 0 16px 34px rgba(0,138,149,.31) !important;
}

.bcl-btn-danger {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #d94a45, #b92f36) !important;
}

.bcl-btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

.bcl-btn-ghost:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Messages */
.bcl-ok,
.bcl-err,
.bcl-license-alert {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 15px;
  font-weight: 750;
}

.bcl-ok {
  color: #126d3d;
  border-color: #b7e5ca;
  background: #edf9f2;
}

.bcl-err {
  color: #a72b31;
  border-color: #efc0c2;
  background: #fff1f1;
}

.bcl-license-alert {
  color: #8d4e00;
  border-color: #f1d19b;
  background: #fff8e7;
}

.bcl-license-alert small {
  display: block;
  margin-top: 5px;
  color: inherit;
}

/* Tableaux */
.bcl-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
}

.bcl-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  color: var(--bcl-ink);
  border: 1px solid var(--bcl-line);
  border-radius: 18px;
  background: #fff;
}

.bcl-table th,
.bcl-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e7eef1;
}

.bcl-table th {
  color: #61737d;
  background: #f3f7f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bcl-table tr:last-child td {
  border-bottom: 0;
}

.bcl-table tbody tr {
  transition: background-color .14s ease;
}

.bcl-table tbody tr:hover {
  background: #f9fbfc;
}

.bcl-table td small,
.bcl-card small {
  color: var(--bcl-muted);
}

.bcl-empty-cell {
  color: #93a4ac;
  font-weight: 650;
}

/* Mot de passe */
.bcl-password-wrap {
  position: relative;
}

.bcl-password-wrap input {
  padding-right: 52px !important;
}

.bcl-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #536973;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-42%);
}

.bcl-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.bcl-eye-off,
.bcl-eye.is-visible .bcl-eye-on { display: none; }
.bcl-eye.is-visible .bcl-eye-off { display: block; }

.bcl-password-meter {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3eaed;
}

.bcl-password-meter span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: #d44545;
  transition: width .18s ease, background .18s ease;
}

.bcl-password-meter.is-mid span { width: 58%; background: #dc8a16; }
.bcl-password-meter.is-good span { width: 100%; background: #21975a; }
.bcl-password-help { margin-top: 7px; color: var(--bcl-muted); font-size: 12px; font-weight: 700; }
.bcl-ok-text { color: var(--bcl-success) !important; }
.bcl-bad-text { color: var(--bcl-danger) !important; }
.bcl-input-ok { border-color: #6bc08f !important; }
.bcl-input-bad { border-color: #dc6d72 !important; }

/* Espace client */
.bcl-client-app {
  position: relative;
}

.bcl-client-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 4px;
  color: #fff;
}

.bcl-client-top h2 {
  margin-bottom: 5px;
  color: #fff;
}

.bcl-client-top p {
  margin: 0;
  color: rgba(255,255,255,.68);
}

.bcl-client-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #e9ffff;
  border: 1px solid rgba(0,211,204,.25);
  border-radius: 999px;
  background: rgba(0,169,166,.15);
  font-weight: 850;
  white-space: nowrap;
}

.bcl-tabs {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.bcl-tab-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 21px;
  background: rgba(6, 28, 39, .78);
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
  backdrop-filter: blur(15px);
}

.bcl-tab-nav button {
  width: 100%;
  padding: 12px 13px;
  color: rgba(255,255,255,.74);
  border: 0;
  border-radius: 13px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}

.bcl-tab-nav button:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.bcl-tab-nav button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0,169,166,.96), rgba(0,113,125,.96));
  box-shadow: 0 10px 25px rgba(0,138,149,.26);
}

.bcl-tab-panel {
  display: none;
  min-width: 0;
}

.bcl-tab-panel.is-active {
  display: block;
  animation: bcl-panel-in .22s ease both;
}

@keyframes bcl-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Carte présentée en caisse */
.bcl-checkout-card-shell {
  margin: 0 0 22px;
}

.bcl-checkout-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  padding: 0 2px;
  color: #fff;
}

.bcl-checkout-card-heading h2 {
  margin: 0 0 5px;
  color: #fff;
}

.bcl-checkout-card-heading p {
  margin: 0;
  color: rgba(255,255,255,.67);
}

.bcl-present-card-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 31px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  perspective: 1200px;
}

.bcl-present-card-button[disabled] {
  cursor: default;
}

.bcl-present-card-button:focus-visible {
  outline: 4px solid rgba(0,211,204,.34);
  outline-offset: 5px;
}

.bcl-digital-card {
  --card-accent: #00b6b2;
  position: relative;
  aspect-ratio: 1.586 / 1;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  padding: clamp(20px, 3.4vw, 38px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 31px;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 229, 218, .24), transparent 34%),
    radial-gradient(circle at 92% 96%, rgba(244, 119, 33, .27), transparent 36%),
    linear-gradient(128deg, #061923 0%, #073846 48%, #06232e 100%);
  box-shadow: 0 28px 75px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10);
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease;
}

.bcl-present-card-button:not([disabled]):hover .bcl-digital-card {
  transform: translateY(-3px) rotateX(1deg);
  box-shadow: 0 34px 86px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.12);
}

.bcl-digital-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(112deg, transparent 0 66%, rgba(255,255,255,.07) 66% 68%, transparent 68% 74%, rgba(255,255,255,.04) 74% 76%, transparent 76%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.025) 58px 59px);
}

.bcl-digital-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -190px;
  top: -195px;
  border: 48px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.bcl-digital-card.is-invalid {
  --card-accent: #ef6a67;
  background:
    radial-gradient(circle at 8% 4%, rgba(239, 106, 103, .22), transparent 34%),
    radial-gradient(circle at 92% 96%, rgba(244, 119, 33, .18), transparent 36%),
    linear-gradient(128deg, #251013 0%, #4a1d20 50%, #261417 100%);
}

.bcl-digital-card-top,
.bcl-digital-card-main,
.bcl-digital-card-bottom {
  position: relative;
  z-index: 2;
}

.bcl-digital-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bcl-digital-card-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.bcl-digital-card-logo {
  flex: 0 0 auto;
  width: clamp(52px, 8vw, 78px);
  height: clamp(52px, 8vw, 78px);
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.32));
}

.bcl-digital-card-brand small {
  display: block;
  margin: 0 0 2px;
  color: rgba(255,255,255,.63);
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bcl-digital-card-brand strong {
  display: block;
  color: #fff;
  font-size: clamp(15px, 2.2vw, 23px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.bcl-digital-card-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.bcl-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 6px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  font-size: clamp(9px, 1.25vw, 12px);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.bcl-card-badge.is-licensed {
  color: #d8fffb;
  border-color: rgba(0,226,216,.35);
  background: rgba(0,169,166,.23);
}

.bcl-card-badge.is-unlicensed {
  color: #fff1d4;
  border-color: rgba(255,191,70,.34);
  background: rgba(255,191,70,.16);
}

.bcl-card-badge.is-active {
  color: #d8ffe9;
  border-color: rgba(66,217,137,.34);
  background: rgba(42,173,99,.19);
}

.bcl-card-badge.is-inactive {
  color: #ffe0e0;
  border-color: rgba(239,106,103,.38);
  background: rgba(201,52,52,.22);
}

.bcl-digital-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 47%;
  padding: clamp(18px, 4vw, 38px) 0 clamp(12px, 2vw, 18px);
}

.bcl-card-holder-label,
.bcl-card-balance-label,
.bcl-card-info span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: clamp(9px, 1.25vw, 12px);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bcl-card-holder-name {
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(25px, 5vw, 52px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcl-card-holder-type {
  margin-top: 7px;
  color: rgba(255,255,255,.72);
  font-size: clamp(11px, 1.6vw, 15px);
  font-weight: 750;
}

.bcl-card-balance {
  min-width: clamp(138px, 21vw, 230px);
  text-align: right;
}

.bcl-card-balance-number {
  display: block;
  margin: 1px 0 0;
  color: #fff;
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 950;
  line-height: .78;
  letter-spacing: -.085em;
  text-shadow: 0 8px 32px rgba(0,0,0,.24);
}

.bcl-card-balance-label {
  margin-top: 10px;
  color: #dcfffc;
  letter-spacing: .08em;
}

.bcl-digital-card-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.bcl-card-info {
  min-width: 0;
}

.bcl-card-info strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(11px, 1.7vw, 16px);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcl-card-info:last-child {
  text-align: right;
}

.bcl-card-tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 750;
}

.bcl-card-tap-hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.bcl-card-presenter {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,169,166,.19), transparent 42%),
    rgba(2, 13, 19, .97);
  backdrop-filter: blur(14px);
  transition: opacity .18s ease, visibility .18s ease;
}

.bcl-card-presenter[hidden] {
  display: none !important;
}

.bcl-card-presenter.is-open {
  opacity: 1;
  visibility: visible;
}

.bcl-card-presenter-stage {
  width: min(92vw, 1180px);
  max-height: 88vh;
}

.bcl-card-presenter .bcl-digital-card {
  width: 100%;
  min-height: 0;
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow: 0 45px 130px rgba(0,0,0,.60), inset 0 1px 0 rgba(255,255,255,.12);
}

.bcl-card-presenter-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: rgba(255,255,255,.10);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.bcl-card-presenter-note {
  position: fixed;
  left: 50%;
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 3;
  margin: 0;
  padding: 8px 13px;
  color: rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  font-size: 12px;
  font-weight: 750;
  transform: translateX(-50%);
}

html.bcl-presenter-open,
body.bcl-presenter-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* Ancienne balance et cartes secondaires */
.bcl-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
  padding: 22px;
  color: #fff;
  border-radius: 21px;
  background: linear-gradient(135deg, #087f89, #075461);
}

.bcl-balance strong {
  font-size: 62px;
  line-height: .9;
  letter-spacing: -.07em;
}

.bcl-balance span {
  color: #d9fffb;
  font-weight: 850;
  line-height: 1.1;
}

.bcl-member-home-intro,
.bcl-member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bcl-member-home-intro {
  margin-bottom: 16px;
  padding: 17px 19px;
  border: 1px solid #cde5e7;
  border-radius: 19px;
  background: #f2fbfb;
}

.bcl-member-home-intro p,
.bcl-member-card-head p { margin: 4px 0 0; color: var(--bcl-muted); }
.bcl-member-home-intro strong { font-size: 18px; }
.bcl-member-home-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #08777f;
  border: 1px solid #b8dfe1;
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.bcl-member-card-shell,
.bcl-member-renewal-card {
  border-top: 4px solid var(--bcl-teal);
}

.bcl-member-vip-stage {
  margin-top: 16px;
}

.bcl-member-vip-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  border-radius: 25px;
  background: linear-gradient(135deg, #07242f, #0b6570);
  box-shadow: 0 24px 60px rgba(8,31,43,.24);
}

.bcl-member-vip-top,
.bcl-member-vip-main,
.bcl-member-vip-footer {
  position: relative;
  z-index: 1;
}

.bcl-member-vip-top,
.bcl-member-vip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bcl-member-vip-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bcl-member-vip-logo { width: 64px; height: 64px; object-fit: contain; }
.bcl-member-vip-brand small { display: block; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .1em; }
.bcl-member-vip-brand strong { display: block; color: #fff; font-size: 19px; }
.bcl-member-vip-side { text-align: right; }
.bcl-member-vip-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fff; color: #075461; font-weight: 950; }
.bcl-member-vip-type, .bcl-member-vip-number { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 750; }
.bcl-member-vip-main { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; margin-top: 20px; }
.bcl-member-vip-photo { display: grid; place-items: center; width: 130px; height: 130px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.08); }
.bcl-member-vip-photo-img { width: 100%; height: 100%; object-fit: cover; }
.bcl-member-vip-photo-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 38px; font-weight: 950; }
.bcl-member-vip-label { color: rgba(255,255,255,.60); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.bcl-member-vip-name { margin: 3px 0 8px; color: #fff; font-size: 30px; font-weight: 950; letter-spacing: -.045em; }
.bcl-member-vip-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.bcl-member-vip-status.is-active { color: #d9ffe9; background: rgba(38,179,99,.22); }
.bcl-member-vip-status.is-inactive { color: #ffe1e1; background: rgba(211,67,67,.24); }
.bcl-member-vip-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.bcl-member-vip-item { padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); }
.bcl-member-vip-item span { display: block; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bcl-member-vip-item strong { color: #fff; }
.bcl-member-vip-footer { margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.78); }
.bcl-member-vip-footer em { color: #fff; font-style: normal; font-weight: 850; }

/* Profil, fédéral, mail, éditeur */
.bcl-federal-grid,
.bcl-federal-admin-grid,
.bcl-mail-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px;
}

.bcl-handicap-card,
.bcl-handicap-admin,
.bcl-mail-target {
  padding: 17px;
  border: 1px solid #d5e4e8;
  border-radius: 18px;
  background: #f7fbfc;
}

.bcl-handicap-card h3 { margin-top: 0; }
.bcl-handicap-value { color: var(--bcl-teal); font-size: clamp(48px, 8vw, 76px); font-weight: 950; line-height: .9; letter-spacing: -.075em; }
.bcl-handicap-admin { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bcl-handicap-admin span { display: block; color: var(--bcl-muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bcl-handicap-admin strong { color: var(--bcl-teal); font-size: 40px; line-height: 1; }

.bcl-mail-target label { display: flex; align-items: flex-start; gap: 10px; }
.bcl-mail-target input { flex: 0 0 auto; margin-top: 2px !important; }
.bcl-mail-preview { margin-top: 13px; padding: 14px; color: var(--bcl-muted); border: 1px solid #dbe5e9; border-radius: 15px; background: #f6f9fa; }
.bcl-mail-preview strong { color: var(--bcl-ink); }

.bcl-profile-photo-grid {
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 15px;
  align-items: center;
}

.bcl-profile-photo-thumb {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #d6e0e5;
  border-radius: 20px;
  background: #f2f5f7;
}

.bcl-profile-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bcl-profile-photo-empty { display: grid; place-items: center; width: 100%; height: 100%; padding: 8px; color: var(--bcl-muted); font-size: 12px; font-weight: 800; text-align: center; }

.bcl-rich-block,
.bcl-block-editor {
  margin: 12px 0;
  padding: 15px;
  border: 1px solid #dbe5e9;
  border-radius: 16px;
  background: #f8fafb;
}

.bcl-rich-toolbar,
.bcl-rich-actions,
.bcl-action-row,
.bcl-refresh-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bcl-rich-toolbar button {
  min-width: 36px;
  min-height: 34px;
  padding: 6px 9px;
  color: var(--bcl-ink);
  border: 1px solid #ccd8de;
  border-radius: 9px;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.bcl-rich-editor {
  min-height: 130px;
  margin-top: 8px;
  padding: 12px;
  overflow: auto;
  border: 1px solid #ccd8de;
  border-radius: 12px;
  background: #fff;
}

.bcl-rich-hidden { display: none !important; }
.bcl-rich-title { margin-bottom: 8px !important; }
.bcl-delete-block { margin-left: auto; }
.bcl-secure-order { margin-top: 10px; padding: 12px; border: 1px solid #c8e3e5; border-radius: 14px; background: #f1fbfb; }

/* Administration */
.bcl-context-admin {
  width: min(100%, 1580px);
  color: #17313d;
}

.bcl-context-admin::before {
  background:
    radial-gradient(circle at 8% 0%, rgba(0,169,166,.12), transparent 28%),
    radial-gradient(circle at 96% 4%, rgba(244,119,33,.10), transparent 25%),
    #edf3f6;
}

.bcl-context-admin::after {
  opacity: .25;
  background-image:
    linear-gradient(rgba(9,54,67,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,54,67,.04) 1px, transparent 1px);
}

body:has(.bcl-context-admin) {
  background: #edf3f6 !important;
}

.bcl-context-admin .bcl-hero {
  min-height: 126px;
  margin-bottom: 16px;
  padding: 20px 25px;
  border-radius: 25px;
}

.bcl-context-admin .bcl-logo {
  width: 78px;
  height: 78px;
}

.bcl-context-admin .bcl-brand-text h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.bcl-admin-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bcl-admin-side {
  position: sticky;
  top: 16px;
  min-height: calc(100vh - 36px);
  padding: 15px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,169,166,.24), transparent 30%),
    linear-gradient(180deg, #071c27, #082d39);
  box-shadow: 0 24px 70px rgba(7,28,39,.22);
}

.bcl-admin-side-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 7px 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.bcl-admin-side-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bcl-teal-2), var(--bcl-teal));
  box-shadow: 0 9px 22px rgba(0,169,166,.25);
}

.bcl-admin-side-mark svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.9; }
.bcl-admin-side-title { color: #fff; font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.bcl-admin-side-subtitle { color: rgba(255,255,255,.54); font-size: 11px; font-weight: 750; }

.bcl-admin-nav {
  display: grid;
  gap: 5px;
}

.bcl-admin-side a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 11px;
  color: rgba(255,255,255,.70) !important;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transition: color .14s ease, background .14s ease, transform .14s ease;
}

.bcl-admin-side a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.07);
  transform: translateX(2px);
}

.bcl-admin-side a.is-active {
  color: #fff !important;
  border-color: rgba(0,222,214,.20);
  background: linear-gradient(135deg, rgba(0,169,166,.30), rgba(0,113,125,.23));
  box-shadow: inset 3px 0 0 #25d4cd;
}

.bcl-admin-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
}

.bcl-admin-nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bcl-admin-side-version {
  margin-top: 18px;
  padding: 13px 9px 4px;
  color: rgba(255,255,255,.42);
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 11px;
  font-weight: 750;
}

.bcl-admin-main {
  min-width: 0;
}

.bcl-admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 4px 4px 0;
}

.bcl-admin-page-head small {
  display: block;
  color: #73858f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bcl-admin-page-head h2 {
  margin: 3px 0 0;
  color: #102b38;
  font-size: 28px;
}

.bcl-admin-mobile-toggle {
  display: none;
}

.bcl-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 14px;
}

.bcl-admin-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid #dce6eb;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8,31,43,.07);
}

.bcl-admin-stat::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: -32px;
  top: -36px;
  border-radius: 50%;
  background: rgba(0,169,166,.08);
}

.bcl-admin-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  color: #087f89;
  border-radius: 13px;
  background: #eaf8f8;
}

.bcl-admin-stat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bcl-admin-stat-copy { min-width: 0; }
.bcl-admin-stat-copy span { display: block; overflow: hidden; color: #6c7e88; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.bcl-admin-stat-copy strong { display: block; color: #0c2a37; font-size: clamp(25px, 3vw, 38px); line-height: 1; letter-spacing: -.055em; }
.bcl-admin-stat.is-alert .bcl-admin-stat-icon { color: #b96500; background: #fff4dc; }
.bcl-admin-stat.is-danger .bcl-admin-stat-icon { color: #bd3737; background: #fff0f0; }

.bcl-context-admin .bcl-card {
  margin: 14px 0;
  border-radius: 21px;
  box-shadow: 0 10px 32px rgba(8,31,43,.07);
}

.bcl-admin-toolbar,
.bcl-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.bcl-admin-toolbar h2,
.bcl-admin-toolbar h3,
.bcl-admin-header h2,
.bcl-admin-header h3 {
  margin: 0 0 5px;
}

.bcl-admin-toolbar p,
.bcl-admin-header p {
  margin: 0;
  color: var(--bcl-muted);
}

.bcl-admin-toolbar form {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.bcl-admin-toolbar form select,
.bcl-admin-toolbar form input {
  width: auto;
  min-width: 170px;
  margin-top: 0;
}

.bcl-admin-toolbar .bcl-search {
  min-width: 285px;
}

.bcl-client-list-card {
  padding: 22px;
}

.bcl-client-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 205px;
}

.bcl-client-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #08727a;
  border: 1px solid #c7e4e5;
  border-radius: 13px;
  background: linear-gradient(135deg, #e8f8f8, #f7fbfb);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.bcl-client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bcl-client-name { color: #102b38; font-weight: 900; }
.bcl-client-email { max-width: 210px; margin-top: 2px; overflow: hidden; color: #7a8b94; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.bcl-member-type-pill,
.bcl-balance-chip,
.bcl-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid #d3e0e5;
  border-radius: 999px;
  background: #f5f8fa;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.bcl-member-type-pill { color: #47616d; }
.bcl-balance-chip { color: #08737c; border-color: #bfe0e2; background: #edf9f9; }
.bcl-balance-chip strong { font-size: 15px; }
.bcl-status-active { color: #167547; border-color: #b9e2ca; background: #eff9f3; }
.bcl-status-blocked { color: #b12d34; border-color: #ebbec0; background: #fff1f1; }
.bcl-status-pending { color: #9a5c00; border-color: #efd39f; background: #fff8e8; }
.bcl-manage-btn { min-height: 38px; padding: 8px 12px; white-space: nowrap; }

.bcl-create-client {
  margin: 13px 0 18px;
  overflow: hidden;
  border: 1px solid #d7e4e8;
  border-radius: 17px;
  background: #f7fafb;
}

.bcl-create-client summary,
.bcl-client-list-card details > summary {
  padding: 14px 16px;
  color: #0c6f78;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.bcl-create-client summary::-webkit-details-marker,
.bcl-client-list-card details > summary::-webkit-details-marker { display: none; }
.bcl-create-client[open] summary { border-bottom: 1px solid #d7e4e8; }
.bcl-create-client form { padding: 16px; }

/* Modale client admin */
.bcl-modal-open { overflow: hidden !important; }

.bcl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 24px 110px;
  overflow: auto;
  background: rgba(4, 21, 29, .75);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

.bcl-modal.is-open { display: flex; }

.bcl-modal-panel {
  width: min(1080px, 100%);
  margin: 20px auto;
  padding: 24px;
  color: var(--bcl-ink);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 25px;
  background: #f3f7f9;
  box-shadow: 0 40px 110px rgba(0,0,0,.37);
}

.bcl-modal-head {
  position: sticky;
  top: -4px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -8px -8px 17px;
  padding: 13px 12px;
  border: 1px solid rgba(211,225,231,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(8,31,43,.08);
  backdrop-filter: blur(12px);
}

.bcl-modal-head h2 { margin-bottom: 4px; color: #102b38; }
.bcl-modal-head p { margin: 0; color: var(--bcl-muted); }
.bcl-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #49616c;
  border: 1px solid #d4e0e5;
  border-radius: 13px;
  background: #fff;
  font-size: 25px;
  cursor: pointer;
}

.bcl-admin-client-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bcl-admin-client-summary > div {
  padding: 13px 14px;
  border: 1px solid #dce6ea;
  border-radius: 16px;
  background: #fff;
}

.bcl-admin-client-summary span {
  display: block;
  color: #72848d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bcl-admin-client-summary strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #14313d;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcl-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px;
}

.bcl-client-grid-single { grid-template-columns: 1fr; }
.bcl-client-section-full { grid-column: 1 / -1; }

.bcl-client-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce6ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8,31,43,.045);
}

.bcl-client-section h3 {
  margin-top: 0;
  color: #14313d;
}

.bcl-danger-zone {
  border-color: #efc6c7;
  background: #fff5f5;
}

.bcl-danger-zone h3 { color: #a82e34; }

.bcl-purge-zone {
  padding: 20px;
  border: 1px solid #efc6c7;
  border-radius: 22px;
}

.bcl-purge-zone .bcl-table-wrap {
  margin: 16px 0 18px;
  border: 1px solid #edcfd0;
  background: #fff;
}

.bcl-purge-table { min-width: 760px; border: 0; border-radius: 0; }
.bcl-purge-table th { background: #fff0f0; color: #7f3438; }
.bcl-purge-table td:first-child { min-width: 155px; }
.bcl-purge-zone form {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #efc6c7;
}
.bcl-purge-zone form input[name="confirm_purge"] { max-width: 300px; }

.bcl-cashbox-card {
  color: #fff;
  border-color: rgba(0,138,149,.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(0,213,205,.25), transparent 34%),
    linear-gradient(135deg, #062733, #075a65);
}

.bcl-cashbox-card h3,
.bcl-cashbox-card p,
.bcl-cashbox-card label { color: #fff; }
.bcl-cashbox-card .bcl-status-badge { border-color: rgba(255,255,255,.18); }
.bcl-cashbox-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.bcl-cashbox-balance { display: flex; align-items: end; gap: 14px; }
.bcl-cashbox-balance strong { color: #fff; font-size: clamp(64px, 9vw, 92px); line-height: .85; letter-spacing: -.08em; }
.bcl-cashbox-balance span { color: #d8fffb; font-size: 20px; font-weight: 850; line-height: 1.05; }
.bcl-cashbox-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 16px 0; }
.bcl-cashbox-meta div { padding: 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.07); }
.bcl-cashbox-meta small { display: block; color: rgba(255,255,255,.59); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bcl-cashbox-meta strong { display: block; margin-top: 4px; color: #fff; }
.bcl-cashbox-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.bcl-cashbox-actions form { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 8px; align-items: center; margin: 0; }
.bcl-cashbox-actions input { margin: 0 !important; color: #fff !important; border-color: rgba(255,255,255,.18) !important; background: rgba(255,255,255,.10) !important; }
.bcl-cashbox-actions .bcl-btn { width: 100%; }

.bcl-action-row form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.bcl-action-row input[type="number"] {
  width: 90px;
  margin: 0;
}

.bcl-staff-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 13px;
  margin: 12px 0;
}

.bcl-staff-permissions label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dce6ea;
  border-radius: 13px;
  background: #f7fafb;
}

/* Thème clair / couleur personnalisée côté client */
.bcl-theme-light::before {
  background:
    radial-gradient(circle at 12% 3%, rgba(0,169,166,.12), transparent 29%),
    radial-gradient(circle at 92% 8%, rgba(244,119,33,.10), transparent 27%),
    #eef4f6;
}

body:has(.bcl-theme-light) { background: #eef4f6 !important; }
.bcl-theme-light .bcl-client-top,
.bcl-theme-light .bcl-checkout-card-heading { color: #102b38; }
.bcl-theme-light .bcl-client-top h2,
.bcl-theme-light .bcl-checkout-card-heading h2 { color: #102b38; }
.bcl-theme-light .bcl-client-top p,
.bcl-theme-light .bcl-checkout-card-heading p { color: #647781; }
.bcl-theme-light .bcl-client-pill { color: #08737c; border-color: #b9dfe1; background: #fff; }
.bcl-theme-light .bcl-tab-nav { border-color: #d5e2e7; background: rgba(255,255,255,.88); box-shadow: var(--bcl-shadow-sm); }
.bcl-theme-light .bcl-tab-nav button { color: #5d727d; }
.bcl-theme-light .bcl-tab-nav button:hover { color: #14313d; background: #f2f7f8; }
.bcl-theme-light .bcl-card-tap-hint { color: #5e737e; }

.bcl-bg-custom::before {
  background:
    radial-gradient(circle at 14% 5%, color-mix(in srgb, var(--bcl-user-bg) 70%, white 30%), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--bcl-user-bg) 78%, #06151f 22%), var(--bcl-user-bg));
}

/* Contraste automatique sur les couleurs personnalisées du portail client. */
.bcl-context-client.bcl-custom-bg-dark .bcl-client-top,
.bcl-context-client.bcl-custom-bg-dark .bcl-checkout-card-heading {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.24);
}

.bcl-context-client.bcl-custom-bg-dark .bcl-client-top h2,
.bcl-context-client.bcl-custom-bg-dark .bcl-checkout-card-heading h2 {
  color: #fff !important;
}

.bcl-context-client.bcl-custom-bg-dark .bcl-client-top p,
.bcl-context-client.bcl-custom-bg-dark .bcl-checkout-card-heading p {
  color: rgba(255,255,255,.88) !important;
}

.bcl-context-client.bcl-custom-bg-light .bcl-client-top,
.bcl-context-client.bcl-custom-bg-light .bcl-checkout-card-heading,
.bcl-context-client.bcl-custom-bg-light .bcl-client-top h2,
.bcl-context-client.bcl-custom-bg-light .bcl-checkout-card-heading h2 {
  color: #082b38 !important;
  text-shadow: none;
}

.bcl-context-client.bcl-custom-bg-light .bcl-client-top p,
.bcl-context-client.bcl-custom-bg-light .bcl-checkout-card-heading p {
  color: #294b59 !important;
}

.bcl-context-client .bcl-tab-nav button.is-active {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.bcl-context-client.bcl-theme-light .bcl-tab-nav button:not(.is-active) {
  color: #344f5d;
}

/* Les informations secondaires de la carte restent lisibles à distance. */
.bcl-digital-card-brand small,
.bcl-card-holder-label,
.bcl-card-info span {
  color: rgba(255,255,255,.78);
}

.bcl-card-holder-type { color: rgba(255,255,255,.90); }
.bcl-card-tap-hint { color: rgba(255,255,255,.88); }
.bcl-theme-light .bcl-card-tap-hint { color: #294b59; }

/* Responsive */
@media (max-width: 1120px) {
  .bcl-admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bcl-tabs { grid-template-columns: 190px minmax(0,1fr); }
  .bcl-admin-client-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .bcl-wrap { padding: 16px; }
  .bcl-hero { min-height: 0; padding: 22px; }
  .bcl-hero-actions { align-self: stretch; }
  .bcl-tabs { display: block; }
  .bcl-tab-nav {
    position: static;
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .bcl-tab-nav button { flex: 0 0 auto; width: auto; white-space: nowrap; }

  .bcl-admin-shell { display: block; }
  .bcl-admin-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: #082d39;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
  }
  .bcl-admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000001;
    width: min(84vw, 290px);
    min-height: 100vh;
    border-radius: 0 23px 23px 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .bcl-admin-shell.is-nav-open .bcl-admin-side { transform: translateX(0); }
  .bcl-admin-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000000;
    visibility: hidden;
    opacity: 0;
    background: rgba(2,15,21,.55);
    transition: opacity .2s ease, visibility .2s ease;
  }
  .bcl-admin-shell.is-nav-open::after { visibility: visible; opacity: 1; }
  .bcl-admin-page-head { padding: 0; }
  .bcl-admin-toolbar { align-items: flex-start; flex-direction: column; }
  .bcl-admin-toolbar form { width: 100%; justify-content: flex-start; }
  .bcl-admin-toolbar form select,
  .bcl-admin-toolbar form input,
  .bcl-admin-toolbar .bcl-search { flex: 1 1 190px; min-width: 0; }
}

@media (max-width: 760px) {
  .bcl-wrap { padding: 12px; }
  .bcl-hero { align-items: flex-start; flex-direction: column; border-radius: 23px; }
  .bcl-brand { align-items: flex-start; }
  .bcl-logo { width: 72px; height: 72px; }
  .bcl-brand-text h1 { font-size: 35px; }
  .bcl-hero-actions { width: 100%; justify-content: flex-start; }
  .bcl-user-chip { max-width: calc(100% - 120px); }
  .bcl-card { padding: 18px; border-radius: 20px; }
  .bcl-login-card { padding: 22px 18px; }
  .bcl-client-top,
  .bcl-checkout-card-heading,
  .bcl-member-home-intro,
  .bcl-member-card-head { align-items: flex-start; flex-direction: column; }
  .bcl-client-pill { margin-top: 4px; }
  .bcl-two-cols,
  .bcl-postal-grid,
  .bcl-theme-choice,
  .bcl-federal-grid,
  .bcl-federal-admin-grid,
  .bcl-mail-targets,
  .bcl-client-grid,
  .bcl-staff-permissions { grid-template-columns: 1fr; }
  .bcl-client-section-full { grid-column: auto; }
  .bcl-digital-card { min-height: 0; border-radius: 23px; }
  .bcl-digital-card-main { gap: 12px; }
  .bcl-digital-card-bottom { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bcl-digital-card-bottom .bcl-card-info:last-child { grid-column: 1 / -1; text-align: left; }
  .bcl-card-holder-name { font-size: clamp(22px, 7vw, 38px); }
  .bcl-card-balance-number { font-size: clamp(54px, 18vw, 88px); }
  .bcl-member-vip-top,
  .bcl-member-vip-footer { align-items: flex-start; flex-direction: column; }
  .bcl-member-vip-side { text-align: left; }
  .bcl-member-vip-main,
  .bcl-member-vip-grid,
  .bcl-profile-photo-grid { grid-template-columns: 1fr; }
  .bcl-member-vip-photo,
  .bcl-profile-photo-thumb { margin: 0 auto; }
  .bcl-admin-stats { grid-template-columns: 1fr 1fr; }
  .bcl-admin-client-summary { grid-template-columns: 1fr 1fr; }
  .bcl-modal { padding: 10px 10px 100px; }
  .bcl-modal-panel { margin: 0; padding: 13px; border-radius: 19px; }
  .bcl-modal-head { top: -3px; margin: -3px -3px 13px; }
  .bcl-cashbox-meta,
  .bcl-cashbox-actions { grid-template-columns: 1fr; }
  .bcl-cashbox-actions form { grid-template-columns: 90px minmax(0,1fr); }

  .bcl-client-list-card .bcl-table-clean {
    display: block;
    border: 0;
    background: transparent;
  }
  .bcl-client-list-card .bcl-table-clean thead { display: none; }
  .bcl-client-list-card .bcl-table-clean tbody,
  .bcl-client-list-card .bcl-table-clean tr,
  .bcl-client-list-card .bcl-table-clean td { display: block; width: 100%; }
  .bcl-client-list-card .bcl-table-clean tr {
    margin-bottom: 11px;
    overflow: hidden;
    border: 1px solid #dce6ea;
    border-radius: 16px;
    background: #fff;
  }
  .bcl-client-list-card .bcl-table-clean td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border-bottom: 1px solid #e7eef1;
  }
  .bcl-client-list-card .bcl-table-clean td:first-child { display: block; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(2)::before { content: "Type"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(3)::before { content: "Téléphone"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(4)::before { content: "Licence"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(5)::before { content: "Solde"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(6)::before { content: "Expiration"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(7)::before { content: "Statut"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(n+2)::before { color: #72848d; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .bcl-client-list-card .bcl-table-clean td:last-child { display: block; border-bottom: 0; }
  .bcl-client-list-card .bcl-table-clean .bcl-manage-btn { width: 100%; }
}

@media (max-width: 520px) {
  .bcl-wrap h1 { font-size: 32px; }
  .bcl-brand { gap: 11px; }
  .bcl-logo { width: 61px; height: 61px; }
  .bcl-kicker { font-size: 9px; }
  .bcl-links { display: grid; }
  .bcl-admin-stats,
  .bcl-admin-client-summary { grid-template-columns: 1fr; }
  .bcl-digital-card { padding: 16px; }
  .bcl-digital-card-logo { width: 44px; height: 44px; }
  .bcl-digital-card-brand strong { font-size: 14px; }
  .bcl-card-badge { min-height: 24px; padding: 4px 7px; font-size: 8px; }
  .bcl-digital-card-main { padding: 16px 0 10px; }
  .bcl-card-holder-name { font-size: 25px; }
  .bcl-card-holder-type { font-size: 10px; }
  .bcl-card-balance { min-width: 92px; }
  .bcl-card-balance-number { font-size: 56px; }
  .bcl-card-holder-label,
  .bcl-card-balance-label,
  .bcl-card-info span { font-size: 7.5px; }
  .bcl-card-info strong { font-size: 10px; }
  .bcl-card-tap-hint { font-size: 12px; }
  .bcl-cashbox-actions form { grid-template-columns: 1fr; }
}

/* En portrait, la carte plein écran pivote visuellement si le verrouillage paysage n'est pas pris en charge. */
@media (orientation: portrait) and (max-width: 900px) {
  .bcl-card-presenter-stage {
    width: min(calc(100vh - 32px), 1180px);
    max-width: none;
    transform: rotate(90deg);
  }
  .bcl-card-presenter-note::before {
    content: "Tournez votre téléphone · ";
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .bcl-card-presenter { padding: 12px 70px 12px 18px; }
  .bcl-card-presenter-stage { width: min(88vw, 1100px); }
  .bcl-card-presenter-close { top: 10px; right: 10px; }
  .bcl-card-presenter-note { bottom: 6px; }
}

/* Parcours d'inscription guidé 4.5.1. */
.bcl-registration-card {
  width: min(100%, 780px);
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}

.bcl-registration-header {
  max-width: 590px;
  margin: 0 auto 28px;
  text-align: center;
}

.bcl-registration-header h2 { margin: 5px 0 8px; }
.bcl-registration-header p { margin: 0; color: var(--bcl-muted); }
.bcl-registration-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  color: #06656d;
  border-radius: 999px;
  background: #e5f7f6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bcl-registration-card form { min-width: 0; }
.bcl-registration-card p { min-width: 0; }
.bcl-registration-card label { display: block; }
.bcl-registration-card [hidden] { display: none !important; }

.bcl-registration-choice {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.bcl-registration-choice legend,
.bcl-registration-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  color: var(--bcl-ink-strong);
  font-size: 17px;
  font-weight: 850;
}

.bcl-registration-choice legend > span,
.bcl-registration-section-title > span {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bcl-teal), var(--bcl-teal-2));
  box-shadow: 0 6px 15px rgba(0,138,149,.2);
  font-size: 13px;
}

.bcl-registration-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bcl-registration-option {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 104px;
  padding: 17px;
  border: 1px solid #d7e3e7;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.bcl-registration-option:hover {
  border-color: rgba(0,138,149,.55);
  box-shadow: 0 9px 24px rgba(8,31,43,.08);
  transform: translateY(-1px);
}

.bcl-registration-option:has(input:checked) {
  border-color: var(--bcl-teal);
  background: linear-gradient(145deg, #f1fbfa, #fff);
  box-shadow: 0 0 0 3px rgba(0,138,149,.11);
}

.bcl-registration-option input { flex: 0 0 auto; margin-top: 3px !important; }
.bcl-registration-option span { min-width: 0; }
.bcl-registration-option strong { display: block; color: var(--bcl-ink-strong); line-height: 1.25; }
.bcl-registration-option small { display: block; margin-top: 7px; color: var(--bcl-muted); font-weight: 500; line-height: 1.4; }

.bcl-registration-section {
  min-width: 0;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #e0e9ed;
  border-radius: 18px;
  background: #f8fafb;
}

.bcl-registration-section-title { align-items: flex-start; }
.bcl-registration-section-title h3 { margin: 1px 0 2px; font-size: 17px; letter-spacing: -.02em; }
.bcl-registration-section-title p { margin: 0; color: var(--bcl-muted); font-size: 13px; font-weight: 500; }
.bcl-license-first { border-color: rgba(0,138,149,.25); background: linear-gradient(145deg, #effafa, #f9fcfc); }
.bcl-license-auto-field { max-width: 500px; margin-left: 41px; }
.bcl-license-auto-field > input { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.bcl-license-auto-field > input:disabled { opacity: .75; cursor: wait; }
.bcl-license-check-message { min-height: 23px; }
.bcl-license-check-message.is-wait::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bcl-license-spin .7s linear infinite;
}
@keyframes bcl-license-spin { to { transform: rotate(360deg); } }

.bcl-registration-card .bcl-two-cols,
.bcl-registration-card .bcl-postal-grid { gap: 14px; }
.bcl-registration-card .bcl-postal-grid {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  margin-top: 14px;
}
.bcl-registration-card .bcl-postal-grid > p:first-child { grid-column: 1 / -1; }
.bcl-registration-card .bcl-postal-grid input,
.bcl-registration-card .bcl-two-cols input { min-width: 0; }
.bcl-registration-contact-grid > p,
.bcl-registration-name-grid > p { margin: 0; }
.bcl-registration-full { grid-column: 1 / -1; }
.bcl-registration-password-grid { align-items: start; }
.bcl-registration-password-grid .bcl-field { margin: 0; }
.bcl-registration-member-type { display: none !important; }
.bcl-registration-terms { background: #fff; }
.bcl-registration-terms details { margin-top: 12px; }

.bcl-registration-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}
.bcl-registration-actions .bcl-btn { min-width: 210px; }
.bcl-registration-actions a { font-weight: 750; }

[data-bcl-federal-club-field] input[readonly],
[data-bcl-registration-form] input[name="first_name"][readonly],
[data-bcl-registration-form] input[name="last_name"][readonly] {
  background: #eef8f7;
  color: #073d43;
  font-weight: 700;
}

@media (max-width: 620px) {
  .bcl-registration-card { padding: 20px 16px; }
  .bcl-registration-choice-grid,
  .bcl-registration-card .bcl-two-cols,
  .bcl-registration-card .bcl-postal-grid { grid-template-columns: 1fr; }
  .bcl-registration-card .bcl-postal-grid > p:first-child,
  .bcl-registration-full { grid-column: auto; }
  .bcl-registration-option { min-height: 0; }
  .bcl-registration-section { padding: 17px 14px; }
  .bcl-license-auto-field { margin-left: 0; }
  .bcl-registration-actions { align-items: stretch; flex-direction: column; text-align: center; }
  .bcl-registration-actions .bcl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bcl-wrap *,
  .bcl-wrap *::before,
  .bcl-wrap *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Compléments de la carte joueur v4 */
.bcl-card-person {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  min-width: 0;
}

.bcl-card-person-copy {
  min-width: 0;
}

.bcl-card-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(52px, 8vw, 82px);
  height: clamp(52px, 8vw, 82px);
  overflow: hidden;
  color: #d9fffb;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: clamp(15px, 2vw, 24px);
  background: rgba(255,255,255,.09);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 950;
  box-shadow: 0 13px 28px rgba(0,0,0,.18);
}

.bcl-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bcl-membership-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 11px;
  margin-top: 17px;
}

.bcl-membership-summary > div {
  padding: 13px 14px;
  border: 1px solid #d6e5e8;
  border-radius: 15px;
  background: #f5fafb;
}

.bcl-membership-summary span {
  display: block;
  color: #71848d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bcl-membership-summary strong {
  display: block;
  margin-top: 4px;
  color: #14313d;
}

@media (max-width: 760px) {
  .bcl-membership-summary { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .bcl-card-avatar {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 16px;
  }
  .bcl-card-person { gap: 8px; }
}

/* Utilitaires des écrans de réglage et d'édition */
.bcl-block-list {
  display: grid;
  gap: 11px;
  margin: 12px 0;
}

.bcl-add-block,
.bcl-refresh-arrow {
  white-space: nowrap;
}

.bcl-divers-client-card,
.bcl-mail-editor,
.bcl-profile-terms-card {
  border-top: 4px solid #d5e5e8;
}

.bcl-client-filter,
.bcl-license-input,
.bcl-member-type-select,
.bcl-staff-role-select {
  max-width: 100%;
}

.bcl-password-group {
  margin: 15px 0;
}

/* Ajustements de présentation plein écran et navigation mobile */
.bcl-card-presenter-stage {
  width: min(92vw, calc(88vh * 1.586), 1180px);
}

.bcl-admin-mobile-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bcl-section-eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 6px 9px;
  color: #08737c;
  border: 1px solid #bfe0e2;
  border-radius: 999px;
  background: #edf9f9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (orientation: portrait) and (max-width: 900px) {
  .bcl-card-presenter-stage {
    width: min(calc(100vh - 32px), calc((100vw - 32px) * 1.586), 1180px);
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .bcl-card-presenter-stage {
    width: min(84vw, calc(88vh * 1.586), 1100px);
  }
}

@media (max-width: 900px) {
  .bcl-admin-side {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 760px) {
  .bcl-table:not(.bcl-table-clean) {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ========================================================================== 
   Correctif responsive 4.0.1
   - neutralise les largeurs contraintes des thèmes WordPress ;
   - adapte réellement la console à la largeur de l'écran ;
   - conserve les modales et la carte caisse en position fixed plein écran.
   ========================================================================== */

.bcl-wrap {
  --bcl-viewport-gutter: 16px;
  --bcl-layout-max: 1440px;
  --bcl-layout-half: 720px;
  width: min(calc(100vw - var(--bcl-viewport-gutter) - var(--bcl-viewport-gutter)), var(--bcl-layout-max)) !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 32px !important;
  margin-left: calc(50% - min(calc(50vw - var(--bcl-viewport-gutter)), var(--bcl-layout-half))) !important;
  clear: both;
}

.bcl-context-admin {
  --bcl-viewport-gutter: 12px;
  --bcl-layout-max: 1580px;
  --bcl-layout-half: 790px;
  padding: 18px;
}

html.bcl-has-plugin,
body.bcl-has-plugin {
  overflow-x: clip;
}

body.bcl-has-plugin .bcl-plugin-host {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  overflow: visible !important;
  float: none !important;
}

body.bcl-has-plugin .entry-title,
body.bcl-has-plugin .wp-block-post-title {
  display: none !important;
}

body.bcl-has-plugin .entry-content,
body.bcl-has-plugin .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.bcl-has-plugin footer,
body.bcl-has-plugin .wp-site-blocks > footer,
body.bcl-has-plugin .site-footer,
body.bcl-has-plugin #colophon {
  display: none !important;
}

body.bcl-has-plugin:not(.bcl-has-admin) {
  background: #071c27 !important;
}

body.bcl-has-admin {
  background: #edf3f6 !important;
}

/* En-tête de la console : compact sur ordinateur, empilé sur mobile. */
.bcl-context-admin .bcl-hero {
  min-height: 112px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border-radius: 23px;
}

.bcl-context-admin .bcl-logo {
  width: 72px;
  height: 72px;
}

.bcl-context-admin .bcl-brand-text h1 {
  max-width: 100%;
  font-size: clamp(31px, 3.25vw, 45px);
  line-height: 1;
}

.bcl-context-admin .bcl-brand-text p {
  max-width: 650px;
}

/* Structure principale de l'administration. */
.bcl-admin-shell {
  grid-template-columns: clamp(220px, 17vw, 245px) minmax(0, 1fr);
  gap: 16px;
}

.bcl-admin-side {
  top: 12px;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 21px;
}

.bcl-admin-main {
  width: 100%;
  min-width: 0;
}

.bcl-admin-page-head {
  min-height: 54px;
  margin-bottom: 12px;
}

.bcl-admin-page-head h2 {
  font-size: clamp(25px, 2.2vw, 30px);
}

/* Les indicateurs gardent toujours leur texte et leur valeur visibles. */
.bcl-admin-stats {
  gap: 12px;
}

.bcl-admin-stat {
  min-height: 88px;
  padding: 14px;
}

.bcl-admin-stat-copy span {
  min-height: 2.3em;
  overflow: visible;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.bcl-admin-stat-copy strong {
  margin-top: 3px;
  font-size: clamp(27px, 3vw, 38px);
}

/* Barre de titre et filtres. */
.bcl-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(440px, 1.42fr);
  align-items: end;
  gap: 18px;
}

.bcl-admin-toolbar > * {
  min-width: 0;
}

.bcl-admin-toolbar form {
  display: grid;
  grid-template-columns: minmax(145px, .72fr) minmax(225px, 1.35fr) auto;
  width: 100%;
  align-items: end;
  justify-content: stretch;
  gap: 8px;
}

.bcl-admin-toolbar form select,
.bcl-admin-toolbar form input,
.bcl-admin-toolbar .bcl-search {
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.bcl-admin-toolbar form .bcl-btn {
  min-width: 116px;
  white-space: nowrap;
}

.bcl-client-list-card {
  min-width: 0;
  padding: 20px;
  container-name: bcl-client-list;
  container-type: inline-size;
}

.bcl-client-list-card .bcl-table-wrap {
  max-width: 100%;
}

.bcl-client-list-card .bcl-table-clean th,
.bcl-client-list-card .bcl-table-clean td {
  padding: 12px 11px;
}

/* Sur une zone de contenu compacte, on empile la barre d'outils et on retire
   deux colonnes secondaires. Les informations restent disponibles dans la fiche. */
@container bcl-client-list (max-width: 1020px) {
  .bcl-admin-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 13px;
  }

  .bcl-admin-toolbar form {
    max-width: none;
  }

  .bcl-client-list-card .bcl-table-clean th:nth-child(3),
  .bcl-client-list-card .bcl-table-clean td:nth-child(3),
  .bcl-client-list-card .bcl-table-clean th:nth-child(4),
  .bcl-client-list-card .bcl-table-clean td:nth-child(4),
  .bcl-client-list-card .bcl-table-clean th:nth-child(6),
  .bcl-client-list-card .bcl-table-clean td:nth-child(6) {
    display: none;
  }
}

/* Ordinateurs portables et tablettes : la navigation devient un tiroir. */
@media (max-width: 1120px) {
  .bcl-context-admin {
    --bcl-viewport-gutter: 8px;
    padding: 14px;
  }

  .bcl-admin-shell {
    display: block;
  }

  .bcl-admin-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: #082d39;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
  }

  .bcl-admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000001;
    width: min(86vw, 300px);
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 22px 22px 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  .bcl-admin-shell.is-nav-open .bcl-admin-side {
    transform: translateX(0);
  }

  .bcl-admin-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000000;
    visibility: hidden;
    opacity: 0;
    background: rgba(2, 15, 21, .58);
    transition: opacity .2s ease, visibility .2s ease;
  }

  .bcl-admin-shell.is-nav-open::after {
    visibility: visible;
    opacity: 1;
  }

  .bcl-admin-page-head {
    padding: 0;
  }
}

/* Sur les écrans intermédiaires, les filtres occupent toute une ligne. */
@media (max-width: 1120px) {
  .bcl-admin-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 13px;
  }
}

/* Mode tablette/téléphone : le tableau devient une suite de fiches. */
@media (max-width: 820px) {
  .bcl-wrap {
    --bcl-viewport-gutter: 7px;
    padding: 12px;
    margin-bottom: 18px !important;
  }

  .bcl-context-admin {
    padding: 10px;
  }

  .bcl-context-admin .bcl-hero {
    padding: 16px;
  }

  .bcl-admin-toolbar form {
    grid-template-columns: minmax(135px, .75fr) minmax(190px, 1.4fr) auto;
  }

  .bcl-client-list-card .bcl-table-wrap {
    overflow: visible;
  }

  .bcl-client-list-card .bcl-table-clean {
    display: block;
    border: 0;
    background: transparent;
  }

  .bcl-client-list-card .bcl-table-clean thead {
    display: none;
  }

  .bcl-client-list-card .bcl-table-clean tbody,
  .bcl-client-list-card .bcl-table-clean tr,
  .bcl-client-list-card .bcl-table-clean td {
    display: block;
    width: 100%;
  }

  .bcl-client-list-card .bcl-table-clean tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #dce6ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(8, 31, 43, .05);
  }

  .bcl-client-list-card .bcl-table-clean td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border-bottom: 1px solid #e7eef1;
  }

  .bcl-client-list-card .bcl-table-clean td:first-child {
    display: block !important;
  }

  .bcl-client-list-card .bcl-table-clean td:nth-child(2)::before { content: "Type"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(3)::before { content: "Téléphone"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(4)::before { content: "Licence"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(5)::before { content: "Solde"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(6)::before { content: "Expiration"; }
  .bcl-client-list-card .bcl-table-clean td:nth-child(7)::before { content: "Statut"; }

  .bcl-client-list-card .bcl-table-clean td:nth-child(n+2)::before {
    flex: 0 0 auto;
    color: #72848d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .bcl-client-list-card .bcl-table-clean td:last-child {
    display: block !important;
    border-bottom: 0;
  }

  .bcl-client-list-card .bcl-table-clean .bcl-manage-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .bcl-context-admin .bcl-hero {
    gap: 14px;
    border-radius: 20px;
  }

  .bcl-context-admin .bcl-logo {
    width: 62px;
    height: 62px;
  }

  .bcl-context-admin .bcl-brand-text h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .bcl-admin-toolbar form {
    grid-template-columns: 1fr;
  }

  .bcl-admin-toolbar form .bcl-btn {
    width: 100%;
  }

  .bcl-client-list-card {
    padding: 14px;
  }

  .bcl-admin-page-head {
    align-items: flex-end;
  }
}

@media (max-width: 520px) {
  .bcl-wrap {
    --bcl-viewport-gutter: 4px;
    padding: 8px;
  }

  .bcl-context-admin .bcl-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .bcl-context-admin .bcl-user-chip {
    width: 100%;
    max-width: none;
  }

  .bcl-context-admin .bcl-btn-ghost {
    width: 100%;
  }

  .bcl-admin-page-head h2 {
    font-size: 24px;
  }

  .bcl-admin-mobile-toggle {
    padding-inline: 11px;
  }
}

/* Carte client : dimensions pilotées par la largeur réelle de la carte, et non
   par celle de la fenêtre. Cela évite tout chevauchement entre le nom et le solde. */
.bcl-present-card-button,
.bcl-card-presenter-stage {
  container-name: bcl-card-frame;
  container-type: inline-size;
}

.bcl-card-person-copy {
  min-width: 0;
  overflow: hidden;
}

.bcl-card-holder-name {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

.bcl-card-balance {
  min-width: 0;
}

@container bcl-card-frame (max-width: 900px) {
  .bcl-digital-card {
    padding: clamp(20px, 3.4cqw, 28px);
  }

  .bcl-digital-card-logo {
    width: clamp(52px, 8cqw, 66px);
    height: clamp(52px, 8cqw, 66px);
  }

  .bcl-digital-card-main {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 18%);
    gap: 14px;
    padding: clamp(18px, 3.2cqw, 27px) 0 clamp(11px, 2cqw, 16px);
  }

  .bcl-card-avatar {
    width: clamp(52px, 8cqw, 66px);
    height: clamp(52px, 8cqw, 66px);
    font-size: clamp(18px, 3cqw, 25px);
  }

  .bcl-card-holder-name {
    font-size: clamp(25px, 4.6cqw, 38px);
    line-height: .96;
    letter-spacing: -.045em;
  }

  .bcl-card-holder-type {
    font-size: clamp(10px, 1.55cqw, 13px);
  }

  .bcl-card-balance-number {
    font-size: clamp(66px, 11.5cqw, 96px);
  }
}

@container bcl-card-frame (max-width: 520px) {
  .bcl-digital-card {
    min-height: 220px;
    padding: 14px;
    border-radius: 20px;
    aspect-ratio: 1.5 / 1;
  }

  .bcl-digital-card-top {
    gap: 7px;
  }

  .bcl-digital-card-brand {
    gap: 7px;
  }

  .bcl-digital-card-logo {
    width: 38px;
    height: 38px;
  }

  .bcl-digital-card-brand small {
    margin-bottom: 1px;
    font-size: 6.5px;
    letter-spacing: .12em;
  }

  .bcl-digital-card-brand strong {
    max-width: 92px;
    font-size: 11.5px;
    line-height: 1.02;
  }

  .bcl-digital-card-badges {
    max-width: 49%;
    gap: 4px;
  }

  .bcl-card-badge {
    min-height: 20px;
    padding: 3px 6px;
    font-size: 7px;
    letter-spacing: .055em;
  }

  .bcl-digital-card-main {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 7px;
    min-height: 0;
    padding: 11px 0 8px;
  }

  .bcl-card-person {
    gap: 6px;
  }

  .bcl-card-avatar {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 13px;
  }

  .bcl-card-holder-label,
  .bcl-card-balance-label,
  .bcl-card-info span {
    font-size: 6.5px;
    letter-spacing: .1em;
  }

  .bcl-card-holder-name {
    margin-top: 2px;
    font-size: clamp(17px, 5.4cqw, 21px);
    line-height: .94;
    letter-spacing: -.04em;
  }

  .bcl-card-holder-type {
    margin-top: 3px;
    font-size: 8px;
  }

  .bcl-card-balance-number {
    font-size: 48px;
    line-height: .78;
  }

  .bcl-card-balance-label {
    margin-top: 7px;
    line-height: 1.1;
  }

  .bcl-digital-card-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding-top: 8px;
  }

  .bcl-digital-card-bottom .bcl-card-info:last-child {
    grid-column: auto;
    text-align: right;
  }

  .bcl-card-info strong {
    margin-top: 2px;
    font-size: 8.5px;
    line-height: 1.12;
    white-space: normal;
  }
}

@container bcl-card-frame (max-width: 340px) {
  .bcl-digital-card {
    min-height: 214px;
    padding: 12px;
  }

  .bcl-digital-card-logo {
    width: 33px;
    height: 33px;
  }

  .bcl-digital-card-brand strong {
    max-width: 78px;
    font-size: 10px;
  }

  .bcl-card-badge {
    padding-inline: 5px;
    font-size: 6.2px;
  }

  .bcl-digital-card-main {
    grid-template-columns: minmax(0, 1fr) 55px;
    gap: 5px;
  }

  .bcl-card-avatar {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .bcl-card-holder-name {
    font-size: 16px;
  }

  .bcl-card-balance-number {
    font-size: 43px;
  }

  .bcl-card-info strong {
    font-size: 7.5px;
  }
}

/* Sur téléphone, la navigation client devient une grille lisible au lieu de
   masquer les derniers onglets hors écran. */
@media (max-width: 520px) {
  .bcl-tab-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .bcl-tab-nav button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}

.bcl-card-holder-name,
.bcl-card-holder-type {
  display: block;
}

/* Centrage fiable de la carte pivotée lorsque le navigateur refuse le verrouillage
   d'orientation. Sans ce positionnement, certains thèmes/navigateurs alignent
   l'élément sur le bord et en coupent une partie. */
@media (orientation: portrait) and (max-width: 900px) {
  .bcl-card-presenter-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }
}

@media (min-width: 821px) {
  @container bcl-client-list (max-width: 1020px) {
    .bcl-manage-btn {
      padding-inline: 10px;
    }
  }
}

/* ========================================================================== 
   Application autonome et responsive 4.1.0
   Le portail ne dépend plus de la largeur du thème WordPress.
   ========================================================================== */

html.bcl-app-document,
html.bcl-standalone-app,
body.bcl-standalone-app {
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body.bcl-standalone-app {
  min-width: 320px;
  background: #edf3f6 !important;
}

body.bcl-standalone-app .bcl-app-root,
body.bcl-standalone-app #bcl-app-root {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Le mode autonome annule le déport utilisé uniquement comme solution de
   secours lorsque le shortcode est placé dans une page de thème classique. */
body.bcl-standalone-app .bcl-wrap {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 1600px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: clamp(12px, 1.35vw, 22px) !important;
  transform: none !important;
}

body.bcl-standalone-app .bcl-context-admin {
  max-width: 1640px !important;
}

/* Secours pour les installations où un constructeur de pages empêche le
   remplacement du gabarit : le shortcode sort malgré tout de son conteneur. */
body.bcl-has-plugin:not(.bcl-standalone-app) .bcl-wrap {
  position: relative !important;
  left: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(10px, 1.4vw, 22px) !important;
  transform: none !important;
}

body.bcl-has-plugin:not(.bcl-standalone-app) .site-header,
body.bcl-has-plugin:not(.bcl-standalone-app) #masthead,
body.bcl-has-plugin:not(.bcl-standalone-app) .wp-site-blocks > header,
body.bcl-has-plugin:not(.bcl-standalone-app) .site-footer,
body.bcl-has-plugin:not(.bcl-standalone-app) #colophon,
body.bcl-has-plugin:not(.bcl-standalone-app) .wp-site-blocks > footer {
  display: none !important;
}

/* Cadre général de l'administration. */
body.bcl-standalone-app .bcl-context-admin .bcl-hero {
  min-height: 116px;
  margin-bottom: 18px;
  padding: 18px 24px;
  border-radius: 24px;
}

body.bcl-standalone-app .bcl-context-admin .bcl-logo {
  width: 72px;
  height: 72px;
}

body.bcl-standalone-app .bcl-context-admin .bcl-brand-text h1 {
  max-width: none;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
}

body.bcl-standalone-app .bcl-context-admin .bcl-brand-text p {
  max-width: 720px;
}

body.bcl-standalone-app .bcl-admin-shell {
  width: 100%;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
}

body.bcl-standalone-app .bcl-admin-side {
  width: 100%;
  min-width: 0;
  max-width: none;
}

body.bcl-standalone-app .bcl-admin-main,
body.bcl-standalone-app .bcl-admin-main > *,
body.bcl-standalone-app .bcl-card,
body.bcl-standalone-app .bcl-table-wrap {
  min-width: 0;
  max-width: 100%;
}

body.bcl-standalone-app .bcl-admin-page-head {
  min-height: 58px;
  margin-bottom: 12px;
}

body.bcl-standalone-app .bcl-admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.bcl-standalone-app .bcl-admin-stat {
  min-height: 94px;
  padding: 16px;
}

body.bcl-standalone-app .bcl-admin-stat-copy span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

body.bcl-standalone-app .bcl-admin-stat-copy strong {
  font-size: clamp(28px, 2.45vw, 40px);
}

body.bcl-standalone-app .bcl-context-admin .bcl-card {
  width: 100%;
  margin-top: 14px;
  padding: clamp(18px, 1.8vw, 26px);
}

body.bcl-standalone-app .bcl-admin-toolbar {
  grid-template-columns: minmax(260px, .8fr) minmax(560px, 1.55fr);
}

body.bcl-standalone-app .bcl-admin-toolbar form {
  grid-template-columns: minmax(175px, .72fr) minmax(290px, 1.35fr) auto;
}

body.bcl-standalone-app .bcl-admin-toolbar form select,
body.bcl-standalone-app .bcl-admin-toolbar form input,
body.bcl-standalone-app .bcl-admin-toolbar form button,
body.bcl-standalone-app .bcl-wrap input,
body.bcl-standalone-app .bcl-wrap select,
body.bcl-standalone-app .bcl-wrap textarea {
  max-width: 100%;
}

.bcl-admin-section-intro {
  max-width: 760px;
  margin-bottom: 20px;
}

.bcl-admin-section-intro h2 {
  margin-bottom: 7px;
}

.bcl-empty-state {
  padding: 28px !important;
  color: var(--bcl-muted);
  text-align: center !important;
}

/* Tableau des commandes : lisible sur grand écran, fiches sur téléphone. */
.bcl-orders-table {
  min-width: 1080px;
  table-layout: fixed;
}

.bcl-orders-table th:nth-child(1),
.bcl-orders-table td:nth-child(1) { width: 10%; }
.bcl-orders-table th:nth-child(2),
.bcl-orders-table td:nth-child(2) { width: 19%; }
.bcl-orders-table th:nth-child(3),
.bcl-orders-table td:nth-child(3) { width: 20%; }
.bcl-orders-table th:nth-child(4),
.bcl-orders-table td:nth-child(4) { width: 15%; }
.bcl-orders-table th:nth-child(5),
.bcl-orders-table td:nth-child(5) { width: 11%; }
.bcl-orders-table th:nth-child(6),
.bcl-orders-table td:nth-child(6) { width: 25%; }

.bcl-orders-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.bcl-order-actions {
  min-width: 250px;
}

.bcl-order-actions form {
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #dce6eb;
  border-radius: 14px;
  background: #f8fbfc;
}

.bcl-order-actions form:last-child {
  margin-bottom: 0;
}

.bcl-order-actions form select,
.bcl-order-actions form input,
.bcl-order-actions form .bcl-btn {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.bcl-order-actions .bcl-secure-order {
  margin: 0;
  padding: 10px;
}

.bcl-history-table {
  min-width: 880px;
}

/* Le tiroir latéral est utilisé sur portable et tablette, avant que la colonne
   centrale ne devienne trop étroite. Le seuil correspond au JavaScript. */
@media (max-width: 1180px) {
  body.bcl-standalone-app .bcl-wrap {
    padding: 14px !important;
  }

  body.bcl-standalone-app .bcl-admin-shell {
    display: block;
  }

  body.bcl-standalone-app .bcl-admin-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: #082d39;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
  }

  body.bcl-standalone-app .bcl-admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000001;
    width: min(88vw, 310px);
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 22px 22px 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  body.bcl-standalone-app .bcl-admin-shell.is-nav-open .bcl-admin-side {
    transform: translateX(0);
  }

  body.bcl-standalone-app .bcl-admin-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000000;
    visibility: hidden;
    opacity: 0;
    background: rgba(2, 15, 21, .58);
    transition: opacity .2s ease, visibility .2s ease;
  }

  body.bcl-standalone-app .bcl-admin-shell.is-nav-open::after {
    visibility: visible;
    opacity: 1;
  }

  body.bcl-standalone-app .bcl-admin-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.bcl-standalone-app .bcl-admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.bcl-standalone-app .bcl-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.bcl-standalone-app .bcl-admin-toolbar form {
    grid-template-columns: minmax(145px, .8fr) minmax(220px, 1.45fr) auto;
  }

  .bcl-responsive-table {
    min-width: 0 !important;
    border: 0;
    overflow: visible;
    background: transparent;
  }

  .bcl-responsive-table thead {
    display: none;
  }

  .bcl-responsive-table tbody,
  .bcl-responsive-table tr,
  .bcl-responsive-table td {
    display: block;
    width: 100% !important;
  }

  .bcl-responsive-table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #dce6eb;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 31, 43, .06);
  }

  .bcl-responsive-table tr:last-child {
    margin-bottom: 0;
  }

  .bcl-responsive-table td {
    display: grid !important;
    grid-template-columns: minmax(110px, 28%) minmax(0, 1fr);
    gap: 14px;
    min-height: 48px;
    padding: 11px 13px;
    border-bottom: 1px solid #e7eef1;
  }

  .bcl-responsive-table td::before {
    content: attr(data-label);
    color: #71838c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .bcl-responsive-table td:last-child {
    border-bottom: 0;
  }

  .bcl-responsive-table .bcl-order-actions {
    min-width: 0;
  }

  .bcl-responsive-table .bcl-order-actions form {
    max-width: 520px;
  }

  .bcl-responsive-table .bcl-empty-state {
    display: block !important;
  }

  .bcl-responsive-table .bcl-empty-state::before {
    display: none;
  }
}

@media (max-width: 720px) {
  body.bcl-standalone-app .bcl-wrap,
  body.bcl-standalone-app .bcl-context-admin {
    padding: 8px !important;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-hero {
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    padding: 15px;
    border-radius: 19px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand {
    align-items: center;
    gap: 12px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-logo {
    width: 58px;
    height: 58px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand-text h1 {
    font-size: clamp(27px, 8.8vw, 36px);
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand-text p {
    display: none;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-kicker {
    margin-bottom: 7px;
    padding: 5px 8px;
    font-size: 9px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    justify-content: stretch;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-user-chip {
    min-width: 0;
  }

  body.bcl-standalone-app .bcl-admin-page-head {
    align-items: center;
    min-height: 50px;
  }

  body.bcl-standalone-app .bcl-admin-page-head h2 {
    font-size: 24px;
  }

  body.bcl-standalone-app .bcl-admin-stats {
    gap: 8px;
  }

  body.bcl-standalone-app .bcl-admin-stat {
    min-height: 82px;
    padding: 12px;
  }

  body.bcl-standalone-app .bcl-admin-stat-icon {
    width: 39px;
    height: 39px;
  }

  body.bcl-standalone-app .bcl-admin-stat-copy span {
    font-size: 9px;
  }

  body.bcl-standalone-app .bcl-admin-stat-copy strong {
    font-size: 28px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-card {
    padding: 14px;
    border-radius: 17px;
  }

  body.bcl-standalone-app .bcl-admin-toolbar form {
    grid-template-columns: 1fr;
  }

  body.bcl-standalone-app .bcl-admin-toolbar form .bcl-btn {
    width: 100%;
  }

  .bcl-responsive-table td {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .bcl-order-actions form {
    padding: 10px;
  }

  .bcl-card:not(.bcl-client-list-card) > .bcl-table:not(.bcl-responsive-table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 460px) {
  body.bcl-standalone-app .bcl-admin-stats {
    grid-template-columns: 1fr;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-hero-actions {
    grid-template-columns: 1fr;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-btn-ghost,
  body.bcl-standalone-app .bcl-context-admin .bcl-user-chip {
    width: 100%;
  }

  .bcl-responsive-table td {
    display: block !important;
  }

  .bcl-responsive-table td::before {
    display: block;
    margin-bottom: 5px;
  }
}

.bcl-cell-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bcl-order-actions-stack {
  display: grid;
  gap: 12px;
}

.bcl-order-actions-stack form {
  margin-bottom: 0;
}

.bcl-order-actions-stack {
  grid-template-columns: minmax(0, 1fr);
}

.bcl-order-actions-stack form,
.bcl-order-actions-stack .bcl-secure-order {
  min-width: 0;
  max-width: 100% !important;
}

.bcl-order-actions-stack .bcl-secure-order {
  overflow: hidden;
}

.bcl-order-actions-stack small {
  overflow-wrap: anywhere;
}

.bcl-secure-order small,
.bcl-secure-order input {
  display: block;
}

.bcl-secure-order small {
  margin-bottom: 8px;
}

/* ========================================================================== 
   Interface compacte 4.2.0
   Moins de défilement vertical : en-tête réduit, listes paginées et actions
   de commande déplacées dans une fenêtre de gestion.
   ========================================================================== */

.bcl-result-count {
  display: block;
  margin-top: 5px;
  color: #72848d;
  font-size: 11px;
  font-weight: 800;
}

.bcl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #e1e9ed;
}

.bcl-pagination-info {
  color: #70828c;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bcl-pagination-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.bcl-page-link,
.bcl-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
}

.bcl-page-link {
  color: #31505d !important;
  border: 1px solid #d7e3e8;
  background: #fff;
}

.bcl-page-link:hover {
  color: #08747d !important;
  border-color: #a9d6d8;
  background: #f0fbfb;
}

.bcl-page-link.is-current {
  color: #fff !important;
  border-color: #087f89;
  background: #087f89;
  box-shadow: 0 7px 18px rgba(0, 138, 149, .20);
}

.bcl-page-prev,
.bcl-page-next {
  padding-inline: 12px;
}

.bcl-page-ellipsis {
  min-width: 22px;
  padding-inline: 3px;
  color: #8a9aa2;
}

.bcl-orders-table {
  min-width: 900px;
  table-layout: fixed;
}

.bcl-orders-table th:nth-child(1),
.bcl-orders-table td:nth-child(1) { width: 12%; }
.bcl-orders-table th:nth-child(2),
.bcl-orders-table td:nth-child(2) { width: 24%; }
.bcl-orders-table th:nth-child(3),
.bcl-orders-table td:nth-child(3) { width: 27%; }
.bcl-orders-table th:nth-child(4),
.bcl-orders-table td:nth-child(4) { width: 18%; }
.bcl-orders-table th:nth-child(5),
.bcl-orders-table td:nth-child(5) { width: 12%; }
.bcl-orders-table th:nth-child(6),
.bcl-orders-table td:nth-child(6) { width: 7%; text-align: right; }

.bcl-order-message-preview {
  display: -webkit-box;
  max-height: 3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #536b76;
  line-height: 1.45;
}

.bcl-order-manage-btn {
  min-height: 36px;
  padding: 7px 11px;
  white-space: nowrap;
}

.bcl-order-modal .bcl-modal-panel {
  width: min(980px, 100%);
}

.bcl-order-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.bcl-order-modal-summary > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dce6ea;
  border-radius: 15px;
  background: #fff;
}

.bcl-order-modal-summary > div > span:first-child {
  display: block;
  color: #72848d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bcl-order-modal-summary strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #14313d;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcl-order-modal-summary .bcl-status-badge {
  display: inline-flex;
  margin-top: 0;
}

.bcl-order-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.bcl-order-message-full {
  max-height: 180px;
  padding: 12px;
  overflow: auto;
  border: 1px solid #e0e8ec;
  border-radius: 12px;
  background: #f8fbfc;
}

.bcl-order-modal .bcl-order-actions-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

.bcl-order-modal .bcl-order-actions-stack form {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dce6eb;
  border-radius: 14px;
  background: #f8fbfc;
}

.bcl-order-modal .bcl-order-actions-stack form label {
  color: #49626d;
  font-size: 12px;
  font-weight: 850;
}

.bcl-order-modal .bcl-order-actions-stack select,
.bcl-order-modal .bcl-order-actions-stack input,
.bcl-order-modal .bcl-order-actions-stack .bcl-btn {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.bcl-order-modal .bcl-secure-order {
  margin: 0;
  padding: 9px;
}

/* Sur ordinateur, la console tient dans la hauteur de l'écran. Le contenu de
   gestion défile dans sa propre zone au lieu d'allonger toute la page. */
@media (min-width: 1181px) {
  html.bcl-has-admin,
  body.bcl-has-admin {
    height: 100%;
    overflow: hidden !important;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-app-root,
  body.bcl-standalone-app.bcl-has-admin #bcl-app-root {
    height: 100dvh;
    min-height: 0;
    overflow: hidden !important;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 1800px !important;
    height: 100dvh;
    min-height: 0;
    padding: 10px 14px !important;
    overflow: hidden;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-hero {
    flex: 0 0 auto;
    min-height: 66px;
    height: 66px;
    margin: 0 0 10px;
    padding: 8px 14px;
    border-radius: 18px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-brand {
    gap: 11px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-logo {
    width: 48px;
    height: 48px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-kicker {
    display: none;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-brand-text h1 {
    margin: 0 0 3px;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.035em;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-brand-text p {
    max-width: 760px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-hero-actions {
    gap: 7px;
    flex-wrap: nowrap;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-user-chip {
    min-height: 36px;
    padding: 7px 11px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-btn-ghost {
    min-height: 36px;
    padding: 7px 11px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-ok,
  body.bcl-standalone-app.bcl-has-admin .bcl-err {
    flex: 0 0 auto;
    margin: 0 0 8px;
    padding: 8px 11px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-shell {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    overflow: hidden;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side {
    position: relative;
    top: auto;
    min-height: 0;
    height: 100%;
    padding: 10px;
    overflow: auto;
    border-radius: 18px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side-head {
    gap: 9px;
    margin-bottom: 8px;
    padding: 4px 4px 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side-title {
    font-size: 13px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side-subtitle {
    font-size: 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-nav {
    gap: 3px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side a {
    min-height: 38px;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 11px;
    font-size: 12px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-nav-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-nav-icon svg {
    width: 15px;
    height: 15px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-side-version {
    margin-top: 9px;
    padding: 9px 7px 2px;
    font-size: 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-main {
    min-height: 0;
    height: 100%;
    padding: 0 4px 14px 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-page-head {
    min-height: 38px;
    margin: 0 0 7px;
    padding: 0 2px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-page-head small {
    font-size: 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-page-head h2 {
    margin-top: 1px;
    font-size: 22px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-stats {
    gap: 8px;
    margin-bottom: 8px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-stat {
    min-height: 62px;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 14px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-stat-copy span {
    font-size: 9px;
    line-height: 1.15;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-stat-copy strong {
    margin-top: 2px;
    font-size: 25px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-context-admin .bcl-card {
    margin: 8px 0;
    padding: 14px;
    border-radius: 17px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-toolbar,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-header {
    gap: 12px;
    margin-bottom: 10px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-toolbar h2,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-header h2,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-section-intro h2 {
    margin-bottom: 3px;
    font-size: 21px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-toolbar p,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-header p,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-section-intro p {
    font-size: 11px;
    line-height: 1.35;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-section-intro {
    max-width: 820px;
    margin-bottom: 10px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-admin-toolbar form select,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-toolbar form input,
  body.bcl-standalone-app.bcl-has-admin .bcl-admin-toolbar form .bcl-btn {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-create-client {
    margin: 8px 0 10px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-create-client summary {
    padding: 9px 12px;
    font-size: 12px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-table th,
  body.bcl-standalone-app.bcl-has-admin .bcl-table td {
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.35;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-table th {
    font-size: 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 12px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-client-identity {
    gap: 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-client-name {
    font-size: 12px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-client-email {
    font-size: 10px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-member-type-pill,
  body.bcl-standalone-app.bcl-has-admin .bcl-balance-chip,
  body.bcl-standalone-app.bcl-has-admin .bcl-status-badge {
    min-height: 25px;
    padding: 4px 7px;
    font-size: 9px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-balance-chip strong {
    font-size: 13px;
  }

  body.bcl-standalone-app.bcl-has-admin .bcl-manage-btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .bcl-order-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcl-order-modal-grid {
    grid-template-columns: 1fr;
  }

  .bcl-order-modal-grid .bcl-client-section-full {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .bcl-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .bcl-pagination-info {
    text-align: center;
  }

  .bcl-pagination-links {
    justify-content: center;
  }

  .bcl-page-prev,
  .bcl-page-next {
    flex: 1 1 auto;
  }

  .bcl-responsive-table tr {
    margin-bottom: 9px;
  }

  .bcl-responsive-table td {
    min-height: 42px;
    padding: 8px 10px;
  }

  .bcl-order-modal-summary {
    grid-template-columns: 1fr 1fr;
  }

  .bcl-order-modal .bcl-modal-panel {
    padding: 13px;
  }

  .bcl-order-modal .bcl-order-actions-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .bcl-order-modal-summary {
    grid-template-columns: 1fr;
  }

  .bcl-page-link:not(.bcl-page-prev):not(.bcl-page-next):not(.is-current),
  .bcl-page-ellipsis {
    display: none;
  }
}

/* Compacité mobile 4.2.0 : la zone supérieure et les fiches de commande
   n'occupent plus plusieurs écrans avant d'atteindre les informations utiles. */
@media (max-width: 720px) {
  body.bcl-standalone-app .bcl-context-admin .bcl-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 16px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand {
    align-items: center;
    gap: 9px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-logo {
    width: 43px;
    height: 43px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-kicker,
  body.bcl-standalone-app .bcl-context-admin .bcl-brand-text p {
    display: none;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand-text h1 {
    margin: 0;
    font-size: clamp(21px, 6.8vw, 27px);
    line-height: 1;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-hero-actions,
  body.bcl-standalone-app .bcl-context-admin .bcl-hero-actions:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    width: 100%;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-user-chip,
  body.bcl-standalone-app .bcl-context-admin .bcl-btn-ghost {
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-user-chip strong {
    font-size: 11px;
  }

  body.bcl-standalone-app .bcl-admin-page-head {
    min-height: 40px;
    margin-bottom: 7px;
  }

  body.bcl-standalone-app .bcl-admin-page-head small {
    display: none;
  }

  body.bcl-standalone-app .bcl-admin-page-head h2 {
    margin: 0;
    font-size: 20px;
  }

  body.bcl-standalone-app .bcl-admin-mobile-toggle {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }

  body.bcl-standalone-app .bcl-admin-stats,
  body.bcl-standalone-app .bcl-admin-stats:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 8px;
  }

  body.bcl-standalone-app .bcl-admin-stat {
    min-height: 68px;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 14px;
  }

  body.bcl-standalone-app .bcl-admin-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  body.bcl-standalone-app .bcl-admin-stat-icon svg {
    width: 16px;
    height: 16px;
  }

  body.bcl-standalone-app .bcl-admin-stat-copy span {
    font-size: 7.5px;
    line-height: 1.15;
    white-space: normal;
  }

  body.bcl-standalone-app .bcl-admin-stat-copy strong {
    margin-top: 2px;
    font-size: 22px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-card {
    margin: 7px 0;
    padding: 11px;
  }

  .bcl-orders-card .bcl-admin-section-intro .bcl-section-eyebrow,
  .bcl-orders-card .bcl-admin-section-intro h2,
  .bcl-orders-card .bcl-admin-section-intro p,
  .bcl-history-card .bcl-admin-section-intro .bcl-section-eyebrow,
  .bcl-history-card .bcl-admin-section-intro h2 {
    display: none;
  }

  .bcl-orders-card .bcl-admin-section-intro,
  .bcl-history-card .bcl-admin-section-intro {
    margin-bottom: 8px;
  }

  .bcl-client-list-card .bcl-admin-toolbar > div h2,
  .bcl-client-list-card .bcl-admin-toolbar > div p {
    display: none;
  }

  .bcl-client-list-card .bcl-admin-toolbar {
    gap: 7px;
    margin-bottom: 8px;
  }

  .bcl-result-count {
    margin: 0;
    font-size: 10px;
  }

  .bcl-orders-table tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 10px;
  }

  .bcl-orders-table td {
    display: block !important;
    width: auto !important;
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .bcl-orders-table td::before {
    display: none !important;
  }

  .bcl-orders-table td:nth-child(1),
  .bcl-orders-table td:nth-child(2),
  .bcl-orders-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .bcl-orders-table td:nth-child(1) {
    color: #70828c;
    font-size: 10px;
  }

  .bcl-orders-table td:nth-child(1) strong {
    font-size: 11px;
  }

  .bcl-orders-table td:nth-child(2) strong {
    color: #102b38;
    font-size: 14px;
  }

  .bcl-orders-table td:nth-child(3) {
    padding: 7px 0;
    border-top: 1px solid #e4ecef;
    border-bottom: 1px solid #e4ecef;
  }

  .bcl-orders-table td:nth-child(4) {
    display: none !important;
  }

  .bcl-orders-table td:nth-child(5) {
    grid-column: 1;
    align-self: center;
  }

  .bcl-orders-table td:nth-child(6) {
    grid-column: 2;
    align-self: center;
    text-align: right;
  }

  .bcl-orders-table .bcl-order-manage-btn {
    width: auto;
    min-height: 34px;
    padding: 7px 12px;
  }
}

@media (max-width: 460px) {
  body.bcl-standalone-app .bcl-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-hero-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-btn-ghost,
  body.bcl-standalone-app .bcl-context-admin .bcl-user-chip {
    width: auto;
  }
}

/* Tablettes : deux fiches par ligne pour éviter une page interminable tout en
   conservant la lecture en cartes. */
@media (min-width: 721px) and (max-width: 980px) {
  .bcl-responsive-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bcl-responsive-table tr {
    min-width: 0;
    margin: 0;
  }

  .bcl-responsive-table tr:only-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.bcl-standalone-app .bcl-context-admin .bcl-hero {
    min-height: 92px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 20px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-logo {
    width: 58px;
    height: 58px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-kicker {
    margin-bottom: 5px;
    padding: 4px 8px;
    font-size: 8px;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand-text h1 {
    margin-bottom: 3px;
    font-size: clamp(28px, 4vw, 35px);
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-brand-text p {
    max-width: 590px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.bcl-standalone-app .bcl-context-admin .bcl-user-chip,
  body.bcl-standalone-app .bcl-context-admin .bcl-btn-ghost {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
  }
}

/* v4.3.0 — chargement différé des fiches administration */
.bcl-btn.is-loading{position:relative;cursor:wait;opacity:.78;padding-right:2.7rem}
.bcl-btn.is-loading::after{content:"";position:absolute;right:.9rem;top:50%;width:.9rem;height:.9rem;margin-top:-.45rem;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:bcl-spin .7s linear infinite}
@keyframes bcl-spin{to{transform:rotate(360deg)}}
.bcl-license-alert.is-info{border-color:rgba(14,165,233,.35);background:rgba(14,165,233,.08)}

/* v4.3.0 — diagnostic fonctionnel */
.bcl-health-panel{margin-top:18px}
.bcl-health-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.bcl-health-head h3{margin:0 0 5px}
.bcl-health-head p{margin:0}
.bcl-health-head>strong{flex:0 0 auto;padding:7px 11px;border:1px solid #d7e2e7;border-radius:999px;background:#f7fafb;color:#25434f;font-size:12px}
.bcl-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bcl-health-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;padding:13px 14px;border:1px solid #dce6ea;border-radius:14px;background:#fff}
.bcl-health-item h4{margin:0 0 4px;font-size:14px}
.bcl-health-item p{margin:0;color:#5c737e;font-size:12px;line-height:1.45}
.bcl-health-item>span{flex:0 0 auto;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.bcl-health-item.is-ok{border-color:rgba(16,185,129,.28);background:rgba(16,185,129,.045)}
.bcl-health-item.is-ok>span{background:rgba(16,185,129,.14);color:#047857}
.bcl-health-item.is-warning{border-color:rgba(245,158,11,.32);background:rgba(245,158,11,.055)}
.bcl-health-item.is-warning>span{background:rgba(245,158,11,.16);color:#9a5a00}
.bcl-health-item.is-error{border-color:rgba(239,68,68,.34);background:rgba(239,68,68,.055)}
.bcl-health-item.is-error>span{background:rgba(239,68,68,.14);color:#b42318}
@media(max-width:760px){.bcl-health-head{display:block}.bcl-health-head>strong{display:inline-block;margin-top:10px}.bcl-health-grid{grid-template-columns:1fr}.bcl-health-item{padding:12px}}

/* v4.3.0 — historique client chargé à la demande */
.bcl-client-history-loader[aria-busy="true"]{cursor:wait}
.bcl-history-placeholder{min-height:180px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.bcl-history-placeholder .bcl-btn{margin-top:8px}
.bcl-history-error{margin-top:12px}

/* 4.4.1 — carte membre indépendante des formules prépayées */
.bcl-card-balance.is-membership-only {
  max-width: 210px;
}

.bcl-card-balance.is-membership-only .bcl-card-balance-number {
  font-size: clamp(52px, 9vw, 104px);
  letter-spacing: 0;
}

.bcl-card-balance.is-membership-only .bcl-card-balance-label {
  max-width: 190px;
  margin-left: auto;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.bcl-order-credit-warning {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(185, 101, 0, .28);
  background: rgba(255, 191, 70, .12);
  box-shadow: none;
}

.bcl-order-credit-warning p {
  margin: 5px 0 0;
}

@container bcl-card-frame (max-width: 520px) {
  .bcl-card-balance.is-membership-only .bcl-card-balance-number {
    font-size: 40px;
  }

  .bcl-card-balance.is-membership-only .bcl-card-balance-label {
    max-width: 62px;
    font-size: 6px;
    line-height: 1.15;
  }
}


/* 4.4.2 — ciblage des blocs Divers par catégorie de client */
.bcl-rich-audience {
  display: grid;
  grid-template-columns: minmax(230px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid #cfe0e5;
  border-radius: 13px;
  background: #eef8f8;
}

.bcl-rich-audience label { margin: 0; }
.bcl-rich-audience select { margin-top: 6px; }
.bcl-rich-audience small {
  align-self: center;
  color: var(--bcl-muted);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .bcl-rich-audience { grid-template-columns: 1fr; }
}


/* ========================================================================== 
   Correctif carte caisse mobile 4.4.3
   Le présentateur est monté directement sous <body> par JavaScript. Les
   dimensions ci-dessous suivent le visual viewport afin que la carte reste
   intégralement visible sur iPhone et Android, en portrait comme en paysage.
   ========================================================================== */

/* Une fois l'animation terminée, le panneau ne doit plus créer de repère de
   positionnement pour d'éventuels éléments fixes. */
.bcl-tab-panel.is-active {
  animation-fill-mode: none;
}

.bcl-card-presenter {
  inset: 0 !important;
  width: var(--bcl-presenter-vw, 100dvw) !important;
  height: var(--bcl-presenter-vh, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  box-sizing: border-box;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  isolation: isolate;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.bcl-card-presenter,
.bcl-card-presenter * {
  box-sizing: border-box;
}

.bcl-card-presenter-stage {
  position: relative;
  top: auto;
  left: auto;
  width: min(
    calc(var(--bcl-presenter-vw, 100dvw) - 48px),
    calc((var(--bcl-presenter-vh, 100dvh) - 42px) * 1.586),
    1180px
  );
  max-width: none;
  max-height: none;
  margin: auto;
  transform: none;
  transform-origin: center;
}

.bcl-card-presenter .bcl-digital-card {
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 1.586 / 1 !important;
}

.bcl-card-presenter-close {
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
}

.bcl-card-presenter-note {
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  max-width: calc(var(--bcl-presenter-vw, 100dvw) - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* En portrait, iOS refuse généralement le verrouillage d'orientation. La carte
   pivote donc visuellement, mais sa taille est calculée avec les deux axes :
   largeur visuelle = largeur de la carte / 1,586 ; hauteur visuelle = largeur
   de la carte. Elle ne peut ainsi plus être coupée. */
@media (orientation: portrait) and (max-width: 900px) {
  .bcl-card-presenter-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(
      calc(var(--bcl-presenter-vh, 100dvh) - 120px),
      calc((var(--bcl-presenter-vw, 100dvw) - 28px) * 1.586),
      1180px
    );
    margin: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }

  .bcl-card-presenter-note::before {
    content: "Tournez le téléphone · ";
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .bcl-card-presenter {
    padding: 10px 68px 10px 12px;
  }

  .bcl-card-presenter-stage {
    width: min(
      calc(var(--bcl-presenter-vw, 100dvw) - 92px),
      calc((var(--bcl-presenter-vh, 100dvh) - 20px) * 1.586),
      1100px
    );
  }

  .bcl-card-presenter-note {
    display: none;
  }
}
