/* ═══════════════════════════════════════════════════════════
   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);
  /* No overflow: hidden here on purpose so the robot can break out */
}

/* 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: 55%; /* Keep to the left side */
  padding-left: 8rem;
}

.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%); }
}

/* Sensational Break-out Robot */
.df-elite-robot-container {
  position: absolute;
  right: 3%;
  bottom: 20px;
  width: 640px;
  height: auto;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.df-elite-robot-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-20px 30px 50px rgba(0, 7, 34, 0.25));
  animation: eliteFloat 8s ease-in-out infinite;
  transform-origin: bottom center;
}

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

@keyframes eliteFloat {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) 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: 400px;
    flex-direction: column;
    padding: 4rem 2rem 0; /* Let robot flow to the bottom */
  }
  .df-elite-content {
    width: 100%;
    padding-left: 0;
    text-align: center;
    z-index: 10;
    padding-bottom: 25rem; /* Reserve space for standard flow */
  }
  .df-elite-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .df-elite-robot-container {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: 480px;
  }
}

@media (max-width: 480px) {
  .df-out-of-box-hero-wrapper {
    padding: 40px 15px 40px;
  }
  .df-elite-title {
    font-size: 2.2rem;
  }
  .df-elite-subtitle {
    font-size: 1rem;
  }
  .df-elite-robot-container {
    width: 340px;
    bottom: 10px;
  }
  .df-elite-content {
    padding-bottom: 18rem;
  }
}

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