/* ==========================================================================
   6. CONTACT - PAGE COMPLÈTE RESPONSIVE
   ========================================================================== */

/* CONTENEUR GLOBAL */
.hero-section {
  padding: 40px 20px;
}

.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

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

.contact-hero {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: #FFFFFF;
}

.contact-hero-left {
  padding: 32px;
}

.contact-hero-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #111827;
}

.contact-hero-subtitle {
  margin: 0 0 20px;
  color: #4B5563;
  font-size: 15px;
  line-height: 1.65;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29,78,216,0.18);
  background: rgba(29,78,216,0.06);
  color: #1E3A8A;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* HERO RIGHT / KPI */
.contact-hero-right {
  padding: 20px;
  border-left: 1px solid var(--border-soft);
  background: #F9FAFB;
}

.contact-metrics {
  display: grid;
  gap: 16px;
  height: 100%;
}

.contact-metric {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #FFFFFF;
  padding: 18px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15,23,42,0.08);
}

.contact-metric-kpi {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.contact-metric-label {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
}

/* =========================
   SERVICES
========================= */

.contact-services-section {
  padding: 0 20px 32px;
}

.contact-services {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-service {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15,23,42,0.12);
}

.contact-service-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(29,78,216,0.08);
  border: 1px solid rgba(29,78,216,0.18);
  margin-bottom: 16px;
  font-size: 20px;
}

.contact-service-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
  color: #111827;
}

.contact-service-text {
  margin: 0;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

/* =========================
   CONTACT SECTION (FORMULAIRE)
========================= */

.contact-section {
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section__wrap {
  width: 100%;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

/* ALERTS */
.contact-section__alert {
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--border-soft);
}

.contact-section__alert--success {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.25);
  color: #065F46;
}

.contact-section__alert--error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.22);
  color: #991B1B;
}

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

.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.contact-form__row {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #374151;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  background: #FFFFFF;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__submit {
  background-color: #528ad7;
  color: #FFFFFF;
  border: none;
  margin-top: 12px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-form__submit:hover {
  background-color: #3a6eb8;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(82,138,215,0.24);
}

.contact-form__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6B7280;
}

/* =========================
   CARD
========================= */

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.contact-card__line {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.contact-card__line strong {
  color: #528ad7;
  font-weight: 600;
}

/* MAP */
.contact-card__map {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: rgba(29,78,216,0.06);
}

.contact-card__frame {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* HELPERS */
.muted {
  color: #6B7280;
  font-size: 13px;
}

code {
  background: rgba(29,78,216,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #1E3A8A;
}

/* =========================
   RESPONSIVE - TABLETTE
========================= */

@media (max-width: 1024px) {
  /* HERO en colonne */
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .contact-hero-right {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    background: #FFFFFF;
  }

  /* Metrics en ligne sur tablette */
  .contact-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* Services en 2 colonnes */
  .contact-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 768px) {
  /* HERO */
  .hero-section {
    padding: 24px 16px;
  }

  .contact-hero {
    margin-bottom: 24px;
  }

  .contact-hero-left {
    padding: 24px;
  }

  .contact-hero-right {
    padding: 20px;
  }

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

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

  /* Metrics en colonne */
  .contact-metrics {
    grid-template-columns: 1fr;
  }

  /* SERVICES en colonne */
  .contact-services-section {
    padding: 0 16px 24px;
  }

  .contact-services {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  /* FORMULAIRE en colonne */
  .contact-section {
    padding: 0 16px 40px;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form {
    padding: 24px;
  }

  .contact-card {
    padding: 20px;
  }
}

/* =========================
   RESPONSIVE - PETIT MOBILE
========================= */

@media (max-width: 480px) {
  .hero-section {
    padding: 20px 12px;
  }

  .contact-hero-left {
    padding: 20px;
  }

  .contact-hero-right {
    padding: 16px;
  }

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

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

  /* Badges plus petits */
  .contact-badge {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Services */
  .contact-services-section {
    padding: 0 12px 20px;
  }

  .contact-service {
    padding: 20px;
  }

  /* Formulaire */
  .contact-section {
    padding: 0 12px 32px;
  }

  .contact-form,
  .contact-card {
    padding: 20px;
  }

  .contact-form__input,
  .contact-form__textarea {
    font-size: 16px; /* Évite le zoom auto sur iOS */
  }
}

/* ==========================================================================
   VCARD ASIDE - CARTE DE VISITE INTÉGRÉE
   ========================================================================== */

/* HERO */
.vcard-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.vcard-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #F3F4F6;
  border: 1px solid var(--border-soft);
}

.vcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vcard-hero-info {
  min-width: 0; /* permet le text-overflow */
}

.vcard-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.vcard-title {
  margin: 2px 0 0;
  font-size: 13px;
  color: #6B7280;
}

.vcard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: #6B7280;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 10px;
  background: #F9FAFB;
}

.vcard-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

/* SECTION INFOS */
.vcard-section {
  padding-top: 4px;
}

.vcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vcard-field {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F9FAFB;
  border: 1px solid var(--border-soft);
}

.vcard-label {
  font-size: 11px;
  color: #9CA3AF;
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vcard-value {
  font-size: 13px;
  color: #374151;
  word-break: break-word;
  line-height: 1.4;
}

.vcard-value a {
  color: #528AD7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vcard-value a:hover {
  color: #3A6EB8;
  text-decoration: underline;
}

/* ACTIONS */
.vcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vcard-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.vcard-btn--primary {
  background: #528AD7;
  color: #FFFFFF;
  flex: 1 1 100%;
  justify-content: center;
}

.vcard-btn--primary:hover {
  background: #3A6EB8;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(82, 138, 215, 0.25);
}

.vcard-btn--ghost {
  background: #FFFFFF;
  color: #374151;
  border: 1px solid var(--border-soft);
  flex: 1;
  justify-content: center;
}

.vcard-btn--ghost:hover {
  background: #F9FAFB;
  border-color: #528AD7;
  color: #528AD7;
  transform: translateY(-1px);
}

/* SOCIAL */
.vcard-social {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.vcard-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  background: #F9FAFB;
  color: #6B7280;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vcard-social-btn:hover {
  background: rgba(82, 138, 215, 0.08);
  border-color: rgba(82, 138, 215, 0.3);
  color: #528AD7;
  transform: translateY(-2px);
}

.vcard-social-btn svg {
  flex-shrink: 0;
}

/* =========================
   VCARD RESPONSIVE - TABLETTE
========================= */
@media (max-width: 1024px) {
  .vcard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* =========================
   VCARD RESPONSIVE - MOBILE
========================= */
@media (max-width: 768px) {
  .vcard-hero {
    gap: 14px;
  }

  .vcard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .vcard-name {
    font-size: 16px;
  }

  .vcard-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vcard-actions {
    flex-direction: column;
  }

  .vcard-btn--ghost {
    flex: unset;
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   VCARD RESPONSIVE - PETIT MOBILE
========================= */
@media (max-width: 480px) {
  .vcard-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .vcard-avatar {
    width: 56px;
    height: 56px;
  }

  .vcard-name {
    font-size: 15px;
  }

  .vcard-field {
    padding: 8px 10px;
  }

  .vcard-label {
    font-size: 10px;
  }

  .vcard-value {
    font-size: 12px;
  }

  .vcard-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .vcard-social-btn {
    width: 38px;
    height: 38px;
  }
}
