/* Charte Seventy Labs : fond graphite, texte blanc lisible, ambre pour l'action, Unbounded + IBM Plex. */
:root {
  --bg: #07080c; --panel: #0c0e14; --card: #11141b; --card-2: #161a23;
  --fg: #f7f4ee; --fg-2: #d9dce3; --fg-3: #b7bcc7;
  --accent: #f0a93a; --cool: #3cc6d6; --violet: #6b4bff;
  --ok: #4fd37e; --warn: #f0a93a; --crit: #ff5a5a; --off: #5b6170;
  --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.16); --glass: rgba(10,12,18,.6); --input: rgba(255,255,255,.06);
  --display: "Unbounded", "Arial Black", Impact, sans-serif; --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }
body.entry { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }
a { color: var(--fg); }

/* ---------- Entrée ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 100% at 50% 110%, #10131c 0%, var(--bg) 60%); }
.aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(70px) saturate(1.3); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; width: 55vmax; height: 55vmax; mix-blend-mode: screen; will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: -10%; top: -5%; background: radial-gradient(circle, rgba(240,169,58,.55), transparent 60%); animation-duration: 29s; }
.aurora i:nth-child(2) { right: -15%; top: 10%; background: radial-gradient(circle, rgba(60,198,214,.45), transparent 60%); animation-duration: 33s; animation-delay: -9s; }
.aurora i:nth-child(3) { left: 20%; bottom: -25%; background: radial-gradient(circle, rgba(107,75,255,.5), transparent 60%); animation-duration: 37s; animation-delay: -17s; }
.aurora i:nth-child(4) { right: 10%; bottom: -10%; background: radial-gradient(circle, rgba(255,106,61,.35), transparent 60%); animation-duration: 24s; animation-delay: -4s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(14vw, -10vh) scale(1.25) rotate(20deg); } }
canvas#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); }
.mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.mark h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 12vw, 150px); line-height: .9; letter-spacing: -.02em; background: linear-gradient(100deg, rgba(247,244,238,.35) 0%, rgba(247,244,238,.95) 45%, rgba(240,169,58,.95) 60%, rgba(247,244,238,.35) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; user-select: none; }
.mark h1 small { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(11px, 1.4vw, 15px); letter-spacing: .5em; margin-top: 18px; color: var(--fg-2); -webkit-text-fill-color: var(--fg-2); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -20% 0; } }
.sky.opening .mark h1 { animation: none; transition: transform 1.2s cubic-bezier(.7,0,.2,1), opacity .8s; transform: scale(1.6); opacity: 0; }
.flash { position: absolute; inset: 0; background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), rgba(240,169,58,.9), rgba(60,198,214,.4) 30%, transparent 60%); opacity: 0; pointer-events: none; }
.flash.go { animation: flash 1.1s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }

/* ---------- Connexion ---------- */
.login { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); pointer-events: none; }
.login.show { clip-path: circle(160% at var(--cx, 50%) var(--cy, 50%)); pointer-events: auto; transition: clip-path 1.3s cubic-bezier(.65,0,.2,1); }
.brand { display: flex; flex-direction: column; justify-content: center; padding-block: max(36px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand .inner { max-width: 560px; width: 100%; margin: 0 auto; padding-inline: clamp(8px, 4vw, 48px); }
.brand h2 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6.2vw, 84px); line-height: .92; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.brand h2 span { color: var(--accent); }
.pane { display: grid; place-items: center; padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); overflow: auto; background: var(--glass); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); border-left: 1px solid var(--line); }
.login .card { width: min(100%, 400px); }
.login.show .step.active > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -.01em; }
.card p.who { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; margin: 0 0 20px; min-width: 0; color: var(--fg-2); }
.card p.who span { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card p.hint { color: var(--fg-2); font-size: 13.5px; margin: 0 0 16px; }
.card p.secret { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--fg); user-select: all; margin: 0 0 16px; word-break: break-all; }
.card p.err { color: var(--crit); font-size: 13.5px; margin: 14px 0 0; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; letter-spacing: .04em; color: var(--fg-2); }
.field input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--input); color: var(--fg); font: inherit; }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(240,169,58,.18); }
.btn { width: 100%; padding: 13px 16px; border-radius: 8px; border: 1px solid transparent; background: var(--accent); color: #1a1206; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .12s, filter .15s, box-shadow .2s; box-shadow: 0 10px 30px rgba(240,169,58,.25); }
.btn:hover { filter: brightness(1.06); box-shadow: 0 14px 40px rgba(240,169,58,.35); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); box-shadow: none; }
.btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-2); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code { display: flex; gap: 8px; }
.code input { text-align: center; font-family: var(--mono); font-size: 22px; padding: 12px 0; letter-spacing: .3em; }
.qr { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 12px; width: 204px; margin: 18px 0 14px; }
.step { display: none; } .step.active { display: block; }
.welcome .big { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; margin: 0 0 12px; letter-spacing: -.02em; }
@media (max-width: 760px) {
  body.entry { overflow: auto; }
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .brand { padding-block: max(28px, env(safe-area-inset-top, 0px)) 18px; }
  .brand h2 { font-size: clamp(38px, 13vw, 64px); }
  .pane { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .mark h1 { animation: none !important; } .login.show { transition-duration: .2s; } .login.show .step.active > * { animation: none; } }

/* ---------- Mur, thème clair sur le modèle du tableau de bord SwissCarInfo : cartes de catégorie, lignes libellé / valeur. ---------- */
/* ---------- Mur, thème clair, charte du tableau de bord SwissCarInfo (admin) ----------
   Remplace TOUTE la section « Mur » de app.css (du commentaire jusqu'à la fin du fichier).
   Mêmes sélecteurs que panel.php. Préfixe body.wall : bat les règles globales de la page de connexion
   (.card { width: min(100%, 400px) }, .card h3, .card p...) qui plafonnaient les cartes du mur à 400 px.
   Police : IBM Plex Sans (chargée), chiffres tabulaires. Tailles en px (base 16 comme Bootstrap/SCI). */

body.wall {
  /* fonds et traits */
  --wbg: #f8fafc; --wcard: #ffffff; --wline: #e2e8f0; --wline2: #f1f5f9; --whover: #f8fafc;
  /* texte : principal / secondaire / tertiaire */
  --wfg: #1e293b; --wfg2: #64748b; --wfg3: #94a3b8;
  /* liens et accent */
  --wblue: #2563eb; --wblue-ico: #3b82f6; --wbluebg: #dbeafe; --wbluefg: #1d4ed8;
  /* états : texte (contraste >= 4.5 sur blanc), trait/barre, fond pâle */
  --wok: #047857; --wok-bar: #10b981; --wokbg: #dcfce7; --wokfg: #166534;
  --wwarn: #b45309; --wwarn-bar: #f59e0b; --wwarnbg: #fef3c7; --wwarnfg: #92400e;
  --wcrit: #dc2626; --wcrit-bar: #ef4444; --wcritbg: #fee2e2; --wcritfg: #991b1b;
  --woff: #94a3b8; --woffbg: #e2e8f0; --woffg: #475569;
  --wr: 10px;
  background: var(--wbg); color: var(--wfg); font-family: var(--body); font-size: 15px; line-height: 1.45; color-scheme: light;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
body.wall a { color: var(--wblue); }
body.wall .card { width: auto; }

/* ----- bande du haut : marque, état compact, horloge ----- */
body.wall .top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 7px max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px)); background: var(--wcard); border-bottom: 1px solid var(--wline); }
body.wall .brandline { font-weight: 700; font-size: 16px; color: var(--wfg); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
body.wall .brandline span { color: #d9931f; }
body.wall .strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; padding-left: 14px; border-left: 1px solid var(--wline); }
body.wall .chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 700; color: var(--wfg); line-height: 1.3; white-space: nowrap; }
body.wall .chip b { font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--wfg2); }
body.wall .chip.ok { color: var(--wok); }
body.wall .chip.warn { background: var(--wwarnbg); color: var(--wwarnfg); }
body.wall .chip.crit { background: var(--wcritbg); color: var(--wcritfg); }
body.wall .chip.warn b { color: var(--wwarnfg); opacity: .8; } body.wall .chip.crit b { color: var(--wcritfg); opacity: .8; }
body.wall .top .clock { margin-left: auto; font-size: 13px; color: var(--wfg2); white-space: nowrap; }
body.wall .top .clock::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--woff); margin-right: 8px; vertical-align: middle; }
body.live .top .clock::before { background: var(--wok-bar); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
body.wall .top .tl { font-size: 13px; font-weight: 500; text-decoration: none; padding: 5px 10px; border: 1px solid var(--wline); border-radius: 6px; color: var(--wfg2); white-space: nowrap; }
body.wall .top .tl:hover { background: var(--whover); color: var(--wfg); }

body.wall .content { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }

/* ----- bandeau d'alerte rouge ----- */
body.wall .banner { display: block; background: linear-gradient(90deg, #fef2f2, var(--wcritbg)); color: var(--wcritfg); border: 1px solid #fecaca; border-radius: var(--wr); padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 13px; }
body.wall .banner:hover { border-color: #fca5a5; }

/* ----- grille et cartes ----- */
body.wall .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 13px; align-items: start; }
body.wall .card { background: var(--wcard); border: 1px solid var(--wline); border-radius: var(--wr); padding: 15px 16px 10px; min-width: 0; box-shadow: none; }
body.wall .card.detail { max-width: 1100px; }
body.wall .card.wide { margin-bottom: 13px; }
body.wall .card header { display: flex; align-items: center; gap: 8px; padding: 0 0 8px; margin: 0; border: 0; }
body.wall .card .ic { width: 18px; height: 18px; color: var(--wblue-ico); flex: none; display: inline-flex; }
body.wall .card .ic svg { width: 18px; height: 18px; }
body.wall .card h2 { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--wfg2); margin: 0; line-height: 1.3; }
body.wall .card header small { font-size: 12px; font-weight: 400; color: var(--wfg3); margin-left: auto; white-space: nowrap; }
body.wall .card .more { text-decoration: none; font-size: 16px; line-height: 1; color: var(--wblue); padding: 2px 4px; margin-right: -4px; border-radius: 4px; }
body.wall .card .more:hover { background: var(--wbluebg); }
body.wall .card .body { display: grid; }

/* ----- lignes libellé / valeur ----- */
body.wall .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; border: 0; min-width: 0; }
body.wall .r + .r { border-top: 1px solid var(--wline2); }
body.wall .r .lab { font-size: 15px; font-weight: 400; color: var(--wfg2); line-height: 1.3; }
body.wall .r .sub { font-size: 12.5px; color: var(--wfg3); line-height: 1.35; margin-top: 1px; overflow-wrap: anywhere; }
body.wall .r .val { font-size: 16.5px; font-weight: 600; color: var(--wfg); text-align: right; white-space: nowrap; line-height: 1.25; }
body.wall .r .val small { font-size: 12px; font-weight: 400; color: var(--wfg3); margin-left: 4px; }
body.wall .r.ok .val { color: var(--wok); } body.wall .r.warn .val { color: var(--wwarn); } body.wall .r.crit .val { color: var(--wcrit); }
body.wall .r.off .val { color: var(--woff); font-weight: 500; }
body.wall .r.crit .lab { color: var(--wcrit); font-weight: 500; }
body.wall .card .plus { display: block; font-size: 13px; text-decoration: none; padding: 8px 0 3px; border-top: 1px solid var(--wline2); margin-top: 2px; }
body.wall .card .plus:hover { text-decoration: underline; }
body.wall .back { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 500; margin: 0 0 10px; }
body.wall .back:hover { text-decoration: underline; }

/* ----- pastilles de services ----- */
body.wall .svc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
body.wall .svc b { font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 4px; background: var(--wokbg); color: var(--wokfg); line-height: 1.4; }
body.wall .svc b.down { background: var(--wcritbg); color: var(--wcritfg); }

/* ----- liste d'alertes ----- */
body.wall .alist { display: grid; }
body.wall .ar { display: grid; grid-template-columns: 72px minmax(0, 1fr) 76px; gap: 10px; align-items: baseline; padding: 7px 0; border: 0; min-width: 0; }
body.wall .ar + .ar { border-top: 1px solid var(--wline2); }
body.wall .ar .niv { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 4px; text-align: center; background: var(--woffbg); color: var(--woffg); line-height: 1.4; }
body.wall .ar.critique .niv { background: var(--wcritbg); color: var(--wcritfg); }
body.wall .ar.warn .niv { background: var(--wwarnbg); color: var(--wwarnfg); }
body.wall .ar .src { display: none; }
body.wall .ar .msg { color: var(--wfg); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
body.wall .ar .dt { color: var(--wfg3); text-align: right; white-space: nowrap; font-size: 12.5px; }

/* ----- graphiques (Chart.js : voir SPEC.md pour les options à poser dans wall.js) ----- */
body.wall .charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 13px; margin-bottom: 13px; }
body.wall .card.chart { padding-bottom: 12px; }
body.wall .card.chart .cv { position: relative; padding: 4px 0 0; height: 180px; }
body.wall .card.chart canvas { width: 100% !important; height: 100% !important; }

/* ----- tableau « Tous les sites » ----- */
body.wall .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
body.wall .sites table { width: 100%; border-collapse: collapse; font-size: 15px; }
body.wall .sites th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--wfg2); font-weight: 600; padding: 6px 10px 8px; border-bottom: 1px solid var(--wline); white-space: nowrap; background: transparent; }
body.wall .sites td { padding: 9px 10px; border-bottom: 1px solid var(--wline2); vertical-align: middle; }
body.wall .sites tbody tr:hover td { background: var(--whover); }
body.wall .sites tr:last-child td { border-bottom: 0; }
body.wall .sites td.site { font-weight: 600; white-space: nowrap; }
body.wall .sites td.site a { text-decoration: none; color: var(--wblue); } body.wall .sites td.site a:hover { text-decoration: underline; }
body.wall .sites td.site small { display: block; font-weight: 400; color: var(--wfg3); font-size: 12px; }
body.wall .sites td.num { text-align: right; font-weight: 600; white-space: nowrap; color: var(--wfg); }
body.wall .sites td.num.ok { color: var(--wok); } body.wall .sites td.num.warn { color: var(--wwarn); } body.wall .sites td.num.crit { color: var(--wcrit); }
body.wall .sites th:not(:first-child) { text-align: right; }
body.wall .sites th:last-child, body.wall .sites td:last-child { text-align: left; }
body.wall .pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
body.wall .pill.ok { background: var(--wokbg); color: var(--wokfg); }
body.wall .pill.warn { background: var(--wwarnbg); color: var(--wwarnfg); }
body.wall .pill.crit { background: var(--wcritbg); color: var(--wcritfg); }
body.wall .pill.off { background: var(--woffbg); color: var(--woffg); }
body.wall .card .note { font-size: 12.5px; color: var(--wfg3); margin: 8px 0 4px; line-height: 1.4; }

/* ----- focus clavier ----- */
body.wall :focus-visible { outline: 2px solid var(--wblue-ico); outline-offset: 2px; border-radius: 4px; }

/* ----- mobile (390 px) ----- */
@media (max-width: 760px) {
  body.wall .top { flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  body.wall .brandline { font-size: 15px; }
  body.wall .top .clock { display: inline-block; font-size: 12px; }
  body.wall .top .tl { padding: 4px 8px; font-size: 12.5px; }
  /* la bande d'état reste visible : seconde ligne, défilement horizontal, une seule rangée */
  body.wall .strip { order: 9; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; border-left: 0; padding: 2px 0 0; margin: 0 -4px; scrollbar-width: none; }
  body.wall .strip::-webkit-scrollbar { display: none; }
  body.wall .chip { flex: none; font-size: 13.5px; padding: 3px 8px; background: #f1f5f9; }
  body.wall .chip.ok { background: #f1f5f9; } body.wall .chip.warn { background: var(--wwarnbg); } body.wall .chip.crit { background: var(--wcritbg); }
  body.wall .content { padding: 10px max(12px, env(safe-area-inset-right, 0px)) 40px max(12px, env(safe-area-inset-left, 0px)); }
  body.wall .grid, body.wall .charts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.wall .charts { margin-bottom: 10px; } body.wall .card.wide { margin-bottom: 10px; }
  body.wall .card { padding: 13px 14px 8px; }
  body.wall .card.chart .cv { height: 170px; }
  body.wall .r .lab { font-size: 15px; } body.wall .r .val { font-size: 16px; }
  body.wall .ar { grid-template-columns: 64px minmax(0, 1fr); } body.wall .ar .dt { display: none; }
  body.wall .sites table { font-size: 14px; }
  body.wall .sites td, body.wall .sites th { padding-left: 8px; padding-right: 8px; }
  body.wall .sites td.site { position: sticky; left: 0; background: var(--wcard); }
}
@media (prefers-reduced-motion: reduce) { body.wall * { transition: none !important; animation: none !important; } }


/* page Sécurité (même charte) */
.sec { max-width: 860px; display: grid; gap: 12.8px; }
.btn2 { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--wline); background: #fff; color: var(--wblue); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn2:hover { background: #f8fafc; }
.sec .link { background: none; border: 0; padding: 0; color: var(--wblue); cursor: pointer; font-size: 13px; text-decoration: underline; }
.sec .err { color: var(--wcrit); font-size: 13.5px; margin: 8px 0 0; }
.sec .qr { display: inline-block; background: #fff; border: 1px solid var(--wline); border-radius: 8px; padding: 10px; margin: 10px 0 8px; }
.sec .secret { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; letter-spacing: .06em; user-select: all; margin: 0 0 8px; }
.sec .code { display: flex; gap: 8px; max-width: 260px; }
.sec .code input { width: 100%; text-align: center; font-size: 20px; letter-spacing: .3em; padding: 8px 0; border: 1px solid var(--wline); border-radius: 6px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--wfg3); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--wline); }
table.plain td { padding: 6px; border-bottom: 1px solid var(--wline); vertical-align: top; overflow-wrap: anywhere; }
table.plain tr:last-child td { border-bottom: 0; }

/* tuiles de synthèse, en-tête de vue détaillée, jauges de la bande d'état (complément à la charte SCI) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12.8px; margin-bottom: 12.8px; }
.tile { display: grid; gap: 2px; background: #fff; border: 1px solid var(--wline); border-radius: var(--wr, 9.6px); padding: 12px 14px; text-decoration: none; color: var(--wfg); min-width: 0; }
.tile:hover { background: #f8fafc; }
.tile .tl { font-size: 12.5px; font-weight: 600; color: var(--wfg2); text-transform: uppercase; letter-spacing: .04em; }
.tile .tv { font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ts { font-size: 12.5px; color: var(--wfg3); overflow-wrap: anywhere; }
.tile.crit .tv { color: var(--wcrit, #dc2626); } .tile.warn .tv { color: var(--wwarn, #b45309); }
.dhead { display: flex; align-items: baseline; gap: 14px; margin: 2px 0 12.8px; flex-wrap: wrap; }
.dhead h1 { font-size: 18px; font-weight: 700; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.dhead h1 svg { width: 20px; height: 20px; color: var(--wblue); }
.dhead small { color: var(--wfg3); font-size: 12.5px; }
.dhead .back { margin: 0; }
.chip i { display: inline-block; width: 48px; height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.chip i em { display: block; height: 100%; background: #10b981; }
.chip.warn i em { background: #f59e0b; } .chip.crit i em { background: #ef4444; }
.grid .card.wide { grid-column: 1 / -1; }
table.plain th.num, table.plain td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.plain td.num { font-weight: 600; }
.card .tbl { padding: 4px 0 6px; overflow-x: auto; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile .tv { font-size: 22px; } }

/* densité : sur grand écran, le mur est rendu à 85 % (comme un dézoom du navigateur) pour montrer plus d'informations */
@media (min-width: 1280px) { body.wall .top, body.wall .content { zoom: .85; } }
@media (min-width: 1700px) { body.wall .top, body.wall .content { zoom: .8; } }
