
/* Hero Title - Modern & Magnificent */
.hero-title {
  font-size: clamp(32px, 4.5vw, 64px); /* Ajusté pour le nouveau texte */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-24);
  margin-top: var(--space-128);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 22;
  text-shadow: 0 20px 40px rgba(0,0,0,0.5);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  word-break: normal;
  hyphens: none;
}

/* Texte MRR 2.0 en dégradé lumineux - Utilise les variables du thème */
.text-gradient-purple {
  background: linear-gradient(
    to right, 
    var(--purple-500) 0%, 
    var(--purple-300) 25%, 
    #ffffff 50%, 
    var(--purple-300) 75%, 
    var(--purple-500) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shine-flow 4s linear infinite;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

/* Lueur derrière le texte MRR 2.0 - Utilise les variables rgba du thème */
.text-gradient-purple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--purple-500-rgba-3) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* Texte avec effet liquide animé (business) */
.text-highlight-animated {
  color: #ffffff; /* Blanc simple pour "business" pour ne pas voler la vedette au MRR */
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Mise en avant légère IA */
.ai-highlight {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #fff;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 15px var(--purple-500-rgba-5);
}

/* Badge année futuriste */
.year-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 8px;
  border-radius: 8px;
  color: #fff;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 6px;
  margin-right: 6px;
  box-shadow: 0 0 20px var(--purple-500-rgba-2);
  backdrop-filter: blur(5px);
  transform: translateY(-4px);
}

.year-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: badge-shine 3s infinite;
}

/* --- NOUVELLE SECTION HERO UI --- */

/* Wrapper CTA avec garantie */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
}

/* Effet Glow sur le bouton principal */
.btn-glow-pulse {
  position: relative;
  box-shadow: 0 0 20px var(--purple-500-rgba-4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: btn-pulse-glow 3s infinite;
}

@keyframes btn-pulse-glow {
  0% { box-shadow: 0 0 20px var(--purple-500-rgba-4); transform: scale(1); }
  50% { box-shadow: 0 0 35px var(--purple-500-rgba-6); transform: scale(1.02); }
  100% { box-shadow: 0 0 20px var(--purple-500-rgba-4); transform: scale(1); }
}

/* Texte de garantie sous les boutons */
.hero-cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.8;
  margin-top: 8px;
}

@keyframes shine-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes badge-shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

/* Media queries pour différents écrans */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(22px, 6.5vw, 28px);
    margin-top: var(--space-96);
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: clamp(14px, 3.5vw, 16px);
    padding: 0 var(--space-16);
    line-height: 1.6;
  }
}

/* Sur les grands écrans, limiter la largeur comme sur un 14 pouces */
@media (min-width: 1400px) {
  .hero-title {
    max-width: 1200px; /* Force la largeur d'un écran 14" standard */
    font-size: 64px; /* Taille maximale fixe */
  }
  
  .hero-subtitle {
    max-width: 800px; /* Limite la largeur du sous-titre */
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
  }
}

/* Sur les très grands écrans (type iMac 27"), on garde la configuration 14" */
@media (min-width: 1920px) {
  .hero-title {
    font-size: 64px; /* Ne grandit plus */
    max-width: 1200px; /* Reste limité en largeur */
  }
}

/* --- Section VSL vidéo --- */
.hero-vsl-section {
  position: relative;
  padding: 0 0 var(--section-spacing);
  margin-top: -40px;
  overflow: visible;
  z-index: 20;
}

/* --- HERO V2 --- */

.hero-v2 {
  min-height: auto;
  padding: var(--space-128) 0 var(--space-64);
  align-items: flex-start;
}

/* Eyebrow badge au-dessus du titre */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-24);
  margin-top: var(--space-64);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}

.hero-v2 .hero-title {
  margin-top: 0;
  margin-bottom: var(--space-16);
  font-size: clamp(36px, 5vw, 64px);
}

.hero-v2 .hero-subtitle {
  margin-bottom: var(--space-40);
  max-width: 500px;
}

/* Video card — conteneur principal */
.hero-video-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  z-index: 22;
}

.hero-video-card-inner {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(52, 211, 153, 0.04);
}

.hero-video-card-inner .cl-video-container {
  border-radius: 20px;
  overflow: visible;
}

.hero-video-card-inner .hero-video-section {
  border-radius: 20px;
}

.hero-video-card-inner .hero-youtube-wrapper {
  border-radius: 20px;
  overflow: hidden;
}

.hero-video-card-inner .cl-video-overlay {
  border-radius: 20px;
}

/* CTA sous la vidéo */
.hero-video-cta {
  text-align: center;
  margin-top: var(--space-32);
}

.hero-video-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-12);
}

@media (max-width: 768px) {
  .hero-v2 {
    padding: var(--space-96) 0 var(--space-32);
  }

  .hero-eyebrow {
    margin-top: var(--space-32);
    font-size: 11px;
    padding: 5px 14px;
  }

  .hero-video-card {
    max-width: 100%;
  }

  .hero-video-card-inner {
    border-radius: 14px;
  }

  .hero-video-card-inner .cl-video-container,
  .hero-video-card-inner .hero-video-section,
  .hero-video-card-inner .hero-youtube-wrapper,
  .hero-video-card-inner .cl-video-overlay {
    border-radius: 14px;
  }

  .hero-video-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- HERO VIDEO SECTION (legacy) --- */

/* Video Bridge Badge */
.hero-video-bridge {
  display: flex;
  justify-content: center;
  margin: var(--space-32) 0 var(--space-16) 0;
}

.video-bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  background: rgba(30, 30, 35, 0.6); /* Plus transparent */
  backdrop-filter: blur(20px); /* Flou plus intense */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* Lumière zénithale */
  border-radius: 100px;
  padding: 5px 24px 5px 5px;
  font-size: 15px;
  color: #ffffff;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-bridge-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--purple-500-rgba-1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.video-bridge-badge:hover {
  background: rgba(40, 40, 45, 0.7);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--purple-500-rgba-2); /* Lueur émeraude au survol */
}

.video-bridge-badge:hover::before {
  opacity: 1;
}

.video-bridge-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%);
  border-radius: 50%;
  color: white;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
}

/* Cercle de pulse subtil derrière l'icône */
.video-bridge-icon-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--purple-500);
  opacity: 0.3;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.video-bridge-text {
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Video Container — voir .cl-video-wrapper plus bas */

/* Ajustement pour la section suivante pour éviter le chevauchement du contenu */
.hero + .section,
#methode {
  padding-top: 160px !important;
}

.hero-video-section {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Ratio 16:9 pour format horizontal */
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid var(--purple-400-rgba-15);
  background: rgba(19, 19, 26, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Ombre plus prononcée */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* Indicateur de scroll - Design Award Mouse Style */
.hero-scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: var(--space-24);
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 25;
  height: 64px; /* Espace réservé pour l'animation */
}

.scroll-indicator-track {
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  position: relative;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-indicator-track {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px var(--purple-400-rgba-2);
}

.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  animation: scroll-wheel 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Responsive pour le débordement */
@media (max-width: 768px) {
  .cl-video-wrapper {
    transform: translateY(40px);
  }
  
  .hero + .section,
  #methode {
    padding-top: 100px !important;
  }
}

.hero-video-section:hover {
  border-color: var(--purple-400-rgba-4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: scale(1.01);
}

.hero-thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  touch-action: none;
  background-color: rgba(19, 19, 26, 0.95);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Overlay Card for First Play */
.hero-overlay-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 420px;
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid var(--purple-400-rgba-2);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  z-index: 20;
  box-shadow: 
    0 0 0 1000px rgba(0, 0, 0, 0.6),
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 30px var(--purple-400-rgba-05);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Adaptation Mobile de la Carte Overlay */
@media (max-width: 768px) {
  .hero-overlay-card {
    /* Approche différente : utiliser left/right au lieu de width avec transform */
    left: 15% !important;
    right: 15% !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70vh !important;
    height: auto;
    top: 50% !important;
    transform: translateY(-50%) !important; /* Seulement translateY, pas translateX */
    padding: 10px 8px !important;
    gap: 6px !important;
    border-radius: 10px !important;
    background: rgba(15, 15, 20, 0.92) !important;
    overflow: hidden;
  }
  
  .hero-overlay-text-top {
    font-size: 11px; /* Texte réduit à 11px */
    line-height: 1.2;
    margin: 0;
  }
  
  .hero-overlay-icon {
    margin: 0;
  }
  
  .hero-overlay-icon svg {
    width: 20px; /* Icône encore plus réduite */
    height: 20px;
  }
  
  .hero-overlay-text-bottom {
    font-size: 10px; /* Texte encore plus petit */
    line-height: 1.2;
    opacity: 0.9;
    margin: 0;
  }
}

.hero-overlay-card.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6), 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px var(--purple-400-rgba-05); border-color: var(--purple-400-rgba-2); }
  50% { box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6), 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px var(--purple-400-rgba-1); border-color: var(--purple-400-rgba-4); }
  100% { box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6), 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px var(--purple-400-rgba-05); border-color: var(--purple-400-rgba-2); }
}

.hero-overlay-card:hover {
  transform: translate(-50%, -50%) scale(1.02);
  background: rgba(20, 20, 28, 0.9);
}

@media (max-width: 768px) {
  .hero-overlay-card:hover {
    transform: translateY(-50%) scale(1.02) !important; /* Adapter le hover pour mobile */
  }
}

.hero-overlay-text-top {
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-overlay-icon {
  color: white;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s ease;
}

.hero-overlay-card:hover .hero-overlay-icon {
  transform: scale(1.1) rotate(-5deg);
}

.hero-overlay-text-bottom {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hero-overlay-card:hover .hero-overlay-text-bottom {
  color: white;
}

.hero-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: rgba(19, 19, 26, 0.3);
  z-index: 2;
}

/* YouTube embed — remplace le lecteur vidéo custom */
.hero-youtube-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  z-index: 2;
}

.hero-youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 18px;
}

.hero-play-pause-button,
.hero-sound-button,
.hero-fullscreen-button {
  position: absolute;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--purple-400-rgba-1), var(--purple-400-rgba-05), transparent);
  border: 1px solid var(--purple-400-rgba-2);
  backdrop-filter: blur(4px);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  /* Forcer la couleur du texte à blanc pour que currentColor fonctionne correctement */
  color: #ffffff !important;
}

.hero-play-pause-button {
  bottom: 16px;
  left: var(--space-16);
  top: auto;
}

.hero-sound-button {
  bottom: 16px;
  left: calc(var(--space-16) + 48px); /* À droite du bouton play (40px + 8px gap) */
  top: auto;
}

.hero-fullscreen-button {
  bottom: 16px;
  right: var(--space-16);
  top: auto;
}

.hero-play-pause-button:hover,
.hero-sound-button:hover,
.hero-fullscreen-button:hover {
  border-color: var(--purple-400-rgba-4);
  background: linear-gradient(to right, var(--purple-400-rgba-2), var(--purple-400-rgba-1), transparent);
  transform: none;
  opacity: 1;
  box-shadow: 0 0 15px var(--purple-400-rgba-1);
}

.hero-play-pause-button.playing {
  opacity: 0.8;
}

/* Icon styling unified */
.hero-play-icon,
.hero-pause-icon,
.hero-sound-on-icon,
.hero-sound-off-icon,
.hero-fullscreen-enter-icon,
.hero-fullscreen-exit-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
  object-fit: contain;
  opacity: 0.9;
  /* Forcer toutes les icônes à être blanches */
  fill: #ffffff !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

  .hero-play-pause-button:hover .hero-play-icon,
  .hero-play-pause-button:hover .hero-pause-icon,
  .hero-sound-button:hover .hero-sound-on-icon,
  .hero-sound-button:hover .hero-sound-off-icon,
  .hero-fullscreen-button:hover .hero-fullscreen-enter-icon,
  .hero-fullscreen-button:hover .hero-fullscreen-exit-icon {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--purple-400-rgba-4));
    /* Maintenir le blanc au survol */
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
  }

/* Specific icon adjustments */
.hero-sound-icon-wrapper,
.hero-fullscreen-icon-wrapper {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-fullscreen-enter-icon,
.hero-fullscreen-exit-icon {
  stroke: #ffffff !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}

.hero-fullscreen-button:hover .hero-fullscreen-enter-icon,
.hero-fullscreen-button:hover .hero-fullscreen-exit-icon {
  stroke: #ffffff !important;
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Barre de progression */
.hero-progress-container {
  position: absolute;
  bottom: 24px; /* Centré verticalement par rapport aux boutons de 40px (16px + (40-24)/2) */
  left: calc(var(--space-16) + 96px); /* Après les deux boutons (16px + 40px play + 8px gap + 40px son + 8px gap) */
  right: calc(var(--space-16) + 48px); /* Laisse la place au bouton fullscreen (40px + 8px gap) */
  width: auto;
  height: 24px; /* Plus épais pour le conteneur style input */
  background: linear-gradient(to right, var(--purple-400-rgba-1), var(--purple-400-rgba-05), transparent);
  border: 1px solid var(--purple-400-rgba-2);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  z-index: 5;
  cursor: default; /* Non cliquable */
  pointer-events: none; /* Non interactif */
  transition: border-color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.hero-progress-container:hover {
  border-color: var(--purple-400-rgba-4);
  height: 24px; /* Reste fixe */
}

.hero-progress-bar {
  height: 8px; /* Barre interne plus épaisse */
  background: linear-gradient(to right, var(--purple-500), var(--purple-500));
  width: 0%;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--purple-500-rgba-3);
  transition: width 0.1s linear;
}

.hero-progress-bar::after {
  content: '';
  position: absolute;
  right: -9px; /* Centré sur le bout (18/2) */
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--purple-500);
  border-radius: 50%;
  border: 1px solid var(--purple-400-rgba-2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 1; /* Toujours visible comme dans l'app */
}

.hero-progress-container:hover .hero-progress-bar::after {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--purple-500-rgba-4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-play-pause-button,
  .hero-sound-button,
  .hero-fullscreen-button {
    width: 40px;
    height: 40px;
    /* Utiliser les variables CSS du thème */
    background: linear-gradient(to right, var(--purple-400-rgba-1), var(--purple-400-rgba-05), transparent) !important;
    border: 1px solid var(--purple-400-rgba-2) !important;
  }
  
  .hero-play-pause-button:hover,
  .hero-sound-button:hover,
  .hero-fullscreen-button:hover {
    border-color: var(--purple-400-rgba-4) !important;
    background: linear-gradient(to right, var(--purple-400-rgba-2), var(--purple-400-rgba-1), transparent) !important;
  }
  
  /* Utiliser les variables CSS du thème pour la barre de progression */
  .hero-progress-container {
    background: linear-gradient(to right, var(--purple-400-rgba-1), var(--purple-400-rgba-05), transparent) !important;
    border: 1px solid var(--purple-400-rgba-2) !important;
  }
  
  .hero-progress-bar {
    background: linear-gradient(to right, var(--purple-500), var(--purple-500)) !important;
  }
  
  .hero-progress-bar::after {
    background: var(--purple-500) !important;
    border: 1px solid var(--purple-400-rgba-2) !important;
  }
  
  .hero-play-pause-button {
    bottom: 12px;
    left: var(--space-12);
    top: auto;
  }
  
  .hero-sound-button {
    bottom: 12px;
    left: calc(var(--space-12) + 48px);
    top: auto;
  }
  
  .hero-fullscreen-button {
    bottom: 12px;
    right: var(--space-12);
    top: auto;
  }
  
  .hero-progress-container {
      left: calc(var(--space-12) + 96px);
      right: calc(var(--space-12) + 48px);
      bottom: 20px;
  }
  
  .hero-play-icon,
  .hero-pause-icon,
  .hero-sound-on-icon,
  .hero-sound-off-icon,
  .hero-fullscreen-enter-icon,
  .hero-fullscreen-exit-icon {
    width: 20px;
    height: 20px;
    /* Forcer toutes les icônes des contrôles vidéo à être blanches sur mobile */
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
  }
  
  .hero-play-pause-button:hover .hero-play-icon,
  .hero-play-pause-button:hover .hero-pause-icon,
  .hero-sound-button:hover .hero-sound-on-icon,
  .hero-sound-button:hover .hero-sound-off-icon,
  .hero-fullscreen-button:hover .hero-fullscreen-enter-icon,
  .hero-fullscreen-button:hover .hero-fullscreen-exit-icon {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
  }
  
  .video-bridge-badge {
    font-size: 12px;
    padding: 8px 12px;
    width: 95%;
    max-width: none;
    flex-direction: column; /* Empiler verticalement sur mobile */
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    height: auto;
    min-height: auto;
  }
  
  .video-bridge-icon-container {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  
  .video-bridge-icon-container svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 390px) {
  .video-bridge-badge {
    font-size: 11px;
    padding: 6px 10px;
    gap: 6px;
  }

  .video-bridge-icon-container {
    width: 24px;
    height: 24px;
  }

  .video-bridge-icon-container svg {
    width: 12px;
    height: 12px;
  }

  .video-bridge-text {
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    padding: 0 4px;
  }
}

/* ============================================
   VSL VIDÉO AVEC PREUVES FLOTTANTES
   Réplique exacte du style Code Liberté
   ============================================ */

.cl-video-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  perspective: 1000px;
  padding: 0 20px;
  z-index: 30;
  transform: translateY(80px);
  overflow: visible;
}

.cl-video-container {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cl-video-container:hover {
  transform: scale(1.02);
}


.cl-video-player {
  position: relative;
  z-index: 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Overlay sombre sur la vidéo */
.cl-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 4;
  border-radius: 20px;
  opacity: 1;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

/* Overlay disparaît seulement quand la vidéo joue (pas au hover) */
.cl-video-container.playing .cl-video-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Indicateur de clic (main + cercle + texte) */
.cl-click-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none; /* Les clics passent à travers vers l'overlay */
  opacity: 1;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Indicateur disparaît seulement quand la vidéo joue (pas au hover) */
.cl-video-container.playing .cl-click-indicator {
  opacity: 0;
}

.cl-play-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cl-play-glass {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cl-play-glass svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.cl-click-indicator:hover .cl-play-glass {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.cl-click-indicator:hover .cl-play-glass svg {
  transform: scale(1.1);
}

.cl-play-ripple {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  animation: playRipple 2.5s ease-out infinite;
}

.cl-play-ripple--2 {
  animation-delay: 1.25s;
}

@keyframes playRipple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.cl-click-text {
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.cl-click-indicator:hover .cl-click-text {
  opacity: 1;
}

/* === IMAGES GAUCHE (wrapper pour les 2 images) === */
.cl-results-wrapper {
  position: absolute;
  top: 45%;
  left: -200px;
  transform: translateY(-50%) rotate(-8deg) scale(0.85);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.cl-video-container:hover .cl-results-wrapper {
  opacity: 1;
  left: -160px;
  transform: translateY(-50%) rotate(-5deg) scale(1);
}


/* Image principale gauche (Revolut) */
.cl-result-main {
  width: 280px;
  height: 380px;
  object-fit: cover;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 3px solid white;
  display: block;
}

/* Image secondaire gauche (Payouts) — apparaît avec délai */
.cl-result-secondary {
  position: absolute;
  bottom: -40px;
  left: 100px;
  width: 240px;
  height: 160px;
  object-fit: cover;
  object-position: left center;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border: 3px solid white;
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cl-video-container:hover .cl-result-secondary {
  left: -40px;
  opacity: 1;
  transform: scale(1) rotate(-3deg);
  transition-delay: 0.15s;
}


/* === IMAGES DROITE (wrapper pour les 2 images) === */
.cl-results-wrapper-right {
  position: absolute;
  top: 55%;
  right: -200px;
  transform: translateY(-50%) rotate(8deg) scale(0.85);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}

.cl-video-container:hover .cl-results-wrapper-right {
  opacity: 1;
  right: -160px;
  transform: translateY(-50%) rotate(5deg) scale(1);
}


/* Image principale droite (Stripe) — en bas */
.cl-result-right {
  width: 400px;
  height: 380px;
  object-fit: cover;
  object-position: 5% center;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 3px solid white;
  display: block;
  background: white;
}

/* Image secondaire droite (Payouts) — en haut, apparaît avec délai */
.cl-result-right-secondary {
  position: absolute;
  top: -250px;
  right: 100px;
  width: 240px;
  height: 160px;
  object-fit: cover;
  object-position: left center;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border: 3px solid white;
  opacity: 0;
  transform: scale(0.5) rotate(15deg);
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cl-video-container:hover .cl-result-right-secondary {
  right: -40px;
  opacity: 1;
  transform: scale(1) rotate(3deg);
  transition-delay: 0.15s;
}


/* === RESPONSIVE === */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .cl-video-wrapper {
    max-width: 1000px;
  }
  .cl-results-wrapper {
    left: -220px;
  }
  .cl-video-container:hover .cl-results-wrapper {
    left: -180px;
  }
  .cl-result-main {
    width: 300px;
    height: 400px;
  }
  .cl-result-secondary {
    width: 260px;
    height: 175px;
    bottom: -45px;
    left: 120px;
  }
  .cl-video-container:hover .cl-result-secondary {
    left: -30px;
  }
  .cl-results-wrapper-right {
    right: -220px;
  }
  .cl-video-container:hover .cl-results-wrapper-right {
    right: -180px;
  }
  .cl-result-right {
    width: 420px;
    height: 400px;
    object-position: 3% center;
  }
  .cl-result-right-secondary {
    width: 260px;
    height: 175px;
    top: -45px;
    right: 120px;
  }
  .cl-video-container:hover .cl-result-right-secondary {
    right: -30px;
  }
}

/* Tablette (769px - 1024px) */
@media (max-width: 1024px) {
  .cl-video-wrapper {
    max-width: 700px;
    padding: 0 24px;
  }
  .cl-results-wrapper {
    left: -140px;
  }
  .cl-video-container:hover .cl-results-wrapper {
    left: -120px;
  }
  .cl-result-main {
    width: 220px;
    height: 300px;
  }
  .cl-result-secondary {
    width: 180px;
    height: 120px;
    bottom: -30px;
    left: 80px;
  }
  .cl-video-container:hover .cl-result-secondary {
    left: -30px;
  }
  .cl-results-wrapper-right {
    right: -140px;
  }
  .cl-video-container:hover .cl-results-wrapper-right {
    right: -120px;
  }
  .cl-result-right {
    width: 300px;
    height: 300px;
    object-position: 10% center;
  }
  .cl-result-right-secondary {
    width: 180px;
    height: 120px;
    top: -30px;
    right: 80px;
  }
  .cl-video-container:hover .cl-result-right-secondary {
    right: -30px;
  }
  .cl-play-glass {
    width: 70px;
    height: 70px;
  }
  .cl-play-ripple {
    width: 70px;
    height: 70px;
  }
  .cl-video-container:hover {
    transform: scale(1.01);
  }
}

/* Mobile — masquer les images flottantes */
@media (max-width: 768px) {
  .cl-video-wrapper {
    padding: 0 20px;
  }
  .cl-results-wrapper,
  .cl-results-wrapper-right {
    display: none;
  }
  .cl-click-indicator {
    gap: 12px;
  }
  .cl-play-glass {
    width: 64px;
    height: 64px;
  }
  .cl-play-glass svg {
    width: 18px;
    height: 22px;
  }
  .cl-play-ripple {
    width: 64px;
    height: 64px;
  }
  .cl-click-text {
    font-size: 13px;
  }
  .cl-video-container:hover {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .cl-video-wrapper {
    padding: 0 16px;
  }
  .cl-play-glass {
    width: 56px;
    height: 56px;
  }
  .cl-play-glass svg {
    width: 16px;
    height: 20px;
  }
  .cl-play-ripple {
    width: 56px;
    height: 56px;
  }
  .cl-click-text {
    font-size: 12px;
  }
}

/* ============================================
   IMAGES FLOTTANTES : main + right toujours visibles,
   secondary apparaît au hover (in-view)
   ============================================ */

/* Main (Revolut) et Right (Stripe) — animation d'entrée */
.cl-results-wrapper {
  left: -160px !important;
  animation: slideInFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both !important;
}

.cl-results-wrapper-right {
  right: -160px !important;
  animation: slideInFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both !important;
}

/* Secondary gauche — transition d'entrée ET de sortie */
.cl-result-secondary {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cl-video-container.in-view .cl-result-secondary {
  left: -40px !important;
  opacity: 1 !important;
  transform: scale(1) rotate(-3deg) !important;
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
              left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s !important;
}

/* Secondary droite — transition d'entrée ET de sortie */
.cl-result-right-secondary {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              right 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cl-video-container.in-view .cl-result-right-secondary {
  right: -40px !important;
  opacity: 1 !important;
  transform: scale(1) rotate(3deg) !important;
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
              right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s !important;
}

/* Quand hors viewport, reset pour rejouer l'animation au retour */
.cl-video-container.out-of-view .cl-results-wrapper {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(-50%) rotate(-15deg) scale(0.7) translateX(80px) !important;
}

.cl-video-container.out-of-view .cl-results-wrapper-right {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(-50%) rotate(15deg) scale(0.7) translateX(-80px) !important;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    left: -280px;
    transform: translateY(-50%) rotate(-15deg) scale(0.7);
  }
  100% {
    opacity: 1;
    left: -160px;
    transform: translateY(-50%) rotate(-5deg) scale(1);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    right: -280px;
    transform: translateY(-50%) rotate(15deg) scale(0.7);
  }
  100% {
    opacity: 1;
    right: -160px;
    transform: translateY(-50%) rotate(5deg) scale(1);
  }
}
