/* ============================================================
   RENFORA — La Régie · système design « Le Bureau » (handoff Claude Design)
   = bureau.css + components.css (verbatim) ; polices self-hébergées (RGPD/UE).
   ============================================================ */
/* Oswald (titres condensés) */
@font-face{font-family:'Oswald';font-style:normal;font-weight:400 700;font-display:swap;src:url(/regie/fonts/oswald-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Oswald';font-style:normal;font-weight:400 700;font-display:swap;src:url(/regie/fonts/oswald-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Hanken Grotesk (corps) */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;src:url(/regie/fonts/hanken-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;src:url(/regie/fonts/hanken-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* JetBrains Mono (labels) */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500 700;font-display:swap;src:url(/regie/fonts/jbmono-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500 700;font-display:swap;src:url(/regie/fonts/jbmono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ============================================================
   RENFORA — Le Bureau (cockpit unifié multi-agents)
   ADN : Direction D (Doctrine) — Oswald / Hanken Grotesk / JetBrains Mono
   Tokens pilotés par les Tweaks : accent, densité, thème, titres.
   ============================================================ */

:root {
  /* accent (piloté par tweak) — bleu Renfora par défaut */
  --accent: #2E6BB2;
  --accent-deep: color-mix(in srgb, var(--accent), #081a30 42%);
  --accent-soft: color-mix(in srgb, var(--accent), white 32%);
  --accent-pale: color-mix(in srgb, var(--accent), white 82%);
  --accent-mist: color-mix(in srgb, var(--accent), white 93%);
  --accent-ink:  color-mix(in srgb, var(--accent), #07182c 22%);

  /* neutres — light */
  --bg:       #EAEFF6;
  --bg-2:     #E1E8F2;
  --card:     #FFFFFF;
  --card-2:   #F7F9FC;
  --navy:     #0F1D30;
  --navy-2:   #16273E;
  --ink:      #14273E;
  --body:     #4E657F;
  --faint:    #8497AE;
  --line:     #DCE4F0;
  --line-2:   #C6D2E4;

  --ok:       #1F8A5B;
  --ok-pale:  color-mix(in srgb, var(--ok), white 84%);
  --warn:     #B7791F;
  --warn-pale:color-mix(in srgb, var(--warn), white 84%);
  --bad:      #C0394B;
  --bad-pale: color-mix(in srgb, var(--bad), white 86%);

  /* type */
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* densité (piloté par tweak) */
  --gap: 20px;
  --pad: 22px;
  --row: 13px;
  --fs: 15px;

  --r:    13px;
  --r-lg: 18px;
  --r-sm: 9px;
  --sidebar: 252px;
  --topbar: 60px;

  --shadow-xs: 0 1px 2px rgba(20,39,62,0.05);
  --shadow-card: 0 1px 2px rgba(20,39,62,0.04), 0 12px 34px -22px rgba(20,39,62,0.30);
  --shadow-pop: 0 26px 64px -24px rgba(15,29,48,0.42);
  --ring: 0 0 0 3px var(--accent-pale);
}

/* ---- Densité ---- */
[data-density="compact"] {
  --gap: 13px; --pad: 15px; --row: 9px; --fs: 14px; --r: 11px; --r-lg: 15px;
  --sidebar: 232px; --topbar: 54px;
}
[data-density="comfy"] {
  --gap: 26px; --pad: 28px; --row: 16px; --fs: 15.5px; --r: 15px; --r-lg: 20px;
  --sidebar: 268px;
}

/* ---- Titres en sans (tweak) ---- */
[data-title="sans"] { --cond: "Hanken Grotesk", system-ui, sans-serif; }
[data-title="sans"] .h-cond { letter-spacing: -0.02em !important; text-transform: none !important; font-weight: 800 !important; }

/* ---- Thème sombre ---- */
[data-theme="dark"] {
  --bg:     #0B1521;
  --bg-2:   #0E1A29;
  --card:   #13202F;
  --card-2: #16263A;
  --navy:   #0A131F;
  --navy-2: #12202F;
  --ink:    #EAF1FB;
  --body:   #9FB2C9;
  --faint:  #6E84A0;
  --line:   #21344B;
  --line-2: #2C435F;
  --accent-pale: color-mix(in srgb, var(--accent), #0b1827 72%);
  --accent-mist: color-mix(in srgb, var(--accent), #0b1827 84%);
  --ok-pale:  color-mix(in srgb, var(--ok), #0b1827 74%);
  --warn-pale:color-mix(in srgb, var(--warn), #0b1827 76%);
  --bad-pale: color-mix(in srgb, var(--bad), #0b1827 78%);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.30), 0 14px 34px -22px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
::selection { background: var(--accent); color: #fff; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.mono { font-family: var(--mono); }
.h-cond { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; }
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--faint); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   APP SHELL
   ============================================================ */
#app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); min-height: 100vh; }

/* ---------- Sidebar ---------- */
.side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  background: var(--navy);
  color: #C9D6E8;
  display: flex; flex-direction: column;
  border-right: 1px solid color-mix(in srgb, var(--navy), white 8%);
  z-index: 40;
}
.side-top { padding: 18px 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 13px; height: 13px; background: var(--accent-soft); transform: rotate(45deg); flex-shrink: 0; }
.brand .bn { font-family: var(--cond); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; }
.brand .pj {
  margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-soft), transparent 60%);
  padding: 3px 7px; border-radius: 99px;
}

.side-org {
  margin: 6px 12px 4px; padding: 11px 12px; border-radius: var(--r);
  background: color-mix(in srgb, var(--navy), white 6%);
  display: flex; align-items: center; gap: 11px;
}
.side-org .logo {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; overflow: hidden;
  background: color-mix(in srgb, var(--navy), white 12%); display: grid; place-items: center;
  font-family: var(--cond); font-weight: 700; color: #fff; font-size: 15px;
}
.side-org .oi { min-width: 0; line-height: 1.2; }
.side-org .oi b { display: block; font-size: 13.5px; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-org .oi span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #8DA0B8; }

.nav-scroll { flex: 1; overflow-y: auto; padding: 10px 12px 8px; }
.nav-group { margin-bottom: 6px; }
.nav-lbl {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: #6E84A0; padding: 12px 12px 6px;
}
.nav-i {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: #B7C6DB; font-size: 14px; font-weight: 600; transition: 0.13s; position: relative;
  white-space: nowrap; overflow: hidden;
}
.nav-i svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.nav-i:hover { background: color-mix(in srgb, var(--navy), white 7%); color: #fff; }
.nav-i.on { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.nav-i.on svg { opacity: 1; }
.nav-i .ct {
  margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 700;
  background: color-mix(in srgb, var(--navy), white 12%); color: #C9D6E8;
  min-width: 20px; text-align: center; padding: 2px 6px; border-radius: 99px;
}
.nav-i.on .ct { background: rgba(255,255,255,0.22); color: #fff; }
.nav-i .ct.alert { background: var(--bad); color: #fff; }

/* agents mini-list in sidebar */
.side-agents { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 4px; }
.sa {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 12px; border-radius: 9px; background: transparent; border: 0; color: #AEBFD5;
  font-size: 13px; font-weight: 600; transition: 0.12s;
}
.sa:hover { background: color-mix(in srgb, var(--navy), white 7%); color: #fff; }
.sa.on { background: color-mix(in srgb, var(--navy), white 9%); color: #fff; }
.sa .av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: color-mix(in srgb, var(--navy), white 14%); }
.sa .av image-slot { width: 26px; height: 26px; display: block; }
.sa .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa .st { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.st-live { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok), transparent 78%); }
.st-essai { background: var(--accent-soft); }
.st-valid { background: var(--warn); }
.st-prep { background: var(--faint); }
.st-pause { background: #6E84A0; }

.side-foot { padding: 10px 12px 14px; border-top: 1px solid color-mix(in srgb, var(--navy), white 8%); }
.trial-chip {
  display: block; padding: 11px 13px; border-radius: var(--r);
  background: linear-gradient(180deg, color-mix(in srgb,var(--accent),transparent 86%), transparent);
  border: 1px solid color-mix(in srgb, var(--accent-soft), transparent 66%);
}
.trial-chip .tt { display: flex; align-items: center; justify-content: space-between; }
.trial-chip .tt b { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.trial-chip .tt span { font-size: 12.5px; font-weight: 700; color: #fff; }
.trial-chip .bar { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--navy), white 12%); margin: 8px 0 7px; overflow: hidden; }
.trial-chip .bar i { display: block; height: 100%; background: var(--accent-soft); border-radius: 99px; }
.trial-chip p { font-size: 11.5px; color: #8DA0B8; line-height: 1.4; }
.trial-chip a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.side-acct { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 4px 0; }
.side-acct .ava { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--navy), white 14%); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.side-acct .ai { min-width: 0; line-height: 1.2; }
.side-acct .ai b { display: block; font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-acct .ai span { font-size: 11px; color: #8DA0B8; }
.side-acct .gear { margin-left: auto; color: #8DA0B8; padding: 6px; border-radius: 8px; background: transparent; border: 0; }
.side-acct .gear:hover { color: #fff; background: color-mix(in srgb, var(--navy), white 8%); }

/* ---------- Main column ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 35; height: var(--topbar);
  display: flex; align-items: center; gap: 16px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg), white 40%);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .topbar { background: color-mix(in srgb, var(--bg), black 30%); }
.crumb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
.crumb b { color: var(--ink); }
.crumb svg { width: 13px; height: 13px; opacity: 0.6; }
.tb-search {
  display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 13px; width: 270px; color: var(--faint); font-size: 13px;
}
.tb-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.tb-search input { border: 0; background: transparent; outline: none; color: var(--ink); font-size: 13px; font-weight: 500; width: 100%; }
.tb-search .k { margin-left: auto; font-family: var(--mono); font-size: 9.5px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--faint); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--body); transition: 0.14s; position: relative; }
.tb-btn:hover { color: var(--accent); border-color: var(--line-2); }
.tb-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); border: 1.5px solid var(--card); }
.tb-saved { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--faint); display: inline-flex; align-items: center; gap: 7px; }
.tb-saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.content { flex: 1; padding: 30px 34px 90px; }
.content-in { max-width: 1180px; margin: 0 auto; }
[data-density="compact"] .content { padding: 22px 24px 80px; }

/* page header */
.ph { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.ph .pt { min-width: 0; }
.ph .eyebrow { display: block; margin-bottom: 9px; }
.ph h1 { font-family: var(--cond); font-weight: 600; font-size: 38px; text-transform: uppercase; letter-spacing: 0.006em; line-height: 0.98; color: var(--ink); }
.ph h1 .sub { color: var(--faint); }
.ph p.lede { font-size: 15px; color: var(--body); margin-top: 12px; max-width: 60ch; text-wrap: pretty; }
.ph .ph-act { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ============================================================
   PRIMITIVES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 10px; font-size: 14px; font-weight: 700; padding: 11px 18px; border: 1px solid transparent; transition: 0.15s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -14px var(--accent); }
.btn.primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--body); border-color: var(--line-2); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.card-pad { padding: var(--pad); }

.tag {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-2); color: var(--body); border: 1px solid var(--line);
}
.tag.accent { background: var(--accent-pale); color: var(--accent-ink); border-color: transparent; }
.tag.ok { background: var(--ok-pale); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-pale); color: var(--warn); border-color: transparent; }
.tag.bad { background: var(--bad-pale); color: var(--bad); border-color: transparent; }
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.live .d { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.statepill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.sp-live { background: var(--ok-pale); color: var(--ok); }
.sp-essai { background: var(--accent-pale); color: var(--accent-ink); }
.sp-valid { background: var(--warn-pale); color: var(--warn); }
.sp-prep { background: var(--bg-2); color: var(--faint); }
.sp-pause { background: var(--bg-2); color: var(--body); }
.statepill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-live .d { animation: blink 1.6s infinite; }

hr.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* avatar */
.avatar { border-radius: 50%; overflow: hidden; background: var(--bg-2); flex-shrink: 0; border: 2px solid var(--accent-pale); }
.avatar image-slot { display: block; width: 100%; height: 100%; }

/* tidy image-slot empty state — hide the drop caption on small avatars, keep clean filled circles */
image-slot::part(ring) { border-width: 1px; }
.sa .av image-slot::part(empty), .decision .who image-slot::part(empty),
table.tbl .who2 .a image-slot::part(empty), .roster .rava image-slot::part(empty),
.agent-card .ac-av image-slot::part(empty), .minifiche image-slot::part(empty) { opacity: 0; }

/* section title within page */
.block-h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.block-h h2 { font-family: var(--cond); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.block-h .line { flex: 1; height: 1px; background: var(--line); }
.block-h .more { font-size: 12.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.block-h .more svg { width: 14px; height: 14px; }
/* ============================================================
   RENFORA — Le Bureau · composants des pages
   ============================================================ */

/* ===================== AGENT DETAIL ===================== */
.agent-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.agent-hero .aha { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 3px solid var(--accent-pale); flex-shrink: 0; }
.agent-hero .aha image-slot { display: block; width: 100%; height: 100%; }
.agent-hero .ahi { min-width: 0; }
.agent-hero .ahi h1 { font-family: var(--cond); font-weight: 600; font-size: 36px; text-transform: uppercase; line-height: 0.98; color: var(--ink); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.agent-hero .ahi .role { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.agent-hero .ahi .role b { color: var(--body); }
.agent-hero .ah-act { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }

.validate-banner { display: flex; align-items: center; gap: 15px; background: linear-gradient(120deg, var(--warn-pale), transparent); border: 1px solid color-mix(in srgb, var(--warn), transparent 60%); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 22px; }
.validate-banner .vb-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--warn); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.validate-banner .vb-t b { font-size: 15px; font-weight: 700; color: var(--ink); display: block; }
.validate-banner .vb-t span { font-size: 13px; color: var(--body); }
.validate-banner .btn { margin-left: auto; flex-shrink: 0; }

.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--gap); align-items: start; }
@media (max-width: 1000px){ .detail-grid { grid-template-columns: 1fr; } }
.detail-side { position: sticky; top: calc(var(--topbar) + 20px); display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 1000px){ .detail-side { position: static; } }

/* activity feed */
.call { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-xs); padding: 15px 17px; margin-bottom: 12px; }
.call-h { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.call-h .ci { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.call-h .ci.in { background: var(--accent-pale); color: var(--accent-ink); }
.call-h .ci.esc { background: var(--warn-pale); color: var(--warn); }
.call-h .ct { min-width: 0; flex: 1; }
.call-h .ct b { font-size: 14px; font-weight: 700; color: var(--ink); }
.call-h .ct span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.call-recap { display: flex; flex-wrap: wrap; gap: 7px; }
.call-recap .rc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--body); background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
.call-recap .rc svg { width: 13px; height: 13px; color: var(--ok); }
.call-recap .rc.blue { background: var(--accent-pale); color: var(--accent-ink); border-color: transparent; }

/* fiche definition list */
.spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: var(--gap); }
.spec-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec-h h3 { font-family: var(--cond); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.spec-h .edit { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.spec-h .edit svg { width: 13px; height: 13px; }
.spec-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
.spec-row dd { font-size: 14px; font-weight: 600; color: var(--ink); }
.spec-row dd .pill { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; background: var(--accent-pale); color: var(--accent-ink); padding: 2px 8px; border-radius: 5px; margin: 2px 4px 2px 0; }
.spec-body { padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.spec-body.quote { font-style: italic; background: var(--accent-mist); border-left: 2px solid var(--accent-soft); }

.interdit { display: flex; align-items: flex-start; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.interdit:last-child { border-bottom: 0; }
.interdit .ck { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; }
.interdit.on .ck { background: var(--accent); color: #fff; } .interdit.off .ck { background: var(--bg-2); color: var(--faint); border: 1px solid var(--line); }
.interdit .ck svg { width: 12px; height: 12px; }
.interdit .it b { font-size: 13.5px; font-weight: 700; color: var(--ink); display: block; }
.interdit .it span { font-size: 12.5px; color: var(--body); }
.interdit.off .it b { color: var(--faint); }

/* carnet (journal) */
.carnet { position: relative; padding-left: 4px; }
.carnet-e { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.carnet-e .cw { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--faint); text-align: right; padding-top: 14px; }
.carnet-e .cc { padding: 13px 0 16px 22px; border-left: 1px solid var(--line); position: relative; }
.carnet-e:last-child .cc { border-left-color: transparent; }
.carnet-e .cc::before { content: ""; position: absolute; left: -5px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale); }
.carnet-e.sys .cc::before { background: var(--faint); box-shadow: 0 0 0 4px var(--bg-2); }
.carnet-e .ce-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.carnet-e .ce-d { font-size: 13px; color: var(--body); margin-top: 3px; line-height: 1.5; }
.carnet-e .ce-by { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

/* side mini-fiche */
.minifiche { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.minifiche-top { padding: 16px 18px; background: linear-gradient(180deg, var(--accent-mist), transparent); border-bottom: 1px solid var(--line); }
.minifiche-top .mt-k { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.minifiche .progress-lbl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--body); padding: 14px 18px 7px; }
.minifiche .progress-lbl span:last-child { font-family: var(--mono); color: var(--accent); }
.minifiche .pbar { height: 6px; border-radius: 99px; background: var(--accent-pale); margin: 0 18px 16px; overflow: hidden; }
.minifiche .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ===================== BANC D'ESSAI ===================== */
.bench { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-pop); position: relative; }
.bench::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-conic-gradient(from 200deg at 102% 4%, rgba(255,255,255,0.04) 0deg 1.4deg, transparent 1.4deg 8deg); -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 68%); mask-image: radial-gradient(circle at 100% 0, #000, transparent 68%); }
.bench > * { position: relative; }
.bench-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid rgba(173,189,211,0.16); }
.bench-head .ba { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.18); background: #1a2c44; }
.bench-head .ba image-slot { display: block; width: 100%; height: 100%; }
.bench-head .bi b { font-size: 16px; font-weight: 800; display: block; }
.bench-head .bi span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-soft); }
.bench-head .sim { margin-left: auto; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ADBDD3; border: 1px solid rgba(173,189,211,0.3); padding: 5px 10px; border-radius: 99px; }
.bench-stage { padding: 22px; min-height: 280px; display: flex; flex-direction: column; }
.bench-idle { text-align: center; margin: auto 0; }
.bench-idle .orb { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; position: relative; background: radial-gradient(circle at 50% 40%, var(--accent-soft), var(--accent) 65%); display: grid; place-items: center; }
.bench-idle .orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent-soft); opacity: 0.5; animation: orbpulse 2.6s ease-out infinite; }
@keyframes orbpulse { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.bench-idle .orb svg { width: 34px; height: 34px; color: #fff; }
.bench-idle h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.bench-idle p { font-size: 13.5px; color: #ADBDD3; max-width: 40ch; margin: 0 auto 20px; line-height: 1.55; }
.bench-call { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; padding: 14px 28px; transition: 0.16s; box-shadow: 0 14px 30px -12px var(--accent); }
.bench-call:hover { background: var(--accent-soft); transform: translateY(-1px); }
.bench-call.hangup { background: var(--bad); box-shadow: none; }
.bench-live { display: flex; flex-direction: column; gap: 14px; }
.call-meta { display: flex; align-items: center; gap: 12px; }
.call-timer { font-family: var(--mono); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.call-timer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ED38A; animation: blink 1.4s infinite; }
.call-who { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #ADBDD3; }
.transcript { display: flex; flex-direction: column; gap: 9px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.t-line { display: flex; gap: 9px; align-items: flex-start; animation: tin 0.3s ease; max-width: 92%; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }
.t-line.agent { align-self: flex-start; }
.t-line.client { align-self: flex-end; flex-direction: row-reverse; }
.t-line .av { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; width: 28px; flex-shrink: 0; padding-top: 9px; }
.t-line.agent .av { color: var(--accent-soft); } .t-line.client .av { color: #8DA0B8; text-align: right; }
.t-line .bub { padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.t-line.agent .bub { background: rgba(111,163,232,0.15); border: 1px solid rgba(111,163,232,0.25); border-bottom-left-radius: 4px; color: #EAF1FB; }
.t-line.client .bub { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-bottom-right-radius: 4px; color: #D3DEEC; }
.bench-compose { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid rgba(173,189,211,0.16); }
.bench-compose input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(173,189,211,0.2); border-radius: 10px; padding: 11px 14px; color: #fff; font-size: 13.5px; }
.bench-compose input::placeholder { color: #7E93AE; }
.bench-compose input:focus { outline: none; border-color: var(--accent-soft); }
.bench-compose .s { width: 42px; flex-shrink: 0; background: var(--accent); color: #fff; border: 0; border-radius: 10px; display: grid; place-items: center; }

/* ===================== EMBAUCHER (wizard compact) ===================== */
.wiz-steps { display: flex; align-items: center; gap: 0; max-width: 620px; margin: 0 0 28px; }
.wiz-step { display: flex; align-items: center; gap: 9px; }
.wiz-step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--card); color: var(--faint); border: 1.5px solid var(--line-2); transition: 0.18s; }
.wiz-step.on .n { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--ring); }
.wiz-step.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.wiz-step .wl { font-size: 12.5px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.wiz-step.on .wl { color: var(--ink); }
.wiz-bar { flex: 1; height: 2px; background: var(--line-2); margin: 0 12px; border-radius: 2px; min-width: 24px; }
.wiz-bar.done { background: var(--ok); }
@media (max-width: 720px){ .wiz-step .wl { display: none; } }
.poste-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 820px){ .poste-grid { grid-template-columns: repeat(2,1fr); } }
.poste { text-align: left; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: 16px; transition: 0.14s; position: relative; }
.poste:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.poste.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-card); }
.poste .pu { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.poste .pn { display: block; font-size: 16px; font-weight: 800; color: var(--ink); margin: 9px 0 5px; }
.poste .pd { font-size: 12.5px; color: var(--body); line-height: 1.45; }
.opt-grid { display: grid; gap: 10px; }
.opt-grid.c2 { grid-template-columns: 1fr 1fr; }
.opt { text-align: left; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 12px 14px; transition: 0.14s; }
.opt:hover { border-color: var(--accent-soft); background: var(--accent-mist); }
.opt.on { border-color: var(--accent); background: var(--accent-pale); box-shadow: 0 0 0 1px var(--accent); }
.opt .ot { font-size: 14px; font-weight: 700; color: var(--ink); }
.opt .od { font-size: 12px; color: var(--body); }
.launch-card { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-pop); }
.launch-card .free { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(78,211,138,0.18); color: #4ED38A; padding: 5px 11px; border-radius: 99px; display: inline-block; margin-bottom: 12px; }
.launch-card h3 { font-family: var(--cond); font-weight: 600; font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.launch-card p { font-size: 14px; color: #ADBDD3; line-height: 1.55; margin-bottom: 18px; }
.launch-card .launch-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: var(--navy); border: 0; border-radius: 12px; font-size: 15.5px; font-weight: 800; padding: 15px; }
.launch-card .launch-btn:hover { background: var(--accent-pale); }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ===================== STATEBAR ===================== */
.statebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.stat .sk { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.stat .sk svg { width: 14px; height: 14px; color: var(--accent); }
.stat .sv { font-family: var(--cond); font-weight: 600; font-size: 38px; line-height: 1; color: var(--ink); margin: 9px 0 3px; }
.stat .sv small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--faint); }
.stat .sd { font-size: 12px; color: var(--body); }
.stat .sd b { color: var(--ok); font-weight: 700; }
.stat .sd b.warn { color: var(--warn); }
.stat.accent { background: linear-gradient(160deg, var(--accent), var(--accent-deep)); border-color: transparent; }
.stat.accent .sk { color: rgba(255,255,255,0.82); } .stat.accent .sk svg { color: #fff; }
.stat.accent .sv { color: #fff; } .stat.accent .sv small { color: rgba(255,255,255,0.7); }
.stat.accent .sd { color: rgba(255,255,255,0.85); } .stat.accent .sd b { color: #fff; }
.stat .spark { position: absolute; right: 14px; bottom: 12px; display: flex; align-items: flex-end; gap: 2.5px; height: 28px; opacity: 0.9; }
.stat .spark i { width: 4px; border-radius: 2px; background: var(--accent-pale); }
.stat.accent .spark i { background: rgba(255,255,255,0.3); }

/* ===================== DASHBOARD GRID ===================== */
.dash { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: var(--gap); align-items: start; }
@media (max-width: 1140px) { .dash { grid-template-columns: 1fr; } }
.dash-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.dash-side { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: calc(var(--topbar) + 22px); }
@media (max-width: 1140px) { .dash-side { position: static; } }

/* ---- Digest / décisions ---- */
.digest { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.digest-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.digest-h .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-pale); color: var(--accent-ink); display: grid; place-items: center; }
.digest-h .ic svg { width: 18px; height: 18px; }
.digest-h h2 { font-family: var(--cond); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); }
.digest-h p { font-size: 12px; color: var(--body); }
.digest-h .n { margin-left: auto; }
.decision {
  display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 14px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line); transition: 0.12s; text-align: left; width: 100%; background: transparent; border-left: 3px solid transparent;
}
.decision:last-child { border-bottom: 0; }
.decision:hover { background: var(--card-2); border-left-color: var(--accent); }
.decision .who { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 1.5px solid var(--accent-pale); }
.decision .who image-slot { display: block; width: 100%; height: 100%; }
.decision .who.sys { display: grid; place-items: center; color: var(--accent); background: var(--accent-pale); border-color: transparent; }
.decision .who.sys svg { width: 18px; height: 18px; }
.decision .dx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.decision .dx .dt { font-size: 14px; font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.decision .dx .dt .nm { color: var(--accent); }
.decision .dx .dd { font-size: 12.5px; color: var(--body); margin-top: 1px; }
.decision .dx .dd .when { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.decision .go { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent); flex-shrink: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.decision:hover .go { border-color: var(--accent); }
.decision .go svg { width: 14px; height: 14px; }
.decision.urgent .who { border-color: var(--bad); }
.decision.urgent .go { color: var(--bad); }
.decision.urgent:hover { border-left-color: var(--bad); }
.digest-empty { padding: 26px 20px; text-align: center; color: var(--body); font-size: 13px; }
.digest-empty .c { width: 42px; height: 42px; border-radius: 50%; background: var(--ok-pale); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }

/* ===================== AGENT CARDS ===================== */
.agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
[data-cards="grid3"] .agents-grid { grid-template-columns: repeat(3, 1fr); }
[data-cards="list"] .agents-grid { grid-template-columns: 1fr; }
[data-cards="bento"] .agents-grid { grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; }
[data-cards="bento"] .agent-card:nth-child(1) { grid-column: span 4; }
[data-cards="bento"] .agent-card:nth-child(2) { grid-column: span 2; }
[data-cards="bento"] .agent-card:nth-child(3) { grid-column: span 2; }
[data-cards="bento"] .agent-card:nth-child(4) { grid-column: span 4; }
[data-cards="bento"] .agent-card:nth-child(5) { grid-column: span 3; }
[data-cards="bento"] .agent-card.hire { grid-column: span 3; }

.agent-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column;
  transition: 0.16s; position: relative; text-align: left; cursor: pointer;
}
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--line-2); }
.agent-card .ac-top { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px 13px; flex-wrap: wrap; }
.agent-card .ac-av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 2px solid var(--accent-pale); flex-shrink: 0; }
.agent-card .ac-av image-slot { display: block; width: 100%; height: 100%; }
.agent-card .ac-id { min-width: 0; flex: 1 1 110px; }
.agent-card .ac-id b { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-card .ac-id .role { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.agent-card .ac-top .statepill { flex-shrink: 0; }
.agent-card .ac-body { padding: 0 18px 14px; flex: 1; }
.agent-card .ac-phrase { font-size: 13px; font-style: italic; color: var(--body); line-height: 1.45; border-left: 2px solid var(--accent-soft); padding-left: 11px; margin-bottom: 13px; }
.agent-card .ac-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.agent-card .ac-stat { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; flex: 1; min-width: 0; }
.agent-card .ac-stat .v { font-family: var(--cond); font-weight: 600; font-size: 20px; color: var(--ink); line-height: 1; }
.agent-card .ac-stat .l { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.agent-card .ac-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--card-2); }
.agent-card .ac-foot .micro { font-size: 12px; color: var(--body); display: inline-flex; align-items: center; gap: 6px; }
.agent-card .ac-foot .micro svg { width: 13px; height: 13px; color: var(--accent); }
.agent-card .ac-foot .open { margin-left: auto; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.agent-card .ac-foot .open svg { width: 15px; height: 15px; transition: transform 0.15s; }
.agent-card:hover .ac-foot .open svg { transform: translateX(3px); }
.agent-card .strip { height: 3px; background: var(--accent); }
.agent-card.s-essai .strip { background: var(--accent-soft); }
.agent-card.s-valid .strip { background: var(--warn); }
.agent-card.s-prep .strip { background: var(--line-2); }
.agent-card.s-pause .strip { background: var(--faint); }

/* list layout tweak */
[data-cards="list"] .agent-card { flex-direction: row; align-items: stretch; }
[data-cards="list"] .agent-card .strip { width: 3px; height: auto; }
[data-cards="list"] .agent-card .ac-top { flex: 0 0 300px; align-items: center; }
[data-cards="list"] .agent-card .ac-body { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-left: 1px solid var(--line); }
[data-cards="list"] .agent-card .ac-phrase { margin-bottom: 0; flex: 1; }
[data-cards="list"] .agent-card .ac-foot { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; align-items: flex-end; justify-content: center; flex: 0 0 160px; background: transparent; }
@media (max-width: 760px) { [data-cards="list"] .agent-card { flex-direction: column; } [data-cards="list"] .agent-card .ac-top, [data-cards="list"] .agent-card .ac-foot { flex-basis: auto; } [data-cards="list"] .agent-card .ac-body { border-left: 0; } }

/* hire tile */
.agent-card.hire {
  border-style: dashed; border-color: var(--line-2); background: transparent; box-shadow: none;
  align-items: center; justify-content: center; text-align: center; padding: 26px; min-height: 180px;
}
.agent-card.hire:hover { border-color: var(--accent); background: var(--accent-mist); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.agent-card.hire .plus { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-pale); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; transition: 0.16s; }
.agent-card.hire:hover .plus { background: var(--accent); color: #fff; }
.agent-card.hire .plus svg { width: 24px; height: 24px; }
.agent-card.hire b { font-family: var(--cond); font-weight: 600; font-size: 20px; text-transform: uppercase; color: var(--ink); letter-spacing: 0.02em; }
.agent-card.hire p { font-size: 12.5px; color: var(--body); margin-top: 6px; max-width: 28ch; }

/* ===================== PILLARS ===================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 18px; transition: 0.15s; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
}
.pillar:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.pillar .ph-top { display: flex; align-items: center; gap: 11px; }
.pillar .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-pale); color: var(--accent-ink); display: grid; place-items: center; }
.pillar .ic svg { width: 19px; height: 19px; }
.pillar h3 { font-family: var(--cond); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); }
.pillar .big { font-family: var(--cond); font-weight: 600; font-size: 30px; line-height: 1; color: var(--ink); }
.pillar .big small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--faint); }
.pillar p { font-size: 12.5px; color: var(--body); line-height: 1.45; }
.pillar .arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.pillar .arrow svg { width: 14px; height: 14px; transition: transform 0.15s; }
.pillar:hover .arrow svg { transform: translateX(3px); }

/* ===================== SALLE (Direction B) ===================== */
.salle { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: var(--gap); align-items: start; }
@media (max-width: 1140px) { .salle { grid-template-columns: 1fr; } }
.salle-narr {
  background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r-lg);
  padding: 26px 28px; position: relative; overflow: hidden; box-shadow: var(--shadow-pop);
}
.salle-narr::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 210deg at 108% 8%, rgba(255,255,255,0.045) 0deg 1.4deg, transparent 1.4deg 7deg);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%); mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%); }
.salle-narr > * { position: relative; }
.salle-narr .eyebrow { color: var(--accent-soft); }
.salle-narr .nh { font-family: var(--cond); font-weight: 500; font-size: 30px; line-height: 1.12; text-transform: none; letter-spacing: 0; margin: 12px 0; color: #fff; }
.salle-narr .nh b { color: var(--accent-soft); font-weight: 600; }
.salle-narr .nh .u { text-decoration: underline; text-decoration-color: color-mix(in srgb,var(--accent-soft),transparent 50%); text-underline-offset: 4px; }
.salle-narr .nmeta { display: flex; gap: 26px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.salle-narr .nmeta .m b { font-family: var(--cond); font-weight: 600; font-size: 26px; color: #fff; display: block; line-height: 1; }
.salle-narr .nmeta .m span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8DA0B8; }

/* timeline (fil de la journée) */
.timeline { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 4px 0; }
.tl-h { padding: 16px 20px 12px; display: flex; align-items: center; gap: 10px; }
.tl-h h2 { font-family: var(--cond); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 0 20px; position: relative; }
.tl-item .tw { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--faint); padding-top: 14px; text-align: right; }
.tl-item .tc { padding: 13px 0; border-bottom: 1px solid var(--line); position: relative; padding-left: 22px; }
.tl-item:last-child .tc { border-bottom: 0; }
.tl-item .tc::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale); }
.tl-item.dot-ok .tc::before { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-pale); }
.tl-item.dot-warn .tc::before { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-pale); }
.tl-item .tc::after { content: ""; position: absolute; left: 4px; top: 26px; bottom: -8px; width: 1px; background: var(--line); }
.tl-item:last-child .tc::after { display: none; }
.tl-item .tl-t { font-size: 13.5px; color: var(--ink); }
.tl-item .tl-t b { font-weight: 700; }
.tl-item .tl-t .nm { color: var(--accent); font-weight: 700; }
.tl-item .tl-sub { font-size: 12px; color: var(--body); margin-top: 2px; }

/* roster */
.roster { display: flex; flex-direction: column; gap: 10px; }
.roster-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-xs); padding: 13px 15px; display: flex; align-items: center; gap: 13px; cursor: pointer; transition: 0.14s; }
.roster-card:hover { border-color: var(--accent); transform: translateX(2px); }
.roster-card .rava { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 2px solid var(--accent-pale); position: relative; flex-shrink: 0; }
.roster-card .rava image-slot { display: block; width: 100%; height: 100%; }
.roster-card .rava .pin { position: absolute; bottom: -1px; right: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--card); }
.roster-card .ri { min-width: 0; flex: 1; }
.roster-card .ri b { font-size: 14.5px; font-weight: 800; color: var(--ink); display: block; line-height: 1.1; }
.roster-card .ri span { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.roster-card .rstat { text-align: right; }
.roster-card .rstat .v { font-family: var(--cond); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1; }
.roster-card .rstat .l { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }

/* ===================== TABS ===================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 11px 16px; font-size: 14px; font-weight: 700; color: var(--body); border: 0; background: transparent; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: 0.14s; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--accent); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab .ct { font-family: var(--mono); font-size: 10px; font-weight: 700; background: var(--bg-2); padding: 1px 7px; border-radius: 99px; color: var(--body); }
.tab.on .ct { background: var(--accent-pale); color: var(--accent-ink); }

/* ===================== TABLE (livrables) ===================== */
.tbl-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.tbl-tools { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chipset { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 700; color: var(--body); background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; transition: 0.13s; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--accent); color: #fff; border-color: transparent; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
table.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: 0.1s; }
table.tbl tbody tr:hover { background: var(--card-2); }
table.tbl td .who2 { display: flex; align-items: center; gap: 9px; }
table.tbl td .who2 .a { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 1.5px solid var(--accent-pale); }
table.tbl td .who2 .a image-slot { display: block; width: 100%; height: 100%; }
table.tbl td .ttl { font-weight: 700; }
table.tbl td .desc { color: var(--body); font-size: 12.5px; }
table.tbl td.right { text-align: right; }
table.tbl td .when { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.linkic { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; font-size: 12.5px; }
.linkic svg { width: 14px; height: 14px; }

/* ===================== DOC LIST (référentiel) ===================== */
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 26px; text-align: center; background: var(--card); transition: 0.15s; margin-bottom: var(--gap); }
.dropzone:hover { border-color: var(--accent); background: var(--accent-mist); }
.dropzone .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-pale); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 12px; }
.dropzone b { font-size: 15px; font-weight: 700; color: var(--ink); }
.dropzone p { font-size: 12.5px; color: var(--body); margin-top: 4px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .doc-grid { grid-template-columns: repeat(2,1fr); } }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-xs); padding: 15px; display: flex; flex-direction: column; gap: 10px; transition: 0.14s; }
.doc:hover { border-color: var(--line-2); box-shadow: var(--shadow-card); }
.doc .dtop { display: flex; align-items: flex-start; gap: 11px; }
.doc .dfile { width: 38px; height: 44px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 8px; font-weight: 700; color: #fff; position: relative; }
.doc .dfile.pdf { background: #C0394B; } .doc .dfile.doc { background: var(--accent); } .doc .dfile.xls { background: var(--ok); } .doc .dfile.img { background: var(--warn); }
.doc .dmeta { min-width: 0; flex: 1; }
.doc .dmeta b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc .dmeta span { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.doc .duse { font-size: 12px; color: var(--body); border-top: 1px solid var(--line); padding-top: 9px; display: flex; align-items: center; gap: 7px; }
.doc .duse .tag { padding: 3px 7px; }

/* ===================== REFERENT THREAD ===================== */
.thread { display: flex; flex-direction: column; gap: 12px; }
.req { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.req-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.req-h .rn { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--faint); }
.req-h .rt { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.req-h .when { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.req-body { padding: 14px 18px; }
.msg { display: flex; gap: 11px; padding: 9px 0; }
.msg .mav { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.msg.you .mav { background: var(--bg-2); color: var(--body); }
.msg.ref .mav { background: var(--accent); color: #fff; }
.msg .mb { background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.msg.ref .mb { background: var(--accent-mist); border-color: transparent; }
.msg .mn { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }

/* ===================== REGLAGES ===================== */
.set-grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: var(--gap); align-items: start; }
@media (max-width: 820px){ .set-grid { grid-template-columns: 1fr; } }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar) + 20px); }
.set-nav a { padding: 10px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--body); display: flex; align-items: center; gap: 10px; }
.set-nav a svg { width: 16px; height: 16px; }
.set-nav a:hover { background: var(--card); }
.set-nav a.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow-xs); }
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: var(--pad); margin-bottom: var(--gap); }
.set-card h3 { font-family: var(--cond); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.set-card > p { font-size: 13px; color: var(--body); margin-bottom: 16px; max-width: 60ch; }
.set-card.danger { border-color: color-mix(in srgb, var(--bad), transparent 60%); }

/* form */
.field { margin-bottom: 18px; }
.field label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field label .hint { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.in, .ta, .sel { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 500; padding: 11px 13px; transition: 0.15s; }
.in:focus, .ta:focus, .sel:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.in::placeholder, .ta::placeholder { color: var(--faint); }
.ta { resize: vertical; min-height: 90px; line-height: 1.55; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

/* toggle rows */
.tog-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tog { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-top: 1px solid var(--line); background: var(--card); width: 100%; text-align: left; transition: 0.12s; }
.tog:first-child { border-top: 0; }
.tog:hover { background: var(--card-2); }
.tog .sw { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; flex-shrink: 0; transition: 0.18s; }
.tog .sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s; }
.tog.on .sw { background: var(--accent); }
.tog.on .sw i { transform: translateX(16px); }
.tog .tt { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tog .tt small { display: block; font-size: 12px; font-weight: 500; color: var(--body); }
.tog .tg-right { margin-left: auto; }

/* ===================== ENORA WIDGET ===================== */
.enora-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 11px;
  background: var(--navy); color: #fff; border: 1px solid color-mix(in srgb, var(--navy), white 14%);
  border-radius: 99px; box-shadow: var(--shadow-pop); transition: 0.16s;
}
.enora-fab:hover { transform: translateY(-2px); }
.enora-fab .lbl { line-height: 1.15; text-align: left; }
.enora-fab .lbl b { font-size: 13.5px; font-weight: 700; display: block; }
.enora-fab .lbl span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); }
.enora-fab .pingdot { position: absolute; top: 6px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--navy); }

.enora-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 61; width: 360px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; overflow: hidden; max-height: min(560px, calc(100vh - 44px));
  animation: epop 0.22s cubic-bezier(.2,.8,.3,1);
}
@keyframes epop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.enora-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; }
.enora-head .ei { line-height: 1.2; }
.enora-head .ei b { font-size: 14px; font-weight: 700; }
.enora-head .ei span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); display: block; }
.enora-head .x { margin-left: auto; color: #8DA0B8; padding: 6px; border-radius: 8px; background: transparent; border: 0; }
.enora-head .x:hover { color: #fff; background: rgba(255,255,255,0.1); }
.enora-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.enora-msg { display: flex; gap: 9px; }
.enora-msg .eb { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; border-top-left-radius: 4px; padding: 11px 13px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.enora-msg .eb b { color: var(--accent); font-weight: 700; }
.enora-sugg { display: flex; flex-direction: column; gap: 7px; padding: 0 16px 12px; }
.enora-sugg button { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-mist); border: 1px solid var(--accent-pale); border-radius: 9px; padding: 9px 12px; transition: 0.12s; display: flex; align-items: center; gap: 8px; }
.enora-sugg button:hover { background: var(--accent-pale); }
.enora-sugg button svg { width: 14px; height: 14px; }
.enora-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.enora-input input { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--card); color: var(--ink); }
.enora-input input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.enora-input .send { width: 40px; flex-shrink: 0; background: var(--accent); color: #fff; border: 0; border-radius: 10px; display: grid; place-items: center; }
.enora-input .send svg { width: 17px; height: 17px; }

/* Enora avatar (ondes) */
.enora-av { display: inline-grid; place-items: center; border-radius: 50%; flex-shrink: 0; background: linear-gradient(150deg, var(--accent-soft), var(--accent)); }
.enora-av .ew { display: flex; align-items: center; gap: 2.5px; height: 40%; }
.enora-av .ew i { width: 2.5px; border-radius: 99px; background: rgba(255,255,255,0.92); height: 30%; animation: ewave 1.1s ease-in-out infinite; }
.enora-av .ew i:nth-child(1){animation-delay:0s} .enora-av .ew i:nth-child(2){animation-delay:.12s} .enora-av .ew i:nth-child(3){animation-delay:.24s} .enora-av .ew i:nth-child(4){animation-delay:.36s} .enora-av .ew i:nth-child(5){animation-delay:.48s}
@keyframes ewave { 0%,100% { height: 28%; } 50% { height: 92%; } }

/* ===================== AUTH ===================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px){ .auth { grid-template-columns: 1fr; } }
.auth-aside { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; padding: 44px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 210deg at 100% 110%, rgba(255,255,255,0.04) 0deg 1.4deg, transparent 1.4deg 7deg); -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%); mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%); }
.auth-aside > * { position: relative; }
.auth-aside .brand .bn { color: #fff; }
.auth-aside .aq { margin-top: auto; font-family: var(--cond); font-weight: 500; font-size: 30px; line-height: 1.15; text-transform: none; }
.auth-aside .aq b { color: var(--accent-soft); }
.auth-aside .asig { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8DA0B8; margin-top: 16px; }
.auth-main { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-family: var(--cond); font-weight: 600; font-size: 34px; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.auth-card > p { font-size: 14px; color: var(--body); margin-bottom: 26px; }
.auth-card .alt { margin-top: 20px; font-size: 13px; color: var(--body); text-align: center; }
.auth-card .alt a { color: var(--accent); font-weight: 700; }

/* printable bilan */
.print-doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 40px 44px; max-width: 840px; margin: 0 auto; }
.print-doc .pd-h { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 24px; }
.print-doc .pd-h h1 { font-family: var(--cond); font-weight: 600; font-size: 32px; text-transform: uppercase; color: var(--ink); }
.bilan-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 22px 0; }
.bilan-metrics .bm { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.bilan-metrics .bm .v { font-family: var(--cond); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1; }
.bilan-metrics .bm .l { font-size: 11.5px; color: var(--body); margin-top: 5px; }
.bilan-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.bilan-row .bl { font-weight: 700; color: var(--ink); flex: 0 0 220px; }
.bilan-row .bv { color: var(--body); }

@media print {
  .side, .topbar, .enora-fab, .enora-panel, [data-tweaks-root] { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0; }
  body { background: #fff; }
}

/* ===================== RESPONSIVE SHELL ===================== */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform 0.25s; }
  .side.open { transform: translateX(0); }
  .statebar { grid-template-columns: repeat(2,1fr); }
  .pillars { grid-template-columns: 1fr; }
  .agents-grid, [data-cards="grid3"] .agents-grid, [data-cards="bento"] .agents-grid { grid-template-columns: 1fr; }
  [data-cards="bento"] .agent-card { grid-column: span 1 !important; }
  .tb-search { display: none; }
}
.side-scrim { display: none; }
@media (max-width: 980px){ .side-scrim.show { display: block; position: fixed; inset: 0; background: rgba(8,16,28,0.5); z-index: 39; } }
.menu-btn { display: none; }
@media (max-width: 980px){ .menu-btn { display: grid; } }

/* ============================================================
   Addendum Régie — bascule de thème, pied de sidebar, garde-fou note
   ============================================================ */
.tb-btn.act { color: var(--accent); }
.gated-note { margin-top: var(--gap); font-size: 12.5px; color: var(--faint); line-height: 1.55;
  border: 1px dashed var(--line-2); border-radius: var(--r); padding: 13px 16px; }
.gated-note b { color: var(--body); }
.opmsg { font-size: 13px; margin-top: 10px; min-height: 1px; color: var(--ok); }
.opmsg.err { color: var(--bad); }
.side-foot .logout { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 8px;
  padding: 9px 12px; border-radius: 10px; background: transparent; border: 1px solid color-mix(in srgb, var(--navy), white 12%);
  color: #B7C6DB; font-size: 13px; font-weight: 700; }
.side-foot .logout:hover { background: color-mix(in srgb, var(--navy), white 8%); color: #fff; }
