:root {
  /* Palette puisée dans les 3 affiches officielles (2024 menthe/tan, 2025 braise/grenat, 2026 soleil/ardoise) */
  --craie: #FBF3E1;
  --craie-dim: #F1E6C9;
  --ardoise: #232B33;
  --ardoise-2: #2E3944;
  --soleil: #F4B62F;
  --soleil-deep: #D99A1E;
  --braise: #E8571C;
  --grenat: #8A2244;
  --menthe: #79B79E;

  --ink: #232B33;
  --ink-dim: #5B6773;

  --line-dark: rgba(35, 43, 51, 0.16);
  --line-light: rgba(251, 243, 225, 0.18);

  --font-display: "Lilita One", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--craie);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ardoise);
  border-bottom: 3px solid var(--ardoise);
}

.site-header .container { max-width: 1320px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--soleil);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-mark { width: 32px; height: 32px; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links li { display: flex; align-items: center; }

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--craie);
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover { opacity: 1; color: var(--soleil); }
.nav-links a.active { opacity: 1; color: var(--soleil); }

.btn-ghost-nav {
  border: 2px solid var(--soleil);
  padding: 8px 16px;
  border-radius: 3px;
  color: var(--soleil) !important;
  opacity: 1 !important;
}
.btn-ghost-nav:hover { background: var(--soleil); color: var(--ardoise) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--soleil); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  border: 3px solid var(--ardoise);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--soleil);
  color: var(--ardoise);
  box-shadow: 4px 4px 0 var(--ardoise);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ardoise); }
.btn-primary:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ardoise); }

.btn-outline {
  border-color: var(--ardoise);
  color: var(--ardoise);
  background: transparent;
}
.btn-outline:hover { background: var(--ardoise); color: var(--craie); }

/* on dark grounds */
.section--dark .btn-outline { border-color: var(--craie); color: var(--craie); }
.section--dark .btn-outline:hover { background: var(--craie); color: var(--ardoise); }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--soleil);
}

.hero-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220vmax;
  height: 220vmax;
  margin: -110vmax 0 0 -110vmax;
  z-index: 0;
  border-radius: 50%;
  overflow: hidden;
}
.hero-rays::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  animation: spin-slow 90s linear infinite;
  background: repeating-conic-gradient(var(--ardoise) 0deg 4deg, transparent 4deg 18deg);
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-rays::before { animation: none; } }

.hero-content { position: relative; z-index: 1; padding-top: 40px; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ardoise);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.98;
  color: var(--ardoise);
  text-shadow: 3px 3px 0 var(--craie), 6px 6px 0 var(--braise);
}

@media (max-width: 480px) {
  .hero h1 { text-shadow: 2px 2px 0 var(--craie), 4px 4px 0 var(--braise); }
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ardoise);
  max-width: 520px;
  margin: 30px auto 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 36px auto 0;
  padding: 14px 26px;
  background: var(--ardoise);
  border-radius: 4px;
  transform: rotate(-1.5deg);
}

.hero-badge div { display: flex; flex-direction: column; text-align: left; }

.hero-badge strong {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--menthe);
}

.hero-badge span:last-child {
  font-family: var(--font-display);
  color: var(--craie);
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ardoise), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* Header overlay reveal-on-scroll (home only) */
body[data-page="accueil"] .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease;
}
body[data-page="accueil"] .site-header.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: var(--ardoise);
  border-bottom-color: var(--ardoise);
}

/* Page hero banner (detail pages) */
.page-hero {
  padding: 150px 0 56px;
  text-align: center;
  background: var(--ardoise);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--soleil) 0 24px, var(--braise) 24px 48px, var(--menthe) 48px 72px, var(--grenat) 72px 96px);
}
.page-hero .kicker { color: var(--soleil); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--craie); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--dark { background: var(--ardoise); color: var(--craie); }
.section--dark p { color: #C9D2D9; }
.section--tint { background: var(--craie-dim); }

.section-head { text-align: center; margin-bottom: 52px; }

.kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--braise);
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 2.7rem); }

.about-grid { max-width: 760px; margin: 0 auto; text-align: center; }

.lead { font-size: 1.25rem; color: var(--ink-dim); margin: 0 0 20px; }
.section--dark .lead { color: #C9D2D9; }

/* ---------- Summary grid (home) ---------- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.summary-card, .partner-card, .info-card, .contact-card {
  display: block;
  background: var(--craie);
  border: 3px solid var(--ardoise);
  border-radius: 6px;
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 5px 5px 0 var(--line-dark);
  position: relative;
}

.summary-card::before, .info-card::before, .contact-card::before {
  content: "";
  position: absolute;
  top: -3px; left: 20px; right: 20px;
  height: 6px;
  border-radius: 0 0 4px 4px;
  background: var(--braise);
}
.summary-card:nth-of-type(4n+2)::before, .info-card:nth-of-type(4n+2)::before, .contact-card:nth-of-type(4n+2)::before { background: var(--grenat); }
.summary-card:nth-of-type(4n+3)::before, .info-card:nth-of-type(4n+3)::before, .contact-card:nth-of-type(4n+3)::before { background: var(--menthe); }
.summary-card:nth-of-type(4n)::before, .info-card:nth-of-type(4n)::before, .contact-card:nth-of-type(4n)::before { background: var(--soleil-deep); }

.summary-card:hover, .partner-card:hover, .info-card:hover, .contact-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ardoise);
}

.summary-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ardoise); }
.summary-card p { color: var(--ink-dim); font-size: 1.02rem; margin: 0; }

/* ---------- Partners ---------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.partner-card {
  flex: 0 1 200px;
  max-width: 220px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--line-dark);
}
.partner-card::before { display: none; }
.partner-card img { max-height: 60px; width: auto; margin: 0 auto; }
.partner-name {
  display: none;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: center;
  color: var(--ink-dim);
}
.partner-note {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 30px;
}

/* ---------- Lineup coming soon ---------- */
.lineup-soon {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 32px;
  background: var(--ardoise-2);
  border: 3px solid var(--soleil);
  border-radius: 6px;
}
.lineup-soon h3 { font-size: 2rem; margin-bottom: 14px; color: var(--craie); }
.lineup-soon p { color: #C9D2D9; font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Infos ---------- */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.info-card { text-align: center; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ardoise); }
.info-card p { color: var(--ink-dim); font-size: 1.08rem; margin: 0; }
.info-card a:hover { color: var(--braise); }

/* ---------- Benevoles ---------- */
.benevoles-inner { text-align: center; max-width: 620px; }
.benevoles h2 { margin: 10px 0 20px; font-size: clamp(2rem, 4vw, 2.6rem); }

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.contact-card {
  flex: 0 1 220px;
  max-width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.contact-card span {
  font-family: var(--font-display);
  color: var(--ardoise);
  font-size: 1.05rem;
}
.contact-card small { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- Archive edition (programmation) ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 44px;
  align-items: center;
}

.archive-poster {
  border: 3px solid var(--ardoise);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 var(--line-dark);
  transform: rotate(-1deg);
}
.section--dark .archive-poster { box-shadow: 6px 6px 0 rgba(0,0,0,0.35); border-color: var(--craie); }
.archive-poster img { width: 100%; height: 100%; object-fit: cover; }

.archive-poster.img-missing { position: relative; }
.archive-poster.img-missing img { display: none; }
.archive-poster.img-missing::after {
  content: "Affiche à venir\A dépose poster-20xx.jpg dans assets/";
  white-space: pre-line;
  text-align: center;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 20px;
}

.archive-date {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--braise);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.section--dark .archive-date { color: var(--soleil); }

.archive-details h3 { font-size: 1.2rem; margin-bottom: 16px; }

.archive-lineup { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.archive-lineup li a {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 9px 18px;
  background: var(--craie);
  border: 2px solid var(--ardoise);
  border-radius: 30px;
  color: var(--ardoise);
  transition: all 0.2s ease;
}
.section--dark .archive-lineup li a { background: var(--ardoise-2); border-color: var(--craie); color: var(--craie); }
.archive-lineup li a:hover { background: var(--soleil); border-color: var(--ardoise); color: var(--ardoise); transform: translateY(-2px); }

@media (max-width: 700px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-poster { max-width: 300px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  border: 3px solid var(--ardoise);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-frame:hover img { transform: scale(1.06); }

.gallery-empty-note { text-align: center; color: var(--ink-dim); font-size: 1rem; margin-top: 20px; }
.gallery-empty-note code { color: var(--braise); font-family: monospace; }

/* ---------- Charte ---------- */
.charte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 780px;
  margin: 0 auto;
}
.charte-col {
  background: var(--ardoise);
  border-radius: 6px;
  padding: 30px 28px;
}
.charte-col h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--soleil); }
.charte-list { margin: 0; padding: 0; list-style: none; }
.charte-list li { color: #C9D2D9; font-size: 1.02rem; padding: 8px 0; border-bottom: 1px solid var(--line-light); }
.charte-list li:last-child { border-bottom: none; }

/* ---------- Artist detail ---------- */
.artist-detail {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 44px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.artist-detail-photo {
  border: 3px solid var(--ardoise);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--craie-dim);
  transform: rotate(1deg);
  box-shadow: 6px 6px 0 var(--line-dark);
}
.artist-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.artist-genre {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--braise);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.artist-bio-pending { font-style: italic; color: var(--ink-dim); }
.artist-credit { color: var(--ink-dim); font-size: 0.92rem; font-style: italic; margin: 18px 0 28px; }

@media (max-width: 700px) {
  .artist-detail { grid-template-columns: 1fr; }
  .artist-detail-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  background: var(--ardoise);
  color: var(--craie);
  border-top: 6px solid var(--soleil);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-size: 1.05rem; color: var(--soleil); }
.site-footer p { color: #A9B4BD; font-size: 0.9rem; margin: 0; }

/* ---------- Responsive nav ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ardoise);
    border-bottom: 3px solid var(--soleil);
    padding: 20px 24px 30px;
    gap: 18px;
    white-space: normal;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero-badge { flex-direction: column; text-align: center; gap: 8px; }
  .hero-badge div { align-items: center; }
}
