/* ---------- Section 1-HEADER ---------- */
.hero-section-contact {
  position: relative;
  top: 0;
  width: 100vw; /* Utilisation de la largeur totale de l'écran */
  height: 35vw; /* Hauteur par défaut */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section-contact picture,
.headerImg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* L'image occupe 100% de la largeur */
  height: 100%; /* L'image occupe 100% de la hauteur */
  object-fit: cover; /* Assure que l'image couvre toute la zone sans déformation */
}

.hero-content-contact {
  display: flex; /* Utilisation de flexbox pour aligner les éléments horizontalement */
  align-items: center; /* Centre verticalement les éléments */
  justify-content: flex-start; /* Aligne les éléments à gauche */
  z-index: 10; /* S'assurer que le contenu est au-dessus de l'image */
  max-width: 90%; /* Limite la largeur totale pour éviter que le texte et le logo soient trop larges */
  padding-left: 20px; /* Espacement à gauche pour éviter que le contenu touche le bord */
}

.hero-logo-contact {
  margin-right: 20px; /* Espace entre le logo et le texte */
  top: 50%;
}

.hero-logo-contact img {
  max-width: 200px; /* Limite la taille du logo */
  height: auto; /* Conserve les proportions du logo */
}

.hero-text-contact h1 {
  color: var(--pink2-color); /* Couleur du texte */
  font-family: var(--font-primary);
  font-size: 3.5rem;
}
/* Style pour l'animation de l'apparition du titre */
.title-contact {
  opacity: 0; /* Commence invisible */
  transform: translateY(100px); /* Commence en bas de 50px */
  animation: slideUp 2s ease-out 1s forwards; /* Applique l'animation */
}

/* Définir l'animation "slideUp" */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(100px); /* Commence à 50px en bas */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Arrive à sa position d'origine */
  }
}
.hero-text-contact h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
}

/* ✅ Breakpoint TABLETTE (768px - 1023px) */
@media (max-width: 1023px) {
  .hero-text-contact h1 {
    font-size: 3.5rem;
    text-align: center;
    margin: 0 auto;
  }
}

/* ✅ Breakpoint MOBILE (≤ 767px) */
@media (max-width: 767px) {
  .hero-text-contact {
    padding: 20px 60px;
  }
  .hero-content-contact {
    display: flex; /* Utilisation de flexbox pour aligner les éléments horizontalement */
    align-items: center; /* Centre verticalement les éléments */
    justify-content: center; /* Aligne les éléments à gauche */
    padding-left: 0px; /* Espacement à gauche pour éviter que le contenu touche le bord */
    margin-bottom: 100px;
  }
  .hero-section-contact {
    height: 39vh; /* Hauteur plus petite sur les petits écrans */
  }
  .hero-logo-contact img {
    max-width: 160px; /* Limite la taille du logo */
  }
  .hero-text-contact h1 {
    font-size: 3rem;
  }
}
@media (max-width: 590px) {
  .hero-text-contact h1 {
    font-size: 2.5rem;
  }
  .hero-text-contact {
    padding: 20px 40px;
    margin-top: 40px;
  }
}
/* ✅ Autres breakpoints */
@media (max-width: 545px) {
  .hero-content-contact {
    margin-bottom: 0px;
  }
  .hero-section-contact {
    height: 28vh;
  }
  .hero-text-contact h1 {
    font-size: 2.4rem;
  }
  .hero-text-contact h3 {
    font-size: 1.15rem;
  }
  .hero-text-contact a {
    font-size: 0.8rem;
  }
}

@media (max-width: 390px) {
  .hero-text-contact {
    padding: 20px 20px;
    margin-top: 40px;
  }
  .hero-logo-contact img {
    max-width: 100px; /* Limite la taille du logo */
  }
  .hero-text-contact {
    max-width: 100%;
  }
  .hero-text-contact h1 {
    text-align: center;
    font-size: 1.9rem;
  }
  .hero-text-contact h3 {
    font-size: 1.15rem;
  }
  .hero-text-contact a {
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
}

/*---------------------------------------------------------------------------*/
#phone-link-form {
  white-space: nowrap;
}
.custom-section-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px;
  box-sizing: border-box;
  background-color: var(--pink2-color);
}
.text-content-contact {
  background-color: var(--pinkTransparent-color);
}
/* FORMULAIRE */
/* Centre le formulaire sur la page */
.contact-form-container {
  width: 100%;
  margin: 50px auto;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  text-align: center;
}

/* Style général des champs */
.contact-form-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Labels */
.contact-form-container label {
  font-family: var(--font-secondary);
  width: 100%;
  text-align: left;
  margin: 10px 0px 5px 0px;
  font-weight: bold;
}
/* Styles pour l'astérisque rouge */
.required {
  color: red;
  font-weight: bold;
  font-size: 18px; /* Augmenter la taille de l'astérisque */
  margin-left: 5px; /* Un petit espace entre le texte du label et l'astérisque */
}

/* Styling des options */
option {
  padding: 10px;
}

/* Champs de formulaire */
.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: var(--font-secondary);
}

/* Ajustement de la taille du textarea */
.contact-form-container textarea {
  height: 200px;
  resize: none;
}

/* Bouton d'envoi */
.contact-form-container button {
  margin: 15px 0;

  border: none;

  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Messages de succès et d'erreur */
/* Bordure par défaut */
input,
textarea,
select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-family: var(--font-secondary);
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

/* Bordure bleue au focus */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green-color);
  outline: none;
}

/* Fond bleu clair pour les champs valides */
.valid {
  background-color: #e8f0fe !important; /* Fond bleu clair pour les champs valides */
  border-color: var(
    --text-color
  ) !important; /* Bordure verte pour les champs valides */
}

/* Bordure rouge et fond clair pour les champs invalides */
.error {
  background-color: #f8d7da !important; /* Fond rose clair pour les champs invalides */
  border-color: #dc3545 !important; /* Bordure rouge */
  margin-bottom: 20px;
}
.blinking {
  animation: blink 0.5s step-start infinite alternate;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.error-message {
  color: red;
  font-family: var(--font-secondary);
  font-size: 12px;
  margin-top: 5px;
}
.success-message {
  font-family: var(--font-secondary);
  color: green;
  font-size: 14px;
  margin-top: 10px;
}
.flash-message {
  background-color: #d4edda;
  font-family: var(--font-secondary);
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out;
}

.flash-message.success {
  border: 1px solid #c3e6cb;
  font-family: var(--font-secondary);
}

.flash-message button {
  background: transparent;
  border: none;
  font-size: 16px;
  font-family: var(--font-secondary);
  cursor: pointer;
  color: #155724;
}

.checkbox-container {
  margin-bottom: 20px;
  display: flex;
  align-items: center; /* Assure l'alignement vertical */
  gap: 8px; /* Espace entre la case et le texte */
  justify-content: flex-start; /* Aligner le tout à gauche */
  width: 100%; /* Empêche un alignement centré automatique */
}

.checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0; /* Supprime tout espace parasite */
  margin: 10px 0px 5px 0px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
}

.checkbox-label a {
  display: inline;
  margin-left: 5px; /* Espacement entre le texte et le lien */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-content-contact {
  width: calc(100% - 827px); /* la largeur restante pour le texte */
  padding: 64px;
  color: var(--text-color);
  font-family: var(--font-secondary);
}

.text-content-contact h2 {
  font-weight: 100;
  font-size: 2rem;
  margin-bottom: 20px;
}

.text-content-contact p {
  font-size: 1.1rem;
  font-family: var(--font-secondary);
  line-height: 1.6;
}

/* Image et formulaire occupent 50% de la largeur chacun au-dessus de 1280px */
.image-container-contact {
  width: 50%; /* L'image occupe 50% de la largeur de l'écran */
  height: 1100px;
  transition: width 0.3s ease, height 0.3s ease;
}

.image-container-contact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Le formulaire prend 50% de la largeur de l'écran au-dessus de 1280px */
.text-content-contact {
  width: 50%; /* Le formulaire occupe également 50% de la largeur de l'écran */
  padding: 64px;
  color: var(--text-color);
  font-family: var(--font-secondary);
  background-color: var(--pink2-color);
}
/* Nouvelle image responsive (visible sous 1280px) */
.image-container-contact-responsive {
  display: none; /* Cache cette image par défaut */
  width: 100%; /* Cette image occupe toute la largeur sous 1280px */
  padding: 20px;
}

.image-container-contact-responsive img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Media query pour les écrans plus petits que 1280px */
@media screen and (max-width: 1280px) {
  .image-container-contact {
    display: none; /* Cache l'image en dessous de 1280px */
  }

  .text-content-contact {
    width: 100%; /* Le formulaire occupe toute la largeur de l'écran */
    padding: 20px; /* Réduit un peu le padding */
  }
  .image-container-contact-responsive {
    display: block; /* Affiche l'image alternative en dessous de 1280px */
  }
}

/* Media query pour les écrans plus petits que 767px */
@media screen and (max-width: 767px) {
  .custom-section-contact {
    flex-direction: column; /* Change la disposition en colonne */
    align-items: center; /* Centre les éléments */
  }

  .text-content-contact h2 {
    font-size: 1.9rem;
  }
  .text-content-contact {
    width: 100%; /* La largeur du texte prend tout l'espace disponible */
    padding: 20px 10px; /* Réduit un peu le padding */
  }

  .image-container-contact {
    display: none; /* L'image disparaît également sous 767px */
  }
  .image-container-contact-responsive {
    display: block; /* Affiche l'image alternative en dessous de 1280px */
  }
}
@media screen and (max-width: 350px) {
  .text-content-contact {
  
    padding: 20px 0px; /* Réduit un peu le padding */
  }
}
textarea#message {
  height: 150px;
}
.champ {
  margin-top: 10px;
}
/* Captcha */
.captcha-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.captcha-label {
  font-weight: bold;
  font-family: var(--font-secondary);
  margin-bottom: 5px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-row input {
  width: 50px; /* Ajustable selon le besoin */
  text-align: center;
}

button#verify-captcha {
  cursor: pointer;
  background-color: var(--green-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
}

button#verify-captcha:hover {
  background-color: white;
  border: 1px solid var(--green-color);
  color: var(--green-color);
}

.error-captcha {
  color: red;
  font-family: var(--font-secondary);
  font-size: 0.9em;
}
/*----------------Carte---------------------*/
.hero-section-carteContact {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden; /* Évite les débordements */
  background-color: var(--pink2-color);
}

.hero-image-carteContact {
  width: 80%; /* Occupe toute la largeur */
  height: auto; /* Garde le ratio */
  display: block; /* Évite les marges blanches */
}
@media screen and (max-width: 767px) {
  .hero-section-carteContact {
    padding: 40px 20px;
  }
  .hero-image-carteContact {
    width: 95%; /* Occupe toute la largeur */
  }
}
@media screen and (max-width: 400px) {
  .hero-section-carteContact {
    padding: 40px 10px;
  }
}

#email-link-form ,#phone-link-form {
  text-decoration: underline;
}