/* Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Image de fond */
.contact-section {
  height: 100vh;
  background: url("../Banqueimage/Bcontact.jpg") center center / cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-overlay {
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-content {
  width: 90%;
  max-width: 800px;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-content.visible {
  opacity: 1;
  transform: scale(1);
}

.contact-content h1 {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 100px;
}

.contact-content h1 .fin {
  font-weight: 300;
  color: #ffffff;
}

.contact-content h1 .gras {
  font-weight: 700;
  color: #ffffff;
}

/* Espacement du paragraphe et du formulaire */
.contact-content p {
  margin-bottom: 30px;
  font-size: 16px;
}

.contact-content p {
  margin-bottom: 30px;
}

.contact-form {
  background: white;
  padding: 25px;
  border-radius: 12px;
  color: black;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.form-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.contact-content.visible .form-fade:nth-child(1) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.contact-content.visible .form-fade:nth-child(2) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.contact-content.visible .form-fade:nth-child(3) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}
.contact-content.visible .form-fade:nth-child(4) {
  transition-delay: 0.8s;
  opacity: 1;
  transform: translateY(0);
}
.contact-content.visible .form-fade:nth-child(5) {
  transition-delay: 1.8s;
  opacity: 1;
  transform: translateY(0);
}


.form-group {
  display: flex;
  gap: 10px;
}

.form-group input,
.form-group select,
textarea {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #00c896;
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.2);
}

.buttonsend {
  background-color: #339af0;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.buttonsend:hover {
  background-color: #1c7ed6;
  transform: scale(1.05);
}

/* SECTION AGENCES */

.locations-section {
  background: linear-gradient(135deg, rgba(0, 228, 38, 0.05), rgba(0, 38, 255, 0.05));
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.locations-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
}

.agency {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  border-radius: 20px;
  padding: 20px;
  transition: background 0.3s ease;
}

/* Map wrapper */
.map-wrapper {
  position: relative;
  width: 520px;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 0;
  border-radius: 12px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* Bloc info */
.agency-info {
  position: relative;
  margin-left: -60px;
  margin-top: 30px;
  background: linear-gradient(135deg, rgb(0, 136, 170), rgb(0, 51, 128));
  padding: 30px 35px;
  width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agency-info:hover {
  transform: translateY(-5px);
  scale: 1.05;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Inverser pour la 2e agence */
.agency.reverse {
  flex-direction: row-reverse;
}

.agency.reverse .agency-info {
  margin-left: 0;
  margin-right: -60px;
  margin-top: -30px;
}

/* Typo & animation cascade */
.agency-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 12px;
}

.agency-info h3 em {
  font-style: normal; /* désactive l’italique */
  font-weight: 500;   /* active le gras (ou 700 si tu veux plus marqué) */
}


.info-line {
  font-family: 'Poppins', sans-serif;
  font-weight: 200;
  font-size: 14px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(200px);
}

/* Déclenchement de l'animation uniquement quand animate-lines est présent */
.agency.animate-lines .info-line {
  animation: fadeLineUp 0.5s ease forwards;
}

.agency.animate-lines .info-line:nth-of-type(2) {
  animation-delay: 0.4s;
}

.agency.animate-lines .info-line:nth-of-type(3) {
  animation-delay: 0.8s;
}

.agency.animate-lines .info-line:nth-of-type(4) {
  animation-delay: 1.2s;
}

/* Animation de glissement */
@keyframes fadeLineUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icône avec effet hover */
.icon {
  color: white;
  font-size: 18px;
  margin-right: 8px;
  vertical-align: middle;
}



.agency-info:hover .icon {
  transform: scale(1.2);
}

/* Apparition globale des blocs */
.agency .map-wrapper,
.agency .agency-info {
  opacity: 0;
  transform: scale(0.95) translateY(40px);
  transition: all 0.8s ease-out;
}

.agency.visible .map-wrapper,
.agency.visible .agency-info {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.agency.visible .agency-info {
  transition-delay: 0.2s;
}

.promo-banner {
  display: none;
}

.footer-container {
  padding-top: 50px;
}


/* Responsive */
/* ========== OPTIMISATION MOBILE AVANCÉE ========== */
@media (max-width: 768px) {
.contact-section {
  height: auto;
  background-attachment: scroll;
}

.contact-overlay {
  align-items: flex-start;
  padding: 0 15px 60px;
  position: relative;
}

.contact-content {
  margin-top: 30%; /* ✅ Ajouté ici pour décaler le contenu sans modifier l’overlay */
}


  .contact-overlay {
    align-items: flex-start;
    padding: 20px 15px 60px;
  }

  .contact-content {
    width: 85%;
    text-align: center;
  }

  .contact-content h1 {
    font-size: 1rem;
    margin-bottom: 50px;
    line-height: 1.4;
    padding-top: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .contact-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .contact-form {
    padding: 18px;
    gap: 10px;
  }

  .form-group {
    flex-direction: column;
    gap: 10px;
  }

  .form-group input,
  .form-group select,
  textarea {
    width: 100%;
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  /* Agences : amélioration responsive */
  .locations-section {
    padding: 60px 15px;
  }

  .locations-section h2 {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .map-wrapper {
    width: 90%;
    height: 180px;
  }

  .agency-info {
    width: 90%;
    margin-top: -20px;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
  }

  .agency-info h3 {
    font-size: 18px;
  }

  .info-line {
    font-size: 13px;
  }

  .agency.reverse .agency-info {
    margin-top: -20px;
    margin-right: 0;
  }
}
