/* ========================================
   Contacts Page Styles
   ======================================== */

.navbar {
  position: relative;
  z-index: 10;
}

.contact-banner {
  position: relative;
  width: 100%;
  overflow: visible;
  margin-bottom: 160px;
}

.contact-section {
  padding: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: 100%;
  max-width: 1240px;
  margin: 0;
  padding: 0 40px;
  box-sizing: border-box;
  transform: translateX(-50%);
  z-index: 3;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -30px;
  font-size: 40px;
  font-weight: bold;
  color: rgb(20, 15, 15);
  z-index: 2;
  text-align: center;
}

.info-card {
  background-color: rgba(230,244,248,1);
  border-radius: 15px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(0,163,218,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
  position: relative;
  max-width: 500px;
  min-height: 180px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.icon-box {
  width: 88px;
  height: 88px;
  margin: -32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 0;
}

.icon-box img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-top: 0;
}

.card-title,
.info-card h3 {
  font-size: 20px;
  font-weight: 400 !important;
  color: #1B3B55;
  margin: 0;
  letter-spacing: 0px;
}

.card-text,
.info-card p {
  font-size: 25px;
  color: #3A5568;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.2px;
  font-weight: 900;
}

.info-card p a {
  color: inherit;
  text-decoration: none;
}

.info-card p a:hover {
  color: #0093B6;
}

.contact-form-section {
  margin-top: 0;
  padding: 80px 0 120px;
  background-color: #fff;
}

.contact-form-wrapper {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-wrapper h2 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.contact-form-wrapper p {
  color: #4a4a4a;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #64748b;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  margin-top: 8px;
  padding: 10px 0 6px;
  border: none;
  border-bottom: 2px solid #cbd5e1;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-family);
  color: #1f2937;
  outline: none;
}

.image-contact img {
  margin-top: -80px;
  /* je vux diminuer la taille de l'image stp */
  width: 100%;
  height: 0px;
}

.contact-form .field-hint {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  min-height: 18px;
  text-align: left;
}

.contact-form .field-hint.visible {
  display: block;
}

.contact-form .field-hint.error {
  color: #c62828;
}

.contact-form .field-hint.success {
  color: #007c91;
}

.info-card .card-text a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-bottom-color: #c62828;
}

.contact-form input.valid,
.contact-form textarea.valid {
  border-bottom-color: #007c91;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #00a3da;
  box-shadow: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.btn-submit {
  background: linear-gradient(180deg, #00C2F0 0%, #0093B6 100%);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(0,163,218,0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 50px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0,163,218,0.32);
}

@media (max-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 36px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: 20px;
    padding-bottom: 0;
  }

  .contact-form-wrapper {
    max-width: 100%;
    padding: 0 20px;
  }

  .contact-form-wrapper h2 {
    font-size: 28px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 0 4px;
  }

  .btn-submit {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
  }
}

.banner-image {
    width: 100%;       /* prend toute la largeur disponible */
    height: clamp(440px, 42vw, 600px);
    object-fit: cover; /* ajuste bien l'image */
    display: block;
    margin-top: 0;
}

.footer-nav h4,
.footer-contact h4 {
    font-weight: 40;
}

@media (max-width: 1024px) {
  .contact-info-grid {
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 0;
    bottom: -80px;
  }

  .info-card {
    width: 100%;
    max-width: none;
  }

  .contact-form-wrapper {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }

  .banner-image {
    height: 400px;
    margin-top: 0;
  }

  .banner-title {
    font-size: 40px;
  }

  .contact-banner {
    margin-bottom: 360px;
  }
}

@media (max-width: 768px) {
  .banner-title {
    position: static;
    transform: none;
    margin: 12px 0 28px;
    font-size: 20px;
    color: #000000;
    text-align: center;
  }

  .banner-image {
    height: clamp(110px, 56vw, 220px);
    margin-top: 0;
  }

  .contact-info-grid {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-banner {
    overflow: visible;
    margin-bottom: 0;
  }

  .info-card {
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 14px 12px 12px;
    margin-top: 0;
    gap: 4px;
  }

  .icon-box {
    width: 52px;
    height: 52px;
    margin: -26px auto 0;
  }

  .icon-box img {
    width: 52px;
    height: 52px;
  }

  .card-title,
  .info-card h3 {
    font-size: 11px;
  }

  .card-text,
  .info-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  .contact-form-section {
    padding: 32px 0 80px;
  }

  .contact-form-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact-form-wrapper h2 {
    font-size: 22px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .banner-title {
    position: static;
    transform: none;
    margin: 20px 0 24px;
    text-align: center;
  }

  .contact-info-grid {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
    padding-left: 40px;
    padding-right: 40px;
  }

  .contact-banner {
    margin-bottom: 0;
  }

  .info-card {
    width: 100%;
    margin-top: 0;
  }
}
