@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #0e0e0e, #555555);
  color: #e0e0e0;
  scroll-behavior: smooth;
}

/* ---------- HEADER ---------- */
header {
  position: fixed;
  width: 100%;
  background: rgba(15, 15, 15, 0.9);
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #e0e0e0;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffcc66;
}

/* ---------- HERO ---------- */
.hero {
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #ffcc66;
}

h3 {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 1.2rem;
  color: #ffcc66;
}

/* ---------- GALLERY GÉNÉRALE ---------- */
.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.4s, box-shadow 0.4s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.3);
}

/* ---------- GALLERY ACCUEIL (index.html) ---------- */
#gallery .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.4s, box-shadow 0.4s;
}

#gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.3);
}

@media (max-width: 900px) {
  #gallery .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #gallery .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- VIDÉOS ---------- */
.videos {
  padding: 3rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-grid video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* ---------- CONTACT / BOUTONS ---------- */
.about p, .contact p {
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #ccc;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ffcc66;
  color: #0e0e0e;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
  text-align: center; 
}

.btn:hover {
  background: #e6b85c;
  transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #555555;
  font-size: 0.9rem;
}

/* ---------- FADE-IN ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  overflow: hidden;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 204, 102, 0.3);
  animation: zoomIn 0.4s ease;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #ffcc66;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox .close:hover {
  color: white;
}

.lightbox-controls span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #ffcc66;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.lightbox-controls .prev { left: 40px; }
.lightbox-controls .next { right: 40px; }

.lightbox-controls span:hover {
  color: white;
}
.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffcc66;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
}


@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- MENU BURGER RESPONSIVE ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #ffcc66;
  margin-bottom: 4px;
  border-radius: 2px;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: none;
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    display: block;
    margin: 0 auto;
  }

  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  footer {
    font-size: 0.8rem;
  }
}

/* ---------- GALERIE : TEXTE AU SURVOL ---------- */
.photo {
  position: relative;
  overflow: hidden;
}

.photo img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.photo:hover img {
  transform: scale(1.08);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ffcc66;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.photo:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CARROUSEL VIDÉO ---------- */
.video-carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.video-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.video-track video {
  width: 100%;
  flex-shrink: 0;
  border-radius: 10px;
}

.prev-video,
.next-video {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #ffcc66;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.prev-video:hover,
.next-video:hover {
  background: rgba(255,255,255,0.4);
}

.prev-video { left: 10px; }
.next-video { right: 10px; }

@media (max-width: 700px) {
  .prev-video, .next-video {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}
