/* =====================================================================
   OLYMPE AI — PORTAIL CLIENT CORPORATE · DESIGN SYSTEM v5
   Palette Studio conservée : noir OLED / marine profond / orange premium Olympe
   ===================================================================== */

:root {
  /* Fonds */
  --bg-0: #060912;
  --bg-1: #0A0E18;
  --bg-2: #0E1422;
  --bg-3: #131B2C;
  --bg-4: #19233A;
  --bg-input: #0D1320;
  --navy: #14213D;
  --navy-2: #1B2A4A;

  /* Lignes */
  --line: rgba(148, 163, 184, 0.10);
  --line-2: rgba(148, 163, 184, 0.16);
  --line-gold: rgba(255, 106, 26, 0.38);

  /* Texte */
  --tx-1: #F8FAFC;
  --tx-2: #CBD5E1;
  --tx-3: #94A3B8;
  --tx-4: #64748B;

  /* Orange premium Olympe (variables --gold-* conservées pour compatibilité) */
  --gold-300: #FFB07A;
  --gold-400: #FF8A3D;
  --gold-500: #FF6A1A;
  --gold-600: #FF5C0A;
  --gold-700: #E14B00;
  --gold-glow: rgba(255, 92, 10, 0.28);
  --gold-soft: rgba(255, 92, 10, 0.11);
  --ivory: #FBF6EC;

  /* Accents Studio */
  --orange: #FF5C0A;
  --orange-2: #FF7A1A;
  --cyan: #38BDF8;
  --emerald: #34D399;
  --purple: #A78BFA;
  --rose: #F43F5E;

  /* Gardiens */
  --apollon: #FF8A3D;
  --athena: #FF6A1A;
  --hermes: #38BDF8;
  --hephaistos: #A78BFA;

  /* Formes */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 28px -8px rgba(255, 92, 10, 0.55);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease);
  --t: 280ms var(--ease);

  --sidebar-w: 268px;
  --topbar-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--tx-1);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(255, 92, 10, 0.08), transparent 60%),
    radial-gradient(1000px 680px at 100% -5%, rgba(59, 130, 246, 0.10), transparent 62%),
    radial-gradient(900px 700px at 55% 120%, rgba(30, 58, 110, 0.55), transparent 62%),
    linear-gradient(180deg, rgba(14, 22, 40, 0.0), rgba(14, 22, 40, 0.35));
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(255, 106, 26, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #2A3954; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

/* =====================================================================
   BOOT
   ===================================================================== */
.boot {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 999;
  background: var(--bg-0); transition: opacity 400ms var(--ease);
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot-mark { width: 64px; height: 64px; color: var(--gold-500); animation: pulseMark 1.4s var(--ease) infinite; }
@keyframes pulseMark { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.6; } }

/* =====================================================================
   LOGO
   ===================================================================== */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1B2A4A, #0B1222);
  border: 1px solid var(--line-gold);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
  color: var(--gold-500);
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 15px; letter-spacing: 0.14em; font-weight: 800; }
.logo-text strong span { color: var(--gold-500); }
.logo-text small { font-size: 11px; color: var(--tx-3); letter-spacing: 0.04em; margin-top: 3px; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.login {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; grid-template-columns: minmax(420px, 1fr) 1.25fr;
}
.login-form-side { display: flex; flex-direction: column; padding: 40px 56px; }
.login-form-wrap { margin: auto 0; width: 100%; max-width: 420px; align-self: center; }
.login h1 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.login h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-300), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-sub { color: var(--tx-3); margin-bottom: 32px; font-size: 15px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.login-divider { display: flex; align-items: center; gap: 14px; color: var(--tx-4); font-size: 12px; margin: 8px 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-hint {
  margin-top: 24px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--gold-soft); border: 1px dashed var(--line-gold); font-size: 12.5px; color: var(--tx-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.demo-hint code { color: var(--gold-400); font-size: 12px; }
.demo-hint button { color: var(--gold-400); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.login-foot { color: var(--tx-4); font-size: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.login-error { color: #FCA5A5; background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.25); padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; display: none; }
.login-error.show { display: block; animation: shake 360ms var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.login-stage {
  position: relative; overflow: hidden; margin: 16px; border-radius: var(--r-2xl);
  background:
    radial-gradient(700px 380px at 50% 78%, rgba(255, 106, 26, 0.20), transparent 65%),
    radial-gradient(600px 400px at 85% 10%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(160deg, #101A31 0%, #0A1020 55%, #070B15 100%);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px;
}
.login-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.stage-top { position: relative; z-index: 2; max-width: 560px; }
.stage-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); padding: 6px 12px; border-radius: 999px; background: rgba(255, 106, 26, 0.08); border: 1px solid var(--line-gold); }
.stage-top h2 { font-size: 38px; line-height: 1.12; letter-spacing: -0.025em; margin: 18px 0 12px; font-weight: 800; }
.stage-top p { color: var(--tx-3); font-size: 15px; max-width: 480px; }
.stage-guardians { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.stage-g { text-align: center; opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease) forwards; }
.stage-g:nth-child(2) { animation-delay: 120ms; }
.stage-g:nth-child(3) { animation-delay: 240ms; }
.stage-g:nth-child(4) { animation-delay: 360ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
.stage-g .g-pedestal { position: relative; display: grid; place-items: end center; height: 220px; }
.stage-g .g-pedestal::before {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(251, 246, 236, 0.20), rgba(251, 246, 236, 0.05) 55%, transparent 70%);
}
.stage-g img { position: relative; max-height: 210px; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); transition: transform var(--t); }
.stage-g:hover img { transform: translateY(-6px) scale(1.03); }
.stage-g h4 { margin-top: 14px; font-size: 15px; letter-spacing: 0.14em; font-weight: 800; color: var(--gold-400); }
.stage-g span { font-size: 12px; color: var(--tx-3); }

/* =====================================================================
   SHELL
   ===================================================================== */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(8, 11, 19, 0.96), rgba(6, 9, 15, 0.98));
  border-right: 1px solid var(--line); padding: 20px 14px 14px; gap: 18px; z-index: 40;
}
.sidebar .logo { padding: 2px 8px 6px; }
.org-switch {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line); text-align: left; width: 100%; transition: var(--t-fast);
}
.org-switch:hover { border-color: var(--line-2); background: var(--bg-3); }
.org-avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #0A0E17; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); flex-shrink: 0; }
.org-meta { min-width: 0; flex: 1; }
.org-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-meta small { font-size: 11px; color: var(--gold-400); font-weight: 600; }

.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding-right: 2px; margin-right: -4px; }
.nav-group-title { font-size: 10.5px; font-weight: 700; color: var(--tx-4); letter-spacing: 0.14em; text-transform: uppercase; padding: 0 12px 8px; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--tx-3); font-weight: 600; font-size: 13.5px; transition: var(--t-fast);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: var(--tx-1); background: rgba(148, 163, 184, 0.06); }
.nav-item.active { color: var(--tx-1); background: linear-gradient(90deg, rgba(255, 106, 26, 0.14), rgba(255, 106, 26, 0.02)); }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-500); box-shadow: 0 0 12px var(--gold-500); }
.nav-item.active svg { color: var(--gold-400); }
.nav-item .nav-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--gold-500); color: #fff; }
.nav-item .nav-sub { margin-left: auto; font-size: 10.5px; color: var(--tx-4); font-weight: 600; }

.nav-g-avatar {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 30%, #FBF6EC, #E9DFC9); border: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-g-avatar img { position: absolute; width: 175%; max-width: none; left: 50%; top: 0; transform: translateX(-50%); }
.nav-item[data-g] .nav-g-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-item[data-g] .nav-g-text small { font-size: 10.5px; color: var(--tx-4); font-weight: 500; }
.nav-item[data-g].active .nav-g-text small { color: var(--tx-3); }

.side-plan {
  padding: 14px; border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(27, 42, 74, 0.85), rgba(12, 17, 29, 0.9));
  border: 1px solid var(--line-gold);
}
.side-plan::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 26, 0.25), transparent 70%); }
.side-plan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.side-plan-head strong { font-size: 13px; }
.side-plan small { color: var(--tx-3); font-size: 11.5px; display: flex; justify-content: space-between; margin-top: 8px; }

.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); transition: var(--t-fast); width: 100%; text-align: left; }
.side-user:hover { background: rgba(148, 163, 184, 0.06); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 800; font-size: 13px; color: #0A0E17; background: linear-gradient(135deg, #FED7AA, var(--gold-500));
  box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px rgba(255, 106, 26, 0.4);
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.navy { background: linear-gradient(135deg, #334155, #1E293B); color: var(--tx-1); box-shadow: 0 0 0 2px var(--bg-2); }
.side-user-meta { min-width: 0; flex: 1; }
.side-user-meta strong { display: block; font-size: 13px; }
.side-user-meta small { color: var(--tx-4); font-size: 11.5px; }

/* Topbar */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 32px;
  background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.burger { display: none; width: 38px; height: 38px; border-radius: var(--r-sm); place-items: center; border: 1px solid var(--line-2); }
.burger svg { width: 20px; height: 20px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx-4); min-width: 0; }
.crumbs strong { color: var(--tx-1); font-weight: 700; white-space: nowrap; }
.crumbs svg { width: 14px; height: 14px; }
.search-trigger {
  margin-left: auto; display: flex; align-items: center; gap: 10px; width: 340px; max-width: 34vw;
  padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line);
  color: var(--tx-4); font-size: 13px; transition: var(--t-fast);
}
.search-trigger:hover { border-color: var(--line-2); color: var(--tx-3); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: var(--bg-4); border: 1px solid var(--line-2); color: var(--tx-3); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--tx-3); border: 1px solid transparent; transition: var(--t-fast);
}
.icon-btn:hover { color: var(--tx-1); background: var(--bg-2); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold-500); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-0); }

.content { padding: 28px 32px 64px; width: 100%; max-width: 1440px; margin: 0 auto; }
.view-enter { animation: viewIn 420ms var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   PRIMITIVES
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 13px;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--tx-1); transition: var(--t-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--bg-4); border-color: rgba(148, 163, 184, 0.28); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-gold { background: linear-gradient(90deg, #FF7A1A 0%, #FF5C0A 55%, #FF4D00 100%); color: #fff; font-weight: 800; border: 1px solid rgba(255, 170, 110, 0.35); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 26px -8px rgba(255, 77, 0, 0.65); }
.btn-gold:hover { background: linear-gradient(90deg, #FF8A2E 0%, #FF6A14 55%, #FF5500 100%); border-color: rgba(255, 190, 140, 0.5); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 14px 30px -8px rgba(255, 77, 0, 0.75); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--tx-3); }
.btn-ghost:hover { background: var(--bg-2); color: var(--tx-1); border-color: var(--line); }
.btn-outline-gold { background: transparent; border-color: var(--line-gold); color: var(--gold-400); }
.btn-outline-gold:hover { background: var(--gold-soft); border-color: var(--gold-500); }
.btn-danger { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.3); color: #FDA4AF; }
.btn-danger:hover { background: rgba(244, 63, 94, 0.16); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  position: relative; background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(12, 17, 29, 0.82));
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-head h3 svg { width: 17px; height: 17px; color: var(--gold-400); }
.card-head p { font-size: 12.5px; color: var(--tx-4); margin-top: 2px; }
.card-body { padding: 20px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.card.hoverable { transition: var(--t); }
.card.hoverable:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-2); }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 1fr) 380px; }
.g-side-main { grid-template-columns: 340px minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.muted { color: var(--tx-3); }
.dim { color: var(--tx-4); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.strong { font-weight: 700; }
.gold { color: var(--gold-400); }
.right { text-align: right; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.page-head p { color: var(--tx-3); margin-top: 6px; font-size: 14px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* Badges & pills */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: rgba(148, 163, 184, 0.10); color: var(--tx-2); border: 1px solid var(--line); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge.no-dot::before { display: none; }
.badge.ok { background: rgba(52, 211, 153, 0.10); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.25); }
.badge.warn { background: rgba(255, 106, 26, 0.10); color: var(--gold-300); border-color: rgba(255, 106, 26, 0.28); }
.badge.info { background: rgba(56, 189, 248, 0.10); color: #7DD3FC; border-color: rgba(56, 189, 248, 0.25); }
.badge.err { background: rgba(244, 63, 94, 0.10); color: #FDA4AF; border-color: rgba(244, 63, 94, 0.28); }
.badge.purple { background: rgba(167, 139, 250, 0.10); color: #C4B5FD; border-color: rgba(167, 139, 250, 0.28); }
.badge.orange { background: rgba(255, 106, 26, 0.10); color: #FDBA74; border-color: rgba(255, 106, 26, 0.28); }
.badge.live::before { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tx-2); background: var(--bg-2); border: 1px solid var(--line); transition: var(--t-fast); }
.chip svg { width: 14px; height: 14px; }
button.chip:hover { border-color: var(--line-gold); color: var(--tx-1); }
.chip.active { background: var(--gold-soft); border-color: var(--line-gold); color: var(--gold-300); }
.method { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.method.get { background: rgba(52, 211, 153, 0.12); color: #6EE7B7; }
.method.post { background: rgba(255, 106, 26, 0.12); color: var(--gold-300); }
.method.delete { background: rgba(244, 63, 94, 0.12); color: #FDA4AF; }
.method.put, .method.patch { background: rgba(56, 189, 248, 0.12); color: #7DD3FC; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); width: fit-content; margin-bottom: 22px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--tx-3); transition: var(--t-fast); }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--tx-1); }
.tab.active { background: var(--bg-3); color: var(--tx-1); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 4px 12px rgba(0, 0, 0, 0.3); }
.tab.active svg { color: var(--gold-400); }
.tab .count { font-size: 10.5px; background: var(--bg-4); padding: 1px 6px; border-radius: 999px; color: var(--tx-3); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 12px; font-weight: 700; color: var(--tx-2); letter-spacing: 0.01em; }
.field .hint { font-size: 11.5px; color: var(--tx-4); }
.input, .select, .textarea {
  width: 100%; background: var(--bg-input); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 13.5px; color: var(--tx-1); transition: var(--t-fast); outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--tx-4); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(148, 163, 184, 0.26); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-glow); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.select option { background: var(--bg-3); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--tx-4); pointer-events: none; }
.input-group .input { padding-left: 38px; }
.input-group .input-suffix { position: absolute; right: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--tx-2); user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(148, 163, 184, 0.4); background: var(--bg-input); display: grid; place-items: center; transition: var(--t-fast); cursor: pointer; flex-shrink: 0; }
.check input:checked { background: var(--gold-500); border-color: var(--gold-500); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #0A0E17; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; }
.switch input { appearance: none; position: absolute; inset: 0; border-radius: 999px; background: #243047; cursor: pointer; transition: var(--t-fast); }
.switch input:checked { background: var(--gold-500); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: var(--t-fast); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.switch input:checked::after { left: 20px; }
.color-field { display: flex; align-items: center; gap: 8px; background: var(--bg-input); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 5px 6px; }
.color-field input[type=color] { appearance: none; width: 32px; height: 30px; border: 0; border-radius: 7px; background: none; cursor: pointer; padding: 0; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 7px; }
.color-field input[type=text] { border: 0; background: none; outline: none; font-family: var(--mono); font-size: 12.5px; width: 100%; text-transform: uppercase; }
input[type=range] { appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500) var(--p, 50%), #243047 var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-500); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }

/* Progress */
.bar { height: 7px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); transition: width 900ms var(--ease); }
.bar.thin { height: 5px; }
.bar.cyan > i { background: linear-gradient(90deg, #0284C7, var(--cyan)); }
.bar.emerald > i { background: linear-gradient(90deg, #059669, var(--emerald)); }
.bar.purple > i { background: linear-gradient(90deg, #7C3AED, var(--purple)); }
.bar.orange > i { background: linear-gradient(90deg, var(--orange), #FB923C); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-4); padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgba(8, 11, 19, 0.5); white-space: nowrap; }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: rgba(148, 163, 184, 0.03); }
.table tbody tr:last-child td { border-bottom: 0; }
.cell-user { display: flex; align-items: center; gap: 12px; }
.cell-user strong { display: block; font-size: 13px; }
.cell-user small { color: var(--tx-4); font-size: 12px; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--tx-3); }
.empty img { height: 120px; width: auto; margin: 0 auto 14px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); }
.empty h4 { color: var(--tx-1); font-size: 15px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Callout */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--tx-2); font-size: 13px; }
.callout svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; margin-top: 1px; }
.callout.info { background: rgba(56, 189, 248, 0.07); border-color: rgba(56, 189, 248, 0.25); }
.callout.info svg { color: var(--cyan); }

/* =====================================================================
   GUARDIAN HERO
   ===================================================================== */
.g-hero {
  --gc: var(--gold-500);
  position: relative; overflow: hidden; border-radius: var(--r-xl); margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--gc) 28%, transparent);
  background:
    radial-gradient(520px 300px at 88% 120%, color-mix(in srgb, var(--gc) 26%, transparent), transparent 70%),
    radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--gc) 10%, transparent), transparent 70%),
    linear-gradient(135deg, #111A30 0%, #0B1121 60%, #090D19 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 230px;
}
.g-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.g-hero-body { position: relative; z-index: 2; padding: 30px 34px; display: flex; flex-direction: column; gap: 14px; }
.g-hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gc); }
.g-hero-kicker i { width: 22px; height: 2px; background: var(--gc); border-radius: 2px; }
.g-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.g-hero h1 span { color: var(--gc); }
.g-hero p { color: var(--tx-3); max-width: 560px; font-size: 14.5px; }
.g-pillars { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.g-pillar { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px; border-radius: 999px; background: rgba(5, 7, 12, 0.45); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--tx-2); }
.g-pillar b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 16%, transparent); color: var(--gc); }
.g-pillar svg { width: 14px; height: 14px; }
.g-hero-stats { display: flex; gap: 28px; margin-top: 6px; flex-wrap: wrap; }
.g-hero-stats div strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.g-hero-stats div small { color: var(--tx-4); font-size: 12px; }
.g-hero-art { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.g-hero-art::before {
  content: ''; position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(251, 246, 236, 0.22), rgba(251, 246, 236, 0.06) 50%, transparent 70%);
}
.g-hero-art img { position: relative; height: 228px; width: auto; margin-bottom: -8px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.g-hero-speech {
  position: absolute; z-index: 3; top: 22px; right: 214px; max-width: 220px; padding: 10px 13px; border-radius: 14px 14px 4px 14px;
  background: var(--ivory); color: #1B2A4A; font-size: 12px; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: popIn 600ms 400ms var(--ease) both;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(6px); } }

[data-guardian=apollon] { --gc: var(--apollon); }
[data-guardian=athena] { --gc: var(--athena); }
[data-guardian=hermes] { --gc: var(--hermes); }
[data-guardian=hephaistos] { --gc: var(--hephaistos); }

/* Guardian portrait medallion */
.g-medal {
  --gc: var(--gold-500);
  position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, #FFFBF2, #EADFC6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 3px color-mix(in srgb, var(--gc) 35%, transparent);
}
.g-medal img { position: absolute; width: 170%; max-width: none; left: 50%; top: 2%; transform: translateX(-50%); }
.g-medal.sm { width: 36px; height: 36px; border-radius: 10px; }
.g-medal.lg { width: 72px; height: 72px; border-radius: 18px; }
.g-medal.round { border-radius: 50%; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
.welcome {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px 32px; margin-bottom: 22px;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(255, 106, 26, 0.14), transparent 65%),
    linear-gradient(135deg, #111A30, #0A1020);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.welcome h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.welcome h1 span { background: linear-gradient(90deg, var(--gold-300), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome p { color: var(--tx-3); margin-top: 6px; }
.welcome-team { display: flex; align-items: flex-end; margin-right: 8px; }
.welcome-team img { height: 92px; width: auto; margin-left: -18px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); transition: transform var(--t); }
.welcome-team img:hover { transform: translateY(-6px); }

.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12.5px; color: var(--tx-3); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-400); border: 1px solid var(--line-gold); }
.kpi-ico svg { width: 17px; height: 17px; }
.kpi-ico.cyan { background: rgba(56, 189, 248, 0.08); color: var(--cyan); border-color: rgba(56, 189, 248, 0.25); }
.kpi-ico.emerald { background: rgba(52, 211, 153, 0.08); color: var(--emerald); border-color: rgba(52, 211, 153, 0.25); }
.kpi-ico.purple { background: rgba(167, 139, 250, 0.08); color: var(--purple); border-color: rgba(167, 139, 250, 0.25); }
.kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.kpi-value small { font-size: 14px; color: var(--tx-4); font-weight: 600; margin-left: 4px; }
.kpi-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--tx-4); }
.trend { font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--emerald); }
.trend.down { color: var(--rose); }
.trend svg { width: 13px; height: 13px; }
.spark { height: 36px; width: 100%; }

.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: 260px; display: block; overflow: visible; }
.chart-tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 9px; background: rgba(5, 7, 12, 0.92); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity 120ms; box-shadow: var(--shadow-2); }
.chart-tip strong { color: var(--gold-400); }
.chart-legend { display: flex; gap: 6px; }

.g-list { display: flex; flex-direction: column; }
.g-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); transition: var(--t-fast); }
.g-row:last-child { border-bottom: 0; }
.g-row:hover { background: rgba(148, 163, 184, 0.04); }
.g-row-meta { flex: 1; min-width: 0; }
.g-row-meta strong { display: flex; align-items: center; gap: 8px; font-size: 13.5px; letter-spacing: 0.04em; }
.g-row-meta small { display: block; font-size: 12px; color: var(--tx-4); }
.g-row-meta .g-live { font-size: 12.5px; color: var(--tx-2); margin-top: 3px; }
.g-row > svg { width: 16px; height: 16px; color: var(--tx-4); }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; padding: 12px 22px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 39px; top: 44px; bottom: -4px; width: 1px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-item .g-medal { width: 34px; height: 34px; border-radius: 50%; }
.tl-text { font-size: 13px; color: var(--tx-2); }
.tl-text strong { color: var(--tx-1); }
.tl-text em { font-style: normal; color: var(--gold-300); }
.tl-time { font-size: 11.5px; color: var(--tx-4); margin-top: 2px; }

.job-row { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); cursor: pointer; transition: var(--t-fast); }
.job-row:hover { background: rgba(148, 163, 184, 0.04); }
.job-row:last-child { border-bottom: 0; }
.job-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-4); color: var(--tx-3); flex-shrink: 0; }
.job-ico svg { width: 17px; height: 17px; }
.job-ico.running { background: var(--gold-soft); color: var(--gold-400); }
.job-ico.completed { background: rgba(52, 211, 153, 0.1); color: var(--emerald); }
.job-ico.failed { background: rgba(244, 63, 94, 0.1); color: var(--rose); }
.job-meta { flex: 1; min-width: 0; }
.job-meta strong { display: block; font-size: 13px; }
.job-meta small { color: var(--tx-4); font-size: 12px; }

.pub-item { display: flex; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.pub-item:last-child { border-bottom: 0; }
.pub-date { width: 46px; text-align: center; border-radius: 10px; background: var(--bg-4); padding: 6px 0; flex-shrink: 0; border: 1px solid var(--line); }
.pub-date b { display: block; font-size: 17px; line-height: 1; }
.pub-date small { font-size: 10px; text-transform: uppercase; color: var(--gold-400); font-weight: 700; letter-spacing: 0.06em; }

.ch-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.ch-ico svg { width: 16px; height: 16px; }
.ch-tiktok { background: linear-gradient(135deg, #111, #2B2B2B); box-shadow: inset 2px 0 0 #25F4EE, inset -2px 0 0 #FE2C55; }
.ch-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.ch-youtube { background: #E62117; }
.ch-linkedin { background: #0A66C2; }
.ch-meta_ads { background: linear-gradient(135deg, #0668E1, #0081FB); }

/* =====================================================================
   APOLLON — MÉDIATHÈQUE & PRODUCTION
   ===================================================================== */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input-group { width: 300px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.media-card { overflow: hidden; cursor: pointer; transition: var(--t); }
.media-card:hover { transform: translateY(-3px); border-color: var(--line-gold); box-shadow: var(--shadow-2); }
.media-thumb { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.media-thumb video { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--t), transform var(--t); }
.media-card:hover .media-thumb video { opacity: 1; transform: scale(1.04); }
.media-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.media-thumb .play span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 7, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); transition: var(--t); }
.media-card:hover .play span { background: var(--gold-500); color: #0A0E17; transform: scale(1.08); }
.media-thumb .play svg { width: 18px; height: 18px; margin-left: 2px; }
.media-thumb .badge { position: absolute; top: 10px; left: 10px; background: rgba(5, 7, 12, 0.7); backdrop-filter: blur(6px); }
.media-info { padding: 13px 15px; }
.media-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-info small { color: var(--tx-4); font-size: 11.5px; display: flex; justify-content: space-between; margin-top: 4px; }

.ratio-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ratio-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-input); transition: var(--t-fast); font-size: 12px; font-weight: 700; color: var(--tx-3); }
.ratio-opt:hover { border-color: rgba(148, 163, 184, 0.3); color: var(--tx-1); }
.ratio-opt.active { border-color: var(--gold-500); background: var(--gold-soft); color: var(--gold-300); box-shadow: 0 0 0 3px var(--gold-glow); }
.ratio-opt i { display: block; border: 2px solid currentColor; border-radius: 4px; }
.ratio-opt small { font-weight: 500; font-size: 10.5px; color: var(--tx-4); }

.storyboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.scene { padding: 14px; border-radius: var(--r-md); background: var(--bg-input); border: 1px solid var(--line); position: relative; }
.scene-n { font-family: var(--mono); font-size: 10.5px; color: var(--gold-400); font-weight: 700; }
.scene h5 { font-size: 13px; margin: 6px 0 4px; line-height: 1.35; }
.scene p { font-size: 12px; color: var(--tx-3); line-height: 1.45; }
.scene .badge { margin-top: 10px; }

.pipeline { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.pl-step { display: flex; flex-direction: column; gap: 8px; }
.pl-step i { height: 5px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); position: relative; overflow: hidden; }
.pl-step.done i { background: var(--emerald); }
.pl-step.active i { background: rgba(255, 106, 26, 0.25); }
.pl-step.active i::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--gold-500); animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.pl-step span { font-size: 10.5px; color: var(--tx-4); font-weight: 600; line-height: 1.25; }
.pl-step.done span { color: var(--tx-2); }
.pl-step.active span { color: var(--gold-300); }
.ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .ring-val strong { font-size: 26px; font-weight: 800; display: block; line-height: 1; }
.ring .ring-val small { font-size: 11px; color: var(--tx-4); }
.console { background: #04060A; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; height: 280px; overflow-y: auto; color: var(--tx-3); }
.console .lv-STAGE { color: var(--gold-300); }
.console .lv-SUCCESS { color: #6EE7B7; }
.console .lv-ERROR { color: #FDA4AF; }
.console .lv-INFO { color: #93C5FD; }
.console time { color: var(--tx-4); margin-right: 8px; }

/* =====================================================================
   ATHÉNA — BRAND KIT, PUBLICATION
   ===================================================================== */
.brand-preview-stage { display: flex; gap: 20px; align-items: flex-end; justify-content: center; padding: 26px; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 100%, rgba(255, 106, 26, 0.08), transparent 70%), #070A12; border: 1px solid var(--line); }
.phone { width: 220px; aspect-ratio: 9 / 16; border-radius: 26px; padding: 8px; background: #1A1F2B; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.6); flex-shrink: 0; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 20px 16px; gap: 12px; transition: background var(--t); }
.bp-logo { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.bp-logo img { height: 18px; width: auto; border-radius: 4px; }
.bp-badge { align-self: flex-start; font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; border: 1px solid; }
.bp-title { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.bp-sub { font-size: 10px; opacity: 0.75; line-height: 1.4; }
.bp-kpi { font-size: 30px; font-weight: 800; line-height: 1; }
.bp-cta { margin-top: 6px; align-self: stretch; text-align: center; padding: 9px; border-radius: 9px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; }
.bp-wm { position: absolute; font-size: 8px; font-weight: 700; opacity: 0.55; letter-spacing: 0.08em; }
.landscape { width: 300px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.5); position: relative; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; gap: 6px; }
.landscape .bp-title { font-size: 16px; }
.contrast-meter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-input); border: 1px solid var(--line); }
.contrast-score { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.logo-drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); background: var(--bg-input); cursor: pointer; transition: var(--t-fast); }
.logo-drop:hover { border-color: var(--gold-500); }
.logo-drop .logo-thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-4); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.logo-drop .logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-drop .logo-thumb svg { width: 20px; height: 20px; color: var(--tx-4); }

.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.channel { display: flex; align-items: center; gap: 12px; padding: 14px; }
.channel .ch-ico { width: 40px; height: 40px; border-radius: 11px; }
.channel .ch-ico svg { width: 20px; height: 20px; }
.channel-meta { flex: 1; min-width: 0; }
.channel-meta strong { display: block; font-size: 13px; }
.channel-meta small { color: var(--tx-4); font-size: 11.5px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx-4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 11, 19, 0.5); }
.cal-d { min-height: 104px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background var(--t-fast); cursor: pointer; }
.cal-d:hover { background: rgba(148, 163, 184, 0.03); }
.cal-d.other { opacity: 0.35; }
.cal-d.today .cal-n { background: var(--gold-500); color: #0A0E17; }
.cal-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--tx-2); }
.cal-ev { font-size: 10.5px; font-weight: 600; padding: 3px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid; background: rgba(148, 163, 184, 0.08); }
.cal-ev.tiktok { border-color: #25F4EE; }
.cal-ev.instagram { border-color: #DD2A7B; }
.cal-ev.youtube { border-color: #E62117; }
.cal-ev.linkedin { border-color: #0A66C2; }
.cal-ev.meta_ads { border-color: #0081FB; }

.prompt-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.prompt-card p { font-size: 12.5px; color: var(--tx-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prompt-card .row-between { margin-top: auto; }

/* =====================================================================
   HERMÈS — CHAT, TICKETS, STATUT
   ===================================================================== */
.chat { display: flex; flex-direction: column; height: calc(100vh - 360px); min-height: 520px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 14px; }
.chat-head small { font-size: 12px; color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; max-width: 84%; animation: viewIn 300ms var(--ease); }
.msg .g-medal { width: 32px; height: 32px; border-radius: 50%; }
.msg-bubble { padding: 11px 14px; border-radius: 4px 14px 14px 14px; background: var(--bg-3); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--tx-2); }
.msg-bubble strong { color: var(--tx-1); }
.msg-bubble code { font-size: 12px; background: rgba(5, 7, 12, 0.6); padding: 1px 6px; border-radius: 5px; color: var(--gold-300); }
.msg-bubble ul, .msg-bubble ol { padding-left: 18px; margin: 4px 0; }
.msg-meta { font-size: 11px; color: var(--tx-4); margin-top: 5px; display: flex; gap: 8px; align-items: center; }
.msg-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .msg-bubble { background: linear-gradient(180deg, rgba(255, 106, 26, 0.16), rgba(255, 106, 26, 0.08)); border-color: var(--line-gold); color: var(--tx-1); border-radius: 14px 4px 14px 14px; }
.msg.me .msg-meta { justify-content: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-suggest { display: flex; gap: 8px; padding: 0 20px 12px; flex-wrap: wrap; }
.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-input .textarea { min-height: 44px; max-height: 140px; resize: none; }

.ticket-list { display: flex; flex-direction: column; max-height: calc(100vh - 330px); overflow-y: auto; }
.ticket-item { padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: var(--t-fast); border-left: 2px solid transparent; }
.ticket-item:hover { background: rgba(148, 163, 184, 0.04); }
.ticket-item.active { background: rgba(255, 106, 26, 0.06); border-left-color: var(--gold-500); }
.ticket-item strong { display: block; font-size: 13px; margin: 5px 0 3px; line-height: 1.35; }
.ticket-item p { font-size: 12px; color: var(--tx-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; max-height: calc(100vh - 470px); min-height: 260px; overflow-y: auto; }
.stars { display: inline-flex; gap: 2px; }
.stars button { color: #334155; }
.stars button.on { color: var(--gold-400); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

.status-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(52, 211, 153, 0.12), rgba(52, 211, 153, 0.02)); border: 1px solid rgba(52, 211, 153, 0.25); margin-bottom: 20px; }
.status-hero .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.uptime { display: flex; gap: 2px; height: 30px; align-items: stretch; }
.uptime i { flex: 1; border-radius: 2px; background: var(--emerald); opacity: 0.85; transition: opacity var(--t-fast); }
.uptime i:hover { opacity: 1; transform: scaleY(1.1); }
.uptime i.minor { background: var(--gold-500); }
.uptime i.maintenance { background: var(--cyan); }
.comp-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.comp-row:last-child { border-bottom: 0; }

/* =====================================================================
   HÉPHAÏSTOS — ACADÉMIE
   ===================================================================== */
.track { overflow: hidden; }
.track-head { display: flex; gap: 16px; padding: 20px 22px; align-items: center; border-bottom: 1px solid var(--line); }
.track-head h3 { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.track-head p { font-size: 12.5px; color: var(--tx-4); margin-top: 2px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); cursor: pointer; transition: var(--t-fast); }
.lesson:last-child { border-bottom: 0; }
.lesson:hover { background: rgba(148, 163, 184, 0.04); }
.lesson-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(148, 163, 184, 0.35); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.lesson-check svg { width: 13px; height: 13px; }
.lesson.done .lesson-check { background: var(--emerald); border-color: var(--emerald); color: #04110C; }
.lesson-title { flex: 1; font-size: 13px; font-weight: 600; }
.lesson.done .lesson-title { color: var(--tx-3); }
.reader { max-width: 760px; }
.reader h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 18px; line-height: 1.25; }
.prose { color: var(--tx-2); font-size: 14.5px; line-height: 1.75; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose .callout { margin-bottom: 16px; }
.prose h3 { font-size: 16px; color: var(--tx-1); margin: 24px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--tx-1); }
.prose code { font-size: 12.5px; background: var(--bg-4); padding: 2px 6px; border-radius: 5px; color: var(--gold-300); }
.prose pre { background: #04060A; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: #E2E8F0; font-size: 12.5px; line-height: 1.7; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.doc-table th, .doc-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.doc-table th { background: var(--bg-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tx-4); }

.cert { padding: 24px; text-align: center; position: relative; overflow: hidden; }
.cert-badge { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--gold-500) calc(var(--p) * 1%), rgba(148, 163, 184, 0.14) 0); }
.cert-badge::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-2); }
.cert-badge .g-medal { position: relative; width: 64px; height: 64px; border-radius: 50%; }
.cert.locked .g-medal { filter: grayscale(0.9) brightness(0.7); }
.cert.earned { border-color: var(--line-gold); background: radial-gradient(400px 200px at 50% 0%, rgba(255, 106, 26, 0.14), transparent 70%), linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(12, 17, 29, 0.82)); }
.cert h4 { font-size: 15px; margin-bottom: 6px; }
.cert p { font-size: 12.5px; color: var(--tx-3); }

.code-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; }
.code-tab { padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--tx-4); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.code-tab.active { color: var(--gold-300); border-color: var(--gold-500); }
.code-block { position: relative; background: #04060A; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.code-block pre { padding: 18px 20px; overflow-x: auto; font-size: 12.5px; line-height: 1.75; color: #E2E8F0; margin: 0; }
.code-block .copy { position: absolute; top: 10px; right: 10px; }
.tok-k { color: #F472B6; } .tok-s { color: #FDBA74; } .tok-c { color: #64748B; } .tok-f { color: #7DD3FC; }

/* =====================================================================
   FACTURATION
   ===================================================================== */
.plan-hero { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-xl); background: radial-gradient(500px 260px at 100% 0%, rgba(255, 106, 26, 0.2), transparent 70%), linear-gradient(140deg, #16223E, #0B1222); border: 1px solid var(--line-gold); }
.plan-hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price small { font-size: 13px; color: var(--tx-3); font-weight: 600; }
.feat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx-2); }
.feat svg { width: 16px; height: 16px; color: var(--gold-400); flex-shrink: 0; }
.cc { position: relative; aspect-ratio: 1.586; border-radius: 18px; padding: 22px; overflow: hidden; color: #F8FAFC; background: radial-gradient(400px 200px at 100% 0%, rgba(255, 106, 26, 0.45), transparent 60%), linear-gradient(135deg, #1B2A4A, #0A1020); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; justify-content: space-between; max-width: 360px; }
.cc-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #FED7AA, #C2410C); opacity: 0.9; }
.cc-num { font-family: var(--mono); font-size: 18px; letter-spacing: 0.12em; }
.cc-foot { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-2); }
.cc-brand { font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: 0.02em; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.current { border-color: var(--line-gold); background: radial-gradient(300px 160px at 50% 0%, rgba(255, 106, 26, 0.12), transparent 70%), linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(12, 17, 29, 0.82)); }
.plan h4 { font-size: 16px; }
.plan .plan-price { font-size: 28px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }

/* =====================================================================
   OVERLAYS — MODAL, DRAWER, PALETTE, TOASTS, HERMÈS FAB
   ===================================================================== */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(2, 4, 8, 0.66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fadeIn 200ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #111827, #0B101C); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); animation: modalIn 320ms var(--ease); }
.modal.lg { max-width: 860px; }
.modal.xl { max-width: 1040px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; font-weight: 800; flex: 1; }
.modal-head p { font-size: 12.5px; color: var(--tx-4); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: rgba(5, 7, 12, 0.35); }

.drawer-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(2, 4, 8, 0.5); animation: fadeIn 200ms; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 191; background: linear-gradient(180deg, #0F1524, #0A0E18); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; animation: drawerIn 320ms var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); cursor: pointer; transition: var(--t-fast); position: relative; }
.notif:hover { background: rgba(148, 163, 184, 0.04); }
.notif.unread::after { content: ''; position: absolute; right: 20px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 8px var(--gold-500); }
.notif strong { font-size: 13px; display: block; }
.notif p { font-size: 12.5px; color: var(--tx-3); margin-top: 2px; padding-right: 16px; }
.notif time { font-size: 11px; color: var(--tx-4); }

.palette { width: 100%; max-width: 640px; align-self: start; margin-top: 12vh; background: #0E1422; border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); overflow: hidden; animation: modalIn 240ms var(--ease); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 19px; height: 19px; color: var(--gold-400); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; font-size: 15px; }
.palette-list { max-height: 420px; overflow-y: auto; padding: 8px; }
.palette-group { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-4); padding: 10px 12px 6px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px; color: var(--tx-2); }
.palette-item svg { width: 17px; height: 17px; color: var(--tx-4); }
.palette-item .g-medal { width: 26px; height: 26px; border-radius: 8px; }
.palette-item small { margin-left: auto; color: var(--tx-4); font-size: 11.5px; }
.palette-item.sel { background: var(--gold-soft); color: var(--tx-1); }
.palette-item.sel svg { color: var(--gold-400); }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--tx-4); }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r-md); background: rgba(17, 24, 39, 0.96); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); font-size: 13px; font-weight: 600; animation: toastIn 360ms var(--ease); backdrop-filter: blur(12px); }
.toast svg { width: 17px; height: 17px; flex-shrink: 0; }
.toast.ok svg { color: var(--emerald); }
.toast.err svg { color: var(--rose); }
.toast.info svg { color: var(--gold-400); }
.toast.out { animation: toastOut 260ms var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.fab { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: linear-gradient(135deg, #16223E, #0B1222); border: 1px solid rgba(56, 189, 248, 0.35); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(56, 189, 248, 0.06); transition: var(--t); }
.fab:hover { transform: translateY(-2px); border-color: var(--cyan); }
.fab .g-medal { width: 42px; height: 42px; border-radius: 50%; }
.fab strong { display: block; font-size: 13px; text-align: left; }
.fab small { display: block; font-size: 11px; color: var(--cyan); text-align: left; }
.mini-chat { position: fixed; right: 24px; bottom: 92px; z-index: 151; width: 380px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: linear-gradient(180deg, #111827, #0A0E18); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65); overflow: hidden; animation: modalIn 280ms var(--ease); }
.mini-chat .chat-msgs { padding: 16px; }
.mini-chat .msg { max-width: 92%; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); visibility: hidden; transform: translateX(-100%); transition: transform var(--t); box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5); }
  .sidebar.open { visibility: visible; transform: none; }
  .burger { display: grid; }
  .g-main-side, .g-side-main, .g-3 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-stage { display: none; }
  .search-trigger { width: auto; max-width: none; }
  .search-trigger span { display: none; }
}
@media (max-width: 760px) {
  .content { padding: 20px 16px 80px; }
  .topbar { padding: 0 16px; }
  .g-2, .g-4, .plans, .form-grid { grid-template-columns: 1fr; }
  .g-hero { grid-template-columns: 1fr; }
  .g-hero-art { display: none; }
  .g-hero-speech { display: none; }
  .welcome-team { display: none; }
  .ratio-picker { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .fab strong, .fab small { display: none; }
  .fab { padding: 6px; }
  .login-form-side { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================================
   v6 — NOUVEAU CHAT · VOS CRÉATIONS · ASSISTANT IA OLYMPE
   ===================================================================== */
.side-new { height: 44px; font-size: 14px; border-radius: var(--r-md); }
.side-new svg { width: 18px; height: 18px; }
.sidebar { gap: 14px; }
.nav { gap: 16px; }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 700; color: var(--tx-3); transition: var(--t-fast); }
.seg button:hover { color: var(--tx-1); }
.seg button.active { background: var(--gold-soft); color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--line-gold); }
.seg.seg-sm { display: flex; width: 100%; }
.seg.seg-sm button { flex: 1; padding: 5px 6px; font-size: 11.5px; }

/* « Vos créations » déroulant */
.nav-cr { display: flex; flex-direction: column; }
.nav-cr-toggle { width: 100%; text-align: left; }
.nav-cr-toggle .nav-chev { margin-left: 6px; width: 15px !important; height: 15px !important; transition: transform var(--t-fast); transform: rotate(-90deg); }
.nav-cr.open .nav-cr-toggle .nav-chev { transform: none; }
.nav-cr-toggle .nav-sub { margin-left: auto; }
.nav-cr-panel { display: none; flex-direction: column; gap: 8px; padding: 8px 0 2px 10px; margin-left: 10px; border-left: 1px solid var(--line); }
.nav-cr.open .nav-cr-panel { display: flex; }
.nav-cr-list { display: flex; flex-direction: column; gap: 1px; max-height: min(30vh, 300px); overflow-y: auto; padding-right: 4px; }
.cr-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; color: var(--tx-3); font-weight: 500; text-align: left; width: 100%; transition: var(--t-fast); }
.cr-item svg { width: 14px !important; height: 14px !important; color: var(--tx-4); }
.cr-item span { flex: 1; min-width: 0; }
.cr-item time { font-size: 10.5px; color: var(--tx-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-item:hover { background: rgba(148, 163, 184, 0.06); color: var(--tx-1); }
.cr-item.active { background: var(--gold-soft); color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--line-gold); }
.cr-item.active svg { color: var(--gold-400); }
.cr-empty { font-size: 12px; color: var(--tx-4); padding: 10px 8px; line-height: 1.6; }
.cr-empty a, .nav-cr-all { color: var(--gold-400); font-weight: 700; }
.nav-cr-all { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; }
.nav-cr-all svg { width: 13px; height: 13px; }

/* Page « Vos créations » */
.cr-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: var(--t-fast); }
.cr-row:last-child { border-bottom: 0; }
.cr-row:hover { background: rgba(148, 163, 184, 0.04); }
.cr-row .job-meta { flex: 1; min-width: 0; }
.cr-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--gold-soft); color: var(--gold-400); border: 1px solid var(--line-gold); }
.cr-ico.t-video { background: rgba(56, 189, 248, 0.08); color: var(--cyan); border-color: rgba(56, 189, 248, 0.25); }

/* ---------------------------------------------------------------- CHAT */
body.is-chat .content { padding: 0; max-width: none; }
body.is-chat .fab { display: none; }
.chat-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: calc(100vh - var(--topbar-h)); }
.cp-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.cp-head-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cp-head-title .g-medal { width: 38px; height: 38px; }
.cp-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.cp-head small { font-size: 12px; color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.cp-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.cp-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.cp-msgs { max-width: 860px; margin: 0 auto; padding: 28px 28px 12px; display: flex; flex-direction: column; gap: 18px; }
.cp-msgs .msg { max-width: 88%; }
.msg-name { font-size: 12px; font-weight: 800; color: var(--gold-400); margin-bottom: 5px; }

.cp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 0; }
.cp-hero { width: 148px; height: 148px; border-radius: 50%; position: relative; display: grid; place-items: end center; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(251, 146, 60, 0.32), rgba(255, 92, 10, 0.10) 58%, transparent 72%);
  box-shadow: inset 0 0 0 1px var(--line-gold), 0 20px 60px rgba(255, 92, 10, 0.18); }
.cp-hero img { width: 132px; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-5px); } }
.cp-empty h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; }
.cp-empty > p { color: var(--tx-3); margin-top: 6px; font-size: 15px; }
.cp-sugg-title { margin-top: 30px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-4); }
.cp-sugg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; width: 100%; max-width: 720px; }
.cp-sugg-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; text-align: left; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--tx-1); transition: var(--t-fast); }
.cp-sugg-card:hover { border-color: var(--line-gold); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.cp-welcome { align-self: flex-start; text-align: left; margin-top: 30px; max-width: 720px !important; width: 100%; }

.cp-card { padding: 16px; border-radius: 4px 14px 14px 14px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.cp-card strong { display: inline-flex; align-items: center; gap: 8px; }
.cp-scenes { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.cp-scenes li { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(5, 7, 12, 0.45); border: 1px solid var(--line); font-size: 13px; color: var(--tx-2); }
.cp-render-row { display: flex; align-items: center; gap: 12px; }
.cp-render-row small { display: block; color: var(--tx-3); font-size: 12px; margin-top: 2px; }
.cp-render-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.cp-render-ico.ok { background: rgba(52, 211, 153, 0.1); color: var(--emerald); }
.cp-render-ico.err { background: rgba(244, 63, 94, 0.1); color: var(--rose); }
.cp-render-ico.live { background: var(--gold-soft); color: var(--gold-400); animation: pulseGlow 1.6s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 6px rgba(255, 106, 26, 0.08); } }

/* Composer */
.cp-composer { padding: 10px 28px 20px; }
.cp-box { max-width: 860px; margin: 0 auto; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 12px 12px 10px 16px; transition: var(--t-fast); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.cp-box:focus-within { border-color: var(--line-gold); box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.08), 0 16px 40px rgba(0, 0, 0, 0.35); }
.cp-box textarea { width: 100%; background: transparent; border: 0; outline: 0; resize: none; font-size: 14.5px; line-height: 1.55; color: var(--tx-1); min-height: 26px; max-height: 180px; }
.cp-box textarea::placeholder { color: var(--tx-4); }
.cp-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cp-param { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--tx-3); font-size: 12px; font-weight: 600; cursor: pointer; }
.cp-param svg { width: 14px; height: 14px; color: var(--gold-400); }
.cp-param select { appearance: none; background: transparent; border: 0; outline: 0; color: var(--tx-2); font-weight: 700; font-size: 12px; cursor: pointer; }
.cp-param select option { background: var(--bg-3); }
.cp-count { margin-left: auto; font-size: 11.5px; color: var(--tx-4); font-variant-numeric: tabular-nums; }
.cp-send { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(90deg, #FF7A1A, #FF4D00); box-shadow: var(--shadow-gold); transition: var(--t-fast); }
.cp-send svg { width: 17px; height: 17px; }
.cp-send:hover { transform: translateY(-1px); }
.cp-send[disabled] { opacity: 0.35; box-shadow: none; cursor: default; transform: none; }

/* Panneau « Média généré » */
.cp-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: rgba(8, 11, 19, 0.6); }
.cp-side-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cp-side-head strong { display: block; font-size: 14px; }
.cp-side-head small { font-size: 11.5px; color: var(--tx-4); }
.cp-side-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); color: #fff; }
.cp-side-ico svg { width: 17px; height: 17px; }
.cp-side-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cp-side-foot { padding: 14px; border-top: 1px solid var(--line); }
.cp-media-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.cp-media-item.playable { cursor: pointer; }
.cp-media-item.playable:hover { border-color: var(--line-gold); }
.cp-media-thumb { position: relative; width: 64px; height: 64px; border-radius: 9px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 106, 26, 0.18), var(--bg-4)); color: var(--gold-400); }
.cp-media-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-media-thumb .badge { position: absolute; left: 4px; bottom: 4px; font-size: 9.5px; padding: 1px 6px; }
.cp-media-meta { min-width: 0; flex: 1; }
.cp-media-meta strong { display: block; font-size: 12.5px; }
.cp-media-meta small { font-size: 11px; color: var(--tx-4); }
.cp-media-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 10px; color: var(--tx-4); }
.cp-media-empty svg { width: 28px; height: 28px; opacity: 0.7; }
.cp-media-empty strong { color: var(--tx-2); font-size: 13px; }
.cp-media-empty small { font-size: 12px; line-height: 1.5; }

@media (max-width: 1280px) {
  .chat-page { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 1100px) {
  .chat-page { grid-template-columns: 1fr; }
  .cp-side { display: none; }
}
@media (max-width: 760px) {
  .cp-sugg { grid-template-columns: 1fr; }
  .cp-msgs, .cp-composer, .cp-head { padding-left: 14px; padding-right: 14px; }
  .cp-scenes li { grid-template-columns: 1fr; }
}

/* =====================================================================
   v7 — ORANGE FRANC, ONBOARDING, CHATS ÉPINGLÉS, PETITS PLUS
   ===================================================================== */
.side-new { height: 46px; font-size: 14.5px; border-radius: 12px; letter-spacing: 0.01em; }
.kpi-ico:not(.cyan):not(.emerald):not(.purple) { background: linear-gradient(145deg, #FF8A3D, #FF5C0A 55%, #F04800); color: #fff; border-color: rgba(255, 170, 110, 0.35); box-shadow: 0 8px 18px -8px rgba(255, 77, 0, 0.7); }
.welcome h1 span { background: linear-gradient(90deg, #FF9A4D, #FF4D00); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barre latérale : recherche + épingles */
.cr-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 32px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); transition: var(--t-fast); }
.cr-search:focus-within { border-color: var(--line-gold); }
.cr-search svg { width: 14px; height: 14px; color: var(--tx-4); }
.cr-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 12.5px; color: var(--tx-1); }
.cr-item { position: relative; }
.cr-pin { display: none; width: 22px; height: 22px; border-radius: 6px; place-items: center; color: var(--tx-4); margin-left: -2px; }
.cr-pin svg { width: 13px !important; height: 13px !important; }
.cr-pin:hover { color: var(--gold-400); background: rgba(148, 163, 184, 0.1); }
.cr-item:hover .cr-pin { display: grid; }
.cr-item:hover time { display: none; }
.cr-item.pinned > svg:first-child { color: var(--gold-400); }
.cr-item.pinned .cr-pin { color: var(--gold-400); }
.cr-row.pinned { background: linear-gradient(90deg, rgba(255, 92, 10, 0.06), transparent 40%); }
.pin-flag { display: inline-grid; vertical-align: -2px; margin-right: 6px; color: var(--gold-400); }
.pin-flag svg { width: 13px; height: 13px; }
.icon-btn.on { color: var(--gold-400); }

/* FAB Héphaïstos (dans la documentation) */
.fab.fab-hepha:hover { border-color: var(--gold-500); }
.fab.fab-hepha small { color: var(--gold-400); }

/* Chat : guides utiles + copier une réponse */
.cp-docs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.msg-copy { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--tx-4); opacity: 0; transition: var(--t-fast); }
.msg-copy svg { width: 13px; height: 13px; }
.msg:hover .msg-copy { opacity: 1; }
.msg-copy:hover { color: var(--gold-400); background: rgba(148, 163, 184, 0.08); }

/* Raccourcis clavier */
.kbd-list { display: flex; flex-direction: column; }
.kbd-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--tx-2); }
.kbd-list > div:last-child { border-bottom: 0; }
.kbd-list kbd { font-size: 11.5px; padding: 3px 8px; }

/* ---------- Onboarding : écran d'accueil */
.onb-welcome { z-index: 300; }
.onb-card { width: 100%; max-width: 620px; padding: 34px 36px 30px; border-radius: var(--r-2xl); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(500px 260px at 50% -10%, rgba(255, 92, 10, 0.22), transparent 70%), radial-gradient(600px 300px at 100% 110%, rgba(59, 130, 246, 0.16), transparent 70%), linear-gradient(160deg, #111b31, #0a0f1c);
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8); animation: viewIn 420ms var(--ease); }
.onb-team { display: flex; justify-content: center; align-items: flex-end; margin: -6px 0 14px; }
.onb-team img { height: 104px; width: auto; margin: 0 -10px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); animation: onbPop 600ms var(--ease) both; }
@keyframes onbPop { from { opacity: 0; transform: translateY(18px) scale(0.9); } to { opacity: 1; transform: none; } }
.onb-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.onb-card h2 span { background: linear-gradient(90deg, #FF9A4D, #FF4D00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onb-card > p { color: var(--tx-3); font-size: 14.5px; margin: 10px auto 0; max-width: 500px; }
.onb-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 24px; }
.onb-who > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-md); background: rgba(148, 163, 184, 0.05); border: 1px solid var(--line); }
.onb-who .g-medal { width: 40px; height: 40px; margin-bottom: 4px; }
.onb-who strong { font-size: 13px; }
.onb-who small { font-size: 11.5px; color: var(--tx-4); }

/* ---------- Onboarding : visite guidée */
.onb-tour { position: fixed; inset: 0; z-index: 310; }
.onb-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(3, 6, 12, 0.74), 0 0 0 2px var(--gold-500), 0 0 30px 4px rgba(255, 92, 10, 0.45); transition: all 380ms var(--ease); pointer-events: none; }
.onb-pop { position: fixed; width: 330px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, #121c33, #0b1120); border: 1px solid var(--line-gold); box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8); transition: top 380ms var(--ease), left 380ms var(--ease); }
.onb-pop-head { display: flex; align-items: center; gap: 12px; }
.onb-pop-head img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.onb-pop-head small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); }
.onb-pop-head strong { display: block; font-size: 16px; font-weight: 800; }
.onb-pop p { font-size: 13.5px; color: var(--tx-2); line-height: 1.6; margin-top: 10px; }
.onb-pop-foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.onb-dots { display: flex; gap: 4px; margin-right: auto; }
.onb-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(148, 163, 184, 0.3); transition: var(--t-fast); }
.onb-dots i.on { width: 18px; border-radius: 4px; background: var(--gold-500); }

/* ---------- Onboarding : « Bien démarrer » */
.onb-check { padding: 20px 22px; background: linear-gradient(150deg, rgba(20, 30, 52, 0.9), rgba(12, 17, 29, 0.95)); }
.onb-check-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.onb-check-title { flex: 1; min-width: 260px; }
.onb-check-title h3 { font-size: 17px; font-weight: 800; margin-top: 6px; }
.onb-check-title p { font-size: 12.5px; color: var(--tx-4); margin-top: 2px; }
.onb-check-bar { display: flex; align-items: center; gap: 10px; width: 220px; }
.onb-check-bar .bar { flex: 1; }
.onb-check-bar small { font-size: 12px; font-weight: 800; color: var(--gold-400); }
.onb-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.onb-task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); text-align: left; transition: var(--t-fast); }
.onb-task:hover { border-color: var(--line-gold); transform: translateY(-1px); }
.onb-task .g-medal { width: 36px; height: 36px; flex-shrink: 0; }
.onb-task > span:nth-child(2) { flex: 1; min-width: 0; }
.onb-task strong { display: block; font-size: 13px; }
.onb-task small { display: block; font-size: 11.5px; color: var(--tx-4); line-height: 1.4; }
.onb-tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--tx-4); flex-shrink: 0; }
.onb-tick svg { width: 14px; height: 14px; }
.onb-task.done { opacity: 0.6; }
.onb-task.done strong { text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.5); }
.onb-task.done .onb-tick { background: linear-gradient(145deg, #FF8A3D, #FF4D00); border-color: transparent; color: #fff; }
@media (max-width: 1100px) { .onb-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .onb-tasks { grid-template-columns: 1fr; } .onb-who { grid-template-columns: repeat(2, 1fr); } .top-help span { display: none; } }
