/* REBOT² — interface privée. Sombre, noir bleuté éclairci, une seule couleur d'accent.
   Aucune ressource externe : polices du système. */
:root {
  --bg: #060a13; --panel: #0a1120; --panel-2: #0c1322; --raised: #101a2e; --active: #132447;
  --line: #16223a; --line-2: #26365a; --text: #e8eef8; --soft: #b9c6dc; --muted: #9aa9c2; --faint: #8696b3;
  --accent: #5b9bff; --action: #ff6b4a; --renforce: #ffc44d; --fiscal: #4fd1e8; --land: #1a2742; --dim: #33466e;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif; --green: #45ad84; --gold: #d7c65d; --brick: #e04a3e; --ink: #0b1016; --cream: #f6f1e4;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: #8db8ff; } a:hover { color: #c2d9ff; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #8db8ff; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: var(--raised); padding: 8px 12px; border-radius: 8px; z-index: 5; }
.noscript { padding: 40px; color: var(--renforce); }

.shell { display: flex; min-height: 100vh; }
.rail { flex: 0 0 248px; width: 248px; padding: 26px 14px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #070c16; }
.brand { padding: 0 12px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; } .brand-name span { color: var(--accent); }
.brand-sub, .label { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 9px; color: var(--soft); text-decoration: none; font-size: 14px; }
.nav a:hover { background: var(--raised); }
.nav a[aria-current="page"] { background: var(--text); color: var(--bg); font-weight: 650; }
.nav a[aria-current="page"] .n { color: #8a6d00; }
.freshness { padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12.5px; }
.freshness strong { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.led { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.led.ok { background: var(--accent); } .led.warn { background: var(--renforce); } .led.bad { background: var(--action); }

main { flex: 1 1 0; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; outline: none; max-width: 1360px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.head h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.head p { color: var(--muted); font-size: 15px; max-width: 660px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 0 1 300px; }
.field input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.strip { display: flex; flex-wrap: wrap; gap: 8px 36px; padding: 16px 20px; border-radius: 12px; }
.stat { display: flex; align-items: baseline; gap: 10px; color: var(--soft); }
.stat b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--text); }
.stat.big b { font-size: 26px; letter-spacing: -0.02em; } .stat.big { color: var(--muted); }
.sw { width: 10px; height: 10px; border-radius: 2px; flex: none; align-self: center; background: var(--land); }
.sw.action { background: var(--action); } .sw.renforce { background: var(--renforce); } .sw.fiscal { background: var(--fiscal); } .sw.dim { background: var(--dim); }
.sw.none { border: 1px solid #2a3a5c; }
.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--soft); }
.notice.warn { border-color: #6b5320; color: var(--renforce); }

.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.map { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px 6px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--soft); display: inline-flex; align-items: center; gap: 8px; }
.chip span { font-family: var(--mono); font-size: 12px; opacity: 0.8; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.map svg { display: block; width: 100%; height: auto; padding: 4px 10px 0; }
.land { cursor: pointer; transition: fill 0.18s ease; stroke: var(--bg); stroke-width: 0.5; stroke-linejoin: round; }
.land:hover { filter: brightness(1.35); }
.land.sel { stroke: #fff; stroke-width: 1.6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 18px 16px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: auto; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); }
.side { flex: 1 1 300px; max-width: 420px; min-width: 0; background: var(--panel-2); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.side h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.side h3, .section-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); cursor: pointer; font-size: 18px; line-height: 1; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-2); font-weight: 600; }
.motifs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.motifs li { padding: 10px 12px; border-radius: 8px; background: var(--raised); display: flex; flex-direction: column; gap: 2px; }
.motifs li span { color: var(--soft); } .motifs li strong { font-weight: 600; }
.block { display: flex; flex-direction: column; gap: 10px; }
.block.rule { padding-top: 14px; border-top: 1px solid var(--line); }
.muted { color: var(--muted); } .soft { color: var(--soft); } .mono { font-family: var(--mono); }
.src { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.src:last-child { border-bottom: 0; }
.src-top { display: flex; justify-content: space-between; gap: 12px; }
.src small { color: var(--muted); font-size: 12.5px; }

.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.scroll { max-height: 440px; overflow: auto; }
.rows { min-width: 640px; display: flex; flex-direction: column; }
.row { display: grid; gap: 16px; align-items: center; text-align: left; min-height: 48px; padding: 8px 20px; border: 0; border-bottom: 1px solid #111b30; background: transparent; cursor: pointer; width: 100%; }
.row:hover { background: #12203a; } .row.sel, .row[aria-expanded="true"] { background: var(--active); }
.row.country { grid-template-columns: 56px minmax(150px, 1.1fr) minmax(190px, 1fr) minmax(220px, 2fr); }
.row.text { grid-template-columns: minmax(170px, 0.9fr) minmax(260px, 2.4fr) 110px 110px; cursor: default; }
.row.text:hover { background: transparent; }
.row.duty { grid-template-columns: 28px minmax(280px, 3fr) 120px 170px; }
.row .id { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.row .name { font-weight: 600; } .row .lvl { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }
.row .more { color: var(--muted); font-size: 13px; }
.pending { display: inline-flex; align-items: center; gap: 8px; color: var(--renforce); font-size: 13px; }
.pending i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--renforce); }
.done { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; }
.done i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.detail { padding: 4px 20px 18px 64px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid #111b30; }
.detail p { color: var(--soft); max-width: 780px; }
.theme { padding: 14px 20px 6px; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.bar { height: 6px; border-radius: 3px; background: var(--line); } .bar i { display: block; height: 6px; border-radius: 3px; background: var(--accent); }
.progress { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 18px 20px; border-radius: 12px; }
.progress .grow { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; color: var(--soft); font-size: 13px; }
.months { min-width: 720px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.month { display: flex; flex-direction: column; gap: 8px; }
.month div { height: 56px; border-radius: 8px; background: #0e1729; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.month span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; letter-spacing: 0.04em; }
.reminder { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--renforce); }
.pad { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.kv { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 10px 24px; padding: 18px 20px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.empty { padding: 28px 20px; color: var(--muted); }
@media (max-width: 720px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } .detail { padding-left: 20px; } }
@media (prefers-reduced-motion: reduce) { .land { transition: none; } }
.account { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; font-size: 13px; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.login-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-card .field { flex: none; }
.primary { height: 46px; border-radius: 10px; border: 0; background: var(--text); color: var(--bg); font-weight: 600; cursor: pointer; }
.primary:hover { background: #fff; }
.login-error { color: var(--renforce); min-height: 20px; font-size: 13.5px; }
.learned { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; border-bottom: 1px solid #111b30; }
.learned:last-child { border-bottom: 0; }
.learned-top { display: flex; align-items: baseline; gap: 14px; }
.learned .id { font-family: var(--mono); font-size: 12px; color: var(--faint); flex: none; }

/* ================= Organisation générale ================= */
.rail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: block; padding: 0 12px; text-decoration: none; color: var(--text); }
.menu { display: none; }
.nav .n { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.06em; width: 18px; flex: none; }
.nav-group { margin: 14px 12px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1b1a10; font: 700 11px/20px var(--mono); text-align: center; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.secure { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }
.secure i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(69, 173, 132, 0.16); }
.ico { flex: none; }
.kicker { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); }
.gold { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chip { text-decoration: none; }
.primary.send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; text-decoration: none; }
.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.primary.send .ico { color: #8a6d00; }
.form-error { color: #ffb3a3; font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 13px; border: 1px solid var(--line-2); font-size: 12px; color: var(--soft); white-space: nowrap; text-decoration: none; flex: none; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill.ok i { background: var(--green); } .pill.bad i { background: var(--brick); } .pill.wait i { background: var(--gold); }
.pill.run { border-color: #2c4f8f; color: #cfe0ff; } .pill.run i { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 155, 255, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(91, 155, 255, 0); } }

/* ================= Accueil ================= */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 20px; background: #060a13; min-height: 420px; display: flex; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 45%, rgba(6, 10, 19, 0.96) 0%, rgba(6, 10, 19, 0.86) 45%, rgba(6, 10, 19, 0.35) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 860px; padding: 40px 44px 36px; display: flex; flex-direction: column; gap: 16px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.hero-lead { color: var(--soft); font-size: 16px; max-width: 620px; }
.composer { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(12, 19, 34, 0.92); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.composer:focus-within { border-color: #4168aa; }
.ask-input { width: 100%; resize: vertical; min-height: 46px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); line-height: 1.5; }
.composer .ask-input { border: 0; background: transparent; resize: none; padding: 8px 10px; font-size: 16px; }
.composer .ask-input:focus { outline: none; }
.ask-input.large { min-height: 84px; font-size: 17px; }
.ask-input::placeholder { color: var(--faint); }
.composer-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); text-decoration: none; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; }
.ghost:hover { background: var(--raised); color: var(--text); }
.hint { margin-left: auto; color: var(--faint); font-size: 12px; font-family: var(--mono); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest-chip { text-align: left; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 17, 32, 0.8); color: var(--soft); cursor: pointer; font-size: 13px; max-width: 100%; }
.suggest-chip:hover { border-color: #4168aa; color: var(--text); }

.band { display: flex; flex-direction: column; gap: 14px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.band-head h2 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.03em; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.mod { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 172px; grid-template-areas: "body art" "foot art"; grid-template-rows: 1fr auto; min-height: 236px; border: 1px solid var(--line-2); border-radius: 17px; overflow: hidden;
  background: var(--panel); color: var(--text); text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; will-change: transform; }
.mod:hover, .mod:focus-visible { border-color: #4168aa; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); color: var(--text); }
.mod-body { grid-area: body; padding: 22px 24px 8px; display: flex; flex-direction: column; gap: 10px; }
.mod-body h3 { font-family: var(--serif); font-size: 29px; font-weight: 700; letter-spacing: -0.038em; line-height: 1; }
.mod-body p { color: var(--soft); font-size: 13.5px; line-height: 1.5; }
.mod-foot { grid-area: foot; padding: 12px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.mod-go { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 12.5px; }
.mod-go .ico { color: #8a6d00; transition: transform 0.18s ease; } .mod:hover .mod-go .ico { transform: translateX(3px); }
.mod-art { grid-area: art; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--ink); border-left: 1px solid var(--line-2); color: #8fb1eb; }

/* Globe radar : trois signaux en orbite (repris du portail d'origine). */
.art-radar { display: grid; justify-items: center; gap: 16px; }
.radar-kicker { display: grid; gap: 3px; text-align: center; }
.radar-kicker strong { color: var(--green); font: 900 8.6px/1.15 var(--mono); letter-spacing: 0.105em; white-space: nowrap; }
.radar-kicker span { color: #91a69c; font: 800 7.6px/1.2 var(--mono); letter-spacing: 0.075em; }
.radar { display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(194, 212, 203, 0.12); border-radius: 50%; background: radial-gradient(circle, rgba(65, 104, 170, 0.18), rgba(65, 104, 170, 0) 67%); box-shadow: 0 0 34px rgba(65, 104, 170, 0.14); }
.radar-sphere { position: relative; width: 84px; height: 84px; border: 1px solid rgba(211, 224, 218, 0.72); border-radius: 50%;
  background: linear-gradient(rgba(211, 224, 218, 0.2), rgba(211, 224, 218, 0.2)) center / 100% 1px no-repeat, linear-gradient(90deg, rgba(211, 224, 218, 0.2), rgba(211, 224, 218, 0.2)) center / 1px 100% no-repeat; }
.radar-sphere::before, .radar-sphere::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(211, 224, 218, 0.26); border-radius: 50%; }
.radar-sphere::before { inset: 0 26px; } .radar-sphere::after { inset: 27px 0; }
.radar-latitude { position: absolute; inset: 13px 6px; border-top: 1px solid rgba(211, 224, 218, 0.18); border-bottom: 1px solid rgba(211, 224, 218, 0.18); border-radius: 50%; }
.radar-axis { position: absolute; left: 50%; top: -8px; width: 1px; height: 100px; background: linear-gradient(transparent, rgba(215, 198, 93, 0.65), transparent); transform: rotate(38deg); transform-origin: center; }
.signal { position: absolute; width: 7px; height: 7px; border: 2px solid var(--ink); border-radius: 50%; will-change: transform; }
.signal-one { top: 18px; right: 13px; background: #e04a3e; box-shadow: 0 0 0 3px rgba(224, 74, 62, 0.12), 0 0 12px rgba(224, 74, 62, 0.45); animation: orbit-red 7.2s linear infinite; }
.signal-two { left: 16px; bottom: 23px; background: #d7c65d; box-shadow: 0 0 0 3px rgba(215, 198, 93, 0.11), 0 0 11px rgba(215, 198, 93, 0.34); animation: orbit-yellow 8.6s linear infinite -2.8s; }
.signal-three { right: 24px; bottom: 15px; background: #4f73a8; box-shadow: 0 0 0 3px rgba(79, 115, 168, 0.12), 0 0 11px rgba(79, 115, 168, 0.38); animation: orbit-blue 6.8s linear infinite -4.1s; }
@keyframes orbit-red { 0%, 100% { transform: translate(0, 0) scale(1); } 12.5% { transform: translate(-10px, 7px) scale(0.96); } 25% { transform: translate(-29px, 13px) scale(0.84); } 37.5% { transform: translate(-48px, 10px) scale(0.72); } 50% { transform: translate(-58px, 1px) scale(0.68); } 62.5% { transform: translate(-47px, -8px) scale(0.74); } 75% { transform: translate(-28px, -12px) scale(0.86); } 87.5% { transform: translate(-9px, -7px) scale(0.97); } }
@keyframes orbit-yellow { 0%, 100% { transform: translate(0, 0) scale(0.82); } 12.5% { transform: translate(9px, -9px) scale(0.75); } 25% { transform: translate(27px, -16px) scale(0.7); } 37.5% { transform: translate(44px, -10px) scale(0.8); } 50% { transform: translate(55px, 1px) scale(1); } 62.5% { transform: translate(44px, 11px) scale(1.06); } 75% { transform: translate(27px, 17px) scale(1); } 87.5% { transform: translate(9px, 10px) scale(0.9); } }
@keyframes orbit-blue { 0%, 100% { transform: translate(0, 0) scale(1); } 12.5% { transform: translate(-8px, -10px) scale(0.95); } 25% { transform: translate(-13px, -27px) scale(0.82); } 37.5% { transform: translate(-9px, -45px) scale(0.72); } 50% { transform: translate(1px, -57px) scale(0.68); } 62.5% { transform: translate(10px, -44px) scale(0.76); } 75% { transform: translate(14px, -27px) scale(0.88); } 87.5% { transform: translate(8px, -10px) scale(0.97); } }

/* PRISME : les sources tombent dans l'entonnoir, un seul rouage tourne, la lettre sort de l'enveloppe. */
.art-pipeline { align-self: stretch; justify-self: stretch; display: grid; place-items: center; background: #101714; overflow: hidden; }
.pipe { width: 172px; height: 236px; display: block; overflow: hidden; }
.pipe .tr { stroke: #2c7864; stroke-width: 1; stroke-linecap: round; opacity: 0; animation: trail 2.4s linear infinite; }
.pipe .t1 { animation-delay: -0.6s; } .pipe .t2 { animation-delay: -1.1s; stroke: #4168aa; } .pipe .t3 { animation-delay: -1.7s; } .pipe .t4 { animation-delay: -0.3s; stroke: #d7c65d; }
.bdg { opacity: 0; animation: 10s cubic-bezier(0.4, 0, 0.6, 1) infinite; will-change: transform, opacity; }
.bdg-box { fill: var(--cream); stroke: rgba(16, 23, 20, 0.35); stroke-width: 0.6; } .bdg-text { font: 800 8px/1 Arial, Helvetica, sans-serif; fill: #152d54; text-anchor: middle; letter-spacing: 0.02em; }
.b1 { animation-name: fall-a; } .b2 { animation-name: fall-b; animation-delay: -8s; } .b3 { animation-name: fall-c; animation-delay: -6s; } .b4 { animation-name: fall-d; animation-delay: -4s; } .b5 { animation-name: fall-e; animation-delay: -2s; }
.b2 .bdg-text { fill: #164b8c; } .b3 .bdg-text { fill: #b9382e; } .b4 .bdg-text { fill: #0b6a4d; } .b5 .bdg-text { fill: #5a4a00; }
@keyframes fall-a { 0% { opacity: 0; transform: translate(-58px, -14px) scale(0.9); } 6% { opacity: 1; } 22% { opacity: 1; transform: translate(-30px, 62px) scale(1); } 30% { opacity: 1; transform: translate(-6px, 108px) scale(0.62); } 34%, 100% { opacity: 0; transform: translate(0, 132px) scale(0.3); } }
@keyframes fall-b { 0% { opacity: 0; transform: translate(-22px, -14px) scale(0.9); } 6% { opacity: 1; } 22% { opacity: 1; transform: translate(-12px, 62px) scale(1); } 30% { opacity: 1; transform: translate(-2px, 108px) scale(0.62); } 34%, 100% { opacity: 0; transform: translate(0, 132px) scale(0.3); } }
@keyframes fall-c { 0% { opacity: 0; transform: translate(8px, -14px) scale(0.9); } 6% { opacity: 1; } 22% { opacity: 1; transform: translate(4px, 62px) scale(1); } 30% { opacity: 1; transform: translate(1px, 108px) scale(0.62); } 34%, 100% { opacity: 0; transform: translate(0, 132px) scale(0.3); } }
@keyframes fall-d { 0% { opacity: 0; transform: translate(50px, -14px) scale(0.9); } 6% { opacity: 1; } 22% { opacity: 1; transform: translate(26px, 62px) scale(1); } 30% { opacity: 1; transform: translate(5px, 108px) scale(0.62); } 34%, 100% { opacity: 0; transform: translate(0, 132px) scale(0.3); } }
@keyframes fall-e { 0% { opacity: 0; transform: translate(-40px, -14px) scale(0.9); } 6% { opacity: 1; } 22% { opacity: 1; transform: translate(-20px, 62px) scale(1); } 30% { opacity: 1; transform: translate(-4px, 108px) scale(0.62); } 34%, 100% { opacity: 0; transform: translate(0, 132px) scale(0.3); } }
.funnel { fill: var(--cream); stroke: #101714; stroke-width: 2; stroke-linejoin: round; } .funnel-rim { stroke: rgba(16, 23, 20, 0.25); stroke-width: 2; stroke-linecap: round; fill: none; }
.gear { animation: gear-turn 5s linear infinite; transform-box: fill-box; transform-origin: center; } .gear-body { fill: #e3b23c; stroke: #101714; stroke-width: 1.6; stroke-linejoin: round; } .gear-hole { fill: #101714; }
.drop { fill: #e3b23c; animation: drop 2s cubic-bezier(0.5, 0, 0.9, 0.6) infinite; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-4px); } 15% { opacity: 1; } 80% { opacity: 1; transform: translateY(20px); } 100% { opacity: 0; transform: translateY(24px); } }
.env-back { fill: #c9982a; stroke: #101714; stroke-width: 1.6; } .env-front { fill: #e9bd4c; stroke: #101714; stroke-width: 1.6; stroke-linejoin: round; } .env-fold { stroke: rgba(16, 23, 20, 0.45); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.letter { animation: letter 5s ease-in-out infinite; } @keyframes letter { 0%, 100% { transform: translateY(14px); } 45%, 70% { transform: translateY(0); } }
.sheet-box { fill: var(--cream); stroke: #101714; stroke-width: 1.6; } .sheet-ok { fill: #0b6a4d; } .sheet-tick { stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sheet-lines { stroke: #1f2320; stroke-width: 2; stroke-linecap: round; fill: none; opacity: 0.75; }
@keyframes gear-turn { to { transform: rotate(360deg); } }
@keyframes trail { 0% { opacity: 0; transform: translateY(-9px) scaleY(0.65); } 30%, 65% { opacity: 0.66; } 100% { opacity: 0; transform: translateY(18px) scaleY(1); } }

/* Autres illustrations, dans le même langage : fond d'encre, traits fins, quatre couleurs. */
.art-doc { position: relative; width: 96px; height: 128px; }
.sheet { position: absolute; inset: 0; border-radius: 8px; background: var(--cream); padding: 16px 13px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.sheet i { height: 5px; border-radius: 3px; background: #c9c4b5; } .sheet i:nth-child(2n) { width: 78%; } .sheet i.flag { background: #e04a3e; width: 62%; animation: flag 4.2s ease-in-out infinite; } .sheet i.flag.ok { background: #0b6a4d; animation-delay: -2.1s; }
.scan-line { position: absolute; left: -8px; right: -8px; height: 2px; background: #5b9bff; box-shadow: 0 0 14px 3px rgba(91, 155, 255, 0.55); animation: scan 4.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 90%; } } @keyframes flag { 0%, 30%, 100% { opacity: 0.25; } 45%, 80% { opacity: 1; } }
.art-bars { display: grid; grid-template-columns: repeat(4, 22px); gap: 7px; }
.art-bars i { height: 22px; border-radius: 5px; border: 1px solid rgba(211, 224, 218, 0.3); } .art-bars i.bar-1 { background: rgba(65, 104, 170, 0.5); } .art-bars i.bar-3 { border-style: dashed; border-color: var(--gold); }
.art-bars i:nth-child(6) { background: var(--green); border-color: var(--green); animation: flag 3.6s ease-in-out infinite; }
.art-books { display: flex; align-items: flex-end; gap: 5px; height: 110px; }
.art-books i { width: 11px; border-radius: 3px 3px 1px 1px; background: #315f96; height: 76%; } .art-books i.bk-1 { height: 100%; background: var(--cream); } .art-books i.bk-2 { height: 62%; background: #0b6a4d; }
.art-books i:nth-child(5) { background: var(--gold); animation: lift 3.8s ease-in-out infinite; } @keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.watch { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #111b30; color: var(--text); text-decoration: none; }
.watch:last-child, .ask-row:last-child { border-bottom: 0; } .watch:hover, .ask-row:hover { background: #12203a; color: var(--text); }
.watch > i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); } .watch.warn > i { background: var(--gold); } .watch.ok > i { background: var(--green); }
.watch div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; } .watch span { color: var(--muted); font-size: 13px; } .watch .ico { color: var(--faint); }
.ask-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 20px; border: 0; border-bottom: 1px solid #111b30; background: transparent; text-align: left; cursor: pointer; }
.ask-ico { color: #8fb1eb; display: inline-flex; } .ask-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-row.tall .ask-title { white-space: normal; display: flex; flex-direction: column; gap: 3px; } .ask-title small { color: var(--muted); font-size: 12.5px; }

/* ================= Conversation ================= */
.blank { padding: 44px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: #8fb1eb; } .blank .muted { max-width: 560px; } .blank .suggest { justify-content: center; margin-top: 8px; }
.blank .section-title { color: var(--text); font-family: var(--serif); font-size: 26px; letter-spacing: -0.03em; }
.thread { display: flex; flex-direction: column; gap: 18px; }
.turn { display: flex; flex-direction: column; gap: 6px; max-width: 880px; } .turn.me { align-self: flex-end; align-items: flex-end; max-width: 720px; }
.bubble { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); overflow-wrap: anywhere; }
.turn.me .bubble { background: var(--active); border-color: #24407a; border-bottom-right-radius: 5px; white-space: pre-wrap; } .turn.bot .bubble { border-bottom-left-radius: 5px; }
.bubble.thinking { display: flex; align-items: center; gap: 12px; color: var(--soft); } .bubble.failed { border-color: #7a3328; color: #ffb3a3; }
.when { color: var(--faint); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.link { border: 0; background: none; color: #8db8ff; cursor: pointer; padding: 0; font-size: 12px; } .link:hover { text-decoration: underline; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s ease-in-out infinite; } .dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; } .file { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; } .file em { color: var(--muted); font-style: normal; font-family: var(--mono); font-size: 11.5px; }
.dock { position: sticky; bottom: 16px; z-index: 2; max-width: 880px; }
.md { display: flex; flex-direction: column; gap: 10px; line-height: 1.6; font-size: 14.5px; }
.md h2, .md h3, .md h4, .md h5 { font-weight: 700; letter-spacing: -0.01em; margin-top: 8px; } .md h2 { font-size: 20px; font-family: var(--serif); } .md h3 { font-size: 17px; } .md h4, .md h5 { font-size: 15px; }
.md ul, .md ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; } .md li > ul, .md li > ol { margin-top: 5px; }
.md code { font-family: var(--mono); font-size: 0.9em; background: var(--raised); padding: 1px 5px; border-radius: 4px; } .md pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: #070c16; overflow: auto; } .md pre code { background: none; padding: 0; }
.md blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid #4168aa; background: rgba(65, 104, 170, 0.1); color: var(--soft); } .md hr { border: 0; border-top: 1px solid var(--line-2); width: 100%; }
.md-table { overflow: auto; border: 1px solid var(--line-2); border-radius: 10px; } .md table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.md th, .md td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); } .md th { background: var(--raised); font-weight: 650; } .md tr:last-child td { border-bottom: 0; }

/* ================= Revue de documents, profil ================= */
.review-grid, .profile-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.type { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.type span { color: var(--muted); font-size: 12.5px; line-height: 1.45; } .type[aria-checked="true"] { border-color: var(--text); background: var(--active); } .type:hover { border-color: #4168aa; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--panel-2); cursor: pointer; text-align: center; color: #8fb1eb; }
.drop strong { color: var(--text); } .drop:hover, .drop.over { border-color: var(--accent); background: #0f1a30; } .drop span { font-size: 12.5px; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--raised); }
.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .icon-btn.small { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 13.5px; } .checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--gold); margin-top: 1px; } .checks.plain .ico { color: var(--green); } .checks strong { color: var(--text); }
.profile-form { gap: 18px; } .pfield { display: flex; flex-direction: column; gap: 6px; } .pfield-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .pfield-top .mono { font-size: 11px; }
.profile-side { display: flex; flex-direction: column; gap: 20px; } .kv.tight { padding: 0; grid-template-columns: 120px 1fr; gap: 8px 16px; font-size: 13.5px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } .tags li { padding: 5px 10px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-2); font-size: 12.5px; }
.tags li.off { color: var(--muted); border-style: dashed; } .tags em { font-style: normal; color: var(--gold); margin-left: 6px; font-size: 11px; }
.ask-input:disabled { opacity: 0.6; }

/* ================= PRISME ================= */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; } .seg button { height: 36px; padding: 0 14px; border: 0; background: transparent; cursor: pointer; color: var(--soft); font-family: var(--mono); font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 700; }
.p-hero { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 17px; border-color: var(--line-2); }
.p-hero-copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 380px; } .p-hero h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1.02; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; align-items: center; } .p-actions .primary { height: 42px; font-size: 13.5px; }
.p-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; align-self: center; }
.p-facts div { background: var(--panel-2); padding: 14px 18px; } .p-facts dt { font: 800 9.5px/1 var(--mono); letter-spacing: 0.12em; color: var(--green); } .p-facts dd { margin: 8px 0 0; font-family: var(--mono); font-size: 24px; }
.p-issues { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.p-issue { flex: none; text-align: left; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; display: flex; flex-direction: column; gap: 2px; } .p-issue span { color: var(--muted); font-size: 12px; }
.p-issue[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); } .p-issue[aria-pressed="true"] span { color: #3c4658; }
.p-market { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); }
.p-ind { background: var(--panel); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; } .p-ind b { font-family: var(--mono); font-size: 20px; font-weight: 500; } .p-ind b small { font-size: 11px; color: var(--muted); } .p-ind > small { font-size: 11.5px; }
.delta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); } .delta.up { color: #6fd2a6; } .delta.down { color: #ff9c8a; }
.p-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } .chips.flat { padding: 0; } .p-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .field.slim { flex: 0 1 240px; } .field.slim input { height: 36px; }
.p-section { padding: 26px 28px; border-radius: 17px; border-color: var(--line-2); display: flex; flex-direction: column; gap: 18px; }
.p-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); } .p-section-head h2 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1; margin-top: 7px; }
.p-list { display: grid; gap: 14px; } .p-article { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); }
.p-meta { display: flex; flex-wrap: wrap; gap: 7px; } .p-meta span { padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--soft); font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; }
.p-meta .p-score { border: 0; color: #fff; background: #2d5e9f; } .p-meta .p-score.s4 { background: #c76b25; } .p-meta .p-score.s5 { background: #b9382e; } .p-meta .p-conf { border-color: rgba(69, 173, 132, 0.45); color: #7fd0ab; } .p-meta .p-update { border-color: var(--gold); color: var(--gold); }
.p-article h3 { margin: 13px 0 8px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; letter-spacing: -0.015em; } .p-summary { color: var(--soft); font-size: 14px; line-height: 1.65; }
.p-why { margin-top: 14px; padding: 12px 15px; border-left: 3px solid #4168aa; background: rgba(65, 104, 170, 0.12); } .p-why strong { color: #8fb1eb; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; } .p-why p { margin-top: 5px; font-size: 13.5px; line-height: 1.55; }
.p-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12px; } .p-source a { color: #7fd0ab; font-weight: 700; text-decoration: none; } .p-source a span { color: #8fb1eb; }

/* ================= Carte des pays : signal sur les appels à l'action ================= */
.map svg path[fill="#ff6b4a"], .map svg circle[fill="#ff6b4a"] { animation: alert 2.8s ease-in-out infinite; } @keyframes alert { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45) drop-shadow(0 0 6px rgba(255, 107, 74, 0.8)); } }

/* ================= Petits écrans, mouvement réduit ================= */
@media (max-width: 1100px) { .review-grid, .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { flex-direction: column; } .rail { position: sticky; top: 0; z-index: 10; width: 100%; flex: none; height: auto; padding: 12px 14px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu { display: grid; place-items: center; } .nav, .rail-foot { display: none; } body.menu-open .nav, body.menu-open .rail-foot { display: flex; } body.menu-open .rail { height: 100vh; }
  main { padding: 20px 16px 48px; } .hero-inner { padding: 26px 20px; } .hint { display: none; } .mods { grid-template-columns: 1fr; } .mod { grid-template-columns: minmax(0, 1fr) 120px; } .head h1 { font-size: 30px; } .duo { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .mod { grid-template-columns: 1fr; grid-template-areas: "art" "body" "foot"; } .mod-art { height: 150px; border-left: 0; border-bottom: 1px solid var(--line-2); } .p-facts { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .bdg { opacity: 1; transform: translate(0, 40px); } .b1 { transform: translate(-48px, 30px); } .b2 { transform: translate(-14px, 62px); } .b3 { transform: translate(44px, 34px); } .b4 { transform: translate(18px, 6px); } .b5 { transform: translate(-30px, 2px); } .pipe .tr { opacity: 0.4; } }

/* ================= Accueil : carte vedette, connexion, administration ================= */
.mods > .mod:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.login { max-width: none; flex-direction: row; } .login-card .muted { font-size: 13.5px; } .login-card form + form { align-items: flex-start; }
.acct { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(200px, 1.6fr); gap: 14px 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #111b30; }
.acct:last-child { border-bottom: 0; } .acct-who, .acct-cost { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; } .acct-cost b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.acct-cost span { font-size: 12.5px; } .hist { font-family: var(--mono); font-size: 11px; } .cap { color: var(--gold); } .cap.over { color: #ffb3a3; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; font-size: 12.5px; } .acct-actions .chip { min-height: 32px; padding: 0 11px; font-size: 12.5px; } .chip.danger { border-color: #7a3328; color: #ffb3a3; } .chip:disabled { opacity: 0.5; cursor: default; }
.invite { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; } .invite .primary { height: 46px; }
.secret { border-color: var(--gold); } .secret-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; } .secret-row code { font-family: var(--mono); font-size: 20px; letter-spacing: 0.04em; padding: 10px 16px; border-radius: 10px; background: #070c16; border: 1px solid var(--line-2); user-select: all; }
@media (max-width: 1000px) { .acct { grid-template-columns: 1fr 1fr; } .acct-actions { justify-content: flex-start; grid-column: 1 / -1; } }

/* ================= Atelier newsletter ================= */
.notice.busy { display: flex; align-items: center; gap: 12px; border-color: #2c4f8f; color: #cfe0ff; position: sticky; top: 12px; z-index: 3; background: #0f1a30; }
.notice.ok-note { border-color: rgba(69, 173, 132, 0.5); color: #9be0c0; } details.notice summary, details.card summary { cursor: pointer; }
.start { gap: 12px; } .start-go { justify-content: flex-start; } .dots.big i { width: 10px; height: 10px; }
.cands { display: flex; flex-direction: column; gap: 14px; }
.cand { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.cand.on { border-color: #35589a; background: #0c1526; } .cand.warn { border-left: 3px solid var(--gold); }
.cand-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; } .cand-head h3 { flex: 1 1 320px; font-family: var(--serif); font-size: 19px; line-height: 1.22; letter-spacing: -0.015em; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; } .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.cand-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cand-tools .chip { min-height: 30px; padding: 0 11px; font-size: 12.5px; } .cand-tools .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1b1a10; }
.ask-input.sel { width: auto; min-height: 30px; padding: 4px 8px; font-size: 12.5px; }
.cand-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tag { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--soft); white-space: nowrap; } .tag.key { border-color: var(--gold); color: var(--gold); }
.tag.tier-5 { border-color: rgba(69, 173, 132, 0.55); color: #7fd0ab; } .tag.tier-2, .tag.tier-1 { border-color: #7a5a1e; color: #e7c478; }
.tag[class*="st-"], .p-status { border: 0; color: #fff; background: #2d5e9f; font-weight: 700; } .st-consultation, .st-proposition { background: #9a6a00 !important; } .st-sanction, .st-incident { background: #b9382e !important; } .st-applicable, .st-adopte { background: #0b6a4d !important; }
.cand-sum { color: var(--soft); font-size: 13.5px; line-height: 1.55; }
.flags { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #e7c478; } .flags li::before { content: "▲ "; font-size: 9px; } .flags li.hard { color: #ffb3a3; }
.proof { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; } .proof summary { color: #8db8ff; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); } .fact q { color: var(--soft); font-style: italic; quotes: "« " " »"; } .fact.ko strong { color: #ffb3a3; }
.rejected .rej { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); } .rej div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.final-bar { gap: 14px; border-color: var(--line-2); } .final-bar .actions { gap: 10px; }
.duo-field { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; } .ed-item { gap: 14px; }
.acct.slim { grid-template-columns: 90px 1fr 1fr; padding: 12px 20px; }
.p-note { font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.5; color: var(--soft); max-width: 720px; border-left: 3px solid #4168aa; padding-left: 12px; }
.p-key { margin-top: 8px; font-size: 13.5px; } .p-key strong { font: 700 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-right: 8px; }
.p-meta .p-status { padding: 4px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.03em; }
.art-checks { display: flex; flex-direction: column; gap: 9px; width: 104px; } .ck { display: flex; align-items: center; gap: 9px; opacity: 0.55; } .ck i { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid rgba(211, 224, 218, 0.6); flex: none; }
.ck span { height: 5px; border-radius: 3px; background: rgba(211, 224, 218, 0.45); flex: 1; } .ck.on { opacity: 1; } .ck.on i { background: var(--green); border-color: var(--green); } .ck.on span { background: var(--cream); } .ck.on:nth-child(3) { animation: flag 4s ease-in-out infinite; }
/* Menu à treize entrées : hauteur resserrée pour que le compte reste visible sans défilement sur un écran courant. */
.rail { gap: 14px; padding-top: 22px; } .nav a { min-height: 35px; } .nav-group { margin: 9px 12px 2px; } .freshness { padding: 10px 12px; gap: 4px; }

/* Team BOTs : deux cartes, le circuit entre elles, puis trois onglets. */
.bots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bot-card { padding: 22px 22px 8px; }
.bot-card .kv { padding: 14px 0 10px; grid-template-columns: minmax(120px, 170px) 1fr; }
.bot-top { display: flex; align-items: center; gap: 14px; }
.bot-top > div { flex: 1; min-width: 0; } .bot-top h2 { font-size: 18px; letter-spacing: -0.01em; } .bot-top p { margin-top: 3px; }
.bot-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: none; color: #fff;
  background: linear-gradient(140deg, #2e6cf0, #0d2d6e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.bot-card.coach .bot-mark { background: linear-gradient(140deg, #24a37c, #0b3d33); }
.flow { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--soft); line-height: 1.5; }
.flow b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--active); color: #cfe0ff; font-size: 12px; flex: none; }
.flow strong { color: var(--text); }
.seg.tabs { margin: 4px 0 12px; } .seg.tabs button { font-family: var(--sans); font-size: 13px; padding: 0 16px; }
.learned-group { margin-bottom: 18px; } .learned-group h3 { font-size: 15px; } .learned-group .list-head { padding: 0 0 6px; }
.learned-group .learned { padding: 12px 0; }
.coach-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.coach-past { margin-top: 18px; display: grid; gap: 2px; }
@media (max-width: 900px) { .bots, .flow { grid-template-columns: 1fr; } .coach-head { flex-direction: column; } }

/* Revue : document révisé téléchargeable. */
.download { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin: 0 0 16px; }
.download-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.download-foot .download { margin: 0; }
.checks.numbered { padding-left: 0; }

/* Connexion : lien de récupération et confirmations. */
.login-ok { color: #8fe0b9; min-height: 0; font-size: 13.5px; } .login-ok:empty { display: none; }
.login-card .small { font-size: 13px; margin-top: 14px; }
.mail { font-size: 12.5px; } .mail.ok { color: #8fe0b9; } .mail.bad { color: var(--renforce); } .mail.wait { color: var(--soft); }

/* Atelier newsletter : style clair repris du site d'origine de PRISME, pour ce seul module. */
main.view-atelier {
  --bg: #f1f4f2; --panel: #ffffff; --panel-2: #f8faf8; --raised: #eef3f1; --active: #dde9e5;
  --line: #d3ddda; --line-2: #c3d3ce; --text: #182e35; --soft: #3f565b; --muted: #5f747a; --faint: #74898f; --accent: #087e75;
  --gold: #a46f12; --green: #087e75;
  color-scheme: light; background: var(--bg); color: var(--text); max-width: none; min-height: 100vh;
}
main.view-atelier > * { max-width: 1280px; width: 100%; }
main.view-atelier a { color: var(--accent); }
main.view-atelier .head h1 { color: var(--text); }
main.view-atelier .card { box-shadow: 0 1px 2px rgba(24, 46, 53, 0.05); }
main.view-atelier .kicker { color: var(--accent); }
main.view-atelier .primary { background: var(--accent); color: #fff; } main.view-atelier .primary:hover { background: #066b63; }
main.view-atelier .chip[aria-pressed="true"] { background: var(--text); color: #fff; }
main.view-atelier .notice.warn { border-color: #e2c78c; background: #fbf5e7; color: #7a5410; }
main.view-atelier .notice.busy { border-color: #b5d6cf; background: #e6f2ee; color: #1d4d47; }
main.view-atelier .notice.ok-note, main.view-atelier .ok-note { border-color: #b5d6cf; color: #0b6a5f; }
main.view-atelier .form-error { color: #a43b33; }
main.view-atelier .cand.on { border-color: #8cc2b8; background: #f6fbfa; }
main.view-atelier .tag.tier-5 { border-color: #9fcfc5; color: #0b6a5f; } main.view-atelier .tag.tier-2, main.view-atelier .tag.tier-1 { border-color: #e2c78c; color: #8a5d10; }
main.view-atelier .tag.key { border-color: #d9b46a; color: #8a5d10; }
main.view-atelier .flags li.hard { color: #a43b33; }
main.view-atelier .ask-input { background: #fff; color: var(--text); border-color: var(--line-2); }
main.view-atelier .stat b { color: var(--text); }
main.view-atelier .dots i { background: var(--accent); }
main.view-atelier .gold { color: #fff; }

/* Atelier : panneau des sources et orientations. */
.src-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.src-head > div { flex: 1 1 360px; display: grid; gap: 6px; }
.src-score { display: flex; align-items: baseline; gap: 12px; }
.src-score b { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.src-score span { color: var(--muted); }
.src-score.ok b { color: var(--accent); } .src-score.warn b { color: #b4741a; }
.src-list { display: grid; gap: 0; margin: 14px 0 6px; }
.src-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.src-row:last-child { border-bottom: 0; }
.src-row > i { width: 9px; height: 9px; border-radius: 50%; background: #c0392b; flex: none; }
.src-row.ok > i { background: var(--accent); } .src-row.off > i { background: #b8c4c1; } .src-row.wait > i { background: #c99a3c; }
.src-row .grow { display: grid; gap: 2px; white-space: normal; }
.src-row .repair { color: var(--accent); font-size: 12.5px; }
.orient-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 14px; }
.orient-sum p { color: var(--soft); }
.orient-form { display: grid; gap: 12px; margin-top: 14px; }
.tags.off-tags li { color: var(--muted); border-style: dashed; }
@media (max-width: 760px) { .orient-sum { grid-template-columns: 1fr; } .src-score b { font-size: 36px; } }
.bot-card .kv { grid-template-columns: 1fr; gap: 2px; padding: 16px 0 6px; }
.bot-card .kv dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); }
.bot-card .kv dd { margin-bottom: 10px; color: var(--soft); }
.bot-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
main.view-atelier .link { color: var(--accent); }
main.view-atelier .tags li { background: #f3f7f5; border-color: var(--line-2); color: var(--soft); }
/* Comptes : les actions passent sous la ligne, la page ne déborde jamais. */
.acct { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.acct-actions { grid-column: 1 / -1; justify-content: flex-start; }
.acct-actions:empty, .acct-actions.muted { grid-column: auto; }
.acct-who .muted { overflow-wrap: anywhere; }
@media (max-width: 720px) { .acct { grid-template-columns: 1fr; } }
