/* =========================================================
   GLOBAL — École de Batterie · Florent GUILLAMIN
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,400;0,600;1,600&family=Inter:wght@400;500&display=swap');

/* ── View Transitions ─────────────────────────────────── */
@view-transition { navigation: auto; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(root) { animation: fadeOut 0.3s ease; }
::view-transition-new(root) { animation: fadeIn  0.3s ease; }

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --bg-deep:    #0C0A08;
  --bg-surface: #130F0B;
  /* Le Mans deep blue — primary accent */
  --blue:       #1B5FA8;
  --blue-dim:   rgba(27, 95, 168, 0.22);
  --blue-light: #4A8FD4;
  /* Warm walnut brown — secondary accent */
  --brown:      #8C5E38;
  --brown-light:#B07D52;
  --brown-dim:  rgba(140, 94, 56, 0.2);
  /* Legacy alias so existing rules still compile */
  --gold:       var(--blue);
  --gold-dim:   var(--blue-dim);
  --text:       #F2EAE0;
  --text-muted: #9A8E82;
  --stroke:     #281F17;
  --font-display: 'Bebas Neue', sans-serif;
  --font-sub:     'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --nav-h: 68px;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: opacity 0.5s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 44px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo-sub {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1010;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 2px solid var(--brown);
  padding: 4rem 5vw 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col-title {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-contact-item a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--gold); }
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}
.footer-nav-links a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--stroke);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Page header (tarifs / contact) ──────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 2rem;
  padding-left: 5vw;
  padding-right: 5vw;
}

/* ── Utilities ────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
