/* Atlas interne — palette, typographies et composants alignés sur style.css. */
:root {
  color-scheme: dark;
  --bg: #0c0f0f;
  --bg-2: #111515;
  --surface: #171c1c;
  --surface-2: #1d2323;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f4f6f5;
  --text-muted: #9aa3a1;
  --accent: #6c8cff;
  --accent-2: #8affd1;
  --accent-soft: rgba(108, 140, 255, .14);
  --glass-bg: rgba(20, 25, 25, .55);
  --glass-border: rgba(255, 255, 255, .10);
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", var(--font-serif);
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .35; }
header, main { position: relative; z-index: 1; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, a { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
:where(button, a, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
header { display: flex; align-items: center; gap: 26px; min-height: 60px; margin: 16px var(--pad) 0; padding-right: 8px; border: 1px solid var(--glass-border); border-radius: 4px; background: var(--glass-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 0 22px; border-right: 1px solid var(--glass-border); }
.brand img { display: block; height: 55px; width: auto; }
.brand:hover { background: rgba(255,255,255,.06); }
.header-label { font: 10px/1.8 var(--font-mono); letter-spacing: .1em; }
.header-label span { color: var(--text-muted); }
.outline, .primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 5px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.outline { margin-left: auto; }
.outline:hover, .primary:hover { background: var(--accent-2); }
main { max-width: 1600px; margin: auto; padding: 0 var(--pad); }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 28px 0; }
.eyebrow { font: 11px/1.7 var(--font-mono); letter-spacing: .12em; color: var(--accent); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); margin-right: 8px; }
h1 { margin: 0; font: 500 clamp(38px, 5.4vw, 78px)/1.04 var(--font-sans); letter-spacing: -.02em; }
h1 em { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
.lede { font-size: clamp(15px, 1.1vw, 17px); color: var(--text-muted); margin: 0; }
.edition { flex-shrink: 0; text-align: right; padding-bottom: 4px; }
.edition strong { font: 500 clamp(40px, 4vw, 58px)/1.1 var(--font-mono); letter-spacing: -.04em; }
.edition strong span, .edition > span { font: 10px/1.6 var(--font-mono); letter-spacing: .08em; color: var(--text-muted); }
.edition p { font-size: 13px; color: var(--text-muted); margin: 12px 0 0; }
.toolbar { display: flex; justify-content: space-between; gap: 20px; border-block: 1px solid var(--line); }
.tabs { display: flex; gap: 24px; }
.tabs button { padding: 18px 0; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tabs button:hover, .tabs button.active { color: var(--text); }
.tabs button.active { border-color: var(--accent); }
.tabs span { font: 10px var(--font-mono); margin-left: 7px; background: var(--surface-2); border-radius: 4px; padding: 3px 6px; }
.search { display: flex; align-items: center; gap: 8px; width: 320px; }
.search > span { font-size: 25px; }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; padding: 10px 0; font-size: 13px; }
.search input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
.deck-heading { display: flex; justify-content: space-between; gap: 16px; font: 10px/1.6 var(--font-mono); letter-spacing: .08em; color: var(--text-muted); margin: 24px 0 14px; }
.deck-heading > span:last-child span { font-size: 18px; margin-left: 8px; }
.deck { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.card { flex: 0 0 100%; scroll-snap-align: start; border: 1px solid var(--glass-border); display: grid; grid-template-columns: 1.05fr 1fr; min-width: 0; background: var(--glass-bg); border-radius: var(--radius); overflow: hidden; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.bio { padding: clamp(24px, 3vw, 42px); min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.serial { font: 10px/1.6 var(--font-mono); letter-spacing: .08em; color: var(--text-muted); }
.favorite { flex-shrink: 0; font-size: 23px; line-height: 1; border: 1px solid var(--line-strong); border-radius: 50%; height: 44px; width: 44px; color: var(--text-muted); }
.favorite:hover { border-color: var(--accent); color: var(--text); }
.favorite[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.identity { display: flex; align-items: center; gap: 16px; margin: 24px 0 20px; }
.avatar { flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font: 500 22px var(--font-sans); color: var(--accent); }
.identity h2 { font: 500 clamp(25px, 2.4vw, 36px)/1.1 var(--font-sans); letter-spacing: -.02em; margin: 0 0 8px; overflow-wrap: anywhere; }
.identity p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.role { display: inline-flex; font: 10px/1.6 var(--font-mono); letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line); color: var(--accent-2); border-radius: 100px; text-transform: uppercase; }
.summary { font-size: 14px; line-height: 1.75; margin: 20px 0; }
.facts { display: flex; gap: 22px; border-block: 1px solid var(--line); padding: 16px 0; }
.facts div { flex: 1; min-width: 0; }
.facts dt, .mission > span { font: 10px/1.6 var(--font-mono); letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.tag { font: 11px/1.5 var(--font-mono); padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-muted); }
.mission { font-size: 14px; line-height: 1.65; }
.mission > span { display: block; }
.card-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.card-actions a, .source-links a, .web-note a { font-size: 12px; color: var(--accent); }
a:hover { color: var(--accent-2); }
.radar-panel { border-left: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: center; min-width: 0; background: radial-gradient(ellipse at center, var(--accent-soft), transparent 75%); }
.radar-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 10px/1.6 var(--font-mono); letter-spacing: .04em; }
.radar-heading span:last-child { color: var(--text-muted); }
.radar { width: 100%; max-height: 410px; display: block; margin: 12px auto; }
.radar text { fill: var(--text); font: 12px var(--font-sans); }
.radar .symbol { font: 16px var(--font-mono); fill: var(--accent); }
.radar .value-label { font: 11px var(--font-mono); fill: var(--accent-2); }
.radar-legend { font: 9px/1.7 var(--font-mono); color: var(--text-muted); text-align: center; }
.radar-legend i { display: inline-block; background: var(--accent-2); width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; }
.skills-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.skill-mini { font-size: 11px; color: var(--text-muted); }
.skill-mini div { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 7px; }
.skill-mini div > span:last-child { font-family: var(--font-mono); }
.bar { height: 3px; background: var(--surface-2); }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 30px; }
.pager > span { font: 11px var(--font-mono); min-width: 70px; color: var(--text-muted); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.dots button { width: 17px; height: 32px; padding: 8px 4px; }
.dots button::after { content: ""; display: block; width: 5px; height: 5px; background: var(--text-muted); opacity: .4; border-radius: 50%; }
.dots button.active::after { background: var(--accent-2); opacity: 1; width: 12px; border-radius: 4px; }
.arrows { display: flex; gap: 8px; }
.arrows button { height: 44px; width: 44px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 20px; }
.arrows button:last-child { background: var(--accent); color: var(--bg); }
.arrows button:hover:enabled { background: var(--accent-2); color: var(--bg); }
button:disabled { opacity: .3; cursor: default; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 20px; align-items: center; padding: 24px 0 32px; color: var(--text-muted); font: 10px/1.7 var(--font-mono); }
footer > span { letter-spacing: .08em; }
.text-button { font: 11px/1.6 var(--font-mono); color: var(--accent); text-decoration: underline; text-underline-offset: 4px; padding-block: 10px; }
dialog { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 36px; width: min(850px, 92vw); max-height: 88vh; box-shadow: 0 30px 100px #0009; }
dialog::backdrop { background: #0c0f0fcc; backdrop-filter: blur(8px); }
dialog h2 { font: 500 clamp(28px, 4vw, 40px)/1.1 var(--font-sans); letter-spacing: -.02em; }
dialog p { font-size: 14px; line-height: 1.75; color: var(--text-muted); }
dialog .close { float: right; font-size: 28px; width: 44px; height: 44px; margin: -12px -12px 0 12px; border-radius: 4px; }
dialog .close:hover { background: var(--surface-2); }
dialog h3 { font-size: 17px; font-weight: 500; margin-top: 28px; }
.tree { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tree > div { border-left: 2px solid var(--accent); padding: 0 14px; }
.tree strong { font-size: 14px; font-weight: 500; }
.tree p { margin: 8px 0; font-size: 13px; }
.evidence-row { border-bottom: 1px solid var(--line); padding: 16px 0; }
.evidence-row label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.evidence-row select { max-width: 55%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; padding: 8px; }
.evidence-row p { margin: 8px 0; font-size: 13px; }
.source { font: 10px/1.7 var(--font-mono); color: var(--text-muted); }
.web-note { padding: 12px 16px; margin-bottom: 12px; background: var(--accent-soft); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); }
.web-note a { display: block; overflow-wrap: anywhere; }
.note-label { display: block; font: 12px var(--font-mono); margin: 24px 0 10px; }
textarea { width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); resize: vertical; min-height: 110px; font-size: 15px; }
.detail-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; }
details { margin-top: 24px; }
summary { cursor: pointer; font-size: 14px; }
details .answer { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
details .answer p { white-space: pre-wrap; overflow-wrap: anywhere; }
.answer h4 { font-size: 13px; line-height: 1.6; font-weight: 500; }
.source-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--accent-2); color: var(--bg); padding: 12px 20px; border-radius: 5px; font-size: 13px; z-index: 20; display: none; max-width: calc(100vw - 40px); width: max-content; }
#toast.visible { display: block; }
[hidden] { display: none !important; }
@media (min-width: 1728px) { header { max-width: 1472px; margin-inline: auto; } }
@media (max-width: 1000px) { .edition { display: none; } .card { grid-template-columns: 1fr 1fr; } .bio, .radar-panel { padding: 24px; } .skills-mini { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  header { margin-top: 12px; gap: 10px; }
  .header-label { display: none; }
  .brand { padding-inline: 14px; }
  .brand img { height: 48px; }
  .outline { font-size: 11px; padding-inline: 12px; max-width: 210px; }
  .intro { padding: 34px 0 28px; }
  h1 { font-size: clamp(34px, 7.4vw, 56px); }
  .toolbar { flex-direction: column; gap: 0; }
  .search { width: 100%; padding: 6px 0; }
  .search input, textarea, select { font-size: 16px; }
  .tabs { gap: 22px; }
  .tabs button { padding: 15px 0; }
  .card { grid-template-columns: 1fr; }
  .radar-panel { border-left: 0; border-top: 1px solid var(--line); }
  .radar { max-height: 360px; }
  .deck-heading { font-size: 9px; letter-spacing: 0; }
  .tree { grid-template-columns: 1fr; }
  .dots { max-width: 190px; gap: 1px; }
  .dots button { width: 12px; }
  footer { flex-wrap: wrap; gap: 8px; }
  dialog { padding: 24px; }
}
@media (max-width: 420px) {
  .bio, .radar-panel { padding: 20px; }
  .facts { flex-direction: column; gap: 14px; }
  .pager { flex-wrap: wrap; }
  .dots { order: 3; flex-basis: 100%; max-width: none; }
  .evidence-row label { align-items: flex-start; flex-direction: column; }
  .evidence-row select { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Comparaison des dossiers : repères de l’échelle relative. */
.axis-reference { padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--accent-soft); }
.evidence-row .axis-reference, .tree .axis-reference { font-size: 12px; line-height: 1.65; }
.tier-badge { display: inline-flex; margin-top: 18px; padding: 6px 10px; border: 1px solid var(--accent-2); border-radius: 5px; color: var(--accent-2); background: rgba(138,255,209,.06); font: 11px/1.6 var(--font-mono); letter-spacing: .05em; }
.assessment-status { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 5px; font-family: var(--font-mono); }
.evidence-row .assessment-status { font-size: 11px; color: var(--accent-2); }
.interest-fit { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 14px 0; margin-top: 16px; border-block: 1px solid var(--line); }
.interest-fit > span { font: 10px/1.6 var(--font-mono); color: var(--text-muted); }
.interest-fit strong { font: 500 20px var(--font-mono); color: var(--accent-2); }
.interest-fit small { grid-column: 1 / -1; color: var(--text-muted); font-size: 11px; }
.evidence-row .interest-axis { font: 11px/1.6 var(--font-mono); color: var(--accent); }
.investment-note { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; margin-top: 12px; background: var(--accent-soft); border-radius: 5px; font-size: 12px; }
.investment-note strong { color: var(--accent-2); font-weight: 500; }
.investment-note small { color: var(--text-muted); font-size: 11px; }
