/* Holding page of til-al.com (03/12/2026). The tokens of the redesign « Nuit bleue » (src/styles/global.css):
   night surfaces, one accent (the brand orange, D-087), Bricolage Grotesque for titles, Instrument Sans for
   text, both self-hosted (D-009: no third-party request). The light belongs to the yaz only. Phone first. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Fallbacks with the metrics of the real faces (measured for the full site), so the swap does not move the page. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"), local("Roboto");
  font-weight: 200 800;
  size-adjust: 83%;
  ascent-override: 114.8%;
  descent-override: 33.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto");
  font-weight: 400 700;
  size-adjust: 101.6%;
  ascent-override: 95.5%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}

:root {
  --night: #060b1a;
  --night-1: #0b1226;
  --night-2: #111a33;
  --night-3: #18233f;
  --night-4: #202d4d;
  --line: rgb(200 214 255 / .10);
  --line-2: rgb(200 214 255 / .18);
  --line-3: rgb(200 214 255 / .42);
  --ink: #f3f5fa;
  --ink-2: #b5bccc;
  --or: #e8714c;
  --or-hover: #f08562;
  --or-light: #ffb196;
  --tube-off: #26314f;
  --focus: #ffb196;
  --error: #ffb196;
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Arial Narrow", Arial, sans-serif;
  --font-text: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 1.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }
@media (min-width: 64rem) { :root { --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, fieldset, legend, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
svg { display: block; }
/* A component's display (grid, flex) must never beat the hidden attribute the script sets. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: .25rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 75rem; margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }

/* ── Bar ─────────────────────────────────────────────────────────────── */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: .375rem; }
.logo { width: 5.75rem; height: auto; }
.logo-ink { fill: var(--ink); }
.logo-ai { fill: var(--or); }
.bar-call {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-3);
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: background-color .18s;
}
.bar-call:hover { background: var(--night-3); }
.bar-call .num { display: none; }
@media (min-width: 48rem) {
  .bar .wrap { min-height: 4.25rem; }
  .logo { width: 6.5rem; }
  .bar-call .num { display: inline; }
  .bar-call .word { display: none; }
}

/* ── Holding page ────────────────────────────────────────────────────── */
.hold { flex: 1; display: grid; align-items: center; padding-block: 1.5rem 3rem; }
.hold .wrap { display: grid; gap: 2rem; }
.hold-text { display: grid; gap: 1.5rem; align-content: start; }
.hold h1 {
  font: 800 clamp(2rem, 9vw, 2.5rem)/1.04 var(--font-display);
  font-stretch: 78%;
  letter-spacing: -.01em;
  text-wrap: balance;
  max-width: 13em;
}
.lede { font-size: 1.125rem; line-height: 1.5; max-width: 30em; text-wrap: pretty; }

@media (min-width: 64rem) {
  .hold { padding-block: 3rem 4rem; }
  .hold .wrap { grid-template-columns: minmax(0, 33rem) minmax(0, 1fr); column-gap: 4rem; align-items: center; }
  .hold h1 { font-size: 3.5rem; }
  .lede { font-size: 1.25rem; }
}

/* ── The yaz: the four axes of the offer, lit once ───────────────────── */
.yaz { order: -1; display: grid; gap: .75rem; width: 100%; max-width: 26rem; margin-inline: auto; position: relative; }
.yaz::before {
  content: ""; position: absolute; inset: 8% 14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(230 236 255 / .13), rgb(230 236 255 / .06) 40%, rgb(232 113 76 / .04) 70%, transparent);
}
.yaz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.yaz-row li { display: grid; gap: .125rem; align-content: end; }
.yaz-row li:nth-child(2) { text-align: right; }
.yaz-row--low li { align-content: start; }
.yaz-name { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.yaz-line { display: none; font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
/* Phone: a compact letter above the title, its four axes in the corners it points to (never half a screen). */
.yz { width: 46%; max-width: 10rem; height: auto; margin-inline: auto; overflow: visible; }
@media (min-width: 48rem) {
  .yaz { max-width: 30rem; }
  .yaz-name { font-size: 1.0625rem; }
  .yaz-line { display: block; }
  .yz { width: 50%; max-width: 15rem; }
}
@media (min-width: 64rem) {
  .yaz { order: 0; max-width: 34rem; gap: 1.25rem; }
  .yz { width: 62%; max-width: 21rem; }
}

.yz-off { fill: none; stroke: var(--tube-off); stroke-width: .62; stroke-linecap: round; }
.yz-bloom path { fill: none; stroke: var(--or); stroke-width: 1.7; stroke-linecap: round; opacity: .45; }
.yz-bloom .seal { stroke: #d6defa; opacity: .35; }
.yz-lit path { fill: none; stroke-width: .62; stroke-linecap: round; }
.yz-core path { fill: none; stroke: #fff; stroke-width: .2; stroke-linecap: round; opacity: .85; }
.yz-head { fill: none; stroke: #fff; stroke-width: .9; stroke-linecap: round; stroke-dasharray: .06 3; stroke-dashoffset: -2; }
.yz-tip { fill: var(--night-3); stroke: var(--tube-off); stroke-width: .4; }
.yz-tip-halo { fill: var(--or); opacity: .5; }
.yz-tip-lit { fill: var(--or); stroke: var(--or-light); stroke-width: .35; }
.yz-joint { fill: #fff; }

/* The drawing: the light leaves the four tips at once and meets in the centre of the stem, which lights last
   (Tilal, 16/11/2026: the four branches converge on the centre).
   The resting state is the lit letter: the animation only plays the way there (fill mode « backwards »), so
   without animation (reduced motion, old browser) the page shows the end state. */
.s { stroke-dasharray: 1 1.1; animation: yz-draw 1s var(--ease) backwards; }
.s--up { animation-delay: .35s; }
.s--seal { animation-duration: .45s; animation-delay: 1.3s; animation-timing-function: linear; }
.s--stub { animation-duration: .6s; animation-delay: 1.7s; }
.s--low { animation-delay: .35s; }
.yz-head { animation: yz-run 1s var(--ease) backwards; }
.yz-head.s--up { animation-delay: .35s; }
.yz-head.s--seal { animation-duration: .45s; animation-delay: 1.3s; animation-timing-function: linear; }
.yz-head.s--low { animation-delay: .35s; }
.t--up { animation: yz-on .5s ease .1s backwards; }
.t--low { animation: yz-on .5s ease .1s backwards; }
.yz-joint { animation: yz-on .3s ease 1.3s backwards; }
/* 1.05, not 1: the round cap of a dash ending exactly at the start would show as a dot before its turn. */
@keyframes yz-draw { from { stroke-dashoffset: 1.05; } }
@keyframes yz-run {
  0% { stroke-dashoffset: .06; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes yz-on { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .yz *, .yz { animation: none !important; }
}

/* ── The request ─────────────────────────────────────────────────────── */
.ask {
  display: grid; gap: 1.125rem;
  padding: 1.25rem; border-radius: 1rem;
  background: var(--night-1); box-shadow: inset 0 0 0 1px var(--line-2);
  scroll-margin-top: 1rem;
}
@media (min-width: 48rem) { .ask { padding: 1.75rem; } }
.ask-legend { font-weight: 600; font-size: .9375rem; margin-bottom: .5rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice label { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem .75rem;
  border-radius: .75rem; text-align: center; font-weight: 600; font-size: .9375rem; line-height: 1.2;
  color: var(--ink-2); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-3);
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.choice input:checked + span { color: var(--ink); background: var(--night-4); box-shadow: inset 0 0 0 1.5px var(--or-light); }
/* The choice is also a mark, not only a colour (WCAG 1.4.1): a dot before the selected word. */
.choice input:checked + span::before { content: ""; flex: none; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--or-light); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .choice input:not(:checked):hover + span { background: var(--night-3); } }

.field { display: grid; gap: .5rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field-hint { font-size: .875rem; color: var(--ink-2); }
.field input {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem;
  border: 0; border-radius: .75rem; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-3);
  color: var(--ink); font: 400 1.0625rem/1.3 var(--font-text);
}
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: .75rem; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.err { display: flex; gap: .5rem; align-items: start; font-size: .9375rem; line-height: 1.4; color: var(--error); }
.err[hidden] { display: none; }
.err .ico { margin-top: .05rem; }

.consent { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent a { color: var(--ink); text-decoration-color: var(--line-3); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.consent a:hover { text-decoration-color: var(--ink); }
.box { position: relative; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: .05rem; border-radius: .375rem; background: var(--night-3); box-shadow: inset 0 0 0 1px var(--line-3); }
/* The control itself is 44 px, around the drawn box. */
.box input { position: absolute; inset: -.625rem; width: 2.75rem; height: 2.75rem; margin: 0; opacity: 0; cursor: pointer; }
.box .ico { width: 1rem; height: 1rem; fill: var(--night); opacity: 0; }
.box:has(input:checked) { background: var(--or); box-shadow: none; }
.box:has(input:checked) .ico { opacity: 1; }
.box:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.box:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px var(--error); }

.send {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem; width: 100%; min-height: 3.25rem;
  padding: .75rem 1.25rem; border: 0; border-radius: .75rem; cursor: pointer;
  background: var(--or); color: var(--night); font: 600 1.0625rem/1.2 var(--font-text);
  transition: background-color .18s, transform .12s;
}
.send:hover { background: var(--or-hover); }
.send:active { transform: scale(.98); }
.send[disabled] { cursor: progress; opacity: .8; }
.send .ico { transition: transform .18s var(--ease); }
@media (hover: hover) { .send:hover .ico { transform: translateX(.2rem); } }
.ask-note { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; gap: .5rem; }
.done[hidden] { display: none; }
.done-title { display: flex; align-items: center; gap: .625rem; font: 800 1.75rem/1.1 var(--font-display); font-stretch: 82%; }
.done-title .ico { width: 1.75rem; height: 1.75rem; fill: var(--or); }
.done:focus { outline: none; }

/* ── Direct ways in ──────────────────────────────────────────────────── */
.direct h2 { font-weight: 600; font-size: .9375rem; color: var(--ink-2); margin-bottom: .5rem; }
.direct ul { border-top: 1px solid var(--line); }
.direct li { border-bottom: 1px solid var(--line); }
.direct a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  min-height: 3.25rem; padding: .5rem .25rem; text-decoration: none;
  transition: background-color .18s;
}
.direct a:hover { background: var(--night-1); }
.direct .ico { fill: var(--or-light); }
.direct b { font-weight: 600; }
.direct span { color: var(--ink-2); font-size: .9375rem; text-align: right; overflow-wrap: anywhere; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; row-gap: .25rem; padding-block: 1rem; }
.foot a { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; text-decoration-color: var(--line-3); text-underline-offset: .2em; }
.foot a:hover { color: var(--ink); }
.foot .ico { width: 1.125rem; height: 1.125rem; }
/* Only the links need a 44 px target: the plain lines stay tight on a phone, where they stack. */
.foot p { padding-block: .25rem; }
@media (min-width: 48rem) { .foot p { min-height: 2.75rem; display: flex; align-items: center; padding-block: 0; } }

/* ── Text pages (legal, thanks) ──────────────────────────────────────── */
.page { flex: 1; padding-block: 2rem 4rem; }
.page .wrap { max-width: 46rem; }
.page h1 { font: 800 2rem/1.05 var(--font-display); font-stretch: 78%; margin-bottom: 1rem; }
.page .lede { margin-bottom: 2rem; }
.page section { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.page h2 { font: 700 1.25rem/1.2 var(--font-display); font-stretch: 88%; margin-bottom: .75rem; }
.page p + p { margin-top: .75rem; }
.page p, .page dd { max-width: 38em; }
.page a { text-decoration-color: var(--line-3); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.page a:hover { text-decoration-color: var(--ink); }
.facts { display: grid; gap: .75rem; margin-block: .75rem; }
/* Term above its value on a phone: the SIRET is one unbreakable group, too wide beside a 9rem term at 320 px. */
.facts div { display: grid; gap: 0; }
@media (min-width: 30rem) { .facts { gap: .5rem; } .facts div { grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; } }
.facts dt { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-top: 1.5rem; font-weight: 600; }
@media (min-width: 48rem) { .page h1 { font-size: 2.75rem; } .page { padding-block: 3rem 5rem; } }
