/* ═══════════════════════════════════════════════════════════
   Devenir Formateur Premium Banner - ELITE SIGNATURE STYLE
   ═══════════════════════════════════════════════════════════ */

/* Wrapper allowing breakout layout */
.df-out-of-box-hero-wrapper {
  padding: 60px 20px 10px; /* Generous space for break-out robot */
  width: 100%;
  max-width: 1300px;
  margin-top: 3rem;
  /* margin: 0 auto; */
}

/* Banner container - Height STRICTLY max 400px */
.df-elite-banner {
  position: relative;
  width: 100%;
  height: 400px; /* Fixed small height as requested */
  background: #ffffff;
  border-radius: 32px;
  display: flex;
  align-items: center;
  box-shadow:
    0 40px 100px rgba(0, 7, 34, 0.08),
    inset 0 0 0 1px rgba(0, 71, 255, 0.05);
  overflow: hidden;
}

/* Background that is clipped inside the border-radius */
.df-elite-bg {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 40%, #f4f7fa 100%);
  z-index: 1;
  animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    background: linear-gradient(110deg, #ffffff 40%, #f4f7fa 100%);
  }
  50% {
    background: linear-gradient(110deg, #f0f5ff 40%, #eef2ff 100%);
  }
  100% {
    background: linear-gradient(110deg, #ffffff 40%, #f4f7fa 100%);
  }
}

/* Structural Gyroscope background - Innovative & Geometric */
.df-gyro {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(0, 71, 255, 0.2);
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  z-index: 1;
  pointer-events: none;
}

.df-gyro-1 {
  width: 1400px;
  height: 1400px;
  margin-top: -700px;
  margin-left: -700px;
  animation: gyroRotate 35s linear infinite;
  border-left-color: rgba(0, 180, 216, 0.6);
  border-right-color: rgba(0, 71, 255, 0.5);
}

.df-gyro-2 {
  width: 1000px;
  height: 1000px;
  margin-top: -500px;
  margin-left: -500px;
  animation: gyroRotateAlt 28s linear infinite;
  border-top-color: rgba(0, 71, 255, 0.5);
  border-bottom-color: rgba(0, 180, 216, 0.4);
}

.df-gyro-3 {
  width: 1200px;
  height: 1200px;
  margin-top: -600px;
  margin-left: -600px;
  animation: gyroRotate 40s linear infinite reverse;
  border-left-color: rgba(79, 70, 229, 0.5);
  border-right-color: rgba(79, 70, 229, 0.3);
}

.df-gyro-4 {
  width: 800px;
  height: 800px;
  margin-top: -400px;
  margin-left: -400px;
  animation: gyroRotateAlt 22s linear infinite reverse;
  border-top-color: rgba(59, 130, 246, 0.4);
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

@keyframes gyroRotate {
  0% {
    transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg);
  }
}

@keyframes gyroRotateAlt {
  0% {
    transform: rotateX(75deg) rotateY(-10deg) rotateZ(360deg);
  }
  100% {
    transform: rotateX(75deg) rotateY(-10deg) rotateZ(0deg);
  }
}

/* Glass shards floating on the white background */
.df-shard {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.3)
  );
  box-shadow: 0 8px 32px rgba(0, 71, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 71, 255, 0.1);
  z-index: 2;
}

.df-shard-1 {
  width: 140px;
  height: 140px;
  top: -20px;
  left: 10%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: floatShard 10s ease-in-out infinite alternate;
}

.df-shard-2 {
  width: 80px;
  height: 80px;
  bottom: 40px;
  left: 45%;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  animation: floatShard 12s ease-in-out infinite alternate-reverse;
}

.df-shard-3 {
  width: 60px;
  height: 60px;
  top: 60px;
  right: 22%;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: floatShard 9s ease-in-out infinite alternate;
  opacity: 0.6;
}

.df-shard-4 {
  width: 100px;
  height: 100px;
  bottom: 80px;
  right: 12%;
  clip-path: polygon(0% 25%, 50% 0%, 100% 25%, 75% 100%, 25% 100%);
  animation: floatShard 14s ease-in-out infinite alternate-reverse;
  opacity: 0.4;
}

@keyframes floatShard {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(25px) rotateZ(12deg);
    opacity: 1;
  }
}

/* Content Area */
.df-elite-content {
  position: relative;
  z-index: 10;
  width: 60%;
  padding-left: 4rem;
  padding-right: 2rem;
}

.df-elite-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 200;
  line-height: 1.05;
  color: #000722;
  margin: 0 0 1rem 0;
  letter-spacing: -1px;
}

.df-elite-title span {
  font-weight: 600;
  display: block;
  background: linear-gradient(90deg, #0047ff 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.df-elite-subtitle {
  font-family: "DM Sans", sans-serif;
  font-size: 1.15rem;
  color: #475569;
  max-width: 450px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Call to Action Button */
.df-elite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #0047ff;
  color: #fff !important;
  padding: 1.2rem 2.8rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  box-shadow: 0 15px 35px rgba(0, 71, 255, 0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: eliteBtnPulse 1.6s ease-in-out infinite;
}

.df-elite-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
  animation: eliteBtnShimmer 2.4s ease-in-out infinite;
  pointer-events: none;
}

.df-elite-btn:hover {
  transform: translateY(-5px) scale(1.04);
  background: #2563eb;
  box-shadow: 0 20px 40px rgba(0, 71, 255, 0.35);
  animation: none;
}

.df-elite-btn:hover::after {
  animation: none;
  opacity: 0;
}

@keyframes eliteBtnPulse {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(0.97);
  }
  75% {
    transform: scale(1.01);
  }
}

@keyframes eliteBtnShimmer {
  0% {
    transform: translateX(-100%);
  }
  20% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Formateur + Robot Decor */
.df-elite-formateur {
  position: absolute;
  right: 18%;
  bottom: -10px;
  width: 330px;
  height: auto;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.df-elite-formateur-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.df-elite-formateur-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-20px 30px 50px rgba(0, 7, 34, 0.2));
}

.df-elite-robot-deco {
  position: absolute;
  top: 20px;
  right: -200px;
  width: 340px;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  z-index: -1;
  animation: robotDecoFloat 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes robotDecoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

.df-elite-formateur-glow {
  position: absolute;
  bottom: 10px;
  width: 220px;
  height: 40px;
  background: #0047ff;
  filter: blur(50px);
  opacity: 0.3;
  border-radius: 50%;
  animation: eliteGlowShift 8s ease-in-out infinite;
}

@keyframes eliteFloat {
  0%,
  100% {
    transform: translateY(6px) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) scale(1.03) rotate(-2deg);
  }
}

@keyframes eliteGlowShift {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.15;
  }
}

/* Responsive Handling */
@media (max-width: 1024px) {
  .df-elite-banner {
    height: auto;
    min-height: auto;
    flex-direction: column;
    padding: 3rem 2rem 2rem;
  }
  .df-elite-content {
    width: 100%;
    padding-left: 0;
    text-align: center;
    z-index: 10;
    padding-bottom: 0;
  }
  .df-elite-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .df-elite-formateur {
    position: static;
    margin: 2rem auto 0;
    width: 280px;
    transform: none;
  }
  .df-elite-formateur-glow {
    display: none;
  }
}

@media (max-width: 768px) {
  .df-elite-wrapper {
    padding: 60px 20px;
  }
  .df-elite-title {
    font-size: 2.4rem;
  }
  .df-elite-subtitle {
    font-size: 1.05rem;
  }
  .df-elite-formateur {
    width: 240px;
  }
  .df-elite-robot-deco {
    right: -40px;
    width: 160px;
  }
  .df-elite-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .df-out-of-box-hero-wrapper {
    padding: 20px 15px;
  }
  .df-elite-banner {
    padding: 2rem 1.25rem 1.5rem;
  }
  .df-elite-title {
    font-size: 1.45rem;
  }
  .df-elite-subtitle {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .df-elite-formateur {
    width: 180px;
  }
  .df-elite-robot-deco {
    right: -90px;
    width: 180px;
  }
}

/* Large screen refinements */
@media (min-width: 1400px) {
  .df-out-of-box-hero-wrapper {
    margin: 3rem auto 0;
  }
  .df-elite-formateur {
    right: 22%;
    width: 380px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Fantasy Background Decorations
   ═══════════════════════════════════════════════════════════ */
.df-fantasy-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

/* Constellation */
.df-fantasy-constellation {
  position: absolute;
  inset: 0;
}

.df-fantasy-constellation svg {
  width: 100%;
  height: 100%;
}

.df-fantasy-line {
  stroke: rgba(0, 71, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dfLineDash 15s linear infinite;
}

@keyframes dfLineDash {
  to {
    stroke-dashoffset: -40;
  }
}

.df-fantasy-dot {
  fill: rgba(0, 180, 216, 0.25);
  animation: dfDotPulse 3s ease-in-out infinite;
}

.df-fantasy-dot--active {
  fill: rgba(0, 71, 255, 0.5);
  animation: dfDotPulse 2s ease-in-out infinite;
}

@keyframes dfDotPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* Hexagonal Grid — full banner coverage */
.df-fantasy-hex-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.df-fantasy-hex {
  fill: none;
  stroke: rgba(0, 71, 255, 0.07);
  stroke-width: 1;
  animation: dfHexPulse 5s ease-in-out infinite;
}

.df-fantasy-hex:nth-child(3n) {
  animation-delay: 0.3s;
}
.df-fantasy-hex:nth-child(5n) {
  animation-delay: 0.6s;
}
.df-fantasy-hex:nth-child(7n) {
  animation-delay: 0.9s;
}
.df-fantasy-hex:nth-child(11n) {
  animation-delay: 1.2s;
}
.df-fantasy-hex:nth-child(13n) {
  animation-delay: 1.5s;
}

@keyframes dfHexPulse {
  0%,
  100% {
    opacity: 0.2;
    stroke: rgba(0, 71, 255, 0.07);
  }
  50% {
    opacity: 0.6;
    stroke: rgba(0, 180, 216, 0.18);
  }
}

/* Floating Rings */
.df-fantasy-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 71, 255, 0.1);
  animation: dfRingFloat 8s ease-in-out infinite;
}

.df-fantasy-ring--1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 20%;
  animation-duration: 10s;
}

.df-fantasy-ring--2 {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 40%;
  animation-duration: 12s;
  animation-delay: 1s;
}

.df-fantasy-ring--3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 40%;
  animation-duration: 14s;
  animation-delay: 2s;
}

@keyframes dfRingFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -15px) rotate(90deg);
  }
  50% {
    transform: translate(-5px, 10px) rotate(180deg);
  }
  75% {
    transform: translate(8px, 5px) rotate(270deg);
  }
}

/* Orbit System */
.df-fantasy-orbit {
  position: absolute;
  top: 30%;
  right: 45%;
}

.df-fantasy-orbit-ring {
  width: 100px;
  height: 100px;
  border: 1.5px dashed rgba(0, 71, 255, 0.1);
  border-radius: 50%;
  animation: dfOrbitSpin 20s linear infinite;
}

.df-fantasy-orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(0, 180, 216, 0.4);
  border-radius: 50%;
  top: -3px;
  left: 50%;
  animation: dfOrbitDotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 71, 255, 0.3);
}

@keyframes dfOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dfOrbitDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* Diamond Scatter */
.df-fantasy-diamond {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0, 71, 255, 0.15);
  transform: rotate(45deg);
  animation: dfDiamondPulse 4s ease-in-out infinite;
}

.df-fantasy-diamond--1 {
  top: 25%;
  left: 30%;
  animation-delay: 0s;
}

.df-fantasy-diamond--2 {
  top: 45%;
  right: 35%;
  animation-delay: 1s;
  width: 8px;
  height: 8px;
}

.df-fantasy-diamond--3 {
  bottom: 30%;
  left: 45%;
  animation-delay: 2s;
  width: 6px;
  height: 6px;
}

.df-fantasy-diamond--4 {
  top: 15%;
  right: 45%;
  animation-delay: 0.5s;
}

@keyframes dfDiamondPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: rotate(45deg) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: rotate(45deg) scale(1.3);
  }
}
