/* ==========================================================================
   AXION WAN PULSE — éléments propres à la supervision, posés sur le socle AXION PILOT (pilot.css).
   Les couleurs suivent la palette choisie dans 🎨 Apparence (variables de pilot.css).
   ========================================================================== */
:root {
  --night: #0f1b33; --night-2: #172644; --night-3: #22345a;
  --mist: var(--fond);
  --surface: var(--carte);
  --line: var(--bord);
  --line-strong: var(--champ-bord);
  --ink: var(--texte);
  --ink-2: var(--texte-2);
  --muted: var(--texte-2);
  --accent: var(--bleu);
  --accent-ink: var(--bleu-fonce);
  --accent-soft: var(--bleu-clair);
  --ok: var(--vert); --ok-soft: var(--vert-clair);
  --warn: var(--orange); --warn-soft: var(--orange-clair);
  --bad: var(--rouge); --bad-soft: var(--rouge-clair);
  --idle: var(--texte-3); --idle-soft: var(--gris-clair);
  --radius-lg: calc(12px * var(--arrondi)); --radius: calc(8px * var(--arrondi)); --radius-sm: calc(6px * var(--arrondi));
  --shadow: var(--ombre); --shadow-pop: var(--ombre-forte);
}
[hidden] { display: none !important; }
.tally b, output, time, .facts dd, table.data td, .overview-sub { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- Composants au format AXION PILOT ---------- */
.lede { color: var(--texte-2); margin: 2px 0 0; }
.page-head .lede { color: var(--texte-2); margin-top: 2px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--texte-2); font-weight: 500; margin-bottom: 10px; }
.back .icon { width: 16px; height: 16px; }
.wp-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn { gap: 6px; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--bleu); border-color: var(--bleu); color: var(--sur-bleu); }
.btn-primary:hover { background: var(--bleu-fonce); }
.btn-danger-solid { background: var(--rouge); border-color: var(--rouge); color: var(--sur-rouge); }
.btn-danger-solid:hover { filter: brightness(.92); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--gris-clair); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.panel { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.panel-head h2 { font-size: 1.1rem; margin: 0; }
.panel-head .hint { color: var(--texte-2); font-size: .85rem; }
.panel-body { padding: 14px 16px 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--pilule);
  font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--gris-clair); color: var(--texte-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--texte-3); }
.st-up .pill, .pill.st-up, .st-playing .pill, .pill.st-playing { background: var(--vert-clair); color: var(--vert); }
.st-up .pill::before, .pill.st-up::before, .pill.st-playing::before { background: var(--vert); }
.st-unstable .pill, .pill.st-unstable, .pill.st-recovering, .pill.st-stopped { background: var(--orange-clair); color: var(--orange); }
.pill.st-unstable::before, .pill.st-recovering::before, .pill.st-stopped::before { background: var(--orange); }
.st-down .pill, .pill.st-down { background: var(--rouge-clair); color: var(--rouge); }
.st-down .pill::before, .pill.st-down::before { background: var(--rouge); }
.pill.st-maintenance, .pill.st-paused { background: var(--bleu-clair); color: var(--bleu-fonce); }
.pill.st-maintenance::before, .pill.st-paused::before { background: var(--bleu); }
.notice { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 16px 14px; border-radius: calc(6px * var(--arrondi)); border: 1px solid color-mix(in srgb, var(--bleu) 25%, var(--carte)); background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 500; }
.notice .grow { flex: 1; }
.notice.warn { background: var(--orange-clair); border-color: color-mix(in srgb, var(--orange) 30%, var(--carte)); color: color-mix(in srgb, var(--orange) 80%, var(--texte)); }
.notice.bad { background: var(--rouge-clair); border-color: color-mix(in srgb, var(--rouge) 28%, var(--carte)); color: color-mix(in srgb, var(--rouge) 75%, var(--texte)); }
.notice .icon { width: 19px; height: 19px; }
.callout { padding: 10px 14px; border-radius: calc(6px * var(--arrondi)); background: var(--surface-2); border: 1px solid var(--bord); color: var(--texte-2); }
.callout b { color: var(--texte); }
.callout.warn { background: var(--orange-clair); border-color: color-mix(in srgb, var(--orange) 30%, var(--carte)); color: color-mix(in srgb, var(--orange) 80%, var(--texte)); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--texte-2); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 74px 12px 1fr; gap: 10px; font-size: .88rem; padding: 6px 0; }
.timeline time { color: var(--texte-2); font-size: .8rem; padding-top: 1px; }
.timeline .tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--texte-3); }
.timeline .lv-success .tl-dot { background: var(--vert); }
.timeline .lv-warning .tl-dot { background: var(--orange); }
.timeline .lv-danger .tl-dot { background: var(--rouge); }
.timeline .src { color: var(--texte-2); }
.panel > .table-wrap { margin: 0; padding: 0; }
table.data th, table.data td { vertical-align: middle; padding: 10px 12px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--survol); }
table.data .num, table.data th.num { text-align: right; }
table.data .center, table.data th.center { text-align: center; }
.cell-main { font-weight: 600; color: var(--texte); }
.cell-sub { color: var(--texte-2); font-size: .82rem; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.status-ok { color: var(--vert); font-weight: 600; }
.status-off { color: var(--texte-2); }
.pager { display: flex; justify-content: center; gap: 6px; padding: 14px; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--rayon); display: grid; place-items: center; border: 1px solid var(--bord); background: var(--carte); color: var(--texte-2); font-weight: 600; }
.pager .on { background: var(--bleu); border-color: var(--bleu); color: var(--sur-bleu); }
.pager a:hover { text-decoration: none; background: var(--survol); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .field > .label { font-weight: 500; }
.field .help { color: var(--texte-2); font-size: .82rem; }
.input, select.input, textarea.input { width: 100%; }
.input[readonly] { background: var(--surface-2); color: var(--texte-2); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.field-error { color: var(--rouge); font-size: .85rem; font-weight: 500; }
.errors { padding: 10px 14px; border-radius: calc(6px * var(--arrondi)); background: var(--rouge-clair); border: 1px solid color-mix(in srgb, var(--rouge) 28%, var(--carte)); color: color-mix(in srgb, var(--rouge) 75%, var(--texte)); margin-bottom: 16px; }
.errors ul { margin: 4px 0 0; padding-left: 18px; }
.switch { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--bord); }
.switch:first-child { border-top: 0; padding-top: 0; }
.switch b { display: block; font-weight: 600; color: var(--texte); }
.switch span { color: var(--texte-2); font-size: .88rem; }
.toggle { position: relative; width: 46px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle i { position: absolute; inset: 0; border-radius: 99px; background: var(--champ-bord); cursor: pointer; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + i { background: var(--vert); }
.toggle input:checked + i::after { transform: translateX(22px); }
.toggle input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--bleu) 40%, transparent); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--bord); border-radius: var(--rayon); cursor: pointer; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--bleu); }
.form-foot { display: flex; justify-content: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--bord); background: var(--surface-2); border-radius: 0 0 var(--rayon) var(--rayon); }
.copy-line { display: flex; gap: 8px; }
.empty { text-align: center; padding: 40px 20px; background: var(--carte); border: 1px dashed var(--champ-bord); border-radius: var(--rayon); color: var(--texte-2); }
.empty h3 { color: var(--texte); font-size: 1.1rem; margin-bottom: 6px; }
.empty .wp-actions { margin-top: 16px; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--rayon); border: 0; display: inline-grid; place-items: center; cursor: pointer; background: transparent; color: inherit; }
.icon-btn:hover { background: var(--gris-clair); }

/* ---------- Fenêtres et messages (au format des fenêtres du CRM) ---------- */
.modal-root { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal-root.open { display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); animation: fade .15s ease-out; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--carte); color: var(--texte); border-radius: calc(14px * var(--arrondi)); box-shadow: var(--ombre-forte); animation: pop .16s ease-out; }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 0; }
.modal-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bleu-clair); color: var(--bleu); }
.modal-icon.danger { background: var(--rouge-clair); color: var(--rouge); }
.modal-icon.warn { background: var(--orange-clair); color: var(--orange); }
.modal-icon .icon { width: 22px; height: 22px; }
.modal-head h3 { font-size: 18px; margin: 2px 0 0; }
.modal-head p { color: var(--texte-2); margin: 6px 0 0; }
.modal-close { margin-left: auto; color: var(--texte-2); }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: center; gap: 10px; padding: 14px 22px 20px; }
.modal-foot .btn { min-width: 130px; }
.choice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { height: 42px; border-radius: var(--rayon); border: 1px solid var(--champ-bord); background: var(--carte); font-weight: 600; cursor: pointer; color: var(--texte); }
.choice:hover { border-color: var(--bleu); color: var(--bleu-fonce); }
.choice.on { background: var(--bleu); border-color: var(--bleu); color: var(--sur-bleu); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 420px; padding: 12px 16px; border-radius: var(--rayon); background: var(--toast); color: #fff; box-shadow: var(--ombre-forte); animation: slide .2s ease-out; }
.toast .icon { width: 19px; height: 19px; margin-top: 1px; }
.toast.success .icon { color: #4fd6a2; }
.toast.error .icon { color: #ff8a8a; }
.toast.info .icon { color: #8fb0ff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes slide { from { opacity: 0; transform: translateY(10px); } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .form-grid, .checks { grid-template-columns: 1fr; }
  .choice-list { grid-template-columns: repeat(2, 1fr); }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .hide-mobile { display: none !important; }
  .notice { margin: 0 12px 12px; }
}

/* ---------- Superviseur (pied du menu, en-tête) ---------- */
.sup-card { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--rayon); background: color-mix(in srgb, var(--entete-texte) 6%, transparent); border: 1px solid color-mix(in srgb, var(--entete-texte) 10%, transparent); color: var(--entete-texte); }
.sup-card b { display: block; font-size: .82rem; font-weight: 600; line-height: 1.25; }
.sup-card small { color: var(--entete-texte-2); font-size: .76rem; }
.sup-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--vert); animation: ping 2s infinite; }
.sup-card.is-late .sup-dot { background: var(--orange); animation: none; }
.sup-card.is-down .sup-dot { background: var(--rouge); animation: none; }
html.lateral-reduit .lateral .sup-card span:last-child { display: none; }
html.lateral-reduit .lateral .sup-card { justify-content: center; padding: 9px 0; }
.notif-btn { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border-radius: var(--rayon); cursor: pointer; border: 1px dashed color-mix(in srgb, var(--bleu) 45%, transparent); background: color-mix(in srgb, var(--bleu) 12%, transparent); color: var(--entete-texte); font-size: .8rem; font-weight: 500; text-align: left; }
.notif-btn .icon { width: 16px; height: 16px; }
html.lateral-reduit .lateral .notif-btn span { display: none; }
.lat-supervision { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 8px; }

/* ---------- Tableau de bord ---------- */

.overview {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 26px 30px; margin-bottom: 26px;
  background: var(--night); color: #fff; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.overview::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59,107,255,.35), transparent);
  pointer-events: none;
}
.overview-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.overview-title .of { color: #8fa0c0; font-weight: 500; }
.overview-sub { color: #aebbd4; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(20,166,114,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(20,166,114,.55); } 70% { box-shadow: 0 0 0 10px rgba(20,166,114,0); } 100% { box-shadow: 0 0 0 0 rgba(20,166,114,0); } }
.tally { display: flex; gap: 10px; position: relative; z-index: 1; }
.tally div {
  min-width: 112px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.tally b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.tally span { color: #aebbd4; font-size: 13px; }
.tally .t-ok b { color: #4fd6a2; }
.tally .t-warn b { color: #ffbe55; }
.tally .t-off b { color: #c6d1e4; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: #e1e7f0; }
.segmented button, .segmented a {
  border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 9px;
  font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.segmented a:hover { text-decoration: none; }
.segmented .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15,27,51,.12); }
.segmented .n { font-size: 12px; color: var(--muted); font-weight: 600; }
.search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; width: 260px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted);
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }

/* ---------- Fiche club ---------- */

.club-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.club-head h1 { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.club-head .lede { color: var(--muted); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.club-head .lede span { display: inline-flex; align-items: center; gap: 6px; }
.club-head .lede .icon { width: 15px; height: 15px; }
.club-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 22px; align-items: start; }


/* ==========================================================================
   AXION WAN PULSE — éléments propres à la supervision des liens
   ========================================================================== */

/* Logo : tracé de pouls */
.pulse-mark { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mobile-bar .pulse-mark { width: 21px; height: 21px; }
.ecg { width: 100%; height: 120px; margin-top: 40px; overflow: visible; }
.ecg path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: rgba(126,160,255,.18); }
.ecg-run { stroke: #7ea0ff; stroke-dasharray: 160 1400; animation: ecg 2.8s linear infinite; filter: drop-shadow(0 0 6px rgba(126,160,255,.6)); }
@keyframes ecg { from { stroke-dashoffset: 160; } to { stroke-dashoffset: -1240; } }

/* États */
.pill.st-up, .st-up .pill { background: var(--ok-soft); color: #0b7a53; }
.pill.st-up::before, .st-up .pill::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(20,166,114,.18); }
.pill.st-unstable { background: var(--warn-soft); color: #9a5f00; }
.pill.st-unstable::before { background: var(--warn); }
.pill.st-maintenance { background: var(--accent-soft); color: var(--accent-ink); }
.pill.st-maintenance::before { background: var(--accent); }
.tally .t-bad b { color: #ff8a8a; }

.state-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--idle); vertical-align: middle; flex: none; }
.sd-up { background: var(--ok); box-shadow: 0 0 0 4px rgba(20,166,114,.16); }
.sd-down { background: var(--bad); box-shadow: 0 0 0 4px rgba(214,60,60,.16); }
.sd-unstable { background: var(--warn); box-shadow: 0 0 0 4px rgba(217,137,11,.16); }
.sd-maintenance { background: var(--accent); box-shadow: 0 0 0 4px rgba(47,91,234,.14); }
.sd-unknown, .sd-off, .sd-none { background: #c3ccd9; }
@keyframes alarm { 0% { box-shadow: 0 0 0 0 rgba(214,60,60,.55); } 70% { box-shadow: 0 0 0 9px rgba(214,60,60,0); } 100% { box-shadow: 0 0 0 0 rgba(214,60,60,0); } }

/* Battements : un trait par contrôle */
.beats { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.beat { display: inline-block; width: 4px; height: 100%; border-radius: 2px; background: #e3e8f0; }
.beat.b2 { background: var(--ok); }
.beat.b1 { background: var(--warn); height: 70%; }
.beat.b0 { background: var(--bad); height: 45%; }
.beats-lg { height: 34px; gap: 3px; }
.beats-lg .beat { flex: 1; width: auto; max-width: 12px; }
.legend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .beat { height: 13px; width: 5px; }
.legend .sep { color: var(--line-strong); }

/* Centre de contrôle */
.pulse-table td { padding: 13px 12px; }
.pulse-table th { padding-left: 12px; padding-right: 12px; }
.pulse-table th:first-child, .pulse-table td:first-child { padding-left: 18px; }
.pulse-table th:last-child, .pulse-table td:last-child { padding-right: 18px; }
.pulse-table tr.row-down td { background: #fff7f7; }
.pulse-table tr.row-down:hover td { background: #fdeeee; }
.pulse-table .cell-main { display: block; }
.pulse-table td.num { white-space: nowrap; }
.pulse-table .c-client { min-width: 150px; }
.pulse-table .c-sub { min-width: 175px; }
@media (max-width: 1500px) and (min-width: 861px) { .pulse-table .beats .beat:nth-child(-n+12) { display: none; } }
.pulse-table .c-ip { white-space: nowrap; }
.pulse-table .c-ip.is-host { white-space: normal; max-width: 150px; }
.nas-table .c-health { min-width: 150px; }
.nas-table .c-sub { min-width: 150px; }
@media (max-width: 1500px) and (min-width: 861px) { .pulse-table .c-last { display: none; } .pulse-table .c-client { min-width: 130px; } .pulse-table .c-sub { min-width: 160px; } .pulse-table td, .pulse-table th { padding-left: 9px; padding-right: 9px; } }
.cell-strong { font-weight: 550; color: var(--ink); }
.cell-strong .role-tag { margin-left: 4px; }
.txt-warn { color: #9a5f00 !important; font-weight: 600; }
.txt-accent { color: var(--accent-ink) !important; font-weight: 550; }
.link-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 9px 3px 7px; border-radius: 7px; border: 0; cursor: pointer; background: var(--bad); color: #fff; font-size: 12.5px; font-weight: 600; }
.link-btn:hover { background: #bd3030; }
.link-btn .icon { width: 14px; height: 14px; }
.mono { font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace; font-size: 13.5px; letter-spacing: -.01em; }
.rtt-bad { color: var(--warn); font-weight: 600; }
.since-bad { color: var(--bad); font-weight: 600; }
.ack-line { color: var(--ink-2); font-size: 12.5px; }
.quick { display: flex; justify-content: center; gap: 6px; }
.qbtn {
  width: 38px; height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s;
}
.qbtn:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.qbtn .icon { width: 17px; height: 17px; }
.qbtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.qbtn.primary:hover { background: var(--accent-ink); }
.qbtn.on { background: var(--accent-soft); border-color: #c5d3fb; color: var(--accent-ink); }
.qbtn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.qbtn.danger:hover { background: #bd3030; }
.qbtn.is-busy { opacity: .55; pointer-events: none; }
.qbtn[disabled] { opacity: .35; pointer-events: none; }

/* Bandeau des coupures (toutes les pages) */
.outage {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 20px; margin-bottom: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #b52a2a, #d63c3c); color: #fff; box-shadow: 0 14px 34px -18px rgba(181,42,42,.8);
}
.outage.probe { background: linear-gradient(120deg, #8a5500, #d9890b); }
.outage.calm { background: var(--night-2); box-shadow: var(--shadow); }
.outage-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.outage-icon .icon { width: 22px; height: 22px; }
.outage.alarm .outage-icon { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { background: rgba(255,255,255,.34); } }
.outage h2 { font-size: 16.5px; font-weight: 700; }
.outage ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.outage li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: rgba(255,255,255,.92); }
.outage li a { color: #fff; font-weight: 650; }
.outage li .muted { color: rgba(255,255,255,.72); }
.outage li .ack { font-size: 12.5px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.18); }
.outage-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.outage .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.outage .btn:hover { background: rgba(255,255,255,.24); }
.outage .btn-light { background: #fff; color: #a32626; border-color: #fff; }
.outage .btn-light:hover { background: #fdeaea; }

/* Clients */
.search-form { flex: 1; max-width: 420px; }
.search-form .search { width: 100%; }
.sub-line { display: flex; align-items: center; gap: 8px; min-height: 26px; white-space: nowrap; }
.sub-line + .sub-line { margin-top: 4px; }
.role-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--idle-soft); color: var(--ink-2); letter-spacing: .01em; vertical-align: middle; }
.role-tag.secours { background: var(--warn-soft); color: #8a5500; }
.src-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--idle-soft); color: var(--ink-2); white-space: nowrap; }
.src-chip.crm { background: var(--accent-soft); color: var(--accent-ink); }
.club-head h1 .pill { font-size: 13px; }
.club-head .lede .src-chip { height: 22px; }

/* Fiche d'un abonnement */
.link-card { overflow: hidden; position: relative; }
.link-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--idle); }
.link-card.st-up::before { background: var(--ok); }
.link-card.st-down::before { background: var(--bad); }
.link-card.st-unstable::before { background: var(--warn); }
.link-card.st-maintenance::before { background: var(--accent); }
.link-card.st-down { border-color: #f1c4c4; }
.lc-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 16px 26px; }
.lc-title { flex: 1; min-width: 0; }
.lc-title h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-title p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.lc-notice { margin: 0 22px 16px 26px; }
.lc-notice .btn { background: #fff; }
.lc-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; padding: 4px 22px 20px 26px; }
.lc-facts { font-size: 13.5px; gap: 8px 14px; align-content: start; }
.lc-facts dd .cell-sub { margin-left: 6px; font-family: var(--font); font-size: 12px; }
.lc-pulse { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.lc-pulse-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.lc-stats div { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.lc-stats b { display: block; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-stats span { color: var(--muted); font-size: 12px; }
.lc-notes { margin: -6px 22px 18px 26px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; white-space: pre-line; }
.lc-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.lc-actions form { display: contents; }
.danger-zone { display: flex; justify-content: center; }

/* Import depuis AXION PILOT */
.pick-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pick-tools .search { flex: 1; width: auto; }
.pick-list { border: 1px solid var(--line); border-radius: 12px; max-height: 360px; overflow-y: auto; }
.pick-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.pick-row:first-child { border-top: 0; }
.pick-row:hover { background: var(--surface-2); }
.pick-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.pick-row b { font-weight: 600; font-size: 14px; }
.pick-row small { display: block; color: var(--muted); font-size: 12.5px; }
.pick-row.is-done { cursor: default; color: var(--muted); }
.pick-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; }
.pick-empty { padding: 30px; text-align: center; color: var(--muted); }

/* Paramètres */
.sup-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: center; margin-top: 22px; }
.sup-status b { display: block; font-size: 13px; }
.sup-status span { font-size: 13.5px; }
.txt-ok { color: var(--ok); font-weight: 600; }
.txt-bad { color: var(--bad); font-weight: 600; }

@media (max-width: 860px) {
  .outage { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .outage-actions { grid-column: 1 / -1; }
  .lc-head { padding: 16px 16px 12px 20px; flex-wrap: wrap; }
  .lc-body { grid-template-columns: 1fr; padding: 4px 16px 16px 20px; gap: 16px; }
  .lc-notice, .lc-notes { margin-left: 16px; margin-right: 16px; }
  .sup-status { grid-template-columns: 1fr; }
  .search-form { max-width: none; }
  /* Centre de contrôle : une carte par lien sur téléphone */
  .tally:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
  .pulse-table thead { display: none; }
  .pulse-table, .pulse-table tbody { display: block; }
  .pulse-table tr { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "st cl rtt" "st sub sub" "st ip ip" "st q q"; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .pulse-table tr[hidden] { display: none; }
  .pulse-table tr:last-child { border-bottom: 0; }
  table.data.pulse-table td { display: block; padding: 0; border: 0; background: none !important; }
  .pulse-table .hide-mobile { display: none; }
  .pulse-table .c-state { grid-area: st; padding-top: 4px; }
  .pulse-table .c-client { grid-area: cl; min-width: 0; }
  .pulse-table .c-rtt { grid-area: rtt; }
  .pulse-table .c-sub { grid-area: sub; }
  .pulse-table .c-sub .cell-strong { white-space: normal; }
  .pulse-table .c-ip { grid-area: ip; }
  .pulse-table .c-quick { grid-area: q; }
  .pulse-table .quick { justify-content: flex-start; margin-top: 4px; }
  .pulse-table tr.row-down { background: #fff7f7; }
}
@media (max-width: 1400px) and (min-width: 861px) { .pulse-table .c-avail { display: none; } }

/* ==========================================================================
   Supervision des NAS Synology
   ========================================================================== */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--ink-2); margin: 4px 0 -6px; }
.section-title .icon { width: 18px; height: 18px; color: var(--accent); }
.stack > .section-title:not(:first-child) { margin-top: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.section-head h2 .icon { width: 20px; height: 20px; color: var(--accent); }
.section-head .lede { color: var(--muted); }
.empty-sm { padding: 30px 24px; }

.kind-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; background: var(--night); color: #fff; vertical-align: middle; }
.lc-title h2 .kind-tag { height: 22px; }

.health-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--idle-soft); color: var(--ink-2); }
.health-badge .icon { width: 15px; height: 15px; }
.health-badge.h-ok { background: var(--ok-soft); color: #0b7a53; }
.health-badge.h-warning { background: var(--warn-soft); color: #9a5f00; }
.health-badge.sm { height: 20px; padding: 0 8px; font-size: 11.5px; margin-left: 6px; }
.state-dot.sm { width: 9px; height: 9px; }
.sd-unknown { background: #c3ccd9; }

.diag-chip { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 5px; padding: 3px 9px 3px 7px; border-radius: 7px; font-size: 12.5px; font-weight: 650; line-height: 1.35; max-width: 240px; }
.diag-chip .icon { margin-top: 1px; flex: none; }
.diag-chip .icon { width: 14px; height: 14px; }
.diag-chip.d-wan { background: #fff1d6; color: #8a5500; }
.diag-chip.d-nas { background: var(--bad-soft); color: #a32626; }
.diag-line { display: block; margin-top: 2px; }

.vol-row { display: flex; flex-direction: column; gap: 6px; }
.vol-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.vol-top b { font-weight: 600; }
.bar, .mini-bar { height: 8px; border-radius: 99px; background: #e3e8f0; overflow: hidden; }
.mini-bar { height: 6px; width: 110px; margin-bottom: 4px; }
.bar i, .mini-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.bar i.is-warn, .mini-bar i.is-warn { background: var(--warn); }
.bar i.is-bad, .mini-bar i.is-bad { background: var(--bad); }
.raid-list { display: flex; flex-wrap: wrap; gap: 6px; }
.raid-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; background: var(--ok-soft); color: #0b7a53; }
.raid-chip.r-degraded { background: var(--bad-soft); color: #a32626; }
.raid-chip.r-rebuilding { background: var(--warn-soft); color: #8a5500; }
.raid-chip.r-unknown { background: var(--idle-soft); color: var(--ink-2); }

.nas-disks { margin: 0 22px 18px 26px; border: 1px solid var(--line); border-radius: 12px; }
.nas-disks table.data { font-size: 13.5px; }
.nas-disks table.data th, .nas-disks table.data td { padding: 9px 14px; }
.smart { font-weight: 600; }
.smart.s-normal, .smart.s-cache { color: var(--ok); }
.smart.s-warning { color: var(--warn); }
.smart.s-failing { color: var(--bad); }
.smart.s-unknown, .smart.s-sleeping { color: var(--muted); }

.install-steps { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.install-steps b { color: var(--ink); }
.script-box textarea.input { font-size: 12px; line-height: 1.45; background: var(--night); color: #d6e0f5; border-color: var(--night); white-space: pre; overflow-wrap: normal; overflow-x: auto; resize: vertical; }

@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nas-disks { margin: 0 16px 16px 20px; }
  .pulse-table .c-health { grid-area: ip; }
}
@media (max-width: 1500px) and (min-width: 861px) { .pulse-table .c-client { min-width: 120px; } .diag-chip { max-width: 190px; } }

/* Liens externes (IP WAN, QuickConnect) */
.ext-link { color: inherit; display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px dashed transparent; }
.ext-link:hover { color: var(--accent-ink); text-decoration: none; border-bottom-color: currentColor; }
.ext-link .icon { width: 12px; height: 12px; opacity: .45; flex: none; }
.ext-link:hover .icon { opacity: 1; }
.c-ip .ext-link { display: inline; }
.c-ip .ext-link .icon { vertical-align: -1px; margin-left: 3px; }
.lc-title h2 .ext-link .icon { width: 14px; height: 14px; }


/* Colonnes masquées par l'utilisateur */
html.masquer-battements .pulse-table .c-beats,
html.masquer-dispo .pulse-table .c-avail,
html.masquer-dernier .pulse-table .c-last,
html.masquer-volume .pulse-table .c-vol { display: none; }

/* Hyper Backup */
.bk-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--idle-soft); color: var(--ink-2); }
.bk-badge .icon { width: 15px; height: 15px; }
.bk-badge.bk-ok, .bk-badge.bk-success { background: var(--ok-soft); color: #0b7a53; }
.bk-badge.bk-warning { background: var(--warn-soft); color: #9a5f00; }
.bk-badge.bk-failed { background: var(--bad-soft); color: #c0322b; }
.bk-badge.bk-running { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
.bk-badge.sm { height: 22px; font-size: 12px; padding: 0 9px; }
.nas-backups { margin: 0 22px 18px 26px; }
@media (max-width: 860px) { .nas-backups { margin: 0 16px 16px 20px; } }
.nas-backups .table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.nas-backups table.data { font-size: 13.5px; }
.nas-backups table.data th, .nas-backups table.data td { padding: 9px 14px; }
.nas-backups .bk-empty { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13.5px; }
.nas-backups .bk-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.nas-backups .bk-title .icon { width: 15px; height: 15px; }
.nas-backups .bk-msg { max-width: 340px; white-space: normal; }
html[data-theme="sombre"] .bk-badge.bk-ok, html[data-theme="sombre"] .bk-badge.bk-success { color: #5fe0ad; }
html[data-theme="sombre"] .bk-badge.bk-failed { color: #ff9b97; }
html[data-theme="sombre"] .bk-badge.bk-warning { color: #f5c06a; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .bk-badge.bk-ok, html[data-theme="auto"] .bk-badge.bk-success { color: #5fe0ad; }
  html[data-theme="auto"] .bk-badge.bk-failed { color: #ff9b97; }
  html[data-theme="auto"] .bk-badge.bk-warning { color: #f5c06a; }
}
@media (max-width: 1366px) and (min-width: 861px) { .nas-table .c-temp { display: none; } }
@media (max-width: 1180px) and (min-width: 861px) { .nas-table .c-vol { display: none; } }

/* Liste des clients : état des sauvegardes à droite du nom du NAS */
.nas-lines { display: grid; grid-template-columns: 210px max-content; column-gap: 14px; row-gap: 4px; align-items: center; }
.nas-lines .sub-line { margin: 0; min-width: 0; overflow: visible; }
.nas-lines .sub-line > span:not(.state-dot):not(.role-tag) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nas-lines .sub-line .ext-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nas-bk { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.health-badge.xs { height: 22px; padding: 0 9px; font-size: 12px; }
.bk-badge.xs { height: 22px; padding: 0 9px 0 7px; font-size: 12px; gap: 5px; }
.bk-badge.xs .icon { width: 13px; height: 13px; }
.bk-none { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 861px) { .nas-lines { grid-template-columns: 175px max-content; column-gap: 10px; } .bk-badge.xs > span, .bk-none { display: none; } .bk-badge.xs { padding: 0 6px; } }
@media (max-width: 860px) { .nas-lines { grid-template-columns: 1fr; row-gap: 2px; } .nas-bk { margin: 0 0 6px 16px; } .nas-bk:empty { display: none; } }
.nas-lines.nas-head { row-gap: 0; }
.nas-lines.nas-head > span { white-space: nowrap; }
@media (max-width: 860px) { .nas-lines.nas-head > span:last-child { display: none; } }
/* En-têtes de tableaux en capitales, dans tout le logiciel */
table.data th { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }

/* Fiche client : « Coordonnées » au même niveau que « Abonnements internet » */
.section-title .section-hint { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.panel-body.coords-body { padding-top: 22px; }

/* Paramètres › E-mails */
.mail-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; }
.mail-status .icon { width: 16px; height: 16px; }

.mail-mode { margin-top: 20px; }
.mail-mode > .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.mail-choice small { font-weight: 500; font-size: 12px; color: var(--muted); text-align: center; }
.mail-section { margin-top: 16px; }
.oauth-account { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.oauth-account.is-on { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); }
.oauth-account .grow { flex: 1; min-width: 0; font-size: 14px; }
.oauth-account .d-block { display: block; margin-top: 2px; }
.input-copy { display: flex; gap: 8px; }
.input-copy .input { flex: 1; min-width: 0; font-size: 12.5px; }
.input-copy .btn .icon { margin: 0; }
@media (max-width: 860px) { .oauth-account { flex-wrap: wrap; } .oauth-account .grow { flex-basis: calc(100% - 30px); } }

/* Paramètres › Nebula */
.nebula-sites { margin-top: 22px; }
.nebula-sites > .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.nebula-sites > .help { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.nebula-sites .table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.nebula-sites table.data th, .nebula-sites table.data td { padding: 10px 14px; vertical-align: middle; }
.nebula-sites select.input { min-width: 220px; }

/* Centre de contrôle : firewalls ZyXEL (Nebula) */
.load-pair { display: grid; grid-template-columns: 34px 80px 44px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.load-pair + .load-pair { margin-top: 4px; }
.load-pair .mini-bar { width: 80px; margin: 0; }
.load-pair b { white-space: nowrap; text-align: right; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 1366px) and (min-width: 861px) { .fw-table .c-sess { display: none; } }
@media (max-width: 1180px) and (min-width: 861px) { .fw-table .c-fwv { display: none; } }

.kind-tag.fw { background: #c2410c; }
html[data-theme="sombre"] .kind-tag.fw { background: #9a3412; }
.fw-card .lc-stats div b { font-size: 18px; }

.fw-pick-state { display: inline-flex; align-items: center; gap: 8px; }
.pick-row input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); }

/* Sauvegardes Acronis */
.kind-tag.bk { background: #0e7490; }
html[data-theme="sombre"] .kind-tag.bk { background: #155e75; }
.acr-counts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bk-badge.bk-none { background: var(--idle-soft); color: var(--ink-2); }
.acr-alerts { margin: 0 22px 14px 26px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.acr-alert { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: 13.5px; border-top: 1px solid var(--line); }
.acr-alert:first-child { border-top: 0; }
.acr-alert .grow { flex: 1; min-width: 0; }
.acr-alert .sev { flex: none; min-width: 96px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--idle-soft); color: var(--ink-2); }
.acr-alert.sev-critical .sev, .acr-alert.sev-error .sev { background: var(--bad-soft); color: #c0322b; }
.acr-alert.sev-warning .sev { background: var(--warn-soft); color: #9a5f00; }
.acr-storage { margin: 0 22px 14px 26px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.acr-storage .vol-top { margin-bottom: 6px; }
.acr-table { margin: 0 22px 18px 26px; border: 1px solid var(--line); border-radius: 12px; }
.acr-table table.data { font-size: 13.5px; }
.acr-table table.data th, .acr-table table.data td { padding: 9px 14px; vertical-align: middle; }
.acr-table.is-stale { opacity: .55; }
.acr-empty { margin: 0 22px 18px 26px; }
.acr-pick { display: flex; gap: 8px; justify-content: center; align-items: center; max-width: 560px; margin: 14px auto 0; }
.acr-pick select { flex: 1; min-width: 0; }
.acr-hint { text-align: center; margin-top: 8px; }
@media (max-width: 860px) { .acr-alerts, .acr-storage, .acr-table, .acr-empty { margin-left: 16px; margin-right: 16px; } .acr-pick { flex-wrap: wrap; } }
html[data-theme="sombre"] .acr-alert.sev-critical .sev, html[data-theme="sombre"] .acr-alert.sev-error .sev { color: #ff9b97; }
html[data-theme="sombre"] .acr-alert.sev-warning .sev { color: #f5c06a; }

.acr-thresholds { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; min-height: 42px; }
.acr-thresholds label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; }
.acr-thresholds .input { width: 76px; text-align: center; }
.acr-howto summary { cursor: pointer; list-style: none; }
.acr-howto summary::-webkit-details-marker { display: none; }
.acr-howto summary::before { content: '▸ '; color: var(--accent); }
.acr-howto[open] summary::before { content: '▾ '; }
.acr-howto ol { margin: 12px 0 8px 20px; padding: 0; display: grid; gap: 6px; }
.acr-howto p { margin: 8px 0 0; }

/* Centre de contrôle : sauvegardes Acronis */
.bk-panel { padding: 18px 20px 6px; }
.bk-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.bk-tally div { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-align: center; }
.bk-tally b { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bk-tally span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bk-tally .t-ok b { color: var(--ok); }
.bk-tally .t-warn b { color: var(--warn); }
.bk-tally .t-bad b { color: var(--bad); }
.bk-stale { margin-bottom: 12px; }
.bk-panel .table-wrap { margin: 0 -20px; border-top: 1px solid var(--line); }
.bk-allgood { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 14px; color: var(--ok); font-weight: 600; font-size: 14px; }
.bk-allgood .icon { width: 17px; height: 17px; }
@media (max-width: 860px) { .bk-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.acr-agent .txt-ok, .acr-agent .txt-bad { font-weight: 600; }
.acr-table td:first-child { max-width: 300px; }
.acr-agent { white-space: normal; }

.acr-table table.data th, .acr-table table.data td { padding: 9px 11px; }
.acr-table td:first-child { max-width: 230px; }
.acr-table .nowrap { white-space: nowrap; }

/* Centre de contrôle : services hébergés */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.svc-card { padding: 18px 20px 14px; border-left: 4px solid var(--ok); }
.svc-card.st-down { border-left-color: var(--bad); }
.svc-card.st-unknown, .svc-card.st-maintenance { border-left-color: var(--line-strong); }
.svc-head { display: flex; align-items: center; gap: 12px; }
.svc-title { flex: 1; min-width: 0; }
.svc-title h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.svc-notice { margin: 12px 0 0; }
.svc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.svc-stats div { padding: 9px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; min-width: 0; }
.svc-stats b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-stats span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.svc-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.svc-actions .btn.on { border-color: var(--accent); color: var(--accent-ink); }
.kind-tag.web { background: #4338ca; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lede-small { color: var(--muted); font-size: 13.5px; margin: 0; }
.svc-edit td { padding: 8px 8px !important; }
.svc-edit .input { min-width: 0; width: 100%; }
.svc-edit { table-layout: fixed; width: 100%; }
.svc-edit th:nth-child(1) { width: 22%; } .svc-edit th:nth-child(2) { width: 30%; } .svc-edit th:nth-child(3) { width: 15%; } .svc-edit th:nth-child(4) { width: 19%; } .svc-edit th:nth-child(5) { width: 7%; } .svc-edit th:nth-child(6) { width: 7%; }
.svc-new td { background: var(--surface-2); }
.nebula-sites > .help { display: block; }

/* Centre de contrôle : tableaux dans l'ordre choisi (Personnalisation) */
.dash-bloc.bloc-off { display: none !important; }
.dash-bloc.is-first > .section-head { margin-top: 6px; }
.dash-links:not(.is-first) { margin-top: 0; }
.dash-links.is-first > .bloc-title { display: none; }

/* Icônes des marques et des opérateurs */
.brand-ico { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 4px; object-fit: contain; vertical-align: -3px; }
.brand-ico.lg { width: 22px; height: 22px; border-radius: 5px; }
.brand-ico.svc { width: 18px; height: 18px; }
.section-head h2 .brand-ico.lg { margin-right: -1px; }
.with-brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.with-brand > span:not(.role-tag):not(.cell-sub) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.with-brand .role-tag { margin-left: 2px; }
.with-brand .ext-link { min-width: 0; }

/* Services hébergés : une ligne par service */
.svc-table .c-client { min-width: 260px; }
.svc-table td.mono { font-size: 13.5px; }
.brand-ico.sm { width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.lc-title h2 .brand-ico.lg { margin-right: 8px; vertical-align: -4px; }
.facts .with-brand { display: inline-flex; }

/* Personnalisation : tableaux du centre de contrôle */
.bloc-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bloc-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: background .15s, opacity .15s, box-shadow .15s; }
.bloc-item.is-off .bloc-name, .bloc-item.is-off .bloc-ico, .bloc-item.is-off .bloc-rank { opacity: .45; }
.bloc-item.is-drag { opacity: .5; }
.bloc-item.drop-before { box-shadow: 0 -2px 0 var(--accent); }
.bloc-item.drop-after { box-shadow: 0 2px 0 var(--accent); }
.bloc-grip { display: inline-flex; color: var(--muted); cursor: grab; padding: 2px; }
.bloc-grip .icon { width: 16px; height: 16px; }
.bloc-rank { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.bloc-ico { display: inline-flex; width: 18px; justify-content: center; flex: none; }
.bloc-ico .icon { width: 17px; height: 17px; color: var(--accent); }
.bloc-name { flex: 1; font-weight: 600; min-width: 0; }
.bloc-moves { display: inline-flex; gap: 2px; }
.bloc-moves .icon-btn { width: 30px; height: 30px; }
.bloc-moves .icon-btn:disabled { opacity: .3; cursor: default; }
.bloc-moves .icon-btn { color: var(--muted); }
.bloc-moves .icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--accent); }
.bloc-moves .icon-btn .icon { width: 17px; height: 17px; }

/* Paramètres › E-mails : alerte automatique des clients */
.settings-sub { margin: 30px 0 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-sub h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.settings-sub h3 .icon { width: 18px; height: 18px; color: var(--accent); }
.center-row { display: flex; justify-content: center; gap: 10px; margin: 16px 0 6px; }
.client-alert-line { display: inline-flex; align-items: center; gap: 6px; }
.form-switch { margin-top: 16px; }
.client-alert-line .icon { width: 15px; height: 15px; color: var(--ok); }
.cell-main.with-brand, .cell-strong.with-brand { display: flex; }
.svc-table .cell-main.with-brand .cell-sub { white-space: nowrap; }

/* ---------- Téléphone et tablette (n'affecte pas l'ordinateur) ---------- */
.segmented { background: var(--gris-clair); }
.segmented .on { background: var(--carte); color: var(--texte); }
.search { background: var(--carte); border-color: var(--champ-bord); border-radius: var(--rayon); }
.search input { color: var(--texte); }
@media (max-width: 1180px) and (min-width: 861px) { .club-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .club-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .club-head h1 { font-size: 24px; }
  .head-actions { justify-content: center; }
  .overview { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .overview-title { font-size: 24px; }
  .tally { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tally div { min-width: 0; padding: 10px 12px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .segmented { overflow-x: auto; max-width: 100%; }
  .segmented button, .segmented a { white-space: nowrap; flex: none; }
  .overview-sub { align-items: flex-start; }
  .overview-sub .live-dot { margin-top: 8px; }
  .search { width: 100%; }
  .club-layout { grid-template-columns: 1fr; }
}
.club-infos { display: flex; gap: 14px; flex-wrap: wrap; }
.club-infos span { display: inline-flex; align-items: center; gap: 6px; }
.club-infos .icon { width: 15px; height: 15px; }
.page-head h1 .pill { font-size: .8rem; vertical-align: middle; margin-left: 6px; }
.settings-page { max-width: 1100px; margin: 0 auto; }
.identite-grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.identite-retour { display: flex; justify-content: center; margin-top: 10px; }
@media (max-width: 760px) { .identite-grille-2 { grid-template-columns: 1fr; } .identite-grille-2 > .identite-carte + .identite-carte { border-left: 0; border-top: 1px solid var(--bord); } }
/* Apparence › Centre de contrôle et alertes (propres à WAN PULSE) */
.wp-blocs .bloc-list { margin-top: 12px; }
.wp-sous-titre { margin: 18px 0 10px; font-size: 1rem; }
.wp-reglages { gap: 12px; }
.wp-reglages > .card + .card { margin-top: 0; }
.ar-mini .ar-glissiere { transform: scale(.85); }
.pref-saved { text-align: center; min-height: 1.4em; margin-top: 10px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: border-color .15s, box-shadow .15s, color .15s;
}
.choice-card:hover { border-color: var(--accent); color: var(--ink); }
.choice-card.on { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice-card .icon { width: 20px; height: 20px; }
/* Champs sans type (texte) : même présentation que les champs d'AXION PILOT */
input:not([type]), input.input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) {
    width: 100%; padding: 8px 10px; border: 1px solid var(--champ-bord); border-radius: calc(6px * var(--arrondi));
    background: var(--carte); color: var(--texte); font: inherit; min-height: 38px;
}
input:not([type]):focus { outline: 2px solid color-mix(in srgb, var(--bleu) 28%, transparent); border-color: var(--bleu); }
.choice-card { font: inherit; background: var(--carte); color: var(--texte-2); }
.choice-card small { display: block; font-size: .78rem; color: var(--texte-2); }
.mail-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; text-align: center; }
@media (max-width: 860px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.settings-page { max-width: none; }

/* ===== Retouches étape 1 ===== */
/* En-tête : la phrase d'accueil est retirée, l'espace pousse simplement les boutons à droite */
.topbar .accueil-vide { flex: 1 1 auto; min-width: 0; }
/* Pastilles rouges du menu (rubriques en incident) : masquées quand il n'y a rien */
.compteur[hidden] { display: none !important; }
.lat-compteurs:not(:has(.compteur:not([hidden]))), .compteurs-menu:not(:has(.compteur:not([hidden]))) { display: none; }
/* Icônes de marque dans les Paramètres (Intégrations) */
.parametres-lien-icone .brand-ico { width: 18px; height: 18px; vertical-align: -4px; }
.page-head h1 .titre-marque { width: 26px; height: 26px; border-radius: 6px; vertical-align: -4px; margin-right: 2px; }
.nas-adresse { display: flex; align-items: center; min-height: 40px; background: var(--surface-2, var(--fond)); color: var(--texte-2); overflow-x: auto; white-space: nowrap; user-select: all; }

/* Navigation fluide entre les pages (comme une application) : fondu très court au lieu d'un écran qui « clignote ».
   Le menu et l'en-tête restent immobiles ; seul le contenu change. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: wp-entete; }
.lateral { view-transition-name: wp-lateral; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; animation-timing-function: ease-out; }
::view-transition-group(wp-entete), ::view-transition-group(wp-lateral) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ===== Tableau de bord : en-tête de page (figé avec Apparence › En-tête figé) ===== */
.sous-titre-direct { display: flex; align-items: center; gap: 8px; }
.sous-titre-direct .live-dot { flex: none; }
#links-block, .dash-bloc { scroll-margin-top: calc(var(--haut-colle, 150px) + 12px); }

/* ===== Bandeau de synthèse (3 présentations au choix : Apparence › Centre de contrôle) ===== */
.bandeau { margin: 0 0 22px; }
.bandeau .ton-ok, .bandeau.ton-ok { --bd-c: var(--vert); --bd-cc: var(--vert-clair); }
.bandeau .ton-ko, .bandeau.ton-ko { --bd-c: var(--rouge); --bd-cc: var(--rouge-clair); }
.bandeau .ton-warn, .bandeau.ton-warn { --bd-c: var(--orange); --bd-cc: var(--orange-clair); }
.bandeau .ton-off, .bandeau .ton-vide { --bd-c: var(--texte-3); --bd-cc: var(--gris-clair, var(--surface-2)); }
.bd-pile { display: flex; height: 6px; border-radius: 99px; background: var(--gris-clair, var(--surface-2)); overflow: hidden; }
.bd-pile i { display: block; height: 100%; transition: width .5s ease; }
.bd-pile .p-ok { background: var(--vert); } .bd-pile .p-warn { background: var(--orange); } .bd-pile .p-ko { background: var(--rouge); }

/* 1. Par équipement : une tuile par rubrique supervisée */
.bandeau-equipements { display: grid; grid-template-columns: repeat(var(--bd-n, 5), minmax(0, 1fr)); gap: 14px; }
.bd-tuile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 15px; background: var(--carte); border: 1px solid var(--bord);
    border-radius: var(--rayon); box-shadow: var(--ombre); color: var(--texte); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bd-tuile::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--bd-c); }
.bd-tuile:hover { border-color: color-mix(in srgb, var(--bd-c) 55%, var(--bord)); transform: translateY(-1px); box-shadow: var(--ombre-forte); }
.bd-tete { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bd-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--surface-2, var(--fond)); font-size: 18px; }
.bd-ico .brand-ico.lg { width: 20px; height: 20px; }
.bd-nom { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-voyant { width: 10px; height: 10px; margin-left: auto; flex: none; border-radius: 50%; background: var(--bd-c); box-shadow: 0 0 0 4px var(--bd-cc); }
.ton-ko .bd-voyant { animation: bd-alerte 1.6s ease-out infinite; }
@keyframes bd-alerte { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rouge) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.bd-chiffre { display: flex; align-items: baseline; gap: 6px; }
.bd-chiffre b { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bd-sur { color: var(--texte-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.bd-etat { font-size: .85rem; font-weight: 600; color: var(--bd-c); }
.bd-tuile.ton-ok .bd-etat { color: color-mix(in srgb, var(--vert) 80%, var(--texte)); }

/* 2. Tuiles : disponibilité en anneau + 4 compteurs cliquables (filtrent le tableau des liens) */
.bandeau-tuiles { display: grid; grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 14px; }
.bd-dispo, .bd-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); color: var(--texte); }
.bd-dispo { position: relative; }
.bd-anneau { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.bd-anneau circle { fill: none; stroke-width: 7; }
.bd-anneau .a-fond { stroke: var(--gris-clair, var(--surface-2)); }
.bd-anneau .a-val { stroke: var(--bd-c); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.bd-anneau-txt { position: absolute; left: 18px; width: 64px; text-align: center; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bd-dispo-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bd-dispo-titre { font-size: 1.05rem; color: var(--texte-2); }
.bd-dispo-titre b { color: var(--texte); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.bd-stat { font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.bd-stat:hover { border-color: var(--bd-c); transform: translateY(-1px); }
.bd-pastille { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bd-cc); color: var(--bd-c); font-weight: 800; font-size: 1.1rem; }
.bd-stat-txt { display: flex; flex-direction: column; min-width: 0; }
.bd-stat-txt b { font-size: 1.6rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-stat-txt span { color: var(--texte-2); font-size: .85rem; }
.bd-stat.ton-ko b { color: var(--rouge); } .bd-stat.ton-warn b { color: color-mix(in srgb, var(--orange) 85%, var(--texte)); } .bd-stat.ton-ok b { color: color-mix(in srgb, var(--vert) 85%, var(--texte)); }

/* 3. Jauge : une phrase d'état, la répartition des liens en une barre, et la légende cliquable */
.bandeau-jauge { padding: 18px 22px; background: var(--carte); border: 1px solid var(--bord); border-left: 5px solid var(--bd-c); border-radius: var(--rayon); box-shadow: var(--ombre); }
.bd-jauge-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bd-rond { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bd-cc); color: var(--bd-c); font-weight: 800; font-size: 1.25rem; }
.bd-rond .r-ko { display: none; } .bandeau-jauge:is(.ton-ko, .ton-warn) .bd-rond .r-ok { display: none; } .bandeau-jauge:is(.ton-ko, .ton-warn) .bd-rond .r-ko { display: inline; }
.bd-jauge-tete h2 { margin: 0; font-size: 1.2rem; color: var(--texte); }
.bd-jauge-tete p { margin: 2px 0 0; color: var(--texte-2); font-size: .9rem; }
.bd-pile-large { height: 10px; }
.bd-legende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bd-puce { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--bord); border-radius: var(--pilule); background: var(--carte); color: var(--texte-2); font: inherit; font-size: .86rem; cursor: pointer; }
.bd-puce i { width: 9px; height: 9px; border-radius: 50%; background: var(--bd-c); }
.bd-puce b { color: var(--texte); font-variant-numeric: tabular-nums; }
.bd-puce:hover { border-color: var(--bd-c); }

@media (max-width: 1280px) and (min-width: 761px) {
    .bandeau-equipements { grid-template-columns: repeat(min(var(--bd-n, 5), 3), minmax(0, 1fr)); }
    .bandeau-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bd-dispo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .bandeau-equipements { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bd-tuile { padding: 13px 14px; gap: 8px; }
    .bd-chiffre b { font-size: 1.6rem; }
    .bd-sur { font-size: .8rem; }
    .bandeau-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bd-dispo { grid-column: 1 / -1; }
    .bd-stat { padding: 12px; gap: 10px; }
    .bd-pastille { width: 34px; height: 34px; }
    .bandeau-jauge { padding: 14px 16px; }
}

/* Apparence › choix du bandeau de synthèse (aperçus miniatures) */
.bandeau-choix { margin-bottom: 6px; }
.bandeau-choix .bc-carte { align-items: stretch; text-align: left; padding: 12px; gap: 6px; border-color: var(--bord); background: var(--carte); color: var(--texte); border-radius: var(--rayon); }
.bandeau-choix .bc-carte.on { border-color: var(--bleu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bleu) 22%, transparent); }
.bandeau-choix .bc-carte b { font-size: .95rem; }
.bc-desc { font-weight: 400; font-size: .8rem; color: var(--texte-2); line-height: 1.35; }
.bc-apercu { display: grid; gap: 5px; height: 54px; padding: 8px; border-radius: calc(8px * var(--arrondi)); background: var(--fond); }
.bc-apercu i { display: block; border-radius: 4px; background: var(--carte); border: 1px solid var(--bord); }
.bc-equipements { grid-template-columns: repeat(4, 1fr); }
.bc-equipements .t { border-top: 3px solid var(--vert); } .bc-equipements .t.ko { border-top-color: var(--rouge); }
.bc-tuiles { grid-template-columns: 1.6fr repeat(4, 1fr); }
.bc-tuiles .r { background: radial-gradient(circle at 30% 50%, transparent 7px, var(--vert) 7.5px, var(--vert) 10px, transparent 10.5px), var(--carte); }
.bc-tuiles .c { background: radial-gradient(circle at 50% 50%, var(--texte-3) 4px, transparent 4.5px), var(--carte); }
.bc-tuiles .c.ok { background: radial-gradient(circle at 50% 50%, var(--vert) 4px, transparent 4.5px), var(--carte); }
.bc-tuiles .c.ko { background: radial-gradient(circle at 50% 50%, var(--rouge) 4px, transparent 4.5px), var(--carte); }
.bc-tuiles .c.warn { background: radial-gradient(circle at 50% 50%, var(--orange) 4px, transparent 4.5px), var(--carte); }
.bc-jauge { grid-template-rows: 1fr 6px 1fr; border-left: 4px solid var(--vert); }
.bc-jauge i { border: 0; background: transparent; }
.bc-jauge .l { width: 70%; background: var(--texte-3); opacity: .35; height: 7px; align-self: center; }
.bc-jauge .b { display: flex; overflow: hidden; border-radius: 99px; }
.bc-jauge .b u { display: block; height: 100%; } .bc-jauge .b .ok { width: 70%; background: var(--vert); } .bc-jauge .b .warn { width: 12%; background: var(--orange); } .bc-jauge .b .ko { width: 18%; background: var(--rouge); }
.bc-jauge .p { width: 55%; height: 7px; align-self: center; background: var(--texte-3); opacity: .25; }
@media (max-width: 760px) { .bandeau-choix { grid-template-columns: 1fr; } }

/* ===== En-tête : recherche globale et prénom de l'utilisateur (comme AXION PILOT) ===== */
@media (min-width: 761px) {
    .topbar-haut .recherche-globale { flex: 0 1 460px; min-width: 240px; margin-left: 18px; }
    .compte-bureau { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; font-weight: 650; }
    .compte-bureau .compte-initiales { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em; flex: none; }
    /* Menu « Mon compte » déroulé sous le prénom, aligné à droite */
    .compte-feuille { position: fixed; inset: var(--deroule-haut, 70px) var(--deroule-droite, 16px) auto auto; margin: 0; width: 300px; max-height: var(--deroule-max, 70vh); padding: 0; border: 1px solid var(--bord);
        border-radius: 14px; background: var(--carte); color: var(--texte); box-shadow: 0 14px 40px rgba(0, 0, 0, .22); overflow-y: auto; transform-origin: 100% 0; }
    .compte-feuille[open] { animation: wp-deroule .16s cubic-bezier(.2, .8, .2, 1); }
    .compte-feuille::backdrop { background: transparent; }
    @keyframes wp-deroule { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
    .compte-feuille-tete { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; border-bottom: 1px solid var(--bord); }
    .compte-feuille .compte-initiales { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700; flex: none; }
    .compte-feuille-qui { flex: 1; min-width: 0; display: grid; }
    .compte-feuille-qui strong, .compte-feuille-qui span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .compte-feuille .tiroir-fermer { background: var(--fond); color: var(--texte-2); }
    .compte-feuille-liste { padding: 8px 10px; display: grid; gap: 2px; }
    .compte-lien { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: calc(10px * var(--arrondi, 1));
        background: none; color: var(--texte); font: inherit; font-weight: 550; text-align: left; cursor: pointer; }
    .compte-lien > span:first-child { width: 26px; text-align: center; font-size: 1.1rem; }
    .compte-lien:hover { background: var(--fond); text-decoration: none; }
    .compte-lien-plus { margin-left: auto; color: var(--texte-2); font-size: 1.2rem; }
    .compte-feuille-pied { margin: 0; padding: 6px 10px 12px; border-top: 1px solid var(--bord); }
    .compte-deconnexion { color: var(--rouge); justify-content: center; font-weight: 650; }
    .compte-deconnexion > span:first-child { width: auto; }
}
@media (max-width: 760px) { .compte-bureau { display: none !important; } }
@media (min-width: 761px) and (max-width: 1180px) { .compte-bureau-prenom { display: none; } .compte-bureau { padding-right: 4px; } }
@media (min-width: 761px) {
    .compte-feuille .tiroir-fermer { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
    .compte-feuille .tiroir-fermer:hover { background: var(--gris-clair); color: var(--texte); }
}

/* ===== Tableau de bord personnalisable (widgets, comme AXION PILOT) ===== */
.bd-tuile.ton-ok, .bd-dispo.ton-ok { --bd-c: var(--vert); --bd-cc: var(--vert-clair); }
.bd-tuile.ton-ko, .bd-dispo.ton-ko { --bd-c: var(--rouge); --bd-cc: var(--rouge-clair); }
.bd-tuile.ton-warn, .bd-dispo.ton-warn { --bd-c: var(--orange); --bd-cc: var(--orange-clair); }
.bd-tuile:is(.ton-off, .ton-vide) { --bd-c: var(--texte-3); --bd-cc: var(--gris-clair, var(--surface-2)); }
.tb-contenu > .card.bd-tuile { margin: 0; }
.bandeau-widget .bandeau { margin: 0; }
.tb-widget[data-tb-largeur="2"] .bandeau-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-widget[data-tb-largeur="2"] .bandeau-tuiles .bd-dispo { grid-column: 1 / -1; }
.tb-tableau > .toolbar { margin-top: 0; }
.tb-tableau .section-head { margin-top: 0; }
.tb-tableau .legend { margin-bottom: 0; }
.tb-plus { margin: 6px 0 0; }
.tb-widget .liste-items .titre .state-dot { vertical-align: 1px; margin-right: 2px; }
/* Tableau sans équipement (ex. aucun NAS) : masqué, sauf pendant la personnalisation */
body:not(.tb-edition) .tb-widget:has(> .tb-contenu > .tb-tableau > [id$="-block"][hidden]:last-child) { display: none; }
body.tb-edition .tb-tableau > [id$="-block"][hidden] { display: block !important; opacity: .55; }
body.tb-edition .page-head [data-tb-personnaliser] { display: none; }
.tb-barre:not(:has(.tb-edition-barre:not([hidden]))) { margin: 0; }
body:not(.tb-edition) .tb-barre { display: none; }
.wp-tb-lien { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ===== 📱 Téléphone : en-tête (logo + prénom, menu, puis la recherche sur toute la largeur) ===== */
@media (max-width: 760px) {
    .topbar .accueil-vide { display: none; }
    .topbar-haut > .recherche-globale { order: 3; flex: 1 1 100%; min-width: 0; max-width: none; margin: 2px 0 0; }
    .topbar-haut > .recherche-globale input[type="search"] { width: 100%; min-width: 0; }
}

@media (max-width: 860px) { .club-layout { grid-template-columns: minmax(0, 1fr); } }

/* ===== 📱 Téléphone : version entièrement adaptée (rien ne change sur ordinateur) ===== */
@media (max-width: 760px) {
    /* Tableaux → fiches empilées : la première colonne fait office de titre, les autres « libellé : valeur » */
    .table-wrap:has(> table.data.empilable) { overflow: visible; }
    table.data.empilable, table.data.empilable tbody, table.data.empilable tr, table.data.empilable td { display: block; width: auto !important; min-width: 0 !important; }
    table.data.empilable thead { display: none; }
    table.data.empilable tr { padding: 12px 14px; border-bottom: 1px solid var(--bord); }
    table.data.empilable tr:last-child { border-bottom: 0; }
    table.data.empilable td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0 !important; border: 0 !important; text-align: right !important; white-space: normal !important; }
    table.data.empilable td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--texte-2); font-size: .8rem; font-weight: 600; text-align: left; }
    table.data.empilable td[data-label=""]::before, table.data.empilable td:first-child::before { display: none; }
    table.data.empilable td:first-child { justify-content: flex-start; text-align: left !important; font-size: 1.02rem; padding-bottom: 6px !important; }
    table.data.empilable td:first-child:has(> .state-dot:only-child) + td::before { display: none; }
    table.data.empilable td:first-child:has(> .state-dot:only-child) { float: left; padding: 6px 10px 0 0 !important; }
    table.data.empilable td:first-child:has(> .state-dot:only-child) + td { display: block; text-align: left !important; font-size: 1.02rem; padding-bottom: 6px !important; }
    /* Cellules à plusieurs lignes (abonnements, équipements…) : libellé au-dessus, contenu en dessous */
    table.data.empilable td:has(> .sub-line, > .nas-lines, > .stack-sm) { flex-direction: column; align-items: flex-start; text-align: left !important; gap: 3px; }
    table.data.empilable td:has(> .sub-line, > .nas-lines) .sub-line { white-space: normal; flex-wrap: wrap; }
    table.data.empilable .nas-lines { grid-template-columns: 1fr; width: 100%; }
    table.data.empilable td > select, table.data.empilable td > .input { flex: 1 1 auto; max-width: 70%; }
    table.data.empilable td:empty { display: none; }
    table.data.empilable td.hide-mobile { display: none; }
    table.data.empilable tr.row-down { background: var(--rouge-clair); }

    /* En-tête des pages : un bouton seul prend toute la largeur ; filtres en pleine largeur */
    .page-head .actions > .btn:only-child, .page-head .actions > form:only-child .btn { width: 100%; justify-content: center; }
    .head-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
    .head-actions select.input, .head-actions .input { width: 100% !important; }
    .head-actions > * { min-width: 0; }

    /* Paramètres : menu des familles plus compact (2 colonnes) */
    .parametres-menu { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .parametres-famille { padding: 10px 8px 10px; }
    .parametres-famille + .parametres-famille { border-top: 0 !important; }
    .parametres-famille:nth-child(odd) { border-left: 0 !important; }
    .parametres-famille:nth-child(even) { border-left: 1px solid var(--bord) !important; }
    .parametres-famille:nth-child(n+3) { border-top: 1px solid var(--bord) !important; }
    .parametres-famille a { padding: 6px 6px; gap: 7px; font-size: .9rem; }
    .parametres-lien-texte { white-space: normal; line-height: 1.2; }

    /* Bandeau rouge des coupures : plus compact */
    .outage { padding: 12px 14px; gap: 10px; }
    .outage .outage-icon { display: none; }
    .outage h2 { font-size: 1rem; }
    .outage li { row-gap: 2px; }
    .outage .outage-actions { width: 100%; }
    .outage .outage-actions .btn { width: 100%; justify-content: center; }

    /* Tableau de bord : tuiles chiffrées deux par ligne */
    .tb-grille { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .tb-grille > .tb-widget { grid-column: 1 / -1 !important; }
    .tb-grille > .tb-widget[data-tb-largeur="1"] { grid-column: span 1 !important; }
    .tb-widget[data-tb-largeur="1"] .bd-tuile { padding: 12px 12px 11px; gap: 7px; }
    .tb-widget[data-tb-largeur="1"] .bd-ico { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
    .tb-widget[data-tb-largeur="1"] .bd-nom { font-size: .85rem; }
    .tb-widget[data-tb-largeur="1"] .bd-chiffre b { font-size: 1.55rem; }
    .tb-widget[data-tb-largeur="1"] .bd-sur, .tb-widget[data-tb-largeur="1"] .bd-etat { font-size: .76rem; }
    .tb-widget[data-tb-largeur="1"] .bd-voyant { width: 8px; height: 8px; box-shadow: 0 0 0 3px var(--bd-cc); }
    .tb-widget .liste-items .item { flex-wrap: wrap; row-gap: 6px; }
    .tb-widget .liste-items .item .right { margin-left: auto; }
    .page-head .barre-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
    .page-head .barre-actions > .btn-primaire { grid-column: 1 / -1; order: -1; }
    .page-head .barre-actions > .btn { justify-content: center; }
    .tb-edition-barre { gap: 6px; }
    .tb-edition-barre .tb-aide { display: none; }

    /* Fiche client : en-têtes des cartes (NAS, liens) qui passent à la ligne proprement */
    .lc-head { flex-wrap: wrap; row-gap: 6px; }
    .lc-title h2 { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
    /* Tableau de bord sur téléphone : empilement simple (pas de mosaïque), sans trou */
    .tb-grille.tb-mosaique { grid-auto-rows: auto !important; row-gap: 10px !important; align-items: stretch !important; }
    .tb-grille > .tb-widget { grid-row-end: auto !important; }
    .tb-grille .tb-contenu > .card, .tb-grille .tb-contenu > .tb-postit { min-height: 0 !important; }
}

/* Liste des clients (ordinateur) : nom du client sur une ligne, ville dessous, comme le tableau des liens internet */
@media (min-width: 861px) { .clients-table td.c-client { white-space: nowrap; min-width: 150px; } .clients-table td.c-client .cell-sub { text-transform: uppercase; } }

.sub-line:has(> .state-dot.sd-down), .nas-lines:has(.state-dot.sd-down), td:has(.state-dot.sd-down) { overflow: visible; }

/* ===== 💓 Pulsation des pastilles d'état (la même que le voyant de connexion d'AXION PILOT) =====
   Une onde s'échappe du point en s'agrandissant et en s'effaçant, et le point clignote doucement :
   vert calme (2,4 s) en ligne, orange (1,5 s) dégradé, rouge rapide (1,1 s) hors ligne.
   Seuls transform et opacity s'animent ; elles pulsent toujours, même avec « réduire les animations ». */
@keyframes wp-onde { 0% { transform: scale(1); opacity: .6; } 75%, 100% { transform: scale(2.9); opacity: 0; } }
@keyframes wp-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Pastilles des tableaux, fiches, NAS, firewalls, sauvegardes, centre de contrôle */
.state-dot:is(.sd-up, .sd-ok, .sd-unstable, .sd-warn, .sd-warning, .sd-down, .sd-bad, .sd-failed) { position: relative; animation: wp-clignote 2.4s ease-in-out infinite; }
.state-dot:is(.sd-up, .sd-ok, .sd-unstable, .sd-warn, .sd-warning, .sd-down, .sd-bad, .sd-failed)::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: inherit; pointer-events: none; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
.state-dot:is(.sd-unstable, .sd-warn, .sd-warning), .state-dot:is(.sd-unstable, .sd-warn, .sd-warning)::after { animation-duration: 1.5s; }
.state-dot:is(.sd-down, .sd-bad, .sd-failed), .state-dot:is(.sd-down, .sd-bad, .sd-failed)::after { animation-duration: 1.1s; }
.sd-ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(20,166,114,.16); }
.sd-warn, .sd-warning { background: var(--warn); box-shadow: 0 0 0 4px rgba(217,137,11,.16); }
.sd-down, .sd-bad, .sd-failed { background: var(--bad); box-shadow: 0 0 0 4px rgba(214,60,60,.16); }

/* Pastilles « En ligne / Coupé / Instable » (puces de texte) : l'onde part du point */
:is(.pill.st-up, .st-up .pill, .pill.st-unstable, .st-unstable .pill, .pill.st-down, .st-down .pill) { position: relative; }
:is(.pill.st-up, .st-up .pill, .pill.st-unstable, .st-unstable .pill, .pill.st-down, .st-down .pill)::before { animation: wp-clignote 2.4s ease-in-out infinite; }
:is(.pill.st-up, .st-up .pill, .pill.st-unstable, .st-unstable .pill, .pill.st-down, .st-down .pill)::after { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px;
    margin-top: -3.5px; border-radius: 50%; background: var(--vert); pointer-events: none; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
:is(.pill.st-unstable, .st-unstable .pill)::after { background: var(--orange); }
:is(.pill.st-down, .st-down .pill)::after { background: var(--rouge); }
:is(.pill.st-unstable, .st-unstable .pill)::before, :is(.pill.st-unstable, .st-unstable .pill)::after { animation-duration: 1.5s; }
:is(.pill.st-down, .st-down .pill)::before, :is(.pill.st-down, .st-down .pill)::after { animation-duration: 1.1s; }

/* Voyants des tuiles du tableau de bord */
.bd-voyant { position: relative; }
.ton-ok .bd-voyant, .ton-warn .bd-voyant, .ton-ko .bd-voyant { animation: wp-clignote 2.4s ease-in-out infinite; }
.ton-ok .bd-voyant::after, .ton-warn .bd-voyant::after, .ton-ko .bd-voyant::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bd-c);
    pointer-events: none; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
.ton-warn .bd-voyant, .ton-warn .bd-voyant::after { animation-duration: 1.5s; }
.ton-ko .bd-voyant, .ton-ko .bd-voyant::after { animation-duration: 1.1s; }

/* Point « actualisé à … » du tableau de bord et voyant de la supervision dans le menu */
.sup-dot { position: relative; animation: wp-clignote 2.4s ease-in-out infinite; }
.sup-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; pointer-events: none; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
.sup-card.is-late .sup-dot, .sup-card.is-late .sup-dot::after { animation-name: wp-clignote; animation-duration: 1.5s; }
.sup-card.is-late .sup-dot::after { animation-name: wp-onde; }
.sup-card.is-down .sup-dot, .sup-card.is-down .sup-dot::after { animation-name: wp-clignote; animation-duration: 1.1s; }
.sup-card.is-down .sup-dot::after { animation-name: wp-onde; }
.live-dot { position: relative; display: inline-block; flex: none; box-shadow: 0 0 0 3px rgba(20,166,114,.2); animation: wp-clignote 2.4s ease-in-out infinite; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; pointer-events: none; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }

/* Voyant de connexion de l'en-tête (« 83 ms ») : exactement celui d'AXION PILOT */
.cx-point { position: relative; animation: wp-clignote 2.4s ease-in-out infinite; }
.cx-point::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cx-c); pointer-events: none;
    animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
.cx[data-etat="lente"] .cx-point, .cx[data-etat="lente"] .cx-point::after,
.cx[data-etat="instable"] .cx-point, .cx[data-etat="instable"] .cx-point::after { animation-duration: 1.5s; }
.cx[data-etat="hors"] .cx-point, .cx[data-etat="hors"] .cx-point::after,
.cx[data-etat="internet"] .cx-point, .cx[data-etat="internet"] .cx-point::after { animation-duration: 1.1s; }

/* Les pastilles pulsent toujours, même si Windows (ou le téléphone) est réglé pour réduire les animations :
   AXION PILOT coupe son voyant dans ce cas, on le rétablit ici (seuls transform et opacity s'animent, sans coût). */
@media (prefers-reduced-motion: reduce) {
    .cx-point { animation: wp-clignote 2.4s ease-in-out infinite !important; }
    .cx-point::after { display: block !important; animation: wp-onde 2.4s cubic-bezier(.2, .6, .35, 1) infinite !important; }
    .cx:is([data-etat="lente"], [data-etat="instable"]) .cx-point, .cx:is([data-etat="lente"], [data-etat="instable"]) .cx-point::after { animation-duration: 1.5s !important; }
    .cx:is([data-etat="hors"], [data-etat="internet"]) .cx-point, .cx:is([data-etat="hors"], [data-etat="internet"]) .cx-point::after { animation-duration: 1.1s !important; }
}

/* 📱 Apparence › Application iPhone (notifications et pastille de l'icône) */
.appli-carte { margin-top: 14px; padding: 18px 20px; }
.appli-tete { display: flex; gap: 14px; align-items: flex-start; }
.appli-tete p { margin: 4px 0 0; }
.appli-icone { border-radius: 12px; flex: none; box-shadow: var(--ombre); }
.appli-etapes { margin: 14px 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: .92rem; color: var(--texte-2); }
.appli-etapes b { color: var(--texte); }
.appli-etat { margin: 10px 0; font-weight: 600; }
.appli-carte.appli-active .appli-etat { color: var(--vert); }
.appli-boutons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 760px) { .appli-boutons .btn { width: 100%; justify-content: center; } }
.appli-etapes { display: block !important; list-style: decimal !important; } .appli-etapes li { display: list-item !important; margin: 0 0 6px; line-height: 1.45; } .appli-etapes li > * { display: inline !important; }
