/* ─────────────────────────────────────────
   TenebraeCorpus — Contact Section
   ───────────────────────────────────────── */

/* Section contact */
.contact-section {
  padding: 2rem 0;
  text-align: center;
}

.contact-section h2 {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  color: var(--text-color, #e0e0e0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Wrapper du lien */
.contact-link-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* Lien email stylisé */
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-email-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-email-link:hover::before {
  left: 100%;
}

.contact-email-link:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-email-link:active {
  transform: translateY(-1px);
}

/* Icône envelope */
.contact-email-link i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.contact-email-link:hover i {
  transform: scale(1.1) rotate(-10deg);
}

/* Texte email */
.email-text {
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .contact-email-link {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-size: 1rem;
  }

  .contact-email-link i {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 3rem 0;
  }

  .contact-email-link {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    width: 90%;
  }

  .email-text {
    word-break: break-all;
  }
}

/* Respecte reduced motion */
@media (prefers-reduced-motion: reduce) {
  .contact-email-link,
  .contact-email-link i,
  .contact-email-link::before {
    transition: none !important;
  }

  .contact-email-link:hover {
    transform: none;
  }
}

/* ─────────────────────────────────────────
   Contact Form Styles
   ───────────────────────────────────────── */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color, #e0e0e0);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

.form-status:not(:empty) {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive form */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .contact-form button[type="submit"] {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1rem 0.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .contact-form button[type="submit"] {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Respecte reduced motion pour le formulaire */
@media (prefers-reduced-motion: reduce) {
  .form-group input,
  .form-group textarea {
    transition: none !important;
  }
}
