/* ============================================
   SECTION CONTACT - GNOVEX
   Style cohérent avec le design global
   ============================================ */

/* Variables (reprises du style principal) */
:root {
  --gnovex-vert: #41CE9F;
  --gnovex-bleu: #25B0D5;
  --gnovex-noir: #1E1E1E;
  --gnovex-blanc: #ffffff;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Contact */
.contact-section {
  padding: 80px 5%;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  position: relative;
}

/* Header de la section */
.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gnovex-noir);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.contact-header .section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Container principal */
.contact-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

/* ============================================
   INFORMATIONS DE CONTACT
   ============================================ */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e9f0;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--gnovex-bleu);
}

.info-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, var(--gnovex-vert), var(--gnovex-bleu));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.info-icon svg {
  width: 26px;
  height: 26px;
}

.info-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gnovex-noir);
  margin-bottom: 0.5rem;
}

.info-content p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.info-content a {
  color: var(--gnovex-bleu);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.info-content a:hover {
  color: var(--gnovex-vert);
  text-decoration: underline;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */

.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #e5e9f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gnovex-noir);
  margin-bottom: 30px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gnovex-noir);
}

.required {
  color: #ef4444;
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--gnovex-noir);
  background: #fafbfc;
  border: 2px solid #e5e9f0;
  border-radius: 10px;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  outline: none;
  background: white;
  border-color: var(--gnovex-bleu);
  box-shadow: 0 0 0 4px rgba(37, 176, 213, 0.1);
}

.form-control:hover:not(:focus) {
  border-color: #cbd5e1;
}

/* Select personnalisé */
select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 45px;
}

select.form-control:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2325B0D5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Footer du formulaire */
.form-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

/* États du formulaire */
.form-status {
  text-align: center;
  font-size: 0.95rem;
  min-height: 24px;
}

.loading,
.error-message,
.success-message {
  display: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
}

.loading {
  background: #f1f5f9;
  color: #64748b;
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.success-message {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.loading.show,
.error-message.show,
.success-message.show {
  display: block;
}

/* Bouton d'envoi */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gnovex-vert), var(--gnovex-bleu));
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(37, 176, 213, 0.3);
  align-self: center;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 176, 213, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit svg {
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 5%;
  }

  .contact-header .section-title {
    font-size: 2rem;
  }

  .contact-header .section-subtitle {
    font-size: 1.1rem;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 30px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-card {
    padding: 20px;
  }

  .info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .info-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 640px) {
  .contact-header {
    margin-bottom: 40px;
  }

  .contact-header .section-title {
    font-size: 1.75rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px 20px;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .btn-submit {
    width: 100%;
    padding: 14px 28px;
  }
}
