/**
 * Netflix Style CSS pour Last Prod
 * Utilisant Bootstrap 5 comme framework de base
 */

:root {
  --netflix-red: #e50914;
  --netflix-red-hover: #f40612;
  --netflix-black: #000000;
  --netflix-dark: #141414;
  --netflix-dark-hover: #232323;
  --netflix-gray: #757575;
  --netflix-light: #e5e5e5;
}

/* Base avec Libre Franklin appliqué à tout le site */
body {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 400;
  background-color: var(--netflix-black);
  color: white;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Appliquer Libre Franklin à tous les textes */
p, h1, h2, h3, h4, h5, h6, span, a, button, input, textarea, select, div {
  font-family: 'Libre Franklin', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Animation générale */
.slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Header style Netflix vraiment transparent */
.header-netflix {
  background-color: rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Important: Les styles ci-dessous forcent la transparence pour permettre la visibilité du contenu sous-jacent */
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-netflix.scrolled {
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Logo avec Libre Franklin en graisse 800 (Extra Bold) */
.netflix-logo {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Libre Franklin', sans-serif;
  letter-spacing: 1px;
  text-decoration: none !important;
}

/* Navigation style boutons carrés avec Libre Franklin */
.nav-link-netflix {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.875rem;
  font-weight: 600; /* SemiBold comme demandé */
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  margin-right: 0.6rem;
  border-radius: 0; /* Boutons carrés */
  transition: all 0.3s ease;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.nav-link-netflix:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Style spécifique pour le bouton Corpo au hover - priorité maximale */
.nav-link-netflix.nav-btn-colored.active#nav-corpo:hover,
span.nav-link-netflix.nav-btn-colored.active#nav-corpo:hover,
.nav-link-netflix.me-3#nav-corpo:hover,
span.nav-link-netflix.me-3#nav-corpo:hover,
.nav-btn-colored#nav-corpo:hover,
span.nav-btn-colored#nav-corpo:hover,
#nav-corpo:hover {
  color: #000000 !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
  transition: all 0.3s ease !important;
  border: 1px solid #CCCCCC !important;
}

.nav-link-netflix.active {
  color: white;
  background-color: var(--netflix-red);
  border-color: var(--netflix-red);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.nav-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0.25rem 0;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

/* Boutons style Netflix (carrés) */
.btn-netflix {
  background-color: var(--netflix-red);
  color: white;
  border: none;
  border-radius: 0; /* Boutons carrés comme le menu */
  padding: 0.5rem 1.5rem;
  font-weight: 600; /* Cohérence avec les boutons du menu */
  font-family: 'Libre Franklin', sans-serif; /* Police cohérente */
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-netflix:hover {
  background-color: var(--netflix-red-hover);
  color: white;
}

.btn-netflix-secondary {
  background-color: rgba(109, 109, 110, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-family: 'Libre Franklin', sans-serif;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-netflix-secondary:hover {
  background-color: rgba(109, 109, 110, 0.6);
  color: white;
}

/* Hero Banner */
.netflix-hero {
  height: 90vh;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px;
  margin-top: -80px;
}

.netflix-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.netflix-hero-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background-image: linear-gradient(to top, var(--netflix-black), transparent);
  z-index: 1;
}

/* Vidéo de fond du hero */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0; /* En arrière-plan */
  pointer-events: none; /* Permet de cliquer à travers */
  max-height: 100vh; /* Limitation à la hauteur de la fenêtre */
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 0; /* Même niveau que la vidéo */
}

/* Card Netflix Style */
.netflix-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  border-radius: 4px;
  background-color: var(--netflix-dark);
  transition: none !important; /* Désactiver toutes les transitions */
  transform: none !important; /* Forcer l'absence de transformation */
}

/* Effet de survol supprimé */
.netflix-card:hover {
  box-shadow: none;
  z-index: auto;
}

/* Effet de déplacement des cartes suivantes supprimé */
.netflix-card:hover ~ .netflix-card {
  transform: none;
}

.netflix-card .card-img-container {
  aspect-ratio: 16/9;
  background-color: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.netflix-card .card-img-container i {
  color: var(--netflix-gray);
  font-size: 2rem;
  transition: none !important;
}

/* Effet de changement de couleur de l'icône supprimé */
.netflix-card:hover .card-img-container i {
  color: var(--netflix-gray);
}

.netflix-card .card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Transition supprimée pour éviter tout effet de zoom */
}

/* Badge de catégorie dans les cartes */
.bg-netflix {
  background-color: var(--netflix-red);
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.5rem;
}

/* Bouton play sur les cartes */
.card-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* Toujours visible */
  transition: none !important;
  pointer-events: auto; /* Permettre les clics */
  z-index: 20; /* Augmenter pour être au-dessus des autres éléments */
  cursor: pointer; /* Indiquer que c'est cliquable */
}

/* Effet de survol sur le bouton play supprimé */
.netflix-card:hover .card-play-button {
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: none;
}

/* Bouton Play pour le Hero Banner */
.hero-play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 20;
  cursor: pointer;
  position: relative;
}

.hero-play-button i {
  font-size: 1.8rem;
}

.hero-play-button:hover {
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.5);
}

.netflix-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 1; /* Toujours visible */
}

/* Effet de changement de dégradé au survol supprimé */
.netflix-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Ancre pour la navigation vers les catégories */
.category-anchor {
  display: block;
  position: relative;
  top: -100px; /* Ajustement pour tenir compte de la barre de navigation fixe */
  visibility: hidden;
}

/* Hero Secondary (bandeaux entre catégories) */
.netflix-hero-secondary {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  background-color: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effects for clickable hero main - REMOVED FOR SIMPLICITY */
.hero-main-link {
  display: block;
  text-decoration: none;
  color: inherit;
  /* No hover effects - keeping it simple */
}

/* Hover effects for clickable hero secondary sections */
.hero-secondary-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.hero-secondary-link:hover .netflix-hero-secondary {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.hero-secondary-link:hover .hero-secondary-background {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.hero-secondary-link:hover .category-badge {
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Badge de catégorie */
.category-badge {
  display: inline-block;
  background-color: rgba(229, 9, 20, 0.9);
  color: white;
  padding: 0.3rem 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Format 2:1 (moyen) */
.hero-secondary-medium {
  height: 300px;
}

/* Format 3:1 (large) */
.hero-secondary-wide {
  height: 400px;
}

.hero-secondary-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-secondary-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.hero-secondary-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-secondary-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 3;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
  .hero-secondary-medium,
  .hero-secondary-wide {
    height: 500px; /* Format vertical pour mobile */
  }
  
  .netflix-hero-secondary .display-5 {
    font-size: 1.8rem;
  }
  
  .netflix-hero-secondary .fs-5 {
    font-size: 1rem !important;
  }
}

/* Sections */
.netflix-section {
  padding: 2rem 0;
  overflow-x: hidden;
  position: relative;
  z-index: 10; /* Au-dessus des vidéos en arrière-plan */
}

/* Suppression du conteneur global des vidéos pour éviter les duplications */
/* Chaque vidéo est désormais contenue uniquement dans sa propre section */

/* Styles pour la section featured (sans vidéo dediee en arriere-plan, uniquement un overlay) */
.featured-section-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: var(--netflix-black);
  pointer-events: none; /* Permet de cliquer à travers */
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--netflix-black) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.8) 85%, rgba(0, 0, 0, 0.9) 100%);  /* Dégradé noir pour remplacer la vidéo */
  z-index: 1;
}

.netflix-section-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--netflix-light);
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.netflix-row {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  justify-content: space-between;
}

/* Styles pour le carousel Netflix */
.netflix-carousel .carousel-indicators {
  bottom: -15px;
  margin-bottom: 0;
  z-index: 20;
}

.netflix-carousel .carousel-indicators button {
  background-color: rgba(255, 255, 255, 0.5);
  height: 2px;
  width: 25px;
  margin: 0 5px;
  border-radius: 0;
  opacity: 0.5;
  border: none;
}

.netflix-carousel .carousel-indicators button.active {
  background-color: var(--carousel-indicators-color);
  opacity: 1;
}

/* Style adapté pour les carousels Netflix - style Arte (fond transparent) */
.netflix-carousel {
  background-color: transparent; /* Fond transparent */
}

.netflix-carousel .carousel-item {
  background-color: transparent; /* Fond transparent pour les items */
}

/* Flèches de navigation style Arte */
.netflix-carousel .carousel-control-prev, 
.netflix-carousel .carousel-control-next {
  width: 5%;
  opacity: var(--carousel-control-opacity);
  transition: opacity 0.3s ease;
  background-color: transparent; /* pas de fond sur le contrôle lui-même */
}

.netflix-carousel .carousel-control-prev-icon, 
.netflix-carousel .carousel-control-next-icon {
  width: var(--carousel-arrow-size);
  height: var(--carousel-arrow-size);
  border-radius: 0; /* Carré */
  background-color: var(--carousel-bg-color); /* Fond noir */
  filter: none; /* Pas de filtre, on utilise une image SVG personnalisée */
  padding: var(--carousel-arrow-padding);
  position: relative;
}

/* Flèches blanches personnalisées */
.netflix-carousel .carousel-control-prev-icon::after,
.netflix-carousel .carousel-control-next-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--carousel-arrow-color);
  border-left: 2px solid var(--carousel-arrow-color);
}

.netflix-carousel .carousel-control-prev-icon::after {
  transform: translate(-40%, -50%) rotate(-45deg);
}

.netflix-carousel .carousel-control-next-icon::after {
  transform: translate(-60%, -50%) rotate(135deg);
}

/* Ajustements pour les cartes Netflix dans le carousel - calcul adapté */
.netflix-carousel .netflix-row {
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Changé de space-between à flex-start pour éviter l'étirement */
  padding: 0;
  margin: 0 auto;
  max-width: 98%;
  gap: 1rem; /* Ajout d'un espacement uniforme entre les cartes */
  flex-wrap: wrap; /* Permettre l'enroulement si nécessaire */
}

.netflix-carousel .netflix-card {
  flex: 0 0 22%; /* Taille fixe au lieu de calculée, environ 1/4 de l'espace */
  max-width: 22%; /* Taille fixe correspondante */
  margin: 0;
}

/* Carte vide pour compléter les lignes du carousel */
.empty-card {
  display: none; /* Masquer complètement les cartes vides */
}

/* Media queries pour les tailles d'écran */
@media (max-width: 1200px) {
  .netflix-carousel .netflix-card {
    flex: 0 0 30%; /* ~3 cartes par ligne sur les écrans moyens */
    max-width: 30%;
  }
}

@media (max-width: 768px) {
  .netflix-carousel .netflix-card {
    flex: 0 0 45%; /* ~2 cartes par ligne sur les petits écrans */
    max-width: 45%;
  }
}

@media (max-width: 576px) {
  .netflix-carousel .netflix-card {
    flex: 0 0 90%; /* 1 carte par ligne sur mobile */
    max-width: 90%;
  }
}

/* Assurer que le carousel occupe toute la largeur disponible */
.netflix-carousel .carousel-inner {
  width: 100%;
}

.netflix-carousel .carousel-item {
  padding: 0 1.5rem;
}

/* Empêcher tout mouvement des cartes */
.netflix-carousel .netflix-card,
.netflix-carousel .netflix-card:hover,
.netflix-carousel .netflix-card:hover ~ .netflix-card,
.netflix-row .netflix-card,
.netflix-row .netflix-card:hover,
.netflix-row .netflix-card:hover ~ .netflix-card {
  transform: none !important;
  transition: none !important;
  z-index: auto !important;
}

/* Featured Content */
.netflix-featured {
  background-color: var(--netflix-dark-hover);
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}

.netflix-featured:hover {
  background-color: var(--netflix-dark);
}

.category-badge {
  background-color: rgba(229, 9, 20, 0.2);
  color: var(--netflix-red);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Featured Media */
.featured-media {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.featured-media:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.featured-thumbnail {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 250px;
  /* Transition supprimée pour éviter tout effet de zoom */
}

/* Play Button */
.featured-play-button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-media:hover .featured-play-button {
  opacity: 1;
}

.play-icon-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.play-icon-button:hover {
  background-color: var(--netflix-red);
}

/* Modal vidéo plein écran style Netflix */
.video-modal {
  z-index: 9999 !important; /* Valeur très élevée pour s'assurer qu'il est au-dessus de tout */
}

.video-modal .modal-content {
  background-color: #000;
  border: none;
  border-radius: 0;
}

.video-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000 !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.btn-close-netflix {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close-netflix:hover {
  color: var(--netflix-red);
}

.netflix-video-player {
  width: 100%;
  max-height: 90vh;
  background-color: #000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2050; /* Z-index élevé pour s'assurer que les contrôles sont accessibles */
  pointer-events: auto !important; /* Garantir que les interactions sont possibles */
}

.video-container {
  max-width: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2050;
  pointer-events: auto !important;
  touch-action: auto !important;
}

/* Ajustements quand le modal vidéo est ouvert */
.modal-open .header-netflix {
  z-index: 1030;
}

/* Styles vidéo améliorés pour garantir la visibilité */
.modal-backdrop {
  z-index: 1050 !important;
}

#videoModal {
  z-index: 9999 !important;
}

#videoModal .modal-content {
  background-color: #000;
  border: none;
  border-radius: 0;
  position: relative;
  z-index: 10000 !important;
}

#videoModal video {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 10001 !important;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Footer */
.netflix-footer {
  background-color: var(--netflix-black);
  color: var(--netflix-gray);
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 10; /* S'assurer qu'il apparait au-dessus du fond vidéo */
}

.netflix-footer .footer-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.netflix-footer a {
  color: var(--netflix-gray);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.netflix-footer a:hover {
  color: white;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(229, 9, 20, 0.2);
}

/* Style pour les catégories non cliquables sur les pages internes */
span.nav-link-netflix {
  display: inline-block;
}

span.nav-link-netflix:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation précédente/suivante pour les œuvres */
.work-navigation {
  margin-left: auto;
  margin-right: 1rem;
}

.work-nav-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.3rem;
}

.work-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8rem;
  min-width: 44px;
  justify-content: center;
  border: 1px solid transparent;
}

.work-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.work-nav-btn.work-nav-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.work-nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.work-nav-text small {
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-nav-title {
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.work-nav-separator {
  display: flex;
  align-items: center;
  margin: 0 0.3rem;
}

.category-indicator {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(229, 9, 20, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.work-nav-prev .work-nav-text {
  align-items: flex-end;
  text-align: right;
}

.work-nav-next .work-nav-text {
  align-items: flex-start;
  text-align: left;
}

.work-nav-btn i {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.work-nav-btn:hover i {
  opacity: 1;
}

/* Animation d'apparition */
.work-nav-container {
  animation: slideInFromTop 0.6s ease-out;
}

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

/* Responsive pour écrans moyens */
@media (max-width: 1200px) {
  .work-nav-title {
    max-width: 80px;
  }
  
  .work-nav-text small {
    font-size: 0.6rem;
  }
  
  .work-nav-title {
    font-size: 0.7rem;
  }
}
