/* =========================================================
   v2 — Institut culturel Martin Luther
   CSS complet, sans dépendance Activello/Bootstrap.
   3 variantes : Cantorat (défaut) · Sanctuaire · Tempérament
   ========================================================= */

/* ---------- RESET GLOBAL ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- VIEW TRANSITIONS entre pages (Chrome 126+, ignoré ailleurs) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-old(root) { animation-name: v2-fade-out; }
::view-transition-new(root) { animation-name: v2-fade-in; }
@keyframes v2-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes v2-fade-in {
  from { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- SPLASH plein écran (home) — se retire dès que le premier contenu est prêt ---------- */
#v2-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease, visibility 0s linear 500ms;
}
#v2-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.v2-splash__inner {
  text-align: center;
  animation: v2-splash-appear 700ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.v2-splash__logo {
  width: 120px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 28px;
  animation: v2-splash-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
.v2-splash__wordmark {
  font-family: var(--font-brand);
  color: var(--c-ink);
  margin-bottom: 40px;
  line-height: 1.05;
}
.v2-splash__wordmark .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 8px;
}
.v2-splash__wordmark .name {
  display: block;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
}
.v2-splash__bar {
  width: 60px;
  height: 2px;
  background: var(--c-rule);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.v2-splash__bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: var(--c-accent);
  animation: v2-splash-bar 1.4s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes v2-splash-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes v2-splash-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes v2-splash-bar {
  0%   { left: -40%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-splash__logo, .v2-splash__inner, .v2-splash__bar::after { animation: none; }
}

/* ---------- SKELETON LOADER (affiché avant hydratation) ---------- */
@keyframes v2-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.v2-skel {
  background: linear-gradient(90deg,
    var(--c-bg-alt) 0%,
    var(--c-rule-soft) 50%,
    var(--c-bg-alt) 100%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.6s ease-in-out infinite;
  border-radius: 2px;
}
.v2-stage-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.v2-stage-skeleton .skel-poster {
  aspect-ratio: 3 / 2;
  width: 100%;
}
.v2-stage-skeleton .skel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v2-stage-skeleton .skel-chip   { height: 20px; width: 90px; }
.v2-stage-skeleton .skel-title  { height: 34px; width: 100%; }
.v2-stage-skeleton .skel-title2 { height: 34px; width: 85%; }
.v2-stage-skeleton .skel-title3 { height: 34px; width: 60%; }
.v2-stage-skeleton .skel-desc   { height: 14px; width: 90%; margin-top: 12px; }
.v2-stage-skeleton .skel-desc2  { height: 14px; width: 78%; }
.v2-stage-skeleton .skel-btn    { height: 44px; width: 160px; margin-top: 16px; }
@media (max-width: 900px) {
  .v2-stage-skeleton { grid-template-columns: 1fr; gap: 32px; }
}

/* Skeleton pour cards Journal / Agenda */
.v2-skel-card { display: block; }
.v2-skel-card .skel-poster { aspect-ratio: 724 / 1024; margin-bottom: 14px; }
.v2-skel-card .skel-line   { height: 14px; margin-top: 8px; }
.v2-skel-card .skel-line--sm { width: 40%; }
.v2-skel-card .skel-line--md { width: 80%; }
.v2-skel-card .skel-line--lg { width: 95%; }

.v2-skel-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-rule-soft);
}
.v2-skel-row .skel-date { height: 44px; width: 48px; }
.v2-skel-row .skel-body { display: flex; flex-direction: column; gap: 6px; }
.v2-skel-row .skel-body .skel-line { height: 12px; }
.v2-skel-row .skel-body .skel-line--lg { width: 90%; }
.v2-skel-row .skel-body .skel-line--sm { width: 55%; }

/* ---------- VARIANTE 3 : TEMPÉRAMENT (défaut) ---------- */
/* Accent chaud extrait du logo : terracotta (pétale rouge-orangé du picto). */
/* Typographie : Newsreader (serif éditoriale sobre) + Manrope (sans-serif corps). */
:root,
[data-theme="temperament"] {
  --c-bg:        #fbf9f4;
  --c-bg-alt:    #f0e9de;
  --c-bg-dark:   #1c1310;
  --c-ink:       #0a0a0a;
  --c-ink-soft:  #3a3532;
  --c-ink-mute:  #7a726b;
  --c-accent:    #a04d33;   /* terracotta profonde (contraste AA sur crème) */
  --c-accent-2:  #7f3b25;   /* terracotta hover */
  --c-rule:      #d4cabb;
  --c-rule-soft: #e8ded1;
  --font-head:   "Newsreader", Georgia, serif;
  --font-body:   "Manrope", system-ui, sans-serif;
  --font-num:    "Newsreader", serif;
  --font-brand:  "Newsreader", serif;
}

/* ---------- VARIANTE 1 : CANTORAT ---------- */
[data-theme="cantorat"] {
  --c-bg:        #f7f4ed;
  --c-bg-alt:    #efe9dd;
  --c-bg-dark:   #1a1614;
  --c-ink:       #1a1a1a;
  --c-ink-soft:  #55534e;
  --c-ink-mute:  #8a877e;
  --c-accent:    #6e1d23;
  --c-accent-2:  #8a2a30;
  --c-rule:      #cec4ad;
  --c-rule-soft: #e2dbc8;
  --font-head:   "Cormorant Garamond", Georgia, serif;
  --font-body:   "Inter", system-ui, sans-serif;
  --font-num:    "EB Garamond", Georgia, serif;
  --font-brand:  "Cormorant Garamond", Georgia, serif;
}

/* ---------- VARIANTE 2 : SANCTUAIRE ---------- */
[data-theme="sanctuaire"] {
  --c-bg:        #ece6dc;
  --c-bg-alt:    #ddd4c5;
  --c-bg-dark:   #1c1712;
  --c-ink:       #111111;
  --c-ink-soft:  #4a463e;
  --c-ink-mute:  #7f7a70;
  --c-accent:    #8a5a2b;
  --c-accent-2:  #a86d33;
  --c-rule:      #b8ad97;
  --c-rule-soft: #d0c7b3;
  --font-head:   "Playfair Display", "Times New Roman", serif;
  --font-body:   "Source Serif 4", Georgia, serif;
  --font-num:    "Playfair Display", serif;
  --font-brand:  "Playfair Display", serif;
}


/* ---------- BASE ---------- */
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}

/* ---------- HEADER ---------- */
.v2-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-rule-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
}
.v2-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.v2-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.v2-header__logo {
  width: 56px; height: 44px;
  object-fit: contain;
}
.v2-header__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.v2-header__wordmark-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 2px;
}
.v2-header__wordmark-title {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.v2-header__nav {
  margin-left: auto;
}
.v2-header__nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.v2-header__nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-ink-soft);
  border-radius: 4px;
  transition: color .15s ease, background-color .15s ease;
}
.v2-header__nav a:hover,
.v2-header__nav a[aria-current="page"] {
  color: var(--c-accent);
}
.v2-header__nav a[aria-current="page"] {
  background: var(--c-bg-alt);
}
.v2-nav__cta a {
  color: #fff !important;
  background: var(--c-accent) !important;
  padding: 10px 18px !important;
}
.v2-nav__cta a:hover {
  background: var(--c-accent-2) !important;
}

.v2-header__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-rule);
  padding: 8px 10px;
  margin-left: auto;
  border-radius: 4px;
}
.v2-header__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .v2-header__toggle { display: block; }
  .v2-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-rule);
    padding: 12px clamp(20px, 4vw, 40px) 20px;
  }
  .v2-header__nav[data-open="true"] { display: block; }
  .v2-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .v2-header__nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--c-rule-soft);
  }
  .v2-nav__cta a {
    margin-top: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Sur petit écran, on garde le double wordmark mais plus compact */
  .v2-header__logo { width: 40px; height: 32px; }
  .v2-header__wordmark-eyebrow { font-size: 9px; letter-spacing: 0.14em; }
  .v2-header__wordmark-title { font-size: 17px; }
  .v2-header__brand { gap: 10px; }
  .v2-header__inner { padding: 12px 16px; gap: 12px; }
}

/* ---------- LAYOUT SECTIONS ---------- */
main.v2-main {
  min-height: 60vh;
}
.v2-section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.v2-section--narrow { max-width: 820px; }
.v2-section--wide   { max-width: 1400px; }
.v2-section--alt    { background: var(--c-bg-alt); max-width: none; }
.v2-section--alt > .v2-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.v2-section__inner { max-width: none; margin: 0; padding: 0; }

.v2-h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.v2-h1 em { font-style: italic; color: var(--c-accent); }

.v2-h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.v2-h2--center { justify-content: center; }
.v2-h2__num {
  /* Numéros de section retirés du visuel (accessibles pour lecteurs d'écran) */
  display: none;
}

/* Titre « À venir » de la colonne latérale de l'accueil */
.v2-h3-side {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-rule);
}
.v2-h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--c-ink);
}

.v2-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-rule);
}

.v2-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.v2-lede {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--c-ink);
  font-weight: 400;
}

.v2-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 68ch;
}
.v2-prose p { margin-bottom: 1.2em; }
.v2-prose p:last-child { margin-bottom: 0; }
.v2-prose h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--c-ink);
}
.v2-prose a { color: var(--c-accent); border-bottom: 1px solid currentColor; }
.v2-prose strong { color: var(--c-ink); font-weight: 600; }

.v2-link {
  color: var(--c-accent);
  border-bottom: 1px solid currentColor;
  transition: color .2s ease;
}
.v2-link:hover { color: var(--c-accent-2); }

.v2-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all .2s ease;
  border: 1px solid currentColor;
  text-align: center;
}
.v2-btn--primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.v2-btn--primary:hover {
  background: var(--c-accent-2);
  border-color: var(--c-accent-2);
}
.v2-btn--ghost {
  background: transparent;
  color: var(--c-ink);
}
.v2-btn--ghost:hover {
  background: var(--c-ink);
  color: var(--c-bg);
}

.v2-loading {
  font-style: italic;
  color: var(--c-ink-mute);
  padding: 20px 0;
}

/* ---------- HERO ---------- */
.v2-hero {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
  text-align: center;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 110px) !important;
}
.v2-hero__inner { max-width: 760px; margin: 0 auto; }
.v2-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ---------- PROCHAIN RENDEZ-VOUS ---------- */
.v2-next__card {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-accent);
}
.v2-next__card .poster {
  aspect-ratio: 724 / 1024;
  background: var(--c-rule);
  overflow: hidden;
}
.v2-next__card .poster img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.v2-next__card .when {
  font-family: var(--font-head);
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.v2-next__card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.v2-next__card .where {
  color: var(--c-ink-soft);
  margin-bottom: 20px;
  font-size: 15px;
}
.v2-next__card .desc {
  margin-bottom: 28px;
  color: var(--c-ink-soft);
}
@media (max-width: 720px) {
  .v2-next__card { grid-template-columns: 1fr; }
  .v2-next__card .poster { max-width: 260px; }
}

/* ---------- STAGE FULL — section "à la une" pleine largeur & hauteur ---------- */
.v2-stage {
  min-height: calc(100vh - 88px);   /* moins la hauteur du sticky header */
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px);
}
.v2-stage__inner {
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);   /* 60/40 — image dominante */
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.v2-stage__inner .poster {
  aspect-ratio: 3 / 2;                /* défaut paysage, sera overridé si affiche */
  background: var(--c-rule-soft);
  overflow: hidden;
}
.v2-stage__inner .poster--portrait {
  aspect-ratio: 724 / 1024;
  max-width: 520px;
  margin-left: auto;
}
.v2-stage__inner .poster img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.v2-stage__inner .content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v2-stage__inner .content .when {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.v2-stage__inner .content .when .chip {
  background: var(--c-accent);
  color: #fff;
  padding: 4px 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.v2-stage__inner .content h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
}
.v2-stage__inner .content .where {
  font-size: 15px;
  color: var(--c-ink-soft);
  margin: 0;
}
.v2-stage__inner .content .desc {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--c-ink-soft);
  margin: 0;
}
.v2-stage__inner .content .v2-btn {
  align-self: flex-start;
}
@media (max-width: 900px) {
  .v2-stage {
    min-height: 0;
    padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 40px);
  }
  .v2-stage__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .v2-stage__inner .poster--portrait { margin: 0 auto; max-width: 320px; }
}

/* ---------- LAYOUT MAGAZINE (Journal 2/3 + Agenda 1/3) ---------- */
.v2-magazine {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.v2-magazine__main { min-width: 0; }
.v2-magazine__side { min-width: 0; }
.v2-magazine__side .v2-section__head {
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .v2-magazine {
    grid-template-columns: 1fr;
    gap: clamp(48px, 8vw, 72px);
  }
}

/* Agenda-side rows compactes */
.v2-agenda-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-rule-soft);
  text-decoration: none;
  color: inherit;
  transition: color .15s ease;
}
.v2-agenda-row:hover { color: var(--c-accent); }
.v2-agenda-row:last-child { border-bottom: none; }
.v2-agenda-row__date {
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  line-height: 1.05;
  padding-top: 2px;
}
.v2-agenda-row__date .day { display: block; font-size: 26px; }
.v2-agenda-row__date .month {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 4px;
}
.v2-agenda-row__body h3 {
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.3;
  color: var(--c-ink);
  font-weight: 600;
}
.v2-agenda-row__body .meta {
  font-size: 12px;
  color: var(--c-ink-mute);
  margin-top: 4px;
}

/* ---------- CARDS ÉVÉNEMENT ---------- */
.v2-grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}
.v2-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v2-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.v2-grid--2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.v2-event-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-alt);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.v2-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.v2-event-card .poster {
  aspect-ratio: 724 / 1024;
  background: var(--c-rule);
  overflow: hidden;
}
.v2-event-card .poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.v2-event-card:hover .poster img { transform: scale(1.03); }
.v2-event-card .body {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-event-card .chip,
.v2-chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
}
.v2-event-card .when {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--c-ink);
  font-weight: 500;
  margin-top: 4px;
}
.v2-event-card h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--c-ink);
  margin-top: 4px;
}
.v2-event-card .where {
  color: var(--c-ink-soft);
  font-size: 14px;
  margin-top: 4px;
}

.v2-event-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-rule-soft);
  color: inherit;
  transition: color .15s ease;
}
.v2-event-row:hover { color: var(--c-accent); }
.v2-event-row__date {
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
}
.v2-event-row__date .day { display: block; font-size: 32px; }
.v2-event-row__date .month {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-accent);
  margin-top: 4px;
}
.v2-event-row__date .year { font-size: 12px; color: var(--c-ink-mute); }
.v2-event-row__body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.25;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.v2-event-row__body .meta {
  font-size: 14px;
  color: var(--c-ink-mute);
}
.v2-event-row__arrow {
  font-size: 20px;
  color: var(--c-accent);
}
@media (max-width: 600px) {
  .v2-event-row { grid-template-columns: 80px 1fr; }
  .v2-event-row__arrow { display: none; }
}

/* ---------- PUBLICATIONS ---------- */
.v2-pub-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.v2-pub-card .cover {
  aspect-ratio: 2 / 3;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-rule);
  overflow: hidden;
}
.v2-pub-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.v2-pub-card:hover .cover img { transform: scale(1.04); }
.v2-pub-card .pub-title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}
.v2-pub-card .pub-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-ink-mute);
}

/* ---------- LIENS TEXTES ---------- */
.v2-link-row {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--c-rule-soft);
  text-decoration: none;
  color: inherit;
  transition: color .15s ease;
}
.v2-link-row:hover { color: var(--c-accent); }
.v2-link-row .chip {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
}
.v2-link-row h3 {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  margin: 8px 0 4px;
}
.v2-link-row .when {
  font-size: 13px;
  color: var(--c-ink-mute);
}

/* ---------- CARTES PROFIL (comité) ---------- */
.v2-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px 32px;
}
.v2-person {
  padding: 20px 0;
  border-top: 1px solid var(--c-rule-soft);
}
.v2-person .name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-ink);
}
.v2-person .role {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.45;
}

/* ---------- ABOUT / TWO-COL ---------- */
.v2-2col {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.v2-2col--reverse { grid-template-columns: 1fr minmax(0, 320px); }
.v2-2col__figure { margin: 0; }
.v2-2col__figure img {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-rule-soft);
}
/* Casse normale : jamais « Joly » en (petites) capitales (consigne du 09/10/2026) */
.v2-2col__caption {
  font-size: 14px;
  font-style: italic;
  color: var(--c-ink-mute);
  margin-top: 10px;
  text-align: center;
}
@media (max-width: 720px) {
  .v2-2col, .v2-2col--reverse { grid-template-columns: 1fr; }
}

/* ---------- PAGE HEADER (bannière de page interne) ---------- */
.v2-pagehead {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px);
  text-align: center;
}
.v2-pagehead__inner { max-width: 780px; margin: 0 auto; }
.v2-pagehead h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.v2-pagehead p {
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--c-ink-soft);
}

/* ---------- NEWSLETTER / FOOTER CTA ---------- */
.v2-cta {
  background: var(--c-bg-alt);
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px);
}
.v2-cta__inner { max-width: 620px; margin: 0 auto; }
.v2-cta p { color: var(--c-ink-soft); margin-top: 14px; }
.v2-cta__actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.v2-footer {
  background: var(--c-bg-dark);
  color: #e6e2d8;
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.v2-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 800px) {
  .v2-footer__inner { grid-template-columns: 1fr 1fr; }
  .v2-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .v2-footer__inner { grid-template-columns: 1fr; }
}
.v2-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5f0e4;
  font-family: var(--font-brand);
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.v2-footer__logo {
  width: 48px; height: 40px; object-fit: contain;
  filter: brightness(1.5);
}
.v2-footer__signature {
  color: #a9a293;
  font-size: 14px;
  line-height: 1.55;
  max-width: 40ch;
}
.v2-footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4c88c;
  margin-bottom: 16px;
}
.v2-footer address,
.v2-footer ul li {
  color: #c7c1b3;
  font-size: 14px;
  line-height: 1.7;
}
.v2-footer a {
  color: #e6e2d8;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.v2-footer a:hover { border-bottom-color: currentColor; }
.v2-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding: 24px clamp(20px, 5vw, 40px);
  text-align: center;
  font-size: 12px;
  color: #8a8375;
  letter-spacing: 0.02em;
}

/* ---------- FORMULAIRE CONTACT ---------- */
.v2-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.v2-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.v2-form input,
.v2-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-rule);
  color: var(--c-ink);
  font-size: 16px;
  border-radius: 0;
  transition: border-color .15s ease;
}
.v2-form input:focus,
.v2-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}
.v2-form textarea { min-height: 140px; resize: vertical; }

/* ---------- BLOCS SOUTENIR / CTA CARDS ---------- */
.v2-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.v2-tier {
  padding: 28px 24px;
  background: var(--c-bg-alt);
  border-top: 3px solid var(--c-accent);
  text-align: center;
}
.v2-tier .amount {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1;
}
.v2-tier h3 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 12px 0 16px;
}
.v2-tier p {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

/* ---------- SÉLECTEUR DE THÈME (prototype only) ---------- */
#theme-switcher {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  flex-wrap: wrap;
  max-width: calc(100vw - 32px);
}
#theme-switcher .ts-label { font-weight: 600; letter-spacing: 0.04em; }
#theme-switcher .ts-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all .15s ease;
  font-family: inherit;
}
#theme-switcher .ts-btn:hover { background: rgba(255,255,255,0.1); }
#theme-switcher .ts-btn.is-active {
  background: #fff;
  color: #111;
  border-color: #fff;
}
#theme-switcher .ts-note {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
@media (max-width: 560px) {
  #theme-switcher .ts-note { display: none; }
}

/* =========================================================
   ACCUEIL v14 : actualités (à la une + passées + À venir)
   ========================================================= */
.v2-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.v2-stage__inner--texte { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

.v2-actus {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ac-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}
/* Maçonnerie (classe posée par maconnerie() dans app.js) : chaque carte occupe
   autant de rangées de 2 px que sa hauteur, les cartes se calent sous la plus courte */
.ac-grille--maconnerie { grid-auto-rows: 2px; row-gap: 0; }
.ac-pile { display: grid; gap: clamp(18px, 2.2vw, 24px); margin-top: 18px; }
.ac-grille > li, .ac-pile > li { display: flex; min-width: 0; }
.ac-grille > li > a, .ac-pile > li > a { flex: 1; }
.ac-grille .v2-skel-card, .ac-pile .v2-skel-card { flex: 1; }
.ac-grille .v2-skel-card .skel-poster,
.ac-pile .v2-skel-card .skel-poster { aspect-ratio: 4 / 3; }
.v2-actus__plus { margin-top: 26px; font-size: 15px; }
.v2-actus__passees .v2-actus__plus { text-align: right; }
@media (max-width: 900px) {
  .v2-actus { grid-template-columns: minmax(0, 1fr); }
  .v2-actus__avenir { order: -1; }
}
@media (max-width: 560px) {
  .ac-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Carte neutre (article, émission, événement sans affiche) ---------- */
.ac {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-alt);
  color: var(--c-ink);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ac:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .10); }
.ac__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-rule-soft); }
.ac__media img { width: 100%; height: 100%; object-fit: cover; }
.ac__texte { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.ac__meta {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-mute);
}
.ac__meta span { color: var(--c-accent); font-weight: 600; }
.ac__titre {
  font-family: var(--font-head); font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--c-ink);
}
.ac__lieu { font-size: 14px; color: var(--c-ink-soft); }
/* Carte avec lecteur audio (émission) : le titre et l'image sont des liens, le lecteur reste hors lien */
.ac--audio .ac__media { display: block; }
.ac--audio .ac__titre a { color: inherit; text-decoration: none; }
.ac--audio .ac__titre a:hover { color: var(--c-accent); }
.ac__audio, .v2-stage__audio { display: block; width: 100%; height: 40px; margin-top: 6px; }
.v2-stage__audio { max-width: 520px; margin: 4px 0 22px; }

/* =========================================================
   AFFICHES WEB : habillage d'un événement d'après son affiche
   (couleurs, polices et photos de l'affiche, textes en HTML)
   ========================================================= */
.af {
  background: var(--af-bg, var(--c-bg-alt));
  color: var(--af-encre, var(--c-ink));
  font-family: var(--af-police-texte, var(--font-body));
}
.af .sc { font-variant-caps: small-caps; }
.af sup { font-size: .62em; line-height: 0; vertical-align: .55em; }
.v2-main sup { font-size: .62em; line-height: 0; vertical-align: .55em; text-transform: none; }
.af strong { font-weight: 700; }
.af-img { display: block; max-width: 100%; height: auto; }
.af-img--arrondi { border-radius: clamp(14px, 2vw, 28px); }
.af-img--cercle { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.af-img--fondu {
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 42%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 62% at 50% 42%, #000 58%, transparent 100%);
}

/* Rôles typographiques (valeurs propres à chaque affiche via --af-*) */
.af-chapeau {
  font-family: var(--af-police-chapeau, var(--af-police-texte, inherit));
  color: var(--af-couleur-chapeau, var(--af-accent));
  line-height: 1.25;
}
.af-date {
  font-family: var(--af-police-date, var(--af-police-texte, inherit));
  font-weight: var(--af-graisse-date, 700);
  color: var(--af-couleur-date, var(--af-encre));
  line-height: 1.15;
}
.af-genre {
  font-family: var(--af-police-genre, var(--af-police-texte, inherit));
  font-weight: var(--af-graisse-genre, 300);
  color: var(--af-couleur-genre, var(--af-discret));
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
}
.af-titre {
  font-family: var(--af-police-titre, var(--font-head));
  font-weight: var(--af-graisse-titre, 600);
  font-style: var(--af-style-titre, normal);
  text-transform: var(--af-casse-titre, none);
  color: var(--af-couleur-titre, var(--af-accent));
  line-height: 1.02;
  margin: 0;
}
.af-titre em {
  font-family: var(--af-police-em, inherit);
  font-style: italic;
  font-weight: var(--af-graisse-em, 400);
  text-transform: none;
}
.af-sous-titre {
  font-family: var(--af-police-sous-titre, var(--af-police-texte, inherit));
  font-weight: var(--af-graisse-sous-titre, 300);
  text-transform: var(--af-casse-sous-titre, none);
  line-height: 1.15;
}
.af-par, .af-info, .af-lieu { line-height: 1.38; }
.af-par em, .af-personnes em, .af-note em { font-family: var(--af-police-em, inherit); }
.af-personnes {
  font-family: var(--af-police-personnes, var(--af-police-texte, inherit));
  font-weight: var(--af-graisse-personnes, 400);
  text-transform: var(--af-casse-personnes, none);
  line-height: 1.3;
}
.af-personnes em { text-transform: none; font-weight: 400; }
.af-programme {
  font-family: var(--af-police-programme, var(--af-police-texte, inherit));
  font-weight: var(--af-graisse-programme, 300);
  font-style: var(--af-style-programme, normal);
  line-height: 1.3;
}
.af-programme strong { font-style: normal; }
.af-note { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; line-height: 1.35; }
.af-note em { text-transform: none; font-weight: 400; font-style: italic; }
/* Styles propres à une affiche ({classe|texte} dans affiches.json) */
.af-x-bwv {
  display: inline-block;
  margin-top: .2em;
  font-family: "Cinzel", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-variant-caps: small-caps;
  font-size: .46em;
  letter-spacing: .04em;
}
.af-x-decale { display: inline-block; padding-left: 1.6em; white-space: nowrap; }
@media (max-width: 600px) { .af-x-decale { padding-left: .8em; white-space: normal; } }

/* ---------- À la une : bandeau pleine largeur aux couleurs de l'affiche ---------- */
.af--une { position: relative; overflow: hidden; }
.af--une .af__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 64px) clamp(20px, 5vw, 64px);
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.af--une.af--media-droite .af__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.af--une.af--media-droite .af__media { order: 2; }
.af--une .af__texte { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 13px); min-width: 0; }
.af--une .af__media { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.af--une .af__media--solo .af-img { max-height: calc(100vh - 220px); width: auto; }
.af--une .af__media--duo .af-img--principale { width: 74%; align-self: flex-start; }
.af--une .af__media--duo .af-img--secondaire { width: 50%; margin-top: -24%; align-self: flex-end; }
.af--une .af__media--duo .af-img--cercle.af-img--principale { width: 62%; align-self: center; }
.af--une .af__media--duo .af-img--cercle.af-img--secondaire { width: 62%; margin-top: -4%; align-self: center; }

.af--une .af-titre       { font-size: calc(var(--af-echelle-titre, 1) * clamp(36px, 4.4vw, 66px)); margin: .06em 0; }
.af--une .af-chapeau     { font-size: clamp(17px, 1.5vw, 21px); }
.af--une .af-date        { font-size: calc(var(--af-taille-date, 1) * clamp(20px, 1.9vw, 27px)); }
.af--une .af-genre       { font-size: calc(var(--af-taille-genre, 1) * clamp(16px, 1.5vw, 21px)); }
.af--une .af-sous-titre  { font-size: clamp(20px, 2.2vw, 31px); }
.af--une .af-par,
.af--une .af-personnes   { font-size: clamp(18px, 1.7vw, 24px); }
.af--une .af-programme   { font-size: calc(var(--af-taille-programme, 1) * clamp(18px, 1.6vw, 23px)); }
.af--une .af-info,
.af--une .af-lieu        { font-size: clamp(15px, 1.25vw, 18px); }
.af--une .af-info        { margin-top: .5em; }
.af--une .af-note        { font-size: clamp(13px, 1vw, 15px); }

.af-bloc-image { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.af-bloc-image .af-img { width: clamp(76px, 7.5vw, 116px); flex: none; }
.af-bloc-image--note {
  margin-top: .9em;
  padding-top: 1em;
  border-top: 1px solid color-mix(in srgb, var(--af-encre) 18%, transparent);
}
.af-bloc-image--note .af-img { width: clamp(56px, 5vw, 80px); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }

.af-action { margin-top: 1.1em; }
.af-lien {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid currentColor;
  color: var(--af-encre);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.af-lien:hover { background: var(--af-encre); color: var(--af-bg-plein, #fff); }

/* Portrait accroché au bord droit de l'écran (affiche « Bach ») */
.af--une.af--bord-droit .af__inner { grid-template-columns: minmax(0, 1fr); }
.af--une.af--bord-droit .af__texte { max-width: 58%; position: relative; z-index: 1; }
.af--une.af--bord-droit .af__media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(44vw, 660px);
}
.af--une.af--bord-droit .af__media .af-img {
  width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: left top;
}

@media (max-width: 900px) {
  .af--une .af__inner,
  .af--une.af--media-droite .af__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
  .af--une.af--media-droite .af__media { order: 0; }
  .af--une .af__media { max-width: 330px; width: 100%; margin: 0 auto; }
  .af--une .af__media--solo .af-img { max-height: 56vh; }
  .af--une.af--bord-droit .af__media {
    position: relative; width: auto; max-width: none; height: 48vh;
    margin: calc(-1 * clamp(40px, 6vw, 88px)) calc(-1 * clamp(20px, 5vw, 64px)) 0;
  }
  .af--une.af--bord-droit .af__media .af-img { object-position: center top; }
  .af--une.af--bord-droit .af__texte { max-width: none; }
}

/* ---------- Cartes des colonnes (même habillage, format réduit) ---------- */
.af--carte {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.af--carte:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
.af--carte .af__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.af--carte .af__media--solo .af-img {
  width: 100%; height: 100%;
  object-fit: var(--af-carte-fit, cover);
  object-position: var(--af-carte-pos, center top);
  border-radius: 0;
}
.af--carte .af__media--duo { gap: 6%; padding: 8% 7% 2%; }
.af--carte .af__media--duo .af-img { width: 44%; height: auto; }
.af--carte .af__texte { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.af--carte .af-titre       { font-size: calc(var(--af-echelle-titre-carte, 1) * 25px); }
.af--carte .af-date        { font-size: calc(var(--af-taille-date, 1) * 15px); }
.af--carte .af-genre       { font-size: calc(var(--af-taille-genre, 1) * 13px); }
.af--carte .af-sous-titre  { font-size: 15px; }
.af--carte .af-par,
.af--carte .af-personnes   { font-size: 15px; }
.af--carte .af-programme   { font-size: calc(var(--af-taille-programme, 1) * 14px); }
.af--carte .af-x-bwv       { font-size: .62em; }

/* ---------- Bibliographie (pages Pasteur et Publications, données livres.json) ---------- */
.v2-livres, .v2-prose .v2-livres {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px 22px;
}
.v2-livres li { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v2-livres li::before { content: none; }
.v2-livres .v2-livre__tete, .v2-prose .v2-livres a.v2-livre__tete {
  display: flex; flex-direction: column; gap: 6px;
  color: inherit; text-decoration: none; border-bottom: 0;
}
.v2-livres img, .v2-livre__sans {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  margin-bottom: 6px; transition: transform .2s ease;
}
.v2-livre__sans {
  display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center;
  background: var(--c-bg-alt); border: 1px solid var(--c-rule); box-shadow: none;
  font-family: var(--font-head); font-style: italic; font-size: 16px; line-height: 1.25; color: var(--c-ink-soft);
}
a.v2-livre__tete:hover img { transform: translateY(-3px); }
.v2-livres .titre { font-family: var(--font-head); font-style: italic; font-size: 17px; line-height: 1.25; color: var(--c-ink); }
a.v2-livre__tete:hover .titre { color: var(--c-accent); }
.v2-livres .ref { font-size: 13px; line-height: 1.4; color: var(--c-ink-mute); }
.v2-livre__ecoute { font-size: 13px; line-height: 1.6; color: var(--c-ink-soft); }
.v2-livre__ecoute a, .v2-prose .v2-livre__ecoute a {
  color: var(--c-accent); border-bottom: 1px solid currentColor; padding: 0 2px; font-weight: 600;
}
.v2-livres__titre, .v2-prose .v2-livres__titre {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-ink-mute); margin: 8px 0 0;
}

/* Agenda : dates passées plus anciennes repliées */
.v2-agenda-plus { margin-top: 28px; text-align: center; }
