/* ==================================================================================================
   ############ STYLE SPÉCIFIQUE À LA MODALE DE CONTACT ##############################################
   ================================================================================================== */

/* ====================================
       FENÊTRE MODALE DE CONTACT
   ==================================== */

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 12000;
}

.contact-modal.ouverte {
  display: block;
}

.contact-modal-fond {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 24, 0.78);
  backdrop-filter: blur(3px);
}

.contact-modal-boite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 760px);
  max-height: 88vh;
  padding: 22px 22px 18px;
  border: 2px solid rgba(156, 207, 255, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 42, 104, 0.96), rgba(2, 18, 48, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 18px 42px rgba(0,0,0,0.42);
  transform: translate(-50%, -50%);
  overflow: auto;
}

.contact-modal-boite h3 {
  margin: 0 36px 16px 0;
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  color: #ffffff;
  text-align: center;
}

.contact-modal-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-modal-image picture {
  display: block;
  width: 100%;
}

.contact-modal-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border: 2px solid rgba(156, 207, 255, 0.55);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.contact-modal-fermer {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.contact-modal-fermer:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 8px 18px rgba(0,0,0,0.32);
}

body.modal-active {
  overflow: hidden;
}

/* ====================================
       FENÊTRE MODALE DE CONTACT SUR MOBILE
   ==================================== */

@media (max-width: 760px) {
  .contact-modal-boite {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    padding: 12px 10px 10px;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  .contact-modal-boite h3 {
    margin: 0 42px 10px 0;
    font-size: 1.08rem;
    text-align: center;
  }

  .contact-modal-image {
    width: 100%;
    height: calc(100vh - 58px);
  }

  .contact-modal-image picture {
    width: 100%;
    height: 100%;
  }

  .contact-modal-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
  }

  .contact-modal-fermer {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}
