/* ============================================
   Lama Worlds Theme - CSS Variables
   ============================================ */
:root {
  --bg0: #050a10;
  --bg1: #0b1d2a;
  --bg2: #0e2435;
  --cyan1: #56b0ff;
  --cyan2: #00bfff;
  --cyan3: #00ffff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.10);
  --border: rgba(120, 200, 255, 0.22);
  --text: rgba(235, 245, 255, 0.92);
  --muted: rgba(235, 245, 255, 0.70);
  --shadow-neon: 0 0 20px rgba(86, 176, 255, 0.3), 0 0 40px rgba(0, 191, 255, 0.2);
  --shadow-glow: 0 0 10px rgba(86, 176, 255, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 50%, var(--bg0) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.reduce-motion * {
  animation: none !important;
  transition: none !important;
}

/* ============================================
   Main Content
   ============================================ */
main {
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* ============================================
   Starfield Canvas
   ============================================ */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

/* Prevent scroll during loader */
body.loading {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Loading particles */
.loading-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  opacity: 0;
  animation: particleOrbit 2s ease-in-out infinite;
  animation-delay: var(--particle-delay, 0s);
  box-shadow: 0 0 10px var(--cyan2);
}

@keyframes particleOrbit {
  0% {
    transform: rotate(0deg) translateX(40px) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) translateX(40px) rotate(-360deg);
    opacity: 0;
  }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan2);
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan2), var(--cyan3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.navbar-logo:hover {
  filter: drop-shadow(var(--shadow-glow));
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan2);
  transition: width 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cyan2);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 25px;
  height: 2px;
  background: var(--cyan2);
  transition: var(--transition);
}

.navbar-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-icon {
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--cyan2);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover,
.btn-icon:focus-visible {
  background: var(--glass);
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.btn-anim-toggle {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  gap: 0.5rem;
}

.btn-anim-text {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btn-anim-text {
    font-size: 0.7rem;
  }

  .btn-anim-toggle {
    padding: 0 0.5rem;
    min-width: 36px;
    height: 36px;
    gap: 0.4rem;
  }

  .btn-anim-toggle svg {
    width: 16px;
    height: 16px;
  }

  .navbar-controls {
    gap: 0.5rem;
  }
}

/* ============================================
   Top Button
   ============================================ */
.btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cyan2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-top.visible {
  display: flex;
}

.btn-top:hover,
.btn-top:focus-visible {
  background: var(--glass);
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
  outline: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  text-align: center;
  z-index: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s ease;
  /* Optimize for smooth scrolling */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

body.reduce-motion .hero {
  transform: none !important;
}

/* Optimize hero for smooth scrolling on mobile */
@media (max-width: 768px) {
  .hero {
    transform: none !important;
    will-change: auto;
  }

  .hero-content {
    transform: none !important;
    will-change: auto;
  }
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan2), var(--cyan3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(86, 176, 255, 0.5);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--glass2);
  border-color: var(--border);
  color: var(--cyan2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(86, 176, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  left: 100%;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--cyan2);
  color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--cyan2), var(--cyan3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.gallery-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.gallery-search {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1.2rem;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-search:focus {
  outline: none;
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
}

.gallery-search::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.gallery-view-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-view-toggle {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

.btn-view-toggle:hover,
.btn-view-toggle:focus-visible {
  border-color: var(--cyan2);
  color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.btn-view-toggle.active {
  background: var(--glass2);
  border-color: var(--cyan2);
  color: var(--cyan2);
  box-shadow: var(--shadow-glow);
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

.chip {
  padding: 0.6rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(86, 176, 255, 0.1), transparent);
  transition: left 0.3s ease;
}

.chip:hover::before,
.chip:focus-visible::before {
  left: 100%;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--cyan2);
  color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: translateY(-2px) scale(1.05);
}

.chip:active {
  transform: translateY(0) scale(0.95);
  transition: transform 0.1s ease;
}

.chip.active {
  background: var(--glass2);
  border-color: var(--cyan2);
  color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  font-weight: 600;
}

.chip.active::before {
  background: linear-gradient(90deg, transparent, rgba(86, 176, 255, 0.2), transparent);
}

.select {
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 2.5rem 0.6rem 1.2rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2356b0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  position: relative;
}

.select:hover,
.select:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: translateY(-2px);
  background-color: var(--glass);
}

.select:active {
  transform: translateY(0);
}

.select:focus {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
}

/* Style pour les options du select */
.select option {
  background: var(--bg1);
  color: var(--text);
  padding: 0.5rem;
  border: none;
}

/* Style pour le select ouvert (certains navigateurs) */
.select:focus option:checked {
  background: var(--cyan2);
  color: var(--bg0);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  perspective: 1000px;
}

.btn-view-more {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--cyan2);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: inherit;
  text-align: center;
}

.btn-view-more:hover,
.btn-view-more:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
  outline: none;
}

.btn-view-more:active {
  transform: translateY(0);
}

/* Gallery & Series pagination */
.gallery-pagination,
.series-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass2);
  color: var(--cyan2);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled),
.pagination-btn:focus-visible:not(:disabled) {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  outline: none;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: var(--transition);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  outline: none;
}

/* 3D Wrapper for parallax effect */
.gallery-item-3d-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
  transform: translateZ(0);
}

/* Shine effect overlay - holographic style */
.gallery-item-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: 2;
  mix-blend-mode: overlay;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(86, 176, 255, 0.3) 0%,
    rgba(0, 191, 255, 0.2) 25%,
    rgba(0, 255, 255, 0.1) 50%,
    transparent 70%
  );
}

/* Enhanced hover effects */
.gallery-item:hover .gallery-item-3d-wrapper {
  transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(20px);
}

/* Disable parallax on reduced motion */
body.reduce-motion .gallery-item-3d-wrapper {
  transform: none !important;
  transition: none !important;
}

body.reduce-motion .gallery-item-shine {
  display: none;
}

/* Disable parallax on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  .gallery-item-3d-wrapper {
    transform: none !important;
  }
  
  .gallery-item-shine {
    display: none;
  }
  
  .gallery-item:hover {
    transform: translateY(-5px) !important;
  }
  
  /* Disable advanced animations on mobile */
  .float-animation {
    animation: none !important;
  }
  
  .section::before {
    display: none;
  }
}

/* Disable animations on reduced motion */
body.reduce-motion .ripple,
body.reduce-motion .loading-particle,
body.reduce-motion .float-animation,
body.reduce-motion .section::before {
  display: none !important;
  animation: none !important;
}

.gallery-item video {
  cursor: pointer;
}

.gallery-video-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(5, 10, 16, 0.8);
  border: 1px solid var(--cyan2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5, 10, 16, 0.9), transparent);
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

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

.gallery-item-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.gallery-item-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Gallery List View */
.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.gallery-list-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gallery-list-item:hover {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: translateX(5px) scale(1.01);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-list-item:active {
  transform: translateX(3px) scale(0.99);
}

.gallery-list-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-list-image img,
.gallery-list-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.gallery-list-item:hover .gallery-list-image img,
.gallery-list-item:hover .gallery-list-image video {
  transform: scale(1.1);
}

.gallery-list-image video {
  cursor: pointer;
}

.gallery-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-list-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cyan2);
  margin: 0;
}

.gallery-list-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-list-series {
  color: var(--cyan2);
}

.gallery-list-year {
  color: var(--muted);
}

.gallery-list-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.gallery-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag-chip {
  padding: 0.4rem 0.8rem;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Scroll Animations */
.section-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  --wave-offset: 0px;
}

.section-fade.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Wave effect on scroll */
.section {
  position: relative;
  transition: transform 0.1s ease-out;
}

.section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bg1) 50%,
    transparent 100%
  );
  transform: translateY(var(--wave-offset, 0px));
  opacity: 0.3;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* Progressive fade-in for section children */
.section-fade.fade-in .section-title {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.section-fade.fade-in .scroll-fade {
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .section-fade,
  .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

body.reduce-motion .section-fade,
body.reduce-motion .scroll-fade {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

/* Zoom Container */
.zoom-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.zoom-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-neon);
  cursor: zoom-out;
}

/* Visual Effects */
.gallery-item {
  position: relative;
  overflow: hidden;
}

/* Ripple effect on click */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(86, 176, 255, 0.4);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced hover effects for cards */
.series-card,
.commission-card,
.about-bio,
.social-card {
  position: relative;
  overflow: hidden;
}

.series-card::before,
.commission-card::before,
.about-bio::before,
.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(86, 176, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.series-card:hover::before,
.commission-card:hover::before,
.about-bio:hover::before,
.social-card:hover::before {
  left: 100%;
}

/* Floating animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Morph text animation */
@keyframes morphText {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(1deg);
  }
  75% {
    transform: scale(1.05) rotate(-1deg);
  }
}

/* Advanced button animations */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(86, 176, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Pulse effect for interactive elements */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(86, 176, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(86, 176, 255, 0);
  }
}

.btn-primary:focus-visible,
.chip:focus-visible {
  animation: pulse 2s infinite;
}

/* Glow effect on hover */
.gallery-item,
.series-item,
.social-card {
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover,
.series-item:hover,
.social-card:hover {
  box-shadow: 
    0 0 20px rgba(86, 176, 255, 0.3),
    0 0 40px rgba(0, 191, 255, 0.2),
    0 0 60px rgba(0, 255, 255, 0.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(86, 176, 255, 0.1) 50%,
      transparent 70%);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

.gallery-item:hover::after {
  animation: scan 1.5s ease;
  opacity: 1;
}

@keyframes scan {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Glitch Effect (optional, can be toggled) */
.gallery-item:hover img {
  position: relative;
}

.gallery-item:hover img::before,
.gallery-item:hover img::after {
  content: attr(alt);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  clip-path: inset(0);
}

/* Animated Gradient on Titles */
.section-title {
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.hero-title {
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

/* ============================================
   Series
   ============================================ */
.series-container {
  display: grid;
  gap: 3rem;
}

.series-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.series-card:hover {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
}

.series-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--cyan2);
  margin-bottom: 1.5rem;
}

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

.series-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.series-item:hover {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05) translateY(-3px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.series-item:active {
  transform: scale(1.02) translateY(-1px);
}

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

/* ============================================
   About
   ============================================ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-profile {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.about-profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cyan2);
  box-shadow: var(--shadow-neon);
  position: relative;
  transition: var(--transition);
}

.about-profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(86, 176, 255, 0.5);
}

.about-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-bio {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 2rem;
  margin-top: 0;
}

.about-bio-short {
  font-size: 1.2rem;
  color: var(--cyan2);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-bio-long {
  color: var(--muted);
  line-height: 1.8;
}

.about-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-list {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-list-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan2);
  margin-bottom: 1rem;
}

.about-list-items {
  list-style: none;
}

.about-list-items li {
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.about-list-items li:last-child {
  border-bottom: none;
}

/* ============================================
   Commissions
   ============================================ */
.commissions-content {
  max-width: 1000px;
  margin: 0 auto;
}

.commission-status {
  text-align: center;
  margin-bottom: 3rem;
}

.status-badge {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid;
}

.status-badge.open {
  background: rgba(0, 255, 0, 0.1);
  border-color: #00ff00;
  color: #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.status-badge.closed {
  background: rgba(255, 0, 0, 0.1);
  border-color: #ff4444;
  color: #ff4444;
}

.commission-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.commission-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.commission-card:hover {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
}

.commission-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cyan2);
  margin-bottom: 1rem;
}

.commission-price {
  font-size: 1.3rem;
  color: var(--cyan3);
  font-weight: 700;
  margin: 1rem 0;
}

.commission-steps {
  margin-top: 2rem;
}

.commission-steps-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan2);
  margin-bottom: 1rem;
}

.commission-steps-list {
  list-style: none;
  counter-reset: step;
}

.commission-steps-list li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  position: relative;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.commission-steps-list li:last-child {
  border-bottom: none;
}

.commission-steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--glass2);
  border: 1px solid var(--cyan2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan2);
  font-weight: 600;
}

.commission-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.commission-list {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.commission-list-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan2);
  margin-bottom: 1rem;
}

.commission-list-items {
  list-style: none;
}

.commission-list-items li {
  color: var(--muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.commission-list-items li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cyan2);
}

/* ============================================
   Contact
   ============================================ */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-email {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-email-label {
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.contact-email-value {
  font-size: 1.3rem;
  color: var(--cyan2);
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.contact-email-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.btn-copy {
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--cyan2);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
}

.btn-copy:hover,
.btn-copy:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.btn-send-email {
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--cyan2);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
}

.btn-send-email:hover,
.btn-send-email:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  outline: none;
  transform: translateY(-2px);
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  min-height: 180px;
  justify-content: center;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
  outline: none;
}

.social-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan2);
  transition: var(--transition);
}

.social-card:hover .social-icon {
  transform: scale(1.1);
  filter: drop-shadow(var(--shadow-glow));
}

.social-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.social-card:hover .social-label {
  color: var(--cyan2);
}

.social-card-copy {
  cursor: pointer;
  border: none;
  background: var(--glass);
  font-family: inherit;
}

.social-card-copy:hover,
.social-card-copy:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
  outline: none;
}

.social-link {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--cyan2);
  color: var(--cyan2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  outline: none;
}

.contact-form {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan2);
  box-shadow: var(--shadow-glow);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan2);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover,
.form-submit:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  outline: none;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cyan2);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  transform: rotate(90deg);
  outline: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cyan2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2001;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  border-color: var(--cyan2);
  box-shadow: var(--shadow-neon);
  outline: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.lightbox-img,
.lightbox-video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-neon);
  display: block;
}

.lightbox-video {
  width: 100%;
  height: auto;
}

.lightbox-info {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 600px;
  text-align: center;
}

.lightbox-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--cyan2);
  margin-bottom: 0.5rem;
}

.lightbox-series {
  color: var(--muted);
  margin-bottom: 1rem;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.lightbox-description {
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 2rem;
  color: var(--cyan2);
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-neon);
}

.toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.neon-text {
  color: var(--cyan2);
  text-shadow: var(--shadow-glow);
}

/* ============================================
   Scrollbar
   ============================================ */
/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 0px;
    display: none;
  }

  * {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }
}

/* Desktop scrollbar */
@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg0);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--glass);
    border-radius: 5px;
    border: 2px solid var(--bg0);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--glass2);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablette */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

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

/* Mobile Large */
@media (max-width: 768px) {

  /* Prevent horizontal scroll on mobile */
  * {
    max-width: 100%;
  }

  /* Ensure no double scrollbars */
  html {
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
  }

  .navbar-container {
    padding: 0 1rem;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    padding: 1rem;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-link:hover {
    background: var(--glass);
  }

  .navbar-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  .navbar-controls {
    gap: 0.5rem;
  }

  .btn-anim-toggle {
    min-width: 36px;
    height: 36px;
    padding: 0 0.4rem;
  }

  .btn-anim-text {
    font-size: 0.7rem;
  }

  .btn-anim-toggle svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding: 1.5rem;
    min-height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    min-height: 44px;
    padding: 1rem 2rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .section {
    padding: 4rem 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 2.5rem;
  }

  .container {
    padding: 0 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gallery-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .gallery-filters {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
  }

  .gallery-filters::-webkit-scrollbar {
    height: 4px;
  }

  .chip {
    min-height: 44px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .select {
    width: 100%;
    min-height: 44px;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    display: grid !important;
    /* Force display on mobile */
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .gallery-item {
    min-height: 200px;
    width: 100%;
  }

  /* Ensure gallery items are visible on mobile even if animations don't trigger */
  .gallery-grid .scroll-fade {
    opacity: 1;
    transform: translateY(0);
  }

  /* Ensure View More button is visible on mobile */
  .btn-view-more {
    display: block !important;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  /* Fix container padding on mobile */
  .container {
    padding: 0 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Ensure sections are properly displayed */
  .section {
    width: 100%;
    overflow-x: hidden;
  }

  .series-card {
    padding: 1.5rem;
  }

  .series-title {
    font-size: 1.5rem;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .about-profile-image {
    width: 150px;
    height: 150px;
  }

  .about-bio {
    padding: 1.5rem;
  }

  .about-bio-short {
    font-size: 1.1rem;
  }

  .about-lists {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .commission-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .commission-card {
    padding: 1.5rem;
  }

  .commission-lists {
    grid-template-columns: 1fr;
  }

  .contact-email {
    padding: 1.5rem;
  }

  .contact-socials {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-card {
    padding: 1.5rem;
    min-height: 140px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  .social-label {
    font-size: 1rem;
    text-align: center;
    word-break: break-word;
  }

  .social-link {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .contact-email-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-copy,
  .btn-send-email {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-input,
  .form-textarea {
    min-height: 44px;
    font-size: 16px;
    /* Évite le zoom sur iOS */
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .form-textarea {
    min-height: 120px;
  }

  .form-submit {
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-content {
    max-width: 100%;
    max-height: 100vh;
    gap: 1rem;
  }

  .lightbox-img {
    max-height: 60vh;
    width: 100%;
  }

  .lightbox-info {
    padding: 1.5rem;
    max-width: 100%;
  }

  .lightbox-title {
    font-size: 1.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
  }

  .btn-top {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    right: 1rem;
    min-width: 44px;
    min-height: 44px;
  }

  .footer {
    padding: 1.5rem 0;
    font-size: 0.9rem;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    margin-bottom: 2rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .hero-tagline {
    font-size: clamp(0.95rem, 5vw, 1.1rem);
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .gallery-list-item {
    flex-direction: column;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .gallery-list-image {
    width: 100%;
    height: 250px;
    flex-shrink: 0;
  }

  .gallery-list-info {
    width: 100%;
    padding-top: 1rem;
  }

  .gallery-search-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .gallery-view-controls {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-item {
    min-height: 250px;
  }

  .chip {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .series-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .about-bio,
  .commission-card,
  .contact-email,
  .contact-form {
    padding: 1.2rem;
  }

  .navbar-menu {
    padding: 1rem;
  }

  .navbar-controls {
    gap: 0.4rem;
  }

  .btn-anim-toggle {
    padding: 0 0.4rem;
    min-width: 32px;
    height: 36px;
  }

  .btn-anim-text {
    font-size: 0.65rem;
  }

  .btn-anim-toggle svg {
    width: 14px;
    height: 14px;
  }

  .lightbox-info {
    padding: 1rem;
  }

  .lightbox-title {
    font-size: 1.3rem;
  }

  .contact-email {
    padding: 1.5rem 1rem;
  }

  .contact-email-value {
    font-size: 1.1rem;
    word-break: break-all;
  }

  .social-card {
    padding: 1.2rem;
    min-height: 120px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .social-label {
    font-size: 0.9rem;
  }
}

/* Mobile très petit */
@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(1.8rem, 15vw, 2.5rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 12vw, 2rem);
  }

  .chip {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .btn-anim-toggle {
    padding: 0 0.3rem;
    min-width: 30px;
    height: 34px;
  }

  .btn-anim-text {
    font-size: 0.6rem;
  }

  .btn-anim-toggle svg {
    width: 12px;
    height: 12px;
  }

  .navbar-controls {
    gap: 0.3rem;
  }

  .contact-email-buttons {
    gap: 0.8rem;
  }

  .btn-copy,
  .btn-send-email {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .social-card {
    padding: 1rem;
    min-height: 110px;
  }
}

/* Orientation paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .navbar-menu {
    max-height: calc(100vh - 70px);
  }
}

/* Touch devices - améliorer les zones tactiles */
@media (hover: none) and (pointer: coarse) {

  .btn,
  .chip,
  .select,
  .nav-link,
  .social-link,
  .btn-icon,
  .btn-top,
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.3);
  }

  .gallery-item,
  .series-item {
    -webkit-tap-highlight-color: rgba(86, 176, 255, 0.2);
  }

  /* Désactiver les effets hover sur mobile */
  .btn:hover,
  .chip:hover,
  .gallery-item:hover {
    transform: none;
  }
}