/* ============================================
   ENERGY FESTIVAL — 4 & 5 SEPT 2026 — MONS
   Style dérivé des visuels lineup :
   noir grunge / rouge sang / blanc condensé
   ============================================ */

:root {
  --black: #0a0708;
  --black-2: #120b0c;
  --red: #d61f2c;
  --red-dark: #8f0f18;
  --red-glow: rgba(214, 31, 44, 0.55);
  --white: #ffffff;
  --grey: #b8b0b1;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Oswald", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

/* ---------- Fond grunge : éclaboussures rouges ---------- */
.grunge-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 40% 30% at 8% 12%, var(--red-glow), transparent 60%),
    radial-gradient(ellipse 30% 25% at 95% 20%, rgba(214, 31, 44, 0.35), transparent 65%),
    radial-gradient(ellipse 35% 30% at 12% 88%, rgba(143, 15, 24, 0.45), transparent 60%),
    radial-gradient(ellipse 45% 35% at 90% 92%, var(--red-glow), transparent 65%),
    radial-gradient(ellipse 25% 20% at 50% 50%, rgba(70, 10, 15, 0.3), transparent 70%),
    var(--black);
}

.grunge-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.5rem max(2rem, env(safe-area-inset-right)) 0.5rem max(2rem, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(10, 7, 8, 0.92), rgba(10, 7, 8, 0.55) 70%, transparent);
}

.nav__logo { justify-self: start; }

.nav__socials { justify-self: end; }

.nav__logo img {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.8rem 0.2rem;
  transition: color 0.2s;
}

.nav__links a.is-active {
  color: var(--red);
}

.nav__socials {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.nav__socials svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: fill 0.2s, transform 0.2s;
}

/* ---------- Hero vidéo ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(10, 7, 8, 0.75) 100%),
    linear-gradient(to bottom, rgba(10, 7, 8, 0.55), rgba(10, 7, 8, 0.25) 40%, rgba(10, 7, 8, 0.9) 100%);
}

.hero__logo {
  width: min(560px, 82vw);
  height: auto;
  filter:
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.35))
    drop-shadow(0 4px 32px rgba(214, 31, 44, 0.5));
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 14px rgba(255, 255, 255, 0.35))
      drop-shadow(0 4px 32px rgba(214, 31, 44, 0.5));
  }
  50% {
    filter:
      drop-shadow(0 0 22px rgba(255, 255, 255, 0.55))
      drop-shadow(0 4px 55px rgba(214, 31, 44, 0.85));
  }
}

.hero__date {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.8rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero__venue {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.tri { color: var(--red); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: var(--white);
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  padding: 1rem 2.6rem;
  font-size: 1.15rem;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 25px rgba(214, 31, 44, 0.4);
}

.btn:active {
  transform: scale(0.97);
  filter: brightness(1.1);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--white);
  clip-path: none;
  box-shadow: none;
}

.hero__cta {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.6rem;
  text-decoration: none;
  animation: bounce 1.8s infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Titres de section (pastille rouge, comme les catégories du lineup) ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section__label {
  display: table;
  margin: 0 auto 1rem;
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 1.6rem;
  border-radius: 999px;
}

.section__title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.section__sub {
  text-align: center;
  color: var(--grey);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2.5rem;
}

/* ---------- Billetterie ---------- */
.tickets__frame-wrap {
  position: relative;
  background: var(--black-2);
  border: 1px solid rgba(214, 31, 44, 0.35);
  box-shadow: 0 0 60px rgba(214, 31, 44, 0.15), 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.tickets__frame-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(620px, 88svh, 900px);
  border: 0;
  background: #fff;
}

.tickets__fallback {
  text-align: center;
  margin-top: 1.6rem;
  color: var(--grey);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tickets__fallback a {
  color: var(--red);
  font-weight: 600;
}

/* ---------- Lineup ---------- */
.lineup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.lineup__card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(214, 31, 44, 0.3);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s, box-shadow 0.25s;
}

.lineup__card:active { transform: scale(0.99); }

.lineup__card img {
  display: block;
  width: 100%;
  height: auto;
}

.lineup__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 3, 4, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  cursor: zoom-out;
}

.lightbox img {
  touch-action: pinch-zoom;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  box-shadow: 0 0 80px rgba(214, 31, 44, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(214, 31, 44, 0.3);
  padding: 2.5rem 1.5rem max(2rem, env(safe-area-inset-bottom));
  text-align: center;
  background: rgba(5, 3, 4, 0.6);
}

.footer__logo {
  height: 22px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.footer__socials svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
  transition: fill 0.2s, transform 0.2s;
}

.footer p {
  color: var(--grey);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Hover : uniquement souris/trackpad ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--red); }

  .nav__socials a:hover svg,
  .footer__socials a:hover svg {
    fill: var(--red);
    transform: scale(1.15);
  }

  .btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.15);
    box-shadow: 0 6px 35px rgba(214, 31, 44, 0.65);
  }

  .btn--ghost:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: none;
  }

  .lineup__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(214, 31, 44, 0.35);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav { padding: 0.2rem max(0.5rem, env(safe-area-inset-right)) 0.2rem max(0.5rem, env(safe-area-inset-left)); }
  .nav__logo img { height: 14px; }
  .nav__links { gap: 0.3rem; }
  .nav__links a { font-size: 0.85rem; padding: 0.8rem 0.4rem; }
  .section { padding: 3rem 1rem; }
  .lineup__grid { gap: 1.2rem; }
}

@media (max-width: 480px) {
  .nav__socials a { min-width: 36px; min-height: 36px; }
  .nav__socials svg { width: 18px; height: 18px; }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 0.9rem;
  }

  .hero__cta .btn { width: 100%; text-align: center; }

  .tickets__fallback { font-size: 1rem; }

  .section__sub { font-size: 0.92rem; letter-spacing: 0.08em; }
}

@media (max-width: 374px) {
  .nav__logo img { height: 11px; }
  .nav__links a { font-size: 0.78rem; padding: 0.7rem 0.3rem; }
  .nav__links { gap: 0.2rem; }
}

/* Paysage téléphone : hauteur réduite, on compacte le hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 4.5rem 1.5rem 2rem; }
  .hero__logo { width: min(300px, 40vw); }
  .hero__date { font-size: clamp(1.1rem, 3vh, 1.6rem); margin-top: 0.8rem; }
  .hero__venue { font-size: 0.95rem; margin-top: 0.3rem; }
  .hero__cta { margin-top: 1.2rem; }
  .btn { padding: 0.7rem 1.8rem; font-size: 1rem; }
  .hero__scroll { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__logo { animation: none; }
  .hero__scroll { animation: none; }

  .btn,
  .lineup__card,
  .nav__links a,
  .nav__socials svg,
  .footer__socials svg {
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .lineup__card:hover,
  .lineup__card:active {
    transform: none;
  }
}
