/* ===== SECTION VISION - LAYOUT VERTICAL AVEC MOCKUP IPHONE ===== */

.vision-section {
  background: linear-gradient(135deg, #2E86DE 0%, #1e40af 100%); /* RESTAURÉ: Fond bleu Bema */
  padding: 120px 0 120px 0;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Formes démocratiques blanches */
.vision-section::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: floatShape1 8s ease-in-out infinite;
}

.vision-container::before {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: floatShape2 6s ease-in-out infinite reverse;
}

.vision-container::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transform: rotate(45deg);
  animation: rotateShape 10s linear infinite;
}

@keyframes floatShape1 {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.05; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.08; }
}

@keyframes floatShape2 {
  0%, 100% { transform: translateX(0px) translateY(0px); opacity: 0.03; }
  50% { transform: translateX(15px) translateY(-10px); opacity: 0.06; }
}

@keyframes rotateShape {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}

.vision-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ===== CONTENU VISION À GAUCHE ===== */
.vision-content-left {
  color: var(--white);
  padding: var(--spacing-xl);
}

.vision-header {
  margin-bottom: var(--spacing-3xl);
}

.vision-header h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.vision-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.6;
}

/* Vision Cards */
.vision-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.vision-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: var(--spacing-2xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.vision-iphone-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.vision-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.vision-card-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.vision-card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.vision-card-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== VIDÉO ÉLÉGANTE À DROITE ===== */
.vision-video-right {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--spacing-2xl);
  margin-left: var(--spacing-xl);
  margin-top: calc(var(--spacing-3xl) + 3rem); /* DESCENDU: +3rem pour descendre la vidéo */
}

.video-container-elegant {
  background: #FFFFFF;
  border-radius: 45px; /* AUGMENTÉ: 25px->45px pour style iPhone */
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* AJOUTÉ: Ombre iPhone */
  backdrop-filter: none;
  border: none;
  position: relative;
  overflow: hidden; /* CHANGÉ: hidden pour border-radius */
  max-width: 320px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container-elegant:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); /* AJOUTÉ: Ombre plus prononcée au hover */
}

.video-container-elegant::before {
  display: none;
}

.video-wrapper {
  position: relative;
  border-radius: 45px; /* AUGMENTÉ: 25px->45px pour cohérence */
  overflow: hidden;
  background: #FFFFFF;
  border: none;
  aspect-ratio: 9/19.5;
  width: 100%;
  padding: 0;
  box-shadow: none;
}

.bema-vision-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* CORRIGÉ: Affiche la vidéo complète sans rognage */
  border-radius: 45px; /* AUGMENTÉ: 25px->45px pour style iPhone */
  transition: all 0.3s ease;
  border: none !important;
  outline: none !important;
  background: #FFFFFF;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.video-wrapper:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--white);
  text-align: center;
  background: transparent;
  border-radius: 25px;
  padding: 0;
}

.video-fallback img {
  width: 100%;
  height: auto;
  border-radius: 25px;
  object-fit: cover;
}

.iphone-frame {
  width: 280px;
  height: 570px;
  border-radius: 45px;
  padding: 8px;
  background: #FFFFFF;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.iphone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: calc(100% - 16px);
  background: #FFFFFF;
  border-radius: 37px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}

.iphone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
}

.video-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
}

.iphone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* ===== ANIMATIONS ===== */
@keyframes phoneFloat {
  0%, 100% {
    transform: scale(1.2) translateY(0px);
  }
  50% {
    transform: scale(1.2) translateY(-10px);
  }
}

.iphone-mockup {
  animation: phoneFloat 6s ease-in-out infinite;
}
/* ===== RESPONSIVE DESIGN ===== */

/* Responsive Design */
@media (max-width: 768px) {
  .vision-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    padding: var(--spacing-lg);
  }

  .vision-content-left {
    text-align: center;
  }

  .vision-video-right {
    padding: var(--spacing-lg);
    margin-left: 0;
    margin-top: var(--spacing-xl);
  }

  .video-container-elegant {
    max-width: 280px;
    padding: 0;
  }

  .video-container-elegant:hover {
    transform: scale(1.01);
  }

  .vision-header h2 {
    font-size: 2rem;
  }
  
  .vision-subtitle {
    font-size: 1.1rem;
  }
  
  .vision-card {
    padding: var(--spacing-lg);
    flex-direction: column;
    text-align: center;
  }
  
  .vision-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* iPhone SE et petits écrans */
@media (max-width: 375px) {
  .vision-container {
    padding: 0 var(--spacing-md);
  }
  
  .iphone-frame {
    width: 180px;
    height: 360px;
  }
  
  .vision-header h2 {
    font-size: 1.8rem;
  }
}
