/* "Nous écrire" (src/app/contact/page.ts, its script form.ts; since 25 November 2026). After app.css; tokens only, never
   a colour, never a token redefined. Logical properties throughout: the page reads the same right to left.

   The page: its title and the three steps' row, then the step at hand beside the address to write to (with room, a
   column that stays in view; on a phone, under the step). Step 1 is two large choices drawn with the app's own cars,
   step 2 the reasons as rows, step 3 the form; the thanks stand alone. */

.ct { max-width: 1120px; margin: 0 auto; padding: var(--sp-5) var(--pad) var(--sp-7); }
.ct-head { display: grid; gap: 10px; }
.ct-title { font: 800 clamp(2rem, 1.4rem + 2.6vw, 3rem)/1 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.ct-lede { max-width: 34em; font: 400 1.0625rem/1.35 var(--voice); color: var(--soft); text-wrap: pretty; }

/* The steps: three dots on one line, the one at hand in road paint ("this one"), those done ticked and a link back. The
   line between them fills up to the step at hand. Nothing moves when a step changes: every cell keeps its width. */
.ct-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-3); max-width: 520px; }
.ct-steps::before, .ct-steps::after { content: ""; position: absolute; inset-block-start: 15px; inset-inline-start: calc(100% / 6); height: 2px; border-radius: 1px; background: var(--line); width: calc(100% * 2 / 3); }
.ct-steps::after { background: var(--ink); width: calc(100% / 3 * var(--ct-at)); transition: width var(--calm) var(--ease); }
.ct-steps > li { position: relative; z-index: 1; display: grid; justify-items: center; }
.ct-steps :is(a, li > .ct-dot) { text-decoration: none; }
.ct-steps a, .ct-steps > li { color: var(--soft); }
.ct-steps a { display: grid; justify-items: center; gap: 6px; min-height: 44px; color: var(--ink); }
.ct-steps > li:not(:has(a)) { gap: 6px; }
.ct-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--paper); font: 700 0.875rem/1 var(--label); color: var(--soft); }
.ct-dot .ic { width: 18px; height: 18px; }
.ct-dot.is-done { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.is-now .ct-dot { border-color: var(--paint-edge); background: var(--paint); color: var(--on-paint); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--paint-edge); }
.ct-step-w { font: 600 0.8125rem/1.2 var(--body); text-align: center; }
.is-now .ct-step-w { color: var(--ink); }

.ct-grid { display: grid; gap: var(--sp-6); margin-top: var(--sp-6); }
@media (min-width: 960px) {
  .ct { padding-top: var(--sp-6); }
  .ct-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-7); align-items: start; }
  .ct-direct { position: sticky; inset-block-start: calc(var(--bar-h) + var(--sp-5)); }
}
.ct-main { min-width: 0; display: grid; gap: var(--sp-4); align-content: start; }
.ct-ask { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; outline: none; text-wrap: balance; }

/* A chevron points the way the page reads. */
[dir="rtl"] .ct :is(.ct-go, .ct-back, .ct-go-btn) .ic { scale: -1 1; }

/* Step 1: two choices, each the cars of who writes standing on their ground. */
.ct-who { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .ct-who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } }
.ct-choice { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) 20px; align-items: center; gap: 14px; height: 100%; padding-block: 12px; padding-inline: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-l); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color var(--quick), box-shadow var(--calm) var(--ease), translate var(--calm) var(--ease), scale var(--quick); }
.ct-choice:active { scale: 0.985; }
.ct-choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-art { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 84px; padding: 0 6px 10px; border-radius: var(--r-m); background: var(--road); overflow: hidden; }
/* The ground line the cars stand on. */
.ct-art::after { content: ""; position: absolute; inset-inline: 8px; inset-block-end: 10px; height: 1.5px; border-radius: 1px; background: var(--edge); opacity: 0.5; }
.ct-art-car { flex: none; display: block; }
/* The cars at one scale, as everywhere in the app: the private person's one car, the professional's row of three. */
.ct-art-car .body { display: block; width: 100px; height: auto; aspect-ratio: 160 / 56; }
.is-pro .ct-art-car { flex: 0 1 48px; min-width: 0; }
.is-pro .ct-art-car + .ct-art-car { margin-inline-start: -6px; }
.is-pro .ct-art-car .body { width: 100%; }
[dir="rtl"] .ct-art-car .body { scale: -1 1; }
.ct-choice-w { display: grid; gap: 4px; min-width: 0; }
.ct-choice-w b { font: 750 1.1875rem/1.15 var(--display); letter-spacing: -0.017em; }
.ct-choice-w small { font: 400 0.875rem/1.35 var(--body); color: var(--soft); text-wrap: pretty; }
.ct-go { display: grid; place-items: center; color: var(--soft); }
.ct-go .ic { width: 20px; height: 20px; }
@media (min-width: 640px) {
  .ct-choice { grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; align-items: end; gap: 16px 12px; padding-block: 14px 18px; padding-inline: 14px 18px; }
  .ct-art { grid-column: 1 / -1; height: 150px; padding-block-end: 18px; }
  .ct-art::after { inset-block-end: 18px; inset-inline: 16px; }
  .ct-art-car .body { width: 250px; }
  /* The three cars share the stage's width: each up to 136 px, never past the card (contained.mjs at 1440). */
  .is-pro .ct-art-car { flex: 0 1 136px; min-width: 0; margin-inline: 0; }
  .is-pro .ct-art-car + .ct-art-car { margin-inline-start: -10px; }
  .is-pro .ct-art-car .body { width: 100%; }
  .ct-choice-w b { font-size: 1.375rem; }
}
@media (hover: hover) {
  .ct-choice:hover { border-color: var(--ink); box-shadow: var(--lift-1); translate: 0 -2px; }
  .ct-choice:hover .ct-go { color: var(--ink); }
  /* The choice under the hand is "this one": its cars take the road's paint, as the home's kinds do. */
  .ct-choice:hover { --bd-fill: var(--paint); }
  .ct-reason:hover, .ct-pill:hover { border-color: var(--ink); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ct-art-car { transition: translate var(--settle) var(--ease); }
  .ct-choice:hover .ct-art-car { translate: 10px 0; }
  [dir="rtl"] .ct-choice:hover .ct-art-car { translate: -10px 0; }
}

/* What was chosen, and the way back: one quiet line above steps 2 and 3. */
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ct-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding-inline: 4px 10px; margin-inline-start: -6px; border-radius: var(--r-pill); color: var(--ink); font: 600 0.875rem/1 var(--body); text-decoration: none; }
.ct-back .ic { width: 18px; height: 18px; }
.ct-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding-block: 4px; padding-inline: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--ink); font: 600 0.8125rem/1.1 var(--body); text-decoration: none; transition: border-color var(--quick); }
.ct-pill .ic { width: 16px; height: 16px; color: var(--soft); }
.ct-pill small { font: 500 0.75rem/1 var(--body); color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }

/* Step 2: the reasons, each a row: its icon in a well, its words, the way on. */
.ct-reasons { display: grid; gap: 8px; }
@media (min-width: 700px) { .ct-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ct-reason { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 14px; height: 100%; min-height: 72px; padding-block: 12px; padding-inline: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color var(--quick), scale var(--quick); }
.ct-reason:active { scale: 0.985; }
.ct-reason-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sunk); }
.ct-reason-ic .ic { width: 22px; height: 22px; }
.ct-reason-w { display: grid; gap: 3px; min-width: 0; }
.ct-reason-w b { font: 650 1rem/1.2 var(--body); letter-spacing: -0.005em; }
.ct-reason-w small { font: 400 0.8125rem/1.3 var(--body); color: var(--soft); text-wrap: pretty; }
.ct-reason .ct-go .ic { width: 18px; height: 18px; }

/* Step 3: the tip of the reason, then the form in two parts: the message, then who writes. */
.ct-tip { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; max-width: 62ch; padding: 12px 14px; border-radius: var(--r-m); background: var(--sunk); font: 400 0.875rem/1.45 var(--body); text-wrap: pretty; }
.ct-tip .ic { width: 20px; height: 20px; color: var(--soft); margin-block-start: 1px; }
.ct-form { display: grid; gap: var(--sp-5); max-width: 680px; }
.ct-part { display: grid; gap: var(--sp-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-you { padding-block-start: var(--sp-5); border-block-start: 1px solid var(--line); }
.ct-pair { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .ct-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ct-field { position: relative; display: grid; gap: 6px; min-width: 0; }
.ct-field > label:not(.ct-drop), .ct-label { font: 600 0.875rem/1.2 var(--body); }
:is(.ct-field > label:not(.ct-drop), .ct-label) small { margin-inline-start: 4px; font: 400 0.75rem/1 var(--body); color: var(--soft); }
.ct-field :is(input:not([type="file"], [type="checkbox"]), textarea) { width: 100%; min-height: 50px; margin: 0; padding: 13px 14px; border: 1.5px solid var(--edge); border-radius: var(--r-m); background: var(--card); color: var(--ink); font: 500 1rem/1.35 var(--body); transition: border-color var(--quick), box-shadow var(--quick); }
.ct-field textarea { display: block; min-height: 148px; resize: vertical; }
.ct-field :is(input, textarea)::placeholder { color: var(--soft); opacity: 1; font-weight: 400; }
.ct-field :is(input, textarea):focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ct-field.is-lacking :is(input:not([type="file"]), textarea) { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
/* A field that says it is right: its edge, and nothing else. */
.ct-field.is-good :is(input, textarea) { border-color: var(--good); }
.ct-lacks { font: 550 0.8125rem/1.35 var(--body); color: var(--bad); text-wrap: pretty; }
.ct-note { font: 400 0.8125rem/1.45 var(--body); color: var(--soft); text-wrap: pretty; }
.ct-count { justify-self: end; margin-block-start: -2px; font: 500 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.ct-count.is-over { color: var(--bad); }
.ct-summary { padding: 10px 14px; border-radius: var(--r-m); background: var(--bad-soft); color: var(--bad); font: 600 0.875rem/1.35 var(--body); }

/* The car: a field that finds it among the cars on sale; once picked, the car stands in a chip that takes it away. */
.ct-options { position: absolute; z-index: 5; inset-inline: 0; inset-block-start: calc(1.2em + 6px + 50px + 4px); max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); box-shadow: var(--lift-2); }
.ct-options li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-s); cursor: pointer; font: 500 0.9375rem/1.25 var(--body); }
.ct-options li small { flex: none; font: 500 0.75rem/1 var(--label); color: var(--soft); }
.ct-options li[aria-selected="true"] { background: var(--sunk); }
.ct-options li b { font-weight: 700; }
.ct-options .is-none { cursor: default; color: var(--soft); }
.ct-picked { display: flex; align-items: center; gap: 10px; min-height: 50px; padding-block: 6px; padding-inline: 14px 6px; border: 1.5px solid var(--ink); border-radius: var(--r-m); background: var(--card); }
.ct-picked .ic { width: 20px; height: 20px; flex: none; }
.ct-picked b { flex: 1 1 auto; min-width: 0; font: 650 1rem/1.25 var(--body); overflow-wrap: anywhere; }
.ct-picked .ib .ic { color: var(--soft); }
.ct-field[data-ct-box="car"].is-picked > input[type="text"], .ct-field[data-ct-box="car"].is-picked [data-ct-car-or] { display: none; }

/* The files: a well to tap or to drop into; each file then a chip, its picture or its sign, its size, a way to take it
   away. Without scripts the device's own picker shows inside the well, its button in the product's look. */
.ct-drop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; border: 1.5px dashed var(--edge); border-radius: var(--r-m); background: var(--card); cursor: pointer; transition: border-color var(--quick), background-color var(--quick); }
.ct-drop:focus-within { border-color: var(--ink); border-style: solid; }
.ct-drop.is-over { border-color: var(--ink); background: var(--sunk); }
.ct-drop-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sunk); }
.ct-drop-ic .ic { width: 22px; height: 22px; }
.ct-drop-w { display: grid; gap: 3px; min-width: 0; }
.ct-drop-w b { font: 650 0.9375rem/1.2 var(--body); }
.ct-drop-w small { font: 400 0.8125rem/1.3 var(--body); color: var(--soft); }
.ct-drop-or { display: none; }
.ct-drop input { grid-column: 1 / -1; width: 100%; min-width: 0; font: 400 0.8125rem/1.3 var(--body); color: var(--soft); }
.ct-drop input::file-selector-button { margin-inline-end: 10px; min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--edge); border-radius: var(--r-pill); background: none; color: var(--ink); font: 600 0.8125rem/1 var(--body); cursor: pointer; }
.ct-form.is-live .ct-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
@media (hover: hover) { .ct-form.is-live .ct-drop-or { display: inline; } .ct-drop:hover { border-color: var(--ink); } }
.ct-chips { display: grid; gap: 6px; }
.ct-chip { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding-block: 6px; padding-inline: 6px 4px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.ct-chip.is-lacking { border-color: var(--bad); }
.ct-thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); background: var(--sunk); overflow: hidden; }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-thumb .ic { width: 22px; height: 22px; color: var(--soft); }
.ct-chip-w { display: grid; gap: 2px; min-width: 0; }
.ct-chip-w b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.875rem/1.25 var(--body); }
.ct-chip-w small { font: 400 0.75rem/1.3 var(--body); color: var(--soft); }
.ct-chip.is-lacking .ct-chip-w small { color: var(--bad); font-weight: 550; }
.ct-chip.is-cleaned .ct-chip-w small { color: var(--good); }

/* The agreement: a box the visitor ticks, never ticked beforehand, drawn as the product's tick. */
.ct-agree { display: grid; gap: 6px; }
.ct-tick { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: var(--r-m); cursor: pointer; font: 500 0.875rem/1.4 var(--body); transition: border-color var(--quick); }
.ct-tick input { position: absolute; inset-inline-start: 14px; inset-block-start: 12px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.ct-box { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--edge); border-radius: 7px; background: var(--card); color: transparent; transition: background-color var(--quick), border-color var(--quick), color var(--quick); }
.ct-box .ic { width: 18px; height: 18px; }
.ct-tick:has(input:checked) { border-color: var(--ink); }
.ct-tick:has(input:checked) .ct-box { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ct-tick:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-agree.is-lacking .ct-tick { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.ct-legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font: 600 0.8125rem/1.2 var(--body); }
/* A field no person sees nor reaches: out of the page, out of the tab order. */
.ct-more { position: absolute; inset-inline-start: -200vw; width: 1px; height: 1px; overflow: hidden; }

/* Cloudflare's check: what it is in our words, then its own widget, which takes the width it is given. */
.ct-human { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-m); background: var(--sunk); }
.ct-human-h { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.ct-human-h .ic { width: 20px; height: 20px; color: var(--good); margin-block-start: 1px; }
.ct-human-h b { display: block; font: 650 0.875rem/1.25 var(--body); }
.ct-human-h small { display: block; margin-block-start: 2px; font: 400 0.8125rem/1.35 var(--body); color: var(--soft); }
.ct-human-box:empty { display: none; }
.ct-human-box { min-height: 65px; }
.ct-soon { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--ink); font: 500 0.875rem/1.45 var(--body); }
.ct-soon .ic { width: 20px; height: 20px; color: var(--warn); }
:is(.ct-soon, .ct-failed, .ct-note) a { color: inherit; font-weight: 700; overflow-wrap: anywhere; }
.ct-failed { padding: 12px 14px; border-radius: var(--r-m); background: var(--bad-soft); color: var(--bad); font: 600 0.875rem/1.4 var(--body); text-wrap: pretty; }
.ct-send { display: grid; gap: 10px; justify-items: start; }
.ct-go-btn { min-height: 54px; padding-inline: 26px 22px; font-size: 1rem; }
.ct-go-btn[aria-busy="true"] { background: color-mix(in srgb, var(--ink) 60%, var(--card)); border-color: transparent; }
@media (max-width: 639px) { .ct-send { justify-items: stretch; } }

/* The address to write to: beside every step. */
.ct-direct { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.ct-direct-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paint); color: var(--on-paint); box-shadow: inset 0 0 0 1.5px var(--paint-edge); }
.ct-direct-ic .ic { width: 22px; height: 22px; }
.ct-direct-w { display: grid; gap: 4px; min-width: 0; }
.ct-direct-h { font: 700 1rem/1.2 var(--display); letter-spacing: -0.01em; }
.ct-direct-said { font: 400 0.8125rem/1.35 var(--body); color: var(--soft); }
.ct-direct-a { margin-block-start: 6px; font: 750 1.125rem/1.2 var(--display); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ct-direct-a a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ct-copy { grid-column: 1 / -1; justify-self: start; }

/* The thanks: the bird sings, the words under it, the two ways on. */
.ct-sent { display: grid; justify-items: center; gap: 12px; padding: var(--sp-6) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); text-align: center; }
.ct-sent .bird { width: 104px; height: 104px; transform-origin: 50% 92%; }
.ct-sent .ct-ask { font-size: 1.75rem; }
.ct-then { max-width: 30em; font: 400 0.9375rem/1.45 var(--body); color: var(--soft); text-wrap: balance; }
.ct-then b { color: var(--ink); overflow-wrap: anywhere; }
.ct-sent-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .ct-sent .bird { animation: ct-sing 0.85s var(--ease) 0.2s 2 both; }
  .ct-main > * { animation: ct-in var(--calm) var(--ease) both; }
}
@keyframes ct-sing {
  0%, 100% { transform: none; }
  28% { transform: translateY(-10px) rotate(-6deg); }
  56% { transform: translateY(0) rotate(4deg); }
  78% { transform: translateY(-3px) rotate(0deg); }
}
@keyframes ct-in { from { opacity: 0; translate: 0 6px; } }
