/* MDIVINE — promotions et illustrations en volume.
   Feuille distincte de mdivine.css, qui est une extraction verbatim du site
   en production et ne doit pas être modifiée à la main. */

/* ----------------------------------------------------------------
   Illustrations SVG
   ---------------------------------------------------------------- */

.illustration-3d {
  display: inline-block;
  max-width: 100%;
  height: auto;
  /* Léger basculement : suffit à suggérer le volume sans déformer le dessin. */
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.illustration-3d:hover {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-6px) scale(1.03);
}

/* Variante posée à plat, pour les bannières et les en-têtes. */
.illustration-flat {
  transform: none;
}

.illustration-float {
  animation: illustration-float 6s ease-in-out infinite;
}

@keyframes illustration-float {
  0%, 100% { transform: perspective(900px) rotateY(-8deg) translateY(0); }
  50%      { transform: perspective(900px) rotateY(-8deg) translateY(-14px); }
}

/* ----------------------------------------------------------------
   Encart promotionnel
   ---------------------------------------------------------------- */

.promo-banner {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.promo-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ----------------------------------------------------------------
   Bandeau défilant
   ---------------------------------------------------------------- */

.promo-marquee {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-marquee__track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: promo-marquee-scroll 32s linear infinite;
}

.promo-marquee:hover .promo-marquee__track {
  animation-play-state: paused;
}

.promo-marquee__item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

@keyframes promo-marquee-scroll {
  from { transform: translateX(0); }
  /* -50% : la piste contient la liste en double. */
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   Bannière illustrée d'en-tête de page
   ---------------------------------------------------------------- */

.page-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(700px 320px at 88% 20%, rgba(255, 0, 238, 0.16), transparent 65%),
    radial-gradient(600px 300px at 10% 90%, rgba(180, 180, 13, 0.14), transparent 65%),
    rgba(255, 255, 255, 0.03);
}

.page-banner__illustration {
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .page-banner__illustration {
    opacity: 0.35;
    position: absolute;
    right: -30px;
    bottom: -20px;
  }
}

/* ----------------------------------------------------------------
   Parcours détaillé d'un pack — frise verticale par mois
   ---------------------------------------------------------------- */

.curriculum__step {
  position: relative;
  padding-left: 64px;
  padding-bottom: 28px;
}

/* Trait reliant les étapes ; absent sur la dernière pour ne pas
   laisser la frise « pendre » dans le vide. */
.curriculum__step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(180, 180, 13, 0.5), rgba(255, 0, 238, 0.12));
}

.curriculum__step:last-child::before {
  display: none;
}

.curriculum__step:last-child {
  padding-bottom: 0;
}

.curriculum__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0a0a0f;
  background: linear-gradient(135deg, #b4b40d, #ff00ee);
  box-shadow: 0 8px 24px rgba(255, 0, 238, 0.25);
}

@media (max-width: 575.98px) {
  .curriculum__step {
    padding-left: 52px;
  }

  .curriculum__marker {
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
  }

  .curriculum__step::before {
    left: 19px;
    top: 40px;
  }
}

/* ----------------------------------------------------------------
   Accessibilité
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .illustration-3d,
  .illustration-3d:hover,
  .promo-banner,
  .promo-banner:hover {
    transform: none;
    transition: none;
  }

  .illustration-float,
  .promo-marquee__track {
    animation: none;
  }
}
