/* =============================================
   PAGE CONTACT
   ============================================= */

.contact-section {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem;
}

.contact-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Tuer les marges parasites du Markdown dans la carte */
.contact-card p {
  margin: 0 0 0.5rem;
}

.contact-card h1,
.contact-card h2 {
  margin-top: 0;
}

.contact-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 0.3rem;
  color: #2c2c2c;
}

.contact-intro {
  text-align: center;
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 0.8rem;
}

/* ---------- Formulaire ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f9f9f9;
  color: #333;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-sizing: border-box;
  margin: 0;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a7c59;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.form-group input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f9f9f9;
  color: #333;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-sizing: border-box;
  margin: 0;
}

.form-group input[type="email"]:focus {
  outline: none;
  border-color: #4a7c59;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
}

/* ---------- Ligne boutons ---------- */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.3rem;
}

/* Bouton Joindre un fichier (trombone) */
.file-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1.5px dashed #bbb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #777;
  background: transparent;
  transition: all 0.25s;
}

.file-attach:hover {
  border-color: #4a7c59;
  color: #4a7c59;
  background: rgba(74, 124, 89, 0.04);
}

.file-input-hidden {
  display: none;
}

/* Bouton Envoyer */
.btn-send {
  padding: 0.75rem 2.2rem;
  background-color: #4a7c59;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background-color 0.25s, transform 0.15s;
}

.btn-send:hover {
  background-color: #3b6347;
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .contact-card {
    padding: 1.5rem 2rem 1.5rem;
    border-radius: 8px;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-send {
    text-align: center;
    width: 100%;
  }

  .file-attach {
    justify-content: center;
  }
}


/* ========== FOOTER ========== */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #000000;
  transform: translateY(-2px);
}

.footer-links span {
  color: #000000;
}