/* Page Contact */

/* Cartes de contact qui chevauchent le héros */
.cf-cards {
  position: relative; z-index: 2; margin-top: -48px; padding-bottom: 24px;
  background: linear-gradient(to bottom, transparent 0, transparent 48px, var(--cream) 48px);
}
.cf-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  container-type: inline-size;
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
/* Mêmes hauteurs et lignes alignées d'une carte à l'autre */
@supports (grid-template-rows: subgrid) {
  .cf-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
}
.cf-card:hover, .cf-card:focus-visible {
  transform: translateY(-6px); box-shadow: 0 28px 48px -24px rgba(43, 37, 30, .3);
  border-color: var(--brand); color: var(--ink);
}
.cf-card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff;
}
.cf-card__label { margin-top: 6px; font: 600 13px/1 var(--font-body); color: var(--brand); }
.cf-card__value { font: 600 21px/1.25 var(--font-display); overflow-wrap: break-word; }
/* L'adresse email se coupe proprement avant « @ » et s'adapte à la largeur de la carte. */
.cf-card__value--email { font-size: 19px; }
@supports (font-size: 1cqi) {
  .cf-card__value--email { font-size: clamp(16px, 9.5cqi, 21px); }
}
.cf-card__text { font: 400 14px/1.5 var(--font-body); color: var(--muted); }

/* Formulaire */
.cf-layout { --cols: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.cf-intro { display: flex; flex-direction: column; gap: 22px; }
.cf-intro__lead { margin: 0; font: 400 17px/1.7 var(--font-body); color: var(--muted); }
.cf-steps { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cf-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cf-steps__n {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 600 14px/1 var(--font-body);
}
.cf-steps__body { display: flex; flex-direction: column; gap: 4px; }
.cf-steps__body strong { font: 600 19px/1.25 var(--font-display); }
.cf-steps__body span { font: 400 14px/1.55 var(--font-body); color: var(--muted); }

.cf-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 3vw, 40px); box-shadow: 0 28px 56px -32px rgba(43, 37, 30, .3);
}
.cf-form { display: flex; flex-direction: column; gap: 20px; }
.cf-form__grid { --gap: 18px; }
.cf-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cf-form__note { max-width: 340px; font: 400 12px/1.5 var(--font-body); color: var(--muted); }

.cf-done {
  min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center;
}
.cf-done:focus { outline: none; }
.cf-done__title { margin: 0; font: 600 28px/1.15 var(--font-display); }
.cf-done__text { margin: 0; max-width: 380px; font: 400 16px/1.6 var(--font-body); color: var(--muted); }
.cf-done__text a { font-weight: 600; white-space: nowrap; }

/* Zone d'intervention */
.zone-layout { --cols: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.zone-copy { --gap: 24px; }
.zone-copy__text { max-width: 460px; line-height: 1.65; }
.zone-dl { margin: 0; border-bottom: 1px solid var(--line); }
.zone-dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.zone-dl dt { font: 600 14px/1.4 var(--font-body); color: var(--brand); }
.zone-dl dd { margin: 0; font: 500 15px/1.5 var(--font-body); color: var(--ink); }
.zone-dl dd a { color: var(--ink); }
.zone-dl dd a:hover { color: var(--brand); }
.zone-map {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 28px 56px -30px rgba(43, 37, 30, .35); aspect-ratio: 7 / 5; min-height: 340px; background: var(--mist);
}
.zone-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.85); }

@media (min-width: 769px) {
  .cf-section { padding-top: 100px; }
  .cf-intro .h2 { font-size: 44px; line-height: 1.06; }
}
@media (max-width: 640px) {
  .cf-card { padding: 24px; }
  .cf-done { min-height: 320px; }
  .zone-dl > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .zone-map { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-card:hover, .cf-card:focus-visible { transform: none; }
}
