* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --based-color: rgba(254,0,0,255);
    --yellow-color: rgba(252,185,6,255);
}

#accueil {
  font-family: 'Poppins', sans-serif;
  /* background-image: url('../../images/Fond_page_accueil/Fond_ecran_accueil.png'); */
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh; /* pour que le footer soit bien en bas même si le contenu est court */
  padding-bottom: 100px; /* pour ne pas que le footer chevauche le contenu */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/Fond_page_accueil/Fond_ecran_accueil.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  background-attachment: fixed; /* pour qu'elle reste fixe au scroll */

  z-index: -1;
  pointer-events: none; /* pour que ça ne bloque pas les clics */
  filter:  brightness(1) contrast(1.2) ; /* réduit la luminosité à 50% */
}

.fond-accueil::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.552); /* voile blanc */
  pointer-events: none;
  z-index: -1;
}

.test {
    width:100%;
}

/* ----- GESTION IMAGE FANSMARE ----- */

.fansmare-title {
    background-color: var(--based-color);
    margin: 0;
    width: 100%;
    border-radius: 0% 0% 100% 0% / 0% 0% 39% 0%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.fansmare-presentation {
  display: flex;
  align-items: center; /* centre verticalement */
  justify-content: flex-start;
}

.fansmare-presentation img {
  width: 30vw;
  height: auto;
  flex-shrink: 0; /* empêche l’image de rétrécir */
  align-items: center;
  padding: 10px;
}

.fansmare-presentation h1 {
  font-size: clamp(1.5rem, 6vw, 70px);
  color: var(--yellow-color);
  -webkit-text-stroke: 1px black; /* Pour la compatibilité WebKit */
  font-family: 'PoliceTitre', sans-serif;
  flex: 1; /* prend l’espace restant */
  padding: 30px;
  text-align: center;
  transform: rotate(-3deg);
}

/* ----- GESTION PRESENTATION PAGE ACCUEIL ----- */

.presentation-fansmare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 30px;
  flex-wrap: wrap; /* pour que ça passe en colonne sur mobile */
}

.presentation-container {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: white;
  text-align: left;
  flex: 1;
}

.presentation-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--yellow-color, #FFD700);
}

.presentation-container p {
  font-size: 1.2rem;
  line-height: 1.7;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.5); }
}
.presentation-image {
  position: relative;
  display: flex;
  cursor: pointer;
  flex: 0.5;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  
}

.presentation-image img {
  width: 200px;
  transition: transform 0.3s ease;
  object-fit: contain;  /* pour qu’elle reste proportionnelle */
}

.presentation-image:hover img {
  transform: scale(1.1) rotate(3deg);
}

/* Container notes */
.notes {
  position: absolute;
  top: 8%;
  left: 70%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}



/* Affiche les notes au hover */
.presentation-image:hover .notes {
  opacity: 1;
}

/* Notes de musique */
.note {
  font-size: 38px;
  color: var(--yellow-color);
  opacity: 0;
  animation: floatUp 1.5s ease forwards;
  animation-iteration-count: infinite;
  user-select: none;
  -webkit-text-stroke: 1px black;
}

/* Chaque note démarre avec un délai différent */
.note:nth-child(1) {
  animation-delay: 0s;
}

.note:nth-child(2) {
  animation-delay: 0.5s;
}

.note:nth-child(3) {
  animation-delay: 1s;
}

/* Animation : notes qui montent, oscillent légèrement, puis disparaissent */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) translateX(5px) rotate(10deg);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) translateX(-5px) rotate(-10deg);
  }
}

/* Positionnement des notes pour chaque instrument */
#trumpet.notes {
  top: 5%;
  left: 70%;
}

#saxophone.notes {
  top: 20%;
  left: 26%;
}

#drumsticks.notes {
  top: 15%;
  left: 40%;
}

#clarinet.notes {
  top: 5%;
  left: 70%;
}

/* JOUEZ BIEN JOUEZ PLEIN */
.footer-jouez {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background: var(--based-color); /* pour le voir */
  border-radius: 50% 50% 0% 0% / 10% 10% 0% 0%;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.8);
}

.slider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-family: 'PoliceJouezBien';
  font-weight: bold;
  text-transform: uppercase;
  color: var(--yellow-color);
  -webkit-text-stroke: 0.5px black;
}

.fixed-word {
  white-space: nowrap;
  margin: 12px;
}

.slide {
  overflow: hidden;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.slide-wrapper {
  display: flex;
  flex-direction: column;
  animation: slideWords 4s infinite;
}

.slide-wrapper div {
  height: 86px;
  color: var(--yellow-color);
  -webkit-text-stroke: 0.5px black;
  padding-top: 32px
}

@media screen and (max-width: 900px) {
  .fansmare-title {
    border-radius: 0% 0% 100% 0% / 0% 0% 10% 0%;
  }
  .fansmare-presentation {
    flex-direction: column; /* passe en colonne sur mobile */
    align-items: center; /* centre horizontalement */
  }
  .slider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-family: 'PoliceJouezBien';
    font-weight: bold;
    text-transform: uppercase;
    color: var(--yellow-color);
    -webkit-text-stroke: 0.5px black;
  }
  .fansmare-presentation img {
    width: 80%;
    margin-bottom:0;
    }
  .fansmare-presentation h1 {
    font-size: clamp(1.2rem, 11vw, 180px);
    -webkit-text-stroke: 0.5px black;
    margin-top: 0;
    }
  .slide-wrapper {
    display: flex;
    flex-direction: column;
    animation: slideWords 4s infinite;
  }

  .slide-wrapper div {
    height: 84px;
    color: var(--yellow-color);
    -webkit-text-stroke: 0.5px black;
    padding-top: 42px
  }

  .slide {
    height: 89px;
  }

  .presentation-container {
    padding: 20px;
  }
  .presentation-image:hover img {
    transform: none;
  }
  
}
@keyframes slideWords {
  0%, 40% {
    transform: translateY(0);
  }
  50%, 90% {
    transform: translateY(-84px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8);}
  to { opacity: 1; transform: scale(1);}
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(40px) scale(0.97);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}

/* Animation sur toutes les cartes, sections, blocs */
.presentation-fansmare, .presentation-container {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: cardAppear 1s forwards;
}

#contact-container {
  margin-bottom: 30px
}