/* =============================================
   contact.css — Version Viewport Strict
   ============================================= */

#contact {
  height: 100vh; /* Strictement la hauteur de l'écran */
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #2A094E; /* Violet Mazot */
  overflow: hidden; /* Empêche le scroll interne à la section */
  position: relative;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  padding: 0 60px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  align-items: center; /* Aligne tout verticalement au centre */
}

/* ── Colonne 1 : Infos ── */
.contact-infos {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 40px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  font-weight: 200 !important;
  color: #FAF5DB !important;
  line-height: 0.9 !important;
  margin-bottom: 40px !important;
  text-transform: uppercase;
}

.contact-bloc {
  margin-bottom: 25px;
}

.contact-bloc__titre {
  color: #FF6B48 !important; /* Orange Mazot */
  font-size: 0.7rem;
  font-weight: 700 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px !important;
  display: block;
}

.contact-infos p, 
.contact-infos a {
  font-size: 1rem;
  color: #FAF5DB;
  text-decoration: none;
  opacity: 0.8;
  line-height: 1.4;
}

/* ── Colonne 2 : Formulaire (Optimisé pour le viewport) ── */
.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form__field {
  margin-bottom: 15px; /* Espacement réduit pour tenir dans le viewport */
}

.contact-form input, 
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 12px 0 !important;
  color: #ffffff !important;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 0 !important;
}

.contact-form textarea {
  height: 80px; /* Hauteur limitée pour éviter de pousser le bouton hors écran */
  resize: none;
}

.contact-form__btn {
  background: transparent !important;
  border: 1px solid #FF6B48 !important;
  color: #FF6B48 !important;
  padding: 15px 40px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 10px;
}

/* ── Colonne 3 : Carte ── */
.contact-map {
  height: 50vh; /* Ne prend que la moitié de la hauteur pour l'équilibre */
  width: 100%;
  border-radius: 2px;
  filter: grayscale(1) invert(0.9) contrast(1.1);
  opacity: 0.8;
}

/* ── RESPONSIVE : TABLETTE ── */
@media (max-width: 1100px) {
  .contact-inner {
    grid-template-columns: 1fr 1.5fr;
    padding: 0 40px;
  }
  .contact-map { display: none; }
}

/* ── RESPONSIVE : MOBILE ── */
@media (max-width: 768px) {
  #contact {
    height: auto; /* Le viewport strict est impossible sur mobile avec un formulaire */
    min-height: 100vh;
    padding: 80px 0;
    overflow-y: auto;
  }

  .contact-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 30px;
  }

  .contact-infos {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 30px;
    text-align: center;
  }

  .contact-map {
    display: block;
    height: 300px;
  }
}

/* ── WPForms override ── */
.wpforms-container,
.wpforms-form {
  width: 100% !important;
}

.wpforms-field-label {
  color: rgba(250,245,219,0.7) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

.wpforms-field input,
.wpforms-field textarea {
  background: rgba(250,245,219,0.08) !important;
  border: 1px solid rgba(250,245,219,0.2) !important;
  border-radius: 4px !important;
  color: #FAF5DB !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  transition: border-color 0.2s !important;
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
  color: rgba(250,245,219,0.35) !important;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: rgba(250,245,219,0.5) !important;
  outline: none !important;
}

.wpforms-submit {
  background: #FF6B48 !important;
  color: white !important;
  border: none !important;
  border-radius: 40px !important;
  padding: 14px 40px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.wpforms-submit:hover {
  background: #FAF5DB !important;
  color: #6F60A3 !important;
}