/* ==========================================================================
   TEDxSandervalia — feuille de style principale
   Rouge TEDx officiel : #E62B1E (charte TED). Typo : Inter.
   ========================================================================== */

:root {
  --red: #e62b1e;
  --red-dark: #b81f14;
  --black: #0b0b0b;
  --ink: #161616;
  --grey-900: #1d1d1d;
  --grey-700: #4a4a4a;
  --grey-500: #7a7a7a;
  --grey-200: #e6e6e6;
  --grey-100: #f4f4f2;
  --white: #ffffff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--red); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px;
  font: 700 15px/1 var(--font);
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--grey-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  font-weight: 700; text-decoration: none; color: var(--red);
  display: inline-flex; gap: .4em; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--grey-200); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo TEDxSandervalia (en-tête et pied de page) */
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.brand img { height: 30px; width: auto; max-width: none; }
.brand__tagline { font-size: 9.5px; letter-spacing: .01em; color: var(--grey-900); margin-top: 5px; white-space: nowrap; }
.brand__tagline b { color: var(--red); }
.brand--light .brand__tagline { color: #cfcfcf; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 6px 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 12px 20px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: "";
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 28px;
    padding: 32px var(--gutter);
    transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; }
  .nav__list { flex-direction: column; gap: 18px; }
  .nav__list a { font-size: 24px; font-weight: 700; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--black);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.92) 100%);
}
.hero__content { padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.hero .eyebrow { color: var(--white); background: var(--red); padding: 6px 12px; border-radius: 3px; }
.hero h1 { font-size: clamp(42px, 8vw, 104px); font-weight: 900; letter-spacing: -.04em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { font-size: clamp(18px, 2vw, 22px); max-width: 60ch; color: #e9e9e9; margin-bottom: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 32px; font-weight: 600; }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__meta svg { width: 18px; height: 18px; color: var(--red); flex: none; }

.hero--page { min-height: 62vh; }
.hero--page h1 { font-size: clamp(40px, 6.5vw, 84px); max-width: 18ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey-100); }
.section--red { background: var(--red); color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.section__head p { font-size: 19px; color: var(--grey-700); }
.section--dark .section__head p { color: #bdbdbd; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Bandeau « prochaine édition » */
.announce {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.announce__num { font-size: clamp(72px, 12vw, 150px); font-weight: 900; line-height: .85; letter-spacing: -.05em; }
.announce__num sup { font-size: .35em; vertical-align: top; }
.announce h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: .25em; }
.announce p { margin: 0; opacity: .9; font-size: 18px; }
@media (max-width: 760px) { .announce { grid-template-columns: 1fr; gap: 16px; } }

/* Split texte / image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.split__media--wide img { aspect-ratio: 3/2; }
.split__media--square img { aspect-ratio: 1/1; }
.split h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; }
.split p { font-size: 18px; color: var(--grey-700); }
.section--dark .split p { color: #c9c9c9; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-200); border: 1px solid var(--grey-200); }
.stat { background: var(--white); padding: 32px 24px; }
.stat strong { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 10px; font-weight: 600; color: var(--grey-700); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cartes génériques */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.card h3 { font-size: 22px; margin: 0; }
.card p { color: var(--grey-700); margin: 0; flex: 1; }
.card__icon { width: 44px; height: 44px; color: var(--red); }
.section--dark .card { background: var(--grey-900); border-color: #2c2c2c; }
.section--dark .card p { color: #bdbdbd; }

/* Éditions */
.edition-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--grey-900); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--white);
}
.edition-feature__media { position: relative; overflow: hidden; }
.edition-feature__media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; transition: transform .6s var(--ease); }
.edition-feature:hover .edition-feature__media img { transform: scale(1.04); }
.edition-feature__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.edition-feature__year { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--red); text-transform: uppercase; }
.edition-feature h3 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.edition-feature p { color: #c9c9c9; }
@media (max-width: 860px) { .edition-feature { grid-template-columns: 1fr; } .edition-feature__media img { min-height: 260px; } }
.editions-note { margin-top: 28px; color: #9a9a9a; font-size: 15px; }

.editions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .editions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .editions { grid-template-columns: 1fr; } }
.edition {
  display: flex; flex-direction: column; background: var(--grey-900); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--white); transition: transform .25s var(--ease);
}
.edition:hover { transform: translateY(-4px); }
.edition__media { aspect-ratio: 4/3; overflow: hidden; background: #000; }
.edition__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.edition:hover .edition__media img { transform: scale(1.05); }
/* Affiche officielle dans une carte : affichée entière sur un fond flouté tiré de l'affiche */
.edition__media--poster { position: relative; background-size: 0 0; } /* image portée par le style en ligne, affichée seulement via ::before */
.edition__media--poster::before { content: ""; position: absolute; inset: -20px; background-image: inherit; background-size: cover; background-position: center; filter: blur(18px) brightness(.55); }
.edition__media--poster img { position: relative; object-fit: contain; }
.edition__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.edition__year { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.edition h3 { font-size: 22px; margin: 0; }
.edition p { font-size: 14px; color: #a9a9a9; margin: 0; }
.edition__more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; }
.edition--current { outline: 2px solid var(--red); }

/* Speakers */
.speakers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1000px) { .speakers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .speakers { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.speaker { text-decoration: none; color: inherit; }
.speaker__photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey-900); aspect-ratio: 4/5; }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .4s, transform .6s var(--ease); }
.speaker:hover .speaker__photo img, .speaker:focus-within .speaker__photo img { filter: none; transform: scale(1.04); }
.speaker__photo::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.speaker:hover .speaker__photo::after { transform: scaleX(1); }
.speaker h3 { font-size: 21px; margin: 16px 0 4px; }
.speaker__role { font-size: 14px; color: var(--grey-500); margin: 0 0 8px; }
.speaker__talk { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }
.section--dark .speaker__talk { color: var(--white); }
.speaker__talk--tbc { color: var(--grey-500); font-weight: 500; font-style: italic; }

/* Comité d'organisation (page À propos) */
.committee { margin-top: clamp(56px, 8vw, 96px); }
.committee h3.committee__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 8px; }
.committee__intro { font-size: 17px; color: var(--grey-700); margin: 0 0 32px; max-width: 640px; }
.speakers--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .speakers--4 { grid-template-columns: repeat(2, 1fr); } }
.speaker__photo--empty { display: grid; place-items: center; background: var(--grey-200); color: var(--grey-500); }
.speaker__photo--empty svg { width: 38%; height: auto; }
.speaker__photo--empty::after { display: none; }

/* Programme (timeline) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--grey-200); }
.timeline li { position: relative; padding: 0 0 28px 32px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--red);
}
.timeline time { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.timeline h4 { font-size: 18px; margin: 0 0 2px; }
.timeline p { margin: 0; color: var(--grey-700); font-size: 15px; }
.timeline .is-session::before { background: var(--red); }
.timeline .is-session h4 { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--grey-500); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Galerie */
/* Galerie en colonnes (masonry) : aucun trou, quel que soit le format des photos */
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery a { position: relative; overflow: hidden; border-radius: 4px; display: block; margin-bottom: 12px; break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.credit { font-size: 13px; color: var(--grey-500); margin-top: 14px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); font-size: 40px; cursor: pointer; padding: 12px; line-height: 1;
}
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Vidéos : lecteur YouTube « léger » (miniature, puis lecteur YouTube au clic) */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #000; color: var(--white);
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); }
.yt__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .3s var(--ease);
}
.yt__play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt:hover img, .yt:focus-visible img { transform: scale(1.04); }
.yt:hover .yt__play, .yt:focus-visible .yt__play { transform: translate(-50%, -50%) scale(1.08); }
.yt:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after { display: none; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
@media (max-width: 1000px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .videos { grid-template-columns: 1fr; } }
.video h3 { font-size: 19px; margin: 14px 0 4px; }
.video p { margin: 0; font-size: 15px; color: var(--grey-700); }
.section--dark .video p { color: #c9c9c9; }
.video__more { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--grey-500); }

/* Citation */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.quote blockquote::before { content: "«"; display: block; color: var(--red); font-size: 2.4em; line-height: .7; margin-bottom: 12px; }
.quote figcaption { margin-top: 24px; color: var(--grey-500); font-weight: 600; }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.partner {
  border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px 20px; min-height: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: var(--white);
}
.partner strong { font-size: 18px; }
.partner span { font-size: 13px; color: var(--grey-500); }
.partner img { height: 72px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 6px; }

/* Bandeau de logos (accueil) */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.logo-strip img { height: 56px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-strip a:hover img, .logo-strip img:hover { filter: none; opacity: 1; }
.logo-strip .logo-text { font-weight: 800; font-size: 18px; color: var(--grey-500); letter-spacing: -.01em; transition: color .3s; }
.logo-strip .logo-text:hover { color: var(--ink); }

/* CTA final */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; max-width: 18ch; margin: 0 auto .4em; }
.cta p { font-size: 19px; max-width: 56ch; margin: 0 auto 32px; opacity: .92; }
.cta .btn-row { justify-content: center; }
.section--red .btn--ghost:hover { color: var(--red); }

/* Prose (À propos) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 1.6em; }
.prose p, .prose li { font-size: 18px; color: var(--grey-700); }
.prose blockquote { border-left: 4px solid var(--red); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; font-size: 20px; font-style: italic; color: var(--ink); }

/* Formulaire de contact */
.form { display: grid; gap: 18px; max-width: 720px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 160px; resize: vertical; }
.form__note { font-size: 14px; color: var(--grey-500); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: #bdbdbd; padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-about .brand img { height: 28px; }
.footer-about p { margin-top: 20px; max-width: 46ch; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid #333; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.footer-legal {
  border-top: 1px solid #262626; margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8a8a8a;
}
.footer-legal a { color: #bdbdbd; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Liste dépliable des talks (page Éditions) */
.talks { margin-top: 24px; border-top: 1px solid var(--grey-200); }
.talks summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.talks summary::-webkit-details-marker { display: none; }
.talks summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700; line-height: 1; flex: none; }
.talks[open] summary::before { content: "–"; }
.talks summary:hover { color: var(--red); }
.talks ul { list-style: none; margin: 0 0 8px; padding: 0; }
.talks li { padding: 10px 0; border-top: 1px solid var(--grey-200); font-size: 16px; color: var(--grey-700); line-height: 1.45; }
.talks li strong { display: block; color: var(--ink); font-size: 16px; }

/* Affiches par édition (page Éditions) : vignettes entières, sans recadrage */
.posters { margin-top: calc(32px - clamp(48px, 7vw, 96px)); } /* rapproche la grille de son édition (gap du conteneur) */
.posters__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 14px; }
.posters__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); gap: 12px; align-items: start; }
.posters__grid img { width: 100%; height: auto; max-width: 206px; border-radius: 4px; border: 1px solid var(--grey-200); background: var(--grey-100); }
.posters__main { margin: 0; }
.posters__main img { border: 2px solid var(--red); }
.posters__main figcaption { font-size: 12px; font-weight: 600; color: var(--red); margin-top: 6px; }

/* Affiche officielle à la place de la photo d'édition : affichée entière, sans recadrage */
.split__media--poster { display: flex; justify-content: center; }
.split__media--poster img { width: auto; max-width: 100%; height: auto; max-height: 620px; aspect-ratio: auto; object-fit: contain; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
