/* ==========================================================================
   PAGE CONTACT — FEUILLE DE STYLE DÉDIÉE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.contact-hero {
  background: radial-gradient(circle at 85% 30%, rgba(83, 183, 48, 0.18) 0%, transparent 60%), var(--color-primary); /* Lueur verte + Bleu marine #02182B */
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 24px 0;
}

.contact-hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-sectors-desc); /* Bleu-gris #668AA4 */
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. INFORMATIONS DE CONTACT & CARTE
   -------------------------------------------------------------------------- */
.contact-info-map {
  padding: 120px 24px;
  background-color: #F8FAFC; /* Fond gris très clair pour faire ressortir les cartes */
}

.info-map-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1308px;
  margin: 0 auto;
  align-items: stretch;
}

/* Colonne Gauche : Cartes d'information */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 30px;
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.04);
}

.info-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #F0FDF4; /* Vert pâle */
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--color-partners-green); /* Vert de marque #53B730 */
}

.info-card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.info-card-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px 0;
}

.info-card-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.info-card-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.info-card-content a:hover {
  color: var(--color-partners-green);
}

/* Réseaux Sociaux */
.contact-social-wrap {
  margin-top: 16px;
  padding: 30px;
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
}

.contact-social-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px 0;
}

.contact-social-icons {
  display: flex;
  gap: 16px;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #E2E8F0;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.contact-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-social-link:hover {
  background-color: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.contact-social-link[aria-label="YouTube"]:hover polygon {
  fill: var(--color-primary);
}

/* Colonne Droite : Carte Google Maps */
.contact-map-col {
  display: flex;
  flex-direction: column;
}

.map-wrapper {
  flex: 1;
  width: 100%;
  min-height: 450px;
  border: 1px solid #E2E8F0;
  background: var(--bg-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   3. SECTION FORMULAIRE DE CONTACT
   -------------------------------------------------------------------------- */
.contact-form-section {
  padding: 120px 24px;
  background-color: var(--bg-white);
}

.form-section-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* On adapte les classes importées pour qu'elles s'insèrent bien dans notre mise en page double colonne */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: stretch;
}

.contact-image-col {
  position: relative;
  overflow: hidden;
  max-height: 600px;
  align-self: center;
}

.contact-image-col img {
  width: 100%;
  height: 100%;
  max-height: 550px;
  object-fit: cover;
  display: block;
}

.contact-image-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-header {
  margin-bottom: 36px;
}

.contact-form-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 43px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}

.contact-form-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-sectors-desc);
  line-height: 1.6;
  margin: 0;
}

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

.form-field {
  width: 100%;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-primary);
  background: transparent;
  border: 0.86px solid var(--color-sectors-desc);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input,
.form-field select {
  height: 64px;
  line-height: 64px;
}

.form-field select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23668aa4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
  padding-right: 40px;
}

.form-field select:invalid {
  color: var(--color-sectors-desc);
}

.form-field select option {
  color: var(--color-primary);
}

.form-field textarea {
  height: 154px;
  padding-top: 18px;
  padding-bottom: 18px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-sectors-desc);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 24, 43, 0.08);
}

.form-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.form-legal-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.5;
  margin: 0;
}

.form-legal-link {
  color: var(--color-sectors-link);
  transition: color 0.2s ease;
}

.form-legal-link:hover {
  color: var(--color-sectors-desc);
}

.form-response-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-sectors-desc);
  margin: 0;
}

.btn-contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 66px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.btn-contact-submit:hover {
  background-color: #031d33;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 24, 43, 0.25);
}

.btn-contact-submit .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-contact-submit:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. SECTION FAQ
   -------------------------------------------------------------------------- */
.contact-faq {
  padding: 120px 24px;
  background-color: #F8FAFC;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 43px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.faq-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  align-items: start;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  transition: all var(--transition-normal);
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 30px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  color: var(--color-primary);
  cursor: pointer;
  outline: none;
}

.faq-arrow-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform var(--transition-normal), color var(--transition-normal);
  flex-shrink: 0;
}

.faq-arrow-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* États Actifs de la FAQ */
.faq-item.is-active {
  border-color: var(--color-partners-green);
  box-shadow: 0 10px 20px rgba(83, 183, 48, 0.05);
}

.faq-item.is-active .faq-arrow-icon {
  transform: rotate(180deg);
  color: var(--color-partners-green);
}

.faq-item.is-active .faq-content {
  max-height: 300px; /* Assez grand pour le texte */
  padding-bottom: 24px;
}

/* ==========================================================================
   5. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .contact-hero {
    padding: 80px 24px;
  }

  .contact-hero-title {
    font-size: 40px;
  }

  .info-map-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-wrapper {
    min-height: 400px;
  }

  .contact-form-section .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-section .contact-image-col {
    display: none; /* Masque l'image sur tablette et mobile pour privilégier le formulaire */
  }

  .contact-faq {
    padding: 80px 24px;
  }

  .faq-title {
    font-size: 32px;
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 120px 16px 60px 16px;
  }

  .contact-hero-title {
    font-size: 32px;
  }

  .contact-hero-subtitle {
    font-size: 16px;
  }

  .contact-info-map,
  .contact-form-section {
    padding: 60px 16px;
  }

  .info-card {
    padding: 20px;
  }

  .contact-social-wrap {
    padding: 20px;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-trigger {
    padding: 16px 20px;
    font-size: 16px;
  }

  .faq-content {
    padding: 0 20px;
  }

  .faq-content p {
    font-size: 14px;
  }
}
