/* Page Contact — styles scopés */

.page-contact .footer-cta {
  display: none;
}

.page-contact .site-footer {
  margin-top: 0;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.ct-page {
  --ct-cream: #fbf8f4;
  --ct-white: #fffdfa;
  --ct-sand: #f6eee6;
  --ct-terracotta: #c67b63;
  --ct-terracotta-deep: #a8614d;
  --ct-ink: #3f342c;
  --ct-ink-soft: #5c4f45;
  --ct-muted: #7a6b60;
  --ct-line: rgba(125, 132, 108, 0.18);
  --ct-scroll-offset: calc(var(--header-h) + 0.75rem);
}

.page-contact .ct-page [id] {
  scroll-margin-top: var(--ct-scroll-offset);
}

/* Hero — ivoire clair, aéré sans être trop haut */
.ct-hero {
  background:
    radial-gradient(ellipse 48% 90% at 100% 0%, rgba(198, 123, 99, 0.08), transparent 64%),
    linear-gradient(180deg, #f7f0e8 0%, #faf6f1 72%, var(--ct-cream) 100%);
  padding: clamp(2.05rem, 3.8vw, 2.75rem) 0 clamp(1.55rem, 3.2vw, 2.25rem);
}

.ct-hero .breadcrumb {
  margin-bottom: 0.7rem;
}

.ct-hero h1 {
  font-size: clamp(1.7rem, 2.35vw, 2.1rem);
  line-height: 1.22;
  font-weight: 500;
  color: var(--ct-ink-soft);
  margin: 0 0 0.7rem;
}

.ct-hero-hook {
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 2.3vw, 1.9rem);
  line-height: 1.28;
  font-weight: 400;
  color: var(--ct-ink);
  margin: 0 0 0.85rem;
}

.ct-hero-hook::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 0.65rem;
  background: var(--ct-terracotta);
  opacity: 0.5;
}

.ct-hero-lede {
  max-width: 42rem;
  color: var(--ct-ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.35rem;
}

.ct-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Zone formulaire + coordonnées */
.ct-main {
  background: var(--ct-cream);
  padding: clamp(1.35rem, 3vw, 2.15rem) 0 clamp(4.5rem, 7vw, 5.75rem);
  border-bottom: 1px solid rgba(125, 132, 108, 0.14);
}

.ct-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(1.45rem, 3.2vw, 2.25rem);
  align-items: stretch;
}

.ct-form-wrap {
  background: var(--ct-white);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  border: 1px solid var(--ct-line);
  box-shadow: 0 10px 28px rgba(63, 52, 44, 0.04);
}

.ct-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
}

.ct-form label {
  display: grid;
  gap: 0.32rem;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ct-ink);
}

.ct-form label span.optional {
  font-weight: 400;
  color: var(--ct-muted);
}

.ct-form input,
.ct-form textarea {
  width: 100%;
  border: 1px solid var(--ct-line);
  background: rgba(255, 253, 250, 0.95);
  border-radius: 12px;
  padding: 0.68rem 0.9rem;
  font: inherit;
  color: var(--ct-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-form textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.55;
}

.ct-form input:focus,
.ct-form textarea:focus {
  outline: none;
  border-color: rgba(198, 123, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(198, 123, 99, 0.14);
}

.ct-form .btn-primary {
  justify-self: start;
  margin-top: 0.1rem;
}

.ct-form-note {
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  color: var(--ct-muted);
}

.ct-form-msg {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

.ct-form-msg.is-ok {
  color: var(--olive-deep);
}

.ct-form-msg.is-err {
  color: #8a3b32;
}

/* Colonne contact direct */
.ct-details {
  background: #f8f2eb;
  border: 1px solid rgba(198, 123, 99, 0.12);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
  height: 100%;
}

.ct-details h2 {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.8vw, 1.35rem);
  line-height: 1.32;
  font-weight: 500;
  color: var(--ct-ink);
  margin: 0 0 1.15rem;
}

.ct-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ct-details-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(125, 132, 108, 0.1);
}

.ct-details-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.ct-details-item:last-child {
  padding-bottom: 0;
}

.ct-details-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--ct-terracotta);
  margin-top: 0.18rem;
}

.ct-details-label {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ct-terracotta-deep);
  margin: 0 0 0.15rem;
}

.ct-details-value {
  margin: 0;
  color: var(--ct-ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

.ct-details-value a {
  color: inherit;
  text-decoration: none;
}

.ct-details-value a:hover {
  color: var(--ct-terracotta-deep);
}

/* Sticky RDV — Contact uniquement (body.page-contact). Ne doit pas toucher CF / thérapie / QS. */
body.page-contact .cf-sticky[data-cf-sticky] {
  position: fixed;
  z-index: 40;
  left: auto;
  right: 28px;
  bottom: 28px;
  width: auto;
  margin: 0;
  transform: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

body.page-contact .cf-sticky[data-cf-sticky].is-away {
  transform: translateY(calc(120% + 28px));
  opacity: 0;
  pointer-events: none;
}

body.page-contact .cf-sticky-btn {
  box-shadow: 0 12px 36px rgba(63, 52, 44, 0.18);
  min-height: 48px;
  padding-inline: 1.25rem;
}

@media (max-width: 768px) {
  .ct-main-grid {
    grid-template-columns: 1fr;
  }

  .ct-hero-actions .btn,
  .ct-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  body.page-contact .cf-sticky[data-cf-sticky] {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(198, 123, 99, 0.15);
  }

  body.page-contact .cf-sticky-btn {
    width: 100%;
    justify-content: center;
  }
}
