/* =====================================================================
   Fresque de la Technologie · carte « carnet d'exploration »
   Chargée sur cette page seulement (templates/layout.php, static/css/pages/).
   Identité propre à la Fresque : nuit chaude, lumière cuivre. TOUT est
   confiné à .fresque-atlas : rien ne doit fuir sur le reste du site.
   Les animations sont préfixées fa- pour ne pas croiser celles de site.css.
   ===================================================================== */
.fresque-atlas { --night: #0e0d0b;      
  --night-2: #15130f;    
  --night-3: #1d1a15;    
  --line: #2b2721;       
  --line-2: #3a342b;
  --paper: #f1e9db;      
  --body: #cdc3b2;       
  --muted: #8c8272;
  --faint: #5a5246;
  --copper: #e09a5c;     
  --copper-2: #f3c08d;
  --copper-glow: rgba(224, 154, 92, .35);
  
  --t-influence: #ece0cb;
  --t-prolongement: #e09a5c;
  --t-opposition: #d5684f;
  --t-convergence: #93b8a4;
  --t-contraste: #b596c8;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hud-h: 60px; }
.fresque-atlas * { box-sizing: border-box; }
.fresque-atlas { margin: 0; min-height: 100vh; color: var(--body); background: var(--night);
  font: 400 17px/1.7 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; }
.fresque-atlas h1, .fresque-atlas h2, .fresque-atlas h3 { font-family: 'Fraunces', Georgia, serif; color: var(--paper); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.fresque-atlas a { color: var(--paper); }
.fresque-atlas :focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.fresque-atlas .kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fresque-atlas kbd { font: 500 11px var(--mono); color: var(--paper); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; margin: 0 2px; background: var(--night-2); }
.fresque-atlas button { font: inherit; }
.fresque-atlas .fa-bar { position: sticky; top: 0; z-index: 30; height: var(--hud-h);
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: rgba(14, 13, 11, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.fresque-atlas .hud-progress { display: flex; align-items: center; gap: 14px; margin-left: auto; font: 500 13px var(--mono); color: var(--muted); }
.fresque-atlas .hud-count b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.2ch; text-align: right; }
.fresque-atlas .hud-count b.tick { animation: fa-tick .6s var(--ease-out); }
@keyframes fa-tick { 0% { color: var(--copper-2); transform: translateY(-4px); } 100% { transform: none; } }
.fresque-atlas .hud-sep { width: 1px; height: 18px; background: var(--line-2); }
.fresque-atlas .fa-ring { --fa-p: 0; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--copper) calc(var(--fa-p) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(circle, transparent 8px, #000 8.5px);
          mask: radial-gradient(circle, transparent 8px, #000 8.5px);
  transition: --fa-p .8s var(--ease-out);
  filter: drop-shadow(0 0 6px var(--copper-glow)); }
@property --fa-p { syntax: '<number>'; inherits: false; initial-value: 0; }
.fresque-atlas .hud-actions { display: flex; gap: 8px; }
.fresque-atlas .hud-btn { font: 500 13px 'Inter', sans-serif; color: var(--body); background: transparent; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; transition: border-color .2s, color .2s, background .2s; }
.fresque-atlas .hud-btn:hover { border-color: var(--muted); color: var(--paper); }
.fresque-atlas .hud-btn[aria-pressed="true"] { border-color: var(--copper); color: var(--copper-2); }
.fresque-atlas .hud-btn-main { border-color: var(--copper); color: var(--paper); }
.fresque-atlas .hud-btn-main:hover { background: rgba(224, 154, 92, .12); }
.fresque-atlas .icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--paper); cursor: pointer; font-size: 20px; line-height: 1; display: inline-grid; place-items: center; transition: border-color .2s, background .2s; }
.fresque-atlas .icon-btn:hover { border-color: var(--copper); background: rgba(224, 154, 92, .1); }
.fresque-atlas .icon-btn:disabled { opacity: .3; cursor: default; }
.fresque-atlas .map-page { padding-bottom: 80px; }
.fresque-atlas .lede { grid-column: 1; max-width: 640px; margin: 18px 0 0; font-size: 18px; color: var(--body); }
.fresque-atlas .btn-start { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; white-space: nowrap;
  font: 600 15px 'Inter', sans-serif; color: var(--night); background: var(--copper);
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 0 0 0 var(--copper-glow);
  animation: fa-beckon 2.8s ease-in-out infinite; transition: background .2s; }
.fresque-atlas .btn-start:hover { background: var(--copper-2); }
@keyframes fa-beckon { 0%, 100% { box-shadow: 0 0 0 0 var(--copper-glow); } 50% { box-shadow: 0 0 0 10px rgba(224,154,92,0); } }
.fresque-atlas.has-progress .btn-start { animation: none; }
.fresque-atlas .map-frame { position: relative; margin: 8px 28px 0; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, #17140f 0%, var(--night) 75%); }
.fresque-atlas .corner { position: absolute; width: 14px; height: 14px; border-color: var(--copper); border-style: solid; opacity: .7; pointer-events: none; z-index: 2; }
.fresque-atlas .corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.fresque-atlas .corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.fresque-atlas .corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.fresque-atlas .corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.fresque-atlas .map-scroll { overflow-x: auto; scrollbar-color: var(--line-2) transparent; }
.fresque-atlas svg.map { display: block; width: 100%; min-width: 1100px; height: auto; max-height: calc(100vh - var(--hud-h) - 120px); font-family: 'Inter', sans-serif; }
.fresque-atlas .band rect { fill: transparent; }
.fresque-atlas .band.odd rect { fill: rgba(241, 233, 219, .018); }
.fresque-atlas .band-edge { stroke: var(--line); stroke-width: 1; }
.fresque-atlas .band-num { fill: var(--copper); font: 600 11px var(--mono); letter-spacing: .1em; opacity: .8; }
.fresque-atlas .band-name { fill: var(--paper); font: 600 12px 'Inter', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.fresque-atlas .band-era, .fresque-atlas .band-empty { fill: var(--muted); font: 400 11px var(--mono); }
.fresque-atlas .band-empty { fill: var(--faint); }
.fresque-atlas .axis { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
/* Les liens sont là dès le départ, en filigrane : le réseau se devine, les
   filtres de types agissent tout de suite, et la lecture trace chaque lien en
   entier. Avant le 2026-11-12 ils étaient invisibles tant que leurs deux
   penseurs n'étaient pas lus : un premier visiteur ne voyait que des points, et
   les filtres « Influence », « Opposition »… ne faisaient rien de visible. */
.fresque-atlas .arc { fill: none; stroke-width: 1.6; stroke-linecap: round; opacity: .13; transition: opacity .5s, stroke-width .25s; }
.fresque-atlas .arc.n-interpretation { stroke-dasharray: .012 .01; }
.fresque-atlas .arc.t-influence { stroke: var(--t-influence); }
.fresque-atlas .arc.t-prolongement_critique { stroke: var(--t-prolongement); }
.fresque-atlas .arc.t-opposition { stroke: var(--t-opposition); }
.fresque-atlas .arc.t-convergence { stroke: var(--t-convergence); }
.fresque-atlas .arc.t-contraste { stroke: var(--t-contraste); }
.fresque-atlas .arc.is-lead { opacity: .3; stroke-dasharray: .006 .014; }
.fresque-atlas .arc.is-dim { opacity: .04; }
.fresque-atlas .arc.is-hot { opacity: .7; stroke-width: 2; }
.fresque-atlas .arc.is-revealed { opacity: .85; stroke-dasharray: none; }
.fresque-atlas .arc.is-revealed.n-interpretation { stroke-dasharray: .012 .01; }
.fresque-atlas .arc.is-drawing { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 1; stroke-width: 2.4; filter: url(#fa-glow); animation: fa-draw 1.4s var(--ease-out) forwards; }
@keyframes fa-draw { to { stroke-dashoffset: 0; } }
.fresque-atlas .arc.is-dim { opacity: .06; }
.fresque-atlas .arc.is-hot { opacity: 1; stroke-width: 2.6; }
.fresque-atlas .node { cursor: pointer; text-decoration: none; outline: none; }
.fresque-atlas .node .halo { opacity: 0; transition: opacity .4s, transform .4s var(--ease-out); transform-box: fill-box; transform-origin: center; transform: scale(.6); }
.fresque-atlas .node .fa-ring { fill: var(--night); stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 2.5 3; transition: stroke .3s, fill .3s; }
.fresque-atlas .node .core { fill: var(--faint); transition: fill .3s, r .3s; }
.fresque-atlas .node .scan { fill: none; stroke: var(--copper); stroke-width: 1; stroke-dasharray: 12 88; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fresque-atlas .node-name { fill: var(--muted); font: 500 13px 'Inter', sans-serif; transition: fill .3s; }
.fresque-atlas .node-date { fill: var(--faint); font: 400 11px var(--mono); }
.fresque-atlas .node.is-lead .fa-ring { stroke: var(--copper); stroke-dasharray: none; stroke-opacity: .7; }
.fresque-atlas .node.is-lead .core { fill: var(--copper); fill-opacity: .5; }
.fresque-atlas .node.is-lead .name, .fresque-atlas .node.is-lead .node-name { fill: var(--body); }
.fresque-atlas .node.is-lead .scan { opacity: .9; animation: fa-scan 3.2s linear infinite; }
@keyframes fa-scan { to { transform: rotate(360deg); } }
.fresque-atlas .node.is-read .halo { opacity: .9; transform: scale(1); }
.fresque-atlas .node.is-read .fa-ring { fill: #2a1d12; stroke: var(--copper); stroke-dasharray: none; stroke-width: 2; }
.fresque-atlas .node.is-read .core { fill: var(--copper-2); }
.fresque-atlas .node.is-read .node-name { fill: var(--paper); }
.fresque-atlas .node.is-read .node-date { fill: var(--muted); }
.fresque-atlas .node.is-start .scan { opacity: 1; animation: fa-scan 2.4s linear infinite; }
.fresque-atlas .node.is-start .fa-ring { stroke: var(--copper); stroke-dasharray: none; }
.fresque-atlas .node.is-start .node-name { fill: var(--paper); }
.fresque-atlas .node:hover .halo, .fresque-atlas .node:focus-visible .halo { opacity: 1; transform: scale(1.15); }
.fresque-atlas .node:hover .fa-ring, .fresque-atlas .node:focus-visible .fa-ring { stroke: var(--copper-2); stroke-dasharray: none; }
.fresque-atlas .node:hover .node-name, .fresque-atlas .node:focus-visible .node-name { fill: var(--paper); }
.fresque-atlas .node:focus-visible .scan { opacity: 1; animation: fa-scan 2s linear infinite; }
.fresque-atlas .node.is-dim { opacity: .25; }
.fresque-atlas .node, .fresque-atlas .arc { transition: opacity .3s; }
.fresque-atlas .node.just-read .halo { animation: fa-flare 1.2s var(--ease-out); }
@keyframes fa-flare { 0% { transform: scale(.4); opacity: 1; } 40% { transform: scale(1.9); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }
.fresque-atlas .peek { position: absolute; z-index: 5; width: 300px; pointer-events: none;
  background: rgba(21, 19, 15, .96); border: 1px solid var(--line-2); padding: 16px 18px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(6px);
  transition: opacity .18s, transform .25s var(--ease-out); }
.fresque-atlas .peek.is-on { opacity: 1; transform: none; }
.fresque-atlas .peek::before, .fresque-atlas .peek::after { content: ''; position: absolute; width: 10px; height: 10px; border: solid var(--copper); }
.fresque-atlas .peek::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.fresque-atlas .peek::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.fresque-atlas .peek .kicker { font-size: 10.5px; }
.fresque-atlas .peek h3 { font-size: 22px; margin: 6px 0 8px; }
.fresque-atlas .peek p { margin: 0; font-size: 14px; line-height: 1.55; }
.fresque-atlas .peek .peek-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fresque-atlas .peek .peek-foot b { color: var(--copper-2); font-weight: 600; }
.fresque-atlas .legend { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; padding: 18px 40px 0; font-size: 13px; color: var(--muted); max-width: 1500px; }
.fresque-atlas .legend-group { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.fresque-atlas .legend-title { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fresque-atlas .lg-state::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.fresque-atlas .lg-state.lg-read::before { background: var(--copper-2); box-shadow: 0 0 0 2px #2a1d12, 0 0 0 3.5px var(--copper), 0 0 10px var(--copper-glow); }
.fresque-atlas .lg-state.lg-lead::before { border: 1.5px solid var(--copper); }
.fresque-atlas .lg-state.lg-unknown::before { border: 1.5px dashed var(--faint); }
.fresque-atlas .lg-type i { display: inline-block; width: 22px; height: 0; border-top: 2px solid; margin-right: 7px; vertical-align: middle; }
.fresque-atlas .lg-type.t-influence i { border-color: var(--t-influence); }
.fresque-atlas .lg-type.t-prolongement_critique i { border-color: var(--t-prolongement); }
.fresque-atlas .lg-type.t-opposition i { border-color: var(--t-opposition); }
.fresque-atlas .lg-type.t-convergence i { border-color: var(--t-convergence); }
.fresque-atlas .lg-dash i { border-top-style: dashed; border-color: var(--muted); }
.fresque-atlas .legend-keys { margin: 0 0 0 auto; font-size: 12px; }
.fresque-atlas .reader { position: fixed; inset: 0; z-index: 40; background: var(--night);
  display: flex; flex-direction: column;
  --ox: 50vw; --oy: 50vh;
  clip-path: circle(0px at var(--ox) var(--oy));
  transition: clip-path .75s var(--ease-out); }
.fresque-atlas .reader[hidden] { display: none; }
.fresque-atlas .reader.is-open { clip-path: circle(150vmax at var(--ox) var(--oy)); }
.fresque-atlas .reader.is-closing { transition-duration: .5s; transition-timing-function: cubic-bezier(.7, 0, .84, 0); }
.fresque-atlas .reader-bar { height: var(--hud-h); flex: none; display: flex; align-items: center; gap: 20px; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: var(--night-2); }
.fresque-atlas .reader-back { font: 500 14px 'Inter', sans-serif; color: var(--paper); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px 7px 12px; cursor: pointer; white-space: nowrap; }
.fresque-atlas .reader-back:hover { border-color: var(--copper); }
.fresque-atlas .reader-name { font-family: 'Fraunces', serif; color: var(--paper); font-size: 17px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.fresque-atlas .reader.is-scrolled .reader-name { opacity: 1; transform: none; }
.fresque-atlas .reader-step { display: flex; gap: 6px; margin-left: auto; }
.fresque-atlas .reader-progress { height: 2px; background: var(--line); flex: none; }
.fresque-atlas .reader-progress span { display: block; height: 100%; width: 0; background: var(--copper); box-shadow: 0 0 8px var(--copper); transition: width .1s linear; }
.fresque-atlas .reader-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.fresque-atlas .minimap { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; max-width: 620px; }
.fresque-atlas .mm-era { display: flex; align-items: center; gap: 5px; padding: 0 10px; height: 30px; border-left: 1px solid var(--line-2); position: relative; }
.fresque-atlas .mm-era:first-child { border-left: 0; }
.fresque-atlas .mm-era-n { font: 600 10px var(--mono); color: var(--faint); margin-right: 2px; }
.fresque-atlas .mm-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed var(--faint); background: transparent; padding: 0; cursor: pointer; transition: transform .2s var(--ease-out), border-color .2s, background .2s; }
.fresque-atlas .mm-dot.is-lead { border: 1.5px solid var(--copper); border-style: solid; opacity: .8; }
.fresque-atlas .mm-dot.is-read { border: 1.5px solid var(--copper); background: var(--copper-2); box-shadow: 0 0 8px var(--copper-glow); }
.fresque-atlas .mm-dot.is-current { transform: scale(1.45); border-color: var(--paper); border-style: solid; box-shadow: 0 0 0 3px var(--night-2), 0 0 0 4.5px var(--copper); }
.fresque-atlas .mm-dot:hover { transform: scale(1.35); }
.fresque-atlas .mm-dot:hover::after, .fresque-atlas .mm-dot:focus-visible::after { content: attr(data-name); position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font: 500 12px 'Inter', sans-serif; color: var(--paper); background: var(--night-3);
  border: 1px solid var(--line-2); padding: 4px 8px; pointer-events: none; z-index: 5; }
.fresque-atlas .mm-dot { position: relative; }
.fresque-atlas .reader-body { max-width: 1180px; margin: 0 auto; padding: 0 48px 96px; }
.fresque-atlas .sheet { --era: 0; }
.fresque-atlas .sheet.is-entering { animation: fa-sheet-in .55s var(--ease-out) both; }
.fresque-atlas .sheet.is-entering.from-left { animation-name: fa-sheet-in-left; }
@keyframes fa-sheet-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fa-sheet-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.fresque-atlas .sheet-hero { position: relative; padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.fresque-atlas .sheet-hero > :not(.stamp) { animation: fa-rise .7s var(--ease-out) both; }
.fresque-atlas .sheet-hero > :nth-child(2) { animation-delay: .08s; }
.fresque-atlas .sheet-hero > :nth-child(3) { animation-delay: .16s; }
@keyframes fa-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fresque-atlas .era-chip { display: inline-block; color: var(--night); background: var(--copper); padding: 1px 6px; margin-right: 6px; letter-spacing: .06em; }
.fresque-atlas .sheet-hero .sheet-title { font-size: clamp(48px, 7vw, 92px); margin: 18px 0 22px; outline: none; letter-spacing: -.03em; }
.fresque-atlas .sheet-hero .central { max-width: 780px; margin: 0; font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; color: var(--paper); }
.fresque-atlas .stamp { position: absolute; right: 0; top: 80px; margin: 0; transform: rotate(-8deg) scale(1.6); opacity: 0;
  font: 600 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--copper-2);
  border: 1.5px solid var(--copper); padding: 8px 12px; border-radius: 3px;
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4px rgba(224,154,92,.5); }
.fresque-atlas .sheet.is-read .stamp { opacity: .9; transform: rotate(-8deg) scale(1); }
.fresque-atlas .sheet.just-read .stamp { animation: fa-stamp .5s cubic-bezier(.5, 1.8, .5, 1) both; }
@keyframes fa-stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } to { opacity: .9; transform: rotate(-8deg) scale(1); } }
.fresque-atlas .sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; margin-top: 56px; }
.fresque-atlas .bloc { margin-bottom: 52px; }
.fresque-atlas .bloc h3 { display: flex; align-items: baseline; gap: 14px; font-size: 28px; margin-bottom: 16px; }
.fresque-atlas .num { font: 600 13px var(--mono); color: var(--copper); letter-spacing: .1em; padding: 3px 7px; border: 1px solid rgba(224,154,92,.4); transform: translateY(-4px); }
.fresque-atlas .bloc p { margin: 0; font-size: 18.5px; line-height: 1.75; max-width: 66ch; }
.fresque-atlas .refs { border-top: 1px solid var(--line); padding-top: 28px; font-size: 15px; }
.fresque-atlas .refs h3 { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fresque-atlas .refs p { margin: 0 0 10px; }
.fresque-atlas .lecture { color: var(--muted); font-style: italic; }
.fresque-atlas .leads { position: sticky; top: 24px; align-self: start; }
.fresque-atlas .leads h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.fresque-atlas .leads-count { font: 600 12px var(--mono); color: var(--night); background: var(--copper); border-radius: 999px; padding: 2px 8px; }
.fresque-atlas .leads-hint { font-size: 14px; color: var(--muted); margin: 8px 0 18px; line-height: 1.5; }
.fresque-atlas .leads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fresque-atlas .lead { display: grid; gap: 4px; text-decoration: none; position: relative; overflow: hidden;
  padding: 14px 16px 14px 18px; background: var(--night-2); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .25s var(--ease-out); }
.fresque-atlas .lead::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted); }
.fresque-atlas .lead.t-influence::before { background: var(--t-influence); }
.fresque-atlas .lead.t-prolongement_critique::before { background: var(--t-prolongement); }
.fresque-atlas .lead.t-opposition::before { background: var(--t-opposition); }
.fresque-atlas .lead.t-convergence::before { background: var(--t-convergence); }
.fresque-atlas .lead.t-contraste::before { background: var(--t-contraste); }
.fresque-atlas .lead.n-interpretation::before { background: repeating-linear-gradient(to bottom, currentColor 0 5px, transparent 5px 9px); }
.fresque-atlas .lead.n-interpretation.t-influence::before { color: var(--t-influence); }
.fresque-atlas .lead.n-interpretation.t-prolongement_critique::before { color: var(--t-prolongement); }
.fresque-atlas .lead.n-interpretation.t-opposition::before { color: var(--t-opposition); }
.fresque-atlas .lead.n-interpretation.t-convergence::before { color: var(--t-convergence); }
.fresque-atlas .lead.n-interpretation.t-contraste::before { color: var(--t-contraste); }
.fresque-atlas .lead:hover, .fresque-atlas .lead:focus-visible { border-color: var(--copper); background: var(--night-3); transform: translateX(-3px); }
.fresque-atlas .lead-top { display: flex; justify-content: space-between; gap: 8px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fresque-atlas .lead-state::before { content: attr(data-off); color: var(--copper-2); }
.fresque-atlas .lead.is-read .lead-state::before { content: '✓ ' attr(data-on); color: var(--muted); }
.fresque-atlas .lead:not(.is-read) { border-color: rgba(224,154,92,.28); }
.fresque-atlas .lead:not(.is-read)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(224,154,92,.08) 50%, transparent 70%); background-size: 250% 100%; animation: fa-shimmer 3.5s ease-in-out infinite; }
@keyframes fa-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.fresque-atlas .lead-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 21px; color: var(--paper); }
.fresque-atlas .lead-type { font-size: 12.5px; color: var(--muted); }
.fresque-atlas .lead-text { font-size: 14.5px; line-height: 1.55; color: var(--body); margin-top: 4px; }
.fresque-atlas .lead-src { font-size: 12px; color: var(--faint); }
.fresque-atlas .sheet-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.fresque-atlas .sheet-nav a { text-decoration: none; font-family: 'Fraunces', serif; font-size: 22px; transition: color .2s; }
.fresque-atlas .sheet-nav a:hover { color: var(--copper-2); }
.fresque-atlas .sheet-nav a span { display: block; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fresque-atlas .sheet-nav .next { text-align: right; }
.fresque-atlas .copy { font: 500 13px 'Inter', sans-serif; color: var(--body); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.fresque-atlas .copy:hover { border-color: var(--copper); color: var(--paper); }
.fresque-atlas .carnet { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 50;
  background: var(--night-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column;
  box-shadow: -30px 0 60px rgba(0,0,0,.5); animation: fa-slide-in .35s var(--ease-out); }
.fresque-atlas .carnet[hidden] { display: none; }
@keyframes fa-slide-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.fresque-atlas .carnet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.fresque-atlas .carnet-head h2 { font-size: 24px; }
.fresque-atlas .carnet-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.fresque-atlas .carnet-era { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fresque-atlas .carnet-era h3 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.fresque-atlas .carnet-era h3 b { color: var(--copper-2); font-weight: 600; }
.fresque-atlas .carnet-era ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fresque-atlas .carnet-era li button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.fresque-atlas .carnet-era li button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--faint); flex: none; }
.fresque-atlas .carnet-era li.is-read button { color: var(--paper); }
.fresque-atlas .carnet-era li.is-read button::before { border: 1.5px solid var(--copper); background: var(--copper-2); }
.fresque-atlas .carnet-era li button:hover, .fresque-atlas .carnet-era li button:focus-visible { color: var(--copper-2); }
.fresque-atlas .carnet-links { padding: 16px 0; }
.fresque-atlas .carnet-links h3 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fresque-atlas .carnet-links p { font-size: 14px; margin: 0 0 6px; color: var(--body); }
.fresque-atlas .carnet-links .empty { color: var(--faint); font-style: italic; }
.fresque-atlas .carnet-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fresque-atlas .carnet-foot p { margin: 0 0 12px; }
.fresque-atlas .toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.fresque-atlas .toast { display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 14px;
  background: rgba(29, 26, 21, .97); border: 1px solid var(--line-2); border-left: 3px solid var(--copper);
  font-size: 14px; color: var(--paper); box-shadow: 0 12px 30px rgba(0,0,0,.45);
  animation: fa-toast-in .45s var(--ease-out) both; }
.fresque-atlas .toast small { display: block; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-2); }
.fresque-atlas .toast.out { animation: fa-toast-out .35s ease-in forwards; }
@keyframes fa-toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fa-toast-out { to { opacity: 0; transform: translateY(8px); } }
.fresque-atlas.reveal-all .arc { opacity: .75; stroke-dasharray: none; }
.fresque-atlas.reveal-all .arc.n-interpretation { stroke-dasharray: .012 .01; }
.fresque-atlas.reveal-all .arc.is-dim { opacity: .06; }
.fresque-atlas.reveal-all .arc.is-hot { opacity: 1; }
.fresque-atlas.reveal-all .node .fa-ring { stroke: var(--copper); stroke-dasharray: none; }
.fresque-atlas.reveal-all .node .node-name { fill: var(--paper); }
@media (max-width: 900px) {
.fresque-atlas .fa-bar { padding: 0 14px; gap: 12px; }
.fresque-atlas .hud-count span { display: none; }
.fresque-atlas .map-frame { margin: 8px 12px 0; }
.fresque-atlas .legend { padding: 16px 20px 0; }
.fresque-atlas .legend-keys { display: none; }
.fresque-atlas .reader-bar { gap: 10px; padding: 0 12px; }
.fresque-atlas .reader-name { display: none; }
.fresque-atlas .mm-era { padding: 0 5px; gap: 3px; }
.fresque-atlas .mm-era-n { display: none; }
.fresque-atlas .reader-body { padding: 0 20px 72px; }
.fresque-atlas .sheet-hero { padding-top: 40px; }
.fresque-atlas .stamp { position: static; display: inline-block; margin-top: 22px; }
.fresque-atlas .sheet:not(.is-read) .stamp { display: none; }
.fresque-atlas .sheet-grid { grid-template-columns: 1fr; gap: 24px; }
.fresque-atlas .leads { position: static; }
}
@media (prefers-reduced-motion: reduce) {
.fresque-atlas *, .fresque-atlas *::before, .fresque-atlas *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.fresque-atlas .reader { clip-path: none !important; }
}
.fresque-atlas .btn-start[hidden] { display: none; }
.fresque-atlas .legend-how { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--body); order: -1; }
.fresque-atlas .lede a { color: var(--paper); text-decoration-color: var(--copper); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fresque-atlas .lede a:hover { color: var(--copper-2); }
.fresque-atlas .carnet.about { width: min(560px, 100vw); }
.fresque-atlas .about-body section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fresque-atlas .about-body section:last-child { border-bottom: 0; }
.fresque-atlas .about-body h3 { font-size: 21px; margin-bottom: 10px; }
.fresque-atlas .about-body p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.65; }
.fresque-atlas .about-body a { color: var(--paper); text-decoration-color: var(--copper); text-underline-offset: 3px; }
.fresque-atlas .about-body a:hover { color: var(--copper-2); }
.fresque-atlas .about-types { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.fresque-atlas .about-types i, .fresque-atlas .about-line { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--muted); margin-right: 10px; vertical-align: middle; }
.fresque-atlas .about-types .t-influence i { border-color: var(--t-influence); }
.fresque-atlas .about-types .t-prolongement_critique i { border-color: var(--t-prolongement); }
.fresque-atlas .about-types .t-opposition i { border-color: var(--t-opposition); }
.fresque-atlas .about-types .t-convergence i { border-color: var(--t-convergence); }
.fresque-atlas .about-types .t-contraste i { border-color: var(--t-contraste); }
.fresque-atlas .about-line.dash { border-top-style: dashed; }
.fresque-atlas .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(21, 19, 15, .7); position: relative; z-index: 3; }
.fresque-atlas .filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fresque-atlas .filter-title { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.fresque-atlas .chip { display: inline-flex; align-items: center; gap: 7px; font: 500 13px 'Inter', sans-serif; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: color .2s, border-color .2s, background .2s, opacity .2s; }
.fresque-atlas .chip:hover { color: var(--paper); border-color: var(--muted); }
.fresque-atlas .chip b { font: 600 11px var(--mono); color: var(--faint); }
.fresque-atlas .chip[role="radio"].is-on { color: var(--night); background: var(--copper); border-color: var(--copper); }
.fresque-atlas .chip[role="radio"].is-on b { color: rgba(14,13,11,.7); }
.fresque-atlas .chip.st-read i, .fresque-atlas .chip.st-lead i, .fresque-atlas .chip.st-unread i { width: 10px; height: 10px; border-radius: 50%; }
.fresque-atlas .chip.st-read i { background: var(--copper-2); box-shadow: 0 0 0 1.5px var(--copper); }
.fresque-atlas .chip.st-lead i { border: 1.5px solid var(--copper); }
.fresque-atlas .chip.st-unread i { border: 1.5px dashed var(--faint); }
.fresque-atlas .chip[role="radio"].is-on i { box-shadow: none; border-color: var(--night); }
.fresque-atlas .chip.st-read.is-on i { background: var(--night); }
.fresque-atlas .chip.lk i { width: 18px; height: 0; border-top: 2px solid var(--muted); }
.fresque-atlas .chip.lk.t-influence i { border-color: var(--t-influence); }
.fresque-atlas .chip.lk.t-prolongement_critique i { border-color: var(--t-prolongement); }
.fresque-atlas .chip.lk.t-opposition i { border-color: var(--t-opposition); }
.fresque-atlas .chip.lk.t-convergence i { border-color: var(--t-convergence); }
.fresque-atlas .chip.lk.t-contraste i { border-color: var(--t-contraste); }
.fresque-atlas .chip.lk-dash i { border-top-style: dashed; }
.fresque-atlas .chip.lk.is-on { color: var(--paper); }
.fresque-atlas .chip.lk:not(.is-on) { opacity: .45; text-decoration: line-through; text-decoration-color: var(--faint); }
.fresque-atlas .chip-reveal { margin-left: auto; font-size: 12px; border-style: dashed; }
.fresque-atlas .chip-reveal[aria-pressed="true"] { color: var(--copper-2); border-color: var(--copper); border-style: solid; }
.fresque-atlas .map-caption { margin: 12px 40px 0; font-size: 13px; color: var(--muted); }
.fresque-atlas .node.is-filtered { opacity: .14; }
.fresque-atlas .node.is-filtered .scan { animation: none; opacity: 0; }
.fresque-atlas .arc.is-off { display: none; }
.fresque-atlas .arc.is-filtered { opacity: .03; }
.fresque-atlas .about-keys { line-height: 2.1 !important; }
@media (max-width: 900px) {
.fresque-atlas .filters { gap: 10px 16px; padding: 10px 12px; }
.fresque-atlas .chip-reveal { margin-left: 0; }
.fresque-atlas .map-caption { margin: 10px 20px 0; }
}
.fresque-atlas.reveal-all .arc.is-filtered { opacity: .05; }
.fresque-atlas .filters { gap: 10px 20px; padding: 10px 14px; }
.fresque-atlas .chip { padding: 4px 10px; font-size: 12.5px; gap: 6px; }
.fresque-atlas .filter-group { gap: 5px; }
.fresque-atlas .chip.lk i { width: 14px; }
.fresque-atlas svg.map { width: auto; min-width: 0; max-height: none; }
.fresque-atlas .map-viewport { position: relative; }
.fresque-atlas .map-scroll { overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: thin; }
.fresque-atlas .map-frame.is-dragging .map-scroll { cursor: grabbing; user-select: none; }
.fresque-atlas .map-frame.is-dragging .node { pointer-events: none; }
.fresque-atlas .pan { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 40px; height: 64px; display: grid; place-items: center; cursor: pointer;
  font-size: 26px; color: var(--paper); background: rgba(21, 19, 15, .88);
  border: 1px solid var(--line-2); transition: opacity .25s, border-color .2s; }
.fresque-atlas .pan:hover { border-color: var(--copper); color: var(--copper-2); }
.fresque-atlas .pan-prev { left: 0; border-left: 0; border-radius: 0 6px 6px 0; }
.fresque-atlas .pan-next { right: 0; border-right: 0; border-radius: 6px 0 0 6px; }
.fresque-atlas .pan:disabled, .fresque-atlas .map-frame:not(.is-scrollable) .pan { opacity: 0; pointer-events: none; }
.fresque-atlas .map-frame.is-scrollable .map-viewport::before, .fresque-atlas .map-frame.is-scrollable .map-viewport::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 3; pointer-events: none; }
.fresque-atlas .map-frame.is-scrollable .map-viewport::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.fresque-atlas .map-frame.is-scrollable .map-viewport::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.fresque-atlas .map-frame.is-overview .map-scroll { cursor: default; }
.fresque-atlas .map-frame.is-overview .node-name, .fresque-atlas .map-frame.is-overview .node-date { display: none; }
.fresque-atlas .map-frame.is-overview .band-name { font-size: 22px; }
.fresque-atlas .map-frame.is-overview .band-era, .fresque-atlas .map-frame.is-overview .band-num { font-size: 19px; }
.fresque-atlas .map-frame.is-overview .node .fa-ring { stroke-width: 3; }
.fresque-atlas .map-frame.is-overview .arc { stroke-width: 3; }
.fresque-atlas .chip-view[aria-pressed="true"] { color: var(--night); background: var(--copper); border-color: var(--copper); }
.fresque-atlas .filter-end { margin-left: auto; }
.fresque-atlas .chip-reveal { margin-left: 0; }
.fresque-atlas .refs-label { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-style: normal; margin-right: 6px; }
.fresque-atlas .refs-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fresque-atlas .lead-verif { font-style: normal; color: var(--faint); }
.fresque-atlas .lead-verif.v-texte { color: var(--t-convergence); }
.fresque-atlas .lead-verif.v-secondaire { color: var(--t-influence); }
.fresque-atlas .lead-src a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.fresque-atlas .lead-reserve { font-size: 13px; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; margin-top: 4px; }
.fresque-atlas .fa-review { margin: 14px 0 0; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--faint); }
@media (max-width: 900px) {
.fresque-atlas .pan { display: none; }
.fresque-atlas .filter-end { margin-left: 0; }
}
.fresque-atlas .minimap { max-width: none; gap: 0; }
.fresque-atlas .mm-era { gap: 3px; padding: 0 7px; }
.fresque-atlas .mm-dot { width: 9px; height: 9px; }
.fresque-atlas .mm-era-n { margin-right: 3px; }
.fresque-atlas .reader-name { flex: 0 1 220px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1600px) {
.fresque-atlas .filter-title { display: none; }
}
.fresque-atlas .map-frame.is-overview .band-era { display: none; }
.fresque-atlas .map-frame.is-overview .band-name { font-size: 17px; letter-spacing: .04em; }
.fresque-atlas .hud-btn { white-space: nowrap; }
@media (max-width: 900px) {
.fresque-atlas .fa-bar { gap: 8px; }
.fresque-atlas .hud-btn { padding: 6px 10px; font-size: 12.5px; }
.fresque-atlas .hud-progress { gap: 8px; }
.fresque-atlas .fa-bar .fa-ring { display: none; }
.fresque-atlas .mm-era { padding: 0 3px; gap: 2px; }
.fresque-atlas .mm-dot { width: 7px; height: 7px; }
}

/* ===================== Intégration à la page du site ===================== */
/* La section entière prend la nuit de la Fresque, signalement compris. */
.fresque-section { background: #0e0d0b; }
.fresque-section .fresque-report { color: #cdc3b2; }
.fresque-section .fresque-report a { color: #f1e9db; }

.fresque-atlas { position: relative; padding: 44px 0 8px; isolation: isolate; }
/* Grain de papier, limité à la section (fixe sur toute la fenêtre dans le prototype). */
.fresque-atlas::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fresque-atlas > * { position: relative; z-index: 1; }

.fresque-atlas .fa-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; padding: 0 40px 22px; }
.fresque-atlas .fa-title { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 14px; }
.fresque-atlas .fa-head .lede { max-width: 760px; margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--paper); }
.fresque-atlas .fa-head .lede a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.fresque-atlas .fa-head .lede a:hover { color: var(--copper-2); }
.fresque-atlas .intro-cta { margin: 0; }

/* La barre d'outils de la carte : en flux, plus collante comme dans le prototype. */
.fresque-atlas .fa-bar { position: static; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px 12px; background: none; backdrop-filter: none; border: 0; }
.fresque-atlas .fa-bar .hud-progress { margin-left: 0; }

/* Superpositions au-dessus de la barre latérale et de tout le reste du site. */
.fresque-atlas .reader { z-index: 1000; }
.fresque-atlas .carnet { z-index: 1001; }
.fresque-atlas .toasts { z-index: 1002; }
.fresque-atlas .peek { z-index: 20; }

.fresque-atlas .refs-links .js-report { color: var(--muted); }
.fresque-atlas .refs-links .js-report:hover { color: var(--copper-2); }

@media (max-width: 900px) {
  .fresque-atlas .fa-head { grid-template-columns: 1fr; padding: 0 20px 18px; }
  .fresque-atlas .fa-bar { padding: 0 14px 10px; flex-wrap: wrap; }
}

/* ===================== Lien et page « pleine page » ===================== */
.fresque-atlas .fa-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fresque-atlas .fa-fullpage { margin: 0; font-size: 14px; }
.fresque-atlas .fa-fullpage a { color: var(--body); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.fresque-atlas .fa-fullpage a:hover { color: var(--copper-2); border-color: var(--copper); }

/* Carte seule, sans colonne latérale : la page entière prend la nuit de la Fresque. */
.fresque-standalone { min-height: 100vh; background: #0e0d0b; color: #cdc3b2; }
.fresque-standalone .fs-bar {
  display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 28px;
  border-bottom: 1px solid #2b2721; font: 500 14px 'Inter', system-ui, sans-serif;
}
.fresque-standalone .fs-bar a { color: #cdc3b2; text-decoration: none; }
.fresque-standalone .fs-bar a:hover { color: #f3c08d; }
.fresque-standalone .fs-back { font-family: 'Fraunces', Georgia, serif; font-size: 17px; color: #f1e9db !important; }
.fresque-standalone .fs-site { margin-left: auto; color: #8c8272 !important; }
.fresque-standalone .fs-lang { font: 600 12px ui-monospace, Menlo, monospace; letter-spacing: .1em; border: 1px solid #3a342b; border-radius: 999px; padding: 5px 10px; }
.fresque-atlas.is-standalone { padding-top: 28px; }
.fresque-atlas.is-standalone .fa-title { font-size: clamp(30px, 3.2vw, 44px); }
@media (max-width: 900px) {
  .fresque-standalone .fs-bar { padding: 0 14px; gap: 14px; }
  .fresque-standalone .fs-site { display: none; }
  .fresque-atlas .fa-head-actions { align-items: flex-start; }
}
