/* Contact : coordonnées et actions directes, puis présentation du cabinet. */
body[data-page="contact"] { --contact-heading-size: 30px; }
.contact-page {
  padding: 52px 0 48px;
  background: var(--sage-light);
}
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "intro direct" "extra direct";
  grid-template-rows: auto 1fr;
  gap: 24px 72px;
  align-items: start;
}
.contact-page-intro { grid-area: intro; min-width: 0; }
.contact-page-extra { grid-area: extra; min-width: 0; }
.contact-page-intro h1 {
  max-width: none;
  margin: 0 0 24px;
  color: var(--hero-ink);
  font-size: var(--contact-heading-size);
  font-weight: 400;
  line-height: 1.35;
}
.contact-page-intro h1 em {
  display: inline;
  white-space: nowrap;
  color: var(--hero-accent);
  font-weight: 400;
}
.contact-page-intro .lead {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.85;
  color: #46574C;
  text-wrap: pretty;
}
.contact-page-direct { grid-area: direct; min-width: 0; }
.contact-booking { margin-top: 20px; }
.contact-booking .btn { max-width: 100%; gap: 10px; font-size: 14px; }
.contact-booking svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-page-channels { margin: 0; }
.contact-page-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--green-clear);
}
.contact-page-channel:last-child { border-bottom: 1px solid var(--green-clear); }
.contact-channel-link {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  color: var(--hero-ink);
  text-decoration: none;
}
.contact-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--hero-accent);
}
.contact-channel-copy { min-width: 0; }
.contact-channel-copy > span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}
.contact-channel-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.contact-page-channel--phone strong { white-space: nowrap; }
.contact-channel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--green-clear);
  border-radius: 4px;
  background: var(--surface);
  color: var(--sage-dark);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.contact-channel-action svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-channel-action:hover { background: var(--surface-soft); border-color: var(--hero-accent); }
.contact-channel-action:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 3px; }
.contact-channel-link:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.contact-page-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 0;
}
.contact-page-socials p { max-width: 29ch; color: var(--muted); font-size: 12px; line-height: 1.75; }
.contact-page-socials .social-link { background: var(--surface); border: 1px solid var(--border); }
.contact-page-socials .social-link:hover { background: var(--surface-soft); }
.contact-cabinet-link {
  display: inline-flex;
  min-height: 44px;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  color: var(--sage-dark);
  font-size: 13px;
  text-decoration: none;
}
.contact-cabinet-link > span:first-of-type { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--sage); }
.contact-cabinet-link:hover > span:first-of-type { text-decoration-color: currentColor; }
.contact-practical { margin: 0; padding: 56px 0 64px; background: var(--surface-warm); }
.contact-practical h2 { max-width: none; margin: 0 0 30px; color: var(--hero-ink); font-size: var(--contact-heading-size); font-weight: 400; line-height: 1.35; }
.contact-practical h3 { max-width: none; margin: 0; color: var(--hero-ink); font-size: 24px; font-weight: 400; line-height: 1.35; }
.contact-practical-grid { display: grid; gap: 28px; align-items: start; }
.contact-access { margin-top: 28px; color: var(--sage-dark); }
.contact-access summary { display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; min-height: 44px; list-style: none; cursor: pointer; font-size: 14px; }
.contact-access summary::-webkit-details-marker { display: none; }
.contact-access summary > span { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; }
.contact-access summary svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s ease; }
.contact-access[open] summary svg { transform: rotate(90deg); }
.contact-access-content { max-width: 760px; padding-top: 12px; font-size: 14px; color: var(--muted); }
.contact-access-content p + p { margin-top: 12px; }
.contact-origin-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.contact-origin-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--sage-dark); text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .contact-access summary svg { transition: none; } }
.contact-cabinet,
.contact-session-block {
  display: grid;
  grid-template-rows: auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  min-width: 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.contact-cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "address map"; min-height: 280px; }
.contact-session-block { grid-template-columns: minmax(0, 1.36fr) minmax(0, .64fr); grid-template-areas: "session photo"; min-height: 320px; }
.contact-cabinet-location { grid-area: address; min-width: 0; padding: 32px; }
.contact-cabinet-heading h3,
.contact-session-brief h3 { margin: 0 0 18px; font-size: var(--contact-heading-size); }
.contact-cabinet-address { min-width: 0; }
.contact-session-brief { grid-area: session; min-width: 0; padding: 32px; }
.contact-cabinet-address,
.contact-session-brief p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.contact-cabinet-address h4 { margin: 0 0 6px; color: var(--hero-ink); font-size: 17px; font-weight: 500; line-height: 1.5; }
.contact-cabinet-address address { color: #46574C; font-style: normal; font-size: 14px; line-height: 1.8; }
.contact-directions {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 5px;
}
.contact-directions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact-directions:hover { text-decoration-color: currentColor; }
.contact-cabinet-photo { position: relative; grid-area: photo; width: 100%; min-height: 0; margin: 0; align-self: stretch; }
/* Fill the desktop photo area as the adjacent content expands. */
.contact-cabinet-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* A soft fade on the left only, with the top and bottom of the photo left clear. */
.contact-cabinet-photo::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: min(40%, 80px);
  pointer-events: none;
  background: linear-gradient(90deg, var(--surface-soft), color-mix(in srgb, var(--surface-soft) 75%, transparent) 30%, color-mix(in srgb, var(--surface-soft) 30%, transparent) 65%, transparent);
}
.contact-map.leaflet-map {
  grid-area: map;
  align-self: stretch;
  min-width: 0;
  min-height: 280px;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--green-clear);
  border-radius: 0;
  box-shadow: none;
}
.contact-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: var(--sage-dark); }
.contact-map .leaflet-bar { border: 1px solid var(--border); box-shadow: none; }
.contact-session-facts { display: grid; gap: 8px; margin: 0; }
.contact-session-facts > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.contact-session-facts dt { color: var(--muted); font-size: 14px; }
.contact-session-facts dd { margin: 0; color: var(--hero-ink); font-size: 16px; font-weight: 400; white-space: nowrap; }
.contact-session-brief .contact-session-payment { margin-top: 12px; font-size: 13px; }
.contact-session-brief .contact-session-appointment { margin-top: 12px; color: var(--sage-dark); font-size: 13px; font-weight: 500; }
.contact-session-details { margin-top: 10px; }
:is(.contact-session-details, .contact-gift) > summary {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
:is(.contact-session-details, .contact-gift) > summary::-webkit-details-marker { display: none; }
:is(.contact-session-details, .contact-gift) > summary::marker { content: ''; }
:is(.contact-session-details, .contact-gift) > summary > span { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; }
:is(.contact-session-details, .contact-gift) > summary:hover > span { text-decoration-color: currentColor; }
:is(.contact-session-details, .contact-gift) > summary:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 3px; }
:is(.contact-session-details, .contact-gift) > summary svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
:is(.contact-session-details, .contact-gift)[open] > summary svg:last-child { transform: rotate(90deg); }
.contact-session-answer { max-width: 56ch; padding: 4px 0 8px; }
.contact-session-answer p { margin: 0; overflow-wrap: break-word; }
.contact-gift { margin-top: 24px; }
.contact-gift > summary { font-size: 15px; }
.contact-gift > summary .contact-icon { width: 24px; height: 24px; flex-basis: 24px; }
.contact-gift-answer { max-width: 74ch; padding: 8px 0 0 40px; }
.contact-gift-answer p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

@media (min-width: 1152px) {
  .contact-practical-grid { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
  .contact-cabinet,
  .contact-session-block {
    grid-template-columns: minmax(0, 1fr) 200px;
    min-height: 320px;
    align-items: start;
  }
  .contact-cabinet-location, .contact-session-brief { padding: 24px; }
  .contact-map.leaflet-map { min-height: 0; }
  .contact-map .leaflet-popup-content { max-width: 140px; }
  .contact-map .leaflet-top.leaflet-left { top: auto; bottom: 24px; }
  .contact-session-details > summary { gap: 8px; }
}

@media (max-width: 1100px) {
  .contact-page-grid { column-gap: 36px; }
  .contact-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cabinet-location, .contact-session-brief { padding: 24px; }
}
@media (max-width: 800px) {
  body[data-page="contact"] { --contact-heading-size: 24px; }
  .contact-page { padding: 36px 0 44px; }
  .contact-page .wrap, .contact-practical .wrap { max-width: 640px; }
  .contact-page-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "direct" "extra"; grid-template-rows: auto; gap: 24px; }
  .contact-page-intro { padding: 0; }
  .contact-page-intro h1 { margin-bottom: 20px; }
  .contact-page-intro .lead { max-width: 52ch; }
  .contact-page-socials { justify-content: start; gap: 24px; }
  .contact-cabinet-link { margin-top: 16px; }
  .contact-practical { padding: 36px 0 44px; }
  .contact-practical h2 { margin-bottom: 24px; }
  .contact-practical-grid { gap: 24px; }
  .contact-cabinet, .contact-session-block {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .contact-cabinet { grid-template-areas: "address" "map"; }
  .contact-session-block { grid-template-areas: "session" "photo"; padding-bottom: 24px; }
  .contact-session-details > summary { gap: 8px; }
  .contact-cabinet-photo { width: calc(100% - 48px); margin: 0 24px; }
  .contact-cabinet-photo img { position: static; height: auto; }
  .contact-map.leaflet-map { height: 240px; min-height: 0; border-left: 0; border-top: 1px solid var(--green-clear); }
  .contact-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
}
@media (max-width: 480px) {
  .contact-page .wrap, .contact-practical .wrap { width: calc(100% - 40px); }
  .contact-channel-link { gap: 12px; }
  .contact-channel-copy strong { font-size: 14px; }
  .contact-page-channel { grid-template-columns: minmax(0, 1fr) 80px; gap: 12px; }
  .contact-channel-action { gap: 6px; }
  .contact-page-socials { gap: 16px; }
  .contact-cabinet-location, .contact-session-brief { padding: 24px 20px; }
  .contact-cabinet-photo { width: calc(100% - 40px); margin: 0 20px; }
  .contact-session-block { padding-bottom: 20px; }
}
