/* David Betka — styles communs (header, footer, boutons, sections) + accueil */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-on-dark);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--f-title);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p  { max-width: var(--measure); text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible {
  outline-color: var(--c-on-dark);
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-ivory); color: var(--c-on-light);
  padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 700;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--dark    { background: var(--c-bg);      color: var(--c-on-dark); }
.section--surface { background: var(--c-surface); color: var(--c-on-dark); }
.section--light   { background: var(--c-ivory);   color: var(--c-on-light); }

.section--dark, .section--surface { --fg: var(--c-on-dark); --fg-2: var(--c-on-dark-2); --line: var(--c-line-dark); }
.section--light { --fg: var(--c-on-light); --fg-2: var(--c-on-light-2); --line: var(--c-line-light); }
.muted { color: var(--fg-2); }

.section-head { margin-bottom: clamp(1.75rem, 1rem + 3vw, 3.25rem); }
.section-head p { margin-top: 1rem; }

.stack > * + * { margin-top: 1.25rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.5rem 1.25rem;
  font-family: var(--f-text); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.04em; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-strong); }
.btn--ghost { border-color: rgba(243, 240, 233, 0.45); color: var(--c-on-dark); }
.btn--ghost:hover { border-color: var(--c-on-dark); background: rgba(243, 240, 233, 0.08); }
.btn--ghost-dark { border-color: rgba(23, 23, 23, 0.4); color: var(--c-on-light); }
.btn--ghost-dark:hover { border-color: var(--c-on-light); background: rgba(23, 23, 23, 0.06); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap);
  font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  border-bottom: 2px solid var(--c-accent); padding-block: 0.15rem; align-self: flex-start;
}
.link-arrow:hover { border-bottom-color: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions--spaced { margin-top: 1.75rem; }
.figure-note { padding-top: 0.75rem; font-size: var(--fs-small); max-width: none; }

.icon-play { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid var(--c-line-dark);
  color: var(--c-on-dark);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}
/* Transparent uniquement lorsque JavaScript est actif et que la page est tout en haut */
.js .site-header.is-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.js .site-header.is-top.menu-open { background: rgba(17, 17, 17, 0.98); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: var(--tap); }
.brand img { height: 1.75rem; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: var(--tap); padding: 0 0.25rem 0 0.75rem;
  background: none; border: 0; cursor: pointer;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 1.5rem; height: 2px; background: currentColor; transition: background-color var(--t-fast) var(--ease); }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform var(--t-fast) var(--ease);
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: rgba(17, 17, 17, 0.98); border-bottom: 1px solid var(--c-line-dark);
  padding: 0.5rem var(--gutter) 1.5rem;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a {
  display: flex; align-items: center; min-height: 3.25rem;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.03em; text-decoration: none;
  border-bottom: 1px solid var(--c-line-dark); position: relative;
}
.site-nav .nav-cta { padding-top: 1.25rem; }
.site-nav .nav-cta a { display: inline-flex; min-height: var(--tap); border-bottom: 0; font-size: 0.9375rem; color: #fff; }
.site-nav .nav-cta a::after { display: none; }
.header-actions { display: none; }
.yt-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--tap); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; transition: opacity var(--t-fast) var(--ease); }
.yt-link:hover { opacity: 0.75; }
.yt-link, .header-cta { white-space: nowrap; }
.yt-link__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1360px) { .yt-link__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } }
.yt-link svg { width: 1.75rem; height: 1.75rem; fill: currentColor; flex: none; }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: #fff; }
.site-nav a[aria-current="page"]::after, .site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 2.5rem; height: 2px; background: var(--c-accent);
}

@media (min-width: 900px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__inner .brand { justify-self: start; }
  .header-actions { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); justify-self: end; }
  .site-nav .nav-yt { display: none; }
  .header-cta { display: inline-flex; min-height: 3rem; padding-inline: 1.75rem; font-size: 1rem; }
  .site-nav .nav-cta { display: none; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; background: none; border: 0; padding: 0; max-height: none; overflow: visible;
  }
  .site-nav ul { flex-direction: row; gap: clamp(2rem, 3.8vw, 3.75rem); }
  .site-nav a { min-height: var(--tap); border: 0; font-size: 1.125rem; letter-spacing: 0.02em; color: #fff; transition: opacity var(--t-fast) var(--ease); }
  .site-nav a:hover { opacity: 0.75; }
  .site-nav a[aria-current="page"], .site-nav a.is-active { color: #fff; }
  .site-nav a[aria-current="page"]::after, .site-nav a.is-active::after { bottom: 0.2rem; width: 100%; height: 3px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 58rem);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 6vw, 5rem);
  background: var(--c-bg);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(17, 17, 17, 0.96) 0%, rgba(17, 17, 17, 0.72) 32%, rgba(17, 17, 17, 0) 62%),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.65) 0%, rgba(17, 17, 17, 0) 22%);
}
.hero__inner { position: relative; }
.hero h1 { margin-bottom: 1.25rem; }
.hero__roles { font-size: 1.0625rem; font-weight: 700; color: var(--c-on-dark-2); margin-bottom: 1rem; }
.hero__lede { color: var(--c-on-dark); font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); max-width: 46ch; margin-bottom: 2rem; }

@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 4rem; }
  .hero__media { left: 34%; }
  .hero__media img { object-position: 50% 22%; }
  .hero__media::after {
    background:
      linear-gradient(to right, var(--c-bg) 0%, rgba(17, 17, 17, 0.55) 22%, rgba(17, 17, 17, 0) 55%),
      linear-gradient(to top, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0) 38%),
      linear-gradient(to bottom, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0) 20%);
  }
  .hero__inner > * { max-width: 36rem; }
}

/* ---------- Médias ---------- */

.media { position: relative; overflow: hidden; background: #000; border-radius: var(--radius); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }

@media (hover: hover) {
  .media:hover img, .play-trigger:hover img { transform: scale(1.03); }
}

/* Bouton lecture posé sur une affiche */
.play-trigger {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000;
  cursor: pointer; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff;
}
.play-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease), opacity var(--t-fast); }
.play-trigger::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.play-trigger__badge {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: var(--c-accent); color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
  transition: background-color var(--t-fast) var(--ease), scale var(--t-fast) var(--ease);
}
.play-trigger__badge svg { width: 1.5rem; height: 1.5rem; fill: currentColor; margin-left: 0.2rem; }
.play-trigger:hover .play-trigger__badge { background: var(--c-accent-strong); scale: 1.06; }
.play-trigger--small .play-trigger__badge { width: 3rem; height: 3rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22); }
.play-trigger--small .play-trigger__badge svg { width: 1.1rem; height: 1.1rem; }

/* ---------- 2. De la scène au cinéma ---------- */

.split { display: grid; gap: var(--gap); align-items: center; }
.split h2 { margin-bottom: 1.5rem; }
.split__text .stack p { max-width: 58ch; }
.split__media { aspect-ratio: 3 / 2; }

@media (min-width: 900px) {
  .split--45-55 { grid-template-columns: 45fr 55fr; }
  .split--media-left { grid-template-columns: 58fr 42fr; }
  .split--52-48 { grid-template-columns: 52fr 48fr; }
}

.facts { margin-top: 2rem; display: grid; gap: 0.75rem; max-width: 34rem; }
.facts div { display: grid; grid-template-columns: 6.25rem 1fr; gap: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--c-accent); }
.facts dd { color: var(--fg); }

/* ---------- 3. Sélection de projets ---------- */

.feature { position: relative; display: flex; flex-direction: column; }
.feature__media { aspect-ratio: 1200 / 602; }
.feature__media img { object-position: 50% 75%; }
.feature__caption { padding-bottom: 1.5rem; }
.project-meta { font-size: var(--fs-small); font-weight: 700; color: var(--c-on-dark-2); margin-bottom: 0.5rem; }
.feature .project-meta { color: var(--c-on-dark); }
.feature__caption h3 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: 0.75rem; }
.feature__caption p:not(.project-meta) { color: var(--c-on-dark-2); max-width: 56ch; }
.feature__caption .actions { margin-top: 1.25rem; }


@media (min-width: 768px) {
  .feature__caption {
    position: absolute; inset: 0; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: rgba(17, 17, 17, 0.62); border-radius: var(--radius);
    pointer-events: none;
  }
  .feature__caption .actions { justify-content: center; pointer-events: auto; }
  .feature__caption p:not(.project-meta) { color: var(--c-on-dark); margin-inline: auto; }
  .feature .play-trigger__badge { display: none; }
}

.minor-list { margin-top: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.minor { display: grid; gap: 1rem; align-content: start; }
.minor__media { aspect-ratio: 800 / 401; }
.minor h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.minor p:not(.project-meta) { color: var(--c-on-dark-2); }
.minor .actions { margin-top: 1rem; }

@media (min-width: 768px) {
  .minor-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- 4. Sur scène (vidéo / texte) ---------- */

.stage-note { font-size: var(--fs-small); color: var(--c-on-light-2); border-left: 2px solid var(--c-accent); padding-left: 1rem; }
.video-block__media { aspect-ratio: 1200 / 602; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55); }

/* Sur scène : 50 / 50, vidéo et texte de même hauteur (ordinateur) */
@media (min-width: 900px) {
  #scene .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  #scene .split > div:first-child { display: block; }
  #scene .video-block__media { position: relative; aspect-ratio: auto; height: 100%; min-height: 18rem; }
  #scene .video-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* À la télévision et à la radio : 50 / 50, texte et vidéo de même hauteur (ordinateur) */
@media (min-width: 900px) {
  #medias .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  #medias .split > div:last-child { display: block; }
  #medias .video-block__media { position: relative; aspect-ratio: auto; height: 100%; min-height: 18rem; }
  #medias .video-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- 5. Créer et transmettre ---------- */

.mission-line { font-family: var(--f-title); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; color: var(--fg); max-width: 28ch; }
.projects-engagement { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.projects-engagement li { padding-left: 1.25rem; position: relative; font-weight: 700; }
.projects-engagement li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 2px; background: var(--c-accent); }
.framed { position: relative; }
.framed::after { content: ""; position: absolute; inset: 0.9rem -0.9rem -0.9rem 0.9rem; border: 1px solid var(--c-line-dark); border-radius: var(--radius); z-index: -1; }
@media (max-width: 899px) { .framed::after { display: none; } }

/* Créer et transmettre : 50 / 50, photo et texte de même hauteur (ordinateur) */
@media (min-width: 900px) {
  #transmission .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  #transmission .framed { display: flex; flex-direction: column; }
  #transmission .framed .split__media { position: relative; aspect-ratio: auto; flex: 1; min-height: 18rem; }
  #transmission .framed .split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- 6. Projections et rencontres ---------- */

.archives { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.archive { display: grid; gap: 1rem; align-content: start; }
.archive__media { background: #2a2a2a; border-radius: var(--radius); overflow: hidden; }
.archive__media img { width: 100%; height: auto; }
.archive__year { font-family: var(--f-title); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.archive h3 { font-size: 1.125rem; font-family: var(--f-text); font-weight: 700; line-height: 1.35; margin-top: 0.25rem; }
.archive p:not(.archive__year) { font-size: var(--fs-small); color: var(--fg-2); margin-top: 0.35rem; }

.tag-archive {
  display: inline-block; font-size: var(--fs-small); font-weight: 700;
  border: 1px solid var(--line); padding: 0.1rem 0.6rem; border-radius: var(--radius); color: var(--fg); margin-right: 0.5rem;
}

@media (min-width: 640px) { .archives { grid-template-columns: repeat(3, 1fr); align-items: start; } }
@media (max-width: 639px) {
  .archive { grid-template-columns: 38% 1fr; gap: 1rem; }
}

/* ---------- 7. Coulisses (galerie) ---------- */

.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.gallery-head .section-head { margin: 0; }
.gallery-controls { display: flex; gap: 0.5rem; }
.icon-btn {
  display: grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 1px solid var(--fg-2); background: transparent; color: var(--fg);
  border-radius: 50%; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), opacity var(--t-fast);
}
.icon-btn:hover:not(:disabled) { background: rgba(127, 127, 127, 0.14); border-color: var(--fg); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery-track {
  display: flex; gap: clamp(0.75rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--c-accent) transparent;
}
.gallery-item { flex: 0 0 min(82vw, 36rem); scroll-snap-align: start; }
.gallery-item .media { aspect-ratio: 3 / 2; }
.gallery-item figcaption { padding-top: 0.75rem; font-size: var(--fs-small); color: var(--fg-2); max-width: none; }
.gallery-item figcaption strong { color: var(--fg); font-weight: 700; }
@media (min-width: 1100px) {
  .gallery-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}

/* ---------- 8. Contact ---------- */

.contact { display: grid; gap: var(--gap); align-items: start; }
.contact h2 { margin-bottom: 1.25rem; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--c-line-dark); }
.contact-list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--c-line-dark); align-items: baseline; }
.contact-list dt { font-size: var(--fs-small); font-weight: 700; color: var(--c-on-dark-2); }
.contact-list a { text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; font-weight: 700; word-break: break-word; }
.contact-list a:hover { text-decoration-color: currentColor; }
.contact .actions { margin-top: 1.75rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }

/* ---------- Liens texte et listes de lecture ---------- */

.text-link { text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; font-weight: 700; }
.text-link:hover { text-decoration-color: currentColor; }

.film-rows { margin-top: clamp(2rem, 4vw, 3.5rem); }
.film-rows__title { font-family: var(--f-text); font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.media-rows { border-top: 1px solid var(--line); }
.media-rows li { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.media-rows .row-title { font-weight: 700; line-height: 1.3; }
.media-rows .row-meta { font-size: var(--fs-small); color: var(--fg-2); margin-top: 0.15rem; max-width: 60ch; }
.media-rows .btn { flex: none; }
@media (max-width: 520px) { .media-rows li { align-items: flex-start; flex-direction: column; gap: 0.75rem; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--c-bg); color: var(--c-on-dark-2); border-top: 1px solid var(--c-line-dark); padding-block: 2.5rem 2rem; font-size: var(--fs-small); }
.site-footer__top { display: grid; gap: 1.5rem; align-items: center; padding-bottom: 1.75rem; border-bottom: 1px solid var(--c-line-dark); }
.site-footer .brand img { height: 1.6rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--c-on-dark); }
.footer-nav a:hover, .footer-links a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.5rem; }
.site-footer__bottom a { color: var(--c-on-dark); }
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: auto 1fr auto; gap: 3rem; }
  .footer-nav { justify-self: center; }
}

/* ---------- Lecteur modal ---------- */

.media-dialog {
  width: min(1100px, 94vw, calc((94dvh - 7rem) * 16 / 9)); max-width: none; padding: 0; border: 0;
  background: #0a0a0a; color: var(--c-on-dark); border-radius: var(--radius); overflow: hidden;
}
.media-dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.media-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1.25rem; border-bottom: 1px solid var(--c-line-dark); }
.media-dialog__title { font-family: var(--f-text); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.media-dialog__close { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap); padding: 0 1rem; background: none; border: 1px solid rgba(243, 240, 233, 0.4); border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 0.9375rem; flex: none; }
.media-dialog__close:hover { background: rgba(243, 240, 233, 0.1); }
.media-dialog__frame { aspect-ratio: 16 / 9; background: #000; }
.media-dialog__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.media-dialog__fallback { padding: 0.75rem 1.25rem; font-size: var(--fs-small); color: var(--c-on-dark-2); }
.media-dialog__fallback a { color: var(--c-on-dark); }
body.has-dialog { overflow: hidden; }

/* ---------- Révélation au défilement ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .media:hover img, .play-trigger:hover img { transform: none; }
}

/* Bouton WhatsApp flottant (bas, à droite) */
.wa-float{position:fixed;right:clamp(1rem,2.5vw,1.75rem);bottom:clamp(1rem,2.5vw,1.75rem);z-index:40;display:inline-flex;align-items:center;gap:.6rem;min-height:3.5rem;min-width:3.5rem;justify-content:center;padding:0 1rem;border-radius:999px;background:#128c4a;color:#fff;font:600 1rem/1 var(--f-text);text-decoration:none;box-shadow:0 4px 16px rgba(0,0,0,.35);transition:background var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
.wa-float:hover{background:#0e7340;transform:translateY(-2px)}
.wa-float:focus-visible{outline:3px solid #fff;outline-offset:3px}
.wa-float svg{width:1.75rem;height:1.75rem;fill:currentColor;flex:none}
.wa-float__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (min-width:900px){.wa-float{padding:0 1.25rem 0 1rem}.wa-float__label{position:static;width:auto;height:auto;overflow:visible;clip:auto}}
body.has-dialog .wa-float{display:none}
@media (prefers-reduced-motion:reduce){.wa-float{transition:none}.wa-float:hover{transform:none}}

/* ---------- Pages intérieures : en-tête plein, bandeau de titre ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 5rem)); padding-bottom: clamp(2rem, 1.5rem + 3vw, 4rem); }
.page-head h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4rem); margin-bottom: 1.25rem; }
.page-head p { color: var(--c-on-dark); font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); max-width: 52ch; }
.page-head .page-head__alt { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--c-on-dark-2); }
.page-head__alt a { font-weight: 700; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* Pistes de collaboration : lignes séparées, pas de cartes */
.pistes { border-top: 1px solid var(--c-line-dark); margin-top: 2rem; }
.pistes > div { display: grid; gap: 0.5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--c-line-dark); }
.pistes dt { font-family: var(--f-title); font-weight: 700; font-size: var(--fs-h3); }
.pistes dd p { color: var(--c-on-dark-2); }
.pistes dd a { display: inline-block; margin-top: 0.5rem; font-weight: 700; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
@media (min-width: 800px) { .pistes > div { grid-template-columns: 1fr 1.4fr; align-items: baseline; } }

/* Mise en page formulaire + coordonnées */
.form-layout { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.35fr 1fr; } }
.form-layout h2 { margin-bottom: 1rem; }
.form-layout .contact-list { border-top-color: var(--c-line-light); }
.form-layout .contact-list > div { border-bottom-color: var(--c-line-light); }
.form-layout .contact-list dt { color: var(--c-on-light-2); }

/* Formulaires (sur fond ivoire) */
.form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 700; font-size: var(--fs-small); }
.field .opt { font-weight: 400; color: var(--c-on-light-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.875rem;
  font: inherit; font-size: 1rem; color: var(--c-on-light);
  background: #fff; border: 1px solid rgba(23, 23, 23, 0.45); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-on-light); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-color: var(--c-on-light); }
.field [aria-invalid="true"] { border-color: #a81e24; border-width: 2px; }
.field__error { color: #a81e24; font-size: var(--fs-small); font-weight: 700; }
.field__error:empty { display: none; }
.field__hint { font-size: var(--fs-small); color: var(--c-on-light-2); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field--check input { width: 1.5rem; min-height: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--c-accent); }
.field--check label { font-weight: 400; font-size: var(--fs-small); }
.field--check .field__error { grid-column: 2; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form .btn[disabled], .form .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.form__status { padding: 0.9rem 1rem; border-left: 4px solid var(--c-on-light); background: rgba(23, 23, 23, 0.06); font-size: var(--fs-small); max-width: none; }
.form__status[hidden] { display: none; }
.form__status--error { border-left-color: #a81e24; }
.form__note { font-size: var(--fs-small); color: var(--c-on-light-2); max-width: none; }

/* Fond blanc pour les sections de formulaire (Contact, Collaborer) */
.section--white { background: #fff; color: var(--c-on-light); --fg: var(--c-on-light); --fg-2: var(--c-on-light-2); --line: var(--c-line-light); }
.section--white .field input, .section--white .field select, .section--white .field textarea { border-color: rgba(23, 23, 23, 0.4); }
.section--white .form__status { background: #f5f3ee; }

/* Réseaux sociaux (pied de page) */
.social { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.5rem; }
.social a, .social__pending { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); color: var(--c-on-dark); border-radius: 50%; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.social svg { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.social a:hover { color: #fff; background: rgba(243, 240, 233, 0.12); }
.social__pending { opacity: 0.45; cursor: default; }
.contact-list .social { margin: -0.5rem 0 -0.5rem -0.75rem; }
.form-layout .social a, .form-layout .social__pending { color: var(--c-on-light); }
.form-layout .social a:hover { color: var(--c-on-light); background: rgba(23, 23, 23, 0.08); }
.contact-list .social a { text-decoration: none; }
.social svg[fill="none"] { fill: none; stroke: currentColor; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { margin-bottom: 1.25rem; font-size: var(--fs-small); color: var(--c-on-dark-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.breadcrumb a { text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.breadcrumb [aria-current] { color: var(--c-on-dark); }

/* ---------- Frise chronologique ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline > li { display: grid; gap: 0.5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1; color: var(--c-accent); }
.timeline h3 { font-family: var(--f-text); font-size: 1.1875rem; font-weight: 700; margin-bottom: 0.35rem; }
.timeline p:not(.timeline__year) { color: var(--fg-2); }
@media (min-width: 760px) { .timeline > li { grid-template-columns: 9rem 1fr; align-items: baseline; } }

.split__media--portrait { aspect-ratio: 5 / 7; max-width: 30rem; }
@media (max-width: 899px) { .split__media--portrait { max-width: 22rem; } }

/* ---------- Événements : affiche à gauche, détails à droite ---------- */
.events { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.event { display: grid; gap: 1.25rem; align-items: start; }
.event__media { background: #2a2a2a; border-radius: var(--radius); overflow: hidden; max-width: 14rem; }
.event__media img { width: 100%; height: auto; }
.event__type { font-size: var(--fs-small); font-weight: 700; color: var(--fg-2); }
.event h3 { font-family: var(--f-title); font-size: var(--fs-h3); margin: 0.35rem 0 0.5rem; }
.event__when { font-weight: 700; color: var(--fg); max-width: 60ch; margin-bottom: 0.75rem; }
.event__body p:not(.event__type):not(.event__when) { color: var(--fg-2); }
.event__body p + p { margin-top: 0.6rem; }
.event__credits { font-size: var(--fs-small); }
.event__body .actions { margin-top: 1.25rem; }
@media (min-width: 640px) { .event { grid-template-columns: 14rem 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); } }
.event-year .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section--light .event__media { background: #e4e0d6; }
.event__year { font-family: var(--f-title); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--fg); margin-bottom: 0.5rem; }

/* ---------- Événements : liste continue, affiches plus grandes ---------- */
.events-list { padding-block: clamp(1rem, 2vw, 2rem) var(--section-y); }
.events-list .events { gap: 0; }
.events-list .event { padding-block: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.events-list .event:last-child { border-bottom: 0; }
.events-list .event__media { max-width: none; width: 100%; }
@media (min-width: 640px) {
  .events-list .event { grid-template-columns: minmax(15rem, 26rem) 1fr; gap: clamp(1.75rem, 4vw, 4rem); }
}
@media (min-width: 1100px) {
  .events-list .event { grid-template-columns: 28rem 1fr; }
}
.events-list .event__year { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); color: var(--c-accent); }
.events-list .event h3 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.15; margin-block: 0.4rem 0.9rem; }
.events-list .event__when { font-size: 1.125rem; max-width: 36ch; }
.events-list .event__body p:not(.event__type):not(.event__when):not(.event__year) { font-size: var(--fs-body); }
.events-list .event__body { padding-top: 0.5rem; }
.events-list .event { align-items: center; }
@media (min-width: 640px) { .events-list .event { grid-template-columns: minmax(14rem, 20rem) 1fr; } }
@media (min-width: 1100px) { .events-list .event { grid-template-columns: 22rem 1fr; } }
.events-list .event__body { padding-top: 0; max-width: 44rem; }
.events-list .event__body p:not(.event__type):not(.event__when):not(.event__year) { font-size: 1.1875rem; line-height: 1.6; }

/* ---------- Catalogue vidéo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.filters[hidden] { display: none; }
.chip { min-height: var(--tap); padding: 0 1.1rem; font-weight: 700; font-size: 0.9375rem; background: transparent; color: var(--c-on-dark); border: 1px solid rgba(243, 240, 233, 0.4); border-radius: 999px; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--c-on-dark); background: rgba(243, 240, 233, 0.08); }
.chip[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
[data-cat][hidden] { display: none; }

.vgrid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 600px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .vgrid { grid-template-columns: repeat(3, 1fr); } .vgrid--2 { grid-template-columns: repeat(2, 1fr); } }
.vcard { display: grid; gap: 1rem; align-content: start; }
.vcard__media, .vrow__media, .fiche-hero__media { position: relative; display: block; overflow: hidden; background: #000; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.vcard__media img, .vrow__media img, .fiche-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.vcard__media:hover img, .vrow__media:hover img, .fiche-hero__media:hover img { transform: scale(1.03); }
.vcard__dur { position: absolute; right: 0.5rem; bottom: 0.5rem; padding: 0.15rem 0.5rem; font-size: 0.8125rem; font-weight: 700; background: rgba(17, 17, 17, 0.82); color: #fff; border-radius: var(--radius); }
.vcard__play { position: absolute; left: 0.75rem; bottom: 0.65rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--c-accent); color: #fff; }
.vcard__play svg { width: 1.1rem; height: 1.1rem; margin-left: 0.1rem; }
.vcard__play--lg { width: 4rem; height: 4rem; left: 1rem; bottom: 1rem; }
.vcard__play--lg svg { width: 1.6rem; height: 1.6rem; }
.vcard__type { font-size: var(--fs-small); font-weight: 700; color: var(--fg-2); }
.vcard h3 { font-family: var(--f-title); font-size: 1.4rem; line-height: 1.2; margin: 0.25rem 0 0.4rem; }
.vcard h3 a { text-decoration: none; }
.vcard h3 a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.vcard__sub { font-family: var(--f-text); font-weight: 400; font-size: 1.05rem; }
.vcard__meta { font-size: var(--fs-small); color: var(--fg-2); }
.vcard__lede { margin-top: 0.6rem; color: var(--fg); }
.vcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.section--light .btn--ghost { border-color: rgba(23, 23, 23, 0.4); color: var(--c-on-light); }
.section--light .btn--ghost:hover { border-color: var(--c-on-light); background: rgba(23, 23, 23, 0.06); }

.vrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 9rem 1fr; gap: 0.75rem 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.vrow__media { aspect-ratio: 16 / 9; }
.vrow h3 { font-family: var(--f-text); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.vrow h3 a { text-decoration: none; }
.vrow h3 a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.vrow__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
@media (min-width: 760px) { .vrow { grid-template-columns: 14rem 1fr auto; } .vrow__actions { grid-column: auto; } }

/* ---------- Fiche vidéo ---------- */
.fiche-head { padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.fiche-hero { display: grid; gap: clamp(1.75rem, 3vw, 3rem); align-items: center; }
@media (min-width: 900px) { .fiche-hero { grid-template-columns: 1fr 1.25fr; } }
.fiche-type { font-weight: 700; color: var(--c-on-dark-2); font-size: var(--fs-small); margin-bottom: 0.75rem; }
.fiche-head h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); margin-bottom: 1rem; }
.fiche-sub { display: block; font-family: var(--f-text); font-weight: 400; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); margin-top: 0.5rem; color: var(--c-on-dark-2); }
.fiche-lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); max-width: 40ch; }
.fiche-body { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 900px) { .fiche-body { grid-template-columns: 1.3fr 1fr; } }
.fiche-body h2 { margin-bottom: 0.5rem; }
.fiche-poster { max-width: 16rem; margin-bottom: 1.5rem; }
.fiche-poster img { width: 100%; height: auto; }
.facts--fiche { margin-top: 0; max-width: none; }
.facts--fiche div { grid-template-columns: 8.5rem 1fr; }
.facts--fiche dt { color: var(--c-on-light-2); font-weight: 700; }
.credits-title { font-family: var(--f-text); font-size: 1.0625rem; margin: 1.75rem 0 0.75rem; }
.fiche-body .text-link { color: var(--c-on-light); }
.fiche-gallery { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .fiche-gallery { grid-template-columns: repeat(2, 1fr); } }
.fiche-gallery .media { aspect-ratio: 16 / 9; }
.vgrid--rel .vcard h3 { font-size: 1.25rem; }
.fiche-body--poster .fiche-poster { max-width: 20rem; margin: 0; }
@media (min-width: 900px) { .fiche-body--poster { grid-template-columns: 20rem 1fr; } }
.fiche-body--poster .facts--fiche { margin-top: 1.75rem; max-width: 36rem; }

/* ---------- Invitation email (popup) ---------- */
.popup { padding: 0; border: 1px solid var(--c-line-dark); border-radius: var(--radius); background: var(--c-surface); color: var(--c-on-dark); width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; opacity: 0; transform: translateY(12px); transition: opacity 240ms var(--ease), transform 240ms var(--ease), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.popup[open] { opacity: 1; transform: none; }
@starting-style { .popup[open] { opacity: 0; transform: translateY(12px); } }
.popup::backdrop { background: rgba(0, 0, 0, 0.7); }
.popup[open] { display: grid; }
@media (min-width: 700px) { .popup[open] { grid-template-columns: 0.9fr 1.1fr; } }
.popup__media { aspect-ratio: 16 / 7; background: #000; overflow: hidden; }
.popup__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 700px) { .popup__media { aspect-ratio: auto; min-height: 100%; } .popup__media img { object-position: 28% 30%; } }
.popup__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: center; }
.popup h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.popup__body > p { color: var(--c-on-dark-2); }
.popup__form { display: grid; gap: 1rem; }
.popup .field label { color: var(--c-on-dark); }
.popup .field input[type="email"] { background: #fff; }
.popup .field--check label { color: var(--c-on-dark-2); }
.popup .field__error { color: #ff9a9e; }
.popup .form__status { background: rgba(243, 240, 233, 0.08); border-left-color: var(--c-on-dark); color: var(--c-on-dark); }
.popup .form__status--error { border-left-color: #ff9a9e; }
.popup__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.popup__close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(17, 17, 17, 0.7); color: #fff; cursor: pointer; }
.popup__close:hover { background: rgba(17, 17, 17, 0.95); }
.popup__close svg { width: 1.25rem; height: 1.25rem; }
.popup :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { .popup { transition: none; transform: none; } }
