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

/* ===================== BODY ===================== */
body{
  font-family: Arial, sans-serif;
  background: url("guitares.jpg") center/cover no-repeat fixed;
  color:white;
}

/* ===================== PARTICULES ===================== */
#particles{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
}

/* ===================== HEADER & NAV ===================== */
header{
  background: rgba(0,0,0,0.8);
  padding:20px;
  text-align:center;
  position:sticky;
  top:0;
  z-index:1000;
}
header h1{
  margin-bottom:10px;
  font-size:32px;
  color:#f1c40f;
  text-shadow:
      0 0 5px #f1c40f,
      0 0 10px #f1c40f,
      0 0 20px #f39c12,
      0 0 30px #f39c12,
      0 0 40px #f39c12;
}
nav a{
  color:white;
  margin:0 15px;
  text-decoration:none;
  font-weight:bold;
  position:relative;
  transition: color 0.3s ease;
}
nav a:hover{ color:#f1c40f; }
nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:0;
  height:2px;
  background-color:#f1c40f;
  transition: width 0.3s ease;
}
nav a:hover::after{ width:100%; }

/* ===================== SECTIONS ===================== */
.section{
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  max-width:1000px;
  margin:50px auto;
  padding:30px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,0.2);
  position:relative;
  z-index:1;
  animation: apparition 1s ease;
}
.section h2{
  margin-bottom:15px;
  color:#f1c40f;
  
}
.section p{
  font-size:18px;
  line-height:1.6;
}

/* ===================== BOUTONS ===================== */
.btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 25px;
  background:#f1c40f;
  color:black;
  text-decoration:none;
  font-weight:bold;
  border-radius:10px;
  position:relative;
  overflow:hidden;
  transition:0.3s;
}
.btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transition:0.5s;
}
.btn:hover::before{ left:100%; }
.btn:hover{ box-shadow:0 0 15px #f1c40f; }

/* ===================== GALERIE ===================== */
.galerie{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:30px;
}
.galerie img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.galerie img:hover{
  transform: scale(1.05) rotate(5deg);
  box-shadow:0 10px 25px rgba(0,0,0,0.5);
}

/* ===================== CARTES GUITARES & GUITARISTES ===================== */
.guitare, .guitariste{
  text-align:center;
  margin-top:30px;
  transition:0.3s;
  position:relative;
}
.guitare img, .guitariste img{
  width:100%;
  max-width:350px;
  height:220px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.guitare:hover img, .guitariste:hover img{
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 10px 25px rgba(241,196,15,0.6);
}
.guitare p, .guitariste p{
  color:#f1c40f;
  
  margin-top:5px;
  font-weight:bold;
}
.guitare .description{
  opacity:0;
  max-height:0;
  overflow:hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  margin-top:0;
}
.guitare:hover .description{
  opacity:1;
  max-height:200px;
  margin-top:10px;
}

/* ===================== MODULES BIENFAITS ACCORDÉON ===================== */
.modules{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  margin-top:30px;
  justify-content:center;
}
.module{
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:15px;
  padding:20px;
  width:300px;
  cursor:pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align:center;
  overflow:hidden;
}
.module:hover{ transform: scale(1.05); box-shadow:0 0 25px #f1c40f; }
.module.active{ transform: scale(1.05); box-shadow:0 0 25px #f1c40f; }
.module-text{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top:10px;
  color:#f1c40f;
  
}
.module.active .module-text{
  max-height:500px;
  opacity:1;
}

/* ===================== FOOTER ===================== */
footer{
  background: rgba(0,0,0,0.8);
  text-align:center;
  padding:15px;
  margin-top:50px;
  position:relative;
  z-index:1;
}

/* ===================== ANIMATION ===================== */
@keyframes apparition{
  from{
      opacity:0;
      transform:translateY(30px);
  }
  to{
      opacity:1;
      transform:translateY(0);
  }
}

/* VIDEO MODULE */
.video-container {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}
.video-container iframe {
  border-radius: 10px;
  height: 400px;
}

#video-module {
  width: 100%;
  max-width: 700px;
}

/* ================= VIDEO MODULE RESPONSIVE & POPUP ================= */

/* Modules vidéo centrés et larges */
.module.video-popup {
  max-width: 700px;              /* largeur max sur desktop */
  width: 90%;                     /* largeur adaptative sur mobile */
  margin: 20px auto;              /* centrage horizontal + marge en haut/bas */
  text-align: center;             /* centre le titre et le bouton */
  border: 2px solid #f1c40f;     /* contour doré */
  border-radius: 15px;
  padding: 20px;
  background: rgba(0,0,0,0.6);   /* fond semi-transparent */
  box-shadow: 0 0 25px rgba(241,196,15,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module.video-popup:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(241,196,15,0.8);
}

/* Bouton “Voir la vidéo” avec animation pulse */
.module.video-popup button.open-video {
  margin-top: 15px;
  padding: 12px 25px;
  font-weight: bold;
  background: #f1c40f;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  animation: pulse 2s infinite;
}

.module.video-popup button.open-video:hover {
  box-shadow: 0 0 15px #f1c40f;
}

/* Animation pulse du bouton */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* POPUP VIDEO */
#video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.4s ease forwards;
}

#video-popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,0.6);
  border-radius: 15px;
  box-shadow: 0 0 50px 10px rgba(241,196,15,0.6);
  transform: scale(0.8);
  animation: popIn 0.4s ease forwards;
}

#video-popup-content:hover {
  box-shadow: 0 0 60px 15px rgba(241,196,15,0.8);
}

#video-popup-content iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: none;
}

#video-popup-close {
  position: absolute;
  top: -25px;
  right: -25px;
  font-size: 40px;
  color: #f1c40f;
  cursor: pointer;
}

/* Keyframes pour fade et pop animation */
@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes popIn { 
  0% { transform: scale(0.8); } 
  60% { transform: scale(1.05); } 
  100% { transform: scale(1); } 
}

/* Bouton avec icône lecture correctement positionnée */
.module.video-popup button.open-video {
  position: relative;
  margin-top: 15px;
  padding: 12px 25px 12px 50px; /* plus d’espace à gauche pour l’icône */
  font-weight: bold;
  background: #f1c40f;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  animation: pulse 2s infinite;
  color: black;
  font-size: 16px;
  text-align: left; /* texte décalé à droite pour ne pas chevaucher l’icône */
}

/* Triangle “play” à gauche, centré verticalement */
.module.video-popup button.open-video::before {
  content: '';
  position: absolute;
  left: 20px;              /* espace depuis le bord gauche */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid black;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  animation: playPulse 1.5s infinite;
}

/* Animation du triangle play */
@keyframes playPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}

/* Hover du bouton */
.module.video-popup button.open-video:hover {
  box-shadow: 0 0 25px #f1c40f;
  transform: scale(1.05);
}

.intro{
  font-size:20px;
  font-weight:bold;
  color:#f1c40f;
  margin-bottom:20px;
  text-align:center;
}

.timeline{
  margin-top:30px;
  border-left:3px solid #f1c40f;
  padding-left:20px;
}

.timeline-item{
  margin-bottom:30px;
  position:relative;
}



.timeline-item h3{
  color:#f1c40f;
  margin-bottom:5px;
}


/* ===================== RESPONSIVE MOBILE ===================== */
@media(max-width:768px){

  header h1{
    font-size:24px;
  }
  
  nav{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  
  .section{
    margin:20px;
    padding:25px;
  }
  
  .section h2{
    font-size:30px;
  }
  
  .module{
    width:100%;
  }
  
  .galerie{
    grid-template-columns:1fr;
  }
  
  .guitare img,
  .guitariste img{
    max-width:100%;
    height:auto;
  }
  
  .module.video-popup{
    width:100%;
  }
  
  }