/* =====================================================
   CONTACT – SAHP
   ===================================================== */

#contact-sahp {
  background: linear-gradient(90deg, #4080b7 0%, #5ed0c2 100%);
  padding: 90px 6%;
  color: #ffffff;
}

/* ============================
   CONTAINER – COLONNES RESSERRÉES
============================ */

.contact-container {
  max-width: 1350px;
  margin: auto;
  border-radius: 14px;
  box-sizing: border-box;
  gap: 30px;
  padding: 40px 40px;
}

.container-inner {
  width: 100%;
  margin:auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  max-width: 1350px;
  margin-top: -85px;
  gap:60px;

}

/* ============================
   FORMULAIRE – CARTE AGRANDIE
============================ */

.contact-form {
  background: rgba(255, 255, 255, 1);
  display:flex;
  flex-direction: column;
  width:66%;
  padding: 30px;
}

.contact-infos{
  color: #000;
  background: #fff;
  width:33%;
}

.contact-form, .contact-infos {
  border-radius: 20px;
  box-sizing: border-box;
}

.contact-form h2 {
text-align: center;
  font-size: 30px;
  margin-bottom: 28px;
  font-weight: 700;
  color: #0f4c81;
}

.contact-form h2 span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(64,128,183,0.7);
  border: none;
  border-radius: 14px;
  padding: 16px 18px; 
  font-size: 15px;
  color: #fff;
  outline: none;
}

.contact-form textarea {
  min-height: 272px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.contact-form button {
  margin-top: 12px;
  padding: 16px;
  border-radius: 32px;
  border: none;
  background: #0f4c81;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.contact-form button:hover {
  background: #e6f6f3;
  color:#fff;
  background-color: rgba(64, 128, 183, 0.7);
}

/* ============================
   MESSAGES DE FORMULAIRE
============================ */

.form-message {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.form-success {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #ffffff;
}

.form-error {
  background: rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ffffff;
}

.error-message {
  display: block;
  color: #ffcdd2;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.contact-form input.error,
.contact-form textarea.error {
  border: 2px solid rgba(244, 67, 54, 0.6);
  background: rgba(244, 67, 54, 0.15);
}

/* ============================
   INFOS CONTACT – COLONNE DROITE
============================ */

.contact-infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.contact-zone img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 22px;
}
/* ============================
   MASCOTTE – NETTEMENT AGRANDIE
============================ */

.contact-mascotte img {
  max-width: 240px; /* 🔥 vrai agrandissement */
  width: 100%;
  height: auto;
  margin-top:50px;
}

/* NUMÉRO */
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color:#0f4c81;
}

.contact-details .phone {
  color:#0f4c81;
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

.contact-details .email a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}

.contact-details .hotline {
  font-size: 14px;
  opacity: 0.9;
}

/* ============================
   ZONE INTERVENTION – PLUS LARGE
============================ */

.contact-zone {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 380px; /* 🔥 carte élargie */
}

.contact-zone h4 {
  color:#0f4c81;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-zone img {
  width: 100%;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {
  #contact-sahp {
    padding: 60px 5%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .contact-container {
    max-width: 100%;
    width: 100%;
    margin-top:-35px;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
    box-sizing: border-box;
  }

  .container-inner {
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form textarea {
    width: 100% !important;
    min-width: 0;
  }

  .contact-infos {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-mascotte {
    width: 100%;
  }

  .contact-mascotte img {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .contact-details {
    width: 100%;
    word-break: break-word;
  }

  .contact-details .phone {
    font-size: clamp(20px, 5vw, 26px);
  }

  .contact-zone {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-zone img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  #contact-sahp {
    padding: 40px 4%;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .contact-form h2 {
    font-size: clamp(20px, 5vw, 24px);
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* évite le zoom sur iOS */
  }

  .contact-mascotte img {
    max-width: 160px;
  }
}
