/* ================================================
   STYLE.CSS - Styles principaux du site public
   ================================================ */

/* ===== VARIABLES ===== */
:root {
  --text-dynamic-color: #000000;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-lg: 0 18px 40px rgba(0,0,0,0.18);
  --transition: all 0.3s ease;
}

body.dark-mode {
  --text-dynamic-color: #ffffff !important;
}

/* ===== STYLES GÉNÉRAUX ===== */
body { 
  background: #f8f9fa; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 260px;
  padding: 60px 0;
  background-image: url('/api/image.php?file=page_accueil/Image_drone.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Style de secours si l'image ne charge pas */
.hero-section {
  background-color: #6f42c1;
}

.feature-icon {
  font-size: 3rem;
}

/* ===== GALERIE PHOTO ===== */
.photo-item {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.photo-item:nth-child(even) .row {
  flex-direction: row-reverse;
}

.photo-image {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.photo-image:hover {
  transform: scale(1.02);
}

.photo-description {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== PAGE AVENTURES ===== */
.aventure-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.6s;
}

.aventure-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.aventure-item:nth-child(even) {
  transform: translateX(50px);
}

.aventure-item:nth-child(even).visible {
  transform: translateX(0);
}

/* ===== GALERIE VIDÉO ===== */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.video-card:hover img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity .3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-info {
  padding: 15px;
}

.video-info h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.video-music a.music-link {
  font-size: 0.85em;
  color: #6c63ff;
  text-decoration: none;
}

.video-music a.music-link:hover {
  text-decoration: underline;
}

/* ===== CARROUSEL ===== */
.carousel-item img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  background: rgba(0,0,0,0.8);
  border-radius: 10px;
  padding: 15px;
  bottom: 20px;
  left: 10px;
  right: 10px;
  width: auto;
}

.carousel-indicators [data-bs-target] {
  background-color: #000;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: #ccc;
}

/* ===== BOUTONS ===== */
.btn-dark-cinema {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.btn-dark-cinema:hover {
  background-color: #111;
  color: #fff;
  border-color: #111;
}

.btn-dark-cinema:focus,
.btn-dark-cinema:active {
  background-color: #000;
  color: #fff;
  box-shadow: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Général */
  .hero-section {
    height: 300px;
    padding: 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  /* Galerie photo */
  .photo-item .row {
    flex-direction: column !important;
  }
  
  .photo-description {
    padding: 1rem 0;
  }
  
  /* Vidéo */
  .video-section {
    margin-top: 30px;
    margin-bottom: 60px;
  }
  
  .video-wrapper {
    margin-bottom: 20px;
    border-radius: 20px;
  }
  
  .video-desc h3 {
    margin-top: 10px;
    font-size: 1.4rem;
  }
  
  .video-desc p {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  header {
    padding-bottom: 2.5rem;
  }
  
  /* Carrousel */
  .carousel-item img {
    height: 350px;
  }
  
  .carousel-caption {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    border-radius: 0;
    padding: 15px;
    margin-top: -5px;
  }
  
  .carousel-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .carousel-caption .small {
    font-size: 0.8rem;
  }
  
  .carousel-caption .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  .carousel-indicators {
    margin-bottom: 0;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 300px;
  }
  
  .carousel-caption {
    padding: 10px;
  }
  
  .carousel-caption h5 {
    font-size: 1rem;
  }
  
  .hero-section {
    height: 250px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
}