/* ==========================================================================
   HERO VISUAL — composition illustrée (scène + 3 cartes flottantes)
   Ajouté 2026-09-04. Fichier additif : ne modifie aucune règle existante.
   Remplace l'ancien bloc .hero-image (image carrée unique).
   ========================================================================== */

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 480px;
}

/* --- Halo lumineux derrière la scène (rappel de la réf.) --- */
.hero-visual::before {
  content: "";
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 88%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 55% 45%,
              rgba(255, 255, 255, 0.95) 0%,
              rgba(230, 240, 250, 0.75) 45%,
              rgba(230, 240, 250, 0) 72%);
  border-radius: 50%;
  pointer-events: none;
}

/* --- La scène principale --- */
.hero-visual-scene {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 548px;
  height: auto;
  margin-right: 0;
  filter: drop-shadow(0 22px 45px rgba(37, 99, 168, 0.22));
}

/* --- Les cartes flottantes --- */
.hero-cards {
  position: absolute;
  z-index: 2;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 292px;
}

.hero-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(26, 58, 107, 0.14);
  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero-card:nth-child(2) { animation-delay: -2s; margin-left: 22px; }
.hero-card:nth-child(3) { animation-delay: -4s; }

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.hero-card-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  /* illustration entière, posée telle quelle : ni cercle, ni fond, ni rognage */
  object-fit: contain;
}

.hero-card-text { min-width: 0; }

.hero-card-title {
  display: block;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--primary-dark);
}

.hero-card-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--gray-500);
}

/* ===== Responsive =====
   ATTENTION : style.css repasse .hero .container en 1 colonne dès 1024px
   (et non 768px). Les bascules ci-dessous sont calées sur CE point. */

/* 1025 -> 1200 : encore 2 colonnes mais étroites, on resserre les cartes */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-cards { left: -30px; width: 258px; gap: 13px; }
  .hero-card { padding: 10px 13px 10px 10px; gap: 11px; min-height: 68px; }
  .hero-card-icon { flex-basis: 50px; width: 50px; height: 50px; }
  .hero-card-title { font-size: 0.84rem; }
  .hero-card-sub { font-size: 0.73rem; }
  .hero-visual-scene { width: 94%; }
}

/* <= 1024 : le hero est en 1 colonne -> on désempile la composition */
@media (max-width: 1024px) {
  .hero-visual {
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }
  .hero-visual::before { display: none; }
  .hero-visual-scene {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .hero-cards {
    position: static;
    transform: none;
    width: 100%;
    max-width: 860px;
    margin: 22px auto 0;
  }
  .hero-card { animation: none; background: var(--white); }
  .hero-card:nth-child(2) { margin-left: 0; }
}

/* 769 -> 1024 : les 3 cartes tiennent sur une ligne */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-cards { flex-direction: row; gap: 14px; }
  .hero-card { flex: 1 1 0; min-width: 0; }
  .hero-card-title { white-space: normal; font-size: 0.86rem; }
}

/* <= 768 : empilement vertical */
@media (max-width: 768px) {
  .hero-visual { margin-top: 24px; }
  .hero-cards { max-width: 420px; gap: 10px; }
  .hero-card-title { white-space: nowrap; }
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
}
