/* Console « Super Admin Plateforme » : compléments au système visuel de l'application (charte INK BROTHERS RDC). */

/* En-tête de la barre latérale : la console se distingue de l'espace d'une entreprise par un bandeau sombre. */
.console-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 16px; background: var(--ink-strong); color: #fff; text-decoration: none; position: relative;
}
.console-brand .mos-logo { width: 138px; }
.console-brand:hover { text-decoration: none; }
.console-brand::after { content: ""; position: absolute; left: 20px; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--orange); }
.console-brand .cb-name { font-weight: 700; font-size: 16px; line-height: 1.1; color: #fff; }
.console-brand .cb-name span { color: var(--orange); }
.console-brand .cb-sub { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cream); margin-top: 3px; font-weight: 600; }

/* Double authentification */
.code-input { font-size: 20px; letter-spacing: 4px; text-align: center; font-variant-numeric: tabular-nums; height: 48px; }
.enroll { display: grid; justify-items: center; gap: 8px; margin: 4px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.enroll img { width: 200px; height: 200px; image-rendering: pixelated; }
.enroll .secret { font-size: 13px; letter-spacing: 1px; background: var(--bg); padding: 6px 10px; border-radius: 6px; word-break: break-all; text-align: center; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.codes code { display: block; text-align: center; font-size: 14px; letter-spacing: 1.5px; padding: 8px; border: 1px dashed var(--orange-line); background: var(--cream-soft); border-radius: 8px; color: var(--ink-strong); }

/* Divers */
.mail-body { white-space: pre-wrap; font-family: var(--font); font-size: 13px; background: var(--bg); border-radius: 8px; padding: 14px; margin: 0; max-height: 60vh; overflow: auto; }
.console .filters .check { white-space: nowrap; }

/* ================================================================== Formules : cartes tarifaires */
/* Toutes les formules sur une ligne (jusqu'à 4) ; empilées sur téléphone. */
.pcard-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 28px 18px; align-items: stretch; }
@media (max-width: 760px) { .pcard-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 1180px) {
  .pcard .plan-body { padding: 22px 18px 22px; }
  .pcard .plan-price b { font-size: 32px; }
  .pcard .plan-top h3 { font-size: 18px; }
  .pcard .plan-cta { font-size: 15px; }
}
.pcard { --a1: #c9d86a; --a2: #f6c744; --a3: #f28c28; --line: #f3c58f; --check: #e9a21b;
  position: relative; display: flex; flex-direction: column; }
.pcard.tone-sea { --a1: #38bdf8; --a2: #2ee6e6; --a3: #7ee0a0; --line: #9fe3ee; --check: #18b4d8; }
.pcard.tone-mos { --a1: #8a0303; --a2: #e4521a; --a3: #ff9a62; --line: #f3b79a; --check: #e4521a; }
.pcard.tone-violet { --a1: #7c3aed; --a2: #c084fc; --a3: #f0abfc; --line: #d8c2fb; --check: #8b5cf6; }
.pcard.off { opacity: .62; }
.plan-body { position: relative; z-index: 2; background: var(--surface, #fff); border-radius: 26px; padding: 28px 28px 26px;
  border: 1.5px solid transparent; background-clip: padding-box; box-shadow: 0 14px 30px -18px rgba(40, 20, 10, .28), 0 2px 6px rgba(40, 20, 10, .05); }
.plan-body::before { content: ""; position: absolute; inset: -1.5px; border-radius: 27px; padding: 1.5px; z-index: -1;
  background: linear-gradient(160deg, var(--a2), rgba(255, 255, 255, 0) 45%, var(--a3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-top h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.plan-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.plan-pop { background: #1f1b1a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan-price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted, #6f6a66); font-size: 14px; }
.plan-annual { font-size: 13px; color: var(--muted, #6f6a66); margin-top: 6px; }
.plan-save { color: #0f7a5c; font-weight: 600; }
.plan-desc { margin: 10px 0 0; color: var(--muted, #6f6a66); font-size: 13.5px; line-height: 1.45; }
.plan-rule { border: 0; height: 1px; margin: 22px 0 20px; background: linear-gradient(90deg, var(--line), var(--a2), var(--line)); opacity: .8; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.plan-features li { display: flex; gap: 12px; align-items: flex-start; }
.plan-features li > svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--check); stroke-width: 2.6; }
.pf-title { font-weight: 600; font-size: 14.5px; }
.pf-text { color: var(--muted, #6f6a66); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.plan-foot { position: relative; z-index: 1; margin-top: -30px; padding: 44px 18px 16px; border-radius: 0 0 26px 26px;
  background: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3)); display: flex; align-items: center; justify-content: center; gap: 8px; }
.plan-cta { border: 0; background: none; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18); padding: 6px 10px; border-radius: 12px; }
.plan-cta svg { transition: transform .2s; }
.plan-cta:hover svg { transform: translateX(4px); }
.plan-cta:focus-visible, .plan-del:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.plan-del { position: absolute; right: 14px; bottom: 14px; border: 0; background: rgba(255, 255, 255, .22); color: #fff; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; }
.plan-del:hover { background: rgba(255, 255, 255, .36); }
.plan-note { margin-top: 12px; padding: 0 8px; font-size: 12.5px; color: var(--muted, #6f6a66); }
.plan-note b { color: var(--text, #222); }
.plan-note code { font-size: 12px; }
:root[data-theme="dark"] .plan-pop { background: #fff; color: #1f1b1a; }
@media (max-width: 420px) { .plan-body { padding: 22px 20px; } .plan-price b { font-size: 34px; } }

/* Cartes de même hauteur : bandeaux alignés. */
.pcard .plan-body { flex: 1 1 auto; }
.pcard .plan-cta { white-space: nowrap; }

/* ================================================================== Entreprises clientes : barre d'outils et lignes en cartes */
.co-head h2 { margin: 0; }
.co-head { margin-bottom: 18px; }
.co-bar { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-bottom: 14px; }
.co-tools, .co-create { background: color-mix(in srgb, var(--surface, #fff) 78%, transparent); border: 1px solid var(--border, #ebe6e2); border-radius: 20px;
  padding: 14px 16px; box-shadow: 0 10px 30px -22px rgba(138, 3, 3, .35); backdrop-filter: blur(6px); display: flex; align-items: center; gap: 12px; }
.co-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border, #e6e0dc);
  background: var(--surface, #fff); color: var(--muted, #8b8480); }
.co-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--text, #222); min-width: 0; }
.co-search:focus-within { border-color: #E4521A; box-shadow: 0 0 0 3px rgba(228, 82, 26, .14); }
.co-filter-btn, .co-new { height: 42px; padding: 0 18px; border-radius: 12px; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.co-filter-btn { background: var(--surface, #fff); border: 1.5px solid #4a4544; color: var(--text, #2a2525); }
.co-filter-btn[aria-expanded="true"] { border-color: #E4521A; color: #c2410c; }
.co-fcount { background: #E4521A; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; font-size: 11px; display: grid; place-items: center; letter-spacing: 0; }
.co-new { background: transparent; border: 1.5px solid #E4521A; color: #c2410c; }
.co-new:hover { background: linear-gradient(135deg, #8A0303, #E4521A); color: #fff; border-color: transparent; }
.co-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -2px 0 14px; padding: 12px 16px; border-radius: 16px; background: var(--surface, #fff);
  border: 1px dashed var(--border, #e6e0dc); }
.co-filters .select { width: auto; min-width: 180px; }

.co-list { display: grid; gap: 10px; }
.co-row { --cols: 44px minmax(170px, 1.6fr) minmax(120px, 1fr) 82px minmax(120px, 1fr) 80px 92px 80px 138px 92px;
  display: grid; grid-template-columns: var(--cols); align-items: center; gap: 0 12px; min-height: 66px; padding: 0 0 0 14px;
  background: var(--surface, #fff); border-radius: 16px; border: 1px solid var(--border, #efeae6); box-shadow: 0 6px 18px -14px rgba(60, 20, 10, .35);
  cursor: pointer; transition: transform .15s, box-shadow .15s; overflow: hidden; }
.co-row.no-ai { --cols: 44px minmax(170px, 1.6fr) minmax(120px, 1fr) 82px minmax(120px, 1fr) 80px 80px 138px 92px; }
.co-row:not(.co-th):hover { transform: translateY(-1px); box-shadow: 0 12px 26px -16px rgba(138, 3, 3, .45); }
.co-th { background: none; border: 0; box-shadow: none; min-height: 28px; cursor: default; font-size: 11.5px; color: var(--muted, #8b8480); font-weight: 600; }
.co-row .r { text-align: right; }
.co-row .c { text-align: center; }
.co-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
  background: linear-gradient(135deg, #8A0303, #E4521A); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.co-logo.tone-1 { background: linear-gradient(135deg, #2A2525, #5b4f4c); }
.co-logo.tone-2 { background: linear-gradient(135deg, #E4521A, #FFB07A); }
.co-logo.tone-3 { background: linear-gradient(135deg, #0f7a5c, #34c79b); }
.co-logo.tone-4 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.co-name { display: grid; min-width: 0; }
.co-name b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-name small, .co-plan small, .co-num small { color: var(--muted, #8b8480); font-size: 12px; }
.co-contact { font-size: 12.5px; color: var(--muted, #6f6a66); overflow-wrap: anywhere; line-height: 1.35; }
.co-plan { display: grid; gap: 3px; }
.co-plan > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.co-act { font-size: 12.5px; color: var(--muted, #6f6a66); }
.co-mrr { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px; margin-right: -14px;
  background: #f7f2ef; color: var(--muted, #9a928e); font-variant-numeric: tabular-nums; }
.co-mrr svg { width: 18px; height: 18px; margin-right: auto; }
.co-mrr b { color: var(--text, #2a2525); font-size: 13.5px; }
.co-mrr small { font-size: 11px; }
.co-mrr.on { background: linear-gradient(135deg, #fff1ea, #ffe2d3); color: #c2410c; }
.co-actions { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; margin-left: 14px; }
.co-actions a { display: grid; place-items: center; color: #E4521A; border-left: 1px solid var(--border, #efeae6); }
.co-actions a:hover { background: #fff4ee; }
.co-th .c { margin-left: 14px; }
.co-th > span:nth-last-child(2) { margin-right: -14px; padding-right: 16px; }
:root[data-theme="dark"] .co-mrr { background: #2b2422; }
:root[data-theme="dark"] .co-mrr.on { background: linear-gradient(135deg, #3a1d10, #4a2312); color: #ffb48a; }
:root[data-theme="dark"] .co-actions a:hover { background: #2b2422; }
/* Écrans moyens et téléphone : la ligne devient une carte en deux zones. */
@media (max-width: 1180px) {
  .co-th { display: none; }
  .co-row, .co-row.no-ai { grid-template-columns: 48px 1fr auto; grid-auto-rows: auto; gap: 8px 12px; padding: 14px 14px; }
  .co-row > .co-logo { grid-row: span 2; }
  .co-contact, .co-act { display: none; }
  .co-row > span:nth-child(4) { justify-self: end; }
  .co-plan { grid-column: 2; }
  .co-num { display: none; }
  .co-mrr { grid-column: 3; grid-row: 2; margin: 0; padding: 6px 12px; border-radius: 10px; }
  .co-mrr svg { margin-right: 4px; }
  .co-actions { display: none; }
}
@media (max-width: 640px) { .co-bar { grid-template-columns: 1fr; } .co-tools { flex-wrap: wrap; } .co-filter-btn span { display: none; } }
/* Logo de l'entreprise : sur fond blanc, contenu entier ; initiales si aucun logo (ou image illisible). */
.co-logo { position: relative; overflow: hidden; }
.co-logo i { font-style: normal; }
.co-logo.has-img { background: #fff; border: 1px solid var(--border, #efeae6); box-shadow: none; }
.co-logo.has-img i { display: none; }
.co-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.co-logo.wide img { object-fit: cover; object-position: left center; padding: 5px 0 5px 5px; }
