/* =======================================
   PAGE CONTACT (contact.php)
   ETS GALLAND & FILS
======================================= */

/* --- HERO CONTACT --- */
.contact-hero {
  background: linear-gradient(160deg, #00457C, #00A676);
  color: #ffffff;
  padding: 110px 20px 90px;
  text-align: center;
}

.contact-hero .container {
  max-width: 800px;
}

.contact-hero h1 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.contact-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 22px;
}

.contact-hero-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.25s ease;
}

.contact-hero-btn:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

/* --- SECTION PRINCIPALE CONTACT --- */
.contact-main {
  background: #ffffff;
  padding: 80px 0;
  color: #0f172a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
  align-items: flex-start;
}

/* COLONNE GAUCHE : INFOS */
.contact-info h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 14px;
}

.contact-info p {
  color: #4b5563;
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.contact-info-block {
  margin-bottom: 18px;
}

.contact-info-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0f172a;
}

.contact-info-block p {
  margin: 0;
}

.contact-info-block a {
  color: #00457C;
  text-decoration: none;
  font-weight: 600;
}

.contact-info-block a:hover {
  text-decoration: underline;
}

.info-small {
  font-size: 0.85rem;
  color: #6b7280;
}

/* COLONNE DROITE : FORMULAIRE */
.contact-form h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.contact-form-intro {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px;
}

/* FORM BOX */
.form-box {
  background: #f9fafb;
  padding: 24px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  display: grid;
  gap: 14px;
  border: 1px solid #e5e7eb;
}

.form-box select,
.form-box input,
.form-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.form-box select:focus,
.form-box input:focus,
.form-box textarea:focus {
  outline: none;
  border-color: #00A676;
  box-shadow: 0 0 0 1px rgba(0,166,118,0.3);
  background: #ffffff;
}

/* Lignes */
.row {
  display: flex;
  gap: 12px;
}

.row input {
  flex: 1;
}

/* Consentement */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  text-align: left;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #00A676;
}

/* Bouton d'envoi */
.btn-submit {
  background: #00A676;
  color: #ffffff;
  padding: 13px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
  transition: 0.25s ease;
}

.btn-submit:hover {
  background: #008c63;
  transform: translateY(-2px);
}

/* Erreurs */
.form-error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-left: 4px solid #b91c1c;
  font-size: 0.9rem;
  margin-bottom: 6px;
  border-radius: 6px;
}

.error {
  border-color: #b91c1c !important;
  background: #fef2f2;
}

/* --- MAP SECTION --- */
.contact-map {
  background: #f9fafb;
  padding: 70px 0;
  text-align: center;
  color: #0f172a;
}

.contact-map .container {
  max-width: 800px;
  margin-bottom: 30px;
}

.contact-map h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-map p {
  color: #475569;
  font-size: 0.98rem;
}

.map-frame {
  width: 100%;
  height: 450px;
  border-top: 4px solid #00A676;
  border-bottom: 4px solid #00A676;
  overflow: hidden;
  background: none !important;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .contact-main {
    padding: 60px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 90px 20px 70px;
  }

  .contact-hero h1 {
    font-size: 2.1rem;
  }

  .contact-hero p {
    font-size: 0.95rem;
  }

  .map-frame {
    height: 350px;
  }
}
/* --- MAP VISUELLE --- */
.map-visual {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-top: 4px solid #00A676;
  border-bottom: 4px solid #00A676;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.map-visual iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.9) saturate(1.1);
}

/* Overlay sombre pour effet visuel */
.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 2;
}

/* Marqueur personnalisé */
.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-10px);
  z-index: 3;
  text-align: center;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
  animation: float 3s ease-in-out infinite;
}

.map-marker img {
  width: 50px;
  height: 50px;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.map-marker p {
  font-size: 1rem;
  line-height: 1.4;
}

.map-marker span {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Animation douce du marqueur */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(-10px); }
  50% { transform: translate(-50%, -50%) translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .map-visual {
    height: 400px;
  }

  .map-marker img {
    width: 40px;
  }

  .map-marker p {
    font-size: 0.9rem;
  }
}
