/* === GALERIE ARTISTES MAKABRE === */

/* ═══════════════════════════════════════════════════════
   CORRECTION DÉCALAGE HORIZONTAL - PRIORITÉ ABSOLUE
   ═══════════════════════════════════════════════════════ */

/* Forcer toutes les sections à rester dans l'écran */
.artists-gallery,
.section-banner,
.artist-block-gallery,
.gallery-grid,
.separator {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Corriger le padding qui déborde */
@media (max-width: 768px) {
  .artists-gallery {
    padding: 60px 2% !important; /* Réduire de 5% à 2% */
  }
  
  .section-banner {
    padding-left: 2% !important;
    padding-right: 2% !important;
  }
}

/* S'assurer que rien ne dépasse */
* {
  box-sizing: border-box !important;
}

.artists-gallery {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 80px 5%;
  background: #0a0a0a;
  border-top: var(--border-decor);
  border-bottom: var(--border-decor);
}

.artist-block-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artist-profile {
  text-align: center;
  margin-bottom: 30px;
}

/* Correction photos artistes - Ratio fixe */
.artist-photo {
  max-width: 250px;
  width: 100%; /* S'adapte au conteneur */
  aspect-ratio: 1 / 1; /* ✅ Ratio carré parfait */
  object-fit: cover; /* ✅ Remplit sans déformer */
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(212,175,55,0.2);
  transition: all 0.3s ease;
}


.artist-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.artist-name {
  font-family: 'Cinzel Decorative', serif;
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-top: 15px;
  margin-bottom: 5px;
}

.artist-specialty {
  color: var(--text-gray);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 15px;
}

.artist-socials {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.artist-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.artist-socials a:hover {
  background: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.artist-socials i {
  font-size: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.artist-socials a:hover i {
  color: #000;
}

/* === GALERIE GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 650px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  border-color: rgba(212,175,55,0.5);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Overlay au survol */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Cases vides */
.gallery-item.empty {
  background: rgba(20, 20, 20, 0.5);
  border: 1px dashed rgba(212,175,55,0.2);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.empty i {
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.2);
}

.gallery-item.empty:hover {
  transform: none;
  border-color: rgba(212,175,55,0.2);
}

/* Message galerie vide */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

/* Séparateur */
.separator {
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.4), transparent);
  align-self: stretch;
}

/* === MODALE === */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.img-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid rgba(212,175,55,0.3);
  box-shadow: 0 0 40px rgba(212,175,55,0.4);
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Bouton fermer */
.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.2);
  background: var(--primary-color);
  color: #000;
}

/* Boutons navigation */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.modal-nav:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
  left: 30px;
}

.modal-nav.next {
  right: 30px;
}

/* Compteur d'images */
.modal-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  border: 1px solid var(--primary-color);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .artists-gallery {
    flex-direction: column;
    align-items: center;
  }
  
  .separator {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .modal-nav.prev {
    left: 10px;
  }
  
  .modal-nav.next {
    right: 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }
}

/* Mobile - Réduire taille mais garder ratio */
@media (max-width: 768px) {
  .artist-photo {
    max-width: 180px; /* Plus petit sur mobile */
  }
}

@media (max-width: 480px) {
  .artist-photo {
    max-width: 150px; /* Encore plus petit sur petit écran */
  }
}