/* ===== The Nikkies — palette issue de la plaquette ===== */
:root {
  --cream: #eadabe; /* fond exact du logo */
  --cream-light: #f4e9d8;
  --orange: #f0ae4a;
  --red: #e2402f;
  --ink: #1a1a1a;
  --ink-soft: #3a3530;
  --radius: 4px;
  --display: "Bungee", "Poppins", sans-serif;
  --body: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--dark { background: var(--ink); color: var(--cream-light); }
.section--accent { background: var(--orange); }

.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: .02em;
}
.title::after {
  content: "";
  display: block;
  width: 70px;
  height: 6px;
  margin-top: .8rem;
  background: linear-gradient(90deg, var(--red) 50%, var(--orange) 50%);
}
.section--accent .title::after { background: linear-gradient(90deg, var(--red) 50%, var(--ink) 50%); }
.title--light { color: var(--cream-light); }
.intro { font-size: 1.15rem; max-width: 60ch; margin: 0 0 2.5rem; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream-light); }
.btn--small { padding: .5rem 1.1rem; font-size: .8rem; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
/* Lettrage extrait du logo officiel */
.nav__brand { display: block; flex: none; line-height: 0; transition: opacity .2s; }
.nav__brand img { height: 44px; width: auto; }
.nav__brand:hover { opacity: .85; }
.nav__menu { display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 1.6rem); }
.nav__menu a {
  color: var(--cream-light);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  white-space: nowrap;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav__menu a:hover::after, .nav__menu a[aria-current]::after { transform: scaleX(1); }
.nav__menu a[aria-current] { color: var(--orange); }
.nav__menu a[href="contact.php"] { background: var(--red); padding: .45rem 1rem; border-radius: var(--radius); }
.nav__menu a[href="contact.php"]::after { display: none; }
.nav__menu a[href="contact.php"]:hover, .nav__menu a[href="contact.php"][aria-current] { background: var(--orange); color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 1060px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: .5rem; cursor: pointer; margin-left: auto;
  }
  .nav__toggle span { width: 26px; height: 3px; background: var(--cream-light); transition: .3s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1.3rem;
    padding: 1.5rem 1rem 2rem;
    background: var(--ink);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transform: none; }
  .nav__menu a { font-size: 1.1rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  overflow: hidden;
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }

.logo { margin: 0 auto; }
/* Largeur limitée par la hauteur d'écran pour garder les boutons visibles */
.logo__img { width: min(700px, 92vw, 75vh); width: min(700px, 92vw, 75svh); height: auto; margin-inline: auto; }

.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  margin: 1rem auto 2rem;
  max-width: 34ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== Agenda ===== */
.gigs { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.gig {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.3rem;
  background: #24211e;
  border-left: 6px solid var(--orange);
  transition: border-color .25s, transform .25s;
}
.gig:hover { border-color: var(--red); transform: translateX(4px); }
.gig__date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 72px; padding: .45rem .6rem;
  background: var(--red); color: #fff; line-height: 1.1;
}
.gig__day { font-family: var(--display); font-size: 2rem; line-height: 1; }
.gig__month { font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.gig__year { font-size: .72rem; opacity: .85; }
.gig__info h3 { margin: 0 0 .2rem; font-size: 1.15rem; color: var(--orange); }
.gig__info p { margin: 0; font-size: .95rem; opacity: .9; }
.gig__badge {
  display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .1rem .55rem;
  border: 1px solid var(--orange); border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.gig__links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.section--dark .btn--ghost { color: var(--cream-light); border-color: var(--cream-light); }
.section--dark .btn--ghost:hover { background: var(--cream-light); color: var(--ink); }
@media (max-width: 640px) {
  .gig { grid-template-columns: auto 1fr; }
  .gig__links { grid-column: 1 / -1; justify-content: flex-start; }
}
.gig--past { opacity: .6; border-color: #555; }
.gig--past .gig__date { background: #555; }
.gigs__empty { font-size: 1.1rem; max-width: 60ch; }
.gigs__empty a { color: var(--orange); }
.gigs__past { margin-top: 2.5rem; }
.gigs__past summary { cursor: pointer; font-weight: 700; color: var(--orange); margin-bottom: 1rem; }

/* ===== Le groupe ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__text p { margin: 0 0 1rem; }

.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stats li { border-top: 4px solid var(--red); padding-top: .6rem; }
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1; }
.stats span { font-size: .85rem; color: var(--ink-soft); line-height: 1.3; display: block; margin-top: .3rem; }

.framed {
  margin: 0;
  padding: 12px;
  background: var(--red);
  outline: 12px solid var(--orange);
  outline-offset: 0;
  margin: 12px;
  min-height: 240px;
}
.framed img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* Image manquante : fond neutre au lieu d'une icône cassée */
img.is-missing { visibility: hidden; }
.framed:has(img.is-missing), .member__photo:has(img.is-missing), .gallery__item:has(img.is-missing) {
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 12px, transparent 12px 24px);
}

/* ===== Musiciens ===== */
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
@media (max-width: 980px) { .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .members { grid-template-columns: 1fr; } }
.member__photo {
  aspect-ratio: 4 / 5;
  background-color: #2a2622;
  overflow: hidden;
  margin-bottom: 1rem;
  border-bottom: 6px solid var(--red);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .5s, filter .5s; }
.member:hover .member__photo img { transform: scale(1.05); filter: grayscale(0); }
.member h3 { margin: 0; font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.member__role { margin: 0 0 .5rem; color: var(--orange); font-weight: 600; }
.member ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; opacity: .8; }

/* ===== Répertoire ===== */
.genres { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.genre {
  background: var(--cream-light);
  padding: 1.8rem 1.5rem;
  border-left: 6px solid var(--orange);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.genre:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: var(--red); }
.genre__num { font-family: var(--display); color: var(--red); font-size: 1.4rem; }
.genre h3 { margin: .3rem 0 .5rem; font-size: 1.2rem; font-weight: 800; }
.genre p { margin: 0; color: var(--ink-soft); }

/* ===== Événements ===== */
.events { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.events li {
  background: var(--ink);
  color: var(--cream-light);
  padding: .55rem 1.1rem;
  font-weight: 600;
  border-radius: 999px;
}

/* ===== Galerie ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery__item { display: block; aspect-ratio: 1; overflow: hidden; background-color: #d8c6aa; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,.92);
  display: grid; place-items: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 95vw; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
}

/* ===== Contact ===== */
.contact { text-align: center; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.contact__card {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.8rem;
  border: 2px solid var(--orange);
  text-decoration: none;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  transition: background .2s, color .2s;
}
.contact__card svg { width: 28px; height: 28px; fill: currentColor; }
.contact__card:hover { background: var(--orange); color: var(--ink); }

/* ===== Footer ===== */
.footer { background: #111; color: #9a9088; text-align: center; padding: 2.5rem 1rem 2rem; font-size: .85rem; }
.footer p { margin: .4rem 0; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-bottom: 1.2rem; font-weight: 600; }
.footer .footer__admin { color: #6b625a; font-size: .8rem; }

/* ===== Pages intérieures ===== */
.banner {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--cream);
}
.banner::before, .banner::after { content: ""; position: absolute; top: -20%; height: 140%; transform: skewX(-28deg); }
.banner::before { right: 8%; width: clamp(60px, 12vw, 160px); background: var(--red); opacity: .9; }
.banner::after { right: calc(8% + clamp(80px, 15vw, 200px)); width: clamp(25px, 5vw, 60px); background: var(--orange); opacity: .9; }
.banner .container { position: relative; z-index: 1; }
.banner__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1; margin: 0; }
.banner__lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 46ch; margin: 1rem 0 0; font-weight: 500; }
.banner + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 700px) {
  .banner::before { right: -30px; width: 60px; }
  .banner::after { right: 50px; width: 18px; }
  .banner .container { padding-right: 70px; }
}

.empty { font-size: 1.1rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--cream-light); }
.section--dark .empty { background: #24211e; }
.empty a, .gigs__empty a { color: var(--red); font-weight: 600; }
.note { margin: 2.5rem 0 0; font-size: 1.05rem; font-style: italic; }

.cta { background: var(--red); color: #fff; padding: 2.5rem 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta p { margin: 0; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
.cta .btn { background: var(--ink); border-color: var(--ink); }
.cta .btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.hero__next {
  display: inline-block; margin-top: 2rem; padding: .7rem 1.1rem;
  background: var(--ink); color: var(--cream-light); text-decoration: none; font-size: .95rem;
  border-left: 5px solid var(--red); transition: transform .2s;
}
.hero__next strong { color: var(--orange); margin-right: .4rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.hero__next:hover { transform: translateY(-2px); }

.gigs__past-title { margin-top: 4rem; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 2rem; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-bottom: 6px solid var(--red); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h2 { margin: .9rem 0 .2rem; font-size: 1.15rem; }
.video p { margin: 0; color: var(--ink-soft); }

/* Livre d'or */
.quotes { columns: 2 340px; column-gap: 1.5rem; }
.quote {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 2.2rem 1.6rem 1.4rem;
  background: var(--cream-light);
  border-top: 6px solid var(--orange);
  position: relative;
}
.quote::before { content: "\201C"; position: absolute; top: -.1rem; left: 1rem; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--red); }
.quote p { margin: 0 0 1rem; font-size: 1.05rem; }
.quote footer strong { display: block; }
.quote footer span { font-size: .85rem; color: var(--ink-soft); }

/* Répertoire */
.genre h2 { margin: .3rem 0 .5rem; font-size: 1.2rem; font-weight: 800; }
.songs { list-style: none; margin: .6rem 0 0; padding: 0; }
.songs li { padding: .35rem 0; border-bottom: 1px solid rgba(0,0,0,.08); line-height: 1.35; }
.songs li:last-child { border: 0; }
.songs span { display: block; font-size: .85rem; color: var(--ink-soft); }

/* Scènes */
.friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.friend {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--cream-light); padding: 1.4rem; border-bottom: 5px solid var(--orange);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.friend:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.friend__logo { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #fff; margin-bottom: 1rem; overflow: hidden; }
.friend__logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.friend__logo span { font-family: var(--display); font-size: 3rem; color: var(--orange); }
.friend h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.friend .friend__city { margin: -.2rem 0 .5rem; color: var(--red); font-weight: 600; font-size: .9rem; }
.friend p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .95rem; }
.friend__link { margin-top: auto; color: var(--red); font-weight: 700; font-size: .9rem; }

/* Contact */
.contact__info { max-width: 620px; margin: 3rem auto 0; text-align: left; background: #24211e; padding: 2rem; border-left: 6px solid var(--orange); }
.contact__info h2 { margin: 0 0 .6rem; font-size: 1.2rem; color: var(--orange); }
.contact__info ul { margin: 0; padding-left: 1.2rem; }

.lightbox { grid-template-rows: 1fr auto; }
.lightbox__caption { color: #eee; margin: .8rem 0 0; text-align: center; }
.lightbox__caption:empty { display: none; }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
