/* ========== VARIABLES GALAXLYTIQUE™ ========== */
:root {
  --neon-cyan: #00ccff;
  --dark-space: #020e1f;
  --violet-nebula: #652c90;
  --magenta-star: #b23cdb;
  --light-white: #e6f9ff;
  --glow-cyan: 0 0 20px rgba(0, 204, 255, 0.8);
  --glow-intense: 0 0 40px rgba(0, 204, 255, 1);
  --gradient-main: linear-gradient(
    135deg,
    var(--dark-space) 0%,
    var(--violet-nebula) 100%
  );
  --gradient-hover: linear-gradient(
    135deg,
    var(--violet-nebula) 0%,
    var(--magenta-star) 100%
  );
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--dark-space);
  color: var(--light-white);
  line-height: 1.6;
}

/* ========== LOADING SCREEN ========== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark-space);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--glow-intense);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    text-shadow: var(--glow-cyan);
    transform: scale(1);
  }

  50% {
    text-shadow: var(--glow-intense);
    transform: scale(1.05);
  }
}

/* ========== GALAXLYTIQUE PARTICLES ========== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gradient-main);
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 204, 255, 0.1) 50%,
    transparent 70%
  );
  animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
  z-index: 3;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: var(--glow-intense);
  animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CTA GALAXLYTIQUE ========== */
.cta-galaxlytique {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--violet-nebula));
  color: var(--dark-space);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.cta-galaxlytique::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--neon-cyan),
    var(--violet-nebula),
    var(--magenta-star),
    var(--neon-cyan)
  );
  background-size: 400%;
  border-radius: 50px;
  z-index: -1;
  animation: gradient-shift 3s ease infinite;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-galaxlytique:hover::before {
  opacity: 1;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.cta-galaxlytique:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--glow-intense);
  color: var(--light-white);
}

/* ========== BENEFITS GRID ========== */
.benefits {
  padding: 5rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--neon-cyan);
  margin-bottom: 3rem;
  text-shadow: var(--glow-cyan);
}

.benefits-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: rgba(0, 204, 255, 0.05);
  border: 2px solid rgba(0, 204, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 204, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.benefit-card:hover::before {
  left: 100%;
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 40px rgba(0, 204, 255, 0.3);
  background: rgba(0, 204, 255, 0.1);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: icon-float 3s ease-in-out infinite;
}

.benefit-card:nth-child(2) .benefit-icon {
  animation-delay: 1s;
}

.benefit-card:nth-child(3) .benefit-icon {
  animation-delay: 2s;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.benefit-title {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ========== FORM SECTION ========== */
.form-section {
  padding: 5rem 2rem;
  background: var(--gradient-main);
  position: relative;
  z-index: 2;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(2, 14, 31, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid var(--neon-cyan);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: 0 0 50px rgba(0, 204, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 204, 255, 0.1) 0%,
    transparent 50%
  );
  animation: pulse 4s ease-in-out infinite;
}

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

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.form-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  text-shadow: var(--glow-cyan);
}

/* ========== FORM GROUPS ========== */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--neon-cyan);
  font-weight: 500;
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0, 204, 255, 0.05);
  border: 2px solid rgba(0, 204, 255, 0.3);
  border-radius: 15px;
  color: var(--light-white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(0, 204, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

/* ========== RADIO/CHECKBOX GALAXLYTIQUE ========== */
.options-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.option-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(0, 204, 255, 0.05);
  border: 2px solid rgba(0, 204, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.option-card:hover .option-content {
  background: rgba(0, 204, 255, 0.1);
  border-color: rgba(0, 204, 255, 0.4);
  transform: translateX(5px);
}

.option-card input:checked ~ .option-content {
  background: rgba(0, 204, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.4);
}

.option-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.option-card:hover .option-icon {
  transform: scale(1.2) rotate(10deg);
}

/* ========== MATURITY SELECTOR ========== */
.maturity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.maturity-card {
  text-align: center;
}

.maturity-card .option-content {
  flex-direction: column;
  padding: 2rem 1rem;
}

.maturity-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: grayscale(50%);
  transition: all 0.3s ease;
}

.maturity-card input:checked ~ .option-content .maturity-icon {
  filter: grayscale(0%);
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ========== SUBMIT BUTTON ========== */
.submit-btn {
  width: 100%;
  padding: 1.5rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--violet-nebula));
  color: var(--dark-space);
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.submit-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::after {
  width: 600px;
  height: 600px;
}

.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-intense);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== TRUST SECTION ========== */
.trust-section {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(0, 204, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(0, 204, 255, 0.2);
  position: relative;
  z-index: 1;
}

.trust-title {
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.trust-items {
  display: grid;
  gap: 0.8rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.trust-item::before {
  content: "✨";
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}

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

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ========== FOOTER ========== */
.footer {
  padding: 3rem 2rem;
  background: rgba(2, 14, 31, 0.9);
  text-align: center;
  border-top: 1px solid rgba(0, 204, 255, 0.2);
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: var(--glow-cyan);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.footer-links a {
  color: var(--light-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .cta-galaxlytique {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .maturity-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== LOADING STATES ========== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--neon-cyan);
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* ========== SUCCESS ANIMATION ========== */
.success-checkmark {
  display: none;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: var(--neon-cyan);
  border-radius: 50%;
  position: relative;
  animation: scale-in 0.5s ease-out;
}

@keyframes scale-in {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* ========== AUTRE INPUT ========== */
.autre-input {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(0, 204, 255, 0.05);
  border: 2px solid rgba(0, 204, 255, 0.3);
  border-radius: 10px;
  color: var(--light-white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.option-card input:checked ~ .autre-input {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* ========== FIX RGPD CHECKBOX ========== */
.rgpd-section {
  margin-top: 2rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
  /* Assure que la section est au-dessus */
}

.rgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.rgpd-label input[type="checkbox"] {
  /* Force la visibilité et l'interactivité */
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  position: relative !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  margin-top: 0.2rem;
  cursor: pointer;
  /* Style optionnel pour améliorer la visibilité */
  min-width: 16px;
  min-height: 16px;
  accent-color: var(--neon-cyan);
  /* Couleur cyan pour matcher le thème */
}

/* S'assurer que le span du label ne bloque pas la checkbox */
.rgpd-label span {
  pointer-events: auto;
  user-select: text;
  /* Permet la sélection du texte */
}

.rgpd-label a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.rgpd-label a:hover {
  text-decoration: underline;
}
