/* =========================================================================
   ARCHIV — Albin Julius · main.css
   Occult / post-industrial editorial archive.
   Direction artistique : noir profond, ivoire sale, vert toxique rituel,
   jaune venimeux, brun sépia noirci, texture imprimée.
   ========================================================================= */


/* ========= 1. DESIGN TOKENS ========= */

:root {
  /* Palette — noirs charbon, brun profond, ivoire sali, vert rituel, jaune venimeux */
  --black:        #050403;
  --ink:          #050403;
  --ink-2:        #0c0709;       /* charbon teinté vin */
  --ink-3:        #14090d;       /* charbon vin un cran plus haut */
  --ink-4:        #1f0d12;       /* charbon vin marqué */
  --deep-wine:    #1c060a;       /* rouge vin très foncé — fond ambiant */
  --deep-wine-2:  #2a0a10;       /* rouge vin sombre — accent ponctuel */
  --deep-brown:   #1c060a;       /* alias rétrocompat (ancien brun) */
  --charcoal:     #111111;
  --paper:        #e8dfcf;
  --paper-2:      #d4c8b1;
  --paper-mute:   #b8ad9c;
  --paper-dim:    #6b6456;
  --rule:         rgba(232, 223, 207, 0.12);
  --rule-2:       rgba(232, 223, 207, 0.22);
  --rule-toxic:   rgba(31, 143, 56, 0.28);
  --accent:       #1f8f38;       /* vert toxique rituel */
  --accent-2:     #2dad48;       /* vert toxique clair (hover) */
  --accent-dim:   rgba(31, 143, 56, 0.30);
  --dark-green:   #0b3d1a;
  --accent-3:     #d6a928;       /* jaune venimeux / venom yellow */
  --accent-3-dim: rgba(214, 169, 40, 0.32);

  /* Typographies */
  --serif:        "Fraunces", "Newsreader", "Playfair Display", Georgia, serif;
  --sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --mono:         "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container:    1240px;
  --container-w:  1440px;
  --gutter:       clamp(1.25rem, 4vw, 2.75rem);
  --section-y:    clamp(4.5rem, 9vw, 8.5rem);
  --stack-y:      clamp(1.25rem, 2vw, 2rem);

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:      cubic-bezier(0.55, 0, 0.1, 1);

  /* Feuillets */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: 2rem;
  --t-3xl: 2.75rem;
  --t-4xl: 3.5rem;
  --t-5xl: 5rem;
  --t-6xl: 6.5rem;
}


/* ========= 2. RESET & BASE ========= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Pas d'overflow-x:hidden ici : ça casserait position:sticky sur la navbar.
     Les sections individuelles utilisent overflow-x:clip à la place. */
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(31, 143, 56, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(42, 10, 16, 0.85) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--deep-wine) 100%);
  background-attachment: fixed;
  font-feature-settings: "kern", "liga";
  min-height: 100vh;
  position: relative;
  /* overflow-x retiré pour préserver position:sticky */
}

/* Texture grain analogique : fanzine / sérigraphie / photocopie. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.91  0 0 0 0 0.87  0 0 0 0 0.81  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Le contenu reste au-dessus du grain. */
body > * {
  position: relative;
  z-index: 2;
}

/* Empêche le débordement horizontal au niveau des sections, sans casser sticky */
section,
main,
.hero-section,
.ej-leitmotive-section,
.ej-timeline-section,
.gallery-section,
.ej-exil-section,
.ej-quote-section,
.ej-stammbaum-section,
.ej-links-section,
.ej-footer {
  overflow-x: clip;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

em,
i {
  font-style: italic;
}

strong,
b {
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* Focus visible (clavier) — vert toxique rituel, bien lisible sur noir. */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-4);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}


/* ========= 3. TYPOGRAPHY SYSTEM ========= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 96;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 350;
}

h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 400;
}

h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 500;
}

p {
  font-size: var(--t-md);
  line-height: 1.65;
}

.eyebrow,
.archive-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--paper-dim);
}


/* ========= 4. LAYOUT PRIMITIVES ========= */

.container,
.main-container,
.ej-leitmotive-container,
.ej-exil-container,
.gallery-container,
.ej-container,
.ej-footer-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-wide {
  max-width: var(--container-w);
}

section {
  position: relative;
}


/* ========= 5. NAVBAR ========= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 0;
  background: rgba(8, 5, 7, 0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}

.navbar-bg {
  display: none;
}

.navbar-container {
  display: flex;
  align-items: center;
  height: 76px;
}

.navbar-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.625rem, 1.5vw, 1rem);
  flex-shrink: 0;
}

/* SVG wordmark Albin Julius — header navigation (only brand mark) */
.nav-logo-link .nav-logo-img {
  display: block;
  height: clamp(28px, 3.6vw, 38px);
  width: auto;
  max-width: clamp(190px, 26vw, 260px);
  flex-shrink: 1;
  min-width: 0;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 12px rgba(31, 143, 56, 0.0));
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}

.nav-logo-link:hover .nav-logo-img {
  transform: translateY(-1px);
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 14px rgba(31, 143, 56, 0.32));
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo-link:hover .nav-logo-img {
    transform: none;
  }
}

.navigation-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-menu,
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nav-link-wrap {
  position: relative;
}

.nav-link,
.dropdown-link,
.text-block-7 {
  display: inline-block;
  position: relative;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.25rem 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.ej-nav-link--current,
.dropdown-link:hover,
.text-block-7:hover {
  opacity: 1;
  color: var(--paper);
}

.nav-link::after,
.dropdown-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-link:hover::after,
.nav-link.ej-nav-link--current::after,
.dropdown-link:hover::after {
  width: 100%;
}

/* Dropdowns : fenêtres discrètes (sans trou entre libellé et panneau — le :hover ne doit pas se perdre) */
.nav-dropdown {
  position: relative;
  z-index: 1;
}

/* Zone invisible sous le libellé : le curseur reste dans .nav-dropdown en descendant vers les liens */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  pointer-events: auto;
}

.nav-dropdown:hover {
  z-index: 30;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.dropdown-caret {
  width: 9px;
  height: 5px;
  opacity: 0.5;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-dropdown:hover .dropdown-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.dropdown-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  min-width: 260px;
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nav-dropdown:hover .dropdown-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
  pointer-events: auto;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  color: var(--paper-2);
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--ink-3);
  color: var(--paper);
}

.dropdown-link::after {
  display: none;
}

.navbar-right-contents {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ej-lang-selector {
  display: flex;
  align-items: center;
}

.ej-lang-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--paper-mute);
  transition: all 0.35s var(--ease);
}

.ej-lang-btn.active,
.ej-lang-btn[aria-pressed="true"] {
  color: var(--paper);
  border-color: var(--paper-mute);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-2);
  background: transparent;
  transition: border-color 0.35s var(--ease);
}

.menu-button-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  position: relative;
}

.menu-button-icon {
  width: 16px;
  height: 16px;
  /* SVG déjà blanc : ne pas inverser (sinon traits noirs invisibles sur fond sombre) */
  filter: none;
  opacity: 0.95;
  position: absolute;
  inset: 0;
  margin: auto;
}

.menu-button-icon:last-child {
  display: none;
}

/* Menu mobile dédié (≤1024) : bouton + panneau — masqué sur bureau */
.ej-burger {
  display: none;
  box-sizing: border-box;
}

.ej-mobile-panel {
  display: none;
}


/* ========= 6. HERO ========= */

.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  padding: 0;
}

.hero-section picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(100%) contrast(1.2) brightness(0.58) sepia(0.1);
  opacity: 1;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 5, 7, 0.2) 0%,
      rgba(8, 5, 7, 0.05) 30%,
      rgba(8, 5, 7, 0.9) 100%),
    linear-gradient(90deg,
      rgba(8, 5, 7, 0.75) 0%,
      rgba(8, 5, 7, 0.25) 45%,
      rgba(8, 5, 7, 0) 75%);
  z-index: 2;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(236, 228, 208, 0.012) 2px,
    rgba(236, 228, 208, 0.012) 3px
  );
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-1-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}

.hero-1-title {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dot-title {
  display: none;
}

.hero-1-title::before {
  content: "DOSSIER 001 · ARCHIVE HISTORIQUE";
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--accent-dim);
  width: fit-content;
  max-width: 100%;
}

.heading---h2 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin: 0;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

.heading---h2 a,
.heading---h2 .bold-text {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  display: inline;
}

.heading---h2 em,
.heading---h2 .bold-text em {
  font-style: italic;
}

.hero-1-title > div[data-i18n="hero.subtitle"] {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--paper-2);
  line-height: 1.5;
  max-width: 32rem;
  margin: 0;
}

.hero-dates {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--paper-2);
  padding: 0.65rem 0;
  margin: 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  width: fit-content;
  text-transform: uppercase;
}

.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1rem;
}


/* ========= 7. BUTTONS ========= */

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--paper-mute);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  min-height: auto;
  width: auto;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.button:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.button.bg-brand {
  border-bottom-color: var(--rule-2);
}

.button-text {
  flex: 1;
  text-align: left;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.button-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  position: static;
  transform: none;
}

.button-icon-wrap img,
.button-icon {
  display: none;
}

.button-icon-wrap::after {
  content: "→";
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: inherit;
  transition: transform 0.4s var(--ease);
}

.button:hover .button-icon-wrap::after {
  transform: translateX(8px);
}

.button-icon-text-wrap {
  display: contents;
}

.button-hover-element-wrap,
.button-hover-element {
  display: none;
}


/* ========= 8. SECTIONS GENERIC ========= */

.ej-leitmotive-section,
.ej-timeline-section,
.gallery-section,
.ej-exil-section,
.ej-quote-section,
.ej-stammbaum-section,
.ej-links-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--ink);
}

.ej-leitmotive-section + .ej-timeline-section,
.ej-timeline-section + .gallery-section,
.gallery-section + .ej-exil-section,
.ej-exil-section + .ej-quote-section {
  border-top: 1px solid var(--rule);
}

/* Headers d'ouvrage : eyebrow + titre + intro */
.ej-leitmotive-header,
.ej-exil-header,
.ej-quote-header,
.gallery-header,
.ej-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 48rem;
}

.ej-section-title-archival,
.ej-leitmotive-title,
.ej-exil-title,
.gallery-title,
.ej-title {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-top: 0.35rem;
  display: block;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

.ej-section-title-archival > span:last-child,
.ej-leitmotive-title > span:last-child,
.ej-exil-title > span:last-child,
.gallery-title > span:last-child,
.ej-title > span:last-child {
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: inherit;
}

.ej-section-number,
.ej-military-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 0.35rem;
}

.ej-section-number::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3-dim);
}

.ej-hud-mark {
  display: none;
}

.ej-military-subtitle {
  display: block;
  color: var(--paper-mute);
  margin-top: 1.25rem;
  letter-spacing: 0.18em;
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* Paragraphes */
.ej-intro,
.ej-exil-intro-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--paper-2);
  max-width: 52rem;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: left;
}


/* ========= 9. LEITMOTIVE CARDS ========= */

.ej-leitmotive-grid,
.ej-exil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 0;
}

.ej-leitmotive-card,
.ej-exil-card {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3rem);
  background: var(--ink);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}

.ej-leitmotive-card:hover,
.ej-exil-card:hover {
  background: var(--ink-2);
}

/* Numérotation chapitre */
.ej-leitmotive-card::after,
.ej-exil-card::after {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}

.ej-leitmotive-card:nth-child(1)::after { content: "01"; }
.ej-leitmotive-card:nth-child(2)::after { content: "02"; }
.ej-leitmotive-card:nth-child(3)::after { content: "03"; }
.ej-leitmotive-card:nth-child(4)::after { content: "04"; }

.ej-exil-card:nth-child(1)::after { content: "§ 1"; }
.ej-exil-card:nth-child(2)::after { content: "§ 2"; }
.ej-exil-card:nth-child(3)::after { content: "§ 3"; }
.ej-exil-card:nth-child(4)::after { content: "§ 4"; }

.ej-leitmotive-hud-top,
.ej-exil-hud-top {
  display: none;
}

.ej-leitmotive-card-title,
.ej-exil-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0.35rem 0 0;
}

.ej-leitmotive-card-desc,
.ej-exil-card-desc {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--paper-mute);
  margin: 0;
}

.ej-leitmotive-icon,
.ej-rex-flag,
.ej-ss-emblem {
  width: 40px;
  height: 28px;
  opacity: 0.78;
  transition: opacity 0.4s var(--ease);
}

.ej-rex-flag {
  width: 56px;
  height: 38px;
  background-image: none;
  background: linear-gradient(135deg, var(--ink-3) 0%, var(--deep-wine-2) 100%);
  border: 1px solid var(--rule-2);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.ej-ss-emblem {
  width: 36px;
  height: 36px;
  background-image: none;
  background:
    radial-gradient(circle at 35% 35%, var(--accent-dim), transparent 55%),
    linear-gradient(145deg, var(--ink) 0%, var(--deep-wine-2) 100%);
  border: 1px solid var(--rule-2);
  filter: none;
}

.ej-leitmotive-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.ej-leitmotive-card:hover .ej-leitmotive-icon,
.ej-leitmotive-card:hover .ej-rex-flag,
.ej-leitmotive-card:hover .ej-ss-emblem {
  opacity: 1;
}

.ej-videos-layout--textonly {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3.5rem;
}

.ej-video-placeholder {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--paper-mute);
}

.gallery-licence-note {
  max-width: 48rem;
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--paper-mute);
  opacity: 0.92;
}

.gallery-licence-note a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gallery-licence-note code {
  font-size: 0.78em;
  word-break: break-all;
}


/* ========= 10. TIMELINE + BIBLIOGRAPHY ========= */

.ej-filters {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--rule-2);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ej-timeline-columns-note {
  margin: 0 0 2.25rem;
  max-width: 44rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--paper-mute);
}

.ej-filter-btn {
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule-2);
  transition: all 0.35s var(--ease);
  cursor: pointer;
}

.ej-filter-btn:last-child {
  border-right: none;
}

.ej-filter-btn:hover {
  color: var(--paper);
  background: var(--ink-2);
}

.ej-filter-btn.active {
  color: var(--ink);
  background: var(--paper);
}

.ej-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: flex-start;
}

.ej-discography {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-2);
}

.ej-discography__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 48rem;
}

.ej-discography__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0.35rem 0 0;
}

.ej-discography__intro {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--paper-mute);
  max-width: 44rem;
  margin: 0.85rem 0 0;
}

.ej-discography__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .ej-discography__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ej-discography__item {
  border: 1px solid var(--rule-2);
  padding: 1.2rem 1.35rem 1.25rem;
  background: rgba(16, 10, 13, 0.38);
  border-radius: 2px;
}

.ej-discography__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 0.35rem;
}

.ej-discography__note {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--paper-mute);
  margin: 0 0 1rem;
}

.ej-discography__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.ej-discography__links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ej-discography__links a:hover {
  color: var(--paper);
}

/* Timeline */
.ej-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--rule-2);
}

.ej-timeline-line {
  display: none;
}

.ej-timeline-item {
  position: relative;
  padding: 1.15rem 0 1.15rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}

.ej-timeline-item:last-child {
  border-bottom: none;
}

.ej-timeline-item:hover {
  background: rgba(236, 228, 208, 0.015);
}

.ej-timeline-dot {
  position: absolute;
  top: 1.55rem;
  left: -2.32rem;
  width: 7px;
  height: 7px;
  background: var(--paper-mute);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.ej-timeline-item:hover .ej-timeline-dot {
  background: var(--accent-2);
  transform: scale(1.35);
}

.ej-timeline-year {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.ej-timeline-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper);
  margin: 0;
}

.ej-timeline-title em {
  font-style: italic;
}

/* Bibliography — alignée au rythme de la timeline */
.ej-bibliography {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--rule-2);
}

.ej-bibliography > .ej-bibliography-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.ej-bibliography-list {
  display: block;
}

.ej-bibliography-item {
  display: block;
  padding: 1.15rem 0 1.15rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}

.ej-bibliography-item:last-child {
  border-bottom: none;
}

.ej-bibliography-item:hover {
  background: rgba(236, 228, 208, 0.015);
}

.ej-bibliography-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 0.3rem;
  align-items: baseline;
}

.ej-bibliography-item .ej-bibliography-year {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.ej-bibliography-item .ej-bibliography-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--paper);
  line-height: 1.35;
  margin: 0;
  padding: 0;
  border: none;
  text-transform: none;
}

.ej-bibliography-item .ej-bibliography-title em {
  font-style: italic;
  font-weight: 500;
}

.ej-bibliography-description {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--paper-mute);
  line-height: 1.55;
  margin: 0;
}

.ej-bibliography-item .ej-bibliography-pdf {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.5rem 1.05rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid var(--rule-2);
  background: rgba(236, 228, 208, 0.04);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.ej-bibliography-item .ej-bibliography-pdf::after {
  content: "→";
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.ej-bibliography-item .ej-bibliography-pdf:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: rgba(31, 143, 56, 0.06);
}

.ej-bibliography-item .ej-bibliography-pdf:hover::after {
  transform: translateX(4px);
}

/* --- Accessibilité : lien d'évitement (focus uniquement) --- */
.ej-skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  background: #111;
  color: #f5f0e8;
  border: 1px solid #3a342c;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.ej-skip-link:focus {
  left: 0.75rem;
  clip: auto;
  clip-path: none;
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}
.ej-skip-link:focus-visible {
  left: 0.75rem;
  clip: auto;
  clip-path: none;
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.ej-inline-block {
  display: inline-block;
}

.ej-bibliography-proviso {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--paper-mute);
  font-style: italic;
  margin: 0 0 1.15rem;
  max-width: 40rem;
}

.ej-sources-panel {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule-2);
  background: rgba(236, 228, 208, 0.04);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--paper-mute);
}

.ej-sources-panel h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.75rem;
}

.ej-sources-panel p {
  margin: 0 0 0.75rem;
}

.ej-sources-panel ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.ej-sources-panel li {
  margin: 0.4rem 0;
}

.ej-sources-panel a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ej-sources-panel a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.ej-video-archival-note {
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--paper-dim);
}

.ej-pdf-disclaimer {
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--paper-dim);
  max-width: 36rem;
}


/* ========= 11. GALLERY — planche-contact muséale =========
   Grille uniforme : carrés 1:1, 4 par rangée en desktop.
   Précise, alignée au pixel, comme dans un contact sheet d'archive. */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  background: transparent;
  border: 0;
}

.gallery-card {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.gallery-card:hover {
  border-color: var(--rule-toxic);
}

.gallery-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-card::after {
  display: none;
}

.gallery-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.12) brightness(0.85) sepia(0.08);
  transition: filter 0.7s var(--ease), transform 1s var(--ease);
}

.gallery-card:hover .gallery-card-image {
  filter: grayscale(100%) contrast(1.2) brightness(0.98) sepia(0.12);
  transform: scale(1.04);
}

.gallery-card--licensed .gallery-card-image {
  filter: grayscale(0%) contrast(1.05) brightness(0.95);
}

.gallery-card--licensed:hover .gallery-card-image {
  filter: grayscale(0%) contrast(1.12) brightness(1);
  transform: scale(1.04);
}

.gallery-card-caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(8, 5, 7, 0.96) 0%, rgba(5, 4, 3, 1) 100%);
  border-top: 1px dashed var(--rule);
}

.gallery-card-title {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
  letter-spacing: -0.005em;
}

.gallery-card-title em {
  font-style: italic;
  color: var(--paper-2);
}

.gallery-card-status {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.gallery-card--licensed .gallery-card-status {
  color: var(--accent-2);
}

.gallery-card--licensed .gallery-card-caption {
  border-top-color: var(--rule-toxic);
}

.gallery-more-wrapper {
  margin-top: 3rem;
}

.gallery-more-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--paper-mute);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.gallery-more-button::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.4s var(--ease);
}

.gallery-more-button:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.gallery-more-button:hover::after {
  transform: translateX(8px);
}

/* Lightbox */
.gallery-lightbox,
.bibliography-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 5, 7, 0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.gallery-lightbox.active,
.bibliography-lightbox.active,
.gallery-lightbox.is-open,
.bibliography-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0s;
}

.gallery-lightbox-content,
.bibliography-lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-image,
.bibliography-lightbox-image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  filter: grayscale(0.15) contrast(1.04);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-lightbox-close,
.bibliography-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--rule-2);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: 2;
}

.gallery-lightbox-close:hover,
.bibliography-lightbox-close:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.gallery-lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--paper-mute);
  z-index: 2;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--rule-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: 2;
}

.gallery-lightbox-nav.prev { left: 1.5rem; }
.gallery-lightbox-nav.next { right: 1.5rem; }

.gallery-lightbox-nav:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Curseur zoom-in sur les cartes pour signaler le clic */
.gallery-card {
  cursor: zoom-in;
}


/* ========= 12. VIDEOS ========= */

.ej-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

/* Galerie vidéos (index) : 1 col. mobile ; 2 cols. tablette ; 3 cols. large écran */
.ej-videos-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .ej-videos-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ej-videos-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Toutes les cartes vidéo du layout : même pile, mêmes tailles et espacements */
.ej-videos-layout > .ej-video-item {
  min-width: 0;
  border-right: none;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  align-items: stretch;
}

.ej-videos-layout > .ej-video-item .ej-video-thumbnail {
  aspect-ratio: 16 / 9;
  border: none;
  border-bottom: 1px solid var(--rule);
}

.ej-videos-layout > .ej-video-item .ej-video-meta,
.ej-videos-layout > .ej-video-item .ej-video-name,
.ej-videos-layout > .ej-video-item .ej-video-desc,
.ej-videos-layout > .ej-video-item .ej-video-credit {
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.ej-videos-layout > .ej-video-item .ej-video-meta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.ej-videos-layout > .ej-video-item .ej-video-name {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin-top: 0.65rem;
  margin-bottom: 0;
  line-height: 1.18;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.ej-videos-layout > .ej-video-item .ej-video-desc {
  font-size: 0.95rem;
  margin-top: 1.1rem;
  margin-bottom: 0;
  line-height: 1.65;
  max-width: none;
  font-family: var(--sans);
  color: var(--paper-mute);
}

/* Carte sans crédit : marge bas équivalente à une carte avec source */
.ej-videos-layout > .ej-video-item:not(:has(.ej-video-credit)) .ej-video-desc {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.ej-video-credit {
  margin-top: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.ej-video-credit a {
  color: var(--paper);
  border-bottom: 1px solid var(--rule-2);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ej-video-credit a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.ej-video-item {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--ink);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ej-video-item:hover {
  background: var(--ink-2);
}

.ej-video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--rule);
}

.ej-video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.12) brightness(0.78) sepia(0.08);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}

.ej-video-item:hover .ej-video-thumbnail-img {
  filter: grayscale(100%) contrast(1.22) brightness(0.96) sepia(0.14);
  transform: scale(1.03);
}

.ej-video-thumbnail-img-fr { display: none; }

.ej-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  color: var(--paper);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.ej-video-play-icon svg { width: 100%; height: 100%; }

.ej-video-item:hover .ej-video-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
}

.ej-video-meta {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.ej-video-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--paper);
  line-height: 1.32;
  margin-top: 0.45rem;
  letter-spacing: -0.005em;
}

.ej-video-desc {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--paper-mute);
}

.ej-video-item:hover .ej-video-name {
  color: var(--paper);
}

@media (max-width: 767px) {
  .ej-videos-layout {
    grid-template-columns: 1fr;
  }

  .ej-videos-grid {
    grid-template-columns: 1fr;
  }

  .ej-videos-layout > .ej-video-item .ej-video-name {
    font-size: 1.05rem;
  }
}

.ej-video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 5, 7, 0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.ej-video-modal.active,
.ej-video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0s;
}

.ej-video-modal-content iframe,
.ej-video-modal-content video {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--ink);
}

.ej-video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--rule-2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ej-video-modal-close:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.ej-video-modal-content {
  width: min(92vw, 1280px);
  height: min(80vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ========= 13. DROGEN / EXIL SECTION ========= */

.ej-exil-intro {
  max-width: 52rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.ej-exil-quote {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  max-width: 52rem;
  margin-inline: auto;
  border-left: 2px solid var(--accent);
  background: var(--ink-2);
}

.ej-exil-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.625rem);
  line-height: 1.45;
  color: var(--paper);
  margin: 0 0 1.25rem;
}

.ej-exil-quote-author {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}


/* ========= 14. CITATIONS — mur de cartes (statique, sans carrousel) ========= */

.ej-quote-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 42%, var(--ink) 100%);
  border-top: 1px solid var(--rule);
}

.ej-quote-header {
  max-width: 40rem;
}

.ej-quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 880px) {
  .ej-quotes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }

  /* Première citation en bandeau : pleine largeur, même flux vertical */
  .ej-quote-card--feature {
    grid-column: 1 / -1;
    padding: clamp(2.15rem, 3.2vw, 2.85rem) clamp(2rem, 4vw, 3.25rem);
  }

  .ej-quote-card--feature .ej-quote-card__body {
    max-width: 48rem;
  }
}

.ej-quote-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.65rem, 2.5vw, 2.15rem) clamp(1.5rem, 2.5vw, 2.25rem);
  background: linear-gradient(165deg, var(--ink-3) 0%, var(--ink-2) 55%, var(--ink-4) 100%);
  border: 1px solid var(--rule-2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.ej-quote-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 55%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}

.ej-quote-card:hover {
  border-color: rgba(45, 173, 72, 0.45);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.ej-quote-card__mark {
  position: absolute;
  top: 0.15rem;
  right: clamp(0.75rem, 2vw, 1.5rem);
  font-family: var(--serif);
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 200;
  line-height: 1;
  color: var(--accent);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

.ej-quote-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.ej-quote-card__index {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--paper-2);
  line-height: 1;
  letter-spacing: 0.04em;
}

.ej-quote-card__year {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--rule-2);
  background: rgba(8, 5, 7, 0.35);
}

.ej-quote-card__body {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  max-width: 52rem;
}

.ej-quote-card__body p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  line-height: 1.52;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 72;
}

.ej-quote-card--feature .ej-quote-card__body p {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.48;
}

.ej-quote-card__cite {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.ej-quote-card__cite em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper-2);
}


/* ========= 15. LINKS CARDS ========= */

.ej-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.ej-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  background: var(--ink);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.5s var(--ease);
}

.ej-link-card:hover {
  background: var(--ink-2);
}

.ej-link-card-category {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--accent-dim);
  display: inline-block;
  width: fit-content;
}

.ej-link-card-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
}

.ej-link-card-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--paper-mute);
  margin: 0;
  flex: 1;
}

.ej-link-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  margin-top: auto;
  width: 100%;
}

.ej-link-card-btn::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.4s var(--ease);
}

.ej-link-card-btn:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.ej-link-card-btn:hover::after {
  transform: translateX(6px);
}


/* ========= 16. STAMMBAUM & ARBRE GÉNÉALOGIQUE ========= */

.ej-stammbaum-section .ej-container {
  max-width: var(--container-w);
}

.ej-stammbaum-content {
  max-width: 68rem;
}

.ej-stammbaum-lead {
  font-size: clamp(1.02rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  padding: 1.25rem 0 1.25rem 1.15rem;
  margin-bottom: 2rem !important;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(31, 143, 56, 0.08) 0%, transparent 55%);
}

.ej-stammbaum-content h2 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule-2);
}

.ej-stammbaum-content p {
  margin-bottom: 1.25rem;
  color: var(--paper-2);
  line-height: 1.7;
}

.ej-stammbaum-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ej-stammbaum-content ul li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--paper);
  position: relative;
}

.ej-stammbaum-content ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--paper-dim);
}

.ej-stammbaum-content strong {
  font-weight: 600;
  color: var(--paper);
}

/* --- Arbre : neutralise les listes « prose » à l'intérieur du schéma --- */
.ej-stammbaum-content .ej-gen-tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ej-stammbaum-content .ej-gen-tree ul li {
  padding: 0;
  border-bottom: none;
  font-size: inherit;
}

.ej-stammbaum-content .ej-gen-tree ul li::before {
  content: none;
  display: none;
}

.ej-gen-tree.stammbaum {
  position: relative;
  margin: 2.5rem 0 3.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  overflow-y: visible;
  background:
    linear-gradient(165deg, rgba(36, 18, 22, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--rule-2);
  box-shadow:
    0 1px 0 rgba(236, 228, 208, 0.06) inset,
    0 28px 56px rgba(0, 0, 0, 0.38);
}

.ej-gen-tree.stammbaum::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.ej-gen-tree-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.ej-gen-tree-kicker {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ej-gen-tree-note {
  margin: 0;
  max-width: 42rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--paper-mute);
}

.ej-gen-tree__root {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ej-gen-tree__root > li > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-2);
}

.ej-gen-tree__root > li > ul > li {
  min-width: 0;
}

.ej-gen-tree__root > li > ul > li:has(.person--focal) {
  grid-column: 1 / -1;
}

.ej-gen-tree__root > li > ul ul {
  display: block;
  margin-top: 0.65rem;
  margin-left: 0;
  padding-top: 0.5rem;
  padding-left: 1.15rem;
  border-left: 2px solid rgba(45, 173, 72, 0.38);
}

.ej-gen-tree__root > li > ul ul ul {
  border-left-color: rgba(236, 228, 208, 0.18);
  margin-top: 0.5rem;
}

.ej-gen-tree .person {
  display: block;
  width: fit-content;
  max-width: min(100%, 26rem);
  padding: 0.8rem 1rem 0.9rem;
  margin: 0.2rem 0;
  background: rgba(16, 10, 13, 0.88);
  border: 1px solid var(--rule-2);
  border-left: 3px solid rgba(236, 228, 208, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.25s var(--ease),
    background 0.35s var(--ease);
  border-radius: 3px !important;
}

.ej-gen-tree .person:hover {
  border-color: rgba(45, 173, 72, 0.4);
  border-left-color: var(--accent-2);
  background: rgba(24, 14, 18, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transform: translateX(2px);
}

.ej-gen-tree .person--union {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto 0.25rem;
  padding: 1.15rem 1.35rem 1.2rem;
  text-align: center;
  border-left-width: 4px;
  border-left-color: rgba(31, 143, 56, 0.55);
  background: linear-gradient(180deg, rgba(36, 18, 22, 0.9) 0%, rgba(16, 10, 13, 0.92) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.ej-gen-tree .person--union:hover {
  transform: none;
  border-left-color: var(--accent);
}

.ej-gen-tree .person--union .person-separator {
  margin: 0.45rem 0;
  letter-spacing: 0.35em;
  color: var(--accent-2);
  opacity: 0.9;
}

.ej-gen-tree .person--focal {
  max-width: min(100%, 30rem);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(31, 143, 56, 0.14) 0%, rgba(16, 10, 13, 0.95) 42%);
  box-shadow:
    0 0 0 1px rgba(45, 173, 72, 0.12),
    0 10px 32px rgba(0, 0, 0, 0.32);
}

.ej-gen-tree .person--focal .person-name {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ej-gen-tree .person--label {
  max-width: min(100%, 34rem);
  padding: 0.55rem 0.95rem;
  background: rgba(8, 5, 7, 0.45);
  border: 1px dashed rgba(236, 228, 208, 0.22);
  border-left: 2px dashed rgba(45, 173, 72, 0.45);
  box-shadow: none;
}

.ej-gen-tree .person--label:hover {
  transform: none;
  border-left-color: var(--accent-2);
}

.ej-gen-tree .person--label .person-marriage {
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-2);
  margin-top: 0;
}

.ej-gen-tree .person--label .person-note {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.ej-gen-tree .person-name {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.3;
}

.ej-gen-tree .person-dates {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-top: 0.28rem;
}

.ej-gen-tree .person-role,
.ej-gen-tree .person-marriage,
.ej-gen-tree .person-note {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--paper-mute);
  font-style: italic;
  margin-top: 0.22rem;
  line-height: 1.45;
}

.ej-gen-tree .person-separator {
  color: var(--paper-dim);
  margin: 0.3rem 0;
  font-family: var(--mono);
  font-size: 0.68rem;
}

@media (max-width: 720px) {
  .ej-gen-tree__root > li > ul {
    grid-template-columns: 1fr;
  }

  .ej-gen-tree__root > li > ul > li:has(.person--focal) {
    grid-column: auto;
  }

  .ej-gen-tree .person {
    max-width: 100%;
    width: 100%;
  }

  .ej-gen-tree .person--union {
    text-align: left;
  }
}


/* ========= 17. FOOTER ========= */

.ej-footer {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule-2);
  background: var(--ink);
}

.ej-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.ej-footer-logo-section {
  max-width: 32rem;
}

/* Lockup marque : pictogramme ARCHIV + titre */
.ej-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.625rem, 1.5vw, 1rem);
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.25rem;
  transition: opacity 0.3s var(--ease);
}

.ej-footer-brand:hover {
  opacity: 0.92;
}

/* (Legacy text logo kept for fallback / accessibility tooling) */
.ej-footer-logo {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.25rem;
}

/* SVG wordmark Albin Julius — footer (only brand mark) */
.ej-footer-brand .ej-footer-logo-img {
  display: block;
  height: clamp(40px, 5.2vw, 54px);
  width: auto;
  max-width: clamp(280px, 36vw, 380px);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}

.ej-footer-brand:hover .ej-footer-logo-img {
  transform: translateY(-1px);
  filter:
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 12px rgba(31, 143, 56, 0.28));
}

@media (max-width: 640px) {
  .ej-footer-brand .ej-footer-logo-img {
    height: 36px;
    max-width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ej-footer-brand:hover .ej-footer-logo-img {
    transform: none;
  }
}

.ej-footer-brand .ej-footer-logo {
  display: inline;
  margin-bottom: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
}

.ej-footer-description {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--paper-mute);
}

.ej-footer-section-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--accent-dim);
}

.ej-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ej-footer-link a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--paper-2);
}

.ej-footer-link a:hover {
  color: var(--accent-2);
}

.ej-footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ej-footer-dev-notice,
.ej-footer-rights-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--paper-dim);
  margin: 0;
}


/* ========= 18. SCROLL TO TOP ========= */

.ej-scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease);
}

.ej-scroll-to-top::before {
  content: "↑";
  font-family: var(--sans);
  font-size: 1rem;
}

.ej-scroll-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}


/* ========= 19. MOTION ========= */

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ej-leitmotive-card,
.ej-exil-card,
.ej-link-card,
.gallery-card,
.ej-timeline-item,
.ej-bibliography-item,
.ej-video-item {
  animation: lift-in 0.9s var(--ease) both;
  opacity: 1;
}

.ej-leitmotive-grid > *:nth-child(1) { animation-delay: 0.04s; }
.ej-leitmotive-grid > *:nth-child(2) { animation-delay: 0.1s; }
.ej-leitmotive-grid > *:nth-child(3) { animation-delay: 0.16s; }
.ej-leitmotive-grid > *:nth-child(4) { animation-delay: 0.22s; }

.anim-chariot-load {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ========= 20. RESPONSIVE ========= */

/* ---- Tablet ≤ 1024 : grille / marges ---- */
@media (max-width: 1024px) {
  .ej-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-card {
  /* aspect-ratio handled on .gallery-card picture, not the card */
  }

  .ej-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ej-footer-logo-section {
    grid-column: 1 / -1;
  }
}


/* ---- Compact ≤ 1024 : nav bureau masquée, panneau mobile (.ej-mobile-panel) ---- */
@media (max-width: 1024px) {
  .navbar-row {
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
  }

  .ej-nav-desktop {
    display: none !important;
  }

  .nav-logo-link {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 7.5rem);
  }

  .nav-logo-link .nav-logo {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-logo-link .nav-logo-img {
    height: 26px;
    max-width: 100%;
    width: auto;
  }

  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 5, 7, 0.96);
    z-index: 500;
    position: relative;
  }

  .nav-logo-link,
  .navbar-right-contents {
    position: relative;
    z-index: 520;
  }

  .navbar-right-contents {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .ej-burger {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(236, 228, 208, 0.45);
    background: rgba(24, 14, 18, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 530;
    color: var(--paper);
  }

  .ej-burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  body.ej-mobile-nav-open .ej-burger .ej-burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.ej-mobile-nav-open .ej-burger .ej-burger-bar:nth-child(2) {
    opacity: 0;
  }

  body.ej-mobile-nav-open .ej-burger .ej-burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .ej-burger:hover,
  .ej-burger:focus-visible {
    border-color: var(--accent-2);
    background: rgba(31, 143, 56, 0.15);
    outline: none;
  }

  .ej-mobile-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 600;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  body.ej-mobile-nav-open .ej-mobile-panel {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
  }

  body.ej-mobile-nav-open {
    overflow: hidden;
  }

  /* Zone assombrie cliquable : flex-grow pour ne pas laisser la feuille recouvrir tout l’écran */
  .ej-mobile-panel__scrim {
    flex: 1 1 auto;
    min-height: 3rem;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background: rgba(5, 4, 3, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
  }

  .ej-mobile-panel__sheet {
    flex: 0 0 auto;
    max-height: min(92vh, calc(100vh - 52px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(8, 5, 7, 0.98);
    border-top: 1px solid var(--rule-2);
    padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  }

  .ej-mobile-panel__title {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper-mute);
    margin: 0 0 1rem;
  }

  .ej-mobile-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ej-mobile-panel__group {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0 0.2rem;
    border-bottom: 1px solid var(--rule-2);
  }

  .ej-mobile-panel__group-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper-mute);
    opacity: 0.88;
  }

  .ej-mobile-panel__list a {
    display: block;
    padding: 0.95rem 0;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid var(--rule-2);
    opacity: 0.92;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .ej-mobile-panel__list li:first-child a {
    border-top: 1px solid var(--rule-2);
  }

  .ej-mobile-panel__list a:hover,
  .ej-mobile-panel__list a:focus-visible {
    color: var(--accent-2);
    background: rgba(31, 143, 56, 0.08);
    outline: none;
  }
}


/* ---- Tablet portrait ≤ 768 ---- */
@media (max-width: 768px) {
  html { font-size: 15.5px; }

  .navbar-container {
    height: 68px;
  }

  .hero-section {
    min-height: 100vh;
  }

  .hero-1-content {
    padding: clamp(5rem, 14vw, 7rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  }

  .hero-1-title::before {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  .heading---h2 {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
  }

  .buttons {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .ej-leitmotive-grid,
  .ej-exil-grid,
  .ej-links-grid,
  .ej-videos-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card {
  /* aspect-ratio handled on .gallery-card picture, not the card */
  }

  .ej-footer-grid {
    grid-template-columns: 1fr;
  }

  .ej-footer-logo-section {
    grid-column: 1;
  }

  /* Bibliographie : année empilée sur mobile */
  .ej-bibliography-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0.35rem;
  }

  .ej-bibliography-item .ej-bibliography-year {
    grid-column: 1;
    grid-row: 1;
  }

  .ej-bibliography-item .ej-bibliography-title {
    grid-column: 1;
    grid-row: 2;
  }

  .ej-bibliography-description {
    grid-column: 1;
    grid-row: 3;
  }

  .ej-bibliography-item .ej-bibliography-pdf {
    grid-column: 1;
    grid-row: 4;
    margin-top: 0.35rem;
  }

  /* Timeline + biblio : padding réduit */
  .ej-timeline,
  .ej-bibliography {
    padding-left: 1.5rem;
  }

  .ej-timeline-dot {
    left: -1.82rem;
  }
}


/* ---- Mobile ≤ 480 ---- */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .navbar-container {
    height: 60px;
  }

  .nav-logo {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .nav-logo-link .nav-logo-img {
    height: 22px;
    max-width: 170px;
  }

  .hero-1-content {
    padding: 5rem 1.25rem 2.5rem;
  }

  .hero-1-title::before {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.6rem;
  }

  .heading---h2 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
    line-height: 1;
  }

  .hero-dates {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card {
  /* aspect-ratio handled on .gallery-card picture, not the card */
  }

  .ej-leitmotive-card,
  .ej-exil-card,
  .ej-link-card {
    padding: 1.75rem 1.5rem;
  }

  .ej-leitmotive-card::after,
  .ej-exil-card::after {
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.65rem;
  }

  .ej-scroll-to-top {
    width: 38px;
    height: 38px;
    bottom: 1rem;
    right: 1rem;
  }
}


/* =========================================================================
   25. PHASE 1 — DIRECTION ARTISTIQUE OCCULT / POST-INDUSTRIAL (overrides)
   Renforce le ton "archive confidentielle / catalogue interdit / musée nocturne".
   ========================================================================= */

/* Titres de section : plus rituels, plus serrés, sensation héraldique. */
.ej-section-title-archival,
.ej-leitmotive-title,
.ej-exil-title,
.gallery-title,
.ej-title {
  font-weight: 350;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.ej-military-subtitle {
  color: var(--paper-mute);
  letter-spacing: 0.22em;
}

/* Hero : voile sépia plus dense, dégradé vers le bas, sans rendre l'image illisible. */
.hero-section {
  background-color: var(--ink);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.25) 0%, rgba(5, 4, 3, 0.78) 70%, var(--ink) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 28%, rgba(42, 10, 16, 0.42) 90%);
  pointer-events: none;
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}


/* ========= HERO GLITCH OVERLAY (Serpenta subliminal flash) ========= */
/* Layer placed between the SneQ background and the dark gradient overlay.
   Triggered by JS adding `.hero-glitch--active` at randomised intervals. */

.hero-glitch {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 90ms steps(1, end);
  will-change: opacity, transform, filter, clip-path;
  overflow: hidden;
}

.hero-glitch-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glitch-img,
.hero-glitch-img--shift {
  position: absolute;
  inset: 0;
  background:
    url("../images/albin/Serpenta_bund_ohne_sunbeams1.jpg") center center / contain no-repeat;
  filter: contrast(1.08) brightness(1.04);
}

/* Second layer = subtle RGB shift / chromatic aberration (native colours, no hue-rotate) */
.hero-glitch-img--shift {
  mix-blend-mode: screen;
  filter: contrast(1.05) brightness(1);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
}

/* Scanlines + soft noise — only visible during a burst */
.hero-glitch-scanlines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(0, 0, 0, 0.18) 3px),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 75%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 60ms steps(1, end);
}

.hero-glitch--active {
  opacity: 0.30;
  filter: url(#hero-wave-distort);
  animation: hero-glitch-burst 360ms steps(2, end);
}

.hero-glitch--active .hero-glitch-img--shift {
  animation: hero-glitch-rgb-shift 360ms steps(3, end);
}

.hero-glitch--active .hero-glitch-scanlines {
  opacity: 0.85;
  animation: hero-glitch-scan-drift 360ms linear;
}

@keyframes hero-glitch-burst {
  0%   { transform: translate3d(0, 0, 0); clip-path: inset(0 0 0 0); }
  16%  { transform: translate3d(-3px, 2px, 0) scaleY(1.02);
         clip-path: inset(0 0 70% 0); }
  32%  { transform: translate3d(2px, -1px, 0);
         clip-path: inset(48% 0 22% 0); }
  48%  { transform: translate3d(-2px, 3px, 0);
         clip-path: inset(15% 0 60% 0); }
  64%  { transform: translate3d(3px, -2px, 0);
         clip-path: inset(60% 0 6% 0); }
  82%  { transform: translate3d(-1px, 1px, 0);
         clip-path: inset(28% 0 40% 0); }
  100% { transform: translate3d(0, 0, 0);
         clip-path: inset(0 0 0 0); }
}

@keyframes hero-glitch-rgb-shift {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(4px, 0, 0); }
  40%  { transform: translate3d(-3px, -1px, 0); }
  60%  { transform: translate3d(2px, 1px, 0); }
  80%  { transform: translate3d(-4px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes hero-glitch-scan-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 12px, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glitch,
  .hero-glitch-defs {
    display: none !important;
  }
}

.hero-dates {
  font-family: var(--mono);
  letter-spacing: 0.32em;
  color: var(--accent-3);
}

/* Cartes (leitmotive, exil, link, discography, leitmotiveCards) :
   bordure verte sourde, fond sépia noirci, vignette intérieure. */
.ej-leitmotive-card,
.ej-exil-card,
.ej-link-card,
.ej-discography__item,
.ej-bibliography-item,
.gallery-card {
  background: linear-gradient(180deg, rgba(12, 7, 10, 0.92) 0%, rgba(5, 4, 3, 0.96) 100%);
  border: 1px solid var(--rule);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(232, 223, 207, 0.05),
    0 12px 28px -18px rgba(0, 0, 0, 0.85);
  transition:
    border-color 0.5s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.ej-leitmotive-card:hover,
.ej-exil-card:hover,
.ej-link-card:hover,
.ej-discography__item:hover,
.ej-bibliography-item:hover {
  border-color: var(--rule-toxic);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--accent-dim),
    0 14px 32px -16px rgba(11, 61, 26, 0.45);
  transform: translateY(-1px);
}

/* Petits liens d'index discographie : monospace + soulignement fin venom yellow. */
.ej-discography__links a {
  color: var(--accent-3);
  text-decoration: underline;
  text-decoration-color: var(--accent-3-dim);
  text-underline-offset: 4px;
}

.ej-discography__links a:hover {
  color: var(--paper);
  text-decoration-color: var(--accent-2);
}

/* Boutons & filtres : actif vert toxique, hover venom yellow. */
.ej-filter-btn.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.ej-filter-btn:hover {
  color: var(--accent-3);
  background: rgba(31, 143, 56, 0.08);
}

.button {
  border-color: var(--paper-mute);
}

.button:hover {
  border-color: var(--accent-2);
  color: var(--paper);
}

/* Séparateurs / hud-marks : trait lumineux toxique discret. */
.ej-hud-mark {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  margin: 0 0.5rem;
  vertical-align: middle;
  opacity: 0.55;
}

/* Liens de navigation — vert venom yellow au hover, vert toxique pour la page courante. */
.ej-nav-link:hover,
.ej-nav-dropdown-link:hover {
  color: var(--accent-3);
}

.ej-nav-link--current {
  color: var(--accent-2);
}

/* Footer : filet vert sourd en haut, fond rouge vin très foncé. */
.ej-footer {
  border-top: 1px solid var(--rule-toxic);
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--deep-wine) 100%);
}

.ej-footer-rights-text,
.ej-footer-dev-notice {
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* Marque "ARCHIV" mark + wordmark — teinte ivoire sale, tracking augmenté. */
.nav-logo,
.ej-footer-logo {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  font-size: 0.92rem;
}

/* Skip link — vert toxique sur ivoire pour visibilité maximum au focus. */
.ej-skip-link:focus {
  background: var(--accent);
  color: var(--ink);
  outline: 2px solid var(--accent-3);
}

/* Animation fade lente d'apparition (cartes, items) — discrète, rituelle. */
@media (prefers-reduced-motion: no-preference) {
  .ej-timeline-item,
  .ej-bibliography-item,
  .ej-leitmotive-card,
  .ej-exil-card,
  .ej-link-card,
  .ej-discography__item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }

  .ej-timeline-item.visible,
  .ej-bibliography-item.visible,
  .ej-leitmotive-card.visible,
  .ej-exil-card.visible,
  .ej-link-card.visible,
  .ej-discography__item.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }
}


/* ========= 26. PHASE 2 — VISUAL LANGUAGE + VISUAL REFERENCES ========= */

.ej-visual-language {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 5, 7, 0.65) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.ej-vl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 720px) {
  .ej-vl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .ej-vl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ej-vl-card--wide {
    grid-column: span 3;
  }
}

.ej-vl-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(12, 7, 10, 0.92) 0%, rgba(5, 4, 3, 0.96) 100%);
  border: 1px solid var(--rule);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 12px 28px -18px rgba(0, 0, 0, 0.85);
  transition:
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.ej-vl-card:hover {
  border-color: var(--rule-toxic);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--accent-dim),
    0 14px 32px -16px rgba(11, 61, 26, 0.4);
  transform: translateY(-1px);
}

.ej-vl-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin: 0 0 0.6rem;
}

.ej-vl-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

.ej-vl-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--paper-mute);
  margin: 0;
}

.ej-vl-glyph {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--accent);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}

.ej-vl-card:hover .ej-vl-glyph {
  opacity: 0.85;
  color: var(--accent-3);
}

.ej-vl-warning {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.1rem 1.4rem;
  background: rgba(42, 10, 16, 0.55);
  border-left: 3px solid var(--accent-3);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--paper);
  letter-spacing: 0.005em;
}


/* === Stammbaum / Projets : fiches projets === */

.ej-projects-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .ej-projects-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ej-project-card {
  padding: 1.5rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(12, 7, 10, 0.92) 0%, rgba(5, 4, 3, 0.96) 100%);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ej-project-card:hover {
  border-color: var(--rule-toxic);
}

.ej-project-card--wide {
  grid-column: 1 / -1;
}

/* === Discography grid (Projects page) === */

.ej-discography {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
}

.ej-discography-head {
  max-width: 52rem;
  margin-bottom: 1.25rem;
}

.ej-discography-heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.ej-discography-intro,
.ej-discography-sources,
.ej-discography-note {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--paper-mute);
  margin: 0.45rem 0 0;
}

.ej-discography-sources a,
.ej-discography-links a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ej-discography-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.75rem;
}

.ej-discography-filter {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--paper-mute);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ej-discography-filter:hover,
.ej-discography-filter.is-active {
  border-color: var(--accent);
  color: var(--paper);
  background: rgba(31, 143, 56, 0.08);
}

.ej-discography-count-wrap {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0 0 1rem;
}

.ej-discography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem 1.1rem;
}

@media (min-width: 720px) {
  .ej-discography-grid {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  }
}

.ej-discography-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ej-discography-cover {
  aspect-ratio: 1;
  background: rgba(8, 5, 7, 0.85);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ej-discography-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ej-discography-cover-placeholder {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
}

.ej-discography-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin: 0;
}

.ej-discography-title {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper);
  margin: 0;
}

.ej-discography-links {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--paper-dim);
}

.ej-discography-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  max-width: 46rem;
}

.ej-project-name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.015em;
}

.ej-project-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.875rem;
  line-height: 1.55;
}

.ej-project-row dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.ej-project-row dd {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper-mute);
}

.ej-project-card .ej-project-row dd strong {
  color: var(--paper);
  font-weight: 500;
}

.ej-project-aside {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.4rem 1.5rem;
  background: rgba(36, 18, 22, 0.5);
  border-left: 3px solid var(--accent);
}

.ej-project-aside h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.ej-project-aside p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--paper);
  margin: 0;
}


/* === Section Interviews (publications imprimées / web) === */

.ej-interviews-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background:
    linear-gradient(180deg, rgba(8, 5, 7, 0.55) 0%, transparent 100%);
  border-top: 1px solid var(--rule);
}

.ej-interview-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .ej-interview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ej-interview-card--feature {
    grid-column: span 2;
  }
}

.ej-interview-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(12, 7, 10, 0.92) 0%, rgba(5, 4, 3, 0.96) 100%);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.5s var(--ease);
}

.ej-interview-card:hover {
  border-color: var(--rule-toxic);
}

.ej-interview-card--feature {
  border-left: 3px solid var(--accent-3);
  padding-left: 1.4rem;
}

.ej-interview-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  align-items: baseline;
}

.ej-interview-index {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--accent-3);
  padding-top: 0.15rem;
  align-self: start;
}

.ej-interview-outlet {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.ej-interview-title {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.01em;
}

.ej-interview-meta {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.ej-interview-meta > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.ej-interview-meta dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0;
}

.ej-interview-meta dd {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--paper-mute);
  margin: 0;
}

.ej-interview-note {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--paper-dim);
  font-style: italic;
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--rule);
}

.ej-interview-link {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.ej-interview-link a {
  color: var(--accent-3);
  text-decoration: underline;
  text-decoration-color: var(--accent-3-dim);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.ej-interview-link a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent);
}
