/* ==============================================
   GREENFEST — Feuille de styles principale
   Thème : Vert néon / Noir premium
   ============================================== */

/* --- Variables CSS -------------------------------- */
:root {
  --color-bg:           #080e0a;
  --color-bg-alt:       #0d1610;
  --color-bg-card:      #111a13;
  --color-bg-glass:     rgba(13, 22, 16, 0.75);
  --color-bg-dark:      #050c07;  /* deepest bg — used on neon-on-dark text */
  --color-neon:         #39ff85;
  --color-neon-dim:     #1fae54;
  --color-neon-glow:    rgba(57, 255, 133, 0.25);
  --color-neon-subtle:  rgba(57, 255, 133, 0.08);
  --color-text:         #e8f5eb;
  --color-text-muted:   #7a9b80;
  --color-text-dim:     #3d5c43;
  --color-border:       rgba(57, 255, 133, 0.15);
  --color-border-light: rgba(57, 255, 133, 0.08);
  --color-white:        #ffffff;

  --font-display:  'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-neon:   0 0 20px rgba(57, 255, 133, 0.3), 0 0 60px rgba(57, 255, 133, 0.1);
  --shadow-card:   0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-float:  0 20px 60px rgba(0, 0, 0, 0.5);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
  --nav-h: 70px;
}

/* --- Reset & Base --------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  overscroll-behavior-y: none;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul { list-style: none; }

/* --- Utilitaires ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}



.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-neon);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-neon);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.section-header {
  margin-bottom: 56px;
}

.neon-text {
  color: var(--color-neon);
  text-shadow: 0 0 20px rgba(57, 255, 133, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-neon);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: #5dff9e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.btn-outline {
  background: transparent;
  color: var(--color-neon);
  border: 1.5px solid var(--color-neon);
}

.btn-outline:hover {
  background: var(--color-neon-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   NAVIGATION
   =============================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  will-change: transform;
  transform: translateZ(0);
}

.navbar.scrolled {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.navbar .container .nav-links {
  justify-self: center;
}

.navbar .container .nav-burger {
  justify-self: end;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.nav-logo .leaf-icon {
  width: 28px;
  height: 28px;
  color: var(--color-neon);
  filter: drop-shadow(0 0 8px var(--color-neon));
}

/* Logo icon wrapper (cross + weed overlay) */
.logo-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  display: block;
}

.weed-overlay {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
  pointer-events: none;
}

.logo-icon--footer svg {
  width: 20px;
  height: 20px;
  color: var(--color-neon);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-neon);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-neon);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 22px;
  font-size: 0.82rem;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--color-bg-glass);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.nav-mobile a:hover { color: var(--color-neon); }

/* ================================================
   HERO
   =============================================== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  contain: layout paint;
}

/* Gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(57, 255, 133, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(31, 174, 84, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(57, 255, 133, 0.04) 0%, transparent 50%),
    linear-gradient(160deg, #080e0a 0%, #0a1a0c 50%, #080e0a 100%);
}

/* Animated particle grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Orbiting rings */
.hero-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  animation: spin-ring 20s linear infinite;
  will-change: transform;
}

.ring-1 { width: 500px; height: 500px; animation-duration: 25s; }
.ring-2 { width: 700px; height: 700px; animation-duration: 40s; animation-direction: reverse; border-color: var(--color-border-light); }
.ring-3 { width: 900px; height: 900px; animation-duration: 60s; border-color: rgba(57, 255, 133, 0.04); }

.ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-neon);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-neon);
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-neon-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neon);
  margin-bottom: 28px;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 133, 0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(57, 255, 133, 0); }
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-neon);
  border-radius: 50%;
  animation: dot-blink 1.5s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 8px;
}

.hero-title .accent {
  color: var(--color-neon);
  text-shadow: 0 0 40px rgba(57, 255, 133, 0.4);
  display: block;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
  margin-bottom: 48px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-neon);
  flex-shrink: 0;
}

.hero-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-dim);
}

.hero-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-neon), var(--color-neon-dim));
  color: var(--color-bg-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

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

/* ================================================
   PROGRAMMATION
   =============================================== */
#programmation {
  padding: 100px 0;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

#programmation::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-neon), transparent);
}



/* Grille artistes */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.artist-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.artist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(57, 255, 133, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.artist-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-neon-dim);
  box-shadow: var(--shadow-neon), var(--shadow-float);
}

.artist-card:hover::before { opacity: 1; }

/* Placeholder image artiste */
.artist-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #0f2014, #1a3320);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Quand une vraie image est présente */
.artist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-dim);
}

.artist-img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.artist-img-placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artist-headliner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-neon);
  color: var(--color-bg-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
}

.artist-info {
  padding: 20px;
}

.artist-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.artist-genre {
  font-size: 0.8rem;
  color: var(--color-neon);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.artist-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.artist-time svg {
  width: 14px;
  height: 14px;
  color: var(--color-neon);
}

.artist-stage {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: 8px;
  padding: 3px 10px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
}



/* ================================================
   PARTENAIRES
   =============================================== */
#partenaires {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
}

/* Equal partner grid */
.partners-equal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.partner-logo-link {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.partner-logo-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57, 255, 133, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.partner-logo-link:hover {
  border-color: var(--color-neon-dim);
  transform: translateY(-6px);
  box-shadow: var(--shadow-neon), var(--shadow-float);
}

.partner-logo-link:hover::before { opacity: 1; }

.partner-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.9);
  transition: filter var(--transition), transform var(--transition);
}

.partner-logo-link:hover img {
  filter: brightness(1) saturate(1);
}

.partner-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* ================================================
   INFOS PRATIQUES
   =============================================== */
#infos {
  padding: 100px 0;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

#infos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-neon), transparent);
}

.infos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .infos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .infos-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .infos-grid > * {
    min-width: 0;
  }

  .info-card {
    padding: 24px 20px;
    justify-content: flex-start;
  }

  /* Stop ring animations on mobile — too expensive during scroll */
  .ring {
    animation-play-state: paused;
  }
}

.info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card:hover {
  border-color: var(--color-neon-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--color-neon-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-neon);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.info-card-body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.info-card-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.info-card-body a {
  color: var(--color-neon);
  transition: color var(--transition);
  word-break: break-all;
  overflow-wrap: break-word;
}

.info-card-body a:hover { color: #fff; }

/* Réseaux sociaux */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  border-color: var(--color-neon);
  color: var(--color-neon);
  background: var(--color-neon-subtle);
}

/* ================================================
   FOOTER
   =============================================== */
footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.footer-logo svg {
  width: 20px;
  height: 20px;
  color: var(--color-neon);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-neon); }

/* ================================================
   RESPONSIVE — MOBILE FIRST
   =============================================== */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }

  .nav-burger { display: flex; }

  .container { padding: 0 12px; }

  .hero-title { font-size: clamp(3.5rem, 18vw, 7rem); }

  .hero-meta-divider { display: none; }
  .hero-meta { flex-direction: column; gap: 8px; }

  .hero-actions { flex-direction: column; align-items: center; }

  .ring { display: none; }

  .section-title { font-size: 2rem; }

  .presented-by { padding: 32px 20px; }

  .partners-equal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .partners-equal-grid > * { min-width: 0; }

  .partner-logo-link { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .footer-links { justify-content: center; }
}

@media (min-width: 769px) {
  .nav-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .artist-grid { grid-template-columns: 1fr; }
}
