/* ============================================================
   ADISTOS SERVICES — styles.css
   Archétype « Terminal-first SOC console »
   Console de supervision d'opérations de sécurité :
   journal en direct, panneaux d'état, monospace dominant,
   titres condensés, noir profond + cyan néon + vert terminal.
   Mobile-first, accessible, sans dépendance, sans image externe.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #000000;
  --bg-1: #040706;
  --bg-2: #071009;
  --bg-3: #0b1511;
  --ink: #d8ffe9;
  --ink-dim: #86b39b;
  --ink-faint: #4d6f5d;
  --cyan: #00e5ff;
  --green: #00ff9d;
  --amber: #ffbf47;
  --red: #ff4d5e;
  --line: #123327;
  --line-soft: #0a2015;
  --line-cyan: rgba(0, 229, 255, .34);
  --line-green: rgba(0, 255, 157, .32);
  --line-amber: rgba(255, 191, 71, .4);
  --line-red: rgba(255, 77, 94, .4);
  --glow-cyan: rgba(0, 229, 255, .22);
  --glow-green: rgba(0, 255, 157, .16);
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular",
          Menlo, Consolas, "Liberation Mono", monospace;
  --display: "Oswald", "Barlow Condensed", "Arial Narrow", "Roboto Condensed",
             Impact, "Helvetica Neue", sans-serif;
  --radius: 0px;
  --radius-sm: 2px;
  --wrap: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .035em;
  line-height: 1.06;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.7rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 700; }
code { font-family: var(--mono); color: var(--cyan); font-size: .92em; }
::selection { background: var(--cyan); color: #000; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #1c4a36; }

/* ---------- CRT overlay (static, subtle, no motion) ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 157, .028) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 0%, transparent 70%, rgba(0, 0, 0, .55) 100%);
  mix-blend-mode: screen;
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(.9rem, 3.5vw, 1.9rem); }
.section { padding-block: clamp(2.6rem, 6vw, 5rem); }
.section--tint { background: var(--bg-1); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--grid {
  background-image:
    linear-gradient(rgba(0,255,157,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,157,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.center { text-align: center; }
.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.mono { font-size: .82em; letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--cyan); color: #000; padding: .6rem 1rem;
  font-family: var(--mono); font-size: .85rem; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.section-head { max-width: 760px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head.center { margin-inline: auto; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: .8rem; font-weight: 600;
}
.kicker::before { content: "// "; color: var(--green); }
.lead { color: var(--ink-dim); font-size: 1.02rem; max-width: 62ch; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: clamp(1.6rem,4vw,2.6rem) 0; }
.glow-line { height: 2px; width: 66px; background: var(--cyan); box-shadow: 0 0 12px var(--glow-cyan); border: 0; margin: 1rem 0 1.6rem; }

/* signature : séparateur "ligne de balayage" en pointillés */
.scanline {
  border: 0; border-top: 1px dashed var(--line-cyan);
  margin: clamp(1.5rem, 4vw, 2.6rem) 0; position: relative;
}
.scanline::after {
  content: "// SCAN"; position: absolute; right: 0; top: -0.5rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em;
  color: var(--ink-faint); background: var(--bg-0); padding-left: .6rem;
}

/* ---------- Grid / split ---------- */
.grid { display: grid; gap: 1rem; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: 2rem; }
@media (min-width: 940px) {
  .split { grid-template-columns: 1.06fr .94fr; align-items: center; gap: 3rem; }
  .split--reverse { grid-template-columns: .94fr 1.06fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .62rem 1rem; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid var(--line-cyan); background: #04100b;
  color: var(--cyan); transition: background .15s ease, box-shadow .2s ease, transform .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #06201a; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: #000; border-color: var(--cyan); box-shadow: 0 0 14px var(--glow-cyan); }
.btn-primary:hover { background: #4df0ff; }
.btn-green { background: var(--green); color: #000; border-color: var(--green); box-shadow: 0 0 14px var(--glow-green); }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-cyan); }
.btn-sm { padding: .42rem .8rem; font-size: .74rem; }

/* ---------- Status / tags / pills ---------- */
.tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem;
  color: var(--cyan); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .22rem .6rem; margin: 0 .3rem .45rem 0; letter-spacing: .05em;
}
.tag--green { color: var(--green); border-color: var(--line-green); }
.tag--amber { color: var(--amber); border-color: var(--line-amber); }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  padding: .24rem .55rem; border-radius: var(--radius-sm); border: 1px solid;
}
.status { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 0; }
.status-nominal { color: var(--green); }
.status-nominal::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-elevated { color: var(--amber); }
.status-elevated::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.status-critical { color: var(--red); }
.status-critical::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.pill--ok { color: var(--green); border-color: var(--line-green); background: rgba(0,255,157,.06); }
.pill--warn { color: var(--amber); border-color: var(--line-amber); background: rgba(255,191,71,.06); }
.pill--danger { color: var(--red); border-color: var(--line-red); background: rgba(255,77,94,.06); }

/* ---------- Panels / cards (utilitaires, angles droits) ---------- */
.panel {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.panel:hover { border-color: #1d4a35; }
.panel-interactive { cursor: default; }
.panel-interactive:hover {
  border-color: var(--line-cyan);
  box-shadow: 0 0 0 1px rgba(0,229,255,.15), inset 2px 0 0 var(--cyan);
}
.panel h3 { margin-top: .35rem; }
.panel p { color: var(--ink-dim); font-size: .92rem; }
.panel-link { color: inherit; }
.panel-link:hover { text-decoration: none; }
.icon-tile {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--cyan); background: rgba(0,229,255,.06); border: 1px solid var(--line-cyan);
}
.icon-tile--green { color: var(--green); background: rgba(0,255,157,.06); border-color: var(--line-green); }
.panel .readmore {
  font-family: var(--mono); font-size: .76rem; color: var(--green);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; letter-spacing: .04em;
}
.panel .readmore::after { content: "→"; transition: transform .15s ease; }
.panel-interactive:hover .readmore::after { transform: translateX(3px); }

/* ---------- Metrics / stat band ---------- */
.metric { padding: .75rem 0; border-bottom: 1px dashed var(--line-soft); }
.metric:last-child { border-bottom: 0; }
.metric-value { font-family: var(--mono); font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; color: var(--cyan); text-shadow: 0 0 16px var(--glow-cyan); }
.metric-value--green { color: var(--green); text-shadow: 0 0 16px var(--glow-green); }
.metric-label { color: var(--ink-dim); font-size: .84rem; }
.stat-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 760px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   TOP STATUS BAR  — uptime + état SOC
   ============================================================ */
.statusbar {
  position: sticky; top: 0; z-index: 120;
  background: #000; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
}
.statusbar-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 30px; color: var(--ink-faint); flex-wrap: wrap;
}
.sb-cell { white-space: nowrap; }
.sb-cell::before { content: "▸ "; color: var(--cyan); }
.sb-state { color: var(--green); }
.sb-state::before { content: ""; }
.sb-dot {
  display: inline-block; width: 8px; height: 8px; background: var(--green);
  margin-right: .4rem; box-shadow: 0 0 8px var(--green);
  animation: blink 1.4s step-end infinite;
}
.sb-spacer { flex: 1; }
.sb-spacer::before { content: ""; }
.sb-right { text-align: right; }
.sb-tick { color: var(--cyan); overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }

/* ---------- Header / command bar ---------- */
.site-header {
  position: sticky; top: 30px; z-index: 110;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--cyan); filter: drop-shadow(0 0 6px var(--glow-cyan)); flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--green); margin-left: .2rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .12em; }
.brand-name em::before { content: "["; color: var(--ink-faint); }
.brand-name em::after { content: "]"; color: var(--ink-faint); }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .55rem .6rem; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--cyan); display: block; }
.nav-menu {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0;
  background: #000; border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: .5rem clamp(.9rem,3.5vw,1.9rem) 1rem;
}
.nav-menu.open { display: flex; }
.nav-link {
  color: var(--ink-dim); padding: .55rem 0; font-family: var(--mono); font-size: .86rem;
  letter-spacing: .02em; display: flex; align-items: baseline; gap: .5rem;
}
.nav-link::before { content: "›"; color: var(--ink-faint); }
.nav-link:hover { color: var(--cyan); text-decoration: none; }
.nav-link.active { color: var(--green); }
.nav-link.active::before { content: "●"; color: var(--green); font-size: .72em; }
.header-cta { display: none; }
.header-cta::before { content: "> "; font-weight: 700; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  font-weight: 600; text-transform: uppercase; white-space: nowrap;
}
.lang-link { color: var(--ink-dim); padding: .2rem .05rem; }
.lang-link:hover { color: var(--cyan); text-decoration: none; }
.lang-link.active { color: var(--green); }
.lang-link.active::before { content: "● "; font-size: .7em; }
.lang-sep { color: var(--ink-faint); }
@media (min-width: 1060px) {
  .nav-toggle { display: none; }
  .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.1rem; background: transparent; border: 0; padding: 0; flex: 1; justify-content: flex-end; }
  .nav-link { padding: .25rem 0; border: 0; }
  .header-cta { display: inline-flex; }
}

/* ============================================================
   HOME — console de supervision (dashboard)
   ============================================================ */
.console-main { padding-block: clamp(1.4rem, 4vw, 2.4rem) clamp(3rem, 7vw, 5rem); }
.console-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 980px) {
  .console-grid { grid-template-columns: 1.55fr 1fr; }
}
.console-col { display: grid; gap: 1rem; align-content: start; }

.console-box {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.console-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .5rem .75rem;
  background: #020604; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan);
}
.console-titlebar .console-title::before { content: "@ "; color: var(--green); }
.console-live { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); }
.console-live .sb-dot { margin: 0; }
.console-body { padding: 1rem; }
.console-box.center .console-titlebar { justify-content: center; }

/* journal en direct (pre style) */
.feed-wrap { position: relative; }
.feed {
  margin: 0; padding: .8rem .9rem 1rem;
  font-family: var(--mono); font-size: .78rem; line-height: 1.7;
  color: var(--ink-dim); white-space: pre-wrap; overflow-wrap: break-word;
  background: #010403;
}
.feed .log { display: block; }
.log-ts { color: var(--ink-faint); }
.log-tag { font-weight: 700; letter-spacing: .02em; }
.log-ok { color: var(--green); }
.log-warn { color: var(--amber); }
.log-crit { color: var(--red); text-shadow: 0 0 10px rgba(255,77,94,.5); }
.cursor-line { color: var(--ink); }
.cursor-line::before { content: "» "; color: var(--green); }
.cursor { display: inline-block; width: 9px; height: 15px; background: var(--green); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* pied du journal : stats */
.feed-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem;
  padding: .45rem .75rem; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: .68rem; color: var(--ink-faint); letter-spacing: .04em;
}
.feed-foot strong { color: var(--cyan); }

/* tableau détections de la nuit */
.threat-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .74rem; }
.threat-table th {
  text-align: left; padding: .5rem .75rem; color: var(--ink-faint);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid var(--line); background: rgba(0,255,157,.03);
}
.threat-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); }
.threat-table tr:last-child td { border-bottom: 0; }
.threat-table .row-ok td:first-child { color: var(--green); }
.threat-table .row-warn td:first-child { color: var(--amber); }
.threat-table .row-crit td:first-child { color: var(--red); }
.threat-table .row-ok td::before, .threat-table .row-warn td::before, .threat-table .row-crit td::before {
  font-weight: 700; margin-right: .35rem;
}
.threat-table .row-ok td:first-child::before { content: "[OK]"; }
.threat-table .row-warn td:first-child::before { content: "[AT]"; }
.threat-table .row-crit td:first-child::before { content: "[AL]"; }

/* cartes d'état (services) */
.alert-stack { display: grid; gap: 0; }
.alert-card {
  display: block; padding: .8rem .9rem; color: var(--ink-dim);
  border-bottom: 1px solid var(--line); border-left: 3px solid var(--line);
  transition: background .15s ease, border-color .15s ease;
}
.alert-card:last-child { border-bottom: 0; }
.alert-card:hover { text-decoration: none; background: #08140f; }
.alert-card.ok { border-left-color: var(--green); }
.alert-card.warn { border-left-color: var(--amber); }
.alert-card.crit { border-left-color: var(--red); }
.alert-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  font-family: var(--display); font-size: .95rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink); margin-bottom: .3rem;
}
.alert-head em {
  font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
}
.alert-card.ok .alert-head em { color: var(--green); }
.alert-card.warn .alert-head em { color: var(--amber); }
.alert-card.crit .alert-head em { color: var(--red); }
.alert-card p { margin: 0; font-size: .82rem; }

/* liste d'indicateurs densiers */
.kvlist { list-style: none; margin: 0; padding: 0; }
.kvlist li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .5rem .9rem; border-bottom: 1px dashed var(--line-soft); font-family: var(--mono); font-size: .8rem;
}
.kvlist li:last-child { border-bottom: 0; }
.kvlist .k { color: var(--ink-dim); }
.kvlist .v { color: var(--cyan); font-weight: 700; }
.kvlist .v.green { color: var(--green); }
.kvlist .v.amber { color: var(--amber); }

/* panneau "dernières 24h" synthèse */
.synth { padding: .8rem .9rem; }
.synth p { color: var(--ink-dim); font-size: .86rem; margin: 0; }
.synth .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .78rem; padding: .28rem 0; border-bottom: 1px dashed var(--line-soft); }
.synth .row:last-child { border-bottom: 0; }

/* ---------- Hero (pages secondaires) : en-tête terminal ---------- */
.hero { position: relative; padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px dashed var(--line-cyan); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 320px at 80% -10%, rgba(0,229,255,.08), transparent 60%),
    linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1::before { content: "# "; color: var(--cyan); }
.hero-eyebrow { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.hero-title { max-width: 18ch; color: var(--ink); }
.hero-title .accent { color: var(--cyan); text-shadow: 0 0 22px var(--glow-cyan); }
.hero-sub { color: var(--ink-dim); font-size: 1.02rem; max-width: 54ch; margin: 1.1rem 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); }
.hero-meta span::before { content: "#"; color: var(--cyan); margin-right: .15rem; }
.breadcrumb { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); margin-bottom: .9rem; }
.breadcrumb::before { content: "$ "; color: var(--green); }
.breadcrumb a { color: var(--cyan-dim, #6fbfd8); }

/* ---------- Dashboard mock (sous-pages) ---------- */
.dashboard {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0,229,255,.12), inset 0 0 30px rgba(0,229,255,.03);
  overflow: hidden;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.dash-head .dot-group { display: flex; gap: 5px; }
.dash-head .dot-group i { width: 9px; height: 9px; border-radius: 0; display: block; font-style: normal; }
.dash-head .dot-group i:nth-child(1) { background: var(--red); }
.dash-head .dot-group i:nth-child(2) { background: var(--amber); }
.dash-head .dot-group i:nth-child(3) { background: var(--green); }
.dash-body { padding: .7rem; }
.dash-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .45rem .55rem; font-family: var(--mono); font-size: .76rem; border-bottom: 1px dashed var(--line-soft); }
.dash-row:last-child { border-bottom: 0; }
.dash-row:nth-child(odd) { background: rgba(0,229,255,.03); }
.dash-row .k { color: var(--ink-dim); }
.dash-row .k::before { content: "▸ "; color: var(--green); }
.dash-number { color: var(--cyan); font-weight: 700; }

/* ---------- Terminal (générique) ---------- */
.terminal {
  background: #010403; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; font-family: var(--mono); font-size: .76rem; color: var(--ink-dim);
  overflow-x: auto;
}
.terminal .term-prompt { color: var(--green); }
.terminal .term-line { white-space: pre; }
.terminal .cursor { display: inline-block; width: 8px; height: 14px; background: var(--green); vertical-align: -2px; animation: blink 1s step-end infinite; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--bg-1); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 500px; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); }
th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--cyan); background: rgba(0,229,255,.04); }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-dim); }
td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- Icon lists ---------- */
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; color: var(--ink-dim); font-size: .92rem; }
.icon-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5rem; background: var(--cyan); box-shadow: 0 0 8px var(--glow-cyan); }
.icon-list--green li::before { background: var(--green); box-shadow: 0 0 8px var(--glow-green); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; color: var(--ink-dim); font-weight: 600; font-family: var(--mono); }
.field label .req { color: var(--red); }
fieldset.field { border: 1px solid var(--line); margin: 0; padding: .9rem; }
fieldset.field legend { font-family: var(--mono); font-size: .8rem; color: var(--cyan); padding: 0 .4rem; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea {
  width: 100%; font-family: var(--mono); font-size: .95rem; color: var(--ink);
  background: #020706; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .66rem .8rem; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.13);
}
textarea { resize: vertical; min-height: 120px; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; color: var(--ink-dim); }
.check input { width: auto; margin-top: .2rem; accent-color: var(--green); }
.form-note { font-size: .78rem; color: var(--ink-faint); }
.success-panel {
  display: none; border: 1px solid var(--line-green); background: rgba(0,255,157,.05);
  border-radius: var(--radius-sm); padding: 1.2rem; color: var(--ink);
  box-shadow: inset 0 0 24px rgba(0,255,157,.08);
}
.success-panel.show { display: block; }
.success-panel h3 { color: var(--green); }
.contact-cards { display: grid; gap: .8rem; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: clamp(2rem,5vw,3.2rem) 0 0; font-family: var(--mono); }
.site-footer::before {
  content: "EOF ▷ ▷ ▷  fin de session — identité figurée ci-dessous";
  display: block; padding: .5rem clamp(.9rem,3.5vw,1.9rem); font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px dashed var(--line);
}
.footer-grid { display: grid; gap: 1.6rem; padding-block: 1.6rem 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--ink-dim); font-size: .82rem; max-width: 38ch; }
.footer-id {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); line-height: 1.9;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-1);
  padding: .7rem .9rem; overflow-x: auto;
}
.footer-col h3 { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); margin-bottom: .8rem; }
.footer-col h3::before { content: "▸ "; color: var(--green); }
.footer-col a { display: block; color: var(--ink-dim); font-size: .82rem; padding: .22rem 0; }
.footer-col a::before { content: "› "; color: var(--ink-faint); }
.footer-col a:hover { color: var(--green); text-decoration: none; }
.footer-contact p { color: var(--ink-dim); font-size: .82rem; margin-bottom: .9rem; white-space: pre-line; }
.footer-bottom { border-top: 1px dashed var(--line); padding-block: 1.1rem; display: grid; gap: .45rem; color: var(--ink-faint); font-size: .76rem; }
@media (min-width: 760px) { .footer-bottom { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; } }
.footer-dir { font-family: var(--mono); }
.footer-sec { color: var(--ink-faint); font-size: .72rem; }
.footer-sec a { color: var(--cyan); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: #010403; backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-cyan); box-shadow: 0 -10px 32px rgba(0,0,0,.7);
  padding: .9rem 0; font-family: var(--mono);
}
.cookie-inner { display: flex; flex-direction: column; gap: .8rem; }
@media (min-width: 820px) { .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cookie-inner h2 { font-family: var(--mono); font-size: .82rem; margin-bottom: .25rem; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.cookie-inner h2::before { content: "// "; color: var(--cyan); }
.cookie-inner p { font-size: .8rem; color: var(--ink-dim); margin: 0; max-width: 68ch; }
.cookie-actions { display: flex; gap: .6rem; flex: none; }

/* ---------- Resource / blog cards ---------- */
.card-link { color: inherit; display: grid; gap: .6rem; height: 100%; }
.card-link:hover { text-decoration: none; }
.resource-card { height: 100%; display: flex; flex-direction: column; gap: .7rem; }
.resource-type { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.resource-type::before { content: "▸ "; color: var(--cyan); }
.resource-card h3 { margin: 0; }
.resource-card p { flex: 1; }
.post-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: .7rem; height: 100%; }
.post-date { font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); }
.post-date::before { content: "["; color: var(--cyan); }
.post-date::after { content: "]"; color: var(--cyan); }
.post-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.28; }
.post-card .readmore { margin-top: auto; }

/* ---------- Transparency / UBO ---------- */
.ubo-panel { border-color: var(--line-green); background: linear-gradient(180deg, rgba(0,255,157,.05), transparent); }
.ubo-name { font-family: var(--mono); color: var(--green); font-size: 1rem; font-weight: 700; letter-spacing: .03em; }

/* ---------- Legal prose ---------- */
.legal-prose { max-width: 780px; }
.legal-prose h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal-prose h2::before { content: "§ — "; color: var(--cyan); }
.legal-prose h3 { font-size: 1rem; margin-top: 1.4rem; }
.legal-prose p, .legal-prose li { color: var(--ink-dim); }
.legal-prose ul { padding-left: 1.2rem; }
.legal-prose li { margin: .3rem 0; }
.legal-prose .verbatim {
  font-family: var(--mono); font-size: .9rem; line-height: 1.7; color: var(--green);
  border: 1px solid var(--line-green); background: rgba(0,255,157,.04);
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 1rem 0; white-space: pre-wrap;
}
.placeholder { color: var(--amber); }
.dl { display: grid; gap: .3rem 1.4rem; }
.dl dt { font-family: var(--mono); font-size: .72rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .07em; }
.dl dd { margin: 0 0 .85rem; color: var(--ink-dim); }
@media (min-width: 600px) { .dl { grid-template-columns: 220px 1fr; } .dl dd { margin: 0 0 .85rem; } }

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cursor, .sb-dot { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .statusbar, .site-header, .site-footer, .cookie-banner, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}
