/* ==========================================
   VARIABLES ET RESET - PALETTE PREMIUM MODERNE
   ========================================== */
:root {
  /* Palette Premium Moderne - Bleu/Cyan/Vert */
  --primary-color: #0f1419; /* Bleu nuit profond */
  --secondary-color: #1da1f2; /* Bleu royal vif */
  --accent-color: #42a5f5; /* Bleu lumineux */
  --light-accent: #90caf9; /* Bleu clair */
  --success-color: #4caf50; /* Vert émeraude */
  --gold-accent: #ff9800; /* Orange ambré */
  --rose-accent: #e91e63; /* Rose vif */
  --cyan-accent: #00bcd4; /* Cyan moderne */

  /* Couleurs de base */
  --white: #ffffff;
  --off-white: #f3f9ff; /* Blanc légèrement bleu */
  --light-gray: #e3f2fd; /* Gris-bleu clair */
  --medium-gray: #bbdefb; /* Gris-bleu */
  --text-dark: #0d1b2a; /* Texte bleu foncé */
  --text-light: #78716c; /* Texte gris chaud */
  --border-color: #e3f2fd; /* Bordure bleu clair */
  --header-height: 70px;

  /* Ombres premium colorées */
  --shadow-sm: 0 1px 3px rgba(29, 161, 242, 0.12);
  --shadow-md: 0 4px 6px rgba(29, 161, 242, 0.15);
  --shadow-lg: 0 10px 25px rgba(29, 161, 242, 0.2);
  --shadow-xl: 0 20px 40px rgba(29, 161, 242, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  padding-top: var(--header-height);
}

/* ==========================================
   HEADER PROFESSIONNEL
   ========================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.navbar {
  height: var(--header-height);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 30px;
}

/* Logo professionnel */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.navbar-logo i {
  font-size: 26px;
  color: var(--accent-color);
}

.logo-text {
  font-size: 1.3rem;
}

.logo-badge {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--rose-accent) 100%
  );
  color: var(--white);
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================
   GESTION DES ÉTAPES
   ========================================== */
.step {
  display: none;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.step.active {
  display: block;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   HERO HEADER MODERNE VIOLET/ROSE
   ========================================== */
.hero-header {
  position: relative;
  background: linear-gradient(
    135deg,
    #1a1625 0%,
    /* Violet nuit */ #7c3aed 30%,
    /* Violet royal */ #ec4899 60%,
    /* Rose vif */ #a855f7 100% /* Violet lumineux */
  );
  background-size: 300% 300%;
  animation: gradientFlow 12s ease infinite;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 520px;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Pattern professionnel animé */
.hero-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.05) 40px,
    rgba(255, 255, 255, 0.05) 80px
  );
  animation: patternSlide 20s linear infinite;
  z-index: 1;
}

@keyframes patternSlide {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(80px) translateY(80px);
  }
}

/* Particules flottantes */
.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.particles-bg::before {
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.3) 0%,
    transparent 70%
  );
  top: -150px;
  left: -150px;
  animation: floatParticle1 14s ease-in-out infinite;
}

.particles-bg::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.25) 0%,
    transparent 70%
  );
  bottom: -200px;
  right: -200px;
  animation: floatParticle2 16s ease-in-out infinite;
}

@keyframes floatParticle1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(70px, -70px) scale(1.15);
    opacity: 0.7;
  }
}

@keyframes floatParticle2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-60px, 60px) scale(1.1);
    opacity: 0.6;
  }
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(26, 22, 37, 0.2) 100%
  );
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Sous-titre avec gradient moderne */
.hero-subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  letter-spacing: 0.5px;

  /* Gradient violet/rose/or */
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #f59e0b 15%,
    #ec4899 30%,
    #a855f7 45%,
    #ffffff 60%,
    #c084fc 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation:
    shimmerText 5s linear infinite,
    subtitleFloat 3s ease-in-out infinite;

  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.4))
    drop-shadow(0 0 50px rgba(168, 85, 247, 0.2));
}

@keyframes shimmerText {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes subtitleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Icône shield */
.hero-subtitle i {
  font-size: 2.2rem;
  color: #10b981;
  animation: shieldPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6));
}

@keyframes shieldPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.8));
  }
}

/* Badge "Validation Sécurisée" */
.celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 14px 35px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 35px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.15),
      0 0 30px rgba(168, 85, 247, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.15),
      0 0 50px rgba(236, 72, 153, 0.4),
      inset 0 0 30px rgba(255, 255, 255, 0.15);
    border-color: rgba(236, 72, 153, 0.5);
  }
}

.year-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
}

/* Sparkles */
.sparkle {
  font-size: 1.5rem;
  animation: sparkleRotate 4s ease-in-out infinite;
  display: inline-block;
}

.sparkle:first-child {
  animation-delay: 0s;
}

.sparkle:last-child {
  animation-delay: 2s;
}

@keyframes sparkleRotate {
  0% {
    color: #f59e0b;
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
  }
  25% {
    color: #a855f7;
    transform: rotate(90deg) scale(1.2);
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
  }
  50% {
    color: #ec4899;
    transform: rotate(180deg) scale(1);
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
  }
  75% {
    color: #a855f7;
    transform: rotate(270deg) scale(1.2);
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
  }
  100% {
    color: #f59e0b;
    transform: rotate(360deg) scale(1);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
  }
}

/* Titre principal */
.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow:
    0 0 30px rgba(168, 85, 247, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  animation: titleSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.word-animate {
  display: inline-block;
  animation: wordFadeIn 0.8s ease-out;
  animation-fill-mode: both;
}

.word-animate:nth-child(1) {
  animation-delay: 0.1s;
}
.word-animate:nth-child(2) {
  animation-delay: 0.2s;
}
.word-animate:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes wordFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Paragraphe */
.hero-header p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 700px;
  margin: 25px auto;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: descriptionFadeIn 1s ease-out 0.4s both;
}

@keyframes descriptionFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Félicitations */
.congratulation-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  animation: congratsSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
}

@keyframes congratsSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.star {
  font-size: 1.5rem;
  color: #f59e0b;
  animation: starTwinkle 2s ease-in-out infinite;
  display: inline-block;
}

.star:first-child {
  animation-delay: 0s;
}

.star:last-child {
  animation-delay: 1s;
}

@keyframes starTwinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(20deg);
    opacity: 0.7;
  }
}

/* Icônes */
.celebration-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-top: 30px;
  animation: iconsFadeIn 1s ease-out 0.8s both;
}

@keyframes iconsFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.celebration-icon {
  font-size: 2.5rem;
  animation: iconFloat 2.5s ease-in-out infinite;
}

.celebration-icon:nth-child(1) {
  color: #10b981;
  animation-delay: 0s;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5));
}

.celebration-icon:nth-child(2) {
  color: #a855f7;
  animation-delay: 0.4s;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
}

.celebration-icon:nth-child(3) {
  color: #f59e0b;
  animation-delay: 0.8s;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.5));
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.08);
  }
}

/* ==========================================
   ÉTOILES FLOTTANTES
   ========================================== */
.new-year-container {
  position: relative;
  display: inline-block;
  padding: 40px 80px;
  margin-bottom: 30px;
}

.floating-star {
  position: absolute;
  font-size: 1.5rem;
  animation:
    starFloat 3s ease-in-out infinite,
    starTwinkleGlow 2s ease-in-out infinite;
}

.star-1 {
  top: 0;
  left: 10%;
  color: #f59e0b;
  font-size: 1.8rem;
  animation-delay: 0s;
}

.star-2 {
  top: 10%;
  right: 5%;
  color: #a855f7;
  font-size: 1.4rem;
  animation-delay: 0.5s;
}

.star-3 {
  bottom: 5%;
  left: 5%;
  color: #ec4899;
  font-size: 1.6rem;
  animation-delay: 1s;
}

.star-4 {
  bottom: 10%;
  right: 10%;
  color: #f59e0b;
  font-size: 1.3rem;
  animation-delay: 1.5s;
}

.star-5 {
  top: 50%;
  left: 0;
  color: #a855f7;
  font-size: 1.5rem;
  animation-delay: 2s;
}

.star-6 {
  top: 50%;
  right: 0;
  color: #ec4899;
  font-size: 1.5rem;
  animation-delay: 2.5s;
}

@keyframes starFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(10deg);
  }
  50% {
    transform: translateY(-8px) rotate(-5deg);
  }
  75% {
    transform: translateY(-12px) rotate(8deg);
  }
}

@keyframes starTwinkleGlow {
  0%,
  100% {
    opacity: 0.6;
    filter: drop-shadow(0 0 8px currentColor);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 20px currentColor);
    transform: scale(1.3);
  }
}

/* ==========================================
   FORMULAIRES
   ========================================== */
.form-section {
  padding: 80px 15px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  background: var(--white);
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 50px 45px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 30px;
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--rose-accent) 100%
  );
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: iconSlideDown 0.6s ease-out;
}

@keyframes iconSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-icon i {
  font-size: 35px;
  color: var(--white);
}

.card-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.card-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.form-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.form-control {
  padding: 14px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
  outline: none;
  background: var(--white);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--rose-accent) 100%
  );
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(
    135deg,
    var(--success-color) 0%,
    var(--cyan-accent) 100%
  );
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================
   VALIDATION
   ========================================== */
.validation-section {
  padding: 100px 15px;
  background: var(--off-white);
}

.validation-card {
  background: var(--white);
  border-radius: 20px;
  padding: 60px 50px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.validation-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  background: linear-gradient(
    135deg,
    var(--success-color) 0%,
    var(--cyan-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--shadow-md);
}

@keyframes successPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.validation-icon i {
  font-size: 45px;
  color: var(--white);
}

.validation-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.montant-value {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--rose-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 12px 0;
  letter-spacing: -1px;
}

/* ====================
   CARTES BANQUES
   ========================================== */
.monde-section {
  padding: 100px 15px;
  background: var(--white);
}

.monde-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid var(--border-color);
  position: relative;
  height: 100%;
}

.monde-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.monde-card.selected {
  border-color: var(--accent-color);
  border-width: 2px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.03) 0%,
    rgba(236, 72, 153, 0.03) 100%
  );
  box-shadow: var(--shadow-lg);
}

.monde-check {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  background: linear-gradient(
    135deg,
    var(--success-color) 0%,
    var(--cyan-accent) 100%
  );
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.monde-card.selected .monde-check {
  display: flex;
}

.monde-image {
  width: 100%;
  height: 110px;
  margin: 0 auto 25px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 0;
  margin-top: auto;
}

.footer-main {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .form-card {
    padding: 40px 25px;
  }
}
