/* ═══════════════════════════════════════════════
   BARBAR'YANN — Styles communs
   ═══════════════════════════════════════════════ */

:root {
  --gold:  #c8973a;
  --dark:  #1a1008;
  --parch: #8b6228;
  --red:   #9b1a1a;
  --cream: #e8d5a3;
  --smoke: rgba(0,0,0,0.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  font-family: 'IM Fell English', serif;
  color: var(--cream);
  min-height: 100vh;
}

/* ── BACKGROUND & DÉCORS ── */
.bg {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #0d0800 0%, #2a1500 50%, #0d0800 100%);
  z-index: 0;
}

.grain {
  position: fixed; inset: 0; z-index: 1;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.5;
}

.vignette {
  position: fixed; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

@keyframes flicker {
  0%,100% { opacity: 0.08; } 50% { opacity: 0.14; }
}
.ambient {
  position: fixed;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,100,20,0.15) 0%, transparent 70%);
  bottom: -300px; left: 50%; transform: translateX(-50%);
  pointer-events: none; z-index: 2;
  animation: flicker 3s ease-in-out infinite;
}

/* ── ICÔNE AXES SVG (séparateur) ── */
.sep-axes-svg { fill: var(--gold); }

/* ── LAYOUT PAGE ── */
.page {
  position: relative; z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
  animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HEADER PAGES SECONDAIRES ── */
.header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, #0d0800 70%, transparent);
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
  opacity: 0.8;
}
.back-link:hover { opacity: 1; }

.header-title {
  font-family: 'Pirata One', cursive;
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(200,151,58,0.4);
}

.header-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  letter-spacing: 0.3em;
  color: rgba(232,213,163,0.7);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ── NAVIGATION ENTRE PAGES ── */
.nav-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
  padding-bottom: 0.5rem;
}

.nav-tab {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.55rem, 2.5vw, 0.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(200,151,58,0.45);
  border-radius: 2px;
  transition: all 0.25s;
  white-space: nowrap;
}
.nav-tab:hover, .nav-tab.active {
  color: var(--dark);
  background: var(--gold);
  border-color: var(--gold);
}

/* ── SÉPARATEUR DÉCORATIF ── */
.sep {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0 1.8rem;
}
.sep-line { flex: 1; height: 1px; background: var(--gold); opacity: 0.45; }
.sep-axes { flex-shrink: 0; }

/* ── FOOTER ── */
.footer-mention {
  position: fixed;
  bottom: 0.6rem; left: 0; right: 0;
  text-align: center;
  font-size: clamp(0.5rem, 2vw, 0.62rem);
  letter-spacing: 0.12em;
  color: rgba(200,151,58,0.25);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  z-index: 20;
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 2.2rem; right: 1rem;
  width: 40px; height: 40px;
  border: 1px solid rgba(200,151,58,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  text-decoration: none;
  font-size: 1rem;
  z-index: 30;
  transition: all 0.3s;
  background: rgba(13,8,0,0.7);
}
.scroll-top:hover { background: var(--gold); color: var(--dark); }

/* ── BOUTON GÉNÉRIQUE ── */
.btn {
  display: inline-block;
  padding: 0.65rem 2rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 3vw, 0.85rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.btn:hover { color: var(--dark); }
.btn:hover::before { transform: translateX(0); }
.btn span { position: relative; }

/* ═══════════════════════════════════════════════
   CARTE — styles spécifiques
   ═══════════════════════════════════════════════ */

.section { margin-bottom: 1rem; }

.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(200,151,58,0.5));
}

.section-title {
  font-family: 'Pirata One', cursive;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(200,151,58,0.6), transparent);
}

.subsection-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  margin: 1.2rem 0 0.6rem;
  border-left: 2px solid rgba(200,151,58,0.6);
  padding-left: 0.6rem;
}

.item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(200,151,58,0.15);
  transition: background 0.2s;
}
.item:last-child { border-bottom: none; }
.item:hover { background: rgba(200,151,58,0.07); margin: 0 -0.5rem; padding: 0.65rem 0.5rem; border-radius: 3px; }

.item-left { flex: 1; }

.item-name {
  font-family: 'IM Fell English', serif;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  color: #f5e8c8;
}

.item-desc {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  color: rgba(232,213,163,0.75);
  margin-top: 0.15rem;
}

.item-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e05555;
  border: 1px solid rgba(224,85,85,0.5);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.item-price {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.88rem, 3vw, 1rem);
  color: #e0aa50;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}

.carte-note {
  text-align: center;
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(232,213,163,0.6);
  margin-top: 2rem;
  line-height: 1.8;
  border-top: 1px solid rgba(200,151,58,0.2);
  padding-top: 1.2rem;
}

/* ═══════════════════════════════════════════════
   ÉVÈNEMENTS — styles spécifiques
   ═══════════════════════════════════════════════ */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(200,151,58,0.15);
  animation: fadeIn 0.5s ease both;
  text-decoration: none;
  color: inherit;
}
.event-card:last-child { border-bottom: none; }
.event-card:hover .event-title { color: #f5e8c8; }
.event-card:hover .event-date-box { border-color: var(--gold); background: rgba(200,151,58,0.12); }

.event-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,151,58,0.4);
  border-radius: 4px;
  padding: 0.5rem 0.3rem;
  background: rgba(200,151,58,0.06);
  transition: all 0.3s;
  flex-shrink: 0;
  height: fit-content;
  align-self: start;
  margin-top: 0.1rem;
}

.event-day {
  font-family: 'Pirata One', cursive;
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
}

.event-month {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,151,58,0.8);
  margin-top: 0.1rem;
}

.event-body { flex: 1; }

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.event-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid;
}

.event-tag-concert  { color: #e09050; border-color: rgba(224,144,80,0.5); }
.event-tag-dj       { color: #9b6fd4; border-color: rgba(155,111,212,0.5); }
.event-tag-soiree   { color: #50a0e0; border-color: rgba(80,160,224,0.5); }
.event-tag-jeu      { color: #50c878; border-color: rgba(80,200,120,0.5); }
.event-tag-other    { color: var(--cream); border-color: rgba(232,213,163,0.4); }
.event-tag-gratuit  { color: #50c878; border-color: rgba(80,200,120,0.4); }
.event-tag-reservation { color: #e09050; border-color: rgba(224,144,80,0.4); }

.event-title {
  font-family: 'Pirata One', cursive;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1.2;
  transition: color 0.2s;
}

.event-desc {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  color: rgba(232,213,163,0.75);
  margin-top: 0.3rem;
  line-height: 1.6;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.event-meta-item {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(200,151,58,0.7);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.events-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(232,213,163,0.5);
  font-style: italic;
}

.month-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 2.5vw, 0.8rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(200,151,58,0.6);
  padding: 0.5rem 0 0.8rem;
  border-bottom: 1px solid rgba(200,151,58,0.2);
  margin-top: 0.5rem;
}
