/* ============================================
   ZAM-ZAM — Système de design
   Acoustique, organique, terreux.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --sable:        #F5EDE0;
  --sable-deep:   #EAE0CC;
  --bois:         #3A2E22;
  --bois-clair:   #6B5847;
  --ocre:         #B5651D;
  --ocre-vif:     #C97A30;
  --mousse:       #6B7A52;
  --nuit:         #1A1410;
  --nuit-soft:    #241C15;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container: 1100px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--sable);
  color: var(--bois);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ============================================
   Texture de fond — grain de papier/bois léger
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Navigation
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 46, 34, 0.12);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bois);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo span { color: var(--ocre); }

.logo-with-mark {
  display: flex;
  align-items: center;
}
.logo-mark {
  height: 52px;
  width: auto;
  display: block;
}
.logo-mark-footer {
  filter: invert(1) brightness(1.6);
  height: 44px;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bois-clair);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--ocre);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bois);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--bois);
  display: block;
}

/* ============================================
   Forme d'onde signature — fil conducteur du site
   ============================================ */
.waveline {
  width: 100%;
  height: 60px;
  display: block;
}
.waveline path {
  fill: none;
  stroke: var(--ocre);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.55;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) 0 var(--space-4);
  z-index: 2;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(245,237,224,0.97) 0%,
    rgba(245,237,224,0.93) 30%,
    rgba(245,237,224,0.55) 60%,
    rgba(245,237,224,0.25) 100%);
}

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

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mousse);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--bois);
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ocre);
}

.hero-sub {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--bois-clair);
  max-width: 42ch;
  font-weight: 400;
}

.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--bois);
  color: var(--sable);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(58, 46, 34, 0.25);
}

.btn-outline {
  border-color: var(--bois);
  color: var(--bois);
}
.btn-outline:hover {
  background: var(--bois);
  color: var(--sable);
  transform: translateY(-2px);
}

.hero-wave-wrap {
  margin-top: var(--space-5);
}

/* ============================================
   Sections génériques
   ============================================ */
section {
  position: relative;
  z-index: 2;
  padding: var(--space-6) 0;
}

.section-dark {
  background: var(--nuit);
  color: var(--sable);
}
.section-dark .section-label { color: var(--ocre-vif); }
.section-dark h2 { color: var(--sable); }
.section-dark p { color: #C9BFAE; }

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocre);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: var(--space-4);
}

/* ============================================
   BIO
   ============================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}

.bio-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--sable-deep);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58,46,34,0.1);
}

.bio-portrait .ph-icon { width: 64px; height: 64px; opacity: 0.25; }

.bio-text p {
  font-size: 1.05rem;
  color: var(--bois-clair);
  margin-bottom: var(--space-3);
  max-width: 56ch;
}

.bio-text > p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--bois);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: var(--space-4);
}

.bio-member {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(58, 46, 34, 0.1);
}
.bio-member:last-of-type { border-bottom: none; }

.bio-member h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ocre);
  margin-bottom: 0.5rem;
}
.bio-member p { margin-bottom: 0; }

.bio-meta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(58, 46, 34, 0.15);
}

.bio-meta-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mousse);
  font-weight: 600;
  margin-bottom: 4px;
}
.bio-meta-item .value {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ============================================
   MEDIA — pistes / vidéos
   ============================================ */
.media-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(245, 237, 224, 0.15);
}

.media-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(245, 237, 224, 0.15);
}

.media-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ocre-vif);
  font-style: italic;
}

.media-info { width: 100%; }

.media-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.media-row audio {
  width: 100%;
  height: 38px;
  filter: invert(0.88) sepia(0.15) saturate(0.6) hue-rotate(335deg);
}

/* ============================================
   Pochettes d'albums
   ============================================ */
.albums-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.album-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--nuit-soft);
  border: 1px solid rgba(245, 237, 224, 0.12);
  border-radius: 8px;
  padding: 12px;
  flex: 1;
}

.album-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.album-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}
.album-sub {
  font-size: 0.78rem;
  color: #9A8F7B;
  margin-top: 2px;
}

.video-frame {
  margin-top: var(--space-5);
  aspect-ratio: 16/9;
  background: var(--nuit-soft);
  border: 1px solid rgba(245, 237, 224, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  overflow: hidden;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.video-frame .ph-icon { width: 48px; height: 48px; opacity: 0.3; }
.video-frame span { color: #9A8F7B; font-size: 0.9rem; }

/* ============================================
   PHOTOS
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.photo-grid .ph-1 { grid-column: span 2; grid-row: span 2; }

.photo-item {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--sable-deep);
  border: 1px solid rgba(58,46,34,0.1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photo-grid .ph-1 { aspect-ratio: auto; }
.photo-item .ph-icon { width: 36px; height: 36px; opacity: 0.2; }
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.04); }

/* ============================================
   CONCERTS
   ============================================ */
.tabs-toggle {
  display: inline-flex;
  border: 1px solid rgba(58, 46, 34, 0.2);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: var(--space-4);
}
.tabs-toggle button {
  border: none;
  background: none;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--bois-clair);
  transition: all 0.25s ease;
}
.tabs-toggle button.active {
  background: var(--bois);
  color: var(--sable);
}

.gig-list { display: flex; flex-direction: column; }
.gig-panel { display: none; }
.gig-panel.active { display: flex; flex-direction: column; }

.gig-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(58, 46, 34, 0.12);
}

.gig-date {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ocre);
  font-size: 1.1rem;
  line-height: 1.2;
}
.gig-date .day { font-size: 1.8rem; font-weight: 500; display: block; font-style: normal; }

.gig-info .venue {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.gig-info .place {
  font-size: 0.85rem;
  color: var(--bois-clair);
  margin-top: 2px;
}

.gig-row.past { opacity: 0.55; }
.gig-row.past .gig-date { color: var(--mousse); }

/* ============================================
   SPOTIFY
   ============================================ */
.spotify-block {
  background: var(--sable-deep);
  border: 1px solid rgba(58,46,34,0.1);
  border-radius: 12px;
  padding: var(--space-4);
}
.spotify-albums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.spotify-embed-wrap {
  border-radius: 8px;
  overflow: hidden;
}
.spotify-note {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--bois-clair);
}
.spotify-note code {
  background: rgba(58,46,34,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--nuit);
  color: #9A8F7B;
  padding: var(--space-4) 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-row .logo { color: var(--sable); }
.footer-links { display: flex; gap: var(--space-3); }
.footer-links a { font-size: 0.85rem; transition: color 0.25s ease; }
.footer-links a:hover { color: var(--ocre-vif); }
.footer-copy { font-size: 0.78rem; margin-top: var(--space-3); opacity: 0.6; }

/* ============================================
   Placeholder icon (générique, remplaçable)
   ============================================ */
.ph-icon { color: var(--bois-clair); }

/* ============================================
   BACKLINE
   ============================================ */
.backline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.backline-card {
  background: var(--sable-deep);
  border: 1px solid rgba(58, 46, 34, 0.12);
  border-radius: 8px;
  padding: var(--space-3);
}

.backline-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ocre);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(58, 46, 34, 0.1);
}

.backline-contact-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.backline-link {
  display: block;
  color: var(--bois-clair);
  font-size: 0.9rem;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.backline-link:hover { color: var(--ocre); }

.backline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.backline-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mousse);
  font-weight: 600;
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid rgba(58, 46, 34, 0.1);
}
.backline-table td {
  padding: 7px 8px 7px 0;
  color: var(--bois-clair);
  border-bottom: 1px solid rgba(58, 46, 34, 0.06);
}
.backline-table td:first-child { color: var(--ocre); font-weight: 600; }

.backline-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.backline-notes li {
  font-size: 0.9rem;
  color: var(--bois-clair);
  padding-left: 16px;
  position: relative;
}
.backline-notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ocre);
}

.backline-download {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.backline-download p {
  font-size: 0.9rem;
  color: var(--bois-clair);
}
.backline-btn {
  align-self: flex-start;
  margin-top: auto;
}
.backline-version {
  font-size: 0.75rem !important;
  opacity: 0.5;
  margin-top: 4px;
}

/* ============================================
   Reveal au scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .ph-1 { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .spotify-albums { grid-template-columns: 1fr; }
  .backline-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--sable);
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-3);
    border-bottom: 1px solid rgba(58,46,34,0.12);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .gig-row { grid-template-columns: 70px 1fr; }
  .gig-row .btn { grid-column: 1 / -1; margin-top: 8px; }

  .albums-row { flex-direction: column; }
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      rgba(245,237,224,0.6) 0%,
      rgba(245,237,224,0.95) 55%,
      rgba(245,237,224,0.98) 100%);
  }
}

@media (max-width: 540px) {
  .wrap { padding: 0 var(--space-2); }
  section { padding: var(--space-5) 0; }
  .hero { min-height: auto; padding-top: var(--space-4); }
  .media-row { grid-template-columns: 30px 1fr; }
  .logo-mark { height: 40px; }
}
