/* Media Coverage Section - Original Press Cards Design */

.media-coverage {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  /* Force l'affichage pour debug */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.media-coverage-header {
  text-align: center;
  margin-bottom: 60px;
}

.media-coverage-header h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
}

.media-coverage-header h2 span {
  background-color: #E20775;
  color: #fff;
  padding: 0.1em 0.3em;
  margin-left: 0.2em;
  display: inline-block;
  text-transform: uppercase;
}

.media-coverage-header p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* News Marquee Container */
.news-marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  height: 420px;
  margin: 40px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.news-marquee::-webkit-scrollbar {
  display: none;
}

.news-marquee.grabbing {
  cursor: grabbing;
}

.news-track {
  display: flex;
  gap: 30px;
  position: absolute;
  animation: newsScroll 55s linear infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@keyframes newsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.news-track:hover {
  animation-play-state: paused;
}

/* Press Cards */
.press-card {
  flex: 0 0 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
}

.press-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 27, 107, 0.1), rgba(69, 202, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.press-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 27, 107, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Card Header */
.press-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.publication-logo {
  flex: 0 0 auto;
}

.logo-placeholder {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.logo-placeholder.vitisphere { background: #2F855A; }
.logo-placeholder.bernard-magrez-start-up-win { background: #805AD5; }
.logo-placeholder.french-tech-bordeaux { background: #D53F8C; }
.logo-placeholder.vinseo { background: #3182CE; }
.logo-placeholder.la-revue-des-oenlogues { background: #B45309; }
.logo-placeholder.agra-innovation { background: #E53E3E; }

.publication-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Card Content */
.press-card-content {
  margin-top: 16px;
}

.press-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 2.8em;
}

.press-quote {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.press-cta {
  margin-top: auto;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FF1B6B;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  position: relative;
}

.read-more-btn:hover {
  color: #FF4785;
  gap: 12px;
}

.read-more-btn:active {
  transform: scale(0.95);
}

.read-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.read-more-btn:hover svg {
  transform: translateX(4px);
}

/* Navigation Controls - Boutons de scroll horizontaux */
.news-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding: 0 20px;
}

.news-nav-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-nav-btn:hover {
  background: linear-gradient(135deg, rgba(227, 0, 117, 0.3), rgba(227, 0, 117, 0.1));
  border-color: #e30075;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(227, 0, 117, 0.3);
}

.news-nav-btn:active {
  transform: scale(0.9);
  background: linear-gradient(135deg, rgba(227, 0, 117, 0.4), rgba(227, 0, 117, 0.2));
}

.news-nav-btn:focus {
  outline: 2px solid #e30075;
  outline-offset: 2px;
}

.news-nav-btn svg {
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.news-nav-btn:hover svg {
  color: #e30075;
  transform: scale(1.1);
}

.news-nav-btn.prev svg {
  transform: rotate(180deg);
}

.news-nav-btn.prev:hover svg {
  transform: rotate(180deg) scale(1.1);
}

/* États de chargement et accessibilité */
.news-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.news-nav-btn:disabled:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.3);
  transform: none;
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse-attention {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.news-nav-btn.pulse {
  animation: pulse-attention 2s infinite;
}

/* Footer - Section "Vous êtes journaliste ?" - Design selon screenshot */
.media-coverage-footer {
  text-align: center;
  margin: 50px auto 0 auto;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

/* Wrapper pour centrer la section */
.media-coverage-footer-wrapper {
  text-align: center;
  width: 100%;
}

.media-coverage-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(227, 0, 117, 0.08), rgba(255, 255, 255, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.media-coverage-footer:hover::before {
  opacity: 1;
}

.media-coverage-footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  position: relative;
  z-index: 2;
  line-height: 1.5;
  display: inline;
}

.media-coverage-footer a {
  color: #e30075;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 6px;
  padding: 6px 12px;
  border: 1px solid #e30075;
  border-radius: 20px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
}

.media-coverage-footer a:hover {
  background-color: #e30075;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(227, 0, 117, 0.2);
}

.media-coverage-footer a:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1250px) {
  .media-coverage-header h2 {
    font-size: 2.5rem;
  }
  
  .news-track {
    gap: 20px;
  }
  
  .press-card {
    flex: 0 0 350px;
  }
}

/* Optimisations critiques pour tablettes (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
  .media-coverage {
    padding: 80px 0;
  }
  
  .news-marquee {
    height: 400px;
    padding: 0 20px;
  }
  
  .press-card {
    flex: 0 0 320px;
    padding: 22px;
  }
  
  .news-track {
    gap: 20px;
    animation-duration: 65s; /* Plus lent pour tablette */
  }
}

/* Optimisations spécifiques pour mobile (≤768px) */
@media (max-width: 768px) {
  .media-coverage {
    padding: 60px 0;
    /* Optimiser les performances sur mobile */
    contain: layout style;
  }
  
  .media-coverage-header {
    margin-bottom: 40px;
  }
  
  .media-coverage-header h2 {
    font-size: 2rem;
    padding: 0 20px;
  }
  
  .media-coverage-header p {
    font-size: 1rem;
    padding: 0 20px;
    line-height: 1.5;
  }
  
  .news-marquee {
    height: auto;
    min-height: 380px; /* Réduire la hauteur */
    margin: 30px 0;
    padding: 0 15px;
    /* Optimisations touch pour mobile */
    touch-action: pan-x pinch-zoom;
    cursor: auto; /* Pas de cursor grab sur mobile */
  }
  
  .news-track {
    gap: 15px;
    /* Animation plus lente et optimisée pour mobile */
    animation-duration: 80s;
    /* Économiser les ressources GPU sur mobile */
    will-change: auto;
  }
  
  .press-card {
    flex: 0 0 280px;
    padding: 20px;
    margin-bottom: 10px;
    /* Réduire les transitions coûteuses sur mobile */
    transition: transform 0.2s ease;
  }
  
  /* Simplifier les hovers sur mobile (touch) */
  .press-card:active {
    transform: scale(0.98);
  }
  
  .press-card-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .publication-logo {
    margin-bottom: 5px;
  }
  
  .logo-placeholder {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .press-headline {
    font-size: 1.1rem;
    min-height: auto;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  
  .press-quote {
    font-size: 0.875rem;
    -webkit-line-clamp: 4;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .news-navigation {
    gap: 16px;
    margin-top: 30px;
  }
  
  .news-nav-btn {
    width: 50px;
    height: 50px;
    touch-action: manipulation;
  }
  
  .news-nav-btn svg {
    width: 24px;
    height: 24px;
  }
  
  .media-coverage-footer {
    margin-top: 30px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
  }
  
  .media-coverage-footer p {
    font-size: 1rem;
    margin: 0;
    display: inline;
  }
  
  .media-coverage-footer a {
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 6px;
  }
}

/* Ajustements pour très petits écrans (≤480px) */
@media (max-width: 480px) {
  .media-coverage {
    padding: 50px 0;
  }
  
  .news-marquee {
    min-height: 360px;
    padding: 0 10px;
  }
  
  .press-card {
    flex: 0 0 260px;
    padding: 16px;
  }
  
  .media-coverage-header h2 {
    font-size: 1.75rem;
    padding: 0 15px;
  }
  
  .press-headline {
    font-size: 1rem;
  }
  
  .press-quote {
    font-size: 0.8125rem;
  }
  
  .news-navigation {
    gap: 12px;
    margin-top: 25px;
  }
  
  .news-nav-btn {
    width: 48px;
    height: 48px;
  }
  
  .news-nav-btn svg {
    width: 22px;
    height: 22px;
  }
  
  .media-coverage-footer {
    padding: 18px 22px;
    margin-top: 25px;
    border-radius: 50px;
    display: inline-block;
  }
  
  .media-coverage-footer p {
    font-size: 0.9rem;
    margin: 0;
    display: inline;
  }
  
  .media-coverage-footer a {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 18px;
    margin-left: 5px;
  }
}

/* Fallback par défaut (avant la MQ progressive) */
.news-track {
  animation: slideIn 0.6s ease-out;
}

/* Optimisations pour les connexions lentes (MQ progressive - sera ignorée si non supportée) */
@media (prefers-reduced-data: reduce) {
  .news-track {
    animation: none !important;
  }
  
  .press-card::before,
  .press-card::after {
    display: none;
  }
  
  .press-card {
    transition: none;
  }
}

/* Optimisations pour reduced motion */
@media (prefers-reduced-motion: reduce) {
  .news-track {
    animation-duration: 120s; /* Très lent */
  }
  
  .press-card {
    transition-duration: 0.1s;
  }
}

/* Animation pause on section hover */
.media-coverage:hover .news-track {
  animation-play-state: paused;
}

/* Subtle newspaper texture overlay */
.press-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px, transparent 4px),
    radial-gradient(circle at 70% 50%, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px, transparent 4px);
  background-size: 30px 30px, 20px 20px;
  pointer-events: none;
  opacity: 0.3;
  border-radius: 12px;
}


/* Enhanced hover effects (desktop seulement) */
@media (min-width: 769px) {
  .press-card:hover .press-headline {
    color: #e30075;
    transition: color 0.3s ease;
  }

  .press-card:hover .logo-placeholder {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }

  .press-card:hover .publication-date {
    background: rgba(227, 0, 117, 0.1);
    color: #e30075;
    transition: all 0.3s ease;
  }
} 