:root {
  color-scheme: light;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #8a8983;
  --rule: #e4e2dc;
  --role-enr: #2a78d6;
  --role-mix: #eb6834;
  --role-both: #1baf7a;
  --role-na: #9a988f;
  --fact: #52514e;
  --era-perry: rgba(176, 138, 64, 0.13);   /* ocre désaturé : hors des couleurs de rôle */
  --era-spectra: rgba(122, 104, 168, 0.10); /* mauve désaturé */
  --era-gap: transparent;
  --st-intl: #a8863f;
  --hatch: rgba(0, 0, 0, 0.07);
  --label-w: 210px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #1b1a21; --surface-2: #24222c; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #8d8c84;
    --rule: #34313d; --role-enr: #3987e5; --role-mix: #d95926; --role-both: #199e70; --role-na: #77756d; --fact: #e4e2da;
    --era-perry: rgba(196, 160, 96, 0.14); --era-spectra: rgba(150, 132, 200, 0.12);
    --era-gap: transparent; --hatch: rgba(255, 255, 255, 0.07); --st-intl: #c2a165;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1b1a21; --surface-2: #24222c; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #8d8c84;
  --rule: #34313d; --role-enr: #3987e5; --role-mix: #d95926; --role-both: #199e70; --role-na: #77756d; --fact: #e4e2da;
  --era-perry: rgba(196, 160, 96, 0.14); --era-spectra: rgba(150, 132, 200, 0.12);
  --era-gap: transparent; --hatch: rgba(255, 255, 255, 0.07); --st-intl: #c2a165;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--surface); color: var(--ink); font: 13px/1.4 var(--font);
  display: grid; grid-template-rows: auto auto 1fr auto auto; overflow: hidden;
}
a { color: inherit; }

/* En-tête d'hommage : détaché du contenu, un ton plus officiel */
:root { --surface-0: #f4f2ec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --surface-0: #131218; } }
:root[data-theme="dark"] { --surface-0: #131218; }
.masthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 28px 32px 26px; background: var(--surface-0); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand .logo { height: 78px; width: auto; display: block; border-radius: 8px; flex: none; }
/* Néon sur fond noir : plaque noire en mode clair, fondu dans la surface en mode sombre */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo { mix-blend-mode: screen; } }
:root[data-theme="dark"] .brand .logo { mix-blend-mode: screen; }
.kicker { display: none; margin: 0 0 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); } /* masqué, gardé dans le HTML */
/* Titre en Poiret One : trait fin et esprit art déco, comme le néon du logo */
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: 0; font-family: "Poiret One", var(--font); }
.lede { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; max-width: 88ch; } /* deux lignes sur grand écran */

/* Réglages (langue, thème) */
.settings { position: relative; flex: none; }
.settings-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--rule); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.settings-btn:hover, .settings-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.settings-btn:focus-visible { outline: 2px solid var(--role-enr); }
.settings-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 240px; padding: 14px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.settings-label { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.settings-label + .seg { margin-bottom: 14px; }
.seg { display: flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.seg button:hover { color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--role-enr); outline-offset: -2px; }

/* Onglets : la frise, André Perry, Regards */
/* Barre d'onglets sur un fond légèrement différent, pour la distinguer de l'en-tête et de la frise */
.tabs { display: flex; flex-direction: column; align-items: stretch; padding: 0 32px;
  background: var(--surface-2); border-bottom: 1px solid var(--rule); }
/* Les onglets commencent sous le titre « A tribute… » : largeur du logo (ratio 1640/760) + espace, moins le retrait de l'onglet */
.tab-list { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(78px * 1640 / 760 + 24px - 14px); }
.tab-list::-webkit-scrollbar { display: none; }
.tab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  padding: 12px 14px 10px; font-size: 13px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--role-enr); outline-offset: -2px; }
#search { width: 280px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface-2); color: var(--ink); font: inherit; }
/* Timeline tools sit on their own row under the tabs */
.tab-icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.frise-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.frise-tools[hidden] { display: none; }
.sort-switch { display: grid; grid-template-columns: 1fr 1fr; width: 260px; flex: none; }
.sort-switch button { padding: 6px 10px; }

/* Pages André Perry et Regards : colonne de lecture */
/* Le titre de chaque section répète le nom de l'onglet : masqué, gardé dans le HTML */
.page-body > h2:first-child { display: none; }
/* Perspectives : la photo d'ouverture est retirée de l'affichage (gardée dans les données) */
#page-regards > figure:first-of-type { display: none; }
/* Onglet André Perry masqué (la page reste dans le code) ; un court portrait s'affiche dans Perspectives */
.tab[data-view="perry"] { display: none; }
/* Onglet Perspectives masqué en attendant (la page et ses données restent dans le code) */
.tab[data-view="regards"] { display: none; }
.perry-note { margin: 24px 0 8px; padding: 18px 20px; border: 0; border-radius: 14px; background: #222224; }
.perry-note .section-title { margin-top: 0; }
.view.page { overflow: auto; }
.page-body { max-width: 760px; margin: 0 auto; padding: 32px 32px 64px; }
.page-body h2 { margin: 0 0 4px; font-size: 28px; font-family: "Poiret One", var(--font); font-weight: 400; }
.page-body .artist { color: var(--ink-2); margin-bottom: 16px; }
.page-body h3 { font-size: 13px; margin: 32px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.page-body .fact-body { font-size: 15px; line-height: 1.6; }
.page-body .fine { color: var(--ink-3); font-size: 12px; }
.page-body ul { padding-left: 18px; }
.page-body ul.unread { font-size: 12px; color: var(--ink-3); }
.page-body .perry-entry { grid-template-columns: 120px 1fr; }

/* Légende : en bas à gauche, au-dessus des crédits */
.legend-bar { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; padding: 8px 20px;
  border-top: 1px solid var(--rule); }
.legend-bar[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 12px; }
.legend button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 6px; border-radius: 4px; }
.legend button:hover { background: var(--surface-2); }
.legend button[aria-pressed="false"] { opacity: 0.35; text-decoration: line-through; }
.legend button:focus-visible { outline: 2px solid var(--role-enr); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.mk.conf-moyen { opacity: 0.5; }
.mk.conf-à-vérifier { background: transparent; border: 1.5px dashed var(--ink-3); }
.mk.shape-bar { width: 22px; height: 8px; border-radius: 4px; }
.mk.shape-dot { width: 10px; height: 10px; }
/* Pastilles des époques : même fond que la frise, posé sur la surface */
.legend-eras .legend-title { color: var(--ink-3); }
.era-key { display: inline-block; width: 18px; height: 12px; border-radius: 3px; border: 1px solid var(--rule); background-color: var(--surface); }
.era-key.perry { background-image: linear-gradient(var(--era-perry), var(--era-perry)); }
.era-key.spectra { background-image: linear-gradient(var(--era-spectra), var(--era-spectra)); }
.era-key.uncertain { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px); }

/* Frise */
.scroller { overflow: auto; position: relative; }
.canvas { position: relative; }
.era { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.era.perry { background: var(--era-perry); }
.era.spectra { background: var(--era-spectra); }
.era.gap { background: var(--era-gap); }
.era.uncertain { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 7px); }
.gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); opacity: 0.6; pointer-events: none; }
.gridline.decade { opacity: 1; }

.head { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--rule); }
.head-row { position: relative; display: flex; }
.head-label, .row-label {
  position: sticky; left: 0; z-index: 4; width: var(--label-w); flex: none; background: var(--surface);
  padding: 0 12px 0 20px; color: var(--ink-2); display: flex; align-items: center;
  border-right: 1px solid var(--rule);
}
.head-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.track { position: relative; flex: none; }
.axis .tick { position: absolute; top: 6px; font-size: 11px; color: var(--ink-3); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.axis .tick.decade { color: var(--ink); font-weight: 600; }
.axis .tick.col { transform: none; white-space: nowrap; font-style: italic; font-size: 10px; }
.eras .era-name { position: absolute; top: 4px; font-size: 11px; color: var(--ink-2); white-space: nowrap; padding-left: 6px; }
.event { position: absolute; top: 22px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--surface); cursor: default; }
.event.moyen { background: var(--surface); border: 1.5px solid var(--ink-2); }
.event-label { position: absolute; top: 34px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.density .bar { position: absolute; bottom: 0; background: var(--ink-3); border-radius: 2px 2px 0 0; opacity: 0.55; }
.density .bar:hover { opacity: 1; }

.row { display: flex; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); }
.row:hover .row-label { color: var(--ink); }
.row-label { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: var(--row-h); }
.row-label small { color: var(--ink-3); margin-left: 4px; }
.row.dim { opacity: 0.15; }

.mark { position: absolute; height: 12px; border-radius: 6px; cursor: pointer; min-width: 12px;
  background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.mark.dot { width: 12px; }
.mark.moyen { background: color-mix(in srgb, var(--c) 45%, var(--surface)); border: 1.5px solid var(--c); }
.mark.verif { background: transparent; border: 1.5px dashed var(--c); }
.mark:hover, .mark:focus-visible, .mark.sel { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 3; }
.mark-label { position: absolute; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.mark-label.verif::after { content: " ?"; color: var(--ink-3); }
/* Sources et fiabilité masquées (réglage par défaut) : marques pleines, pas de badges ni de listes de sources */
:root[data-sources="off"] .src { display: none !important; }
:root[data-sources="off"] .mark.moyen, :root[data-sources="off"] .mark.verif { background: var(--c); border: 0; }
:root[data-sources="off"] .event.moyen { background: var(--ink-2); border: 2px solid var(--surface); }
:root[data-sources="off"] .mark-label.verif::after { content: none; }
.mark.hidden, .mark-label.hidden { display: none; }

/* Lanes repliables */
.lane-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; color: inherit; border-radius: 4px; padding: 2px 4px; margin-left: -4px; }
.lane-toggle:hover { color: var(--ink); background: var(--surface-2); }
.lane-toggle:focus-visible { outline: 2px solid var(--role-enr); }
.lane-toggle small { color: var(--ink-3); margin-left: 4px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.chev { width: 7px; height: 7px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.lane-toggle[aria-expanded="false"] .chev { transform: rotate(-45deg); margin-top: 0; }
.row.lane-head { border-bottom: 2px solid var(--rule); }
.row.lane-head .row-label { color: var(--ink); font-weight: 600; line-height: 30px; }

/* Lane des anecdotes : losanges neutres, séparée des albums par un filet plus marqué */
.row.facts { border-bottom: 2px solid var(--rule); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row.facts .row-label { color: var(--ink); font-weight: 600; }
.mark.fact.dot { width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); margin-top: 1px; }
.mark.fact.bar { height: 6px; margin-top: 3px; border-radius: 3px; }
.row .mark.fact.bar.long, :root[data-sources] .row .mark.fact.bar.long { height: 3px; margin-top: 4.5px; border: 0;
  background: color-mix(in srgb, var(--c) 32%, transparent); box-shadow: none; }
.row.gear { border-top: 2px solid var(--rule); }
.row.gear .mark.fact.dot { transform: none; border-radius: 2px; }
.mark.linked { outline: 2px solid var(--fact); outline-offset: 3px; z-index: 3; }
.tip .fact-text { margin: 6px 0; color: var(--ink); line-height: 1.45; }
.panel .fact-body { font-size: 14px; line-height: 1.55; margin: 0 0 16px; }

/* Info-bulle et panneau */
.tip { position: fixed; z-index: 20; max-width: 380px; padding: 10px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 6px 24px rgba(0,0,0,.14);
  pointer-events: none; font-size: 12px; }
.tip b { font-size: 13px; display: block; }
.tip-work { display: flex; gap: 12px; align-items: flex-start; }
.cover { flex: none; background: var(--surface-2); border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 11px; text-align: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-250 { width: 104px; height: 104px; }
.cover-500 { width: 100%; aspect-ratio: 1; margin-bottom: 16px; font-size: 13px; }
.tip .meta { color: var(--ink-2); margin-top: 4px; }
.tip .row-kv { display: flex; gap: 6px; margin-top: 2px; }
.tip .row-kv span:first-child { color: var(--ink-3); min-width: 74px; }
.panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); z-index: 30; overflow: auto;
  background: var(--surface); border-left: 1px solid var(--rule); box-shadow: -8px 0 32px rgba(0,0,0,.12); padding: 24px; }
.panel { transform: translateX(100%); transition: transform .25s ease; }
.panel.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .panel { transition: none; } }
.panel h2 { margin: 0 0 2px; font-size: 20px; }
.panel .artist { color: var(--ink-2); margin-bottom: 16px; }
.panel dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0 0 16px; }
.panel dt { color: var(--ink-3); }
.panel dd { margin: 0; }
.panel .notes { background: var(--surface-2); border-radius: 6px; padding: 10px 12px; color: var(--ink-2); }
.panel ul { padding-left: 18px; }
.panel h3 { font-size: 13px; margin: 20px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
/* Fiche André Perry */
.era-name.era-link { cursor: pointer; text-decoration: underline; text-decoration-color: var(--ink-3);
  text-underline-offset: 3px; pointer-events: auto; }
.era-name.era-link:hover { color: var(--ink); }
.perry-list { list-style: none; padding: 0; margin: 0; }
.perry-entry { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.perry-entry p { margin: 0 0 6px; line-height: 1.5; }
.perry-date { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.panel .perry-entry .fine { margin: 6px 0; }
.perry-entry.undated { grid-template-columns: 1fr; }
.perry-entry .badge { display: inline-block; margin-bottom: 2px; }
.perry-src { font-size: 11.5px; color: var(--ink-3); }
.perry-src a { color: var(--ink-2); }
.badge.status-confirmé { border-color: var(--role-both); }
.badge.status-nuancé, .badge.status-à-vérifier { border-style: dashed; }
.panel .notes.caveat { margin-top: 8px; border-left: 3px solid var(--ink-3); }
.panel .fine { color: var(--ink-3); font-size: 11.5px; margin: -8px 0 0; }
.panel .dg-role { color: var(--ink-3); }
.panel .dg-more { margin: 0 0 10px; }
.panel .dg-more summary { cursor: pointer; color: var(--ink-2); padding: 4px 0; }
.panel .dg-more summary:hover { color: var(--ink); }
.panel .dg-more dl { margin-top: 8px; }
.panel .dg-tracks, .panel .dg-videos { list-style: none; padding: 0; margin: 6px 0 0; }
.panel .dg-tracks li, .panel .dg-videos li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--rule); }
.panel .dg-pos { color: var(--ink-3); min-width: 26px; }
.panel .dg-dur { color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.panel .dg-note { margin: 4px 0 0; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; border: 1px solid var(--rule); }
/* Close button drawn as a visible round button */
.close { all: unset; position: absolute; right: 14px; top: 12px; z-index: 2; box-sizing: border-box; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface-2);
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s; }
.close:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.close:focus-visible { outline: 2px solid var(--role-enr); outline-offset: 2px; }

.credits { padding: 8px 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 11px; line-height: 1.6; }
.credits-thanks { display: block; margin-bottom: 6px; color: var(--ink-2); }
.credits-label { color: var(--ink-2); font-weight: 600; }
.credits a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.credits a:hover { color: var(--ink); }
.credits-note { display: block; }
.credits summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-weight: 600; font-size: 12px; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary .chev { transform: rotate(-45deg); margin-top: 0; }
.credits details[open] summary .chev { transform: rotate(45deg); margin-top: -3px; }
.credits summary:focus-visible { outline: 2px solid var(--role-enr); border-radius: 4px; }
.credits-body { padding-top: 6px; }

@media (max-width: 1280px) {
  :root { --label-w: 170px; }
}
@media (max-width: 720px) {
  :root { --label-w: 120px; }
  .masthead { padding: 18px 16px; gap: 12px; }
  .brand { gap: 14px; align-items: flex-start; }
  .brand .logo { height: 48px; }
  h1 { font-size: 19px; }
  .lede { font-size: 13px; }
  .settings-btn span { display: none; }
  /* Petit écran : tout tient dans la largeur ; les onglets défilent de côté, les outils passent l'un sous l'autre */
  body { min-width: 0; }
  .masthead, .brand, .brand-text, .tabs, .tab-list, .frise-tools { min-width: 0; }
  .tabs { padding: 0 16px; flex-wrap: nowrap; }
  .tab { padding: 10px 8px 8px; }
  .tab-list { margin-left: 0; }
  .frise-tools { width: 100%; margin-bottom: 8px; flex-wrap: wrap; }
  .sort-switch { width: auto; flex: 1 1 100%; }
  #search { flex: 1 1 100%; width: auto; }
  .page-body { padding: 20px 16px 48px; }
  .page-body .perry-entry { grid-template-columns: 1fr; gap: 4px; }
  .legend-bar { padding: 8px 16px; }
}
.noscript { padding: 32px; color: var(--ink-2); font-size: 14px; }
.page-body h3.section-title { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: var(--ink); }
.section-icon { flex: none; color: var(--ink-2); }

/* ---- onglet « En chiffres » : une carte par question */
.page-body.stats { max-width: 1120px; }
.st-heroes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.st-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 150px;
  background: var(--surface-2); border-radius: 12px; padding: 16px 18px; }
.st-hero b { position: relative; display: block; font: 400 46px/1.05 "Poiret One", var(--font); font-variant-numeric: tabular-nums; }
.st-hero > span { position: relative; color: var(--ink-2); }
.st-hero-g { position: relative; margin-top: auto; padding-top: 14px; }
.st-hero-g small { color: var(--ink-3); }
/* albums : mini-histogramme */
.st-spark { display: block; width: 100%; height: 34px; }
.st-spark rect { fill: color-mix(in srgb, var(--ink-2) 70%, transparent); }
/* artistes : un point par artiste */
.st-dotgrid { display: flex; flex-wrap: wrap; gap: 2px; }
.st-dotgrid i { width: 5px; height: 5px; border-radius: 50%; }
/* années : mini-frise des époques */
.st-mini-eras { display: grid; grid-template-columns: 1fr 1fr; row-gap: 5px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st-mini-eras div { grid-column: 1 / -1; display: flex; height: 14px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.st-mini-eras .era { display: block; position: static; height: auto; }
.st-mini-eras .era.perry { background: color-mix(in srgb, var(--st-intl) 75%, transparent); }   /* teintes pleines : la tuile est petite */
.st-mini-eras .era.spectra { background: color-mix(in srgb, rgb(150, 132, 200) 70%, transparent); }
.st-mini-eras .era.gap:not(.uncertain) { background: transparent; }
.st-mini-eras span:last-child { text-align: right; }
/* pistes : un vinyle qui dépasse du coin */
.st-disc { position: absolute; right: -38px; bottom: -38px; width: 130px; height: 130px; }
.st-disc .vinyl { fill: color-mix(in srgb, var(--ink) 9%, var(--surface-2)); }
.st-disc .groove { fill: none; stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: .6; }
.st-disc .label { fill: var(--st-intl); opacity: .85; }
.st-disc .hole { fill: var(--surface-2); }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-card { border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; background: var(--surface); min-width: 0; }
.st-card.wide { grid-column: 1 / -1; }
.page-body .st-card h3 { margin: 0 0 14px; }
.page-body .st-card .fine { margin: 12px 0 0; }
.st-card b { font-variant-numeric: tabular-nums; }
/* histogramme */
.st-histo { position: relative; height: 190px; margin-left: 26px; }
.st-plot { position: absolute; inset: 0; }
.st-bands { position: absolute; inset: 0; }
.st-bands .era { position: absolute; top: 0; bottom: 0; border-radius: 4px 4px 0 0; }
.st-bands .era span { position: absolute; top: 8px; left: 10px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.st-grid-y { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.st-grid-y i { position: absolute; left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--ink-3) 35%, transparent); }
.st-grid-y span { position: absolute; left: -26px; top: -7px; width: 20px; text-align: right; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; z-index: 2; }
.st-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; }
.st-col i { display: block; width: 56%; max-width: 14px; background: color-mix(in srgb, var(--ink-2) 75%, transparent); border-radius: 4px 4px 1px 1px; transition: background .15s; }
.st-col:hover i, .st-col:focus-visible i { background: var(--ink); }
.st-col:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-3); border-radius: 4px; }
.st-peak { position: absolute; z-index: 3; transform: translate(-50%, -8px); white-space: nowrap; font-size: 11.5px; color: var(--ink-2); pointer-events: none; }
.st-peak b { color: var(--ink); font-weight: 600; }
.st-ticks { position: relative; height: 18px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 11px; }
.st-ticks span { position: absolute; top: 4px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.st-histo-ticks { margin-left: 26px; }
.tip .row-kv .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
/* proportions */
.st-stack { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; }
.st-keys { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.st-keys li { display: flex; align-items: center; gap: 8px; }
.st-keys li i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.st-keys li b { margin-left: auto; }
.st-keys li span { color: var(--ink-3); min-width: 38px; text-align: right; }
/* carte du monde */
.st-map { display: block; width: 100%; height: auto; margin: 0 0 4px; }
.st-land { fill: color-mix(in srgb, var(--ink) 11%, var(--surface)); stroke: none; }
.st-arc { fill: none; stroke: var(--ink-3); stroke-width: .8; opacity: .8; }
.st-map circle { stroke: var(--surface); stroke-width: 1.2; }
.st-map text { fill: var(--ink-2); font-size: 11px; }
.st-studio { fill: var(--ink); stroke: var(--surface); stroke-width: .8; }
.st-countries { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); column-gap: 18px; }
.st-keys i.sq { width: 13px; height: 13px; border-radius: 50%; }
.g0 { background: var(--ink-2); fill: var(--ink-2); }
.g1 { background: var(--st-intl); fill: var(--st-intl); }
/* classements */
.st-dots, .st-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.st-dots li, .st-bars li { display: grid; grid-template-columns: 170px 1fr 32px; align-items: center; gap: 10px; }
.st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-dots b, .st-bars b { text-align: right; }
.st-pips { display: flex; flex-wrap: wrap; gap: 3px; }
.st-pips i { width: 10px; height: 10px; border-radius: 50%; }
.st-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink-2); }
/* durées de séance */
.st-sessions li { grid-template-columns: 170px 1fr 60px; }
.st-sessions .st-name b, .st-sessions .st-name small { display: block; overflow: hidden; text-overflow: ellipsis; }
.st-sessions .st-name b { font-weight: 500; text-align: left; }
.st-sessions .st-name small { color: var(--ink-3); }
/* haltères de fidélité */
.st-spans { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.st-spans li { display: grid; grid-template-columns: 150px 1fr 52px 70px; align-items: center; gap: 10px; }
.st-spans b { text-align: right; }
.st-spans small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st-track { position: relative; height: 12px; }
.st-line { position: absolute; top: 5px; height: 2px; background: var(--ink-3); }
.st-pt { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.st-span-ticks { margin: 6px 0 0 160px; margin-right: 142px; }
/* époques */
.st-eras { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-era { border-radius: 8px; padding: 14px 16px; background: var(--era-perry); }
.st-era.spectra { background: var(--era-spectra); }
.st-era span, .st-era small { display: block; color: var(--ink-2); }
.st-era b { display: block; font: 400 46px/1.1 "Poiret One", var(--font); margin: 4px 0; }
@media (max-width: 720px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-bands .era span { display: none; }   /* trop étroit : le nom de l'époque chevaucherait le pic */
  .st-heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero { min-height: 130px; padding: 14px; }
  .st-hero b { font-size: 32px; }
  .st-disc { width: 100px; height: 100px; right: -30px; bottom: -30px; }
  .st-dots li, .st-bars li { grid-template-columns: 110px 1fr 28px; }
  .st-sessions li { grid-template-columns: 1fr 64px; }
  .st-sessions li .st-bar { grid-column: 1 / -1; grid-row: 2; }
  .st-spans li { grid-template-columns: 1fr 48px 70px; }
  .st-spans li .st-track { grid-column: 1 / -1; grid-row: 2; }
  .st-span-ticks { margin: 6px 0 0; }
}

/* ---- photos libres : légende et crédit */
.photo { margin: 4px 0 16px; }
.photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.page-body .photo img { max-height: 420px; }
.photo figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.photo figcaption em { font-style: normal; color: var(--ink-3); }
.photo .credit { display: block; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.photo .credit a { color: inherit; }

/* ---- onglet « Échos du Studio » : cartes de citation */
.page-body.echos { max-width: 1040px; }
.echo-grid { columns: 2 320px; column-gap: 16px; margin-top: 24px; }
.echo { break-inside: avoid; margin: 0 0 16px; padding: 22px 24px 18px; border-radius: 12px; background: var(--surface-2); position: relative; }
.echo::before { content: "\201C"; position: absolute; top: 4px; left: 16px; font: 400 64px/1 "Poiret One", var(--font); color: var(--st-intl); opacity: .7; }
.echo blockquote { margin: 18px 0 0; font: 400 21px/1.45 "Poiret One", var(--font); color: var(--ink); }
.echo-trans { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.echo-trans span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.echo figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.echo figcaption b { font-weight: 600; }
.echo figcaption span { color: var(--ink-2); }
.echo figcaption small { color: var(--ink-3); font-size: 11.5px; }
.echo .echo-src a { color: inherit; }
@media (max-width: 720px) { .echo blockquote { font-size: 18px; } }

/* Effet néon sur les textes en Poiret One, comme le logo : seulement en mode sombre */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(h1, .page-body h2, .st-hero b, .st-era b, .echo blockquote, .rg-lead, .rg-num, .rg-title) { color: #eef0ff; text-shadow: 0 0 3px rgba(90, 105, 255, .9), 0 0 12px rgba(47, 61, 255, .7); }
  :root:not([data-theme="light"]) .rg-quote-mark { text-shadow: 0 0 6px rgba(90, 105, 255, .9), 0 0 18px rgba(47, 61, 255, .7); }
  :root:not([data-theme="light"]) .echo::before { text-shadow: 0 0 6px rgba(90, 105, 255, .9), 0 0 18px rgba(47, 61, 255, .7); }
}
:root[data-theme="dark"] :is(h1, .page-body h2, .st-hero b, .st-era b, .echo blockquote, .rg-lead, .rg-num, .rg-title) { color: #eef0ff; text-shadow: 0 0 3px rgba(90, 105, 255, .9), 0 0 12px rgba(47, 61, 255, .7); }
:root[data-theme="dark"] .rg-quote-mark { text-shadow: 0 0 6px rgba(90, 105, 255, .9), 0 0 18px rgba(47, 61, 255, .7); }
:root[data-theme="dark"] .echo::before { text-shadow: 0 0 6px rgba(90, 105, 255, .9), 0 0 18px rgba(47, 61, 255, .7); }

/* Perspectives : ouverture en deux colonnes et sections en cartes */
#page-regards { max-width: 1040px; }
.rg-open { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; margin-bottom: 8px; }
.rg-quote { position: relative; margin: 0; padding-left: 52px; }
.rg-quote-mark { position: absolute; left: 0; top: -10px; font: 400 72px/1 "Poiret One", var(--font); color: var(--st-intl, #6b7bff); opacity: .8; }
.rg-quote blockquote { margin: 0; }
.rg-quote figcaption { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.rg-quote figcaption b { color: var(--ink); font-weight: 600; }
.rg-open .perry-note { margin: 0; }
.rg-lead { margin: 0; font: 400 30px/1.25 "Poiret One", var(--font); color: var(--ink); }
/* Mosaïque éclatée : tailles variées, grande icône en filigrane, numéro en néon */
.rg-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.rg-card { position: relative; overflow: hidden; padding: 22px 22px 18px; border: 0; border-radius: 14px; background: #222224; } /* cartes gris foncé neutre, sans contour */
.page-body .rg-title { margin: 0 0 14px; font: 400 26px/1.15 "Poiret One", var(--font); text-transform: none; letter-spacing: 0; color: var(--ink); }
.rg-num { display: block; margin-bottom: 6px; font: 400 34px/1 "Poiret One", var(--font); color: var(--ink-3); }
.rg-more summary { cursor: pointer; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rg-more summary:hover { color: var(--ink); }
@media (max-width: 760px) { .rg-open, .rg-cards { grid-template-columns: 1fr; } .rg-card[class*="rg-"] { grid-column: auto; grid-row: auto; } .rg-lead { font-size: 24px; } }

/* Onglet « Le disque » : le Studio vu comme un vinyle, un sillon par année */
.disque .dq-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 18px 0 6px; color: var(--ink-2); font-size: 12px; }
.disque .dq-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dq-disc { display: block; width: min(100%, 720px); height: auto; margin: 40px auto 0; }
.dq-vinyl { fill: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.dq-grooves circle { fill: none; stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-width: 1; }
.dq-arc { fill: none; stroke-width: 7; stroke-linecap: round; cursor: pointer; transition: stroke-width .15s; outline: none; }
.dq-arc:hover, .dq-arc:focus-visible { stroke-width: 11; }
.dq-arc.sel { stroke-width: 12; filter: drop-shadow(0 0 6px currentColor) brightness(1.25); }
.dq-years text { font: 18px "Space Mono", ui-monospace, monospace; fill: var(--ink-2); paint-order: stroke; stroke: color-mix(in srgb, var(--ink) 5%, var(--surface)); stroke-width: 6px; }
.dq-label { fill: var(--surface-2); stroke: var(--role-enr); stroke-opacity: .5; stroke-width: 2; }
.dq-hole { fill: var(--surface-0, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dq-arcs { filter: drop-shadow(0 0 4px rgba(90, 120, 255, .45)); } }
:root[data-theme="dark"] .dq-arcs { filter: drop-shadow(0 0 4px rgba(90, 120, 255, .45)); }
