@font-face {
  font-family: 'Marcsc';
  src: url('../../green_mayday.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #8a9a5b;
  --green2:    #6b7a45;
  --dark:      #0d0d0d;
  --dark2:     #141414;
  --dark3:     #1a1a1a;
  --mid:       #222;
  --light:     #e8e8e0;
  --muted:     #888;
  --accent:    #8a9a5b;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: #fff; opacity: 0.85; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
@keyframes loaderPulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}
@keyframes loaderSlide {
  from { left: -100%; }
  to   { left: 100%; }
}
@keyframes glitchR {
  0%   { opacity: 0; transform: translate(0); clip-path: inset(20% 0 60% 0); }
  20%  { opacity: 1; transform: translate(-4px, 2px); clip-path: inset(10% 0 70% 0); }
  40%  { opacity: 1; transform: translate(4px, -2px); clip-path: inset(50% 0 20% 0); }
  60%  { opacity: 1; transform: translate(-3px, 1px); clip-path: inset(30% 0 40% 0); }
  80%  { opacity: 0.5; transform: translate(2px); clip-path: inset(60% 0 10% 0); }
  100% { opacity: 0; transform: translate(0); }
}
@keyframes glitchB {
  0%   { opacity: 0; transform: translate(0); clip-path: inset(50% 0 20% 0); }
  20%  { opacity: 1; transform: translate(4px, -2px); clip-path: inset(60% 0 10% 0); }
  40%  { opacity: 1; transform: translate(-4px, 2px); clip-path: inset(20% 0 60% 0); }
  60%  { opacity: 1; transform: translate(3px, -1px); clip-path: inset(40% 0 30% 0); }
  80%  { opacity: 0.5; transform: translate(-2px); clip-path: inset(10% 0 70% 0); }
  100% { opacity: 0; transform: translate(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== SECTIONS ===== */
section { padding: 48px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  display: block;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 21px);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.2;
}
/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loader-logo {
  width: 120px;
  mix-blend-mode: screen;
  animation: loaderPulse 1.5s ease infinite alternate;
}
.loader-bar {
  width: 120px;
  height: 1px;
  background: rgba(138,154,91,0.2);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--green);
  animation: loaderSlide 1.2s ease infinite;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(13,13,13,0.95), transparent);
  transition: background 0.3s;
}
nav.scrolled {
  background: rgba(13,13,13,0.97);
  border-bottom: 1px solid rgba(138,154,91,0.15);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--light);
  transition: all 0.3s;
}
/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/header_bg.jpg') center center / cover no-repeat;
  filter: brightness(0.55) saturate(0.6);
  z-index: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--dark));
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
}
.hero-content img {
  max-width: 420px;
  width: 70vw;
  margin-bottom: 32px;
  animation: fadeUp 1.2s ease both;
  mix-blend-mode: screen;
}
.hero-punch {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  animation: fadeUp 1.2s 0.5s ease both;
  opacity: 0.8;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1.4s 0.6s ease both;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  animation: scrollLine 2s 1.5s infinite;
}
/* ===== EVENT ===== */
#event  { background: var(--dark);  border-top: 1px solid rgba(138,154,91,0.1); padding-bottom: 60px; padding-top: 40px; }
#about  { background: #101010;       border-top: 1px solid rgba(138,154,91,0.1); }
#artists{ background: var(--dark);  border-top: 1px solid rgba(138,154,91,0.1); }
#contact{ background: #101010;       border-top: 1px solid rgba(138,154,91,0.1); text-align: center; }

.event-card {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.event-poster {
  overflow: hidden;
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* desktop : image rectangulaire */
.event-poster .event-img-desktop {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.65);
  transition: filter 0.5s ease;
}
/* mobile : image carrée, cachée par défaut */
.event-poster .event-img-mobile {
  display: none;
  width: 100%;
  height: auto;
  filter: brightness(0.65);
  transition: filter 0.5s ease;
}

.event-card:hover .event-img-desktop,
.event-card:hover .event-img-mobile { filter: brightness(1); }

.event-poster img[alt] {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 700;
  color: var(--light);
  letter-spacing: 3px;
  text-align: center;
  padding: 48px 24px;
  width: 100%;
}

/* glitch au hover */
.event-poster::before,
.event-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.event-card:hover .event-poster::before {
  animation: glitchR 0.4s steps(2) forwards;
  background: rgba(255,30,30,0.12);
}
.event-card:hover .event-poster::after {
  animation: glitchB 0.4s steps(2) 0.05s forwards;
  background: rgba(30,200,255,0.12);
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: nowrap;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.countdown-item span {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 56px);
  font-weight: 700;
  color: var(--light);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.countdown-item label {
  font-family: var(--font-mono);
  font-size: clamp(7px, 1.5vw, 9px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-sep {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 40px);
  color: rgba(138,154,91,0.4);
  padding-bottom: 20px;
}
.countdown-done {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin-top: 32px;
}

/* mobile : swap images */
@media (max-width: 768px) {
  .event-poster .event-img-desktop { display: none; }
  .event-poster .event-img-mobile  { display: block; }
}
/* ===== ABOUT ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  display: block;
  filter: grayscale(30%) brightness(0.9);
  position: relative;
  z-index: 1;
}
.about-img-wrap::before { display: none; }
.about-text p {
  color: #aaa;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}
.about-text p strong { color: var(--light); font-weight: 600; }

/* ===== ARTISTS ===== */

.artists-flow {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--muted);
  line-height: 2.2;
  letter-spacing: 0.3px;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: normal;
}
.artists-flow .artist-name {
  transition: color 0.2s;
  cursor: default;
}
.artists-flow .artist-name:hover { color: var(--light); }
.artists-flow .sep {
  color: rgba(255,255,255,0.5);
  margin: 0 10px;
  user-select: none;
  font-weight: 300;
}
.artists-thanks {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-mono);
}
.artists-thanks-ascii {
  font-size: 11px;
  color: rgba(138,154,91,0.65);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}
.artists-thanks-text {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
}

/* ===== CONTACT ===== */

.contact-inner { max-width: 600px; margin: 0 auto; }
#contact .section-inner > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.8;
  text-align: center;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.btn-outline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(138,154,91,0.4);
  padding: 14px 28px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline:hover {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
  opacity: 1;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--green); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--dark);
  border: 1px solid rgba(138,154,91,0.1);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  width: calc(100% - 48px);
  transition: opacity 0.4s, transform 0.4s;
}
#cookie-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}
#cookie-banner p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
#cookie-accept {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--green);
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
#cookie-accept:hover { opacity: 0.85; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 240px;
    background: var(--dark2);
    padding: 80px 32px 32px;
    gap: 28px;
    z-index: 101;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  section { padding: 52px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap::before { display: none; }
  .artists-flow { text-align: left; }
  footer { flex-direction: column; text-align: center; padding: 24px; }
  #cookie-banner { flex-direction: column; text-align: center; gap: 16px; }
  .contact-links { flex-wrap: wrap; }
}
