/* ==========================================================================
   Pallas Radar — style.css
   Design System « Cupertino Dark Pro »
   Architecture ultra-réactive, largeur 1360px optimisée, bento dense,
   composants riches et animations fluides.
   ========================================================================== */

/* 1. Variables & Tokens ---------------------------------------------------- */
:root {
  --bg: #000000;
  --surface: #0e0e11;
  --surface-2: #16161a;
  --surface-3: #202026;
  --surface-hover: #1b1b22;
  --glass: rgba(16, 16, 20, 0.75);
  --glass-card: rgba(22, 22, 28, 0.65);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-focus: rgba(41, 151, 255, 0.4);

  --text: #f5f5f7;
  --text-2: #a1a1a8;
  --text-3: #72727a;

  --blue: #0071e3;
  --blue-2: #2997ff;
  --blue-glow: rgba(41, 151, 255, 0.22);
  --green: #30d158;
  --green-glow: rgba(48, 209, 88, 0.22);
  --orange: #ff9f0a;
  --red: #ff453a;
  --purple: #bf5af2;
  --teal: #64d2ff;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 40px -10px var(--blue-glow);

  --header-h: 64px;
  --wrap: 1360px;
  color-scheme: dark;
}

/* 2. Base & Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: #58aeff; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(41, 151, 255, 0.35); color: #fff; }

.wrap {
  width: min(100% - clamp(24px, 5vw, 64px), var(--wrap));
  margin-inline: auto;
}
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 18px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-weight: 500; }
.skip:focus { top: 16px; }

/* Bilingue FR / EN */
html:not([data-lang="en"]) [lang="en"],
html[data-lang="en"] [lang="fr"] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Header & Navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.hdr { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 18px; color: var(--text); letter-spacing: -0.015em; }
.brand:hover { text-decoration: none; }
.logo-mark { border-radius: 22%; object-fit: cover; display: block; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.nav .nav-invite { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 2px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); transition: color 0.15s, background 0.15s; }
.lang-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); place-items: center; }

/* 4. Boutons & Actions ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background 0.18s, transform 0.15s, border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, #198cff 0%, #0071e3 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2b98ff 0%, #0a7def 100%);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.55);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.btn-lg { padding: 14px 28px; font-size: 16.5px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: 50%; }

/* 5. Sections & Titres ----------------------------------------------------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { max-width: 820px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 18px; line-height: 1.5; }

.page-head { padding: clamp(32px, 5vw, 64px) 0 24px; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; }
.page-head p { margin-top: 12px; max-width: 72ch; color: var(--text-2); font-size: 18px; }
.page-body { padding-bottom: clamp(64px, 8vw, 110px); }

/* 6. Pilule de statut & voyants -------------------------------------------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; font-weight: 500; margin-bottom: 22px;
  transition: background 0.15s, border-color 0.15s;
}
.status-pill:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok, [data-state="ok"] > .dot { background: var(--green); box-shadow: 0 0 10px rgba(48, 209, 88, 0.6); animation: pulse 2.2s infinite; }
.dot.warn, [data-state="warn"] > .dot { background: var(--orange); box-shadow: 0 0 10px rgba(255, 159, 10, 0.6); }
.dot.down, [data-state="down"] > .dot { background: var(--red); box-shadow: 0 0 10px rgba(255, 69, 58, 0.6); }
[data-state="load"] > .dot { animation: pulse-gray 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } }
@keyframes pulse-gray { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 7. Hero Section (Plein Écran, 50/50 Équilibré) --------------------------- */
.hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 84px);
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 90%; pointer-events: none;
  background:
    radial-gradient(700px 420px at 15% 25%, rgba(0, 113, 227, 0.28), transparent 70%),
    radial-gradient(600px 380px at 85% 15%, rgba(191, 90, 242, 0.16), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.08;
}
.hero h1 .dim { display: block; color: var(--text-2); font-weight: 500; font-size: 0.88em; margin-top: 6px; }
.hero .lead {
  margin-top: 20px; font-size: 18px; color: var(--text-2);
  line-height: 1.55; max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: 13.5px; color: var(--text-3); }

/* Radar & Pulse Bar Intégré Pallas */
.hero-pulse-bar {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px;
}
.hero-pulse-bar svg { flex: none; }
.hero-pulse-bar .track { stroke: rgba(255, 255, 255, 0.12); }
.hero-pulse-bar .arc {
  stroke: var(--blue-2); stroke-linecap: round;
  stroke-dasharray: 97.4; stroke-dashoffset: 97.4;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  animation: sweep 60s linear infinite;
}
.hero-pulse-bar b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes sweep { to { stroke-dashoffset: 0; } }

/* 8. Discord Client Simulator (Hero & Docs) -------------------------------- */
.demo { position: relative; width: 100%; }
.demo-window {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px -15px var(--blue-glow);
  overflow: hidden;
}
.demo-window-bar {
  height: 42px; background: #2b2d31;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 13.5px; color: #949ba4; font-weight: 500;
}
.demo-channel-info { display: flex; align-items: center; gap: 8px; color: #f2f3f5; font-weight: 600; }
.demo-channel-hash { color: #80848e; font-size: 18px; font-weight: 700; line-height: 1; }
.demo-channel-topic { font-size: 12px; color: #949ba4; font-weight: 400; margin-left: 8px; border-left: 1px solid #3f4147; padding-left: 10px; }
.demo-tabs {
  display: flex; gap: 4px; padding: 10px 14px 6px;
  background: #2b2d31; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}
.demo-tabs button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: #949ba4;
  padding: 6px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.demo-tabs button:hover { color: #f2f3f5; background: rgba(255, 255, 255, 0.06); }
.demo-tabs button[aria-selected="true"] { background: #35373c; color: #fff; font-weight: 600; }

.dc {
  background: #313338; padding: 18px 20px 22px;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", var(--font);
  font-size: 14.5px; line-height: 1.45; color: #dbdee1;
}
.dc-cmd {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  margin: 0 0 12px 52px; color: #949ba4; font-size: 13px;
}
.dc-cmd b { color: #f2f3f5; font-weight: 500; }
.dc-slash { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 12.5px; }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1e1f22; overflow: hidden; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.dc-name { font-weight: 600; color: #f2f3f5; font-size: 15px; }
.dc-tag { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; border-radius: 3px; padding: 1px 5px; line-height: 1.3; }
.dc-time { font-size: 12px; color: #949ba4; }
.dc-embed {
  --c: #0a84ff;
  display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 100%; padding: 14px 16px 16px;
  background: #2b2d31; border: 1px solid rgba(255, 255, 255, 0.05); border-left: 4px solid var(--c);
  border-radius: 4px 8px 8px 4px;
}
.dc-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #f2f3f5; margin-bottom: 2px; }
.dc-author-ico { border-radius: 50%; object-fit: cover; }
.dc-embed-inner { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.dc-embed-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dc-thumb { flex: none; width: 80px; height: 80px; border-radius: 6px; overflow: hidden; background: #1e1f22; display: flex; align-items: center; justify-content: center; }
.dc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dc-title { font-weight: 600; font-size: 16px; color: #f2f3f5; }
.dc-desc { font-size: 14px; line-height: 1.45; color: #dbdee1; }
.dc-quote { margin: 4px 0; padding: 2px 0 2px 10px; border-left: 4px solid #4e5058; color: #b5bac1; font-style: normal; }
.dc-mention { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); padding: 1px 5px; border-radius: 3px; font-weight: 500; font-size: 13px; }
.dc-channel { color: #dbdee1; background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 3px; font-weight: 500; font-size: 13px; }
.dc-link { color: #00a8fc; text-decoration: none; }
.dc-link:hover { text-decoration: underline; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-top: 4px; }
.dc-field { grid-column: 1 / -1; min-width: 0; }
.dc-field.inline { grid-column: auto; }
.dc-fname { font-size: 12.5px; font-weight: 600; color: #b5bac1; margin-bottom: 2px; }
.dc-fval { font-size: 14px; color: #dbdee1; word-break: break-word; }
.dc-code { font-family: var(--mono); font-size: 0.88em; background: #1e1f22; padding: 2px 6px; border-radius: 4px; }
.dc-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: #949ba4; }
.dc-select { margin-top: 10px; background: #2b2d31; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.dc-select-head { padding: 9px 12px; font-size: 13px; font-weight: 500; color: #dbdee1; display: flex; justify-content: space-between; align-items: center; background: #1e1f22; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.dc-select-menu { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; }
.dc-select-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); transition: background 0.12s; }
.dc-select-opt:hover { background: rgba(255, 255, 255, 0.04); }
.dc-select-opt.selected { background: rgba(88, 101, 242, 0.18); }
.dc-opt-lead { flex: none; font-size: 15px; width: 20px; text-align: center; }
.dc-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dc-opt-title { font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-opt-desc { font-size: 11.5px; color: #949ba4; line-height: 1.25; }
.dc-opt-check { color: #5865f2; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #4e5058; color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 7px 16px; border-radius: 4px; transition: background 0.15s;
}
.dc-btn:hover { background: #6d6f78; }
.dc-btn.primary { background: #5865f2; }
.dc-btn.primary:hover { background: #4752c4; }
.dc-btn.success { background: #248046; }
.dc-btn.success:hover { background: #1a6334; }
.dc-btn.danger { background: #da373c; }
.dc-btn.danger:hover { background: #a1282c; }
.dc-btn .btn-ico { font-size: 14px; }

/* 9. Bento Stat Cards ------------------------------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 16px;
}
.stat-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.stat-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.stat-card .stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(41, 151, 255, 0.12); color: var(--blue-2);
  margin-bottom: 6px;
}
.stat-card strong {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 40%, #b0b0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .stat-label { color: var(--text-2); font-size: 15px; font-weight: 500; }
.stat-card .stat-sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* 10. Bento Grid des Fonctionnalités (Riche & Dense) ----------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  grid-column: span 4;
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.tile:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}
.tile.s7 { grid-column: span 7; }
.tile.s5 { grid-column: span 5; }
.tile.s12 { grid-column: span 12; }
.tile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.tile .viz { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.ico-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  background: rgba(41, 151, 255, 0.14); color: var(--blue-2);
}
.ico-wrap.green { background: rgba(48, 209, 88, 0.14); color: var(--green); }
.ico-wrap.purple { background: rgba(191, 90, 242, 0.15); color: var(--purple); }
.ico-wrap.orange { background: rgba(255, 159, 10, 0.15); color: var(--orange); }
.ico-wrap.teal { background: rgba(100, 210, 255, 0.14); color: var(--teal); }

/* Bento Visualisations Riches */
.pallas-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pallas-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  padding: 14px;
}
.pallas-step .step-tag { font-size: 11px; font-weight: 600; color: var(--blue-2); text-transform: uppercase; letter-spacing: 0.04em; }
.pallas-step strong { display: block; font-size: 14.5px; margin: 4px 0 2px; }
.pallas-step small { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }

.chip-inspector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.chip-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.04);
}
.chip-row span { color: var(--text-3); }
.chip-row b { color: var(--teal); font-weight: 500; }

.trans-diff {
  display: grid; gap: 8px; font-size: 13.5px;
}
.trans-box {
  padding: 10px 14px; border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--text-3);
  color: var(--text-2);
}
.trans-box.fr {
  border-left-color: var(--green);
  background: rgba(48, 209, 88, 0.06);
  color: #c9f5d3;
}

.life-continuum {
  display: grid;
  grid-template-columns: 5fr 2fr 3fr;
  gap: 12px;
}
.life-card {
  padding: 16px 20px; border-radius: var(--r-md);
  border: 1px solid transparent;
}
.life-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.life-card span { font-size: 13.5px; opacity: 0.9; }
.life-card.sup { background: rgba(48, 209, 88, 0.12); border-color: rgba(48, 209, 88, 0.25); color: #7beaa2; }
.life-card.vin { background: rgba(255, 159, 10, 0.12); border-color: rgba(255, 159, 10, 0.25); color: #ffbe55; }
.life-card.obs { background: rgba(255, 69, 58, 0.12); border-color: rgba(255, 69, 58, 0.25); color: #ff8882; }

/* Grille 71 Services Mini */
.dotgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14px, 1fr));
  gap: 6px;
}
.dotgrid i {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--green); opacity: 0.85;
  transition: transform 0.15s;
}
.dotgrid i:hover { transform: scale(1.4); }
.dotgrid i.warn { background: var(--orange); }
.dotgrid i.down { background: var(--red); }
.dotgrid i.unknown { background: var(--text-3); opacity: 0.4; }

/* 11. Quickstart Steps ----------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(41, 151, 255, 0.15); color: var(--blue-2);
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.step-card p { color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* 12. Barres d'outils & Filtres Unifiés ------------------------------------- */
.toolbar-unified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.search-unified {
  position: relative;
  flex: 1 1 280px;
}
.search-unified input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-unified input::placeholder { color: var(--text-3); }
.search-unified input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2); }
.search-unified .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--text-3); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0; cursor: pointer; user-select: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
.chip .count {
  font-size: 11.5px; font-weight: 600;
  padding: 1px 7px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: var(--text-2);
  font-variant-numeric: tabular-nums; line-height: 1.35; display: inline-block;
}
.chip[aria-pressed="true"] .count { background: rgba(0, 0, 0, 0.16); color: #000; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: translate 0.2s var(--ease); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { translate: 18px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: rgba(255, 255, 255, 0.08); color: var(--text-2);
}
.badge.green { background: rgba(48, 209, 88, 0.14); color: #4ee07a; }
.badge.orange { background: rgba(255, 159, 10, 0.15); color: #ffb340; }
.badge.red { background: rgba(255, 69, 58, 0.15); color: #ff6961; }
.badge.blue { background: rgba(41, 151, 255, 0.16); color: #64b5ff; }
.badge.purple { background: rgba(191, 90, 242, 0.16); color: #d28cff; }

/* Bannière d'avertissement / Notice API */
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 159, 10, 0.1);
  border: 1px solid rgba(255, 159, 10, 0.3);
  color: #ffb84d;
  font-size: 14.5px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(255, 159, 10, 0.08);
}
.notice .ico { flex: none; color: var(--orange); }
.notice p { flex: 1; line-height: 1.45; color: #ffd699; }
.notice .btn {
  flex: none;
  border-color: rgba(255, 159, 10, 0.35);
  color: #fff;
  background: rgba(255, 159, 10, 0.18);
}
.notice .btn:hover {
  background: rgba(255, 159, 10, 0.3);
  border-color: rgba(255, 159, 10, 0.5);
}

/* 13. Documentation Layout (`help.html`) ------------------------------------ */
.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
  gap: 32px;
  align-items: start;
}
.cmd-list { display: grid; gap: 14px; }
.cmd {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.cmd:hover { border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-1px); }
.cmd.active { border-color: var(--blue-2); background: rgba(41, 151, 255, 0.08); box-shadow: 0 0 20px -5px rgba(41, 151, 255, 0.3); }
.cmd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cmd-syntax { font-family: var(--mono); font-size: 15.5px; font-weight: 600; color: #fff; }
.cmd-syntax .arg { color: var(--blue-2); }
.cmd p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.cmd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cmd-ex {
  margin-top: 12px; padding: 8px 12px;
  font-family: var(--mono); font-size: 13px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.04); border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cmd-locales {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 12px; color: var(--text-3);
}
.cmd-loc-item { display: inline-flex; align-items: center; gap: 4px; }
.cmd-loc-item code {
  color: #c9cdfb; background: rgba(88, 101, 242, 0.15);
  padding: 1px 6px; border-radius: 4px; font-size: 11.5px; font-family: var(--mono);
}
.cmd-match-notice {
  margin-top: 8px; font-size: 12px; color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 159, 10, 0.12); padding: 3px 8px; border-radius: 4px;
}

.sim {
  position: sticky; top: calc(var(--header-h) + 24px);
  min-width: 0;
}
.sim-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sim-cap {
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
}

/* 14. Releases Feed (`releases.html`) -------------------------------------- */
.rel-list { display: grid; gap: 12px; }
.rel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(200px, 1.6fr) 140px auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s;
}
.rel:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.rel-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rel-title { font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.rel-build { font-family: var(--mono); font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.rel-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rel-date { font-size: 14px; color: var(--text-2); text-align: right; }
.rel-date small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.rel-actions { display: flex; gap: 8px; justify-content: flex-end; }

.os-ico {
  --tint: rgba(41, 151, 255, 0.14); --fg: var(--blue-2);
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint); color: var(--fg);
}
.os-ico[data-os="iPadOS"] { --tint: rgba(191, 90, 242, 0.15); --fg: var(--purple); }
.os-ico[data-os="macOS"] { --tint: rgba(100, 210, 255, 0.14); --fg: var(--teal); }
.os-ico[data-os="watchOS"] { --tint: rgba(48, 209, 88, 0.14); --fg: var(--green); }
.os-ico[data-os="tvOS"] { --tint: rgba(255, 255, 255, 0.1); --fg: var(--text); }
.os-ico[data-os="visionOS"] { --tint: rgba(94, 92, 230, 0.2); --fg: #8e8cff; }
.os-ico[data-os="AirPods"] { --tint: rgba(255, 159, 10, 0.15); --fg: var(--orange); }

/* 15. Devices Catalog (`devices.html`) ------------------------------------- */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.dev {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 24px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.dev:hover {
  border-color: var(--line-strong); background: var(--surface-hover);
  transform: translateY(-2px);
}
.dev-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 14px; }
.dev h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.dev .soc { font-family: var(--mono); font-size: 13.5px; color: var(--text-2); }
.dev-specs {
  display: flex; gap: 14px; margin: 12px 0 16px;
  font-size: 13px; color: var(--text-3); font-family: var(--mono);
}
.dev-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* Modal Spectaculaire avec Photo et Nuancier */
.modal {
  position: fixed; width: min(780px, calc(100% - 32px));
  max-height: calc(100dvh - 48px); padding: 0; overflow: auto;
  color: var(--text); background: rgba(20, 20, 26, 0.96);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal-body { padding: 32px; position: relative; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
  color: var(--text); cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.05); }

.modal-dev-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.modal-dev-info {
  min-width: 0;
}
.modal-dev-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 75%), var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 16px 16px;
  position: relative;
  overflow: hidden;
}
.modal-dev-img-wrap {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.modal-dev-img {
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.modal-dev-img:hover {
  transform: scale(1.05);
}
.modal-dev-fallback-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
}
.modal-dev-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  background: var(--swatch-c);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.swatch-btn:hover {
  transform: scale(1.2);
  border-color: #fff;
}
.swatch-btn.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--blue);
  transform: scale(1.15);
}
.modal-dev-color-name {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
  text-align: center;
  min-height: 16px;
}
.modal-dev-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.modal-dev-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1.2;
}
.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.modal-spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-spec-k {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-spec-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono);
  word-break: break-word;
}
.modal-spec-v small {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font);
  font-weight: 400;
  margin-top: 2px;
}
.modal-spec-full {
  grid-column: 1 / -1;
}
.storage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.storage-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-family: var(--mono);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.01em;
}
.storage-tag-none {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  font-family: var(--font);
  font-weight: 400;
}
.modal-vint-banner {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-vint-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-vint-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.modal-dev-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-extra-specs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-extra-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-extra-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-extra-pill {
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-extra-pill strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 680px) {
  .modal-dev-layout { grid-template-columns: 1fr; }
  .modal-dev-showcase { max-width: 320px; margin: 0 auto 16px; width: 100%; }
  .modal-specs-grid { grid-template-columns: 1fr; }
}

/* Empty State Amélioré */
.dev-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: radial-gradient(circle at 50% 30%, rgba(41, 151, 255, 0.08) 0%, transparent 65%), var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.dev-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(41, 151, 255, 0.12);
  color: var(--blue);
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(41, 151, 255, 0.2);
}
.dev-empty h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: #fff;
}
.dev-empty-sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 50ch;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.dev-empty-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.sugg-label {
  font-size: 13.5px;
  color: var(--text-3);
  margin-right: 4px;
}
.sugg-chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.sugg-chip:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}
.dev-empty-actions {
  display: flex;
  justify-content: center;
}

/* 16. Statut du Système (`status_public.html`) ----------------------------- */
.global-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 28px 36px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.global-banner::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px;
  background: var(--green);
}
.global-banner[data-state="warn"]::before { background: var(--orange); }
.global-banner[data-state="down"]::before { background: var(--red); }
.global-left { display: flex; align-items: center; gap: 20px; }
.global-banner .dot { width: 18px; height: 18px; }
.global-banner h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; }
.global-banner p { color: var(--text-2); font-size: 15.5px; margin-top: 4px; }

.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.comp {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s;
}
.comp:hover { border-color: var(--line-strong); }
.comp-head { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.comp .val {
  margin-top: 6px; font-size: 34px; font-weight: 700;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
}
.comp .val small { font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.gauge { height: 6px; margin-top: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.gauge i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width 0.6s var(--ease); }

.chart-panel {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-top: 24px;
}
.chart-box { position: relative; height: 260px; margin-top: 18px; }

.svc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.svc {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s;
}
.svc:hover { background: var(--surface-hover); }
.svc .st { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 400; }

/* 17. Squelettes de Chargement (Shimmer) ----------------------------------- */
.sk {
  border-radius: var(--r-sm);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-row { height: 80px; border-radius: var(--r-md); }
.sk-card { height: 160px; border-radius: var(--r-md); }
.sk-tile { height: 48px; border-radius: var(--r-sm); }
.sk-line { height: 16px; width: 60%; }

/* 18. Footer & Mentions ---------------------------------------------------- */
.site-footer {
  margin-top: auto; padding: 64px 0 44px;
  border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px;
}
.ftr {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 48px;
}
.ftr p { margin-top: 14px; max-width: 40ch; line-height: 1.55; }
.ftr h4 { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.ftr a { display: block; padding: 5px 0; color: var(--text-2); font-size: 14px; }
.ftr a:hover { color: var(--text); }
.legal {
  max-width: 80ch; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); line-height: 1.5;
}

/* 19. Responsive Media Queries --------------------------------------------- */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .help-layout { grid-template-columns: 1fr; }
  .sim { position: static; order: -1; margin-bottom: 24px; }
  .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    padding: 12px 20px 24px; background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: var(--r-sm); }
  .nav .nav-invite { display: block; margin-top: 8px; text-align: center; background: var(--blue); color: #fff; }
  .hdr-actions .btn { display: none; }
  .tile, .tile.s7, .tile.s5 { grid-column: span 12; }
  .rel { grid-template-columns: 1fr auto; }
  .rel-badges { grid-column: 1 / -1; order: 3; }
  .rel-date { order: 2; }
  .rel-actions { grid-column: 1 / -1; order: 4; justify-content: flex-start; }
  .pallas-pipeline { grid-template-columns: 1fr; }
  .chip-inspector { grid-template-columns: 1fr; }
  .life-continuum { grid-template-columns: 1fr; }
  .ftr { grid-template-columns: 1fr 1fr; }
  .ftr > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .comp-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .dc-fields { grid-template-columns: 1fr; }
  .dc-cmd { margin-left: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .global-banner { padding: 22px; }
}

/* 17. Pages Légales & Documentation Texte (`privacy.html`, `terms.html`, `404.html`) */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-toc h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.legal-toc a {
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.15s;
}
.legal-toc a:hover {
  color: var(--text);
}
.legal-card {
  padding: 28px 32px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
}
.legal-card h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}
.legal-card p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.legal-card p:last-child {
  margin-bottom: 0;
}
.legal-card ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0 16px;
  color: var(--text-2);
}
.legal-card li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.legal-card strong {
  color: var(--text);
}
.legal-card a {
  color: var(--blue-light);
  text-decoration: none;
}
.legal-card a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
}