/* ---------- Design tokens ---------- */
/* Accent hues (349 = pink, 234 = blue) come from the official logo (Drive, Communication/Logo/logo_Caropoliteam.png),
   sampled at rgb(198,93,149) and rgb(33,146,197) and converted to OKLCH. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.16 0.02 40);
  --card-bg: oklch(0.20 0.02 40);
  --teaser-bg: oklch(0.20 0.04 349);
  --border: oklch(0.28 0.02 40);
  --border-2: oklch(0.5 0.01 60);
  --text-primary: oklch(0.97 0.01 60);
  --text-secondary: oklch(0.75 0.01 60);
  --accent-pink: oklch(0.623 0.148 349);
  --accent-blue: oklch(0.624 0.122 234);
  --accent-pink-text: var(--accent-pink);
  --accent-blue-text: var(--accent-blue);
  --accent-pink-surface: oklch(0.561 0.148 349);
  --on-accent: oklch(0.97 0.01 60);
  --on-accent-alt: oklch(0.16 0.02 40);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --hero-glow:
    radial-gradient(circle at 75% 20%, oklch(0.3 0.08 349 / 0.5), transparent 60%),
    radial-gradient(circle at 15% 80%, oklch(0.3 0.07 234 / 0.4), transparent 55%);
  --tex-route: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20300%22%3E%20%3Cpath%20d%3D%22M20%20220%20C%2080%20150%2C%20120%20240%2C%20180%20120%20C%20220%2060%2C%20260%20180%2C%20320%20100%20C%20350%2070%2C%20370%2090%2C%20380%2080%22%20fill%3D%22none%22%20stroke%3D%22%23c65d95%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%20%3Cpath%20d%3D%22M20%20260%20C%20100%20240%2C%20160%20270%2C%20220%20235%20C%20280%20205%2C%20330%20250%2C%20380%20220%22%20fill%3D%22none%22%20stroke%3D%22%23c65d95%22%20stroke-width%3D%222%22%20stroke-dasharray%3D%2210%208%22%20stroke-linecap%3D%22round%22%20opacity%3D%220.55%22/%3E%20%3Ccircle%20cx%3D%22380%22%20cy%3D%2280%22%20r%3D%226%22%20fill%3D%22%23c65d95%22/%3E%20%3C/svg%3E");
  --tex-contour: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20300%22%3E%20%3Cpath%20d%3D%22M0%2060%20Q%20100%2040%2C%20200%2060%20T%20400%2060%22%20fill%3D%22none%22%20stroke%3D%22%232192c5%22%20stroke-width%3D%222.5%22%20opacity%3D%220.9%22/%3E%20%3Cpath%20d%3D%22M0%20100%20Q%20100%2050%2C%20200%20100%20T%20400%20100%22%20fill%3D%22none%22%20stroke%3D%22%232192c5%22%20stroke-width%3D%222.5%22%20opacity%3D%220.75%22/%3E%20%3Cpath%20d%3D%22M0%20140%20Q%20100%2060%2C%20200%20140%20T%20400%20140%22%20fill%3D%22none%22%20stroke%3D%22%232192c5%22%20stroke-width%3D%222.5%22%20opacity%3D%220.6%22/%3E%20%3Cpath%20d%3D%22M0%20180%20Q%20100%2070%2C%20200%20180%20T%20400%20180%22%20fill%3D%22none%22%20stroke%3D%22%232192c5%22%20stroke-width%3D%222.5%22%20opacity%3D%220.45%22/%3E%20%3Cpath%20d%3D%22M0%20220%20Q%20100%2080%2C%20200%20220%20T%20400%20220%22%20fill%3D%22none%22%20stroke%3D%22%232192c5%22%20stroke-width%3D%222.5%22%20opacity%3D%220.3%22/%3E%20%3C/svg%3E");
  --tex-water: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20300%22%3E%20%3Ccircle%20cx%3D%22320%22%20cy%3D%2270%22%20r%3D%228%22%20fill%3D%22%23c65d95%22%20opacity%3D%220.9%22/%3E%20%3Cpath%20d%3D%22M0%20180%20Q%2050%20170%2C%20100%20180%20T%20200%20180%20T%20300%20180%20T%20400%20180%22%20fill%3D%22none%22%20stroke%3D%22%23c65d95%22%20stroke-width%3D%222.5%22%20opacity%3D%220.7%22/%3E%20%3Cpath%20d%3D%22M0%20210%20Q%2050%20198%2C%20100%20210%20T%20200%20210%20T%20300%20210%20T%20400%20210%22%20fill%3D%22none%22%20stroke%3D%22%23c65d95%22%20stroke-width%3D%222.5%22%20opacity%3D%220.55%22/%3E%20%3Cpath%20d%3D%22M0%20240%20Q%2050%20226%2C%20100%20240%20T%20200%20240%20T%20300%20240%20T%20400%20240%22%20fill%3D%22none%22%20stroke%3D%22%23c65d95%22%20stroke-width%3D%222.5%22%20opacity%3D%220.4%22/%3E%20%3Cpath%20d%3D%22M0%20270%20Q%2050%20255%2C%20100%20270%20T%20200%20270%20T%20300%20270%20T%20400%20270%22%20fill%3D%22none%22%20stroke%3D%22%23c65d95%22%20stroke-width%3D%222.5%22%20opacity%3D%220.3%22/%3E%20%3C/svg%3E");
}

:root {
  color-scheme: light;
  --bg: oklch(0.97 0.014 60);
  --card-bg: oklch(0.94 0.016 60);
  --teaser-bg: oklch(0.94 0.025 349);
  --border: oklch(0.9 0.014 60);
  --border-2: oklch(0.6 0.12 349);
  --text-primary: oklch(0.22 0.02 50);
  --text-secondary: oklch(0.42 0.02 50);
  --accent-pink: oklch(0.623 0.148 349);
  --accent-blue: oklch(0.624 0.122 234);
  --accent-pink-text: oklch(0.538 0.148 349);
  --accent-blue-text: oklch(0.509 0.122 234);
  --accent-pink-surface: oklch(0.561 0.148 349);
  --on-accent: oklch(0.98 0.01 60);
  --on-accent-alt: oklch(0.22 0.02 50);
  --hero-glow: radial-gradient(circle at 75% 15%, oklch(0.85 0.1 349 / 0.35), transparent 60%);
  --tex-route: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20300%22%3E%20%3Cpath%20d%3D%22M20%20220%20C%2080%20150%2C%20120%20240%2C%20180%20120%20C%20220%2060%2C%20260%20180%2C%20320%20100%20C%20350%2070%2C%20370%2090%2C%20380%2080%22%20fill%3D%22none%22%20stroke%3D%22%23a9437c%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%20%3Cpath%20d%3D%22M20%20260%20C%20100%20240%2C%20160%20270%2C%20220%20235%20C%20280%20205%2C%20330%20250%2C%20380%20220%22%20fill%3D%22none%22%20stroke%3D%22%23a9437c%22%20stroke-width%3D%222%22%20stroke-dasharray%3D%2210%208%22%20stroke-linecap%3D%22round%22%20opacity%3D%220.55%22/%3E%20%3Ccircle%20cx%3D%22380%22%20cy%3D%2280%22%20r%3D%226%22%20fill%3D%22%23a9437c%22/%3E%20%3C/svg%3E");
  --tex-contour: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20300%22%3E%20%3Cpath%20d%3D%22M0%2060%20Q%20100%2040%2C%20200%2060%20T%20400%2060%22%20fill%3D%22none%22%20stroke%3D%22%23006fa0%22%20stroke-width%3D%222.5%22%20opacity%3D%220.9%22/%3E%20%3Cpath%20d%3D%22M0%20100%20Q%20100%2050%2C%20200%20100%20T%20400%20100%22%20fill%3D%22none%22%20stroke%3D%22%23006fa0%22%20stroke-width%3D%222.5%22%20opacity%3D%220.75%22/%3E%20%3Cpath%20d%3D%22M0%20140%20Q%20100%2060%2C%20200%20140%20T%20400%20140%22%20fill%3D%22none%22%20stroke%3D%22%23006fa0%22%20stroke-width%3D%222.5%22%20opacity%3D%220.6%22/%3E%20%3Cpath%20d%3D%22M0%20180%20Q%20100%2070%2C%20200%20180%20T%20400%20180%22%20fill%3D%22none%22%20stroke%3D%22%23006fa0%22%20stroke-width%3D%222.5%22%20opacity%3D%220.45%22/%3E%20%3Cpath%20d%3D%22M0%20220%20Q%20100%2080%2C%20200%20220%20T%20400%20220%22%20fill%3D%22none%22%20stroke%3D%22%23006fa0%22%20stroke-width%3D%222.5%22%20opacity%3D%220.3%22/%3E%20%3C/svg%3E");
  --tex-water: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20400%20300%22%3E%20%3Ccircle%20cx%3D%22320%22%20cy%3D%2270%22%20r%3D%228%22%20fill%3D%22%23a9437c%22%20opacity%3D%220.9%22/%3E%20%3Cpath%20d%3D%22M0%20180%20Q%2050%20170%2C%20100%20180%20T%20200%20180%20T%20300%20180%20T%20400%20180%22%20fill%3D%22none%22%20stroke%3D%22%23a9437c%22%20stroke-width%3D%222.5%22%20opacity%3D%220.7%22/%3E%20%3Cpath%20d%3D%22M0%20210%20Q%2050%20198%2C%20100%20210%20T%20200%20210%20T%20300%20210%20T%20400%20210%22%20fill%3D%22none%22%20stroke%3D%22%23a9437c%22%20stroke-width%3D%222.5%22%20opacity%3D%220.55%22/%3E%20%3Cpath%20d%3D%22M0%20240%20Q%2050%20226%2C%20100%20240%20T%20200%20240%20T%20300%20240%20T%20400%20240%22%20fill%3D%22none%22%20stroke%3D%22%23a9437c%22%20stroke-width%3D%222.5%22%20opacity%3D%220.4%22/%3E%20%3Cpath%20d%3D%22M0%20270%20Q%2050%20255%2C%20100%20270%20T%20200%20270%20T%20300%20270%20T%20400%20270%22%20fill%3D%22none%22%20stroke%3D%22%23a9437c%22%20stroke-width%3D%222.5%22%20opacity%3D%220.3%22/%3E%20%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  transition: background .35s ease;
}

a { color: inherit; text-decoration: none; }

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

h1, h2 {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-primary);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.accent { color: var(--accent-pink-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.btn-accent {
  background: var(--accent-pink-surface);
  color: var(--on-accent);
}

.btn-outline {
  border-color: var(--border-2);
  color: var(--text-primary);
  font-weight: 700;
}

.btn-lg { font-weight: 800; padding: 16px 30px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn-accent:hover { background: color-mix(in oklch, var(--accent-pink-surface) 88%, black); }
  .btn-outline:hover { border-color: var(--accent-blue-text); }
}

.btn:active,
.hero-badge:active { transform: scale(0.97); }
.menu-toggle:active { transform: scale(0.96); }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  transition: border-color .35s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
  flex: none;
}

.nav-logo-icon { width: 28px; height: 28px; display: block; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  justify-content: center;
  min-width: 260px;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text-primary); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  flex-wrap: wrap;
}

.nav-actions .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: 600 12px/1 Inter, sans-serif;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.theme-toggle:active { transform: scale(.96); }
.theme-toggle:hover { background: var(--card-bg); }
.theme-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent-blue); }
:root[data-theme="dark"] .theme-dot { background: var(--accent-pink); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform 200ms var(--ease-out); }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 48px 70px;
  background: var(--hero-glow);
}

.hero-home,
.hero-sub.hero-trail,
.hero-sub.hero-guinguette,
.hero-sub.hero-cyclisme,
.hero-sub.hero-partner,
.hero-sub.hero-photos,
.hero-sub.hero-shop {
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero-home { min-height: min(760px, calc(100svh - 82px)); }

.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 29%;
  margin: 0;
  overflow: hidden;
}

.hero-media picture,
.hero-photo-image { display: block; width: 100%; height: 100%; }

.hero-photo-image { object-fit: cover; filter: brightness(1.14) contrast(1.04) saturate(1.05); }

.hero-trail .hero-media picture,
.hero-trail .hero-photo-image {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 561px) {
  .hero-trail .hero-media picture {
    transform: translateY(var(--trail-parallax, 0px)) scale(1.025);
  }
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 82%, transparent) 13%, color-mix(in oklch, var(--bg) 42%, transparent) 38%, transparent 76%), linear-gradient(0deg, color-mix(in oklch, var(--bg) 20%, transparent), transparent 45%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; width: min(100%, 900px); }
.hero-home .hero-content { width: min(70%, 920px); }

/* Entrance : badge → titre → sous-titre → CTA, en cascade. CSS pur, une fois au chargement. */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: hero-rise 420ms var(--ease-out) backwards; }
  .hero-content > :nth-child(1) { animation-delay: 40ms; }
  .hero-content > :nth-child(2) { animation-delay: 120ms; }
  .hero-content > :nth-child(3) { animation-delay: 200ms; }
  .hero-content > :nth-child(4) { animation-delay: 280ms; }
  .hero-content > :nth-child(n+5) { animation-delay: 340ms; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--accent-blue-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-home .hero-kicker { color: var(--text-primary); }
.hero-home .hero-title { font-size: clamp(64px, 9vw, 132px); line-height: .84; letter-spacing: -.025em; }
.hero-home .hero-title .accent { color: var(--accent-pink); }
.hero-home .hero-subtitle { max-width: 540px; }

.hero-trail .accent { color: var(--accent-pink-text); }
.hero-trail .hero-kicker { color: var(--accent-blue-text); }
.hero-cyclisme .hero-kicker { color: var(--accent-pink-text); }
.hero-guinguette .hero-media::after { background: linear-gradient(90deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 80%, transparent) 15%, color-mix(in oklch, var(--bg) 36%, transparent) 42%, transparent 78%), linear-gradient(0deg, color-mix(in oklch, var(--bg) 15%, transparent), transparent 45%); }
.hero-trail .hero-photo-image { object-position: 52% center; }
.hero-guinguette .hero-photo-image { object-position: center 42%; }
.hero-cyclisme .hero-photo-image { object-position: center 48%; }
.hero-shop .hero-photo-image { object-position: center 30%; }

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-accent-alt);
  background: var(--accent-blue);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero-badge:hover { background: color-mix(in oklch, var(--accent-blue) 88%, black); transform: translateY(-1px); }
}

.hero-title {
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -1px;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 26px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
  padding: 26px 48px;
}

.impact-strip > div { display: flex; align-items: baseline; gap: 14px; padding: 0 24px; border-left: 1px solid var(--border); }
.impact-strip > div:first-child { padding-left: 0; border-left: 0; }
.impact-strip strong { font: 900 clamp(42px, 5vw, 70px)/.9 'Big Shoulders', sans-serif; color: var(--accent-blue-text); white-space: nowrap; }
.impact-strip span { max-width: 170px; color: var(--text-secondary); font-size: 12px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }

/* ---------- Event ticker ---------- */
.ticker {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-item {
  flex: 1;
  min-width: 200px;
  padding: 26px 48px;
  border-right: 1px solid var(--border);
  transition: background-color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ticker-item:hover { background: var(--card-bg); }
  .ticker-item:hover .ticker-title { color: var(--accent-pink-text); }
}

.ticker-item:active { background: var(--card-bg); }

.ticker-item:last-child { border-right: none; }

.ticker-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue-text);
}

.ticker-title {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-top: 6px;
  transition: color 160ms var(--ease-out);
}

.tex-route { background-color: var(--card-bg); background-image: var(--tex-route); background-size: cover; background-position: center; }
.tex-contour { background-color: var(--card-bg); background-image: var(--tex-contour); background-size: cover; background-position: center; }
.tex-water { background-color: var(--card-bg); background-image: var(--tex-water); background-size: cover; background-position: center; }

/* ---------- Guinguette teaser ---------- */
.teaser {
  padding: 70px 48px;
  background: var(--teaser-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.teaser-text { max-width: 560px; }

.teaser-title { font-size: 52px; line-height: 1; margin-top: 0; }

.teaser-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 18px;
  line-height: 1.5;
}

.teaser-reverse { flex-direction: row-reverse; }
.teaser-plain { background: var(--bg); }

.event-stats {
  display: flex;
  gap: 32px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ---------- Stat bar (sous-page hero, faits clés en premier) ---------- */
.stat-bar { padding: 0 48px; }

.event-stats-bar {
  justify-content: center;
  gap: 64px;
  margin-top: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.event-stat-value {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 58px);
  color: var(--accent-blue-text);
  line-height: 1;
}

.event-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-pink-text);
  margin-top: 24px;
}

.link-arrow::after {
  content: "→";
  transition: transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { transform: translateX(4px); }
}

.teaser-photo {
  aspect-ratio: 4 / 3;
  width: min(46vw, 560px);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 0;
}

.teaser-photo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
}

.teaser-photo-figure {
  width: min(50%, 560px);
  flex: none;
  margin: 0;
}

.teaser-photo-figure picture { display: block; }

/* ---------- Seasons (cyclisme : route / cyclo-cross côte à côte) ---------- */
.seasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.season-panel { padding: 60px 48px; }
.season-panel-pink { background: var(--teaser-bg); }
.season-panel-blue { background: var(--bg); border-left: 1px solid var(--border); }
.season-panel-inner { max-width: 420px; }

.season-panel .teaser-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 24px;
}

.season-panel .teaser-photo-figure { width: min(100%, 460px); }
.season-panel .teaser-photo-figure .teaser-photo-image { aspect-ratio: 3 / 2; }

/* ---------- Association ---------- */
.about {
  padding: 70px 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about h2 { font-size: 40px; margin-bottom: 20px; }

.about-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
}

.about-desc + .about-desc { margin-top: 14px; }

.about-board {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 24px;
}

.about-board-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue-text);
  margin-bottom: 14px;
}

.about-board-item {
  font-size: 15px;
  color: var(--text-primary);
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.about-board-item:first-of-type { border-top: none; }

.about-board-role {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* « Un coup de main ? » : bandeau d'appel, distinct de « Qui sommes-nous ? » qui le précède. */
#association {
  background: var(--teaser-bg);
  grid-template-columns: 1fr 1.2fr;
}
#association .about-board { order: -1; background: var(--bg); }
@media (max-width: 900px) {
  #association { grid-template-columns: 1fr; }
  #association .about-board { order: 0; }
}

/* ---------- Menu / price list ---------- */
.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  margin-top: 28px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.menu-item-name { color: var(--text-primary); }
.menu-item-price { color: var(--accent-blue-text); font-weight: 700; white-space: nowrap; }

.menu-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ---------- Page hero (sous-pages) ---------- */
.hero-sub { padding: 70px 48px 50px; }
.hero-sub .hero-title { font-size: clamp(40px, 7vw, 84px); }

/* ---------- Gallery ---------- */
.gallery { padding: 70px 48px; }
.gallery h2 { font-size: 40px; margin-bottom: 30px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.gallery-item {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 8px;
  min-height: 160px;
}

.gallery-photo-item {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.gallery-photo-item picture {
  display: block;
  min-height: 0;
  flex: 1;
}

.gallery-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.gallery-photo-item figcaption { padding: 0 8px 8px; }

/* ---------- Photo rails (archives d'événement) ---------- */
.photo-rail {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}

.photo-rail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .65fr);
  align-items: end;
  gap: 24px;
  margin: 0 48px 30px;
}

.photo-rail-heading h2 { font-size: clamp(44px, 5vw, 72px); line-height: .9; }
.photo-rail-heading p { max-width: 38ch; margin: 0; color: var(--text-secondary); line-height: 1.55; }

.photo-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34vw);
  align-items: start;
  gap: clamp(10px, 1.3vw, 20px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--border-2) transparent;
  scrollbar-width: thin;
  padding: 0 48px 14px;
}

.photo-rail-track::-webkit-scrollbar { height: 4px; }
.photo-rail-track::-webkit-scrollbar-track { background: transparent; }
.photo-rail-track::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.photo-rail-item {
  scroll-snap-align: start;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  width: 100%;
}

.photo-rail-item picture { display: block; height: 100%; }
.photo-rail-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 480ms var(--ease-out); }
.photo-rail-item:nth-child(3n + 2) .photo-rail-image { aspect-ratio: 4 / 5; }
.photo-rail-item:nth-child(4n) .photo-rail-image { aspect-ratio: 16 / 10; }

@media (hover: hover) and (pointer: fine) {
  .photo-rail-item:hover .photo-rail-image { transform: scale(1.035); }
}

.photo-rail-hint { margin: 14px 48px 0; color: var(--text-secondary); font-size: 13px; }

.photo-viewer {
  width: min(100%, 1120px);
  max-width: none;
  max-height: none;
  height: 100dvh;
  padding: 54px clamp(16px, 5vw, 72px) 24px;
  border: 0;
  background: rgb(12 10 9 / .98);
  color: #fff;
}

.photo-viewer::backdrop { background: rgb(0 0 0 / .76); }
.photo-viewer figure { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; }
.photo-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 112px); object-fit: contain; }
.photo-viewer figcaption { margin-top: 12px; color: rgb(255 255 255 / .75); font-size: 13px; text-align: center; }
.photo-viewer-close,
.photo-viewer-prev,
.photo-viewer-next {
  position: fixed;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font: 700 12px Inter, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.photo-viewer-close { top: 18px; right: 24px; min-height: 42px; padding: 0 14px; }
.photo-viewer-prev,
.photo-viewer-next { top: 50%; min-height: 48px; padding: 0 12px; transform: translateY(-50%); }
.photo-viewer-prev { left: 18px; }
.photo-viewer-next { right: 18px; }

/* ---------- Intent grid (« Je veux… ») ---------- */
.intents {
  padding: 70px 48px;
  border-top: 1px solid var(--border);
}

.intents h2 { font-size: clamp(58px, 8vw, 104px); line-height: .85; margin-bottom: 38px; }

.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 26px;
}

.intent-card {
  background: transparent;
  border-top: 2px solid var(--border-2);
  padding: 18px 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  /* Reveal au scroll (voir main.js) : stagger par enfant de grille. L'attribut est retiré
     en fin d'animation pour rendre la main aux transitions hover/active standards. */
  .js [data-reveal-child] { opacity: 0; transform: translateY(12px); }
  .js [data-reveal-child].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  }
}

.intent-card-title {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 3vw, 42px);
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}

.intent-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.intent-card .link-arrow { margin-top: 10px; }

@media (hover: hover) and (pointer: fine) {
  .intent-card:hover { border-color: var(--accent-pink-text); transform: translateY(-3px); }
  .intent-card:hover .intent-card-title { color: var(--accent-pink-text); }
}

.intent-card:active { transform: translateY(-1px); }
.intent-card .intent-card-title { transition: color 180ms var(--ease-out); }

/* ---------- FAQ ---------- */
.faq {
  padding: 70px 48px;
  border-top: 1px solid var(--border);
}

.faq h2 { font-size: 40px; margin-bottom: 20px; }

.faq-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-top: 0;
  margin-bottom: 30px;
}

.faq-list { max-width: 720px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 26px;
  color: var(--accent-pink-text);
  flex: none;
  transition: transform 200ms var(--ease-in-out);
}

.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  /* Ouverture du <details> : le contenu apparaît en fondu, une fois. Pas d'animation à la fermeture
     (display:none natif) — asymétrie assumée, l'entrée est le moment qui compte. */
  .faq-item[open] .faq-answer { animation: faq-in 220ms var(--ease-out); }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 0 18px;
  max-width: 640px;
}

/* Photo éditoriale à côté des questions (page Caropolitaine) : sous les
   questions en une colonne, à droite au-delà de 900 px. */
.faq-photo {
  margin: 32px 0 0;
}

.faq-photo picture { display: block; }

.faq-photo-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 3px;
}

@media (min-width: 901px) {
  .faq-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    align-items: start;
    gap: 48px;
  }
  .faq-with-photo .faq-list { max-width: none; }
  .faq-photo { margin-top: 0; }
}

/* ---------- Timeline (palmarès, parcours) ---------- */
.timeline { max-width: 720px; }

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.timeline-year {
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: var(--accent-blue-text);
  line-height: 1;
}

.timeline-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 48px 28px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Big Shoulders', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer-logo-icon { width: 24px; height: 24px; display: block; }

.footer-pitch {
  max-width: 34ch;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text-primary);
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.footer-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.footer-social .footer-social-dot { fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-social a:hover { background: var(--accent-pink-surface); border-color: var(--accent-pink-surface); color: var(--on-accent); }
}

.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.footer-col a { width: fit-content; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--text-primary); }
}

.footer-title {
  margin-bottom: 4px;
  font-family: 'Big Shoulders', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Modale « Devenir bénévole » ---------- */
.form-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-primary);
}
.form-dialog::backdrop { background: oklch(0.1 0.01 40 / 0.7); }
/* Sans JS : la modale s'affiche via l'ancre #benevole. */
.form-dialog:target:not([open]) { display: block; position: fixed; inset: 0; z-index: 100; overflow: auto; }
.form-dialog h2 { font-size: 34px; padding-right: 40px; }
.form-dialog-intro { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.form-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  color: var(--text-secondary);
}
.form-dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.form-dialog-form { display: grid; gap: 14px; margin-top: 22px; }
.form-dialog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.form-dialog-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.form-dialog-form input,
.form-dialog-form select,
.form-dialog-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  background: var(--card-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
.form-dialog-form textarea { resize: vertical; min-height: 96px; }
.form-dialog-optional { font-weight: 500; }
.form-dialog-wide { width: min(640px, calc(100vw - 32px)); }
.footer-bottom a { text-decoration: underline; }
.form-dialog-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent-pink); outline-offset: 1px; }
.form-dialog-form .btn { justify-self: start; margin-top: 4px; }
.form-dialog-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-dialog-error { margin-top: 14px; padding: 10px 14px; border-radius: 3px; background: color-mix(in oklch, var(--accent-pink) 18%, transparent); font-size: 14px; }
.form-dialog-legal { font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.form-dialog-legal a { text-decoration: underline; }
.form-dialog > .btn { margin-top: 22px; }
@media (max-width: 520px) {
  .form-dialog { padding: 24px 20px; }
  .form-dialog-row { grid-template-columns: 1fr; }
}

/* ---------- Motion : reveal au scroll (une fois, surfaces marketing uniquement) ---------- */
/* Masquage conditionné à la classe .js posée par main.js : sans JS, tout reste visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  }

  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Ouverture du menu mobile : fondu + glissement court depuis le haut. */
  .js .nav-links.is-open { animation: menu-in 180ms var(--ease-out); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: 1 / -1; }
  .hero { padding: 60px 24px 50px; }
  .hero-home,
  .hero-sub.hero-trail,
  .hero-sub.hero-guinguette,
  .hero-sub.hero-cyclisme,
  .hero-sub.hero-partner,
  .hero-sub.hero-photos,
  .hero-sub.hero-shop { min-height: 500px; }
  .hero-home .hero-content { width: 74%; }
  .hero-home .hero-title { font-size: clamp(64px, 9vw, 118px); }
  .impact-strip { padding: 22px 24px; }
  .impact-strip > div { gap: 8px; padding-inline: 14px; }
  .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { padding: 50px 24px; }
  .teaser { padding: 50px 24px; }
  .intents { padding: 50px 24px; }
  .faq { padding: 50px 24px; }
  .site-footer { padding: 40px 24px; }
  .nav { padding: 16px 24px; }
  .about { grid-template-columns: 1fr; padding: 50px 24px; }
  .stat-bar { padding: 0 24px; }
  .event-stats-bar { gap: 36px; justify-content: flex-start; }
  .seasons { grid-template-columns: 1fr; }
  .season-panel { padding: 50px 24px; }
  .season-panel-blue { border-left: none; border-top: 1px solid var(--border); }
  .nav { flex-wrap: nowrap; gap: 12px; padding: 12px 20px; }
  .nav-links { flex: none; min-width: 0; }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
  }
  .js .nav-links.is-open { display: flex; }
  .js .menu-toggle { display: inline-flex; }
  .theme-toggle { width: 44px; padding-inline: 0; }
  .theme-toggle #theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .nav-links a { min-height: 48px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; }
  .ticker { flex-direction: column; }
  .ticker-item { border-right: none; border-bottom: 1px solid var(--border); }
  .ticker-item:last-child { border-bottom: none; }
  .hero-home,
  .hero-sub.hero-trail,
  .hero-sub.hero-guinguette,
  .hero-sub.hero-cyclisme,
  .hero-sub.hero-partner,
  .hero-sub.hero-photos,
  .hero-sub.hero-shop { display: block; min-height: 0; padding: 0 24px 42px; }
  .hero-home .hero-media,
  .hero-sub.hero-trail .hero-media,
  .hero-sub.hero-guinguette .hero-media,
  .hero-sub.hero-cyclisme .hero-media,
  .hero-sub.hero-photos .hero-media,
  .hero-sub.hero-shop .hero-media,
  .hero-sub.hero-partner .hero-media {
    position: relative;
    inset: auto;
    width: calc(100% + 48px);
    height: min(62vw, 310px);
    min-height: 210px;
    margin: 0 -24px 26px;
  }
  .hero-media::after { background: linear-gradient(0deg, color-mix(in oklch, var(--bg) 18%, transparent), transparent 45%); }
  .hero-home .hero-content,
  .hero-sub.hero-trail .hero-content,
  .hero-sub.hero-guinguette .hero-content,
  .hero-sub.hero-cyclisme .hero-content,
  .hero-sub.hero-partner .hero-content,
  .hero-sub.hero-photos .hero-content,
  .hero-sub.hero-shop .hero-content { width: 100%; }
  .nav { padding-inline: 16px; gap: 8px; }
  .nav-logo { font-size: 21px; gap: 7px; }
  .nav-actions { margin-left: auto; gap: 8px; flex-wrap: nowrap; }
  .js .nav-links { left: 8px; right: 8px; }
  .hero-home .hero-title { font-size: clamp(58px, 15vw, 88px); }
  .hero-sub.hero-trail .hero-title,
  .hero-sub.hero-guinguette .hero-title,
  .hero-sub.hero-cyclisme .hero-title,
  .hero-sub.hero-partner .hero-title,
  .hero-sub.hero-photos .hero-title,
  .hero-sub.hero-shop .hero-title { font-size: clamp(44px, 15vw, 78px); }
  .hero-sub .hero-title { overflow-wrap: break-word; }
  .hero-badge { letter-spacing: 1px; }
  .teaser-title { font-size: clamp(38px, 12vw, 52px); }
  .teaser > *, .season-panel-inner { min-width: 0; max-width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  .impact-strip { gap: 0; padding: 18px 12px; }
  .impact-strip > div { flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-inline: 8px; text-align: center; }
  .impact-strip strong { font-size: 40px; }
  .impact-strip span { font-size: 12px; }
  .intent-grid { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .intent-card { min-height: 205px; }
  .teaser { flex-direction: column; align-items: flex-start; }
  .teaser-photo-figure { width: min(100%, 520px); }
  .teaser-photo-image { aspect-ratio: 16 / 10; }
  .photo-rail { padding: 52px 0; }
  .photo-rail-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .photo-rail-heading { margin-inline: 24px; }
  .photo-rail-track { grid-auto-columns: minmax(245px, 78vw); padding-inline: 24px; }
  .photo-rail-hint { margin-inline: 24px; font-size: 12px; }
  .photo-viewer { padding-inline: 48px; }
  .photo-viewer-prev { left: 6px; }
  .photo-viewer-next { right: 6px; }
  .menu-list { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .faq-item summary { font-size: 21px; }
}

/* ---------- Accueil : hero + chiffres + rendez-vous = un seul écran ---------- */
@media (min-width: 701px) {
  :root { --strip-h: clamp(96px, 14svh, 150px); --ticker-h: clamp(88px, 13svh, 130px); }
  .hero-home {
    padding-block: clamp(24px, 5svh, 60px) clamp(20px, 4svh, 44px);
    min-height: max(400px, calc(100svh - 82px - var(--strip-h) - var(--ticker-h)));
  }
  .hero-home .hero-title { font-size: clamp(48px, min(9vw, 8.5svh), 132px); }
  .hero-home .hero-ctas { margin-top: clamp(16px, 3svh, 32px); }
  .impact-strip-full { height: var(--strip-h); padding-block: 0; align-items: center; }
  .impact-strip-full strong { font-size: clamp(40px, 5vw, 76px); }
  .ticker-full { height: var(--ticker-h); flex-wrap: nowrap; align-items: stretch; }
  .ticker-full .ticker-item { min-width: 0; padding: 0 32px; display: flex; flex-direction: column; justify-content: center; }
  .ticker-full .ticker-title { font-size: clamp(20px, 2.3vw, 34px); }
  .ticker-full .agenda-more { flex: 0 0 auto; align-self: center; padding: 0 32px; white-space: nowrap; }
}
.impact-strip.impact-strip-full > * { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; height: 100%; }
.impact-strip.impact-strip-full > a { display: flex; padding: 0 24px; border-left: 1px solid var(--border); }
.impact-strip.impact-strip-full > :first-child { padding-left: 0; border-left: 0; }
.impact-strip-full span { max-width: 260px; font-size: clamp(12px, 1.1vw, 14px); }
.impact-strip.impact-strip-full > a:hover strong { color: var(--accent-pink-text); }
.ticker-full .ticker-intro { flex: 0 0 100%; }
.ticker-full .ticker-date { font-size: clamp(12px, 1vw, 14px); }
@media (max-width: 700px) {
  .impact-strip.impact-strip-full > a { padding: 0 8px; align-items: center; text-align: center; }
  .impact-strip-full strong { font-size: 44px; }
  .ticker-full .agenda-more { flex: 0 0 100%; text-align: right; padding: 14px 24px; }
}

[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Bandeau de consentement (mesure d'audience) ---------- */
.consent-banner {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 960px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.35);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 380px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.consent-banner a { color: var(--text-primary); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.consent-actions .btn { flex: 1 1 120px; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
}
.to-top[hidden] { display: none; }
.to-top svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { color: var(--accent-pink-text); border-color: var(--accent-pink-text); }
}

/* ---------- Mosaïque photos (Guinguette) ---------- */
.photo-mosaic-section {
  padding: clamp(56px, 7vw, 96px) 48px clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
}

.photo-mosaic-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .65fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.photo-mosaic-heading h2 { font-size: clamp(44px, 5vw, 72px); line-height: .9; }
.photo-mosaic-heading p { max-width: 38ch; margin: 0; color: var(--text-secondary); line-height: 1.55; }

.photo-mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 14vw, 200px);
  gap: 10px;
}

.photo-mosaic-item {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--card-bg);
  overflow: hidden;
  cursor: zoom-in;
}

.photo-mosaic-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease-out);
}

/* Motif répété tous les 5 éléments : large, haut, normal, normal, large. */
.photo-mosaic-item:nth-child(5n + 1) { grid-column: span 2; }
.photo-mosaic-item:nth-child(5n + 2) { grid-row: span 2; }
.photo-mosaic-item:nth-child(5n + 5) { grid-column: span 2; }

@media (hover: hover) and (pointer: fine) {
  .photo-mosaic-item:hover img { transform: scale(1.04); }
}

.photo-mosaic-more { margin: 28px 0 0; }

.photo-mosaic-note {
  margin: 24px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .photo-mosaic-section { padding-inline: 24px; }
  .photo-mosaic-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .photo-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 560px) {
  .photo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Rythme des fonds : jamais deux sections de même couleur côte à côte ---------- */
:root { --surface-night: oklch(0.21 0.035 240); } /* bande bleu nuit, en alternance avec le fond de page et le rose */
#association { background: var(--surface-night); } /* accueil : suit le dernier bandeau rose */
#images .photo-mosaic-section { background: var(--surface-night); border-top: 0; } /* Guinguette : entre la carte et les partenaires */

/* Hero de la page Parcours : vidéo plein cadre, la partie gauche reste calme pour le texte. */
.hero-parcours .hero-media { inset: 0; }
.hero-parcours .hero-media::after { background: linear-gradient(90deg, color-mix(in oklch, var(--bg) 70%, transparent) 0%, color-mix(in oklch, var(--bg) 25%, transparent) 38%, transparent 62%); }
.hero-parcours .hero-photo-image { object-fit: cover; object-position: right center; filter: none; }
