.cp-section {
  background: var(--fps-ink);
  color: var(--fps-paper);
  scroll-margin-top: 96px;
}

.about-intro-track {
  height: 240svh;
}

.cp-inner {
  max-width: calc(1600px + 2 * var(--padding-x, 20px));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 88px) var(--padding-x, 20px) clamp(48px, 6vw, 96px);
}

.cp-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  font:
    400 clamp(30px, 2.5vw, 42px) / 1 "Bebas Neue",
    sans-serif;
  text-transform: uppercase;
}

.cp-kicker > span {
  font:
    1.25em / 0.8 Arial,
    sans-serif;
}

.cp-heading {
  margin: 0 0 clamp(32px, 4vw, 64px);
  font:
    400 clamp(56px, 6vw, 112px) / 0.95 "Bebas Neue",
    sans-serif;
  text-transform: uppercase;
  text-wrap: balance;
}

.cp-form {
  position: relative;
}

.cp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 128px);
}

.cp-details {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.cp-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.cp-field > span {
  font:
    400 clamp(24px, 2.1vw, 36px) / 1.1 "Bebas Neue",
    sans-serif;
  text-transform: uppercase;
}

.cp-field small {
  margin-left: 10px;
  color: color-mix(in srgb, var(--fps-paper) 65%, transparent);
  font:
    400 12px / 1.4 Arial,
    sans-serif;
  text-transform: none;
}

.cp-field :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px 24px;
  background: var(--fps-paper);
  color: var(--fps-ink);
  font: inherit;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.6;
  outline: none;
  transition:
    border-color 180ms ease-out,
    box-shadow 180ms ease-out;
}

.cp-field input {
  min-height: 76px;
}

.cp-field textarea {
  flex: 1;
  min-height: 320px;
  resize: vertical;
}

.cp-field :is(input, textarea)::placeholder {
  color: #647a79;
  opacity: 1;
}

.cp-field :is(input, textarea):focus-visible {
  border-color: var(--fps-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fps-accent) 28%, transparent);
}

/*
 * Conteneur du widget Turnstile, créé par contact-panel.js. En mode
 * `interaction-only`, il reste invisible pour la plupart des visiteurs : la
 * marge n'apparaît que lorsque Cloudflare affiche réellement un défi
 * (`before-interactive-callback` pose data-interactive).
 */
.cp-turnstile[data-interactive] {
  margin-top: 32px;
}

.cp-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
}

.cp-notices {
  max-width: 620px;
}

.cp-privacy {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--fps-paper) 75%, transparent);
  font-size: 12px;
  line-height: 1.7;
}

.cp-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-feedback {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.cp-form[data-state="error"] .cp-feedback {
  color: #ffd1c6;
}

.cp-submit {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 100px;
  background: var(--fps-accent);
  color: var(--fps-ink);
  font: inherit;
  font-size: 16px;
  transition:
    background-color 180ms ease-out,
    transform 180ms ease-out;
}

.cp-submit-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--fps-ink);
  color: var(--fps-paper);
  font:
    30px / 1 Arial,
    sans-serif;
}

.cp-submit:focus-visible,
.cp-privacy a:focus-visible {
  outline: 2px solid var(--fps-paper);
  outline-offset: 5px;
}

.cp-submit:active {
  transform: scale(0.98);
}

.cp-submit:disabled {
  opacity: 0.65;
}

.cp-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Desktop: the whole contact block (title, four fields, message, button)
   must fit one screen. The fields stay stacked in one column, the message
   fills the height beside them, and vertical sizes follow the viewport height.
   The top padding stays small so the kicker sits beside the floating header. */
@media (min-width: 768px) {
  .cp-inner {
    box-sizing: border-box;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(20px, 5svh, 88px) clamp(16px, 3svh, 72px);
  }

  .cp-kicker {
    margin-bottom: clamp(12px, 2.5svh, 32px);
  }

  /* The scene keeps room below the title for the "Vous" cursor badge. */
  .cp-inner .vc-scene {
    padding-block: clamp(8px, 2svh, 28px) clamp(32px, 6svh, 58px);
  }

  .cp-heading {
    margin-bottom: clamp(14px, 3svh, 56px);
    font-size: clamp(44px, min(6vw, 9svh), 112px);
  }

  .cp-details {
    gap: clamp(10px, 2svh, 36px);
  }

  .cp-field {
    gap: clamp(4px, 1svh, 12px);
  }

  .cp-field > span {
    font-size: clamp(20px, min(2.1vw, 3.8svh), 36px);
  }

  .cp-field :is(input, textarea) {
    padding: clamp(8px, 1.6svh, 20px) clamp(16px, 1.6vw, 24px);
  }

  .cp-field input {
    min-height: clamp(42px, 6.4svh, 76px);
  }

  /* Zero basis in px (0% would fall back to its 8 rows): the textarea takes
     the row height set by the fields instead of pushing it. */
  .cp-details {
    align-self: start;
  }

  .cp-field textarea {
    flex: 1 1 0px;
    height: 0;
    min-height: 140px;
    resize: none;
  }

  .cp-bottom {
    align-items: center;
    margin-top: clamp(12px, 2.4svh, 32px);
  }

  .cp-privacy {
    margin: 0;
  }

  .cp-feedback:empty {
    display: none;
  }

  .cp-submit {
    min-height: clamp(46px, 7svh, 64px);
  }

  .cp-submit-arrow {
    width: clamp(38px, 5.5svh, 46px);
    height: clamp(38px, 5.5svh, 46px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .cp-submit:hover:not(:disabled) {
    background: var(--fps-accent-hover);
  }
}

@media (max-width: 767px) {
  .cp-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cp-field :is(input, textarea) {
    padding: 16px 18px;
    border-radius: 12px;
  }
  .cp-field input {
    min-height: 64px;
  }
  .cp-field textarea {
    min-height: 240px;
  }
  .cp-bottom {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .cp-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .cp-submit,
  .cp-field :is(input, textarea) {
    transition: none;
  }
  .cp-submit:active {
    transform: none;
  }
}
