/* ═══════════════════════════════════════════════════════════
   DISCOTHEEK WILLY'S MOUSTACHE — Stylesheet
   Editorial dark theme · Playfair Display + Inter
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --ink:       #0E0B16;
  --stone:     #1A1726;
  --cream:     #F5F0E8;
  --mist:      #D6CFC4;
  --ember:     #E84855;
  --moss:      #2D6A4F;
  --gold:      #D4A843;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;
  --radius:    0.375rem;
  --radius-lg: 0.75rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cream);
  background-color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Typography ────────────────────────────────────────── */
.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--cream);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mist);
  margin-top: var(--space-sm);
  max-width: 500px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}
.btn-primary:hover {
  background: #d03a47;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 72, 85, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  background: var(--ember);
  color: #fff;
}
.btn-small:hover {
  background: #d03a47;
  transform: translateY(-2px);
}

/* ── Header / Navigation ───────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition);
}

#header.scrolled {
  background: rgba(14, 11, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }

.logo-willy {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.logo-moustache {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ember);
  letter-spacing: 0.02em;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--ember);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: #d03a47;
  transform: translateY(-1px);
}

#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1010;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger → X animation */
#menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img-d3e1f1efa547.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

#hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 11, 22, 0.6) 0%,
    rgba(14, 11, 22, 0.4) 40%,
    rgba(14, 11, 22, 0.7) 80%,
    rgba(14, 11, 22, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--mist);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

/* ── Countdown ─────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  min-width: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin-top: 0.35rem;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 1rem;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--mist);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.scroll-hint:hover { color: var(--cream); }

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

/* ── Schedule Section ──────────────────────────────────── */
.section-schedule {
  background: var(--stone);
  padding: var(--space-2xl) 0;
}

.schedule-header { text-align: center; margin-bottom: var(--space-xl); }

.schedule-strip {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.schedule-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 60px;
}

.day-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.day-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

.day-dot-active {
  width: 22px;
  height: 22px;
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 20px rgba(232, 72, 85, 0.5);
}

.day-dot-special {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 168, 67, 0.4);
}

.day-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
}

.schedule-day-special .day-tag { color: var(--gold); }

/* ── Events Section ────────────────────────────────────── */
.section-events {
  padding: var(--space-2xl) 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.event-card {
  position: relative;
  background: var(--stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(232, 72, 85, 0.2);
}

.event-date-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 3;
  background: var(--ember);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  text-align: center;
  line-height: 1.1;
}

.event-day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.event-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.event-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-info {
  padding: var(--space-md);
}

.event-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.35rem;
  display: block;
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.event-date-text {
  display: block;
  font-size: 0.85rem;
  color: var(--mist);
  margin-bottom: var(--space-sm);
}

/* ── Formules Section ──────────────────────────────────── */
.section-formules {
  background: var(--stone);
  padding: var(--space-2xl) 0;
}

.formules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.formule-card {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.formule-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.formule-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.formule-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.formule-card:hover .formule-image img {
  transform: scale(1.05);
}

.formule-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 11, 22, 0.9) 100%);
}

.formule-content {
  padding: var(--space-md);
}

.formule-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.formule-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--cream);
}

.formule-desc {
  font-size: 0.95rem;
  color: var(--mist);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* ── Gallery Section ───────────────────────────────────── */
.section-gallery {
  padding: var(--space-2xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-xs);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

/* ── Newsletter Section ────────────────────────────────── */
.section-newsletter {
  background: var(--stone);
  padding: var(--space-2xl) 0;
}

.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.newsletter-desc {
  color: var(--mist);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--ink);
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(214, 207, 196, 0.5);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--ember);
}

.newsletter-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  flex-shrink: 0;
}

.newsletter-success {
  margin-top: var(--space-sm);
  color: var(--ember);
  font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.footer-logo .logo-willy { font-size: 1.5rem; }
.footer-logo .logo-moustache { font-size: 0.95rem; }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--mist);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: var(--space-sm);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--mist);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--cream); }

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--mist);
  transition: color var(--transition);
  line-height: 1.4;
}

.contact-item:hover { color: var(--cream); }
.contact-item svg { flex-shrink: 0; margin-top: 2px; stroke: var(--ember); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(214, 207, 196, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(214, 207, 196, 0.5);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--cream); }

/* ── Scroll Animations ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  #menu-toggle {
    display: flex;
  }

  #main-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 11, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1005;
  }

  #main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  #main-nav .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.02em;
  }

  #main-nav .nav-link::after { display: none; }

  #main-nav .nav-cta {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-number {
    font-size: 1.5rem;
    padding: 0.4rem 0.55rem;
    min-width: 48px;
  }

  .countdown-label {
    font-size: 0.55rem;
  }

  .countdown-sep {
    font-size: 1.2rem;
  }

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

  .events-grid {
    grid-template-columns: 1fr;
  }

  .formules-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item-tall { grid-row: span 1; }
  .gallery-item-wide { grid-column: span 1; }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    border-right: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    margin-bottom: var(--space-xs);
  }

  .newsletter-form .btn {
    border-radius: var(--radius);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .schedule-strip {
    gap: 1rem;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .countdown {
    gap: 0.3rem;
  }

  .countdown-number {
    font-size: 1.25rem;
    padding: 0.35rem 0.45rem;
    min-width: 42px;
  }
}
