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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  overflow-x: hidden;
  background: #0a0a0a;
  color: #fff;
}

/* Effet de particules animées en arrière-plan */
.ai-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
              #0a0a0a;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Particules flottantes */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  border-radius: 50%;
  animation: float 20s infinite;
  opacity: 0.6;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Header */
.header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

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


.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 100px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 8px 20px;
  border-radius: 25px;
  position: relative;
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(102, 126, 234, 0.2);
}

.nav-menu a.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  color: #fff;
}

.nav-agence-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

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

.nav-agence-btn:hover::before {
  left: 100%;
}

.nav-agence-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Hero Section */
.ai-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px 20px;
  z-index: 1;
  overflow: hidden;
}

.ai-hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ai-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
  letter-spacing: -0.02em;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ai-hero .subtitle {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.ai-hero-cta {
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-btn-primary {
  padding: 18px 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

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

.ai-btn-primary:hover::before {
  left: 100%;
}

.ai-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.ai-btn-secondary {
  padding: 18px 40px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ai-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* Formes géométriques flottantes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  border-radius: 50%;
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Sections */
.ai-section {
  position: relative;
  padding: 120px 20px;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.ai-section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
}

.ai-section-subtitle {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards avec glassmorphism */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.ai-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 200% 100%;
  animation: gradientFlow 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

/* Vidéo Grid */
.ai-video-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
}

.ai-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.ai-video-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-video-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.ai-video-card:hover::after {
  opacity: 1;
}

.ai-video-card:nth-child(2n)::after {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
}

.ai-video-card:nth-child(3n)::after {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
}

.ai-video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.ai-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

/* Style pour les images verticales */
.ai-image-vertical {
  aspect-ratio: 9/16 !important;
  max-width: 350px;
  margin: 0 auto;
}

.ai-image-vertical img {
  object-fit: cover;
}

.ai-video-card:has(.ai-image-vertical) {
  max-width: 400px;
  margin: 0 auto;
}

.ai-video-placeholder video,
video.ai-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 17px;
  background: #000;
  display: block;
}

.ai-video-placeholder::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ai-video-card h4 {
  font-size: 1.3rem;
  margin: 20px 20px 10px 20px;
  color: white;
  font-weight: 700;
}

.ai-video-card p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 20px 20px 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Publicités Grid */
.ai-publicites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.ai-publicite-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-publicite-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.ai-publicite-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  z-index: 1;
}

.ai-publicite-image img,
.ai-publicite-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.ai-publicite-image video {
  object-fit: contain;
  background: #000;
}

.ai-publicite-card:hover .ai-publicite-image img,
.ai-publicite-card:hover .ai-publicite-image video {
  transform: scale(1.05);
}

.ai-publicite-card h4 {
  font-size: 1.3rem;
  margin: 20px 20px 10px 20px;
  color: white;
  font-weight: 700;
}

.ai-publicite-card p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 20px 20px 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* CTA Section */
.ai-cta {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 80px 40px;
  text-align: center;
  margin: 120px 0;
  position: relative;
  overflow: hidden;
}

.ai-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-cta-content {
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 20px 20px;
  margin-top: 120px;
}

.footer .container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.3rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #667eea;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-info i {
  margin-top: 3px;
}

/* Formulaire de contact */
.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

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

.contact-form button[type="submit"] {
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .logo-img {
    height: 80px;
    max-width: 300px;
  }
  
  .nav-menu {
    gap: 15px;
  }
  
  .nav-menu a {
    font-size: 0.9rem;
    padding: 6px 15px;
  }
  
  .ai-hero {
    min-height: 80vh;
    padding: 140px 20px 40px;
  }
  
  .ai-grid,
  .ai-video-grid,
  .ai-publicites-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .ai-image-vertical {
    max-width: 100%;
  }
  
  .ai-video-card:has(.ai-image-vertical) {
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Évite le zoom automatique sur iOS */
  }
  
  .ai-video-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Styles pour le visualiseur d'images avec chargement progressif */
#imageGallery {
  min-height: 400px;
}

#loadMoreBtn {
  margin-top: 40px;
  padding: 18px 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#loadMoreBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

/* Styles pour les filtres de catégories */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 50px auto 40px;
  padding: 0 20px;
  max-width: 1400px;
}

.category-filter-btn {
  padding: 14px 28px;
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.category-filter-btn:hover::before {
  left: 100%;
}

.category-filter-btn:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  color: rgba(255, 255, 255, 1);
}

.category-filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(102, 126, 234, 1);
  box-shadow: 0 8px 35px rgba(102, 126, 234, 0.6), 0 0 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-3px);
  color: #ffffff;
}

.category-filter-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.category-filter-btn span {
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* Styles pour la description de catégorie */
.category-description {
  max-width: 1100px;
  margin: 40px auto 50px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 2px solid rgba(102, 126, 234, 0.4);
  border-radius: 25px;
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.6s ease;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.category-description::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.category-description-content {
  position: relative;
  z-index: 1;
}

.category-description-content h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.5px;
}

.category-description-content p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-align: center;
  font-weight: 400;
}

/* Responsive pour les filtres */
@media (max-width: 768px) {
  .category-filters {
    gap: 8px;
    margin: 35px 0 25px;
    padding: 0 15px;
  }
  
  .category-filter-btn {
    padding: 11px 20px;
    font-size: 0.85rem;
    border-radius: 25px;
  }
  
  .category-description {
    padding: 25px 20px;
    margin: 30px auto 40px;
    border-radius: 20px;
  }
  
  .category-description-content h3 {
    margin-bottom: 20px;
  }
  
  .category-description-content p {
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .category-filter-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  
  .category-filters {
    gap: 6px;
  }
}

/* Animation de chargement pour les images */
.ai-video-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

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

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Délai d'animation pour chaque carte */
.ai-video-card:nth-child(1) { animation-delay: 0.1s; }
.ai-video-card:nth-child(2) { animation-delay: 0.15s; }
.ai-video-card:nth-child(3) { animation-delay: 0.2s; }
.ai-video-card:nth-child(4) { animation-delay: 0.25s; }
.ai-video-card:nth-child(5) { animation-delay: 0.3s; }
.ai-video-card:nth-child(6) { animation-delay: 0.35s; }
.ai-video-card:nth-child(7) { animation-delay: 0.4s; }
.ai-video-card:nth-child(8) { animation-delay: 0.45s; }
.ai-video-card:nth-child(9) { animation-delay: 0.5s; }
.ai-video-card:nth-child(10) { animation-delay: 0.55s; }
.ai-video-card:nth-child(11) { animation-delay: 0.6s; }
.ai-video-card:nth-child(12) { animation-delay: 0.65s; }
.ai-video-card:nth-child(n+13) { animation-delay: 0.7s; }

/* Amélioration du chargement paresseux des images */
.ai-video-placeholder img {
  transition: opacity 0.3s ease;
}

.ai-video-placeholder img[loading="lazy"] {
  opacity: 0;
}

.ai-video-placeholder img[loading="lazy"].loaded {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Forcer l'affichage si la classe show est présente */
.lightbox-modal.show,
.lightbox-modal[style*="display: flex"],
.lightbox-modal[style*="display:flex"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99999 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
  display: block;
  margin: 0 auto;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  z-index: 100000 !important;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
  color: #f5576c;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 100000 !important;
  transition: all 0.3s ease;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  user-select: none;
  pointer-events: auto;
}

.lightbox-nav:hover {
  background: rgba(102, 126, 234, 0.5);
  border-color: rgba(102, 126, 234, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100000 !important;
  pointer-events: none;
}

/* Responsive pour le lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 35px;
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 30px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-content img {
    max-height: 75vh;
  }

  .lightbox-counter {
    font-size: 1rem;
    padding: 8px 16px;
    bottom: 15px;
  }
}

