/* ==========================================================================
   WEBTIC — Design system V15
   Palette de la charte projet : Navy #1e2a4a · Corail #c9485b · Rose #b44a7a
   Le corail est réservé à un seul rôle : le Press 1 et le transfert.
   ========================================================================== */

:root {
  --navy-900:#141d33; --navy-800:#1e2a4a; --navy-700:#2b3a60;
  --coral:#c9485b; --coral-deep:#a83b4c; --rose:#b44a7a;
  --ok:#0e8f74; --warn:#c08a2a; --idle:#6b7590; --bad:#8b2635;

  --bg:#f3f5fa; --surface:#ffffff; --surface-2:#eef1f7; --surface-3:#e4e8f2;
  --border:#dee3ee; --border-strong:#c6cddf;
  --text:#151c2e; --text-2:#515b76; --text-3:#66708a;

  --rail:#1a2440; --rail-2:#141c33; --rail-text:#c5cce0;
  --rail-muted:#7c88a8; --rail-line:#2b3654;

  --f1:#2b3a60; --f2:#3a4a75; --f3:#4d4f84; --f4:#7d4a7e;
  --f5:#c9485b; --f6:#a83b4c;
  --grid:#e4e8f2;

  --shadow:0 1px 2px rgba(20,29,51,.05), 0 8px 24px -12px rgba(20,29,51,.14);
  --shadow-lift:0 2px 4px rgba(20,29,51,.06), 0 18px 40px -18px rgba(20,29,51,.28);
  --r:10px; --r-lg:14px;

  --font-display:"Outfit", system-ui, -apple-system, sans-serif;
  --font-ui:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data:"IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0c1120; --surface:#141b2c; --surface-2:#1b2337; --surface-3:#232c43;
    --border:#27304a; --border-strong:#3a4463;
    --text:#e9edf7; --text-2:#a5afc7; --text-3:#7a849c;
    --rail:#101627; --rail-2:#0b1020; --rail-line:#222c46;
    --coral:#e0637a; --coral-deep:#c04c60; --rose:#c9639a;
    --ok:#22b08f; --warn:#d9a03f; --idle:#818da8; --bad:#c05060;
    --f1:#3d4f7d; --f2:#4a5b90; --f3:#5f5fa0; --f4:#95589a;
    --f5:#e0637a; --f6:#c04c60;
    --grid:#232c43;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    --shadow-lift:0 2px 4px rgba(0,0,0,.35), 0 18px 40px -18px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg:#0c1120; --surface:#141b2c; --surface-2:#1b2337; --surface-3:#232c43;
  --border:#27304a; --border-strong:#3a4463;
  --text:#e9edf7; --text-2:#a5afc7; --text-3:#7a849c;
  --rail:#101627; --rail-2:#0b1020; --rail-line:#222c46;
  --coral:#e0637a; --coral-deep:#c04c60; --rose:#c9639a;
  --ok:#22b08f; --warn:#d9a03f; --idle:#818da8; --bad:#c05060;
  --f1:#3d4f7d; --f2:#4a5b90; --f3:#5f5fa0; --f4:#95589a;
  --f5:#e0637a; --f6:#c04c60;
  --grid:#232c43;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lift:0 2px 4px rgba(0,0,0,.35), 0 18px 40px -18px rgba(0,0,0,.7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-ui); font-size:14px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.wt-display { font-family:var(--font-display); margin:0; text-wrap:balance; letter-spacing:-.01em; }
a { color:inherit; }
button, input, select, textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
:focus-visible { outline:2px solid var(--coral); outline-offset:2px; border-radius:5px; }
[x-cloak] { display:none !important; }
.wt-mono, .wt-num { font-family:var(--font-data); font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion: reduce) { *{ animation:none !important; transition:none !important; } }

/* ---------- marque ---------- */
.wt-mark { display:flex; align-items:center; gap:10px; }
.wt-mark-glyph {
  width:34px; height:34px; border-radius:9px; display:grid; place-items:center; flex:none;
  background:linear-gradient(145deg, var(--navy-700), var(--coral)); color:#fff;
  font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:-.02em;
}
.wt-mark-name { font-family:var(--font-display); font-weight:700; font-size:16px; }
.wt-mark-logo-icon { display:none; }
.wt-shell.is-collapsed .wt-mark-logo-full { display:none; }
.wt-shell.is-collapsed .wt-mark-logo-icon { display:block; }
.wt-mark-sub {
  font-size:11px; color:var(--text-3); letter-spacing:.05em; text-transform:uppercase; font-weight:600;
}

/* ---------- boutons ---------- */
.wt-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid var(--border-strong); background:var(--surface); color:var(--text);
  border-radius:9px; padding:10px 16px; font-size:14px; font-weight:500; text-decoration:none;
  transition:background .12s, border-color .12s;
}
.wt-btn:hover { background:var(--surface-2); }
.wt-btn-primary {
  border-color:transparent; background:var(--coral); color:#fff;
  font-family:var(--font-display); font-weight:600;
  box-shadow:0 8px 20px -10px color-mix(in srgb, var(--coral) 75%, transparent);
}
.wt-btn-primary:hover { background:var(--coral-deep); }
.wt-btn-ok { border-color:transparent; background:var(--ok); color:#fff; font-weight:600; }
.wt-btn-block { width:100%; }
.wt-btn[disabled] { background:var(--surface-3); color:var(--text-3); border-color:transparent; cursor:not-allowed; box-shadow:none; }

/* ---------- formulaires ---------- */
.wt-field { display:flex; flex-direction:column; gap:7px; }
.wt-label {
  font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3);
}
.wt-input {
  width:100%; border:1px solid var(--border-strong); background:var(--surface); color:var(--text);
  border-radius:9px; padding:11px 13px; font-size:14.5px;
  transition:border-color .12s, box-shadow .12s;
}
.wt-input::placeholder { color:var(--text-3); }
.wt-input:focus {
  outline:none; border-color:var(--coral);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--coral) 14%, transparent);
}
.wt-input-wrap { position:relative; }
.wt-input-btn {
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; color:var(--text-3); padding:6px; border-radius:6px; line-height:0;
}
.wt-input-btn:hover { color:var(--text-2); background:var(--surface-2); }

/* ---------- alertes ---------- */
.wt-alert {
  display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:9px;
  font-size:13.5px; line-height:1.45; border:1px solid;
}
.wt-alert svg { flex:none; margin-top:1px; }
.wt-alert-error {
  border-color:color-mix(in srgb, var(--bad) 35%, transparent);
  background:color-mix(in srgb, var(--bad) 9%, transparent);
  color:var(--bad);
}
.wt-alert-ok {
  border-color:color-mix(in srgb, var(--ok) 35%, transparent);
  background:color-mix(in srgb, var(--ok) 9%, transparent);
  color:var(--ok);
}

/* ---------- cartes & panneaux ---------- */
.wt-panel {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  box-shadow:var(--shadow); min-width:0;
}
.wt-panel-head {
  display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--border);
}
.wt-panel-title { font-family:var(--font-display); font-weight:600; font-size:15px; }
.wt-panel-sub { font-size:12px; color:var(--text-3); }
.wt-panel-body { padding:18px; }

/* ---------- pastilles & états ---------- */
.wt-chip {
  display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:500;
  padding:5px 11px; border-radius:20px; border:1px solid var(--border);
  background:var(--surface-2); color:var(--text-2); white-space:nowrap;
}
.wt-chip-live {
  border-color:color-mix(in srgb, var(--ok) 35%, transparent);
  background:color-mix(in srgb, var(--ok) 10%, transparent); color:var(--ok); font-weight:600;
}
.wt-dot { width:7px; height:7px; border-radius:50%; flex:none; background:currentColor; }
.wt-pulse { animation:wt-pulse 2s ease-in-out infinite; }
@keyframes wt-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.wt-tag {
  display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600;
  padding:3px 9px; border-radius:5px;
}
.wt-tag-human   { background:color-mix(in srgb, var(--ok) 13%, transparent);    color:var(--ok); }
.wt-tag-machine { background:color-mix(in srgb, var(--idle) 16%, transparent);  color:var(--idle); }
.wt-tag-unsure  { background:color-mix(in srgb, var(--warn) 15%, transparent);  color:var(--warn); }
.wt-tag-press1  { background:color-mix(in srgb, var(--coral) 13%, transparent); color:var(--coral); }
.wt-tag-none    { background:var(--surface-2); color:var(--text-3); }

/* ---------- tableaux ---------- */
.wt-table-wrap { overflow-x:auto; }
.wt-table { border-collapse:collapse; width:100%; font-size:13px; }
.wt-table thead th {
  text-align:left; font-size:10.5px; letter-spacing:.07em; text-transform:uppercase;
  color:var(--text-3); font-weight:600; padding:0 14px 9px; border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.wt-table tbody td { padding:11px 14px; border-bottom:1px solid var(--border); }
.wt-table tbody tr:last-child td { border-bottom:0; }
.wt-table tbody tr.wt-hot { background:color-mix(in srgb, var(--coral) 5%, transparent); }

/* ---------- rail de navigation ---------- */
.wt-shell {
  display:grid; grid-template-columns:250px minmax(0,1fr); min-height:100vh;
  transition:grid-template-columns .18s ease;
}
.wt-shell.is-collapsed { grid-template-columns:68px minmax(0,1fr); }
.wt-rail {
  background:var(--rail); color:var(--rail-text); display:flex; flex-direction:column;
  overflow:hidden; position:relative;
}
.wt-rail-head { padding:18px; border-bottom:1px solid var(--rail-line); display:flex; align-items:center; gap:10px; }
.wt-rail-head .wt-mark-name { color:#fff; white-space:nowrap; }
.wt-rail-org { margin-top:11px; display:flex; align-items:center; gap:7px; font-size:12px; color:var(--rail-muted); white-space:nowrap; }
.wt-collapse-btn {
  margin-left:auto; flex:none; width:24px; height:24px; border-radius:6px; border:0;
  background:rgba(255,255,255,.07); color:var(--rail-muted); display:grid; place-items:center;
}
.wt-collapse-btn:hover { background:rgba(255,255,255,.14); color:#fff; }
.wt-collapse-btn svg { width:13px; height:13px; transition:transform .18s ease; }
.wt-shell.is-collapsed .wt-collapse-btn svg { transform:rotate(180deg); }
.wt-rail-nav { padding:12px 10px; overflow-y:auto; overflow-x:hidden; flex:1; display:flex; flex-direction:column; gap:2px; }
.wt-nav-group {
  font-size:10px; font-weight:600; letter-spacing:.11em; text-transform:uppercase;
  color:var(--rail-muted); padding:16px 8px 6px; white-space:nowrap;
}
.wt-nav-item {
  display:flex; align-items:center; gap:10px; padding:8px 9px; border-radius:7px;
  color:var(--rail-text); font-size:13.5px; text-decoration:none; white-space:nowrap;
}
.wt-nav-item:hover { background:rgba(255,255,255,.06); }
.wt-nav-item.is-active { background:rgba(255,255,255,.1); color:#fff; font-weight:600; }
.wt-nav-item.is-active .wt-ico { color:var(--coral); }
.wt-ico { width:16px; height:16px; flex:none; color:var(--rail-muted); }
.wt-nav-badge {
  margin-left:auto; background:var(--coral); color:#fff; font-size:10.5px; font-weight:600;
  padding:1px 6px; border-radius:20px; font-family:var(--font-data);
}
.wt-rail-foot { border-top:1px solid var(--rail-line); padding:10px; margin-top:auto; }

/* mode reduit : icones seules, texte masque, tout centre */
.wt-shell.is-collapsed .wt-rail-head { padding:18px 0; justify-content:center; }
.wt-shell.is-collapsed .wt-rail-head .wt-mark-glyph { margin:0 auto; }
.wt-shell.is-collapsed .wt-mark-name,
.wt-shell.is-collapsed .wt-rail-org,
.wt-shell.is-collapsed .wt-nav-group,
.wt-shell.is-collapsed .wt-nav-item span,
.wt-shell.is-collapsed .wt-nav-badge,
.wt-shell.is-collapsed .wt-nav-item .wt-nav-label { display:none; }
.wt-shell.is-collapsed .wt-collapse-btn { margin:0 auto; }
.wt-shell.is-collapsed .wt-nav-item { justify-content:center; padding:9px; }
.wt-shell.is-collapsed .wt-rail-nav { padding:12px 8px; }

.wt-main { min-width:0; display:flex; flex-direction:column; }
.wt-topbar {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:16px 24px; border-bottom:1px solid var(--border); background:var(--surface);
}
.wt-topbar-right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.wt-canvas { padding:22px 24px 32px; display:flex; flex-direction:column; gap:20px; flex:1; }
.wt-avatar {
  width:32px; height:32px; border-radius:50%; display:grid; place-items:center; flex:none;
  background:var(--surface-3); color:var(--text-2); font-size:12px; font-weight:600;
  font-family:var(--font-data); border:1px solid var(--border);
}

@media (max-width: 900px) {
  .wt-shell { grid-template-columns:minmax(0,1fr); }
  .wt-rail { position:fixed; inset:0 auto 0 0; width:250px; z-index:50; transform:translateX(-100%); transition:transform .2s; }
  .wt-rail.is-open { transform:none; }
}

/* ---------- écran de connexion ---------- */
.wt-auth { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); min-height:100vh; }
.wt-auth-brand {
  background:var(--rail); color:#fff; padding:44px 48px;
  display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden;
}
.wt-auth-brand::after {
  content:""; position:absolute; right:-90px; bottom:-90px; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--coral) 42%, transparent), transparent 68%);
  pointer-events:none;
}
.wt-auth-claim { font-family:var(--font-display); font-weight:600; font-size:31px; line-height:1.22; max-width:15ch; }
.wt-auth-claim em { font-style:normal; color:var(--coral); }
.wt-auth-lede { color:var(--rail-text); font-size:14.5px; line-height:1.6; max-width:40ch; margin-top:14px; }
.wt-auth-metrics { display:flex; gap:30px; flex-wrap:wrap; position:relative; z-index:1; }
.wt-auth-metric-v { font-family:var(--font-display); font-weight:600; font-size:25px; font-variant-numeric:tabular-nums; }
.wt-auth-metric-v.accent { color:var(--coral); }
.wt-auth-metric-l { font-size:11px; color:var(--rail-muted); letter-spacing:.05em; text-transform:uppercase; margin-top:2px; }
.wt-auth-form { display:grid; place-items:center; padding:40px 24px; background:var(--bg); }
.wt-auth-card { width:100%; max-width:380px; display:flex; flex-direction:column; gap:18px; }
.wt-auth-title { font-family:var(--font-display); font-weight:600; font-size:23px; }
.wt-auth-note { font-size:13px; color:var(--text-3); }
.wt-auth-foot { font-size:12px; color:var(--text-3); text-align:center; }

@media (max-width: 860px) {
  .wt-auth { grid-template-columns:minmax(0,1fr); }
  .wt-auth-brand { padding:32px 26px; gap:26px; }
  .wt-auth-claim { font-size:25px; }
}

/* ---------- statistiques (bande de tuiles) ---------- */
.wt-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:12px; }
.wt-stat {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  padding:14px 16px; display:flex; align-items:center; gap:12px; box-shadow:var(--shadow);
}
.wt-stat-ico { width:38px; height:38px; border-radius:9px; display:grid; place-items:center; flex:none; }
.wt-stat-ico svg { width:17px; height:17px; }
.wt-stat-v { font-family:var(--font-display); font-weight:600; font-size:21px; line-height:1; font-variant-numeric:tabular-nums; }
.wt-stat-l { font-size:11px; color:var(--text-3); margin-top:2px; }

/* ---------- filtres en pilules ---------- */
.wt-filters { display:flex; gap:8px; flex-wrap:wrap; }
.wt-filter {
  padding:7px 15px; border-radius:20px; border:1px solid var(--border); background:var(--surface);
  color:var(--text-2); font-size:12.5px; font-weight:500; text-decoration:none; display:inline-flex; align-items:center; gap:6px;
}
.wt-filter:hover { border-color:var(--border-strong); }
.wt-filter.is-active { background:var(--coral); border-color:var(--coral); color:#fff; font-weight:600; }

/* ---------- modales ---------- */
.wt-modal-backdrop {
  position:fixed; inset:0; background:rgba(10,14,26,.55); z-index:1000;
  display:none; align-items:center; justify-content:center; backdrop-filter:blur(3px); padding:20px;
}
.wt-modal-backdrop.wt-show { display:flex; }
.wt-modal {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  width:100%; max-width:480px; box-shadow:var(--shadow-lift); overflow:hidden;
}
.wt-modal-head {
  padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center;
  justify-content:space-between; gap:12px;
}
.wt-modal-head h3 { font-family:var(--font-display); font-weight:600; font-size:16px; display:flex; align-items:center; gap:9px; }
.wt-modal-body { padding:20px; display:flex; flex-direction:column; gap:14px; }
.wt-modal-foot { padding:14px 20px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }
.wt-modal-close { border:0; background:var(--surface-2); color:var(--text-2); width:28px; height:28px; border-radius:7px; display:grid; place-items:center; }
.wt-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:480px) { .wt-form-row { grid-template-columns:1fr; } }
.wt-textarea { width:100%; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); border-radius:9px; padding:10px 12px; font-size:13.5px; font-family:inherit; resize:vertical; }
.wt-textarea:focus { outline:none; border-color:var(--coral); box-shadow:0 0 0 3px color-mix(in srgb, var(--coral) 14%, transparent); }
.wt-pill-btn { padding:6px 13px; border-radius:20px; border:1px solid var(--border); background:var(--surface-2); color:var(--text-2); font-size:12px; font-weight:500; }
.wt-pill-btn:hover { border-color:var(--border-strong); }
.wt-empty { text-align:center; padding:48px 20px; color:var(--text-3); }
.wt-empty svg { width:36px; height:36px; margin-bottom:12px; opacity:.4; }

/* --- Menu : compact + mise en valeur (2026-09-24) --- */
@media (min-width: 901px) {
  .wt-rail { position:sticky; top:0; height:100vh; }
}
.wt-rail-head { padding:14px 16px; }
.wt-rail-nav { padding:8px 10px 12px; gap:1px; }
.wt-nav-group { padding:8px 10px 3px; font-size:9.5px; color:color-mix(in srgb, var(--coral) 55%, var(--rail-muted)); }
.wt-nav-item { position:relative; padding:5px 10px; font-size:13px; transition:background .15s, color .15s; }
.wt-nav-item:hover { background:rgba(255,255,255,.06); color:#fff; }
.wt-nav-item:hover .wt-ico { color:#fff; }
.wt-nav-item.is-active { background:linear-gradient(90deg, color-mix(in srgb, var(--coral) 26%, transparent), rgba(255,255,255,.04)); color:#fff; font-weight:600; }
.wt-nav-item.is-active::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:3px; border-radius:3px; background:var(--coral); box-shadow:0 0 8px var(--coral); }
.wt-rail-nav::-webkit-scrollbar { width:6px; }
.wt-rail-nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,.12); border-radius:6px; }

/* --- Campagnes : sélecteur « Niveau de la détection » (2026-10-13) --- */
.det-help{display:block;margin-top:3px;color:var(--text-3);font-size:12.5px}
.det-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px;border:0;padding:0;min-width:0}
.det-cards legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.det-lab{margin-top:16px}
.det-card{position:relative;min-width:0;display:flex;flex-direction:column;gap:9px;padding:16px 16px 14px;border:1.5px solid var(--border);border-radius:var(--r);background:var(--surface);cursor:pointer;transition:border-color .12s,box-shadow .12s,background .12s}
.det-card:hover{border-color:var(--border-strong)}
.det-card input{position:absolute;opacity:0;pointer-events:none}
.det-card:has(input:checked){border-color:var(--coral);background:color-mix(in srgb,var(--coral) 6%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--coral) 14%,transparent)}
.det-card:has(input:focus-visible){outline:2px solid var(--coral);outline-offset:2px}
.det-card-top{display:flex;align-items:center;gap:10px}
.det-radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--border-strong);flex:none;display:grid;place-items:center}
.det-card:has(input:checked) .det-radio{border-color:var(--coral)}
.det-card:has(input:checked) .det-radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--coral)}
.det-name{font-family:var(--font-display);font-weight:700;font-size:16px}
.det-ext{margin-left:auto;white-space:nowrap;font-family:var(--font-data);font-size:11px;color:var(--text-3)}
.det-what{font-size:13.5px;color:var(--text);margin:0}
.det-cost{font-size:12.5px;color:var(--text-2);margin:0;padding-top:9px;border-top:1px solid var(--border)}
.det-cost b{font-weight:600;color:var(--text)}
.det-badges{display:flex;gap:6px;flex-wrap:wrap}
.det-custom{margin-top:14px;display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r);border:1.5px solid color-mix(in srgb,var(--warn) 45%,transparent);background:color-mix(in srgb,var(--warn) 9%,var(--surface))}
.det-custom-ico{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--warn) 18%,transparent);color:var(--warn);font-weight:700}
.det-custom h3{font-family:var(--font-display);margin:0;font-size:15px;font-weight:600}
.det-custom p{margin:3px 0 0;font-size:13px;color:var(--text-2)}
.det-custom .wt-btn{margin-top:10px;padding:7px 12px;font-size:12.5px}
.det-keep{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-3);margin-top:10px}
.det-foot-hint{font-size:12px;color:var(--text-3);margin-top:12px}
.det-off{margin-top:14px;padding:12px 14px;border-radius:var(--r);background:var(--surface-2);color:var(--text-3);font-size:13px}
@media (max-width:900px){.det-cards{grid-template-columns:1fr}}
@media (max-width:640px){.det-custom{flex-direction:column}}

/* ---- 2026-10-19 : bouton de thème commun (assets/wt-theme.js) et barre du haut sur petit écran ---- */
.wt-theme-btn { flex:none; width:36px; height:36px; border-radius:50%; display:inline-grid; place-items:center; padding:0; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); cursor:pointer; transition:background .12s, border-color .12s; }
.wt-theme-btn:hover { background:var(--surface-2); border-color:var(--coral); }
.wt-topbar > .wt-theme-btn { margin-left:-4px; }
@media (max-width:640px) { .wt-topbar { padding:12px 14px; gap:10px; } .wt-topbar-right { gap:8px; flex-wrap:wrap; } .wt-topbar .user-name { display:none; } }
/* Contraste AA du texte blanc sur les boutons principaux en mode sombre (le corail clair ne donnait que 3,4:1) */
:root[data-theme="dark"] .wt-btn-primary, :root[data-theme="dark"] .wt-filter.is-active { background:#c04c60; }
:root[data-theme="dark"] .wt-btn-primary:hover { background:#a83b4c; }
.wt-rail .wt-nav-item[href="press1.php"]:not(.is-active) { color:#ff9aab !important; }
.wt-shell .user-avatar { background:var(--f1); color:#fff; }
