/* ============================================================
   PREINSCRIPTION PAGE STYLES
   ============================================================ */

.preinscription-hero {
  top: 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--sky3) 0%, var(--sky2) 50%, var(--sky1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.preinscription-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(75, 174, 212, 0.09);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.preinscription-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(75, 174, 212, 0.09);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite;
}

.preinscription-container {
  max-width: 80vw;
  width: 100%;
  position: relative;
  z-index: 1;
}

.preinscription-header {
  text-align: center;
  margin-bottom: 40px;
}

.preinscription-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.2;
}

.preinscription-title .hl {
  color: var(--teal);
  position: relative;
  display: inline-block;
}

.preinscription-subtitle {
  font-size: 1.1rem;
  color: var(--txt2);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.preinscription-promo {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(43, 137, 138, 0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}

.promo-content {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

.preinscription-info {
  background: rgba(255, 255, 255, 0.8);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 32px;
  color: var(--txt2);
  text-align: center;
  font-size: 0.95rem;
  border: 1px solid rgba(43, 137, 138, 0.2);
}

.preinscription-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 24px 64px rgba(13, 31, 45, 0.15);
  margin-bottom: 24px;
}

.preinscription-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.3px;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid rgba(43, 137, 138, 0.2);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: white;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--txt3);
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43, 137, 138, 0.1);
  background: white;
}

.form-input:hover:not(:focus) {
  border-color: var(--teal-light);
}

.form-error {
  font-size: 0.85rem;
  color: #EF4444;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* CGU Checkbox */
.form-checkbox-cgu {
  gap: 6px;
}

.checkbox-cgu-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--txt2);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

.checkbox-cgu-input {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  accent-color: var(--teal);
  margin-top: 2px;
  cursor: pointer;
}

.cgu-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cgu-link:hover {
  color: var(--teal-light);
}

.btn-preinscription {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(43, 137, 138, 0.3);
  margin-top: 8px;
}

.btn-preinscription:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(43, 137, 138, 0.4);
}

.btn-preinscription:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(43, 137, 138, 0.25);
}

.btn-preinscription:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.flash {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-success {
  background: rgba(82, 183, 136, 0.1);
  color: #059669;
  border: 1px solid rgba(82, 183, 136, 0.3);
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.preinscription-footer {
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--txt2);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(43, 137, 138, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(43, 137, 138, 0.35);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .preinscription-title {
    font-size: 2rem;
  }

  .preinscription-subtitle {
    font-size: 1rem;
  }

  .preinscription-form-wrapper {
    padding: 28px 20px;
  }

  .preinscription-header {
    margin-bottom: 32px;
  }

  .form-input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .btn-preinscription {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* ============================================================
   REVEAL ANIMATION (from existing site)
   ============================================================ */

.reveal {
  animation: revealIn 0.8s ease-out;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
