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

html, body {
  height: 100%;
  background: rgb(0, 0, 0);
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
}

/* STRUCTURE DE PAGE */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* HEADER */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: rgb(0, 0, 0);
  padding: 0px 20px;
  position: relative;
}

/* BURGER À GAUCHE */
.burger-btn {
  justify-self: start;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.burger-btn span {
  height: 3px;
  background-color: #fff;
  transition: 0.1s ease;
  border-radius: 2px;
}

/* LOGO AU CENTRE */
.logo-img {
  height: 150px;
  object-fit: cover;
  justify-self: center; 
}

/* ANIMATION BURGER */
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MENU BURGER */
.burger-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 90px;
  left: 10px;
  background: #111;
  border: 1px solid #333;
  padding: 15px 20px;
  z-index: 100;
}

.burger-menu ul {
  list-style: none;
}

.burger-menu li {
  margin-bottom: 10px;
}

.burger-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
.burger-menu a:hover {
  color: #f39c12;
}

/* FOOTER */
footer {
  background-color: #111;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
}

.artists-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
  margin-top: 10px;
  margin-left: 10px;

}

.artist-card {
  position: relative;
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 400px;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  cursor: pointer;
}

.photo-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-stack img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.photo-stack img:first-child {
  opacity: 1;
}

/* Au survol : on fera défiler via JS ou animation */
.artist-card:hover .photo-stack img {
  opacity: 0;
}
.artist-card:hover .photo-stack img:nth-child(2) {
  opacity: 1;
}

/* Overlay d'infos */
.artist-info-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.8);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.artist-card:hover .artist-info-overlay {
  transform: translateY(0);
}

.view-more {
  margin-top: 10px;
  background: #ff0000;
  border: none;
  padding: 8px 12px;
  color: #000;
  cursor: pointer;
  border-radius: 4px;
}



@media (max-width: 900px) {
  .artists-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .artists-container {
    grid-template-columns: 1fr;
    padding: 10px; /* évite une marge trop grande */
  }

  .artist-card {
    width: 100%;
    margin: 0 auto; /* centre la carte */
  }
}

.artist-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* EFFET AU SURVOL */
.artist-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6); /* orange glow */
}

.artist-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

