/* Définir l'animation fade-in */
@keyframes fadeInEffect {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Effet fade-in pour les éléments textuels */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Commence un peu plus bas */
    animation: fadeIn 1.5s ease-out forwards; /* Applique l'animation */
}

/* Effet de fade-in différé */
.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s; /* L'animation commence après un délai */
}

/* Animation fade-in avec mouvement du bas vers le haut */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0); /* Le texte arrive à sa position initiale */
    }
}

/* Media queries pour ajuster la taille du texte sur mobile */
@media (max-width: 768px) {
    .overlay-text h1 {
        font-size: 2em; /* Réduit la taille du titre sur mobile */
    }

    .overlay-text p {
        font-size: 1.2em; /* Réduit la taille du paragraphe sur mobile */
    }
}

.container.cnt {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
  }
  
  .contact-box {
    max-width: 850px;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    box-shadow: 0px 0px 19px 5px rgba(0, 0, 0, 0.19);
  }

  .right {
    padding: 25px 40px;
  }
  
  h2 {
    position: relative;
    padding: 0 0 10px;
    margin-bottom: 10px;
  }
  
  h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 50px;
    border-radius: 2px;
    background-color: black;
  }
  
  .field {
    width: 100%;
    border: 2px solid rgba(0, 0, 0, 0);
    outline: none;
    background-color: rgba(230, 230, 230, 0.6);
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    margin-bottom: 22px;
    transition: .3s;
  }
  
  .field:hover {
    background-color: rebeccapurple (0, 0, 0, 0.1);
  }
  
  textarea {
    min-height: 150px;
  }
  
  .btn {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  }
  
  .field:focus {
    border: 2px solid rgba(30, 85, 250, 0.47);
    background-color: #fff;
  }
  
  @media screen and (max-width: px) {
    .contact-box {
        grid-template-columns: 1fr;
    }
  }
  
  .form-group{
      margin-top: 10px;
      margin-bottom: 10px;
  }
  
  /* Animation pour faire apparaître le formulaire */
  .fade-in-form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInForm 1.5s ease-out forwards;
  }
  
  @keyframes fadeInForm {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in-form {
    animation-delay: 0.5s; /* Commence l'animation après 0.5s */
  }
  
  /* Animation des champs et du bouton */
  .contact-box .field,
  .contact-box .btn,
  .contact-box select, /* Ajout pour le select */
  .contact-box textarea { /* Ajout pour le textarea */
    opacity: 0;
    transform: translateY(10px); /* Déplacement léger vers le bas */
    animation: fadeInField 1s ease-out forwards;
  }
  
  /* Animation pour chaque champ */
  @keyframes fadeInField {
    to {
      opacity: 1;
      transform: translateY(0); /* Remet les éléments à leur position d'origine */
    }
  }
  
  /* Délai progressif pour chaque champ */
  .contact-box .field:nth-child(1),
  .contact-box select:nth-child(1), /* Sélecteur pour le 1er champ */
  .contact-box textarea:nth-child(1) { /* Sélecteur pour le textarea */
    animation-delay: 1.0s;
  }
  
  .contact-box .field:nth-child(2),
  .contact-box select:nth-child(2), /* Sélecteur pour le 2e champ */
  .contact-box textarea:nth-child(2) { /* Sélecteur pour le textarea */
    animation-delay: 1.2s;
  }
  
  .contact-box .field:nth-child(3),
  .contact-box select:nth-child(3), /* Sélecteur pour le 3e champ */
  .contact-box textarea:nth-child(3) { /* Sélecteur pour le textarea */
    animation-delay: 1.4s;
  }
  
  .contact-box .field:nth-child(4),
  .contact-box select:nth-child(4), /* Sélecteur pour le 4e champ */
  .contact-box textarea:nth-child(4) { /* Sélecteur pour le textarea */
    animation-delay: 1.6s;
  }
  
  .contact-box .field:nth-child(5),
  .contact-box select:nth-child(5), /* Sélecteur pour le 5e champ */
  .contact-box textarea:nth-child(5) { /* Sélecteur pour le textarea */
    animation-delay: 1.8s;
  }
  
  /* Le bouton "Envoyer" */
  .contact-box .btn {
    animation-delay: 2s; /* Le bouton apparaît après tous les champs */
  }
  
  /* Pour les éléments de formulaire (inputs, textarea et boutons), améliorer le focus */
  .field:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff; /* Couleur du bord quand l'élément est focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Ajouter une ombre au focus */
  }

  
  /* Taille du logo sur grand écran */
.logo-img {
    height: 100px;
}

/* Taille du logo sur mobile (menu déroulant) */
.logo-img-mobile {
    height: 100px;
    display: block;
    margin: 0 auto;
}



/* Reset du margin et padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.services-section {
  background-image: url('fond.jpg'); /* remplace par ton image */
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.services-section .overlay {
  background-color: rgba(0, 0, 0, 0.5); /* fond foncé transparent */
  width: 100%;
  height: 100%;
  padding: 60px 0;
}

.services-section h4 {
  font-weight: bold;
  margin-bottom: 15px;
}

.services-section p {
  font-size: 0.95rem;
  line-height: 1.5;
}
