/**
 * Page Contact — disposition ergonomique, mobile-first
 * Palette : marron / terracotta / olive / crème
 */

.contact-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 72px;
  box-sizing: border-box;
}

/* ─── Hero ─── */
.contact-hero {
  position: relative;
  margin: 0 -16px 28px;
  padding: 36px 20px 40px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(199, 98, 42, 0.18), transparent 55%),
    radial-gradient(90% 70% at 100% 20%, rgba(142, 143, 71, 0.22), transparent 50%),
    linear-gradient(160deg, #faf7f2 0%, #f5efe6 55%, #efe6e0 100%);
  border-bottom: 1px solid rgba(80, 40, 22, 0.08);
  overflow: hidden;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(142, 143, 71, 0.12);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}

.contact-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terre-logo);
}

.contact-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-titres, "Playfair Display", Georgia, serif);
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--marron-logo);
}

.contact-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--texte-muted, #5c4a3a);
}

/* ─── Layout ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

/* Formulaire en premier (priorité ergonomique mobile) */
.contact-form-panel {
  order: 1;
  background: var(--blanc);
  border: 1px solid rgba(80, 40, 22, 0.1);
  border-radius: 18px;
  padding: 22px 18px 24px;
  box-shadow: 0 10px 32px rgba(80, 40, 22, 0.07);
}

.contact-aside {
  order: 2;
}

.contact-form-head {
  margin-bottom: 20px;
}

.contact-form-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--marron-logo);
  font-family: var(--font-titres, Georgia, serif);
}

.contact-form-head p {
  margin: 0;
  font-size: 13px;
  color: var(--texte-muted, #5c4a3a);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--marron-logo);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  min-height: 48px;
  border: 1.5px solid rgba(80, 40, 22, 0.12);
  border-radius: 12px;
  font-size: 16px; /* évite le zoom iOS */
  font-family: inherit;
  background: #faf7f2;
  color: var(--marron-logo);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23502816' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9a9088;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: #fff;
  border-color: var(--terre-logo);
  box-shadow: 0 0 0 3px rgba(199, 98, 42, 0.18);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
  min-height: 52px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--terre-logo) 0%, #a84f22 100%);
  color: var(--blanc);
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(199, 98, 42, 0.28);
  background: linear-gradient(135deg, var(--marron-logo) 0%, var(--terre-logo) 100%);
  color: var(--blanc);
}

.btn-submit--ghost {
  justify-content: center;
  background: transparent;
  color: var(--marron-logo);
  border: 2px solid rgba(80, 40, 22, 0.18);
  box-shadow: none;
}

.btn-submit--ghost:hover {
  background: var(--surface-terre-soft);
  border-color: var(--terre-logo);
  color: var(--terre-logo);
  box-shadow: none;
}

.btn-submit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.btn-submit-text {
  flex: 1;
  text-align: left;
  padding-left: 4px;
}

.btn-submit--ghost .btn-submit-text {
  text-align: center;
  padding-left: 0;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.alert strong {
  display: block;
  margin-bottom: 2px;
}

.alert span {
  display: block;
  opacity: 0.95;
}

.alert-success {
  background: var(--surface-olive-soft);
  color: var(--sage-logo);
  border: 1px solid rgba(142, 143, 71, 0.35);
}

.alert-error {
  background: #fdeee8;
  color: #8b3a1f;
  border: 1px solid rgba(199, 98, 42, 0.3);
}

/* ─── Aside coordonnées ─── */
.contact-aside-card {
  background: linear-gradient(165deg, #502816 0%, #6b2f20 55%, #3d1e11 100%);
  color: #faf7f2;
  border-radius: 18px;
  padding: 22px 18px 20px;
  box-shadow: 0 14px 36px rgba(80, 40, 22, 0.22);
}

.contact-aside-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-titres, Georgia, serif);
}

.contact-aside-text {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.78);
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-channel:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.contact-channel-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--terre-logo);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-channel-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-channel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
}

.contact-channel-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.contact-channel-chevron {
  color: rgba(250, 247, 242, 0.45);
  font-size: 12px;
  flex-shrink: 0;
}

.contact-social-block {
  margin-bottom: 16px;
}

.contact-social-block > .contact-channel-label {
  display: block;
  margin-bottom: 10px;
}

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

.contact-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-social-link:hover {
  transform: translateY(-2px);
  background: var(--terre-logo);
  border-color: var(--terre-logo);
  color: #fff;
}

.contact-promises {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
}

.contact-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.85);
}

.contact-promises i {
  color: var(--olive-claire);
  width: 16px;
  text-align: center;
}

/* ─── Tablette+ ─── */
@media (min-width: 640px) {
  .contact-page {
    padding: 0 24px 88px;
  }

  .contact-hero {
    margin: 0 -24px 36px;
    padding: 48px 24px 52px;
  }

  .contact-form-panel {
    padding: 28px 28px 30px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .contact-aside-card {
    padding: 26px 24px 24px;
  }
}

/* ─── Desktop : form + coords côte à côte ─── */
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
  }

  .contact-form-panel {
    order: 1;
  }

  .contact-aside {
    order: 2;
    position: sticky;
    top: 96px;
  }

  .contact-aside-card {
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
  }

  .contact-promises {
    margin-top: auto;
  }

  .contact-lead {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .contact-form-panel,
  .contact-aside-card {
    padding: 18px 14px 20px;
  }

  .btn-submit-text {
    font-size: 15px;
  }
}
