.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-intro h1 {
  text-align: left;
  color: var(--main-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.disclaimer {
  background-color: grey;
  padding: 1rem 1.2rem;
  margin-bottom:1rem;
  border-radius: 8px;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.disclaimer a {
  color: white;
}

.contact-form {
  background-color: #f8f9fb;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}



label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--main-color);
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.15);
}
input.error, textarea.error {
  border-color: #e63946;
  animation: shake 0.2s ease-in-out 0s 2;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.required {
  color: red;
  font-weight: bold;
}

/* Message d’erreur */
.error-message {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1em; /* évite les décalages visuels */
}

/* Animation du shake */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.btn-submit {
  background-color: rgb(255, 181, 145, 0.92);
  color: black;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size:1.5em;
  transition: background-color 0.3s;
  margin-top:1rem;
  width:100%;
}

.btn-submit:hover {
  background-color: #FF7062;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

.form-message {
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
}

/* Checkbox alignée à gauche du label, sur la même ligne */
.form-group.checkbox {
  display: inline-block;
  align-items: flex-start; /* use center si tu veux vertical centré pour petites lignes */
  gap: 0.75rem;
  flex-wrap: nowrap;       /* empêche la case de passer en dessous du label */
  margin-top: 1.2rem;
}
.form-group textarea{
	font-size:1rem;
    resize: none;
	min-height:10rem;
}
/* style de la checkbox */
.form-group.checkbox input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0 0;   /* ajuste la position verticale si besoin */
  flex-shrink: 0;
  accent-color: var(--accent-color, #0077b6); /* couleur cochée (navigateurs modernes) */
}

/* texte du label à droite de la checkbox, peut wrap sur plusieurs lignes */
.form-group.checkbox label {
  margin: 0;
  line-height: 1.35;
  font-size: 0.95rem;
  cursor: pointer;
  word-break: break-word;  /* évite débordement si texte long */
}

/* pour très petits écrans : autoriser le wrap sans casser l'UX */
@media (max-width: 420px) {
  .form-group.checkbox {
    align-items: flex-start;
    gap: 0.6rem;
  }
  .form-group.checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
  }
}

/* ===== HERO SECTION ===== */
.hero-contact {
  position: relative;
  height: 20vh;
  background-color: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: black;
  text-shadow: 3px 3px 5px black;
    height: 35vh;
    width: 100%;

    background-image: url("../images/header2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-contact .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-contact h1 {
	  color: white;
  font-size: 3rem;
}

.hero-contact p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
  color:white;
}
