/* =============================================
   PREMIUM BUTTON STYLES - Festival de Cannes
   Basé sur le design du quiz interactif
   ============================================= */

.premium-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  min-width: 140px;
  text-align: center;
}

.premium-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232,199,125,0.1), transparent);
  transition: left 0.7s ease;
}

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

.premium-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(232,199,125,0.5);
  background: linear-gradient(135deg, rgba(232,199,125,0.15), rgba(232,199,125,0.08));
  box-shadow: 
    0 8px 35px rgba(232,199,125,0.3),
    0 0 0 2px rgba(232,199,125,0.2);
}

.premium-btn:active {
  transform: translateY(-1px) scale(1);
}

/* Variante avec icône */
.premium-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.premium-btn-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.premium-btn:hover .premium-btn-icon svg {
  transform: scale(1.2);
}

/* Bouton actif/selectionné */
.premium-btn.active {
  background: linear-gradient(135deg, rgba(232,199,125,0.3), rgba(232,199,125,0.15));
  border-color: #e8c77d;
  color: #e8c77d;
  transform: scale(1.05);
  box-shadow: 
    0 0 0 3px rgba(232,199,125,0.4),
    0 10px 40px rgba(232,199,125,0.25);
}

/* Effet glow intensifié */
.premium-btn.glow-intense::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(232,199,125,0.3) 50%, 
    transparent 70%);
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.premium-btn.glow-intense:hover::after {
  opacity: 1;
  animation: rotate 3s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .premium-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* =============================================
   PREMIUM CARD STYLES
   ============================================= */

.premium-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,199,125,0.3);
  box-shadow: 
    0 12px 48px rgba(232,199,125,0.15),
    0 0 0 1px rgba(232,199,125,0.2);
}

/* =============================================
   INPUT STYLES PREMIUM
   ============================================= */

.premium-input {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
}

.premium-input:focus {
  outline: none;
  border-color: #e8c77d;
  box-shadow: 0 0 0 3px rgba(232,199,125,0.2);
  background: rgba(255,255,255,0.08);
}

.premium-input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* =============================================
   PREMIUM CONTENT LINKS STYLES
   ============================================= */

/* Liens dans le contenu des actualités */
.content-links a,
.prose a,
.markdown-content a,
.news-content a {
  color: #E8C77D;
  text-decoration: underline;
  text-decoration-color: #E8C77D;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.content-links a:hover,
.prose a:hover,
.markdown-content a:hover,
.news-content a:hover,
.prose-invert a:hover {
  color: #FFD700;
  text-decoration-thickness: 2px;
  text-decoration-color: #FFD700;
  text-shadow: 0 0 8px rgba(232, 199, 125, 0.4);
}

/* Styles spécifiques pour les liens dans le contenu Tailwind prose */
.prose a,
.prose-invert a,
.prose a:visited,
.prose-invert a:visited,
.prose a:link,
.prose-invert a:link {
  color: #E8C77D !important;
  text-decoration: underline !important;
  text-decoration-color: #E8C77D !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

.prose a:hover,
.prose-invert a:hover,
.prose a:focus,
.prose-invert a:focus {
  color: #FFD700 !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: #FFD700 !important;
  text-shadow: 0 0 8px rgba(232, 199, 125, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Override ultime pour tous les liens dans le contenu */
#newsView .prose a,
#newsView .prose-invert a,
#newsView [class*="prose"] a,
#newsView .markdown-content a,
#newsView .news-content a {
  color: #E8C77D !important;
  text-decoration: underline !important;
  text-decoration-color: #E8C77D !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

#newsView .prose a:hover,
#newsView .prose-invert a:hover,
#newsView [class*="prose"] a:hover,
#newsView .markdown-content a:hover,
#newsView .news-content a:hover {
  color: #FFD700 !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: #FFD700 !important;
  text-shadow: 0 0 12px rgba(232, 199, 125, 0.6) !important;
}

/* =============================================
   PREMIUM NAVIGATION MENU STYLES
   ============================================= */

.premium-nav {
  border-bottom: 1px solid rgba(0,0,0,0.2);
  background: rgba(132,19,31,0.6);
  backdrop-filter: blur(20px);
  color: white;
}

.premium-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none;
}

.premium-nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #E8C77D, transparent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(232,199,125,0.6);
}

/* =============================================
   GALLERY STYLES - Festival de Cannes
   ============================================= */

/* Gallery container */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

/* Gallery items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(232,199,125,0.4);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(232,199,125,0.2),
    0 0 20px rgba(232,199,125,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Tooltip */
.gallery-tooltip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.gallery-item:hover .gallery-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay effect */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Modal styles */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(20,20,20,0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.gallery-modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-modal-close:hover {
  background: rgba(232,199,125,0.2);
  transform: scale(1.1);
}

.gallery-modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.7) 70%,
    transparent 100%
  );
  padding: 2rem;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .gallery-modal {
    padding: 1rem;
  }
  
  .gallery-modal-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
}

.premium-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(232,199,125,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-nav-item:hover::before,
.premium-nav-item:focus::before {
  width: 100%;
  box-shadow: 0 0 15px rgba(232,199,125,0.8);
}

.premium-nav-item:hover::after,
.premium-nav-item:focus::after {
  transform: translateX(100%);
}

.premium-nav-item:hover,
.premium-nav-item:focus {
  color: white;
  text-shadow: 0 0 12px rgba(232,199,125,0.7), 0 0 24px rgba(232,199,125,0.4);
  transform: translateY(-1px);
}

.premium-nav-item:active {
  transform: translateY(0) scale(0.98);
}

.premium-nav-item span {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.premium-nav-item:hover span {
  background: linear-gradient(135deg, #fff, #E8C77D, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-nav-cta {
  background: linear-gradient(135deg, #e8c77d, #f0dfb0);
  color: #0b0b0d;
  border: none;
  box-shadow: 0 4px 15px rgba(232, 199, 125, 0.3);
  transition: all 0.3s ease;
}

.premium-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(232, 199, 125, 0.5);
}

/* Menu mobile premium */
.premium-mobile-menu {
  border-top: 1px solid rgba(0,0,0,0.2);
  background: rgba(102,0,15,0.9);
  backdrop-filter: blur(20px);
}

.premium-mobile-item {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.premium-mobile-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(232,199,125,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-mobile-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #E8C77D, #f7ebc2);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(232,199,125,0.6);
}

.premium-mobile-item:hover::before,
.premium-mobile-item:focus::before {
  transform: translateX(100%);
}

.premium-mobile-item:hover::after,
.premium-mobile-item:focus::after {
  transform: scaleY(1);
}

.premium-mobile-item:hover,
.premium-mobile-item:focus {
  color: white;
  background: rgba(232,199,125,0.1);
  transform: translateX(4px);
  box-shadow: inset 0 0 20px rgba(232,199,125,0.1);
}

.premium-mobile-item:active {
  transform: translateX(2px) scale(0.98);
}

/* =============================================
    PREMIUM LINK STYLES
    ============================================= */

.premium-link {
  color: #e8c77d;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 199, 125, 0.3);
  transition: all 0.3s ease;
}

.premium-link:hover {
  color: #f0dfb0;
  border-bottom-color: rgba(232, 199, 125, 0.6);
  text-shadow: 0 0 8px rgba(232, 199, 125, 0.3);
}

/* =============================================
   GLOBAL UTILITIES
   ============================================= */

.gold-glow {
  box-shadow: 0 0 20px rgba(232,199,125,0.3);
}

.gold-text-glow {
  text-shadow: 0 0 10px rgba(232,199,125,0.5);
}

.gold-border {
  border: 1px solid rgba(232,199,125,0.3);
}

/* Animation de pulse subtile */
.pulse-gold {
  animation: pulseGold 2s ease-in-out infinite alternate;
}

@keyframes pulseGold {
  from { 
    box-shadow: 0 0 0 0 rgba(232,199,125,0.4);
  }
  to { 
    box-shadow: 0 0 0 8px rgba(232,199,125,0);
  }
}

/* Styles globaux */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Évite que le header ne cache les ancres */
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
}