/* ===== ARPi v3 — éditorial animé — implementation of ARPi v3 - éditorial animé.dc.html ===== */

:root {
  --ink: #16130F;
  --cream: #F4F1EB;
  --brick: #C4331A;
  --amber: #E0985F;
  --muted: #7A7066;
  --muted-2: #9A9089;
  --line: rgba(22, 19, 15, 0.08);
  --line-2: rgba(22, 19, 15, 0.12);
  --line-3: rgba(22, 19, 15, 0.14);
  --line-4: rgba(22, 19, 15, 0.18);
  --cream-line: rgba(244, 241, 235, 0.14);
  --rail-w: clamp(200px, 13vw, 250px);
  /* Horizontal padding and content cap both scale with the viewport so the
     layout keeps the same proportions from 1280px up to ultra-wide screens. */
  --pad-x: clamp(22px, 4vw, 110px);
  --content-max: 1680px;
  /* Every band pads with --gutter, so content caps at --content-max while the
     coloured backgrounds stay full-bleed — and every section shares one left edge. */
  --gutter: max(var(--pad-x), (100% - var(--content-max)) / 2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Archivo, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
::selection { background: var(--brick); color: var(--cream); }

button { font: inherit; background: none; border: none; padding: 0; margin: 0; }

/* ===== Keyframes ===== */
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
/* scaleY, not clip-path: the triangle/quarter masks define their own shape with
   clip-path, and animating clip-path here would overwrite it (square triangles). */
@keyframes wipe { from { transform: scaleY(0); opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tilt { from { transform: rotate(-9deg) translateY(30px); } to { transform: rotate(-3deg) translateY(0); } }

/* ===== Shell / layout ===== */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  background: var(--cream);
  min-height: 100vh;
}

.main { min-width: 0; overflow: clip; }

.screen[hidden] { display: none; }

.section-pad { position: relative; padding: clamp(52px, 7vh, 84px) var(--gutter); overflow: clip; }
.section-dark { background: var(--ink); }
.section-brick { background: var(--brick); }


/* ===== Rail ===== */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--cream);
  z-index: 40;
  border-right: 1px solid var(--line);
}
.rail-brand { display: flex; flex-direction: column; gap: 2px; }
.rail-logo { font-family: Archivo, sans-serif; font-weight: 900; font-size: 30px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.rail-tagline { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); line-height: 1.4; }
.rail-spacer { flex: 1 1 20px; }
.rail-nav { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.rail-link {
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; color: var(--ink); transition: color 0.25s ease;
}
.rail-link:hover { color: var(--brick); text-decoration: none; }
.rail-link.active { color: var(--brick); }
.rail-rule { height: 1px; background: var(--line-3); }
.rail-meta { display: flex; flex-direction: column; gap: 11px; }
.rail-login { font-family: Archivo, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rail-lang { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2); }
.rail-cta-block { display: flex; flex-direction: column; gap: 7px; }
.rail-cta { font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brick); cursor: pointer; }
.rail-version { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted-2); }

/* ===== Shared type / atoms ===== */
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
/* Type keeps scaling past 1280px instead of freezing, so headlines hold their
   weight against the artwork on large screens. */
.h1 { margin: 0; font-weight: 800; font-size: clamp(36px, calc(1.56vw + 36px), 76px); line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; color: var(--ink); }
.h1-brick { font-size: clamp(38px, calc(1.72vw + 38px), 82px); line-height: 0.94; color: var(--brick); text-wrap: balance; }
.h2 { margin: 0; font-weight: 800; font-size: clamp(28px, calc(1.09vw + 28px), 56px); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); }
.h2-white { font-size: clamp(30px, calc(1.25vw + 30px), 62px); color: #FFF; text-wrap: balance; }
.h2-brick { color: var(--brick); text-wrap: balance; }
.lede { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(20px, calc(0.47vw + 18px), 32px); line-height: 1.3; color: var(--ink); max-width: 30ch; }
.serif-body { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; line-height: 1.35; }
.mono-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.68); }
.mono-tag-amber { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.mono-tag-on-brick { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.mono-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.mono-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.serif-title { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(24px, calc(0.63vw + 25px), 44px); line-height: 1.05; color: var(--cream); }
.mono-sub { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(244, 241, 235, 0.6); }

.arrow-cta { display: inline-block; font-size: 34px; color: var(--brick); line-height: 1; cursor: pointer; align-self: flex-start; transition: transform 0.35s ease; }
.arrow-cta:hover { transform: translateX(14px); }
.arrow-cta-sm { font-size: 28px; }
.arrow-cta-sm:hover { transform: translateX(12px); }

.outline-btn {
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(22, 19, 15, 0.35); padding: 16px 34px; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.outline-btn:hover { background: var(--ink); color: var(--cream); }

.solid-btn {
  display: inline-block; align-self: flex-start;
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brick); background: #FFF; padding: 15px 28px; cursor: pointer;
}
.solid-btn-white {
  display: inline-block; align-self: flex-start;
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink); background: #FFF; padding: 15px 28px; margin-top: 8px; cursor: pointer;
}
.solid-btn-white[hidden] { display: none; }

/* Mobile-only pieces — hidden on desktop, activated in the phone layer */
.rail-tagline-short, .m-cta, .m-head, .count-short, .path-cta-text { display: none; }
.toggle-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ===== Watermarks ===== */
.watermark {
  position: absolute; font-weight: 900; letter-spacing: -0.045em; white-space: nowrap;
  pointer-events: none; line-height: 0.8; will-change: transform;
}
.watermark-left { left: -2vw; }
.watermark-right { right: -3vw; }
.watermark-top { top: 30px; }
.watermark-xl { font-size: clamp(110px, 15vw, 230px); color: rgba(22, 19, 15, 0.055); }
.watermark-lg { font-size: clamp(110px, 15vw, 220px); color: rgba(22, 19, 15, 0.055); }
.watermark-sm { font-size: clamp(96px, 13vw, 200px); color: rgba(22, 19, 15, 0.05); }
.watermark-on-dark { color: rgba(244, 241, 235, 0.06); }

/* ===== Rise / wipe / grow reveal ===== */
.rise { animation: rise 0.9s both; }
.tilt { animation: tilt 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.rise-inview, .wipe-inview, .grow-inview { opacity: 0; }
.wipe-inview { transform-origin: top; }
.rise-inview.in-view { animation: rise 0.9s both; }
.wipe-inview.in-view { animation: wipe 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.grow-inview { opacity: 1; transform: scaleX(0); transform-origin: left; }
.grow-inview.in-view { animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rise-inview[data-delay="1"].in-view, .wipe-inview[data-delay="1"].in-view { animation-delay: 0.1s; }
.grow-inview[data-delay="1"].in-view { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .tilt, .rise-inview, .wipe-inview, .grow-inview { animation: none !important; opacity: 1 !important; transform: none !important; }
  .grow-inview { transform: scaleX(1) !important; }
}

/* ===== Hero ===== */
/* The hero is sized against the viewport so it fits on one screen at any
   desktop size: the poster's width is capped in svh units, which — via its
   4/5 ratio — caps its height too, instead of growing with the grid column. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(36px, 5vh, 72px) var(--gutter);
  min-height: 620px;
  min-height: min(780px, 90svh);
  overflow: clip;
}
.hero-grid {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 70px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 28px); }
.hero-poster {
  position: relative; aspect-ratio: 4 / 5;
  width: 100%; max-width: min(100%, 54svh); justify-self: end;
  background: repeating-linear-gradient(135deg, #211D18 0 12px, #16130F 12px 24px);
  box-shadow: 0 30px 70px -30px rgba(22, 19, 15, 0.5);
}
.hero-poster-copy {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; padding: clamp(18px, 2vw, 30px); gap: 8px;
  padding-right: clamp(96px, 11vw, 150px);
  transition: opacity 0.25s ease;
}
.hero-poster-copy.swapping { opacity: 0; }

/* Hero carousel — several films share the slot rather than one "film du mois" */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero-slide.is-active { opacity: 1; }

/* Controls stay editorial: no boxes or UI chrome, just marks on the poster */
.hero-controls {
  position: absolute; z-index: 3;
  right: clamp(18px, 2vw, 30px); bottom: clamp(18px, 2vw, 30px);
  display: flex; align-items: center; gap: 14px;
}
.hero-arrow {
  cursor: pointer; font-size: 26px; line-height: 1; padding: 0 2px;
  color: rgba(244, 241, 235, 0.5); transition: color 0.25s ease;
}
.hero-arrow:hover { color: var(--amber); }
.hero-arrow:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
.hero-dots { display: flex; align-items: center; gap: 7px; }
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(244, 241, 235, 0.32); transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dot:hover { background: rgba(244, 241, 235, 0.7); }
.hero-dot[aria-selected="true"] { background: var(--amber); transform: scale(1.5); }
.hero-dot:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ===== Ticker ===== */
.ticker-wrap { overflow: clip; padding: 14px 0 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-group { display: flex; gap: 30px; padding-right: 30px; }
.ticker-item { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ===== Cinéastes (accueil) ===== */
.cineastes-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; }
.cineaste { display: flex; flex-direction: column; gap: 14px; }
.cineaste-1 { grid-column: 1 / 6; }
.cineaste-2 { grid-column: 7 / 13; margin-top: 120px; }
.name { font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.name-brick { color: var(--brick); }
.name-ink { color: var(--ink); }
.role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.cineastes-more { position: relative; display: flex; justify-content: center; margin-top: 60px; }

.mask { background-repeat: no-repeat; background-size: cover; background-position: top center; border-radius: 8px; clip-path: none !important; }
.mask-circle, .mask-triangle, .mask-quarter { aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, #D9D0C2 0 11px, #CFC5B6 11px 22px); border-radius: 8px; clip-path: none !important; }

/* ===== Films band (accueil, dark) ===== */
.films-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: end; }
.film-item { display: flex; flex-direction: column; gap: 13px; cursor: pointer; }
.film-item .mask { background: repeating-linear-gradient(135deg, #3A332B 0 12px, #2B251F 12px 24px); border-radius: 8px; clip-path: none !important; }
.film-mask-circle, .film-mask-triangle, .film-mask-quarter { aspect-ratio: 16 / 10; border-radius: 8px; clip-path: none !important; }
.film-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 27px; line-height: 1.1; color: var(--cream); }
.film-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(244, 241, 235, 0.5); }

/* ===== Stat / brick band ===== */
.stat-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.stat-copy { display: flex; flex-direction: column; gap: 18px; }
.stat-bars { display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: flex; flex-direction: column; gap: 7px; }
.stat-row-labels { display: flex; justify-content: space-between; align-items: baseline; }
.mono-label-white { color: #FFF; }
.mono-label-dim { color: rgba(255, 255, 255, 0.7); }
.stat-pct { font-weight: 800; font-size: 30px; line-height: 1; }
.stat-pct-white { color: #FFF; }
.stat-pct-dim { color: rgba(255, 255, 255, 0.55); }
.bar-fill { height: 12px; transform-origin: left; width: 100%; }
.bar-fill-solid { background: #FFF; }
.bar-fill-dim { background: rgba(255, 255, 255, 0.3); }

/* ===== Nous rejoindre (paths) ===== */
.paths { position: relative; display: flex; flex-direction: column; gap: 44px; }
.path-row { display: grid; gap: 40px; align-items: center; }
.path-row .mask { aspect-ratio: 1 / 1; }
.path-content { display: flex; flex-direction: column; gap: 12px; max-width: 40ch; }
.path-title { font-weight: 800; font-size: clamp(26px, 3.1vw, 40px); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.path-desc { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; line-height: 1.35; color: #4B443C; }

/* ===== Listing head (Annuaire / Catalogue) ===== */
.listing-head { position: relative; padding: 56px var(--gutter) 26px var(--gutter); overflow: clip; }
.listing-head-inner { position: relative; display: flex; flex-direction: column; gap: 26px; }
.listing-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding-top: 40px; }
.search-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.search-input {
  flex: 1 1 300px; font-family: Archivo, sans-serif; font-size: 15px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid rgba(22, 19, 15, 0.3); padding: 12px 2px; outline: none;
}
.search-input::placeholder { color: var(--muted-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.chip {
  font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; padding-bottom: 4px; transition: color 0.25s ease; color: var(--muted); border-bottom: 1px solid transparent;
}
.chip.active { color: var(--brick); border-bottom: 1px solid var(--brick); }
.chip-spacer { flex: 1 1 20px; }
.listing-head-inner .chip-row + .toggle-row { margin-top: -14px; justify-content: flex-end; }
.toggle-chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; padding-bottom: 4px; border-bottom: 1px solid rgba(22, 19, 15, 0.2); color: var(--muted);
}
.toggle-chip.active-dispo { color: #2E7D52; border-bottom-color: #2E7D52; }
.toggle-chip.active-reel { color: var(--brick); border-bottom-color: var(--brick); }

/* ===== Annuaire rows ===== */
.listing-body { padding: 20px var(--gutter) 80px var(--gutter); display: flex; flex-direction: column; }
.member-row { display: flex; gap: 34px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.member-mask { width: 150px; aspect-ratio: 4 / 5; flex-shrink: 0; border-radius: 8px; background-size: cover; background-position: top center; clip-path: none !important; }
.member-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.member-name { font-weight: 800; font-size: clamp(24px, 2.8vw, 38px); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.member-role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.member-films { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 2px; }
.member-films span { font-family: 'Instrument Serif', Georgia, serif; font-size: 18px; color: #4B443C; }
.member-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 170px; }
.dispo-row { display: flex; align-items: center; gap: 9px; }
.dispo-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #C0B6A6; }
.dispo-dot.ok { background: #2E7D52; }
.dispo-text { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.dispo-text.ok { color: #2E7D52; }
.reel-text { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.contact-link {
  font-family: Archivo, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--brick); padding-bottom: 3px; cursor: pointer; transition: color 0.3s ease;
}
.contact-link:hover { color: var(--brick); }
.empty-state { padding: 40px 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }

/* ===== Catalogue ===== */
.catalogue-grid { padding: 20px var(--gutter) 80px var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.film-card { display: flex; flex-direction: column; gap: 11px; cursor: pointer; }
.film-poster {
  position: relative; aspect-ratio: 2 / 3; overflow: clip; border-radius: 8px;
  background: repeating-linear-gradient(135deg, #D9D0C2 0 10px, #CFC5B6 10px 20px);
}
.film-state {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; color: var(--cream); background: var(--ink);
}
.film-state.prod { background: var(--brick); }
.film-card-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 21px; line-height: 1.12; color: var(--ink); }
.film-card-meta { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.film-card-author { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brick); }

/* ===== Adhésion ===== */
.adhesion-head { position: relative; padding: 56px var(--gutter) 40px var(--gutter); overflow: clip; }
.adhesion-head-inner { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 40px; max-width: 34ch; }

.elig-grid { padding: 0 var(--gutter) 60px var(--gutter); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 3vw, 48px); align-items: start; }
.elig-questions { display: flex; flex-direction: column; }
.elig-question { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-3); flex-wrap: wrap; }
.elig-label { flex: 1 1 200px; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; line-height: 1.25; color: var(--ink); }
.elig-buttons { display: flex; gap: 10px; }
.elig-btn {
  font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 20px; cursor: pointer; transition: all 0.25s ease; color: var(--muted); border: 1px solid rgba(22, 19, 15, 0.28);
}
.elig-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.elig-result {
  padding: 40px 34px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; justify-content: center;
  transition: background 0.4s ease; background: #3A342C;
}

/* ===== Axes (dark) ===== */
.axes-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.axis { display: flex; flex-direction: column; gap: 16px; }
.axis-n { font-weight: 900; font-size: 46px; line-height: 0.85; letter-spacing: -0.04em; color: var(--amber); }
.axis-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; line-height: 1.05; color: var(--cream); }
.axis-items { display: flex; flex-direction: column; gap: 9px; }
.axis-items span { font-size: 15px; line-height: 1.45; color: rgba(244, 241, 235, 0.68); border-top: 1px solid var(--cream-line); padding-top: 9px; }

/* ===== Wall ===== */
.wall-section { padding: 70px var(--gutter) 80px var(--gutter); display: flex; flex-direction: column; gap: 26px; }
.wall-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.rule-flex { flex: 1 1 40px; height: 1px; background: var(--line-4); }
.wall-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wall-item { display: flex; flex-direction: column; gap: 9px; }
.wall-poster { aspect-ratio: 4 / 5; border-radius: 8px; background-size: cover; background-position: top center; clip-path: none !important; }
.wall-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 17px; line-height: 1.15; color: var(--ink); }
.wall-author { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }

/* ===== Newsletter ===== */
.newsletter-section { border-top: 1px solid var(--line); }
.newsletter-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 3.4vw, 50px); align-items: start; }
.newsletter-copy { display: flex; flex-direction: column; gap: 24px; }
.newsletter-list { display: flex; flex-direction: column; }
.newsletter-row { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.newsletter-n { font-weight: 900; font-size: 26px; line-height: 0.9; letter-spacing: -0.03em; color: var(--brick); min-width: 60px; }
.newsletter-label { font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; line-height: 1.3; color: var(--ink); }

.newsletter-form { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.newsletter-input {
  width: 100%; font-family: Archivo, sans-serif; font-size: 19px; color: var(--ink); background: transparent;
  border: none; border-bottom: 2px solid rgba(22, 19, 15, 0.3); padding: 14px 2px; outline: none; transition: border-color 0.3s ease;
}
.newsletter-input::placeholder { color: var(--muted-2); }
.newsletter-input:focus { border-bottom-color: var(--brick); }
.newsletter-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.newsletter-cta {
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 15px 30px; cursor: pointer; background: var(--brick); color: #FFF; transition: background 0.3s ease, color 0.3s ease;
}
.newsletter-cta.sent { background: #2F4238; color: var(--cream); }
.mono-note-sm { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.newsletter-confirm { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: #2F4238; }
.newsletter-confirm[hidden] { display: none; }

.newsletter-side { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.issue-card { background: var(--ink); padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.issue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.issue-no { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: rgba(244, 241, 235, 0.4); }
.issue-list { display: flex; flex-direction: column; gap: 16px; }
.issue-row { display: flex; gap: 16px; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--cream-line); }
.issue-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; padding: 5px 9px;
  white-space: nowrap; min-width: 46px; text-align: center; background: rgba(244, 241, 235, 0.12); color: rgba(244, 241, 235, 0.7);
}
.issue-pill.urgent { background: var(--brick); color: #FFF; }
.issue-title { flex: 1; font-size: 15px; line-height: 1.35; color: rgba(244, 241, 235, 0.82); }
.issue-archives {
  font-family: Archivo, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--cream); border-bottom: 1px solid var(--brick); padding-bottom: 3px; align-self: flex-start; cursor: pointer;
}

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proof-item { border-top: 2px solid var(--brick); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.proof-n { font-weight: 900; font-size: 30px; line-height: 0.9; letter-spacing: -0.03em; color: var(--ink); }
.proof-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }

/* ===== Nous suivre ===== */
.ticker-social .ticker-track { animation-duration: 30s; }
.follow-block { position: relative; display: flex; flex-direction: column; gap: 30px; }

.network-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.network-card {
  display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 24px; cursor: pointer;
  background: transparent; border: 1px solid rgba(22, 19, 15, 0.2);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.network-card:hover { transform: translateY(-5px); }
.network-card.dark { background: var(--ink); border-color: transparent; }
.network-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.network-mark { font-weight: 900; font-size: 34px; line-height: 0.85; letter-spacing: -0.04em; color: var(--brick); }
.network-arrow { font-size: 22px; line-height: 1; color: var(--brick); transition: transform 0.35s ease; }
.network-card:hover .network-arrow { transform: translateX(6px); }
.network-id { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.network-name { font-weight: 800; font-size: 22px; line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase; color: var(--ink); }
.network-handle { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); }
.network-use { font-size: 13.5px; line-height: 1.45; padding-top: 12px; border-top: 1px solid var(--line-3); color: #4B443C; }
.network-card.dark .network-mark, .network-card.dark .network-arrow { color: var(--amber); }
.network-card.dark .network-name { color: var(--cream); }
.network-card.dark .network-handle { color: rgba(244, 241, 235, 0.5); }
.network-card.dark .network-use { border-top-color: rgba(244, 241, 235, 0.16); color: rgba(244, 241, 235, 0.65); }

.ressources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 6px; }
.ressource { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line-4); }
.ressource-n { font-weight: 900; font-size: 26px; line-height: 0.9; letter-spacing: -0.03em; color: var(--brick); }
.ressource-body { display: flex; flex-direction: column; gap: 7px; }
.ressource-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 24px; line-height: 1.1; color: var(--ink); }
.ressource-desc { font-size: 14.5px; line-height: 1.5; color: #4B443C; }
.ressource-cta {
  font-family: Archivo, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--brick); padding-bottom: 3px; align-self: flex-start; cursor: pointer; transition: color 0.3s ease;
}
.ressource-cta:hover { color: var(--brick); }

/* ===== Footer ===== */
.footer { background: var(--ink); padding: 46px var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-brand { gap: 12px; }
.footer-logo { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; color: var(--cream); line-height: 1; }
.footer-address { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(244, 241, 235, 0.5); }
.footer-heading { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--amber); }
.footer-link { font-size: 13.5px; color: rgba(244, 241, 235, 0.5); cursor: pointer; }
.footer-link:hover { color: var(--cream); }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.footer-social span {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(244, 241, 235, 0.55); border-bottom: 1px solid rgba(244, 241, 235, 0.25); padding-bottom: 2px;
  cursor: pointer; transition: color 0.3s ease;
}
.footer-social span:hover { color: var(--amber); }

/* ===== Outils ===== */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.outline-btn-on-brick {
  color: #FFF; border: 1px solid rgba(255, 255, 255, 0.5); padding: 15px 28px;
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; cursor: pointer;
}
.outline-btn-on-brick:hover { background: rgba(255, 255, 255, 0.14); }
.outline-btn-on-dark {
  color: var(--cream); border: 1px solid rgba(244, 241, 235, 0.4); padding: 15px 26px;
  font-family: Archivo, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; cursor: pointer; background: none;
}
.outline-btn-on-dark:hover { background: rgba(244, 241, 235, 0.1); }
.solid-btn-amber {
  display: inline-block; font-family: Archivo, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: var(--amber); padding: 15px 26px; cursor: pointer;
}

.tool-stats-grid { padding: 34px var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-stat-card { background: #FFF; border: 1px solid var(--line-2); padding: 24px; display: flex; flex-direction: column; gap: 14px; opacity: 1 !important; transform: none !important; }
.tool-stat-head { display: flex; align-items: baseline; gap: 12px; }
.tool-stat-n { font-family: 'Instrument Serif', Georgia, serif; font-size: 44px; line-height: 0.9; color: var(--brick); }
.tool-stat-title { margin: 0; font-size: 19px; font-weight: 700; }

.tool-card-desc { font-size: 14.5px; line-height: 1.45; color: var(--ink); margin: 0; }
.tool-btn {
  margin-top: auto; align-self: flex-start;
  font-family: Archivo, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #FFF; background: var(--brick); padding: 12px 18px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s ease; border-radius: 4px;
}
.tool-btn:hover { background: var(--ink); color: #FFF; text-decoration: none; }

.mono-note { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.mono-note-on-dark { color: rgba(244, 241, 235, 0.5); }

.deadline-row { display: flex; gap: 14px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.deadline-row:not(:first-child) { padding-top: 9px; }
.deadline-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; padding: 5px 9px; white-space: nowrap; min-width: 44px; text-align: center;
  background: #EFE9E0; color: #4B443C;
}
.deadline-pill.urgent { background: var(--brick); color: #FFF; }
.deadline-title { font-size: 15px; line-height: 1.35; flex: 1; }

.festival-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.festival-tag { font-size: 13px; color: var(--ink); background: #EFE9E0; padding: 6px 10px; white-space: nowrap; }

.calendar-section { background: #EFE9E0; }
.calendar-card { background: #FFF; border: 1px solid var(--line-2); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
#calendar-rooms { display: flex; flex-direction: column; gap: 10px; }
.calendar-row { display: grid; grid-template-columns: 150px repeat(10, 1fr); gap: 3px; align-items: center; }
.calendar-day-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); text-align: center; }
.calendar-header-row > span:first-child { text-align: left; }
.calendar-room-name { font-size: 15px; font-weight: 600; }
.calendar-slot { height: 20px; }
.calendar-slot.free { background: #2E7D52; }
.calendar-slot.reserved { background: #DED5C8; }
.calendar-legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); }
.legend-swatch { width: 14px; height: 14px; }
.legend-free { background: #2E7D52; }
.legend-reserved { background: #DED5C8; }

/* ===== Positions ===== */
.h1-white { color: #FFF; }
.demandes-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.demande-card { border-top: 3px solid var(--brick); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.demande-n { font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; line-height: 0.9; color: var(--brick); }
.demande-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.demande-desc { margin: 0; font-size: 13.5px; line-height: 1.45; color: #4B443C; }

.position-row { display: flex; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line-3); align-items: center; flex-wrap: wrap; transition: background 0.2s ease; }
.position-row:hover { background: rgba(255, 255, 255, 0.5); }
.position-date { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); min-width: 84px; }
.position-title { margin: 0; flex: 1 1 300px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.position-doc { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--brick); white-space: nowrap; }

/* ===== Soutenir ===== */
.soutenir-head { display: flex; flex-direction: column; gap: 16px; }
.impacts-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.impact-card { background: #FFF; border: 1px solid var(--line-3); display: flex; flex-direction: column; }
.impact-poster { aspect-ratio: 16 / 10; border-radius: 8px; background-size: cover; background-position: center; clip-path: none !important; }
.impact-body { padding: 20px; display: flex; flex-direction: column; gap: 7px; }
.impact-amount { font-family: 'Instrument Serif', Georgia, serif; font-size: 38px; line-height: 0.9; color: var(--brick); }
.impact-title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.impact-desc { margin: 0; font-size: 14px; line-height: 1.5; color: #4B443C; }

.soutenir-cta-band { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 40px; padding-bottom: 40px; }

.info-cards-section { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { background: #FFF; border: 1px solid var(--line-2); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.iban { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 18px; letter-spacing: 0.03em; }
.info-title { margin: 0; font-size: 16.5px; font-weight: 700; }
.info-desc { margin: 0; font-size: 14px; color: #4B443C; }

/* ===================================================================
   Responsive — the source prototype targets a fixed 1280px preview;
   this adds real breakpoints since the implementation ships to the web.
   =================================================================== */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center;
    padding: 14px 16px; gap: 18px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line);
  }
  .rail-spacer { display: none; }
  .rail-nav { flex-direction: row; gap: 16px; }
  .rail-meta, .rail-tagline { display: none; }
  .rail-cta-block { flex-direction: row; align-items: center; gap: 10px; }
  .rail-version { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-poster { order: -1; max-width: 320px; }
  .cineastes-grid { grid-template-columns: 1fr; gap: 40px; }
  .cineaste-1, .cineaste-2 { grid-column: 1 / -1; margin-top: 0; }
  .films-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: 1fr; }
  .path-row { grid-template-columns: 1fr !important; }
  .path-row .mask { width: 140px; }
  .path-row .mask[style*="grid-column"] { grid-column: 1 !important; grid-row: 1 !important; }

  .elig-grid { grid-template-columns: 1fr; }
  .axes-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; }

  .tool-stats-grid { grid-template-columns: 1fr; padding: 24px 20px; }
  .calendar-section, .calendar-card { padding: 20px; }
  .calendar-row { grid-template-columns: 90px repeat(10, 1fr); gap: 2px; }
  .demandes-grid { grid-template-columns: repeat(2, 1fr); }
  .impacts-grid { grid-template-columns: 1fr; }
  .info-cards-section { grid-template-columns: 1fr; }

  .newsletter-grid { grid-template-columns: 1fr; }
  .newsletter-side { margin-top: 0; }
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .network-card { min-height: 0; }
  .ressources-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ===================================================================
   Phone layer — implementation of "ARPi v3 — mobile.dc.html".
   Not a fallback: a distinct layout (sticky top bar, horizontal nav,
   snap carousel, scrolling filter chips) as specified in that file.
   =================================================================== */
@media (max-width: 700px) {
  :root { --pad-x: 18px; }

  /* 16px minimum stops iOS from zooming the viewport on focus */
  .search-input, .newsletter-input { font-size: 16px; }

  [data-hscroll], .chip-scroll, .rail-nav, .films-grid {
    -ms-overflow-style: none; scrollbar-width: none;
  }
  [data-hscroll]::-webkit-scrollbar, .chip-scroll::-webkit-scrollbar,
  .rail-nav::-webkit-scrollbar, .films-grid::-webkit-scrollbar { display: none; }

  /* The giant background words are desktop-only furniture */
  .watermark { display: none; }
  .tilt { animation: none; transform: none; }

  /* --- Top bar --- */
  .rail {
    flex-direction: row; flex-wrap: wrap; align-items: center;
    height: auto; padding: 12px 18px 0 18px; gap: 12px; overflow: visible;
  }
  .rail-brand { flex: 1 1 auto; flex-direction: row; align-items: baseline; gap: 9px; }
  .rail-logo { font-size: 24px; }
  .rail-tagline { display: none; }
  .rail-tagline-short {
    display: block; font-family: 'IBM Plex Mono', monospace; font-size: 9px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
  }
  .rail-spacer, .rail-rule, .rail-login, .rail-version { display: none; }
  .rail-meta { flex-direction: row; align-items: center; gap: 14px; }
  .rail-lang { font-size: 10px; }
  .rail-cta-block { flex-direction: row; }
  .rail-cta { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; color: #FFF; background: var(--brick); padding: 9px 14px; }
  /* min-width:0 lets the strip scroll internally; without it the flex item
     refuses to shrink below its content and drags the whole page wider. */
  .rail-nav {
    order: 5; flex: 1 1 100%; min-width: 0; flex-direction: row; gap: 20px;
    overflow-x: auto; padding: 10px 0; margin: 0 -18px; padding-inline: 18px;
  }
  /* flex-shrink:0 is load-bearing — without it the items compress instead of
     overflowing, their nowrap labels overlap and taps hit the wrong tab. */
  .rail-link {
    flex: 0 0 auto; font-size: 12px; font-weight: 700; white-space: nowrap;
    padding-bottom: 5px; border-bottom: 2px solid transparent; color: var(--muted);
  }
  .rail-link.active { color: var(--brick); border-bottom-color: var(--brick); }

  /* --- Shared mobile section head (replaces the hidden watermarks) --- */
  .m-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
  .m-head-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--brick); white-space: nowrap;
  }
  .m-head-on-dark .m-head-label { color: var(--amber); }
  .m-head-on-dark .rule-flex { background: rgba(244, 241, 235, 0.18); }

  .section-pad { padding: 34px 18px 36px 18px; }

  /* --- Hero --- */
  .hero { display: block; min-height: 0; padding: 26px 18px 30px 18px; }
  /* display:contents flattens the copy into the column so the poster can sit
     between the lede and the button, as the mobile spec has it. */
  .hero-grid { display: flex; flex-direction: column; gap: 20px; }
  .hero-copy { display: contents; }
  .hero-poster { order: 1; max-width: none; width: 100%; box-shadow: none; }
  .m-cta { order: 2; }
  .hero-controls { right: 18px; bottom: 18px; gap: 12px; }
  .hero-arrow { font-size: 28px; padding: 4px 6px; }
  .hero-poster-copy { padding-right: 104px; }
  .hero-poster-copy { padding: 20px; gap: 6px; }
  .h1-brick { font-size: 38px; }
  .lede { font-size: 21px; max-width: none; }
  .serif-title { font-size: 30px; }
  .hero-copy .arrow-cta { display: none; }
  .m-cta {
    display: block; width: 100%; text-align: center; font-family: Archivo, sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--cream); background: var(--ink); padding: 17px 20px; cursor: pointer;
  }
  .ticker-track { animation-duration: 26s; }
  .ticker-social .ticker-track { animation-duration: 24s; }
  .ticker-item { font-size: 11px; }

  /* --- Cinéastes: mask beside the name --- */
  .cineastes-grid { grid-template-columns: 1fr; gap: 22px; }
  .cineaste {
    display: grid; grid-template-columns: 118px 1fr;
    align-items: center; gap: 7px 16px;
  }
  .cineaste-1, .cineaste-2 { margin-top: 0; }
  .cineaste .mask { grid-row: 1 / span 3; align-self: center; width: 118px; aspect-ratio: 1 / 1; }
  .cineaste .name, .cineaste .role, .cineaste .arrow-cta-sm { grid-column: 2; }
  .cineaste .name { font-size: 26px; }
  .cineastes-more { margin-top: 22px; }
  .cineastes-more .outline-btn { width: 100%; }

  /* --- Films: horizontal snap carousel --- */
  .films-band { padding-left: 0; padding-right: 0; }
  .films-band .m-head { padding: 0 18px; }
  /* scroll-padding-inline keeps the snap position clear of the 18px gutter —
     without it the carousel self-scrolls and clips the first poster. */
  .films-grid {
    display: flex; grid-template-columns: none; gap: 14px;
    overflow-x: auto; padding: 0 18px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px;
  }
  .film-item { flex: 0 0 210px; min-width: 0; scroll-snap-align: start; }
  .film-item .mask { aspect-ratio: 1 / 1; }
  .film-title { font-size: 22px; }

  /* --- Stat band --- */
  /* Spec order on mobile: kicker, headline, bars, then the button */
  .section-brick .h2-white { font-size: 32px; }
  .stat-grid { display: flex; flex-direction: column; gap: 20px; }
  .stat-copy { display: contents; }
  .stat-bars { order: 1; }
  .section-brick .solid-btn { order: 2; }
  .stat-pct { font-size: 26px; }
  .bar-fill { height: 10px; }
  .solid-btn { width: 100%; text-align: center; }

  /* --- Paths --- */
  .paths { gap: 0; }
  .path-row {
    grid-template-columns: 1fr !important; gap: 12px;
    padding-bottom: 22px; border-bottom: 1px solid var(--line-2); margin-bottom: 22px;
  }
  .path-row .mask { width: 74px; aspect-ratio: 1 / 1; grid-column: 1 !important; grid-row: auto !important; }
  .path-title { font-size: 22px; line-height: 1; }
  .path-desc { font-size: 18px; }
  .path-cta-arrow { display: none; }
  .path-cta-text {
    display: inline-block; font-family: Archivo, sans-serif; font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink);
    border-bottom: 1px solid var(--brick); padding-bottom: 3px;
  }

  /* --- Listing heads (Annuaire / Catalogue) --- */
  .listing-head { padding: 26px 18px 16px 18px; }
  .listing-head-inner { gap: 16px; }
  .listing-title-row { padding-top: 0; flex-wrap: nowrap; align-items: baseline; }
  .listing-head .h1 { font-size: 34px; }
  .mono-count { font-size: 10.5px; white-space: nowrap; }
  .count-long { display: none; }
  .count-short { display: inline; }
  .chip-scroll { flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .chip-scroll .chip { flex: 0 0 auto; }
  .chip { white-space: nowrap; font-size: 11.5px; font-weight: 700; }
  .toggle-chip { white-space: nowrap; }
  .listing-head-inner .chip-row + .toggle-row { margin-top: 0; justify-content: flex-start; }

  /* --- Annuaire rows --- */
  .listing-body { padding: 6px 18px 44px 18px; }
  .member-row { gap: 12px; padding: 20px 0; }
  .member-mask { width: 96px; aspect-ratio: 4 / 5; }
  .member-info { flex: 1 1 140px; gap: 6px; }
  .member-name { font-size: 26px; }
  .member-films { flex: 1 1 100%; gap: 10px 16px; }
  .member-films span { font-size: 17px; }
  .member-side {
    flex: 1 1 100%; flex-direction: row; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; min-width: 0;
  }

  /* --- Catalogue --- */
  .catalogue-grid { padding: 14px 18px 44px 18px; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .film-state { font-size: 9px; padding: 5px 8px; }
  .film-card-title { font-size: 19px; }
  .film-card-meta, .film-card-author { font-size: 9.5px; }

  /* --- Adhérer --- */
  .adhesion-head { padding: 26px 18px 24px 18px; }
  .adhesion-head-inner { padding-top: 0; max-width: none; gap: 14px; }
  .elig-grid { padding: 0 18px 30px 18px; gap: 26px; }
  .elig-question { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-3); border-bottom: none; }
  .elig-label { flex: none; font-size: 20px; }
  .elig-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .elig-btn { text-align: center; font-weight: 700; padding: 15px 10px; }
  .elig-result { padding: 28px 22px; min-height: 0; gap: 14px; }
  .elig-result .h2-white { font-size: 30px; }
  .elig-result .serif-body { font-size: 18px; }
  .solid-btn-white { width: 100%; text-align: center; }
  .axes-grid { gap: 28px; }
  .axis { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 12px; }
  .axis-n { font-size: 32px; }
  .axis-title { font-size: 26px; }
  .axis-items { grid-column: 1 / -1; margin-top: 6px; }
  .wall-section { padding: 32px 18px 40px 18px; gap: 18px; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wall-title { font-size: 16px; }

  /* --- Newsletter --- */
  .newsletter-section { padding: 26px 18px 28px 18px; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 22px; }
  .newsletter-copy { gap: 20px; }
  .newsletter-section .h2-brick { font-size: 36px; }
  .newsletter-n { font-size: 22px; min-width: 44px; }
  .newsletter-label { font-size: 18px; }
  .newsletter-form { gap: 12px; }
  .newsletter-actions { display: contents; }
  .newsletter-cta { order: 2; width: 100%; text-align: center; font-weight: 700; padding: 17px 20px; }
  .newsletter-confirm { order: 3; }
  .newsletter-actions .mono-note-sm { order: 4; line-height: 1.5; }
  .newsletter-side { margin-top: 0; gap: 22px; }
  .issue-card { padding: 22px 20px; gap: 14px; }
  .issue-title { font-size: 14px; }
  .proof-n { font-size: 22px; white-space: nowrap; }
  .proof-label { font-size: 9px; }

  /* --- Nous suivre --- */
  .follow-block { gap: 18px; }
  .network-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .network-card { min-height: 168px; padding: 16px; gap: 10px; }
  .network-card:hover { transform: none; }
  .network-arrow { display: none; }
  .network-mark { font-size: 26px; }
  .network-name { font-size: 17px; }
  .network-handle { font-size: 10px; }
  .network-use { font-size: 12px; padding-top: 10px; }
  .ressources-grid { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .ressource { gap: 14px; padding: 18px 0; }
  .ressource-n { font-size: 22px; }
  .ressource-title { font-size: 21px; }
  .ressource-desc { font-size: 14px; }

  /* --- Outils / Positions / Soutenir --- */
  .tool-stats-grid { padding: 24px 18px; grid-template-columns: 1fr; }
  .calendar-section { padding: 34px 18px; }
  .calendar-card { padding: 18px; }
  .calendar-row { grid-template-columns: 88px repeat(10, 1fr); gap: 2px; }
  .calendar-room-name { font-size: 13px; }
  .solid-btn-amber { width: 100%; text-align: center; }
  .demandes-grid { grid-template-columns: 1fr; gap: 0; }
  .demande-card { border-top: none; border-bottom: 1px solid var(--line-2); padding: 16px 0; }
  .position-row { gap: 6px 14px; }
  .position-title { flex: 1 1 100%; order: 3; font-size: 16px; }
  .impacts-grid { grid-template-columns: 1fr; }
  .soutenir-cta-band { padding: 28px 18px; }
  .soutenir-cta-band .solid-btn-amber, .soutenir-cta-band .outline-btn-on-dark { width: 100%; text-align: center; }
  .info-cards-section { grid-template-columns: 1fr; }

  /* --- Footer --- */
  .footer { padding: 34px 18px 40px 18px; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo { font-size: 26px; }
}
