/* Contact */

.rectangle1 {
  width: 30px;
  height: 30px;
  background-color: #202a37; /* Mets ta couleur */
  border-radius: 6px;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center; /* centre verticalement */
}

.rectangle1 i {
  font-size: 20px; /* Ajuste si tu veux */
  color: white; /* Couleur de l’icône */
}

/* Contact layout: left column stays aligned top (sticky) */
.contact-section .contact-side {
  position: sticky;
  top: 100px; /* ajuste si ton header couvre plus/moins d'espace */
  align-self: start;
}

/* S'assure que le formulaire (card) a une hauteur et s'aligne au top de la colonne */
.contact-section .card {
  min-height: 100%;
}

/* Réduit la largeur effective du formulaire en ajoutant un écart à droite (équivalent me-5) */
.contact-section .form-column .card {
  margin-right: 3rem; /* espace vers la droite jusqu'au bord du site */
  max-width: calc(100% - 3rem); /* évite débordement horizontal */
}

/* Désactive l'espace sur écrans étroits */
@media (max-width: 991.98px) {
  .contact-section .form-column .card {
    margin-right: 0;
    max-width: 100%;
  }
}

/* Responsive: remove sticky on small screens */
@media (max-width: 991.98px) {
  .contact-section .contact-side {
    position: static;
    top: auto;
  }
}

/* petite amélioration visuelle pour le formulaire */
.contact-section .contact-form .form-control {
  border-radius: 8px;
}

/* Formulaire - harmonisation avec la charte couleurs (#202A37 dark, #2563EB blue, #549be3, teintes claires) */
.contact-section .card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(32, 42, 55, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
}

/* Inputs / textarea */
.contact-section .contact-form .form-control {
  background-color: #f5f8fb; /* léger fond */
  border: 1px solid #e2e9f5; /* bord clair */
  color: #202a37; /* texte foncé cohérent */
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.contact-section .contact-form .form-control::placeholder {
  color: #9aa6b8;
  opacity: 1;
}

/* Focus state */
.contact-section .contact-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  background-color: #fff;
  outline: none;
}

/* Labels */
.contact-section .contact-form .form-label,
.contact-section .card h3 {
  color: #202a37;
  font-weight: 600;
}

/* Submit button - override bootstrap primary for this form only */
.contact-section .contact-form .btn.btn-primary {
  background-color: #202a37;
  border-color: #202a37;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.contact-section .contact-form .btn.btn-primary:hover,
.contact-section .contact-form .btn.btn-primary:focus {
  background-color: #1f52d6;
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.16);
  outline: none;
}

/* Small visual helper: subtle divider between left info and form on wide screens */
@media (min-width: 992px) {
  .contact-section .col-lg-5 {
    padding-right: 2rem;
    border-right: 1px solid rgba(32, 42, 55, 0.04);
  }
  .contact-section .form-column {
    padding-left: 2rem;
  }
}

/* Ensure card doesn't overflow on smaller screens */
@media (max-width: 991.98px) {
  .contact-section .card {
    padding: 1rem;
  }
  .contact-section .col-lg-5,
  .contact-section .form-column {
    padding: 0;
    border-right: none;
  }
}



/* Facebook social icon (used in contact.php) */
.contact-info-card .contact-socials .social-icon.facebook,
.contact-info-card .contact-socials a.social-icon.facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1877f2; /* Facebook blue */
  color: #ffffff;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.12);
}

/* Hover / focus state */
.contact-info-card .contact-socials .social-icon.facebook:hover,
.contact-info-card .contact-socials .social-icon.facebook:focus,
.contact-info-card .contact-socials a.social-icon.facebook:hover,
.contact-info-card .contact-socials a.social-icon.facebook:focus {
  background: #155fcc; /* slightly darker on hover */
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(21, 95, 204, 0.18);
  outline: none;
}

/* Ensure the icon inside inherits the color */
.contact-info-card .contact-socials .social-icon.facebook i {
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

/* Small screens: slightly smaller */
@media (max-width: 576px) {
  .contact-info-card .contact-socials .social-icon.facebook {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }
}
