/* ========================================
   CONTACT.CSS - Styles page contact
   ======================================== */

/* ========== HERO SECTION ========== */
.contact-hero {
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.contact-hero #contact-starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.contact-hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  padding: 4rem 2rem;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ========== CONTACT FORM ========== */
.contact-form-wrapper {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.contact-form-wrapper h2::after {
  content: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--bg-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Style pour le bouton submit */
.contact-form button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  padding: 1.125rem 2rem;
  font-size: 1.05rem;
}

.contact-form button[disabled] {
  background: #4b5563;
  cursor: not-allowed;
  opacity: 0.6;
  transition: all 0.2s ease;
}
@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.form-success h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
}

.form-success p {
  color: var(--text-secondary);
  text-align: center;
  max-width: 400px;
  margin: 0;
  line-height: 1.6;
}

/* ========== RESPONSIVE - TABLETTES ========== */
@media (max-width: 968px) {
  .contact-hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .contact-form-wrapper {
    padding: 2.5rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.75rem;
  }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 30vh;
    padding: 8rem 1.5rem 3rem;
  }

  .contact-hero-content h1 {
    font-size: 2rem;
  }

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

  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .contact-form button[type="submit"] {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

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

  .form-success h3 {
    font-size: 1.5rem;
  }

  .form-success p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .contact-form {
    gap: 1.25rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .contact-form button[type="submit"] {
    font-size: 0.95rem;
  }
}
