/* ---- GLOBAL ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #111;
  color: #eee;
  overflow-x: hidden;
}

section {
  padding: 100px 10%;
  min-height: 100vh;
}

/* Correction du scroll pour éviter que le header fixe cache les titres */
html {
  scroll-padding-top: 90px; /* hauteur de ton bandeau noir */
  scroll-behavior: smooth;   /* défilement fluide */
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  padding: 1rem 2rem;
  z-index: 1000;
}

/* Logo */
.site-header .logo img {
  height: 120px;
  width: auto;
  display: block;
}

/* Navigation centrée */
.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  color: #d4af37;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
}

.main-nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px #d4af37, 0 0 12px #d4af37;
}

/* Burger à droite */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  float: right;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #d4af37;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Nettoyage du flux */
.site-header::after {
  content: "";
  display: table;
  clear: both;
}

/* ---- HERO ---- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("../images/1000040105 B&G.jpg") no-repeat center center/cover;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;

  /* Parallaxe */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* ---- MOBILE-FRIENDLY PARALLAX ---- */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* ---- HERO TITLE ---- */
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 6rem;
  letter-spacing: 1px;
  color: #d4af37;
  margin-bottom: 0.6rem;
  text-align: center;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---- SECTIONS ---- */
.section {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- ARTISTES ---- */
.artistes-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.artiste-card {
  background: #222;
  border-radius: 10px;
  padding: 1rem;
  width: 250px;
  transition: transform 0.3s;
}

.artiste-card:hover {
  transform: scale(1.05);
}

.artiste-card img {
  width: 100%;
  border-radius: 10px;
}

.artiste-card h3 {
    margin-top: 10px;      /* espace entre l'image et le titre */
    margin-bottom: 10px;   /* espace entre le titre et le texte */
}


/* ---- GALERIE ---- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-tabs .tab {
  background: transparent;
  border: 2px solid #d4af37;
  color: #d4af37;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.gallery-tabs .tab:hover,
.gallery-tabs .tab.active {
  background: #d4af37;
  color: #000;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-container img {
  max-width: 300px;     /* limite la taille sans forcer */
  width: 100%;          /* s’adapte au conteneur */
  height: auto;         /* conserve les proportions */
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: none;
  object-fit: contain;
  background: #000; /* pour combler si des bandes apparaissent */
}

.gallery-container img.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* ---- FORMULAIRE CONTACT ---- */
#contact-form {
  max-width: 700px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#contact-form .form-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 140px;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #eee;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="subject"] {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #eee;
}

.btn-submit {
  grid-column: 1 / -1;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #d4af37;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
}

.contact-note {
  margin-top: 0.8rem;
  color: #aaa;
  font-size: 0.95rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Messages d’erreur */
.error-message {
  color: #ff4c4c;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  display: block;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  color: #999;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .burger {
    display: flex;
    position: absolute;
    right: 2rem;
    top: 1.5rem;
  }

  .main-nav {
    position: static;
    transform: none;
    display: none;
    width: 100%;
    background: #000;
    margin-top: 1rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 1rem;
  }

  .gallery-container img {
    width: 90%;
  }
}

/* ---- GALERIE : VERSION MOBILE (slider horizontal des onglets) ---- */
@media (max-width: 600px) {
  .gallery-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1rem;
    gap: 1rem;
    scrollbar-width: none; /* masque la barre sur Firefox */
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none; /* masque la barre sur Chrome/Safari */
  }

  .gallery-tabs .tab {
    flex: 0 0 auto; /* empêche la compression des boutons */
    white-space: nowrap;
  }
}

/* ---- RÉSEAUX SOCIAUX ---- */
/* FIXED: removed negative margin and set sensible spacing */
.socials {
  margin-top: 3rem;
  text-align: center;
}

.socials h3 {
  font-family: "Cinzel", serif;
  color: #d4af37;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-item {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 1rem;
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* keep the same hover — provides the halo */
.social-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* images size */
.social-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* keep no CSS filter (we removed doré filter earlier) but transition for transform */
.social-item img:not(.qr) {
  filter: none;
  transition: transform 0.3s ease;
}

/* zoom the image when the anchor is hovered (ensures clickable area covers img) */
.social-item a {
  display: block; /* FIXED: anchor covers whole image area so clicks register */
  text-decoration: none;
}

.social-item a:hover img:not(.qr) {
  transform: scale(1.1);
}

/* QR code styling */
.social-item .qr {
  width: 100px;
  height: 100px;
  margin-top: 0.5rem;
  border-radius: 8px;
}

/* text under icon */
.social-item p {
  margin: 0.5rem 0;
  color: #eee;
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 600px) {
  .social-item {
    width: 140px;
  }
  .social-item .qr {
    width: 80px;
    height: 80px;
  }
}

/* --- Correction hover doré sur les icônes sociales (kept lightweight) --- */
/* we keep background transparent and the transform effect on hover; box-shadow on container provides halo */
.social-item a {
  background: transparent !important;
  border: none !important;
}

.social-item a img {
  display: block;
  background: transparent !important;
  border: none !important;
  transition: transform 0.3s ease;
}

.social-item a:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Correction du carré jaune sur les QR codes --- */
.social-item .qr {
  filter: none !important; /* ensure QR not recolored */
  background: transparent !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-item .qr:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5); /* halo doré propre */
  border-radius: 8px;
}

/* --- Correction alignement champ Emplacement --- */
#emplacement {
  margin-top: -5.5rem; /* remonte la boîte, ajuste la valeur si besoin */
}

/* ---- ZOOM AU SURVOL DANS LA GALERIE ---- */
.gallery-container img {
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-container img:hover {
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  z-index: 2;
  position: relative;
}

/* ---- HERO TITLE RESPONSIVE ---- */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;   /* taille correcte sur smartphone */
    line-height: 1.2;
  }
}

.visit-counter {
  margin-top: 3rem;
  text-align: center;
  color: #d4af37;
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
}

.visit-counter img {
  margin-top: 0.5rem;
}

