/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Root Variables */
:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

/* Base Typography */
body {
  font-family: 'Work Sans', sans-serif;
  line-height: 1.6;
  padding-top: 80px; /* Ajusté pour correspondre à la hauteur du header fixe */
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-map {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-map .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 105, 62, 0.65);
  z-index: 1;
}

.hero-map .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding-top: 20px; /* Descend un peu le texte par rapport au header */
}

.hero-map h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-map p {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 40rem;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

/* ============================================
   FORM STYLES
   ============================================ */

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
  font-family: 'Work Sans', sans-serif;
  transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
  background-color: rgba(146, 254, 188, 0.05);
}

form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23747777' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

form button {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Manrope', sans-serif;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 105, 62, 0.2);
}

form button:active {
  transform: translateY(0);
}

/* ============================================
   CONTACT INFO CARDS
   ============================================ */

.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
}

.contact-info-card a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-card a:hover {
  color: #00693e;
  text-decoration: underline;
}

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

@media (max-width: 1024px) {
  .hero-map h1 {
    font-size: 2.5rem;
  }

  .hero-map p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-map {
    height: 350px;
  }

  .hero-map h1 {
    font-size: 2rem;
  }

  .hero-map p {
    font-size: 0.95rem;
  }

  form {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-map {
    height: 280px;
  }

  .hero-map h1 {
    font-size: 1.75rem;
  }

  .hero-map p {
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .hero-map,
  form button {
    page-break-inside: avoid;
  }

  form button {
    display: none;
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }
}

/* Hero background image */
.hero-map {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-map .content {
  position: relative;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-map h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-map p {
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-map {
    height: 260px;
  }

  .hero-map h1 {
    font-size: 2.25rem;
  }
}
