/* Portail Valtis : mêmes couleurs et polices que valtis.tech */
@font-face { font-family: "Sora"; src: url("/static/fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #05080f; --bg-2: #080d19; --surface: rgba(148, 178, 222, 0.05); --surface-2: rgba(148, 178, 222, 0.09); --solid: #0c1426;
  --line: rgba(148, 178, 222, 0.12); --line-2: rgba(148, 178, 222, 0.22);
  --text: #e8eef8; --text-2: #aab6c9; --text-3: #8391a8;
  --cyan: #22c5dd; --cyan-2: #67e3f3; --ok: #34d399; --warn: #fbbf24; --crit: #f87171; --info: #38bdf8;
  --grad-btn: linear-gradient(135deg, #3fd6ea 0%, #00acc3 55%, #0a8fb8 100%);
  --r: 16px; --font-d: "Sora", "Inter", system-ui, sans-serif; --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--cyan-2); }
h1, h2 { font-family: var(--font-d); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.05rem; margin-bottom: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--text-2); } .small { font-size: .86rem; } .block { display: block; } .nowrap { white-space: nowrap; } .mt { margin-top: 20px; }
.accent { color: var(--cyan-2); } .num { text-align: right; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--cyan); color: #03141b; padding: 8px 14px; border-radius: 8px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-d); font-weight: 650; letter-spacing: .14em; }
.logo__mark { width: 40px; }
.logo__eye, .logo__hex { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.logo__shield { fill: rgba(34, 197, 221, 0.15); stroke: var(--cyan); stroke-width: 2.2; stroke-linejoin: round; }

/* Boutons et formulaires */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: rgba(148, 178, 222, 0.4); }
.btn--primary { background: var(--grad-btn); color: #03141b; border: 0; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: 10px; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--text-2); font: inherit; text-decoration: underline; cursor: pointer; margin-top: 12px; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.field--inline { display: inline-grid; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; background: rgba(5, 8, 15, 0.6); border: 1px solid var(--line-2); color: var(--text); font: 400 1rem var(--font); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 197, 221, 0.15); }
.input--code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; margin-top: 14px; font-size: .92rem; }
.alert--err { color: #fecaca; background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); }
.alert--ok { color: #a7f3d0; background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.35); }

/* Pages hors connexion */
.auth { display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(60% 50% at 70% 0%, rgba(34, 197, 221, 0.14), transparent 70%), var(--bg); }
.auth__main { width: 100%; max-width: 440px; display: grid; gap: 20px; justify-items: center; }
.auth__card { width: 100%; padding: 32px 28px; }
.auth__card h1 { margin-bottom: 6px; }
.auth__foot { color: var(--text-3); font-size: .82rem; }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; margin: 18px auto 10px; }
.qr svg { display: block; width: 100%; height: auto; }
/* Double authentification : bouclier, anneau calé sur la fenêtre de 30 s, cases du code */
.totp { position: relative; width: 112px; height: 112px; margin: 0 auto 16px; display: grid; place-items: center; }
.totp::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 221, 0.28), transparent 70%); animation: totp-glow 3.2s ease-in-out infinite; }
.totp--small { width: 72px; height: 72px; margin-bottom: 10px; }
.totp--small::before { inset: 0; }
.totp__ring { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 3.5; stroke-linecap: round; }
.totp__track { stroke: var(--line); }
.totp__progress { stroke: var(--cyan); stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(34, 197, 221, 0.6)); }
.totp.is-live .totp__progress { animation: totp-window 30s linear infinite, totp-color 30s linear infinite; animation-delay: var(--totp-delay, 0s); }
.totp__shield { position: relative; width: 46px; height: 46px; fill: rgba(34, 197, 221, 0.12); stroke: var(--cyan-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: totp-float 3.2s ease-in-out infinite; }
.totp--small .totp__shield { width: 40px; height: 40px; }
.totp__scan { position: absolute; left: 30%; right: 30%; top: 30%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan-2), transparent); box-shadow: 0 0 10px var(--cyan); opacity: 0; }
.is-verifying .totp__scan { animation: totp-scan 1s ease-in-out infinite; }
.is-verifying .totp__shield { animation: none; }
.totp__hint { text-align: center; margin: -6px 0 14px; color: var(--text-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.totp__hint strong { color: var(--text-2); }
.totp__hint.is-late strong { color: var(--warn); }
.code-dots { display: flex; justify-content: center; gap: 10px; margin-top: -4px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background .2s, box-shadow .2s, transform .2s; }
.code-dots i.is-on { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 197, 221, 0.7); animation: dot-pop .25s ease-out; }
.code-dots.is-full i { background: var(--ok); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); animation: dot-wave .5s ease-out both; }
.code-dots.is-full i:nth-child(2) { animation-delay: .04s; } .code-dots.is-full i:nth-child(3) { animation-delay: .08s; }
.code-dots.is-full i:nth-child(4) { animation-delay: .12s; } .code-dots.is-full i:nth-child(5) { animation-delay: .16s; } .code-dots.is-full i:nth-child(6) { animation-delay: .2s; }
.auth__card:has(.alert--err) .code-dots i { background: rgba(248, 113, 113, 0.5); }
.auth__card:has(.totp):has(.alert--err) { animation: card-shake .45s ease-in-out; }
.is-verifying .btn--primary { pointer-events: none; opacity: .85; }
.is-verifying .btn--primary::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(3, 20, 27, 0.25); border-top-color: #03141b; animation: spin .7s linear infinite; }

/* Écran « identité vérifiée » */
.verified { display: grid; justify-items: center; text-align: center; gap: 8px; }
.verified__mark { width: 124px; height: 124px; margin-bottom: 6px; overflow: visible; }
.verified__halo { fill: rgba(52, 211, 153, 0.1); stroke: rgba(52, 211, 153, 0.35); stroke-width: 1.5; transform-origin: 60px 60px; animation: halo-in .5s ease-out both, halo-ping 1.4s ease-out .9s both; }
.verified__shield { fill: rgba(52, 211, 153, 0); stroke: var(--ok); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .7s ease-in-out .15s forwards, shield-fill .4s ease-out .8s forwards; }
.verified__check { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.7)); animation: draw .4s ease-out .75s forwards; }
.verified h1, .verified p { animation: rise .5s ease-out .9s both; }
.verified .btn { margin-top: 14px; animation: rise .5s ease-out 1.05s both; }
.verified__bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.verified__bar::after { content: ""; position: absolute; inset: 0; background: var(--ok); transform-origin: left; animation: bar 3s linear forwards; }

@keyframes totp-window { to { stroke-dashoffset: 100; } }
@keyframes totp-color { 0%, 80% { stroke: var(--cyan); } 84%, 100% { stroke: var(--warn); } }
@keyframes totp-glow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes totp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes totp-scan { 0% { top: 28%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 70%; opacity: 0; } }
@keyframes dot-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes dot-wave { 0% { transform: translateY(0); } 40% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
@keyframes card-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shield-fill { to { fill: rgba(52, 211, 153, 0.14); } }
@keyframes halo-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes halo-ping { 0% { stroke-width: 1.5; stroke: rgba(52, 211, 153, 0.35); } 50% { stroke-width: 8; stroke: rgba(52, 211, 153, 0.12); } 100% { stroke-width: 1.5; stroke: rgba(52, 211, 153, 0.35); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .totp.is-live .totp__progress { animation: none; }
}

.secret { display: block; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: .95rem; letter-spacing: .08em; word-break: break-all; }

/* Application */
.card { background: linear-gradient(180deg, rgba(148, 178, 222, 0.06), rgba(148, 178, 222, 0.025)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 28px); background: rgba(5, 8, 15, 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__client { color: var(--text-2); font-weight: 600; padding-left: 16px; border-left: 1px solid var(--line-2); }
.topbar__out { margin-left: auto; }
.staff-banner { padding: 8px clamp(16px, 3vw, 28px); background: rgba(251, 191, 36, 0.1); border-bottom: 1px solid rgba(251, 191, 36, 0.3); color: #fde68a; font-size: .88rem; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 65px); }
.nav { padding: 20px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.nav__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav__link:hover { background: var(--surface); color: var(--text); }
.nav__link[aria-current="page"] { background: rgba(34, 197, 221, 0.1); color: var(--cyan-2); }
.content { padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; max-width: 1280px; min-width: 0; }
.page-head { display: grid; gap: 6px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .nav__link span { white-space: nowrap; }
  .topbar__client { display: none; }
}

.status { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); border: 1px solid; }
.status__icon { width: 30px; height: 30px; }
.status__label { font-family: var(--font-d); font-weight: 650; font-size: 1.15rem; }
.status--ok { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.35); } .status--ok .status__icon, .status--ok .status__label { color: var(--ok); }
.status--warn { background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.35); } .status--warn .status__icon, .status--warn .status__label { color: var(--warn); }
.status--crit { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.4); } .status--crit .status__icon, .status--crit .status__label { color: var(--crit); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.kpi__label { color: var(--text-3); font-size: .82rem; }
.kpi__value { font-family: var(--font-d); font-size: 1.8rem; font-weight: 650; }
.kpi__value small { font-size: .55em; color: var(--text-3); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid2--wide { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 1000px) { .grid2, .grid2--wide { grid-template-columns: 1fr; } }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card__head h2 { margin: 0; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--text-3); font-weight: 600; font-size: .8rem; }
.table tr:last-child td { border-bottom: 0; }
.row-link { color: var(--text); text-decoration: none; font-weight: 600; }
.row-link:hover { color: var(--cyan-2); text-decoration: underline; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge--critique { color: var(--crit); border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); }
.badge--moyen { color: var(--warn); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }
.badge--faible { color: var(--info); border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.07); }
.badge--ok, .badge--statut-traitee { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); }
.badge--statut-en_cours { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot--ok { background: var(--ok); } .dot--off { background: var(--crit); }

.legend { display: flex; gap: 14px; list-style: none; padding: 0; font-size: .82rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend__sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend__sw--critique, .chart__seg--critique { background: var(--crit); fill: var(--crit); }
.legend__sw--moyen, .chart__seg--moyen { background: var(--warn); fill: var(--warn); }
.legend__sw--faible, .chart__seg--faible { background: var(--info); fill: var(--info); }
.chart { width: 100%; height: auto; display: block; margin: 8px 0; }
.chart__grid { stroke: rgba(148, 178, 222, 0.1); stroke-width: 1; }
.chart__base { stroke: rgba(148, 178, 222, 0.3); }
.chart__tick { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart__seg:hover { opacity: .8; }
details summary { cursor: pointer; color: var(--text-2); margin-top: 8px; }

.recos { list-style: none; padding: 0; display: grid; gap: 10px; }
.recos li { display: flex; gap: 10px; }
.recos .icon { color: var(--cyan); margin-top: 3px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .92rem; }
.facts dt { color: var(--text-3); } .facts dd { margin: 0; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.module h2 { margin: 0; }
.module .row { justify-content: space-between; margin-bottom: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline { display: inline; }
.link-card { border-color: rgba(34, 197, 221, 0.45); }
.copy { display: flex; gap: 8px; margin-top: 10px; }

/* Regroupement et réglage */
.badge--fois { margin-left: 6px; color: var(--text); border-color: var(--line-2); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.staff-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(34, 197, 221, 0.45); background: rgba(34, 197, 221, 0.05); display: grid; gap: 8px; }

/* Tableau de bord : données en direct, activité 24 h, barres, anneaux */
.page-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.direct { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; color: var(--text-2); background: var(--surface); }
.direct i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
.direct--ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); }
.direct--ok i { animation: direct-pouls 2s ease-out infinite; }
.direct--warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }
.direct--crit { color: var(--crit); border-color: rgba(248, 113, 113, 0.4); }
@keyframes direct-pouls { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.kpi__value--crit { color: var(--crit); }
.chart__now { fill: rgba(34, 197, 221, 0.06); stroke: rgba(34, 197, 221, 0.35); stroke-dasharray: 3 3; }

.hbars { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 6px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.hbars__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hbars__barre { width: 100%; height: 10px; display: block; }
.hbars__fond { fill: rgba(148, 178, 222, 0.08); }
.hbars__n { font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 3.5em; text-align: right; }

.anneau { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-top: 6px; }
@media (max-width: 480px) { .anneau { grid-template-columns: 1fr; justify-items: center; } }
.anneau__svg { width: 150px; height: 150px; transform: rotate(0deg); }
.anneau__fond { fill: none; stroke: rgba(148, 178, 222, 0.08); stroke-width: 6; }
.anneau__seg { fill: none; stroke-width: 6; transition: stroke-width .15s; }
.anneau__seg:hover { stroke-width: 7.5; }
.anneau__total { fill: var(--text); font-family: var(--font-d); font-size: 6.2px; font-weight: 650; }
.anneau__sous { fill: var(--text-3); font-size: 3px; }
.anneau__legende { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .86rem; width: 100%; }
.anneau__legende li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.anneau__legende strong { font-variant-numeric: tabular-nums; }
.anneau__sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.horsligne { list-style: none; padding: 0; display: grid; gap: 6px; margin-top: 6px; font-size: .88rem; }
.horsligne li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.horsligne .muted { margin-left: 6px; }

/* Couleurs des types d'événement et du parc (anneaux) */
.fam--malveillant { stroke: var(--crit); background: var(--crit); }
.fam--connexions { stroke: var(--warn); background: var(--warn); }
.fam--acces { stroke: #f472b6; background: #f472b6; }
.fam--strategies { stroke: #a78bfa; background: #a78bfa; }
.fam--integrite { stroke: var(--cyan); background: var(--cyan); }
.fam--vulnerabilites { stroke: #fb923c; background: #fb923c; }
.fam--configuration { stroke: #94a3b8; background: #94a3b8; }
.fam--reseau { stroke: var(--info); background: var(--info); }
.fam--web { stroke: #2dd4bf; background: #2dd4bf; }
.fam--parefeu { stroke: #eab308; background: #eab308; }
.fam--systeme { stroke: #64748b; background: #64748b; }
.fam--autre { stroke: #475569; background: #475569; }
.parc--ok { stroke: var(--ok); background: var(--ok); }
.parc--off { stroke: var(--crit); background: var(--crit); }
@media (prefers-reduced-motion: reduce) { .direct--ok i { animation: none; } }
/* Sur petit écran, un tableau trop large défile dans sa carte au lieu d'élargir la page */
.card { min-width: 0; overflow-x: auto; }

/* Paramètres et notifications */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; accent-color: var(--cyan); width: 16px; height: 16px; flex: none; }
.aide { padding-left: 18px; display: grid; gap: 6px; margin-top: 8px; color: var(--text-2); }

/* Notifications (espace client) */
.recus, .destinataires { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 8px; }
.recus li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.destinataires li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.destinataires li > span { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; word-break: break-all; }
.sous-titre { font-size: .95rem; margin: 18px 0 4px; }
.form--ligne { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 520px) { .form--ligne { grid-template-columns: 1fr; } }
.fam--leurres { stroke: #fb7185; background: #fb7185; }

/* Page Confidentialité (mise en page hors connexion, plus large) */
.auth__main:has(.texte-legal) { max-width: 780px; }
.auth__card:has(.texte-legal) { padding: clamp(22px, 4vw, 40px); }
.texte-legal { display: grid; gap: 12px; line-height: 1.65; }
.texte-legal h2 { margin-top: 14px; font-size: 1.1rem; }
.texte-legal ul { padding-left: 20px; display: grid; gap: 6px; }
.texte-legal .defile { overflow-x: auto; }
.texte-legal .table th[scope="row"] { width: 34%; font-weight: 600; vertical-align: top; }
/* Pied de page de toutes les pages connectées */
.pied { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }
.pied a { color: var(--text-2); }

/* Modules à la carte */
.mt2 { margin-top: 30px; } .mb { margin-bottom: 14px; }
.row--between { justify-content: space-between; }
.alert--info { color: #bae6fd; background: rgba(34, 197, 221, 0.07); border-color: rgba(34, 197, 221, 0.35); }
.input--sm { min-height: 34px; padding: 4px 10px; width: auto; font-size: .88rem; border-radius: 10px; }
.actions { text-align: right; white-space: nowrap; } .actions form + form { margin-left: 6px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.pack { display: flex; flex-direction: column; gap: 8px; }
.pack h3 { margin: 0; font-size: 1.08rem; } .pack .row { justify-content: space-between; }
.pack__promesse { margin: 0; color: var(--cyan-2); font-weight: 600; }
.pack__liste { margin: 0; padding-left: 18px; color: var(--text-2, inherit); font-size: .92rem; display: grid; gap: 4px; }
.pack__prix { margin: 6px 0 0; } .pack__prix strong { font-size: 1.4rem; }
.pack .form { margin-top: auto; padding-top: 8px; }
.pack--complet { border-color: rgba(34, 197, 221, 0.45); }
.table--facture td:last-child { text-align: right; width: 140px; white-space: nowrap; }
