:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --accent-cyan: #00ffff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --border-color: #333333;
  --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.3);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.brand-accent {
  color: var(--accent-purple);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  box-shadow: var(--glow-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)),
    radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%), url("imageBG.png") center / cover
    no-repeat;
  position: relative;
}

/* Ajoute aussi cet effet de parallaxe amélioré */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.05) 0%, transparent 50%, rgba(139, 92, 246, 0.05) 100%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.text-purple {
  color: var(--accent-purple);
  text-shadow: var(--glow-purple);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "JetBrains Mono", monospace;
}

.cta-button:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Timeline Section */
.timeline-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 60px;
  font-family: "JetBrains Mono", monospace;
}

.title-bracket {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.day-number {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--accent-cyan);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-5px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.timeline-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.timeline-date {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-purple);
  font-size: 0.9rem;
}

.timeline-location {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.timeline-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.timeline-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-photo:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

/* Video Section */
.video-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.video-player-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.video-player {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.video-player:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.active-video {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  width: 100%;
  background: #000;
}

.active-video video,
.active-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-controls {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.video-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.video-playlist {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 600px;
}

.playlist-title {
  padding: 20px;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
}

.playlist-items {
  overflow-y: auto;
  flex-grow: 1;
  padding: 10px;
}

.playlist-item {
  display: flex;
  gap: 15px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.playlist-item:hover,
.playlist-item.active {
  background: rgba(0, 255, 255, 0.1);
}

.playlist-item.active {
  border-left: 3px solid var(--accent-cyan);
}

.playlist-item-thumbnail {
  position: relative;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.playlist-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.playlist-item:hover .play-icon {
  opacity: 1;
}

.playlist-item-info {
  flex-grow: 1;
}

.playlist-item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.playlist-item-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.upload-container {
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.upload-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--accent-purple);
  border-radius: 8px;
  color: var(--accent-purple);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  box-shadow: var(--glow-purple);
}

.hidden {
  display: none;
}

/* Gallery Section - Version améliorée */
.gallery-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

/* Filtres de galerie */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.search-container {
  flex-grow: 1;
  max-width: 300px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Compteur d'images */
.gallery-counter {
  text-align: center;
  margin-bottom: 30px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.count-number,
.total-number {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Grille de galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.gallery-location {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.gallery-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Pagination */
.gallery-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.load-more-btn {
  background: transparent;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.pagination-numbers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "JetBrains Mono", monospace;
}

.page-number:hover,
.page-number.active {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* Lightbox pour la galerie */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  box-shadow: var(--glow-cyan);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 255, 255, 0.2);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 255, 255, 0.2);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 3rem;
}

.social-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-credit {
  font-family: "JetBrains Mono", monospace;
}

/* Animation de chargement */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-cyan);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .video-player-container {
    grid-template-columns: 1fr;
  }

  .gallery-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    left: -5px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .filter-categories {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-container {
    width: 250px;
    height: 250px;
  }

  .timeline-content {
    padding: 20px;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .video-controls {
    flex-direction: column;
    gap: 15px;
  }

  .playlist-item {
    flex-direction: column;
  }

  .playlist-item-thumbnail {
    width: 100%;
    height: 120px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
