/* ==============================================
   STYLE.CSS - Fichier principal avec imports
   ============================================== */

/* Import des styles de base */
@import url("base.css");

/* Import des composants */
@import url("components.css");

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ==============================================
   AMÉLIORATIONS ESTHÉTIQUES GLOBALES
   ============================================== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #4f46e5 100%);
}

.dark {
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.glass-morphism {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Styles spécifiques pour les médias sur la page publique */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animation pour les cards de médias */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Effets de lueur pour les titres */
.glow-text {
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.dark .glow-text {
  text-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

/* Décorations de la section Hero */
.hero-title-highlight {
  position: relative;
  z-index: 1;
}

.hero-title-highlight::before {
  content: "";
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.3em;
  background: rgba(249, 115, 22, 0.2);
  z-index: -1;
  border-radius: 4px;
}

/* Délais d'animation pour les cards */
.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.5s;
}
.fade-in:nth-child(6) {
  animation-delay: 0.6s;
}

/* Styles pour les placeholders de vidéos */
.video-placeholder {
  position: relative;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.play-icon {
  color: #9ca3af;
  font-size: 3rem;
  transition: all 0.3s ease;
}

.video-placeholder:hover .play-icon {
  color: #f97316;
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fade-in:nth-child(n) {
    animation-delay: 0.1s;
  }

  .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero-title-highlight {
    font-size: 1.1em;
  }
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Styles spécifiques à cette page (si nécessaire) */

/* Animation de rotation pour les icônes de thème */
.theme-icon-rotate {
  animation: themeIconRotate 0.2s ease-in-out;
}

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