/* Page /contact. Reuses the landing tokens, the sunset hero, and the cream page. */

.contact-page {
  background: var(--bg);
  color: var(--fg);
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.contact-page) { scroll-behavior: smooth; }
}

.contact-page .nav__cta { text-decoration: none; }

.hero.hero--contact { min-height: 400px; }
.hero.hero--contact .hero__orb { transition: none; }
.hero.hero--contact .hero__core {
  position: absolute;
  z-index: 2;
  width: 260px;
  height: 260px;
  left: var(--orb-x, 55%);
  top: var(--orb-y, 45%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      rgba(255, 248, 230, 0.96) 0%,
      rgba(255, 186, 96, 0.72) 28%,
      rgba(226, 96, 40, 0.28) 58%,
      transparent 74%
    );
  mix-blend-mode: screen;
}
.hero.hero--contact .hero__inner {
  min-height: 0;
  align-items: flex-end;
  pointer-events: none;
  z-index: 6;
}
.hero.hero--contact .hero__copy {
  width: fit-content;
  max-width: min(440px, 88%);
  padding: 22px 0 18px;
  pointer-events: none;
}
.hero.hero--contact .hero__eyebrow { margin-bottom: 8px; }
.hero.hero--contact .hero__tagline {
  font-size: clamp(38px, 4.2vw, 60px);
}
.hero.hero--contact .hero__lede {
  margin-top: 10px;
  font-size: 16px;
  max-width: 34ch;
}

.hero.hero--contact .galaxy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.galaxy__word {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0 0.2em;
  border: 0;
  background: transparent;
  color: #fff8ef;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  text-shadow:
    0 1px 1px rgba(8, 6, 4, 0.95),
    0 0 12px rgba(8, 6, 4, 0.88),
    0 8px 18px rgba(8, 6, 4, 0.55);
  transform-origin: center center;
  will-change: transform;
}
.galaxy__word[data-depth="far"] { filter: blur(1px); }
.galaxy__word[data-depth="mid"] { filter: blur(0.35px); }
.galaxy__word--break { line-height: 1.08; text-align: center; }
.galaxy__word[data-depth="near"],
.galaxy__word.is-held,
.galaxy__word.is-picked { filter: none; }
.galaxy__word.is-held,
.galaxy__word.is-picked {
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 206, 140, 0.95),
    0 1px 2px rgba(8, 6, 4, 0.9);
}
.galaxy__word.is-held::before,
.galaxy__word.is-picked::before {
  content: "";
  position: absolute;
  left: 0.2em;
  right: 0.2em;
  bottom: -3px;
  height: 1px;
  background: #ffe1bc;
  box-shadow: 0 0 8px #ffd7a1;
}
.galaxy__word.is-held::after {
  content: "+";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(0.15em, -54%);
  font-style: normal;
  font-size: 0.8em;
  color: #ffe1bc;
  text-shadow: 0 0 10px rgba(255, 206, 140, 0.9);
}
.galaxy__word--result {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #f3c48a;
}
.galaxy__word:hover,
.galaxy__word:focus-visible {
  color: #fff;
  text-shadow:
    0 0 16px rgba(240, 165, 96, 0.9),
    0 2px 10px rgba(21, 18, 15, 0.85);
}

.contact-page .contact-sheet.shell {
  width: min(840px, calc(100% - 40px));
  max-width: 840px;
  margin-inline: auto;
  padding: 18px 0 72px;
}
.contact-sheet {
  position: relative;
}
.contact-sheet__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drop-color-deep);
  margin: 0 0 12px;
}
.contact-sheet h2,
.contact-success h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--ink);
}
.contact-sheet__intro {
  max-width: 62ch;
  margin: 10px 0 16px;
  color: color-mix(in oklab, var(--ink) 78%, transparent);
}
#demande { scroll-margin-top: 84px; }

.contact-card {
  position: relative;
  width: 100%;
  max-width: none;
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 28px 28px 24px;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3));
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.contact-form > .field--wide,
.contact-form > fieldset,
.contact-form > .form-alert,
.contact-form > .contact-submit,
.contact-form > .contact-privacy {
  grid-column: 1 / -1;
}

.contact-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.field label,
.contact-form legend {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--grey-80);
  padding: 0;
}
.field__optional { letter-spacing: 0.04em; text-transform: none; color: var(--fg-muted); }
.req { color: var(--tomato-deep); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--grey-40); }
.field.is-invalid input,
.field.is-invalid textarea,
.service-fieldset.is-invalid { border-color: var(--error); }
.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  color: var(--ink);
}
.service-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.service-option:has(input:checked) {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--grad-1) 28%, var(--chalk));
}
.service-option:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.service-option.is-lit {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--grad-1) 42%, var(--chalk));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--grad-2) 55%, transparent);
}
.service-fieldset.is-invalid .service-grid {
  outline: 1px solid var(--error);
  outline-offset: 4px;
  border-radius: var(--r-md);
}
.field--other { margin-top: 12px; }

.form-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--tomato) 12%, var(--chalk));
  color: var(--error);
  border: 1px solid color-mix(in oklab, var(--tomato) 42%, var(--border));
}

.contact-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.contact-submit .btn { min-height: 52px; }
.contact-submit .btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.contact-submit__note {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}
.contact-privacy {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}
.contact-privacy a {
  color: var(--link);
  border-bottom: 1px solid color-mix(in oklab, var(--link) 45%, transparent);
}

.contact-success { padding: 8px 0 4px; }
.contact-success p {
  max-width: 46ch;
  margin: 14px 0 22px;
  color: var(--fg-muted);
}

.contact-note {
  width: 100%;
  max-width: none;
  margin-top: 22px;
  color: var(--fg-muted);
  font-size: 15px;
}
.contact-note p { margin: 0; }
.contact-note ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.contact-note a { border-bottom: 1px solid var(--border-strong); }

.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-page .foot { padding-top: 12px; }
.contact-page .foot__base { margin-top: 0; }
.contact-page .foot__base a { border-bottom: 1px solid var(--border-strong); }
.contact-page .foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

body.has-cookie-banner .contact-page { padding-bottom: 88px; }
body.has-cookie-choices .contact-page { padding-bottom: 168px; }

.cookie.cookie--contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-height: 88px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
  border-top: 1px solid color-mix(in oklab, var(--grad-2) 28%, transparent);
}
.cookie.cookie--contact .cookie__text {
  flex: 1 1 auto;
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.3;
  color: var(--cream);
}
.cookie.cookie--contact .cookie__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: auto;
}
.cookie.cookie--contact .cookie__btn {
  min-height: 36px;
  padding: 6px 14px;
}
.cookie.cookie--contact .cookie__btn--link {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--cream);
}
.cookie.cookie--contact .cookie__btn--link:hover {
  transform: none;
  background: transparent;
  color: #fff;
}
.cookie.cookie--contact .cookie__choice {
  flex: 1 1 100%;
}
.cookie.cookie--contact.cookie--contact-open {
  flex-wrap: wrap;
  max-height: none;
  overflow: visible;
}

@media (max-width: 720px) {
  .hero.hero--contact { min-height: 264px; }
  .hero.hero--contact .hero__core { width: 168px; height: 168px; }
  .contact-page .nav__wordmark { display: block; height: 16px; width: auto; }
  .hero.hero--contact .hero__copy { max-width: 44%; padding: 8px 0 8px; }
  .galaxy__word--result { display: none; }
  .hero.hero--contact .hero__eyebrow { margin-bottom: 4px; }
  .hero.hero--contact .hero__tagline { font-size: 28px; }
  .hero.hero--contact .hero__lede { display: none; }
  .galaxy__word { font-size: 13px; }
  .galaxy__word--result { font-size: 11px; }
  .contact-page .contact-sheet.shell {
    width: min(840px, calc(100% - 28px));
    padding-top: 8px;
  }
  .contact-sheet__eyebrow { margin-bottom: 4px; }
  .contact-sheet__intro { display: none; }
  .contact-sheet h2,
  .contact-success h2 { font-size: 30px; }
  .contact-form { gap: 12px; }
  .field label, .contact-form legend { margin-bottom: 4px; }
  .contact-card { padding: 12px 14px 12px; }
  .contact-form,
  .service-grid { grid-template-columns: 1fr; }
  .contact-submit .btn { width: 100%; justify-content: center; }
  body.has-cookie-banner .contact-page { padding-bottom: 120px; }
  body.has-cookie-choices .contact-page { padding-bottom: 240px; }
  .cookie.cookie--contact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 120px;
    padding: 10px 14px 12px;
  }
  .cookie.cookie--contact.cookie--contact-open {
    max-height: none;
  }
  .cookie.cookie--contact.cookie--contact-open .cookie__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cookie.cookie--contact .cookie__text {
    font-size: 13px;
    line-height: 1.25;
  }
  .cookie.cookie--contact .cookie__actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .cookie.cookie--contact .cookie__btn--accept { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--contact .hero__eyebrow::before { animation: none; }
  .cookie.cookie--contact { animation: none; }
}
