/*
  ========================================================================
    _______  _  _                 ____
   |__   __|(_)| |               / ___|
      | |    _ | |__   ____ ___ | |  _
      | |   | || '_ \ |_  // _ \| | |_ |
      | |   | || |_) | / /| (_) | |__| |
      |_|   |_||_.__/ /___|\___/ \____|

    > Page Extraits — Avant l'Oubli
    > Reprend la grammaire visuelle du site (or sur noir, serif, filets).
  ========================================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cinzel+Decorative:wght@700&family=Cinzel:wght@500;700&family=IM+Fell+English:ital@0;1&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg:        #080709;
  --bg2:       #0e0c10;
  --ink:       #f0eae0;
  --muted:     rgba(240,234,224,0.58);
  --line:      rgba(240,234,224,0.10);
  --gold:      #c9a84c;
  --gold2:     #e8c876;
  --gold3:     #f5dfa0;
  --crimson:   #8b1e2f;
  --shadow:    0 24px 64px rgba(0,0,0,0.65);
  --radius:    20px;
  --radius-sm: 12px;
  --max:       1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ─── Grain + fond d'ambiance (repris du site) ─── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .028;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 1400px 800px at 5% 0%,   rgba(201,168,76,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 600px at 95% 20%, rgba(139,30,47,0.18)  0%, transparent 50%),
    radial-gradient(ellipse 1200px 900px at 50% 100%, rgba(14,12,16,0.92)  0%, transparent 60%),
    linear-gradient(170deg, #0a0809 0%, #080709 40%, #090a0e 100%);
  background-attachment: fixed;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.35); border-radius: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 100px;
}

/* ─── En-tête ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: linear-gradient(180deg, rgba(8,7,9,.92) 0%, rgba(8,7,9,.70) 100%);
  border-bottom: 1px solid rgba(201,168,76,.18);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }

.seal {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(201,168,76,.9) 0%,
      rgba(245,223,160,.6) 25%,
      rgba(201,168,76,.5) 50%,
      rgba(139,30,47,.8) 75%,
      rgba(201,168,76,.9) 100%
    );
  border: 1.5px solid rgba(201,168,76,.55);
  box-shadow:
    0 0 0 4px rgba(201,168,76,.08),
    0 8px 24px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

.seal::after {
  content: '✦';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(8,7,9,.85);
  font-weight: 900;
}

.brand h1 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.brand h1 span {
  display: block;
  font-family: 'Crimson Pro', serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 2px;
}

.navlinks {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240,234,224,.12);
  background: rgba(255,255,255,.03);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all 200ms ease;
}

.pill:hover {
  border-color: rgba(201,168,76,.5);
  background: rgba(201,168,76,.08);
  transform: translateY(-1px);
}

.pill.primary {
  border-color: rgba(201,168,76,.5);
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(201,168,76,.06));
  color: var(--gold2);
}

.navsep {
  flex-shrink: 0;
  width: 1px; height: 20px;
  margin: 0 2px;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,.35), transparent);
}

.pill.login {
  gap: 7px;
  border-color: rgba(240,234,224,.18);
  background: rgba(255,255,255,.05);
  color: var(--gold2);
}

.pill.login:hover {
  border-color: rgba(201,168,76,.6);
  background: rgba(201,168,76,.12);
}

.login-ico { font-size: 13px; line-height: 1; opacity: .85; transform: translateY(-.5px); }

/* ─── Hero ─── */
.hero {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  left: -24px; right: -24px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4) 30%, rgba(201,168,76,.4) 70%, transparent);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: .6;
}

.hero h2 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.01em;
}

.hero h2 em {
  font-style: italic;
  display: block;
  color: var(--gold2);
  text-shadow: 0 0 80px rgba(201,168,76,.3), 0 2px 0 rgba(0,0,0,.4);
}

.hero > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 52ch;
  font-style: italic;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

/* ─── Compteurs ─── */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi {
  border-radius: 14px;
  border: 1px solid rgba(240,234,224,.1);
  background: rgba(8,7,9,.5);
  padding: 18px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}

.kpi strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold2);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.kpi span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  color: var(--muted);
}

/* ─── Section ─── */
.section {
  margin-top: 60px;
  padding-top: 40px;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sectionHead h3 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .01em;
  position: relative;
  display: inline-block;
}

.sectionHead h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sectionHead p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.65;
  font-size: 15px;
  font-style: italic;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240,234,224,.14);
  background: rgba(8,7,9,.6);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,234,224,.8);
  white-space: nowrap;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold2);
  box-shadow: 0 0 0 3px rgba(201,168,76,.2), 0 0 8px rgba(201,168,76,.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,168,76,.2), 0 0 8px rgba(201,168,76,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(201,168,76,.1), 0 0 16px rgba(201,168,76,.6); }
}

/* ─── Boutons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(240,234,224,.14);
  background: rgba(255,255,255,.04);
  color: rgba(240,234,224,.88);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all 180ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(201,168,76,.5);
  background: rgba(201,168,76,.09);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.btn:active { transform: translateY(0); }

.btn.gold {
  border-color: rgba(201,168,76,.6);
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.08));
  color: var(--gold3);
}

.btn.gold:hover {
  background: linear-gradient(135deg, rgba(201,168,76,.32), rgba(201,168,76,.14));
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 20px rgba(201,168,76,.15);
}

/* ─── Barre de filtres ─── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(240,234,224,.10);
  background:
    radial-gradient(ellipse 700px 200px at 10% 0%, rgba(201,168,76,.08), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}

.toolbar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}

.label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240,234,224,.65);
  margin: 0 0 8px;
}

.input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(240,234,224,.12);
  background: rgba(255,255,255,.03);
  padding: 11px 14px;
  outline: none;
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease;
}

.input::placeholder { color: rgba(240,234,224,.3); font-style: italic; }

.input:focus {
  border-color: rgba(201,168,76,.55);
  background: rgba(201,168,76,.04);
}

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 200px;
}

.search .input { padding-left: 38px; padding-right: 38px; }
.search .input::-webkit-search-cancel-button { display: none; }

.search-ico {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(201,168,76,.6);
  font-size: 13px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(240,234,224,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
}

.search-clear:hover { border-color: rgba(201,168,76,.5); color: var(--gold2); }
.search-clear[hidden] { display: none; }

.filter-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(240,234,224,.10);
  background: rgba(8,7,9,.5);
}

.filter {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(240,234,224,.6);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all 180ms ease;
  white-space: nowrap;
}

.filter:hover { color: var(--ink); background: rgba(255,255,255,.04); }

.filter.is-active {
  border-color: rgba(201,168,76,.45);
  background: linear-gradient(135deg, rgba(201,168,76,.2), rgba(201,168,76,.06));
  color: var(--gold3);
}

.sortwrap { display: flex; align-items: center; gap: 10px; }
.sortwrap .label { margin: 0; }

.select {
  width: auto;
  padding: 9px 32px 9px 12px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(201,168,76,.8) 50%),
    linear-gradient(135deg, rgba(201,168,76,.8) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.select option { background: #100e12; color: var(--ink); }

/* ─── Filtres thématiques ─── */
.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 26px;
  align-items: center;
}

.theme-chip {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(240,234,224,.10);
  background: rgba(8,7,9,.45);
  color: rgba(240,234,224,.6);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .06em;
  transition: all 180ms ease;
}

.theme-chip:hover {
  border-color: rgba(201,168,76,.4);
  color: var(--ink);
}

.theme-chip.is-active {
  border-color: rgba(201,168,76,.5);
  background: rgba(201,168,76,.12);
  color: var(--gold2);
}

/* ─── Grille d'extraits ─── */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ex-card {
  border-radius: var(--radius);
  border: 1px solid rgba(240,234,224,.10);
  background:
    linear-gradient(160deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%),
    radial-gradient(600px 200px at 0% 0%, rgba(201,168,76,.10), transparent 55%);
  box-shadow: 0 12px 40px rgba(0,0,0,.38);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 300ms cubic-bezier(.22,1,.36,1), box-shadow 300ms ease, border-color 300ms ease;
}

.ex-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.35), transparent);
}

.ex-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.22);
  border-color: rgba(201,168,76,.22);
}

.ex-card.is-playing {
  border-color: rgba(201,168,76,.38);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(201,168,76,.28), 0 0 30px rgba(201,168,76,.07);
}

/* Zone média commune (16:9) */
.ex-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a0e;
  overflow: hidden;
  flex-shrink: 0;
}

.ex-media-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(201,168,76,.12), transparent 55%),
    radial-gradient(ellipse 60% 70% at 80% 70%, rgba(139,30,47,.18), transparent 55%),
    linear-gradient(160deg, #0f0d11, #08060a);
  transition: transform 400ms cubic-bezier(.22,1,.36,1);
}

.ex-card:hover .ex-media-bg { transform: scale(1.04); }

.ex-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), opacity 300ms ease;
}

.ex-card:hover .ex-media img { transform: scale(1.04); opacity: .95; }

.ex-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 40%, rgba(8,7,9,.78) 100%),
    linear-gradient(90deg, rgba(8,7,9,.2), transparent 30%, transparent 70%, rgba(8,7,9,.2));
}

.ex-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Pellicule (extraits vidéo) */
.ex-strips {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 0 8px;
  pointer-events: none;
}

.ex-strips.top    { top: 0; }
.ex-strips.bottom { bottom: 0; }

.ex-strip-hole {
  width: 10px; height: 7px;
  border-radius: 2px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

/* Badges posés sur le média */
.ex-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 6;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0,0,0,.72);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(240,234,224,.85);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}

.ex-kind {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.ex-kind.video {
  border: 1px solid rgba(255,80,60,.28);
  background: rgba(30,8,6,.6);
  color: rgba(255,110,90,.85);
}

.ex-kind.audio {
  border: 1px solid rgba(201,168,76,.32);
  background: rgba(24,18,6,.6);
  color: var(--gold2);
}

/* Bouton de lecture central */
.ex-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ex-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,.55);
  background:
    radial-gradient(circle at 38% 38%, rgba(245,223,160,.22), rgba(201,168,76,.06) 55%, rgba(0,0,0,.35) 80%),
    rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: all 260ms cubic-bezier(.22,1,.36,1);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.ex-play svg {
  width: 18px; height: 18px;
  fill: var(--gold2);
  filter: drop-shadow(0 0 5px rgba(201,168,76,.5));
  transition: transform 220ms ease;
}

.ex-play[data-icon="play"] svg { margin-left: 3px; }

.ex-card:hover .ex-play,
.ex-play:hover {
  border-color: rgba(201,168,76,.9);
  background:
    radial-gradient(circle at 38% 38%, rgba(245,223,160,.35), rgba(201,168,76,.15) 55%, rgba(0,0,0,.2) 80%),
    rgba(0,0,0,.2);
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,0,0,.45), 0 0 0 8px rgba(201,168,76,.1), 0 0 30px rgba(201,168,76,.15);
}

.ex-card:hover .ex-play svg { transform: scale(1.1); }

/* ── Plaque audio : disque + ondes ── */
.ex-media.is-audio {
  background:
    radial-gradient(ellipse 70% 70% at 50% 42%, rgba(201,168,76,.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 90%, rgba(139,30,47,.16), transparent 55%),
    linear-gradient(160deg, #100d12, #08060a);
}

.ex-vinyl {
  position: absolute;
  top: 42%; left: 50%;
  width: 132px; height: 132px;
  margin: -66px 0 0 -66px;
  border-radius: 50%;
  z-index: 3;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(201,168,76,.10) 0px,
      rgba(201,168,76,.10) 1px,
      transparent 1px,
      transparent 7px
    ),
    conic-gradient(from 220deg,
      rgba(201,168,76,.20),
      rgba(139,30,47,.18) 35%,
      rgba(201,168,76,.10) 60%,
      rgba(201,168,76,.24)
    ),
    #0b090d;
  border: 1px solid rgba(201,168,76,.28);
  box-shadow: inset 0 0 30px rgba(0,0,0,.7), 0 10px 30px rgba(0,0,0,.5);
}

.ex-vinyl::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(245,223,160,.35), rgba(201,168,76,.12) 60%, transparent 72%);
  border: 1px solid rgba(201,168,76,.2);
}

.ex-card.is-playing .ex-vinyl { animation: vinyl-spin 6s linear infinite; }

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ex-waveform {
  position: absolute;
  left: 14px; right: 14px; bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 34px;
  cursor: pointer;
  transition: bottom 240ms ease, height 240ms ease;
}

.ex-wave-bar {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(201,168,76,.22);
  transform-origin: bottom;
  transition: background 200ms ease;
}

.ex-wave-bar.played { background: rgba(201,168,76,.72); }

.ex-card.is-playing .ex-wave-bar {
  animation: wave-dance var(--wave-dur, 1s) ease-in-out infinite alternate;
  animation-delay: var(--wave-delay, 0s);
}

@keyframes wave-dance {
  from { transform: scaleY(var(--wave-min, .35)); }
  to   { transform: scaleY(var(--wave-max, 1)); }
}

.ex-progress {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 4;
  height: 3px;
  border-radius: 3px;
  background: rgba(240,234,224,.12);
  cursor: pointer;
}

.ex-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width .1s linear;
  position: relative;
}

.ex-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold2);
  transform: translateY(-50%) scale(0);
  transition: transform 160ms ease;
  box-shadow: 0 0 8px rgba(201,168,76,.6);
}

.ex-progress:hover .ex-progress-fill::after { transform: translateY(-50%) scale(1); }

.ex-elapsed {
  position: absolute;
  left: 14px; bottom: 24px;
  z-index: 6;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 200ms ease;
}

.ex-card.is-playing .ex-elapsed  { opacity: 1; }
.ex-card.is-playing .ex-waveform { bottom: 44px; height: 30px; }

/* ── Corps de la carte ── */
.ex-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ex-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ex-person {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink);
  line-height: 1.4;
}

.ex-head-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Bouton marque-page */
.bookmark-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(240,234,224,.12);
  background:
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01)),
    rgba(8,7,9,.5);
  color: rgba(240,234,224,.42);
  cursor: pointer;
  position: relative;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(.22,1,.36,1), box-shadow 220ms ease;
}

.bookmark-btn svg {
  width: 15px;
  height: 18px;
  display: block;
}

.bookmark-btn .bookmark-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.bookmark-btn .bookmark-fill {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  transform: scaleY(.55);
  transform-origin: 50% 15%;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.22,1,.36,1);
}

.bookmark-btn:hover {
  color: var(--gold2);
  border-color: rgba(201,168,76,.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 14px rgba(201,168,76,.14);
}

.bookmark-btn:hover .bookmark-fill { opacity: .16; transform: none; }

.bookmark-btn:active { transform: translateY(0) scale(.94); }

.bookmark-btn:focus-visible {
  outline: none;
  border-color: rgba(201,168,76,.6);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}


.bookmark-btn.is-marked {
  color: var(--gold2);
  border-color: rgba(201,168,76,.5);
  background:
    radial-gradient(circle at 50% 22%, rgba(245,223,160,.18), transparent 68%),
    rgba(8,7,9,.55);
  box-shadow: 0 4px 16px rgba(0,0,0,.35), 0 0 16px rgba(201,168,76,.16);
}

.bookmark-btn.is-marked .bookmark-fill { opacity: .32; transform: none; }

.bookmark-btn.is-marked svg {
  filter: drop-shadow(0 0 5px rgba(201,168,76,.45));
}


.ex-card.is-marked {
  border-color: rgba(201,168,76,.24);
}

.ex-card.is-marked::before {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.6), transparent);
}


.chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,.3);
  background: rgba(201,168,76,.08);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.ex-meta {
  font-family: 'Crimson Pro', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 12px;
}

.ex-quote {
  margin: 0 0 16px;
  color: rgba(240,234,224,.78);
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ex-quote::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  line-height: .5;
  color: rgba(201,168,76,.4);
  float: left;
  margin-right: 4px;
  margin-top: 6px;
}

.ex-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(240,234,224,.08);
  margin-top: auto;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.tag {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(240,234,224,.10);
  background: rgba(8,7,9,.4);
  font-size: 11px;
  font-family: 'Cinzel', serif;
  letter-spacing: .04em;
  color: rgba(240,234,224,.55);
}

.ex-action { font-size: 10px; padding: 7px 14px; }

/* ─── États : vide, chargement ─── */
.ex-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(240,234,224,.12);
  color: var(--muted);
  font-style: italic;
}

.ex-empty span {
  display: block;
  font-size: 30px;
  color: rgba(201,168,76,.35);
  margin-bottom: 14px;
  letter-spacing: .25em;
}

.ex-empty strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  color: rgba(240,234,224,.8);
  margin-bottom: 8px;
}

/* Squelettes pendant le chargement */
.ex-skeleton {
  border-radius: var(--radius);
  border: 1px solid rgba(240,234,224,.08);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

.ex-skeleton .sk-media { width: 100%; aspect-ratio: 16 / 9; }
.ex-skeleton .sk-body  { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ex-skeleton .sk-line  { height: 10px; border-radius: 4px; }
.ex-skeleton .sk-line.w60 { width: 60%; }
.ex-skeleton .sk-line.w40 { width: 40%; }

.ex-skeleton .sk-media,
.ex-skeleton .sk-line {
  background: linear-gradient(90deg,
    rgba(240,234,224,.04) 25%,
    rgba(201,168,76,.09) 50%,
    rgba(240,234,224,.04) 75%);
  background-size: 300% 100%;
  animation: sk-shimmer 1.5s ease-in-out infinite;
}

@keyframes sk-shimmer {
  from { background-position: 150% 0; }
  to   { background-position: -150% 0; }
}

/* ─── Lightbox vidéo ─── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
}

.modal.open { display: flex; }

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.video-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(240,234,224,.10);
  margin-bottom: 18px;
}

.video-modal-info h4 {
  margin: 0 0 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}

.video-modal-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.close {
  border-radius: 10px;
  border: 1px solid rgba(240,234,224,.14);
  background: rgba(255,255,255,.04);
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 160ms ease;
}

.close:hover {
  border-color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.08);
}

.video-modal-screen {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  border: 1px solid rgba(240,234,224,.1);
  position: relative;
  background: #000;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-player-wrap video,
.video-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

.video-modal-desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
}

/* ─── Pied de page ─── */
.ornament {
  text-align: center;
  margin: 48px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: rgba(201,168,76,.35);
  letter-spacing: .3em;
  user-select: none;
}

footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: rgba(240,234,224,.45);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: 'Cinzel', serif;
  letter-spacing: .06em;
}

footer a { transition: color 160ms ease; }
footer a:hover { color: var(--gold2); }

/* ─── Adaptatif ─── */
@media (max-width: 1024px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .hero    { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .navlinks { gap: 6px; }
  .pill { padding: 8px 12px; letter-spacing: .05em; }
  .brand h1 span { display: none; }
}

@media (max-width: 780px) {
  .pill { padding: 7px 10px; font-size: 10px; }
  .navsep { display: none; }
  .toolbar { padding: 14px; }
  .sortwrap { width: 100%; justify-content: space-between; }
  .select { flex: 1; }
}

@media (max-width: 640px) {
  .wrap { padding: 20px 16px 80px; }
  .nav  { padding: 12px 16px; }
  .navlinks { width: 100%; justify-content: flex-start; }

  .ex-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 24px; }
  .search { flex: 1 1 100%; }
  .filter-group { width: 100%; justify-content: center; }
  .ex-vinyl { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
}

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