html {
  font-size: 16px; /* fixe une base claire pour tout */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f3f3ee;
  color: black;
}

/* === SECTION HERO === */

.hero {
  display: flex;
  align-items: flex-start; /* ✅ remet en haut */
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 3rem; /* ✅ plus léger que min-height */
  padding: 3rem 4rem 4rem;
  box-sizing: border-box;
  gap: 2rem;
}

.hero-text {
  flex: 1; /* ✅ pas besoin de "2 1 65%" */
  padding-top: 1rem;
  padding-left: 1rem;
}

.hero-text h1 {
  font-size: 5vw;
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.hero-subtext {
  font-size: 1.8rem;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

.hero-image {
  flex: 0 0 auto; /* ✅ ne pas forcer largeur */
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: flex-start; /* ✅ garde l’image en haut */
  padding-right: 2rem;
  padding-top: 0;
}

.hero-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}

/* === RESPONSIVE === */

@media (min-width: 1600px) {
  .hero-text h1 {
    font-size: 5.5vw;
  }

  .hero-subtext {
    font-size: 2rem; /* ~32px */
  }
}

@media (min-width: 2000px) {
  .hero-text h1 {
    font-size: 6vw;
  }

  .hero-subtext {
    font-size: 2.2rem; /* ~35px */
  }
}


@media (max-width: 1400px) {
  .hero {
    padding: 2.5rem 3rem;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 4.2vw;
  }

  .hero-subtext {
    font-size: 1.4rem;
  }

  .hero-image img {
    max-width: 240px;
  }
}

@media (max-width: 1200px) {
  .hero {
    padding: 2rem 2.5rem;
    gap: 1.8rem;
  }

  .hero-text h1 {
    font-size: 4vw;
  }

.hero-subtext {
  font-size: 18px;
}

  .hero-image img {
    max-width: 210px;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 1.8rem 2rem;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 3.8vw;
  }

 .hero-subtext {
  font-size: 16px;
}

  .hero-image img {
    max-width: 190px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 1.5rem 1.5rem;
    gap: 1.2rem;
  }

  .hero-text h1 {
    font-size: 3.6vw;
  }

  .hero-subtext {
  font-size: 14px;
}

  .hero-image img {
    max-width: 170px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.2rem 1.2rem;
    gap: 1rem;
  }

  .hero-text h1 {
    font-size: 3.5vw;
  }

 .hero-subtext {
  font-size: 13px;
}

  .hero-image img {
    max-width: 150px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 1rem 1rem;
    gap: 0.8rem;
  }

  .hero-text h1 {
    font-size: 3.3vw;
  }

  .hero-subtext {
  font-size: 12px;
}

  .hero-image img {
    max-width: 130px;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 0.8rem;
    gap: 0.7rem;
  }

  .hero-text h1 {
    font-size: 3vw;
  }

  .hero-subtext {
  font-size: 11px;
}

  .hero-image img {
    max-width: 120px;
  }
}

/* === BOUTON MUSIQUE FIXE ET STYLISÉ === */

.music-button-wrapper {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1000;
}

.music-btn {
  background-color: #fff;
  color: #ffffff;
  font-family: 'Chivo Mono', monospace;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-btn:hover {
  background-color: #ffffff;
  color: #fff;
}

.music-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(255, 255, 255);
}

audio {
  display: none;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  width: 100px;
  margin-left: 0.5rem;
  background: #ddd;
  border-radius: 2px;
  vertical-align: middle;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #6d6d6d;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffff05;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  margin: 0px;
}

.gallery a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  cursor: pointer;
}

/* === Responsive Mobile : 1 colonne === */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* === Anim === */
.gallery-item {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.6s ease forwards;
}

.gallery-item {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
