/* ====================================================
   DO ALL - HERO SECTION PARTIE DROITE
   Premium Finance/SaaS Style
   ===================================================== */

/* ====================================================
   CONTENEUR PRINCIPAL - PARTIE DROITE
   ===================================================== */

.homepage-hero-site-right {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

/* ====================================================
   IMAGE PRINCIPALE (PLACEHOLDER)
   ===================================================== */

.hero-right__main-image {
  position: relative;
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 
    0 10px 30px -15px rgba(11, 94, 215, 0.15),
    0 0 0 1px rgba(11, 94, 215, 0.05);
  z-index: 1;
}

[data-theme="dark"] .hero-right__main-image {
  box-shadow: 
    0 10px 30px -15px rgba(56, 189, 248, 0.12),
    0 0 0 1px rgba(56, 189, 248, 0.05);
}

/* ====================================================
   CARTES FLOTTANTES - STYLE COMMUN
   ===================================================== */

.hero-right__card {
  position: absolute;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 
    0 10px 40px -10px var(--color-shadow),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 2;
  max-width: 280px;
  opacity: 1;
}

[data-theme="dark"] .hero-right__card {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--color-border);
  box-shadow: 
    0 10px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-right__card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 50px -10px var(--color-shadow),
    0 0 0 1px rgba(11, 94, 215, 0.2);
}

[data-theme="dark"] .hero-right__card:hover {
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* En-tête de carte */
.hero-right__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-right__card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

[data-theme="dark"] .hero-right__card-icon {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.hero-right__card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Description de carte */
.hero-right__card-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6B7280;
  margin: 0;
}

[data-theme="dark"] .hero-right__card-desc {
  color: #9CA3AF;
}

/* ====================================================
   CARTES INDIVIDUELLES - POSITIONNEMENT
   ===================================================== */

/* Carte 1 - AUDIT & CONFORMITÉ (en haut à gauche) */
.hero-right__card--audit {
  top: 8%;
  left: -5%;
  animation: floatingCard1 6s ease-in-out infinite;
}

/* Carte 2 - NOTATION RÉFÉRENTIELLE (en haut à droite) */
.hero-right__card--rating {
  top: 12%;
  right: -5%;
  animation: floatingCard2 7s ease-in-out infinite;
}

/* Carte 3 - CONSEIL & CERTIFICATION (en bas à gauche) */
.hero-right__card--consulting {
  bottom: 10%;
  left: -8%;
  animation: floatingCard3 8s ease-in-out infinite;
}

/* ====================================================
   ANIMATIONS - FLOATING SUBTIL
   ===================================================== */

@keyframes floatingCard1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes floatingCard2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

@keyframes floatingCard3 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(1.5deg);
  }
}

/* Animations d'apparition */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animations desactivees pour stabilite et lisibilite */
.hero-right__card--audit,
.hero-right__card--rating,
.hero-right__card--consulting,
.hero-right__stats {
  animation: none;
}

/* ====================================================
   RESPONSIVE - TABLETTE
   ===================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
  .homepage-hero-site-right {
    min-height: 450px;
    padding: var(--spacing-lg);
  }

  .hero-right__main-image {
    max-width: 380px;
    height: 500px;
  }
  
  .hero-right__card {
    max-width: 220px;
    padding: 1rem;
  }
  
  .hero-right__card-title {
    font-size: 0.875rem;
  }
  
  .hero-right__card-desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* Positionnement fluide avec clamp() - min, préféré, max */
  .hero-right__card--audit {
    top: clamp(6%, 7%, 12%);
    left: clamp(6%, 9%, 12%);
  }

  .hero-right__card--rating {
    top: clamp(50%, 50%, 52%);
    right: clamp(0%, 8%, 17%);
    transform: translateY(-50%);
  }

  .hero-right__card--consulting {
    bottom: clamp(8%, 10%, 12%);
    left: clamp(6%, 13%, 20%);
  }

  .hero-right__card-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ====================================================
   RESPONSIVE - TABLETTE DEUX COLONNES
   ===================================================== */

@media (min-width: 1024px) and (max-width: 1279px) {
  .homepage-hero-site-right {
    padding: var(--spacing-lg);
  }

  .hero-right__card {
    width: 150px;
    height: 150px;
    max-width: 150px;
  }
}

/* ====================================================
   RESPONSIVE - MOBILE
   ===================================================== */

@media (max-width: 768px) {
  .homepage-hero-site {
    grid-template-columns: 1fr;
  }
  
  .homepage-hero-site-right {
    min-height: auto;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    overflow: visible;
  }
  
  .hero-right__main-image {
    position: static;
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 16px;
    margin: 0 auto;
    z-index: 1;
    animation: fadeInMobile 0.5s ease-out;
  }
  
  /* Cartes en colonne verticale */
  .hero-right__card {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    transform: none !important;
    opacity: 1;
    margin: 0;
    animation: fadeInMobile 0.6s ease-out;
  }

  @keyframes fadeInMobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-right__card--audit,
  .hero-right__card--rating,
  .hero-right__card--consulting {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none !important;
  }
  
  /* Stats en colonne */
  .hero-right__stats {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    gap: var(--spacing-md);
    margin-top: 0;
  }
  
  .hero-right__stat {
    width: 100%;
    text-align: center;
  }
  
  .hero-right__stat-text {
    font-size: 0.8rem;
  }
}

/* ====================================================
   RESPONSIVE - TRÈS PETIT MOBILE
   ===================================================== */

@media (max-width: 480px) {
  .homepage-hero-site-right {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }
  
  .hero-right__main-image {
    max-width: 320px;
  }
  
  .hero-right__card {
    padding: 0.875rem;
  }
  
  .hero-right__card-title {
    font-size: 0.85rem;
  }
  
  .hero-right__card-desc {
    font-size: 0.75rem;
  }
}

/* ====================================================
   DESKTOP LARGE
   ===================================================== */

@media (min-width: 1280px) {
  .homepage-hero-site {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .homepage-hero-site-right {
    padding: var(--spacing-xl) 0 var(--spacing-xl) var(--spacing-xl);
  }
  
  .hero-right__main-image {
    max-width: 460px;
    height: auto;
  }
  
  .hero-right__card {
    max-width: 300px;
  }
}

/* ====================================================
   ACCESSIBILITÉ - REDUCED MOTION
   ===================================================== */

.reduced-motion .hero-right__card,
.reduced-motion .hero-right__card--audit,
.reduced-motion .hero-right__card--rating,
.reduced-motion .hero-right__card--consulting,
.reduced-motion .hero-right__stats {
  animation: none !important;
  transition: none !important;
}

.reduced-motion .hero-right__card {
  opacity: 1;
  transform: none;
}

.reduced-motion .hero-right__stats {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-right__card,
  .hero-right__card--audit,
  .hero-right__card--rating,
  .hero-right__card--consulting,
  .hero-right__stats {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-right__card {
    opacity: 1;
    transform: none;
  }
  
  .hero-right__stats {
    opacity: 1;
  }
}

