/* ═══════════════════════════════════════════════════════════
   💬 SECTION CITATIONS ALÉATOIRES - CSS
   ═══════════════════════════════════════════════════════════ */

.quotes-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  overflow: hidden;
}

/* Effet de fond avec grille */
.quotes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridScroll 20s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes gridScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Container */
.quotes-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

/* Bloc de citation */
.quote-box {
  position: relative;
  padding: 50px 40px;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid transparent;
  background-image: 
    linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)),
    linear-gradient(135deg, #ffd700, #dc143c, #00d9ff, #ffd700);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: borderGlow 6s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

/* Guillemets décoratifs */
.quote-box::before,
.quote-box::after {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 80px;
  font-weight: bold;
  color: rgba(255, 215, 0, 0.15);
  line-height: 1;
  pointer-events: none;
}

.quote-box::before {
  content: '"';
  top: 20px;
  left: 20px;
}

.quote-box::after {
  content: '"';
  bottom: 20px;
  right: 20px;
}

/* Texte de la citation */
.quote-text {
  position: relative;
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Effet machine à écrire */
.quote-text.typing::after {
  content: '|';
  color: #ffd700;
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

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

/* Auteur */
.quote-author {
  position: relative;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #ffd700;
  text-align: right;
  padding-right: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.quote-author::before {
  content: '— ';
  color: rgba(255, 215, 0, 0.6);
}

/* Boutons de navigation */
.quote-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.quote-nav-btn {
  padding: 12px 30px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #ffd700;
  border-radius: 30px;
  color: #ffd700;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quote-nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.quote-nav-btn:hover::before {
  width: 300px;
  height: 300px;
}

.quote-nav-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffed4e;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.quote-nav-btn:active {
  transform: translateY(0);
}

.quote-nav-btn span {
  position: relative;
  z-index: 1;
}

/* Indicateur de progression */
.quote-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.progress-dot.active {
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  transform: scale(1.3);
}

.progress-dot:hover {
  background: rgba(255, 215, 0, 0.6);
  transform: scale(1.2);
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-box.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .quotes-section {
    padding: 40px 15px;
  }
  
  .quote-box {
    padding: 40px 25px;
    min-height: 180px;
  }
  
  .quote-box::before,
  .quote-box::after {
    font-size: 60px;
  }
  
  .quote-text {
    font-size: 20px;
    min-height: 60px;
  }
  
  .quote-author {
    font-size: 16px;
  }
  
  .quote-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .quote-nav-btn {
    width: 100%;
  }
}

/* Animation de particules autour de la citation */
.quote-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: floatParticle 4s ease-in-out infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}
