/* Instrument Sans hébergée localement (RGPD : aucun appel à Google Fonts). Police variable 400–700, licence SIL OFL (fonts/OFL.txt). */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/instrument-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ==========================================================================
   TalCloud — thème espace client WHMCS (enfant de Twenty-One)
   Toutes les couleurs passent par les variables ci-dessous.
   ========================================================================== */
:root {
    --tc-font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --tc-font-display: 'Instrument Sans', system-ui, sans-serif;
    --tc-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
    --tc-bg: #f6f7fb;
    --tc-surface: #ffffff;
    --tc-surface-2: #f1f2f8;
    --tc-surface-3: #e9ebf4;
    --tc-line: #e4e6ef;
    --tc-line-2: #cbd3e1;
    --tc-ink: #0c0d14;
    --tc-ink-2: #34384a;
    --tc-muted: #5a5d70;
    --tc-primary: #3346ff;
    --tc-primary-h: #2333e0;
    --tc-primary-soft: rgba(51, 70, 255, .09);
    --tc-primary-line: rgba(51, 70, 255, .35);
    --tc-navy: #10143a;
    --tc-navy-2: #1b2160;
    --tc-coral: #ff5c38;
    --tc-ok: #15803d;
    --tc-ok-soft: #e6f6ec;
    --tc-warn: #c2410c;
    --tc-warn-soft: #fff1e6;
    --tc-danger: #dc2626;
    --tc-danger-soft: #fdecec;
    --tc-pending: #f59e0b;
    --tc-maint: #3b82f6;
    --tc-notice-bg: #fbf2e6;
    --tc-notice-line: #efd2a8;
    --tc-radius: 16px;
    --tc-radius-sm: 10px;
    --tc-shadow: 0 1px 2px rgba(12, 13, 20, .04), 0 4px 14px rgba(12, 13, 20, .04);
    --tc-side-w: 264px;
    --tc-top-h: 64px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --tc-bg: #0a0b11;
    --tc-surface: #13151f;
    --tc-surface-2: #191c28;
    --tc-surface-3: #1f2331;
    --tc-line: #252a3a;
    --tc-line-2: #343a50;
    --tc-ink: #f2f3f8;
    --tc-ink-2: #cfd2df;
    --tc-muted: #9a9fb6;
    --tc-primary: #6b7bff;
    --tc-primary-h: #8592ff;
    --tc-primary-soft: rgba(107, 123, 255, .15);
    --tc-primary-line: rgba(107, 123, 255, .45);
    --tc-navy: #141947;
    --tc-navy-2: #222a78;
    --tc-ok: #34d399;
    --tc-ok-soft: rgba(52, 211, 153, .12);
    --tc-warn: #fb923c;
    --tc-warn-soft: rgba(251, 146, 60, .12);
    --tc-danger: #f87171;
    --tc-danger-soft: rgba(248, 113, 113, .12);
    --tc-notice-bg: rgba(255, 170, 60, .08);
    --tc-notice-line: rgba(255, 170, 60, .3);
    --tc-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
}

/* ---------- Base ---------- */
html, body, body.tc-body.primary-bg-color { background: var(--tc-bg); }
body.tc-body, .tc-body .tooltip, .tc-body .popover {
    font-family: var(--tc-font);
    color: var(--tc-ink);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.tc-body h1, .tc-body h2, .tc-body h3, .tc-body h4, .tc-body h5, .tc-body h6,
.tc-body .h1, .tc-body .h2, .tc-body .h3, .tc-body .h4, .tc-body .h5, .tc-body .h6 {
    font-family: var(--tc-font);
    color: var(--tc-ink);
    font-weight: 650;
    letter-spacing: -.015em;
}
.tc-body a { color: var(--tc-primary); }
.tc-body a:hover { color: var(--tc-primary-h); }
.tc-body .text-muted, .tc-body small.text-muted { color: var(--tc-muted) !important; }
.tc-body hr { border-color: var(--tc-line); }
.tc-body ::selection { background: var(--tc-primary); color: #fff; }
.tc-body :focus-visible { outline: 2px solid var(--tc-primary); outline-offset: 2px; }
.tc-i { flex: none; vertical-align: -.2em; }
.tc-show-dark { display: none; }
[data-theme="dark"] .tc-show-dark { display: inline-block; }
[data-theme="dark"] .tc-show-light { display: none; }

/* ---------- Marque ---------- */
.tc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--tc-ink) !important; }
.tc-brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--tc-line); }
.tc-brand-mark img { width: 26px; height: 26px; }
.tc-brand-word { font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.tc-brand-word em { font-style: normal; color: var(--tc-primary); }
.tc-brand-logo { max-height: 38px; max-width: 180px; }
.tc-brand-light { color: #fff !important; }
.tc-brand-light .tc-brand-word em { color: #8f9bff; }

/* ---------- Layout application ---------- */
.tc-app { min-height: 100vh; }
.tc-side {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--tc-side-w); z-index: 1040;
    background: var(--tc-surface); border-right: 1px solid var(--tc-line);
    display: flex; flex-direction: column; padding: 18px 14px 16px; overflow-y: auto;
}
.tc-side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 18px; }
.tc-side .tc-side-close { display: none; }
.tc-side-search { position: relative; margin: 0 0 18px; }
.tc-side-search .tc-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tc-muted); }
.tc-side-search input {
    width: 100%; height: 38px; border: 1px solid transparent; border-radius: var(--tc-radius-sm);
    background: var(--tc-surface-3); color: var(--tc-ink); padding: 0 12px 0 34px; font-size: 13px;
}
.tc-side-search input:focus { outline: none; border-color: var(--tc-primary-line); background: var(--tc-surface); }
.tc-nav { flex: 1; }
.tc-nav-list, .tc-nav-sub { list-style: none; margin: 0; padding: 0; }
.tc-nav-link {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; margin-bottom: 2px;
    border: 0; background: none; border-radius: var(--tc-radius-sm); text-align: left;
    color: var(--tc-ink-2) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; cursor: pointer;
}
.tc-nav-link:hover { background: var(--tc-surface-2); color: var(--tc-ink) !important; }
.tc-nav-link.active { background: var(--tc-primary-soft); color: var(--tc-primary) !important; }
.tc-nav-link .tc-i { color: var(--tc-muted); }
.tc-nav-link.active .tc-i, .tc-nav-group.has-active > .tc-nav-link .tc-i { color: var(--tc-primary); }
.tc-nav-label { flex: 1; min-width: 0; }
.tc-nav-caret { transition: transform .2s; opacity: .7; }
.tc-nav-group.open > .tc-nav-link .tc-nav-caret { transform: rotate(180deg); }
.tc-nav-sub { display: none; margin: 2px 0 8px 21px; padding-left: 12px; border-left: 1px solid var(--tc-line); }
.tc-nav-group.open > .tc-nav-sub { display: block; }
.tc-nav-sublink {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 10px; border-radius: 6px; color: var(--tc-muted) !important; font-size: 13px; font-weight: 500; text-decoration: none !important;
}
.tc-nav-sublink:hover { color: var(--tc-ink) !important; background: var(--tc-surface-2); }
.tc-nav-sublink.active { color: var(--tc-ink) !important; background: var(--tc-surface-3); font-weight: 650; }
.tc-nav-sublink.active::before { content: ''; position: absolute; left: -13px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--tc-primary); }
.tc-nav-badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-side-help { border-top: 1px solid var(--tc-line); padding: 14px 8px 0; margin-top: 16px; display: grid; gap: 4px; font-size: 12.5px; }
.tc-side-help strong { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.tc-side-help span { color: var(--tc-muted); }
.tc-side-help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.tc-backdrop { display: none; }

.tc-main { margin-left: var(--tc-side-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.tc-top {
    position: sticky; top: 0; z-index: 1030; height: var(--tc-top-h);
    display: flex; align-items: center; gap: 12px; padding: 0 28px;
    background: var(--tc-surface); border-bottom: 1px solid var(--tc-line);
}
.tc-burger, .tc-top-brand { display: none !important; }
.tc-top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tc-icon-btn {
    position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center;
    border: 0; border-radius: var(--tc-radius-sm); background: none; color: var(--tc-ink-2) !important; cursor: pointer;
}
.tc-icon-btn:hover { background: var(--tc-surface-2); color: var(--tc-ink) !important; }
.tc-count {
    position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
    background: var(--tc-coral); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.tc-lang, .tc-user {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; margin-left: 4px;
    border: 0; border-radius: var(--tc-radius-sm); background: none; color: var(--tc-ink) !important; font-weight: 600; font-size: 13px; cursor: pointer;
}
.tc-lang:hover, .tc-user:hover { background: var(--tc-surface-2); }
.tc-lang .iti-flag { transform: scale(1.25); border-radius: 2px; }
.tc-avatar {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--tc-navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.tc-admin-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin-right: 6px; border-radius: 99px;
    background: var(--tc-warn-soft); color: var(--tc-warn) !important; font-size: 12px; font-weight: 650; text-decoration: none !important;
}
.tc-dd { min-width: 240px; padding: 6px; border-radius: var(--tc-radius); }
.tc-dd-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--tc-line); margin-bottom: 6px; display: grid; }
.tc-dd-head span { color: var(--tc-muted); font-size: 12px; }
.tc-dd-title { padding: 8px 10px; font-weight: 650; }
.tc-dd-empty { padding: 10px; color: var(--tc-muted); font-size: 13px; }
.tc-dd .dropdown-item { border-radius: 6px; padding: 7px 10px; font-size: 13px; }
.tc-dd-danger { color: var(--tc-danger) !important; }
.tc-dd-alerts { width: 340px; }
.tc-alert-item { display: flex !important; gap: 10px; white-space: normal; }
.tc-alert-item i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--tc-maint); }
.tc-alert-item.is-danger i { background: var(--tc-danger); }
.tc-alert-item.is-warning i { background: var(--tc-pending); }
.tc-alert-item.is-success i { background: var(--tc-ok); }

.tc-content { flex: 1; padding: 22px 0 48px; }
.tc-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
#main-body { padding: 0; background: transparent; }
.tc-footer { border-top: 1px solid var(--tc-line); padding: 20px 0; font-size: 12.5px; color: var(--tc-muted); background: transparent; }
.tc-footer .tc-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tc-footer .copyright { margin: 0; }
.tc-footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.tc-footer-links a { color: var(--tc-ink-2); }

/* ---------- Fil d'Ariane / en-têtes ---------- */
.tc-crumb { background: none !important; padding: 0; margin: 0 0 14px; border: 0; }
.tc-crumb .breadcrumb { background: none; padding: 0; margin: 0; font-size: 13.5px; }
.tc-crumb .breadcrumb-item, .tc-crumb .breadcrumb-item a { color: var(--tc-muted); }
.tc-crumb .breadcrumb-item.active { color: var(--tc-ink-2); }
.tc-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--tc-line-2); content: '/'; }
.tc-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.tc-pagehead h1 { font-size: 1.55rem; margin: 0 0 4px; }
.tc-pagehead p { margin: 0; color: var(--tc-muted); font-size: 13.5px; }
.tc-pagehead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-kicker { display: inline-block; font-size: 12px; font-weight: 650; color: var(--tc-primary); margin-bottom: 12px; }

/* ---------- Bannière vérification e-mail ---------- */
.tc-verify {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 18px;
    background: var(--tc-notice-bg); border: 1px solid var(--tc-notice-line); border-radius: var(--tc-radius);
}
.tc-verify-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(194, 120, 40, .14); color: #9a5a12; }
[data-theme="dark"] .tc-verify-ico { color: #f3b765; }
.tc-verify-text { flex: 1; display: grid; font-size: 13px; }
.tc-verify-text strong { font-size: 14px; }
.tc-verify-text span { color: var(--tc-ink-2); }
.tc-verify .btn-resend-verify-email { border-radius: 99px; padding: 6px 16px; white-space: nowrap; }
.tc-verify-close { opacity: .6; padding: 6px; color: var(--tc-ink) !important; background: none !important; border: 0; }
.tc-verify-close:hover { opacity: 1; }

/* ---------- Étapes de commande ---------- */
.tc-steps { display: flex; justify-content: center; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; flex-wrap: wrap; }
.tc-steps li { display: flex; align-items: center; gap: 8px; color: var(--tc-muted); }
.tc-steps li:not(:last-child)::after { content: ''; width: 56px; height: 1px; background: var(--tc-line-2); margin-left: 4px; }
.tc-step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--tc-line-2); font-size: 11px; font-weight: 700; background: var(--tc-surface); }
.tc-steps .is-current { color: var(--tc-ink); font-weight: 650; }
.tc-steps .is-current .tc-step-n { background: var(--tc-navy); border-color: var(--tc-navy); color: #fff; }
.tc-steps .is-done .tc-step-n { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; }

/* ---------- Cartes & composants maison ---------- */
.tc-card, .tc-body .card {
    background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); box-shadow: var(--tc-shadow);
}
.tc-card { display: block; padding: 18px 20px; margin-bottom: 16px; color: var(--tc-ink); }
a.tc-card { text-decoration: none !important; color: var(--tc-ink) !important; transition: border-color .15s, transform .15s; }
a.tc-card:hover { border-color: var(--tc-primary-line); }
.tc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tc-card-head h3, .tc-h3 { font-size: 15px; margin: 0; }
.tc-card-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tc-line); }
.tc-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--tc-primary); white-space: nowrap; text-decoration: none !important; }
.tc-muted-sm { font-size: 12.5px; color: var(--tc-muted); }
.tc-label { display: block; font-size: 12.5px; font-weight: 650; color: var(--tc-ink-2); margin-bottom: 8px; }
.tc-ico-tile { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tc-surface-3); color: var(--tc-ink-2); }
.tc-ico-tile.is-ok { background: var(--tc-ok-soft); color: var(--tc-ok); width: 32px; height: 32px; border-radius: 50%; }
.tc-ico-tile.is-warn { background: var(--tc-warn-soft); color: var(--tc-warn); }
.tc-navy {
    background: radial-gradient(120% 140% at 100% 0%, var(--tc-navy-2) 0%, transparent 55%), var(--tc-navy) !important;
    border-color: transparent !important; color: #fff !important;
}
.tc-navy * { color: inherit; }
.tc-empty { text-align: center; padding: 44px 24px; }
.tc-empty .tc-ico-tile { margin: 0 auto 14px; width: 46px; height: 46px; }
.tc-empty h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tc-empty p { color: var(--tc-muted); max-width: 440px; margin: 0 auto 16px; }
.tc-empty-narrow { max-width: 460px; margin: 10px auto 16px; }
.tc-empty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--tc-muted); flex-wrap: wrap; }
.tc-empty-text { color: var(--tc-muted); margin: 0; }
.tc-list { list-style: none; margin: 0 -8px; padding: 0; }
.tc-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--tc-ink) !important; text-decoration: none !important; }
.tc-list a:hover { background: var(--tc-surface-2); }
.tc-list-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--tc-surface-3); color: var(--tc-ink-2); flex: none; }
.tc-list-main { flex: 1; min-width: 0; display: grid; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tc-list-main small, .tc-list-main .text-domain { color: var(--tc-muted); font-weight: 500; font-size: 12px; }
.tc-list-meta { font-size: 12.5px; color: var(--tc-muted); white-space: nowrap; }
.tc-list-go { color: var(--tc-muted); }
.tc-kv { list-style: none; margin: 0; padding: 0; }
.tc-kv li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tc-line); font-size: 13px; }
.tc-kv li:last-child { border-bottom: 0; }
.tc-kv span { color: var(--tc-muted); display: inline-flex; align-items: center; gap: 8px; }
.tc-footnote { font-size: 12px; color: var(--tc-muted); display: flex; align-items: center; gap: 6px; }
.tc-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
    border: 1px solid var(--tc-line-2); background: var(--tc-surface); color: var(--tc-ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.tc-chip:hover, .tc-chip.active { border-color: var(--tc-primary); color: var(--tc-primary); background: var(--tc-primary-soft); }
.tc-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.tc-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px;
    background: var(--tc-surface); border: 1px solid var(--tc-line); color: var(--tc-ink-2) !important; font-size: 13px; font-weight: 650; text-decoration: none !important;
}
.tc-pill.active { background: var(--tc-navy); border-color: var(--tc-navy); color: #fff !important; }
.tc-pill-n { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(127, 135, 170, .18); }
.tc-pill.active .tc-pill-n { background: rgba(255, 255, 255, .18); }
.tc-chip-status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--tc-ok-soft); color: var(--tc-ok); border: 1px solid rgba(22, 163, 74, .25); }
.tc-chip-status i, .tc-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.tc-chip-status.is-warn, .tc-live.is-warn { color: var(--tc-warn); background: var(--tc-warn-soft); border-color: transparent; }
.tc-grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }

/* ---------- Tableau de bord ---------- */
.tc-dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tc-hello-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--tc-line); }
.tc-hello h1 { font-size: 1.7rem; margin: 0 0 8px; }
.tc-hello-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.tc-stats a { display: grid; padding: 2px 16px; border-left: 1px solid var(--tc-line); color: var(--tc-ink) !important; text-decoration: none !important; }
.tc-stats a:first-child { border-left: 0; padding-left: 0; }
.tc-stats span { font-size: 12.5px; font-weight: 600; color: var(--tc-ink-2); }
.tc-stats strong { font-size: 1.75rem; font-weight: 650; line-height: 1.25; }
.tc-stats small { font-size: 12px; color: var(--tc-muted); }
.tc-credit { min-height: 196px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px; position: relative; overflow: hidden; }
.tc-credit::after {
    content: ''; position: absolute; right: -90px; bottom: -120px; width: 320px; height: 320px; pointer-events: none;
    background: repeating-radial-gradient(circle at center, rgba(255, 255, 255, .07) 0 1px, transparent 1px 16px);
}
.tc-credit-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: .85; }
.tc-credit-amount { font-size: 2rem; font-weight: 650; margin: auto 0 18px; letter-spacing: -.02em; }
.tc-credit .btn-light { background: #fff; color: var(--tc-navy) !important; border: 0; font-weight: 650; position: relative; z-index: 1; }
.tc-ok-row, .tc-inv-due { display: flex; align-items: center; gap: 12px; }
.tc-ok-row div { display: grid; font-size: 13px; }
.tc-ok-row span { color: var(--tc-muted); }
.tc-inv-due div { font-size: 13px; }
.tc-promo-row { display: flex !important; align-items: center; gap: 14px; }
.tc-promo-txt { flex: 1; display: grid; font-size: 13px; }
.tc-promo-txt span { color: var(--tc-muted); }

/* ---------- Ajouter des fonds ---------- */
.tc-af-input { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--tc-line-2); margin-bottom: 18px; }
.tc-af-input.is-invalid { border-color: var(--tc-danger); }
.tc-af-cur { font-size: 1.4rem; color: var(--tc-muted); }
.tc-af-input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--tc-ink); font-size: 2.2rem; font-weight: 650; outline: none; padding: 0; }
.tc-af-range { width: 100%; accent-color: var(--tc-primary); }
.tc-af-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--tc-muted); margin: 4px 0 14px; }
.tc-af-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-af-error { color: var(--tc-danger); font-size: 12.5px; font-weight: 600; margin: 12px 0 0; }
.tc-paygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tc-paycard { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0; border: 1px solid var(--tc-line-2); border-radius: var(--tc-radius-sm); cursor: pointer; font-weight: 600; }
.tc-paycard input { position: absolute; opacity: 0; pointer-events: none; }
.tc-paycard-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--tc-line-2); display: grid; place-items: center; color: transparent; flex: none; }
.tc-paycard:has(input:checked) { border-color: var(--tc-primary); background: var(--tc-primary-soft); }
.tc-paycard input:checked + .tc-paycard-dot { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; }
.tc-paycard input:focus-visible + .tc-paycard-dot { outline: 2px solid var(--tc-primary); outline-offset: 2px; }
.tc-af-submit { border-radius: var(--tc-radius-sm); }
.tc-af-summary span { font-size: 12.5px; opacity: .8; }
.tc-af-summary strong { display: block; font-size: 1.9rem; font-weight: 650; margin: 6px 0; }
.tc-af-summary p { font-size: 12.5px; opacity: .8; margin: 0; }

/* ---------- Tickets : départements ---------- */
.tc-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tc-dept { display: flex !important; align-items: center; gap: 14px; margin: 0; min-height: 86px; }
.tc-dept .tc-ico-tile { color: var(--tc-primary); background: var(--tc-primary-soft); }
.tc-dept-txt { flex: 1; display: grid; gap: 2px; }
.tc-dept-txt small { color: var(--tc-muted); font-size: 12.5px; line-height: 1.4; }

/* ==========================================================================
   Surcharges Bootstrap / Twenty-One
   ========================================================================== */
.tc-body .card { margin-bottom: 16px; color: var(--tc-ink); }
.tc-body .card-header, .tc-body .card-footer { background: transparent; border-color: var(--tc-line); }
.tc-body .card-title { color: var(--tc-ink); font-weight: 650; }
.tc-body .card-body { color: var(--tc-ink); }
.tc-body .list-group-item { background: var(--tc-surface); border-color: var(--tc-line); color: var(--tc-ink); }
.tc-body .list-group-item-action:hover { background: var(--tc-surface-2); }
.tc-body .list-group-item.active { background: var(--tc-primary-soft); border-color: var(--tc-line); color: var(--tc-primary); }

/* Boutons */
.tc-body .btn { font-weight: 650; border-radius: var(--tc-radius-sm); font-size: 13.5px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: none !important; }
.tc-body .btn-sm { font-size: 12.5px; padding: 5px 11px; }
.tc-body .btn-lg { font-size: 15px; padding: 11px 18px; }
.tc-body .btn-block { display: flex; width: 100%; }
.tc-body .btn-primary, .tc-body .btn-info { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff !important; }
.tc-body .btn-primary:hover, .tc-body .btn-primary:focus, .tc-body .btn-info:hover { background: var(--tc-primary-h); border-color: var(--tc-primary-h); }
.tc-body .btn-primary:disabled, .tc-body .btn-primary.disabled { background: var(--tc-primary); opacity: .55; }
.tc-body .btn-default, .tc-body .btn-light, .tc-body .btn-secondary, .tc-body .btn-outline-secondary {
    background: var(--tc-surface); border: 1px solid var(--tc-line-2); color: var(--tc-ink) !important;
}
.tc-body .btn-default:hover, .tc-body .btn-light:hover, .tc-body .btn-secondary:hover { background: var(--tc-surface-2); border-color: var(--tc-line-2); }
.tc-body .btn-success { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff !important; }
.tc-body .btn-success:hover, .tc-body .btn-success:focus { background: var(--tc-primary-h); border-color: var(--tc-primary-h); }
.tc-body .btn-warning { background: var(--tc-surface); border: 1px solid var(--tc-line-2); color: var(--tc-ink) !important; }
.tc-body .btn-warning:hover { background: var(--tc-surface-2); }
.tc-body .btn-danger { background: #dc2626; border-color: #dc2626; color: #fff !important; }
.tc-body .btn-link { color: var(--tc-primary); }

/* Formulaires */
.tc-body label, .tc-body .form-control-label, .tc-body .col-form-label { font-size: 13px; font-weight: 600; color: var(--tc-ink-2); }
.tc-body .form-control, .tc-body .custom-select, .tc-body select.form-control {
    height: 40px; border-radius: var(--tc-radius-sm); border: 1px solid var(--tc-line-2);
    background-color: var(--tc-surface); color: var(--tc-ink); font-size: 14px; box-shadow: none;
}
.tc-body textarea.form-control { height: auto; }
.tc-body .form-control:focus, .tc-body .custom-select:focus { border-color: var(--tc-primary); box-shadow: 0 0 0 3px var(--tc-primary-soft); background-color: var(--tc-surface); color: var(--tc-ink); }
.tc-body .form-control::placeholder { color: var(--tc-muted); opacity: .8; }
.tc-body .form-control:disabled, .tc-body .form-control[readonly] { background: var(--tc-surface-2); }
.tc-body .input-group-text { background: var(--tc-surface-2); border-color: var(--tc-line-2); color: var(--tc-muted); }
.tc-body .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tc-body .custom-control-label::before { border-color: var(--tc-line-2); background: var(--tc-surface); }
.tc-body .custom-control-input:checked ~ .custom-control-label::before { background: var(--tc-primary); border-color: var(--tc-primary); }
.tc-body .intl-tel-input, .tc-body .iti { width: 100%; }
.tc-body .field-help-text, .tc-body .form-text { color: var(--tc-muted); font-size: 12px; }

/* Tableaux */
.tc-body .table { color: var(--tc-ink); margin: 0; }
.tc-body .table th { border-top: 0; border-bottom: 1px solid var(--tc-line) !important; color: var(--tc-muted); font-size: 12.5px; font-weight: 600; text-transform: none; background: transparent; }
.tc-body .table td { border-color: var(--tc-line); vertical-align: middle; }
.tc-body .table-list, .tc-body .dataTables_wrapper {
    background: var(--tc-surface); border-radius: var(--tc-radius);
}
.tc-body .table-container, .tc-body .table-list-container {
    background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow);
}
.tc-body .table-list > tbody > tr:hover > td { background: var(--tc-surface-2); }
.tc-body .table-list > tbody > tr > td { background: var(--tc-surface); color: var(--tc-ink); }
.tc-body .dataTables_empty { color: var(--tc-muted); text-align: center; padding: 26px !important; }
.tc-body .dataTables_wrapper .dataTables_info, .tc-body .dataTables_wrapper .dataTables_length { color: var(--tc-muted); font-size: 12.5px; padding: 12px 16px; }
.tc-body .dataTables_wrapper .dataTables_filter { display: none; }
.tc-body .dataTables_wrapper .dataTables_paginate { padding: 10px 16px; }
.tc-body .page-link { background: var(--tc-surface); border-color: var(--tc-line); color: var(--tc-ink-2); }
.tc-body .page-item.active .page-link { background: var(--tc-navy); border-color: var(--tc-navy); color: #fff; }
.tc-body .page-item.disabled .page-link { background: var(--tc-surface-2); color: var(--tc-muted); }

/* Statuts WHMCS */
.tc-body .label, .tc-body .status { border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 650; letter-spacing: 0; }
.tc-body .status-active, .tc-body .status-paid, .tc-body .status-open, .tc-body .status-completed, .tc-body .status-accepted { background: var(--tc-ok-soft) !important; color: var(--tc-ok) !important; }
.tc-body .status-pending, .tc-body .status-unpaid, .tc-body .status-answered, .tc-body .status-customer-reply, .tc-body .status-in-progress, .tc-body .status-delivered, .tc-body .status-grace { background: var(--tc-warn-soft) !important; color: var(--tc-warn) !important; }
.tc-body .status-suspended, .tc-body .status-terminated, .tc-body .status-cancelled, .tc-body .status-overdue, .tc-body .status-fraud, .tc-body .status-expired, .tc-body .status-closed, .tc-body .status-dead, .tc-body .status-redemption { background: var(--tc-danger-soft) !important; color: var(--tc-danger) !important; }
.tc-body .badge { border-radius: 99px; font-weight: 650; }
.tc-body .badge-info, .tc-body .badge-primary { background: var(--tc-primary-soft); color: var(--tc-primary); }

/* Alertes */
.tc-body .alert { border-radius: var(--tc-radius); border: 1px solid transparent; font-size: 13.5px; }
.tc-body .alert-warning { background: var(--tc-notice-bg); border-color: var(--tc-notice-line); color: #8a4b0c; }
.tc-body .alert-danger, .tc-body .alert-error { background: var(--tc-danger-soft); border-color: rgba(220, 38, 38, .25); color: #a11d1d; }
.tc-body .alert-success { background: var(--tc-ok-soft); border-color: rgba(22, 163, 74, .25); color: #0f6b33; }
.tc-body .alert-info { background: var(--tc-primary-soft); border-color: var(--tc-primary-line); color: var(--tc-ink-2); }
[data-theme="dark"] .tc-body .alert-warning { color: #f6c27f; }
[data-theme="dark"] .tc-body .alert-danger, [data-theme="dark"] .tc-body .alert-error { color: #fca5a5; }
[data-theme="dark"] .tc-body .alert-success { color: #6ee7b7; }

/* Onglets, dropdowns, modales */
.tc-body .nav-tabs { border-color: var(--tc-line); }
.tc-body .nav-tabs .nav-link { color: var(--tc-muted); border: 0; border-bottom: 2px solid transparent; font-weight: 600; }
.tc-body .nav-tabs .nav-link.active, .tc-body .nav-tabs .nav-link:hover { color: var(--tc-ink); background: none; border-bottom-color: var(--tc-primary); }
.tc-body .nav-pills .nav-link.active { background: var(--tc-navy); }
.tc-body .dropdown-menu { background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); box-shadow: 0 16px 40px rgba(12, 13, 20, .12); }
.tc-body .dropdown-item { color: var(--tc-ink-2); }
.tc-body .dropdown-item:hover, .tc-body .dropdown-item:focus { background: var(--tc-surface-2); color: var(--tc-ink); }
.tc-body .dropdown-divider { border-color: var(--tc-line); }
.tc-body .modal-content { background: var(--tc-surface); color: var(--tc-ink); border: 1px solid var(--tc-line); border-radius: 14px; }
.tc-body .modal-header, .tc-body .modal-footer { border-color: var(--tc-line); }
.tc-body .close { color: var(--tc-ink); text-shadow: none; }
.tc-body .modal-localisation .modal-content { background: var(--tc-surface); }
.tc-body .modal-localisation .item-selector .item { display: block; padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; border: 1px solid var(--tc-line); color: var(--tc-ink); text-decoration: none; }
.tc-body .modal-localisation .item-selector .item.active, .tc-body .modal-localisation .item-selector .item:hover { border-color: var(--tc-primary); background: var(--tc-primary-soft); color: var(--tc-primary); }

/* Annonces */
.tc-page-announcements .card .card-body { padding: 20px 22px; border-bottom: 1px solid var(--tc-line); }
.tc-body .card blockquote, .tc-body blockquote { border-left: 3px solid var(--tc-line-2); background: var(--tc-surface-2); padding: 12px 16px; margin: 10px 0 14px; color: var(--tc-ink-2); font-size: 13.5px; border-radius: 0 8px 8px 0; }
.tc-body .card-title a { color: var(--tc-ink); }

/* Base de connaissances / téléchargements : recherche */
.tc-body .kb-search .form-control, .tc-body .input-group-lg > .form-control { height: 44px; font-size: 15px; }
.tc-body .input-group-lg > .input-group-append > .btn { border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0; background: var(--tc-navy); border-color: var(--tc-navy); color: #fff !important; padding: 0 20px; }

/* Éditeur Markdown (tickets) */
.tc-body .md-editor { border-color: var(--tc-line-2); border-radius: var(--tc-radius-sm); }
.tc-body .md-editor > .btn-toolbar, .tc-body .md-editor .md-footer { background-color: var(--tc-surface-2) !important; border-color: var(--tc-line); }
.tc-body .md-editor > textarea { background: var(--tc-surface); color: var(--tc-ink); }
.tc-body .md-editor .btn { padding: 4px 8px; background: none; border: 0; color: var(--tc-ink-2) !important; }
.tc-body .markdown-editor-status { background: var(--tc-surface-2); color: var(--tc-muted); }

/* Sidebar Twenty-One (pages détails) */
.tc-body .sidebar .card-header { font-weight: 650; }
.tc-body .sidebar .card-title { font-size: 14px; }

/* ---------- Panier standard_cart ---------- */
.tc-body #order-standard_cart .header-lined h1, .tc-body .header-lined h1 { font-size: 1.35rem !important; font-weight: 650; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--tc-line-2); }
.tc-body .header-lined { border: 0; margin: 0; }
.tc-body #order-standard_cart .domain-checker-container {
    background: radial-gradient(120% 140% at 100% 0%, var(--tc-navy-2) 0%, transparent 55%), var(--tc-navy);
    border-radius: var(--tc-radius); padding: 34px 24px; margin: 0 auto 26px; max-width: 760px;
}
.tc-body #order-standard_cart .domain-checker-bg { background: none; }
.tc-body #order-standard_cart .input-group-box { background: var(--tc-surface); border-radius: 10px; padding: 6px; box-shadow: none; }
.tc-body #order-standard_cart .domain-checker-container .btn { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff !important; }
.tc-body #order-standard_cart .tld-filters a, .tc-body #order-standard_cart .tld-filters .badge {
    background: var(--tc-surface); border: 1px solid var(--tc-line-2); color: var(--tc-ink-2); border-radius: 99px; padding: 5px 12px; font-weight: 650;
}
.tc-body #order-standard_cart .tld-filters a.active, .tc-body #order-standard_cart .tld-filters .badge-success { background: var(--tc-navy); border-color: var(--tc-navy); color: #fff; }
.tc-body #order-standard_cart .domain-pricing .tld-pricing-header div { background: var(--tc-surface-2); color: var(--tc-ink); border-color: var(--tc-line); }
.tc-body #order-standard_cart .domain-pricing .tld-row { background: var(--tc-surface); border-color: var(--tc-line); }
.tc-body #order-standard_cart .domain-pricing .tld-row.highlighted { background: var(--tc-surface-2); }
.tc-body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-4, .tc-body #order-standard_cart .domain-pricing .tld-pricing-header .col-4 { border-top: 3px solid var(--tc-primary); }
.tc-body #order-standard_cart .domain-promo-box {
    background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 22px; color: var(--tc-ink); box-shadow: var(--tc-shadow);
}
.tc-body #order-standard_cart .domain-promo-box h3 { color: var(--tc-ink); font-size: 1.1rem; }
.tc-body #order-standard_cart .domain-promo-box p { color: var(--tc-muted); }
.tc-body #order-standard_cart .domain-promo-box i { color: var(--tc-primary); background: var(--tc-primary-soft); border-radius: 10px; padding: 10px; font-size: 1.3em; }
.tc-body #order-standard_cart .order-summary, .tc-body #order-standard_cart .summary-container {
    background: radial-gradient(120% 140% at 100% 0%, var(--tc-navy-2) 0%, transparent 55%), var(--tc-navy); border-radius: var(--tc-radius); color: #fff; border: 0;
}
.tc-body #order-standard_cart .order-summary h2 { background: transparent; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tc-body #order-standard_cart .order-summary .total-due-today .amt { color: #fff; }
.tc-body #order-standard_cart .view-cart-items-header { background: var(--tc-navy); color: #fff; border-radius: var(--tc-radius) var(--tc-radius) 0 0; }
.tc-body #order-standard_cart .view-cart-items .item { background: var(--tc-surface); border-color: var(--tc-line); }
.tc-body #order-standard_cart .product-info, .tc-body #order-standard_cart .sub-heading span { background: var(--tc-surface); color: var(--tc-ink); }
.tc-body #order-standard_cart .sub-heading { border-color: var(--tc-line); }
.tc-body #order-standard_cart .panel, .tc-body #order-standard_cart .card { background: var(--tc-surface); border-color: var(--tc-line); }
.tc-body #order-standard_cart .cart-sidebar .list-group-item.active { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-body #order-standard_cart .field, .tc-body #order-standard_cart .form-control { background: var(--tc-surface); color: var(--tc-ink); border-color: var(--tc-line-2); }
.tc-body #order-standard_cart .domain-transfer-form, .tc-body #order-standard_cart .card.domain-transfer { max-width: 640px; margin: 0 auto; }

/* ---------- Boutique : onglets & offres (talcloud_cart) ---------- */
.tc-shop-tabs { display: flex; gap: 4px; padding: 4px; background: var(--tc-surface-3); border-radius: 10px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.tc-shop-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; color: var(--tc-ink-2) !important; font-weight: 650; font-size: 13.5px; white-space: nowrap; text-decoration: none !important; }
.tc-shop-tab:hover { background: var(--tc-surface); }
.tc-shop-tab.active { background: var(--tc-surface); color: var(--tc-ink) !important; box-shadow: var(--tc-shadow); }
.tc-shop-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tc-shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-shop-head h1 { font-size: 1.6rem; margin: 0 0 4px; }
.tc-shop-head p { color: var(--tc-muted); margin: 0; }
.tc-save-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--tc-ok-soft); color: var(--tc-ok); font-weight: 650; font-size: 13px; }
.tc-included { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; }
.tc-included > span:first-child { color: var(--tc-muted); font-weight: 600; }
.tc-included .tc-i { color: var(--tc-ok); }
.tc-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 34px; }
.tc-plan { display: flex !important; flex-direction: column; margin: 0; padding: 18px; position: relative; }
.tc-plan.is-featured { border-color: var(--tc-primary); box-shadow: 0 0 0 1px var(--tc-primary); }
.tc-plan-flag { position: absolute; top: -10px; right: 14px; background: var(--tc-primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.tc-plan h3 { font-size: 1.05rem; margin: 0 0 12px; }
.tc-specs { border-top: 1px solid var(--tc-line); margin-bottom: 12px; }
.tc-spec { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--tc-line); font-size: 12.5px; }
.tc-spec span { color: var(--tc-muted); }
.tc-spec strong { font-weight: 650; text-align: right; }
.tc-plan-desc { font-size: 12.5px; color: var(--tc-muted); margin-bottom: 12px; }
.tc-plan-from { font-size: 12px; color: var(--tc-muted); margin-top: auto; }
.tc-plan-price { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.tc-plan-price small { font-size: 12px; font-weight: 500; color: var(--tc-muted); }
.tc-plan-annual { font-size: 12px; color: var(--tc-ok); font-weight: 600; margin-bottom: 14px; min-height: 18px; }
.tc-plan .btn { margin-top: 4px; }
.tc-plan-stock { font-size: 12px; color: var(--tc-muted); margin-top: 8px; text-align: center; }
.tc-promo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line); margin-bottom: 30px; }
.tc-promo h2 { font-size: 1.35rem; margin-bottom: 8px; }
.tc-promo p { color: var(--tc-muted); }
.tc-promo ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.tc-promo li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 13.5px; }
.tc-promo li .tc-ico-tile { width: 30px; height: 30px; border-radius: 8px; color: var(--tc-primary); background: var(--tc-primary-soft); }
.tc-promo > *, .tc-faq > * { min-width: 0; }
.tc-promo-visual { border-radius: 16px; padding: 26px; background: radial-gradient(120% 140% at 0% 0%, var(--tc-navy-2) 0%, transparent 60%), var(--tc-navy); }
.tc-promo-visual img { border-radius: 10px; width: 100%; }
.tc-mock { background: var(--tc-surface); border-radius: 10px; overflow: hidden; color: var(--tc-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font-size: 12px; }
.tc-mock-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--tc-surface-3); }
.tc-mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.tc-mock-bar i:nth-child(2) { background: #fbbf24; }
.tc-mock-bar i:nth-child(3) { background: #34d399; }
.tc-mock-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 5px; background: var(--tc-surface); color: var(--tc-muted); font-size: 11px; }
.tc-mock-body { padding: 14px; display: grid; gap: 10px; }
.tc-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--tc-line); border-radius: 8px; }
.tc-mock-head { flex-wrap: wrap; }
.tc-mock-head strong { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tc-mock-head small { color: var(--tc-ok); font-weight: 600; }
.tc-mock-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-mock-actions span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; background: var(--tc-surface-2); font-weight: 600; font-size: 11px; }
.tc-mock-actions span:last-child { background: var(--tc-primary); color: #fff; }
.tc-mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-mock-tiles div { border: 1px solid var(--tc-line); border-radius: 8px; padding: 10px; }
.tc-mock-tiles b { display: block; font-size: 18px; margin-top: 4px; }
.tc-mock-tiles em { display: block; height: 4px; border-radius: 4px; margin-top: 8px; background: linear-gradient(90deg, var(--tc-primary) var(--w, 30%), var(--tc-surface-3) 0); }
.tc-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; margin-bottom: 20px; }
.tc-faq h2 { font-size: 1.2rem; }
.tc-faq-side p { color: var(--tc-muted); font-size: 13.5px; }
.tc-faq details { background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: 10px; margin-bottom: 8px; }
.tc-faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary .tc-i { transition: transform .2s; color: var(--tc-muted); }
.tc-faq details[open] summary .tc-i { transform: rotate(180deg); }
.tc-faq details > div { padding: 0 16px 14px; color: var(--tc-ink-2); font-size: 13.5px; }

/* ---------- État de l'infrastructure ---------- */
.tc-status-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 16px; border-left: 4px solid var(--tc-ok) !important; }
.tc-status-banner.is-partial { border-left-color: var(--tc-pending) !important; }
.tc-status-banner.is-down { border-left-color: var(--tc-danger) !important; }
.tc-status-banner .tc-dot { width: 12px; height: 12px; }
.tc-status-banner strong { display: block; font-size: 15px; }
.tc-status-banner span { color: var(--tc-muted); font-size: 12.5px; }
.tc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-ok); flex: none; }
.tc-dot.is-down { background: var(--tc-danger); }
.tc-dot.is-pending { background: var(--tc-pending); }
.tc-dot.is-maint { background: var(--tc-maint); }
.tc-dot.is-unknown { background: var(--tc-line-2); }
.tc-status-grid { columns: 2 380px; column-gap: 16px; }
.tc-sgroup { break-inside: avoid; padding: 0; overflow: hidden; display: inline-block; width: 100%; }
.tc-sgroup-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--tc-line); font-weight: 650; }
.tc-sgroup-count { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--tc-ok-soft); color: var(--tc-ok); }
.tc-sgroup-count.is-warn { background: var(--tc-warn-soft); color: var(--tc-warn); }
.tc-mon { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--tc-line); }
.tc-mon:last-child { border-bottom: 0; }
.tc-mon-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-mon-name div { display: grid; min-width: 0; }
.tc-mon-name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-mon-name small { color: var(--tc-muted); font-size: 11.5px; }
.tc-bars { display: flex; gap: 2px; height: 22px; }
.tc-bar { width: 4px; border-radius: 2px; background: var(--tc-ok); }
.tc-bar.is-down { background: var(--tc-danger); }
.tc-bar.is-pending { background: var(--tc-pending); }
.tc-bar.is-maint { background: var(--tc-maint); }
.tc-bar.is-empty { background: var(--tc-surface-3); }
.tc-mon-state { font-size: 12px; font-weight: 650; color: var(--tc-ok); text-align: right; }
.tc-mon-state.is-down { color: var(--tc-danger); }
.tc-mon-state.is-pending { color: var(--tc-pending); }
.tc-mon-state.is-maint { color: var(--tc-maint); }
.tc-mon-state.is-unknown { color: var(--tc-muted); }
.tc-status-note { font-size: 12px; color: var(--tc-muted); margin-top: 6px; }

/* ---------- Looking Glass ---------- */
.tc-lg-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 26px 28px; background: linear-gradient(110deg, var(--tc-surface) 40%, var(--tc-surface-2)) !important; }
.tc-lg-hero h1 { font-size: 1.55rem; margin: 0 0 8px; }
.tc-lg-hero p { color: var(--tc-ink-2); margin: 0; }
.tc-lg-route { display: flex; align-items: center; justify-content: center; gap: 0; }
.tc-lg-node { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; }
.tc-lg-node strong { font-size: 13px; }
.tc-lg-node span { color: var(--tc-muted); }
.tc-lg-node .tc-ico-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--tc-navy); color: #fff; }
.tc-lg-node.is-you .tc-ico-tile { background: var(--tc-surface); color: var(--tc-ink); border: 1px solid var(--tc-line-2); }
.tc-lg-wire { flex: 1; max-width: 160px; height: 2px; margin: 0 10px 40px; background-image: linear-gradient(90deg, var(--tc-line-2) 50%, transparent 0); background-size: 8px 2px; position: relative; }
.tc-lg-wire::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-primary); animation: tc-wire 2.4s linear infinite; }
@keyframes tc-wire { to { left: calc(100% - 8px); } }
@media (prefers-reduced-motion: reduce) { .tc-lg-wire::after { animation: none; left: 50%; } }
.tc-lg-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tc-lg-type { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0; border: 1px solid var(--tc-line-2); border-radius: 10px; cursor: pointer; }
.tc-lg-type input { position: absolute; opacity: 0; pointer-events: none; }
.tc-lg-type div { display: grid; }
.tc-lg-type small { color: var(--tc-muted); font-weight: 500; }
.tc-lg-type:has(input:checked) { border-color: var(--tc-primary); background: var(--tc-primary-soft); box-shadow: 0 0 0 1px var(--tc-primary); }
.tc-lg-form { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--tc-line-2); border-radius: 10px; background: var(--tc-surface); align-items: center; }
.tc-lg-form .tc-i { margin-left: 8px; color: var(--tc-muted); }
.tc-lg-form input { flex: 1; min-width: 0; border: 0; background: none; color: var(--tc-ink); font-size: 15px; outline: none; padding: 6px; }
.tc-lg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tc-lg-out { margin-top: 16px; }
.tc-lg-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.tc-lg-sum div { background: var(--tc-surface-2); border-radius: 10px; padding: 12px; display: grid; }
.tc-lg-sum span { font-size: 12px; color: var(--tc-muted); }
.tc-lg-sum strong { font-size: 1.2rem; }
.tc-lg-pre { background: #0b0d16; color: #dfe3f5; border-radius: 10px; padding: 14px 16px; font: 12.5px/1.6 var(--tc-mono); max-height: 420px; overflow: auto; white-space: pre; margin: 0; }
.tc-lg-note { text-align: center; color: var(--tc-muted); font-size: 12px; margin-top: 12px; }

/* ==========================================================================
   Authentification (split screen)
   ========================================================================== */
.tc-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.tc-auth-aside {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 44px 48px 32px; color: #fff; overflow: hidden;
    background: radial-gradient(90% 70% at 100% 0%, rgba(51, 70, 255, .45) 0%, transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(255, 92, 56, .16) 0%, transparent 60%), var(--tc-navy);
}
.tc-auth-pitch { margin: auto 0; max-width: 560px; }
.tc-auth-pitch .tc-kicker { color: #9aa6ff; }
.tc-auth-pitch h1 { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.07; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; }
.tc-auth-lede { color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.55; max-width: 470px; margin-bottom: 26px; }
.tc-auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; }
.tc-auth-stats div { display: grid; gap: 2px; padding: 16px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.tc-auth-stats .tc-i { color: #9aa6ff; margin-bottom: 10px; }
.tc-auth-stats strong { font-size: 15px; }
.tc-auth-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.tc-auth-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.tc-auth-bullets li { display: flex; gap: 12px; }
.tc-auth-bullets .tc-i { color: #9aa6ff; margin-top: 2px; }
.tc-auth-bullets div { display: grid; font-size: 13.5px; }
.tc-auth-bullets span { color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.tc-auth-aside-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.tc-auth-aside-foot a { color: #fff; font-weight: 650; }
.tc-live { display: inline-flex; align-items: center; gap: 8px; color: #4ade80; }
.tc-live span, .tc-auth-aside-foot .tc-live { color: rgba(255, 255, 255, .8); }
.tc-live i { color: #4ade80; }
.tc-auth-main { background: var(--tc-surface); display: flex; flex-direction: column; padding: 20px 32px; min-width: 0; }
.tc-auth-top { display: flex; justify-content: flex-end; min-height: 38px; }
.tc-auth-inner { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 0; }
.tc-auth-inner #main-body, .tc-auth-inner .primary-content { width: 100%; max-width: 460px; margin: 0 auto; }
.tc-page-clientregister .tc-auth-inner #main-body, .tc-page-clientregister .tc-auth-inner .primary-content { max-width: 640px; }
.tc-auth-title { font-size: 1.75rem; margin: 0 0 6px; }
.tc-auth-sub { color: var(--tc-muted); margin-bottom: 22px; }
.tc-auth-social { display: flex; justify-content: center; }
.tc-auth-social .social-signin-btns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tc-or { display: flex; align-items: center; gap: 12px; color: var(--tc-muted); font-size: 12px; margin: 18px 0; }
.tc-or::before, .tc-or::after { content: ''; flex: 1; height: 1px; background: var(--tc-line); }
.tc-or-muted { margin-top: 22px; }
.tc-input-ico { position: relative; }
.tc-input-ico > .tc-i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tc-muted); z-index: 5; pointer-events: none; }
.tc-input-ico.input-group { display: flex; flex-wrap: nowrap; align-items: stretch; }
.tc-input-ico .form-control { padding-left: 38px; height: 44px; flex: 1 1 auto; min-width: 0; }
.tc-input-ico .input-group-append .btn { height: 44px; border-left: 0; border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0; }
.tc-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.tc-link-sm { font-size: 12.5px; font-weight: 650; }
.tc-remember { margin: 4px 0 18px; }
.tc-remember label { font-weight: 500; color: var(--tc-ink-2); }
.tc-auth-help { display: flex; justify-content: center; gap: 22px; font-size: 12.5px; padding-top: 10px; }
.tc-auth-help a { color: var(--tc-ink-2); }
/* Formulaire d'inscription natif (Twenty-One) dans le panneau droit */
.tc-body-auth .primary-content > .card, .tc-body-auth #registration .card, .tc-body-auth .card { border: 0; box-shadow: none; background: transparent; }
.tc-body-auth .card-body { padding: 0 0 6px; }
.tc-body-auth #registration .card-title, .tc-body-auth .card .card-title { font-size: 15px; padding-top: 18px; border-top: 1px solid var(--tc-line); }
.tc-body-auth #registration .card:first-of-type .card-title { border-top: 0; padding-top: 0; }
.tc-body-auth .sub-heading, .tc-body-auth .prepend-icon .field-icon { color: var(--tc-muted); }
.tc-body-auth .form-control { height: 42px; }
.tc-body-auth #registration .btn-primary[type="submit"], .tc-body-auth input[type="submit"].btn-primary { width: 100%; height: 46px; font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
    .tc-dash { grid-template-columns: minmax(0, 1fr); }
    .tc-grid-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
    .tc-side { transform: translateX(-100%); transition: transform .25s ease; box-shadow: none; }
    .tc-side-open .tc-side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .3); }
    .tc-side .tc-side-close { display: inline-grid; }
    .tc-side-open .tc-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(8, 10, 25, .45); }
    .tc-main { margin-left: 0; }
    .tc-top { padding: 0 12px; }
    .tc-burger, .tc-top-brand { display: inline-flex !important; }
    .tc-top-brand .tc-brand-word { display: none; }
    .tc-container { padding: 0 16px; }
    .tc-auth { grid-template-columns: 1fr; }
    .tc-auth-aside { position: relative; height: auto; padding: 28px 20px; }
    .tc-auth-pitch { margin: 28px 0; }
    .tc-auth-stats, .tc-auth-bullets, .tc-auth-aside-foot { display: none; }
    .tc-auth-pitch h1 { font-size: 2rem; }
    .tc-auth-main { padding: 16px; }
    .tc-auth-inner { align-items: flex-start; padding: 14px 0 28px; }
    .tc-auth-pitch { margin: 18px 0 4px; }
    .tc-auth-pitch h1 { font-size: 1.6rem; }
    .tc-promo, .tc-faq, .tc-lg-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .tc-user-name, .tc-lang-name, .tc-hide-xs, .tc-body .btn.tc-hide-xs, .tc-admin-pill span { display: none; }
    .tc-stats { grid-template-columns: 1fr 1fr; gap: 14px 0; }
    .tc-stats a:nth-child(3) { border-left: 0; padding-left: 0; }
    .tc-verify { flex-wrap: wrap; }
    .tc-promo-row { flex-wrap: wrap; }
    .tc-promo-visual { padding: 14px; }
    .tc-promo-row .tc-promo-txt { flex-basis: calc(100% - 54px); }
    .tc-promo-row .tc-more { margin-left: 54px; }
    .tc-verify-text { flex-basis: calc(100% - 90px); }
    .tc-mon { grid-template-columns: minmax(0, 1fr) 60px; }
    .tc-bars { grid-column: 1 / -1; grid-row: 2; overflow: hidden; }
    .tc-lg-sum { grid-template-columns: 1fr 1fr; }
    .tc-lg-types { grid-template-columns: 1fr; }
    .tc-footer .tc-container { flex-direction: column; align-items: flex-start; }
    .tc-steps li:not(:last-child)::after { width: 18px; }
    .tc-steps .tc-step-l { display: none; }
    .tc-steps .is-current .tc-step-l { display: inline; }
}

/* ---- Pages Twenty-One restylées (revue complète) ---- */
/* .w-hidden doit gagner sur .tc-body .btn { display:inline-flex } (boutons 2FA, etc.) */
.tc-body .w-hidden, .tc-body .btn.w-hidden { display: none; }

/* Mot de passe oublié : carte pleine largeur dans le panneau d'auth */
.tc-auth-main .mw-540 { width: 100%; max-width: 420px; border: 0; box-shadow: none; background: transparent; }
.tc-auth-main .mw-540 > .card-body { padding: 0 !important; }

/* Détail d'un service */
.tc-body .product-status { border-radius: var(--tc-radius); overflow: hidden; background: var(--tc-surface-2); border: 1px solid var(--tc-line); }
.tc-body .product-status .product-icon { padding: 26px 16px 18px; background: transparent; }
.tc-body .product-status .product-icon .fa-stack .fa-circle { color: var(--tc-navy); }
.tc-body .product-status .product-icon .fa-stack { font-size: 22px; }
.tc-body .product-status .product-icon h3 { font-size: 1.15rem; margin: 12px 0 2px; }
.tc-body .product-status .product-icon h4 { font-size: .85rem; color: var(--tc-muted); font-weight: 600; margin: 0; }
.tc-body .product-status-text { background: var(--tc-ok-soft) !important; color: var(--tc-ok) !important; font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 8px; }
.tc-body .product-status-suspended .product-status-text, .tc-body .product-status-terminated .product-status-text, .tc-body .product-status-cancelled .product-status-text { background: var(--tc-danger-soft) !important; color: var(--tc-danger) !important; }
.tc-body .product-status-pending .product-status-text { background: var(--tc-warn-soft) !important; color: var(--tc-warn) !important; }
.tc-page-clientareaproductdetails .text-center h4, .tc-page-clientareadomaindetails .tab-content h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--tc-muted); font-weight: 700; margin: 14px 0 3px; }
.tc-page-clientareaproductdetails .btn-block.btn-danger { background: transparent; color: var(--tc-danger) !important; border-color: var(--tc-danger); }
.tc-page-clientareaproductdetails .btn-block.btn-danger:hover { background: var(--tc-danger-soft); }

/* Affiliation : tuiles de statistiques */
.tc-body .affiliate-stat { background: var(--tc-surface) !important; border: 1px solid var(--tc-line) !important; color: var(--tc-muted) !important; border-radius: var(--tc-radius); padding: 18px 20px; font-size: 12.5px; font-weight: 600; text-align: left; box-shadow: var(--tc-shadow); }
.tc-body .affiliate-stat i { font-size: 18px !important; width: 40px; height: 40px; border-radius: 10px; display: inline-flex !important; align-items: center; justify-content: center; float: right; color: var(--tc-primary) !important; background: var(--tc-primary-soft); }
.tc-body .affiliate-stat span { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1.15; color: var(--tc-ink); }

/* Annonces */
.tc-body .announcement h1 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.tc-body .announcement h1 a { color: var(--tc-ink); }
.tc-body .announcement h1 a:hover { color: var(--tc-primary); }
.tc-body .announcements .announcement article { border-left: 3px solid var(--tc-primary-line); background: var(--tc-surface-2); color: var(--tc-ink-2); border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0; }

/* Panier Standard Cart */
.tc-body #order-standard_cart .summary-container h2, .tc-body #order-standard_cart .order-summary h2 { font-weight: 700; font-size: 1.05rem; }
.tc-body #order-standard_cart .btn-checkout { width: 100%; }
.tc-body #order-standard_cart .btn-empty-cart, .tc-body #order-standard_cart .empty-cart .btn { background: transparent; border: 0; color: var(--tc-danger) !important; }

/* Tableaux Twenty-One : défilement horizontal au lieu d'être coupés sur mobile */
.tc-body .table-container, .tc-body .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tc-top .btn { white-space: nowrap; }
.tc-auth-main .row.justify-content-center { margin-left: 0; margin-right: 0; }
@media (max-width: 420px) {
    .tc-top-actions { gap: 0; }
    .tc-top .tc-icon-btn { width: 32px; }
    .tc-lang > .tc-i, .tc-user > .tc-i { display: none; }
    .tc-lang, .tc-user { padding-left: 6px; padding-right: 6px; }
    .tc-top .btn-sm { padding: 5px 9px; font-size: 12px; }
}

/* Fonds codés en dur par Twenty-One / Standard Cart → variables du thème (clair et sombre) */
.tc-body .bg-white { background-color: var(--tc-surface) !important; }
.tc-body .bg-light { background-color: var(--tc-surface-2) !important; }
.tc-body tr.masspay-total td { background: var(--tc-surface-2); }
.tc-body pre { background: var(--tc-surface-2); color: var(--tc-ink); border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm); padding: 12px 14px; }
.tc-body #order-standard_cart .nav-tabs .nav-link, .tc-body #order-standard_cart .nav-tabs .nav-link.active { background: none !important; }
.tc-body .custom-file-label { background-color: var(--tc-surface) !important; color: var(--tc-ink-2); border-color: var(--tc-line-2); }
.tc-body .custom-file-label::after { background: var(--tc-surface-2); color: var(--tc-ink-2); }
.tc-body .alert-link { color: inherit; text-decoration: underline; }
.tc-body .dataTables_wrapper table.table-list thead th.sorting_asc, .tc-body .dataTables_wrapper table.table-list thead th.sorting_desc { background-color: var(--tc-surface-2); color: var(--tc-ink); }
.tc-body .label-info, .tc-body .badge-info { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-body .text-warning { color: var(--tc-warn) !important; }
.tc-body .item-domain, .tc-body #order-standard_cart .view-cart-items .item-domain { color: var(--tc-muted); }

/* Tableau de bord : panneaux ajoutés par d'autres modules */
.tc-panel-extra .tc-panel-body { color: var(--tc-ink-2, var(--tc-ink)); overflow-wrap: anywhere; }
.tc-panel-extra .tc-panel-body > :last-child { margin-bottom: 0; }
.tc-list li > .tc-list-main:only-child { display: block; padding: 8px; }
.tc-body .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success, .tc-body .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success { background: #15803d; color: #fff; }

/* Ajustements relevés sur une vraie instance WHMCS 9.1 */
.tc-body #order-standard_cart .cart-sidebar { display: none; }
.tc-body #order-standard_cart .cart-body { width: 100%; float: none; }
.tc-body .home-domain-search .input-group-wrapper .advanced-input .btn-success { background: var(--tc-surface); border-color: var(--tc-line); color: var(--tc-ink) !important; }
.tc-list-main .label, .tc-list-main .badge { justify-self: start; width: auto; margin-top: 4px; }
.tc-auth { background: var(--tc-navy); }

/* Échelle alignée sur la maquette de référence : texte 15px, menu plus aéré, tableau de bord large */
body.tc-body, .tc-body .tooltip, .tc-body .popover { font-size: 15px; }
.tc-nav-link { font-size: 14.5px; padding: 11px 12px; min-height: 44px; }
.tc-nav-sublink { font-size: 14px; min-height: 38px; }
.tc-side { padding: 22px 16px 18px; }
.tc-side-search { margin-bottom: 22px; }
.tc-top { min-height: 72px; }
.tc-content { padding-top: 28px; }
.tc-page-clientareahome .tc-container, .tc-page-clientareahome .tc-footer .tc-container { max-width: 1560px; }
.tc-dash { gap: 18px; }
.tc-dash .tc-card { margin-bottom: 18px; padding: 22px 24px; }
.tc-dash .tc-hello { padding: 26px 28px; }
.tc-hello h1 { font-size: 1.9rem; font-weight: 750; }
.tc-hello-top { padding-bottom: 22px; }
.tc-stats { padding-top: 6px; }
.tc-stats span { font-size: 13.5px; }
.tc-stats strong { font-size: 2rem; font-weight: 750; }
.tc-dash .tc-credit { padding: 24px 26px; min-height: 228px; }
.tc-credit-label { font-size: 13.5px; }
.tc-credit-amount { font-size: 2.3rem; font-weight: 750; }
.tc-card-head h3, .tc-h3 { font-size: 16px; }
.tc-body .btn { font-size: 14.5px; }
.tc-body .btn-sm { font-size: 13.5px; }
@media (max-width: 767.98px) {
    .tc-dash .tc-card, .tc-dash .tc-hello, .tc-dash .tc-credit { padding: 18px; }
    .tc-hello h1 { font-size: 1.55rem; }
    .tc-credit-amount { font-size: 1.9rem; }
    .tc-top { min-height: 0; }
}

/* Finitions alignées sur la maquette : typographie, tableaux, grilles */
.tc-body h1, .tc-body h2, .tc-body h3, .tc-body h4, .tc-body h5, .tc-body h6,
.tc-brand-word, .tc-stats strong, .tc-credit-amount, .tc-plan-price, .tc-af-input input, .tc-af-summary strong, .tc-auth-title { font-family: var(--tc-font-display); }
.tc-body h1, .tc-hello h1, .tc-stats strong, .tc-credit-amount { font-weight: 800; letter-spacing: -.02em; }
.tc-pill.active { background: var(--tc-primary); border-color: var(--tc-primary); }
.tc-body .dataTables_wrapper .dataTables_info, .tc-body .dataTables_wrapper .dataTables_length { display: none; }
.tc-body .dataTables_wrapper .dataTables_paginate.tc-single { display: none; }
.tc-body .dataTables_wrapper table.table-list thead th, .tc-body .dataTables_wrapper table.table-list thead th.sorting_asc, .tc-body .dataTables_wrapper table.table-list thead th.sorting_desc { background-color: transparent; color: var(--tc-muted); font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--tc-line); }
.tc-body .dataTables_wrapper table.table-list tbody td.sorting_1, .tc-body .dataTables_wrapper table.table-list tbody td.sorting_2 { background-color: transparent; }
.tc-body .dataTables_wrapper .dataTables_empty { padding: 26px 16px; color: var(--tc-muted); }
.tc-dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-dept { padding: 20px 22px; }
.tc-status-grid { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tc-status-grid .tc-sgroup { margin-bottom: 0; }
.tc-af-input input { font-size: 2.6rem; font-weight: 800; }
.tc-page-affiliatessignup .primary-content .card { text-align: center; padding: 26px 20px; }
.tc-page-affiliatessignup .primary-content .card ul { display: inline-block; text-align: left; max-width: 560px; }
@media (max-width: 991.98px) { .tc-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-status-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .tc-dept-grid { grid-template-columns: 1fr; } .tc-af-input input { font-size: 2rem; } }
@media (max-width: 575.98px) {
    .tc-body .primary-content .btn-group { flex-wrap: wrap; max-width: 100%; }
    .tc-body .btn-group-sm > .btn { font-size: 13px; padding-left: 8px; padding-right: 8px; }
}

/* ==========================================================================
   Identité TalCloud (cohérence avec talcloud.fr) : Instrument Sans, fond papier,
   arrondis 16px, boutons lumineux, dégradé bleu → violet, en-tête translucide.
   ========================================================================== */
:root { --tc-grad: linear-gradient(100deg, #3346ff 0%, #7c4dff 55%, #b04dff 100%); --tc-glow: rgba(51, 70, 255, .16); --tc-top-bg: rgba(246, 247, 251, .78); }
:root[data-theme="dark"] { --tc-grad: linear-gradient(100deg, #7d8bff 0%, #a78bfa 55%, #d08bff 100%); --tc-glow: rgba(107, 123, 255, .22); --tc-top-bg: rgba(10, 11, 17, .72); }

.tc-body h1, .tc-body h2, .tc-body h3, .tc-hello h1, .tc-stats strong, .tc-credit-amount, .tc-af-input input { font-weight: 650; letter-spacing: -.03em; }
.tc-kicker { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

/* Boutons façon site : arrondi 12px, halo sur le bouton principal */
.tc-body .btn { border-radius: 12px; transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s, border-color .2s, box-shadow .2s; }
.tc-body .btn-sm { border-radius: 10px; }
.tc-body .btn-primary { box-shadow: 0 8px 24px var(--tc-glow); }
.tc-body .btn-primary:hover { box-shadow: 0 12px 30px var(--tc-glow); transform: translateY(-1px); }

/* En-tête translucide */
.tc-top { background: var(--tc-top-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }

/* Menu : rubriques nommées, entrée active en pastille pleine */
.tc-nav-title { display: block; padding: 0 12px; margin: 4px 0 8px; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--tc-muted); }
.tc-nav-list + .tc-nav-title { margin-top: 22px; }
.tc-nav-link { border-radius: 12px; }
.tc-nav-link.active { background: var(--tc-primary); color: #fff !important; box-shadow: 0 8px 20px var(--tc-glow); }
.tc-nav-link.active .tc-i { color: #fff; }
.tc-nav-sublink.active::before { display: none; }
.tc-nav-sublink.active { background: var(--tc-primary-soft); color: var(--tc-primary) !important; }

/* Tableau de bord : salutation en tête de page, compteurs en tuiles */
.tc-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 4px 0 22px; }
.tc-welcome .tc-kicker { margin-bottom: 8px; }
.tc-welcome h1 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.08; margin: 0 0 12px; }
.tc-welcome .tc-hello-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; padding: 0; }
.tc-stats a.tc-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 20px; margin: 0; border-left: 1px solid var(--tc-line); transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s, box-shadow .2s; }
.tc-stats a.tc-card:first-child { padding-left: 20px; border-left: 1px solid var(--tc-line); }
.tc-stats a.tc-card:hover { transform: translateY(-2px); border-color: var(--tc-primary-line); box-shadow: 0 12px 30px var(--tc-glow); }
.tc-stats a.tc-card .tc-ico-tile { grid-row: 1 / span 3; background: var(--tc-primary-soft); color: var(--tc-primary); border-radius: 12px; width: 44px; height: 44px; }
.tc-stats a.tc-card span:not(.tc-ico-tile) { font-size: 13px; font-weight: 600; color: var(--tc-muted); }
.tc-stats a.tc-card strong { font-size: 1.9rem; line-height: 1.1; }
.tc-stats a.tc-card small { font-size: 12.5px; color: var(--tc-muted); }

/* Carte crédit : encre TalCloud et halo en dégradé, sans motif concentrique */
.tc-navy { background: #0c0d14 !important; }
.tc-credit::after { right: -60px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: var(--tc-grad); filter: blur(60px); opacity: .55; }
.tc-credit > * { position: relative; z-index: 1; }
.tc-af-summary { position: relative; overflow: hidden; }
.tc-af-summary::after { content: ''; position: absolute; right: -70px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%; background: var(--tc-grad); filter: blur(60px); opacity: .5; pointer-events: none; }
.tc-af-summary > * { position: relative; z-index: 1; }

/* Filtres en pastilles : contour au repos, plein en sélection */
.tc-pill { border-radius: 999px; }
.tc-plan.is-featured { box-shadow: 0 12px 30px var(--tc-glow); }
.tc-plan-flag { background: var(--tc-grad); }
.tc-steps li.is-current .tc-step-n { background: var(--tc-primary); }

@media (max-width: 1199.98px) { .tc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .tc-stats { gap: 10px; } .tc-stats a.tc-card { padding: 14px; column-gap: 10px; } .tc-stats a.tc-card .tc-ico-tile { width: 36px; height: 36px; } .tc-stats a.tc-card strong { font-size: 1.5rem; } .tc-welcome h1 { font-size: 1.7rem; } }

/* Fond texturé : halos bleu et violet du site, fixes derrière le contenu */
body.tc-body.primary-bg-color:not(.tc-body-auth) {
    background:
        radial-gradient(60vw 60vh at 30% -8%, rgba(51, 70, 255, .22), transparent 70%),
        radial-gradient(50vw 65vh at 100% 12%, rgba(176, 77, 255, .2), transparent 70%),
        radial-gradient(55vw 50vh at 45% 108%, rgba(124, 77, 255, .13), transparent 70%),
        var(--tc-bg);
    background-attachment: fixed;
}
