/* =========================================================
   Les Échappées — landing page statique
   ========================================================= */

@font-face {
  font-family: "Dry Brush";
  src: url("../fonts/dry-brush.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1a1a1a;
  --charcoal: #232323;
  --text: #555;
  --muted: #777;
  --line: #e4e4e4;
  --grey: #f4f4f4;
  --white: #fff;
  --accent: #e8c547; /* jaune sacoche, repris des photos */
  --font: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --brush: "Dry Brush", "Roboto Condensed", Impact, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
strong { color: var(--ink); font-weight: 700; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
}
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }

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

.section { padding-block: var(--section); }
.section--grey { background: var(--grey); }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 300;
}
.kicker {
  display: block;
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--white); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 48px;
  padding: .8em 1.5em;
  border: 1px solid transparent;
  font: 700 .82rem/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--accent); }
.btn--ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: #111;
  isolation: isolate;
}
.hero__media, .hero__media img, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.25) 40%, rgba(0,0,0,.55));
}
.hero__content {
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(var(--nav-h) + 40px);
  text-align: center;
}
.hero__presents, .hero__by {
  margin: 0;
  color: var(--white);
  font-size: clamp(.78rem, 1.6vw, 1rem);
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__title {
  margin: .02em 0 0;
  padding: .3em .15em .08em; /* garde les accents dans la zone masquée */
  color: var(--white);
  font-family: var(--brush);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 8.5rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__by { font-size: clamp(.72rem, 1.4vw, .9rem); letter-spacing: .22em; }
.hero__cta { margin-top: clamp(28px, 5vw, 56px); }

.fade-up { animation: fadeUp .9s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: calc(var(--nav-h) + 18px);
  width: 22px; height: 36px; margin-left: -11px;
  border: 2px solid rgba(255,255,255,.7); border-radius: 12px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--white);
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  margin-top: calc(-1 * var(--nav-h));
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.18);
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s;
}
.site-nav.is-stuck {
  background: rgba(255,255,255,.97);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,.05);
}
@supports (backdrop-filter: blur(8px)) {
  .site-nav.is-stuck { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav__brand {
  font-family: var(--brush);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.site-nav.is-stuck .site-nav__brand { opacity: 1; pointer-events: auto; }
.site-nav__links {
  display: flex; gap: clamp(16px, 2.6vw, 36px);
  margin: 0 auto 0 0; padding: 0; list-style: none;
}
.site-nav__links a {
  position: relative;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  padding-block: 8px;
}
.site-nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: currentColor; transition: right .3s var(--ease);
}
.site-nav__links a:hover::after, .site-nav__links a[aria-current="true"]::after { right: 0; }
.site-nav .btn { min-height: 40px; padding: .6em 1.1em; font-size: .75rem; }
.site-nav:not(.is-stuck) .site-nav__cta { border-color: rgba(255,255,255,.8); color: var(--white); background: transparent; }
.site-nav:not(.is-stuck) .site-nav__cta:hover { background: var(--white); color: var(--charcoal); }
.site-nav.is-stuck .site-nav__cta { background: var(--charcoal); color: var(--white); }

.site-nav__toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.site-nav__toggle span, .site-nav__toggle span::before, .site-nav__toggle span::after {
  display: block; width: 24px; height: 2px; margin: 0 auto;
  background: currentColor; position: relative; transition: transform .3s, background-color .3s;
}
.site-nav__toggle span::before, .site-nav__toggle span::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle span::before { top: -7px; }
.site-nav__toggle span::after { top: 7px; }
.site-nav.is-open .site-nav__toggle span { background: transparent; }
.site-nav.is-open .site-nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav__toggle { display: block; margin-left: auto; }
  .site-nav.is-open .site-nav__brand { opacity: 1; pointer-events: auto; }
  .site-nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 24px;
    background: var(--white); color: var(--ink);
    box-shadow: 0 16px 24px rgba(0,0,0,.08);
    display: none;
  }
  .site-nav.is-open .site-nav__menu { display: block; }
  .site-nav.is-open { background: var(--white); color: var(--ink); }
  .site-nav__links { flex-direction: column; gap: 0; margin: 0 0 16px; }
  .site-nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav__links a::after { display: none; }
  .site-nav .site-nav__cta, .site-nav:not(.is-stuck) .site-nav__cta { width: 100%; justify-content: center; background: var(--charcoal); color: var(--white); border-color: var(--charcoal); min-height: 48px; }
}
@media (min-width: 861px) {
  .site-nav__menu { display: flex; align-items: center; flex: 1; gap: 24px; }
}

/* ---------- Synopsis ---------- */
.split {
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.synopsis__tagline { margin: 0; color: var(--ink); }
.synopsis__text .lead strong { font-weight: 700; }
.synopsis .btn-row { margin-top: 32px; }

/* ---------- Témoignages ---------- */
.quotes {
  position: relative;
  color: var(--white);
  background: #222 url("../img/temoignages-960.webp") center / cover no-repeat;
  isolation: isolate;
}
@media (min-width: 961px) {
  .quotes { background-image: url("../img/temoignages-1920.webp"); background-attachment: fixed; }
}
@media (hover: none) { .quotes { background-attachment: scroll; } }
.quotes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.55); }
.quotes__grid {
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) { .quotes__grid { grid-template-columns: 1fr; } }
.quote { margin: 0; }
.quote svg { width: 34px; height: 34px; fill: var(--accent); margin-bottom: 18px; }
.quote p {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  font-style: italic; font-weight: 300; line-height: 1.6;
}
.quote strong { color: var(--white); font-weight: 700; }
.quote cite {
  display: block; margin-top: 8px;
  font-style: normal; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8);
}

/* ---------- Rencontres ---------- */
.meet__head {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  align-items: center;
}
@media (max-width: 860px) { .meet__head { grid-template-columns: 1fr; } }
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 300; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}

/* Mosaïque : 12 colonnes, cellules au format paysage (3:2 et 2:1) */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: calc((100vw - 11 * 4px) / 12 * 2);
  grid-auto-flow: dense;
  gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.gallery .g-big  { grid-column: span 6; grid-row: span 2; } /* 3:2 */
.gallery .g-wide { grid-column: span 8; grid-row: span 2; } /* 2:1 */
.gallery .g-mid  { grid-column: span 4; }                   /* 2:1 */
.gallery .g-sm   { grid-column: span 3; }                   /* 3:2 */
.gallery a {
  display: block; position: relative; overflow: hidden;
  height: 100%; background: #ddd;
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 2px; }
  .gallery li, .gallery .g-sm, .gallery .g-mid { grid-column: span 1; grid-row: auto; }
  .gallery .g-big, .gallery .g-wide { grid-column: span 2; grid-row: auto; }
  .gallery a { height: auto; aspect-ratio: 3 / 2; }
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .4s;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); filter: brightness(.85); }

/* ---------- Fiche technique ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  margin-bottom: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.facts dd { margin: 0; color: var(--ink); line-height: 1.5; }
.facts dd a { text-underline-offset: 3px; }
.facts .facts__wide { grid-column: 1 / -1; }
.credits { columns: 2 240px; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.credits li { break-inside: avoid; margin-bottom: 6px; }
.credits span { color: var(--muted); }

/* ---------- Projections ---------- */
.tour { background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden; }
.tour h2, .tour strong { color: var(--white); }
.tour .kicker { color: var(--accent); }
.tour__intro { max-width: 760px; }
.tour__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(40px, 6vw, 72px) 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 700px) { .tour__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tour__stats div { padding: clamp(24px, 4vw, 40px) 16px; background: var(--ink); text-align: center; }
.tour__stats .stat__num { color: var(--white); }
.tour__stats .stat__label { color: rgba(255,255,255,.65); }

.marquee {
  display: flex; overflow: hidden;
  margin-inline: calc(-1 * var(--gutter));
  padding-block: 18px;
  border-block: 1px solid rgba(255,255,255,.12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; flex: none; gap: 0;
  margin: 0; padding: 0; list-style: none;
  animation: marquee 90s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  flex: none;
  padding-inline: 22px;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 300; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.85); white-space: nowrap;
}
.marquee__track li::after { content: "•"; margin-left: 44px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee { display: none; } }

.tour__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
}
@media (max-width: 960px) { .tour__list { grid-template-columns: 1fr; } }
.year-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  color: var(--white); font-size: 2rem; font-weight: 300;
}
.year-title span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.6); }
.screenings { margin: 0; padding: 0; list-style: none; }
.screenings li {
  display: grid; grid-template-columns: 52px 1fr; gap: 0 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  line-height: 1.35;
}
.screenings time {
  grid-row: span 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); padding-top: 3px;
}
.screenings strong { font-weight: 500; }
.screenings span { font-size: .88rem; color: rgba(255,255,255,.6); }

.js .tour__list.is-collapsed { max-height: 620px; overflow: hidden; }
.js .tour__list.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px;
  background: linear-gradient(to bottom, rgba(26,26,26,0), var(--ink));
  pointer-events: none;
}
.tour__more { display: none; margin-top: 32px; text-align: center; }
.js .tour__more { display: block; }
.tour__more .btn { color: var(--white); }
.tour__more .btn:hover, .tour__more .btn:focus-visible { color: var(--charcoal); }
.tour__outro { margin-top: clamp(48px, 7vw, 88px); text-align: center; }
.tour__outro p { max-width: 640px; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact__layout { display: grid; gap: clamp(32px, 5vw, 56px); }
.contact__intro { max-width: 760px; }
.contact__cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) { .contact__cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.07); }
.card svg { width: 28px; height: 28px; fill: var(--ink); margin-bottom: 6px; }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: .95rem; }
.card .card__link { margin-top: auto; padding-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }
.contact__direct a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__direct svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(255,255,255,.65); font-size: .95rem; }
.footer__grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: clamp(56px, 8vw, 88px);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .14em; margin-bottom: 18px; }
.footer__brand { font-family: var(--brush); font-size: 2.4rem; line-height: 1; color: var(--white); text-transform: uppercase; letter-spacing: 0; }
.partners { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.partners a { display: block; opacity: .85; transition: opacity .25s, transform .25s var(--ease); }
.partners a:hover { opacity: 1; }
.partners a:hover { transform: translateY(-2px); }
.partners img { height: 30px; width: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials .btn { color: var(--white); border-color: rgba(255,255,255,.35); }
.socials .btn:hover, .socials .btn:focus-visible { color: var(--charcoal); background: var(--white); border-color: var(--white); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
}
.footer__bottom a { color: rgba(255,255,255,.85); text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10,10,10,.985); color: var(--white);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; padding: 64px 16px 56px; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-width: min(92vw, 1600px); max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-size: .9rem; color: rgba(255,255,255,.75); text-align: center; }
.lightbox button {
  position: absolute;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--white); cursor: pointer;
  transition: background-color .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 26px; left: 24px; font-size: .8rem; letter-spacing: .14em; color: rgba(255,255,255,.6); }
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Page simple (mentions légales) ---------- */
.page-simple { max-width: 760px; padding-block: 64px 96px; }
.page-simple h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-simple h2 { font-size: 1.15rem; margin-top: 2em; }
.page-simple__back { display: inline-block; margin-bottom: 32px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; text-decoration: none; }

/* =========================================================
   Touches de fun
   ========================================================= */

/* 1. Titre révélé comme un coup de pinceau */
.brush-in {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 58%);
          mask-image: linear-gradient(90deg, #000 40%, transparent 58%);
  -webkit-mask-size: 270% 100%;
          mask-size: 270% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  animation: brushIn 1.6s cubic-bezier(.65, .05, .3, 1) .35s forwards;
}
@keyframes brushIn {
  0%   { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: translateX(-10px); }
  100% { -webkit-mask-position: 0 0;    mask-position: 0 0;    transform: none; }
}

/* 2. La route qui se trace au fil du scroll (grands écrans uniquement) */
.ride { display: none; }
@media (min-width: 1280px) and (pointer: fine) {
  .ride {
    display: block;
    position: fixed; top: 0; left: 10px; z-index: 40;
    width: 56px; height: 100vh;
    pointer-events: none;
    opacity: 0; transition: opacity .5s ease;
  }
  .ride.is-visible { opacity: 1; }
}
.ride__road { position: absolute; inset: 0; overflow: visible; }
.ride__track { fill: none; stroke: rgba(128,128,128,.4); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 8; }
.ride__progress { fill: none; stroke: #e0b52e; stroke-width: 3; stroke-linecap: round; }
.ride__marks circle { fill: var(--white); stroke: rgba(128,128,128,.6); stroke-width: 2; transition: fill .3s, stroke .3s; }
.ride__marks circle.is-passed { fill: #e0b52e; stroke: #e0b52e; }
.ride__bike {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  will-change: transform;
}
.ride__bike svg { width: 24px; height: 18px; overflow: visible; }
.ride__bike circle, .ride__bike path { fill: none; stroke: var(--charcoal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ride__bike .wheel path { stroke-width: 1; opacity: .6; }
.ride__bike .wheel { transform-box: fill-box; transform-origin: center; }
.ride.is-rolling .wheel { animation: spin .5s linear infinite; }
.ride.is-rolling.is-up .wheel { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 4. Cartes contact : un tour de roue, un coup de pédale */
.card > svg { transition: transform .2s; }
.card:hover > svg, .card:focus-visible > svg { animation: wheelTurn .7s cubic-bezier(.3, .7, .3, 1); }
@keyframes wheelTurn { to { transform: rotate(360deg); } }
.card .arrow { display: inline-block; }
.card:hover .arrow, .card:focus-visible .arrow { animation: pedal .7s ease-out forwards; }
@keyframes pedal {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(7px); }
  45%  { transform: translateX(5px); }
  75%  { transform: translateX(12px); }
  100% { transform: translateX(10px); }
}

/* Bonus : soulignement au pinceau quand le compteur arrive au bout */
.stat__num { position: relative; display: inline-block; isolation: isolate; }
.stat__num::after {
  content: "";
  position: absolute; left: -8%; right: -8%; bottom: -.04em; z-index: -1;
  height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 14C30 9 70 6 120 7s60 1 76 3l-2 6c-30-3-70-3-110-1S20 19 6 20z' fill='%23e8c547'/%3E%3Cpath d='M20 19c40-2 90-3 150-1' stroke='%23e8c547' stroke-width='1.5' fill='none' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .55s cubic-bezier(.65, .05, .3, 1);
}
.stat__num.is-done::after { transform: scaleX(1); }
