#zone {
  display: flex !important;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  width: 100%;
  max-width: clamp(1000px, calc(36.101vw + 506.86px), 1200px);
  margin: auto;
  justify-content: center;
  align-items: start;
  font-family: Coolvetica, sans-serif;
}

.form-left,
.form-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  width: 100%;
}

.form-field label {
  margin-bottom: 5px;
  font-size: 16px;
}

/* Style général des inputs (Texte, Email, Tel...) */
.form-field input,
.form-field textarea {
  border: none;
  border-bottom: 2px solid #000;
  padding: 12px 8px;
  font-family: Roboto Slab;
  font-size: 16px;
  outline: none;
  width: 100%; /* C'est ceci qui cassait les checkboxes */
  max-width: 100%;
  box-sizing: border-box;
  background: white;
}

/* CORRECTION : On force les checkboxes à ne PAS prendre 100% de largeur */
.form-field input[type="checkbox"] {
  width: auto !important;
  margin-right: 10px;
}

.form-field textarea {
  min-height: 320px;
  resize: none;
}
.form-field.message-field textarea {
  height: 310px;
}

/* Container des checkboxes */
.checkboxes {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 70px;
  height: 40px;
  background: white;
  align-items: center; /* Centre verticalement sur Desktop */
}

/* Label individuel (Case + Texte) */
.checkboxes label {
  font-family: Coolvetica, sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center; /* Centre le texte par rapport à la case */
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-envoyer {
  align-self: flex-start;
  background: linear-gradient(135deg, #84a000, #b25900);
  border: 2px solid #000000ab;
  color: #fff;
  padding: 14px 40px;
  border-radius: 12px;
  cursor: pointer;
  font-family: Arial;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: auto;
}

.btn-envoyer:not(:disabled):hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-envoyer:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === TABLETTE === */
@media (max-width: 1024px) {
  .contact-form {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: unset;
    padding: 10px;
    box-sizing: border-box;
  }
  .checkboxes {
    flex-wrap: wrap;
    gap: 30px;
    height: auto;
  }
}

/* === MOBILE === */
@media (max-width: 768px) {
  .form-field.message-field textarea {
    height: clamp(8em, 15vh, 12em);
  }
  .btn-envoyer {
    align-self: stretch;
    width: 100%;
  }

  /* Le conteneur principal passe en colonne */
  .checkboxes {
    display: flex;
    flex-direction: column; /* Les items s'empilent verticalement */
    height: auto !important;
    width: 100%;
    gap: 15px;
    align-items: flex-start; /* Aligne tout à gauche */
  }

  /* Chaque ligne (Case + Texte) reste en ligne horizontale */
  .checkboxes label {
    display: flex;
    flex-direction: row; /* Important: Case à gauche, texte à droite */
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    white-space: normal; /* Permet au texte long de passer à la ligne */
  }

  /* Sécurité supplémentaire pour la checkbox mobile */
  .checkboxes label input[type="checkbox"] {
    flex-shrink: 0; /* La case ne s'écrase jamais */
    width: 20px !important; /* Taille fixe et confortable */
    height: 20px !important;
    margin: 0 10px 0 0; /* Marge à droite uniquement */
  }
  .contact-form {
    padding-top: 30px;
  }
}
