
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --bg: #FBFAF8; --surface: #F3F2EE; --surface-strong: #EAE8E3; --line: #E6E4DE; --white: #FFFFFF;
  --ink: #1B1B19; --muted: #6B6963; --rule: #BFBCB4;
  --blue: #0535E6; --danger: #A8261D; --danger-bg: #FAECE9;
  --display: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scrollbar-color: #CFCCC4 transparent; -webkit-text-size-adjust: 100%; }
::selection { background: #CFDBFF; color: var(--ink); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--text); font-size: 1rem; line-height: 1.55; caret-color: var(--blue); }
/* Une seule marge de gauche pour tout le site : celle du logo. */
main { width: 100%; max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; flex: 1; }
main > * { max-width: 26rem; }
main.wide > * { max-width: 52rem; }
main.home > * { max-width: none; }
main p, main li, main dd { max-width: 68ch; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: .8rem; }
h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--muted); max-width: 38rem; margin-bottom: 2.5rem; }
.meta { font-size: .875rem; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em; background: var(--surface-strong); padding: .15em .4em; border-radius: 5px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.sprite, .ticket, .cap, .badge, .lane-number, .wordmark { display: block; flex: none; }

/* Copier en un clic : la valeur dans son cadre, une icône discrète à droite. */
.copyable { display: flex; align-items: center; gap: .25rem; width: fit-content; max-width: 100%; margin: 0 0 1rem; padding: .3rem .35rem .3rem .85rem; background: var(--surface); border-radius: 8px; }
.copyable code { background: none; padding: 0; font-size: .9375rem; min-width: 0; }
button.copy { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: none; color: var(--muted); border-radius: 6px; }
button.copy:hover { background: var(--surface-strong); color: var(--ink); }
button.copy .i-check { display: none; }
button.copy.copied { color: var(--blue); }
button.copy.copied .i-copy { display: none; }
button.copy.copied .i-check { display: block; }

/* Formulaires */
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
input[type=email], input[type=text], input[type=number], textarea, select {
  width: 100%; padding: .65rem .8rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #8C8982; border-radius: 8px;
}
input:hover, textarea:hover, select:hover { border-color: var(--ink); }
::placeholder { color: var(--muted); opacity: 1; }
select { appearance: none; padding-right: 2.2rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231B1B19' stroke-width='1.5'/%3E%3C/svg%3E") right .8rem center / 12px no-repeat; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--blue); border-radius: 8px; }
textarea { min-height: 9rem; resize: none; line-height: 1.5; }
input.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.35rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.row { margin-bottom: 1rem; }
.help { font-size: .875rem; color: var(--muted); margin: .4rem 0 0; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.fields .wide { grid-column: span 2; }
@media (max-width: 40rem) { .fields { grid-template-columns: 1fr; } .fields .wide { grid-column: auto; } }
.actions { display: flex; gap: .6rem 1rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

button, a.button {
  appearance: none; display: inline-flex; align-items: center; border: 0; background: var(--ink); color: #fff; text-decoration: none;
  padding: .6rem 1rem; font-family: var(--text); font-size: .9375rem; font-weight: 600; line-height: 1.3; border-radius: 8px; cursor: pointer;
  transition: background-color .12s ease-out;
}
button:hover, a.button:hover { background: #000; }
button:focus-visible, a.button:focus-visible { border-radius: 8px; }
button.secondary, a.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
button.secondary:hover, a.button.secondary:hover { background: var(--surface-strong); }
button.link { background: none; color: inherit; padding: 0; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em; border-radius: 2px; }
button.link:hover { background: none; text-decoration-color: currentColor; }
button[disabled] { opacity: .5; cursor: progress; }
form.inline { display: inline; }
form.inline button { padding: .35rem .7rem; font-size: .875rem; }

.notice { font-size: .9375rem; padding: .75rem .9rem; border-radius: 8px; background: var(--surface); margin: 1rem 0 0; }
.notice.error { background: var(--danger-bg); color: var(--danger); }
/* État d'une chose, en une phrase précédée d'un carreau : bleu quand tout va bien, rouge sinon. */
.status { display: flex; align-items: baseline; gap: .65rem; margin: 0 0 1rem; font-weight: 500; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--blue); }
.status.off::before { background: var(--danger); }

/* Écran d'autorisation : l'accord à gauche, les deux phrases à droite, sans défilement. */
main > .consent { max-width: none; display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 27rem); gap: 2rem 5rem; align-items: start; }
.consent h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); }
.consent .lede { font-size: 1rem; margin-bottom: 1.25rem; }
.consent ul.plain { margin-bottom: 0; }
.consent ul.plain li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7rem; padding: .5rem 0; }
.consent ul.plain li:first-child { padding-top: .5rem; border-top: 1px solid var(--line); }
.consent ul.plain li strong { display: inline; }
.consent .actions { margin-top: 1.25rem; }
.consent .next h2 { font-size: 1.125rem; margin: .35rem 0 .3rem; }
.consent .next .hint { font-size: .875rem; color: var(--muted); margin: 0 0 1rem; }
.consent .say { margin-bottom: .75rem; }
.consent .say blockquote { font-size: .9375rem; }
@media (max-width: 56rem) { main > .consent { grid-template-columns: 1fr; } }

/* Missions à faire confirmer : une ligne par mission, le code à droite. */
ul.codes { list-style: none; margin: 0; padding: 0; }
ul.codes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); max-width: none; }
ul.codes li:first-child { border-top: 0; }
ul.codes strong { display: block; font-weight: 600; }
ul.codes .meta { display: block; }
ul.codes .copyable { margin: 0; }
ul.codes .copyable code { white-space: nowrap; letter-spacing: .04em; }
@media (max-width: 34rem) { ul.codes li { grid-template-columns: 1fr; } }

/* En-tête et pied */
.site-head .inner { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 1; }
.wordmark { height: 35px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem 1.5rem; flex-wrap: wrap; font-size: .9375rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav button.link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: inherit; }
.site-nav button.link:hover { color: var(--ink); }
@media (max-width: 36rem) { .brand span { display: none; } .site-nav { gap: .25rem 1rem; font-size: .875rem; } }
footer .inner { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; display: flex; gap: .4rem 1.5rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .by { margin-left: auto; }

/* Pages de contenu */
section { margin: 4rem 0 0; }
section > h2 { margin: 0 0 .4rem; }
section > h2 + :not(.hint) { margin-top: 1.1rem; }
section > .hint { font-size: .9375rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 38rem; }
section > h3 { font-family: var(--text); font-size: 1rem; font-weight: 700; margin: 2.25rem 0 .35rem; }
.sheet { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; }
.sheet h3 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 .2rem; }
.title { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1.1rem; }
.title h1 { margin: 0; }
.sheet .headline { color: var(--muted); margin: 0 0 1.25rem; }
.sheet + .sheet, .sheet + .actions { margin-top: 1rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.75rem; margin: 0 0 1.5rem; font-size: .9375rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
dl.facts.contact { margin: 0; gap: .15rem 1rem; }
@media (max-width: 34rem) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: .6rem; } }
.mission { border-top: 1px solid var(--line); padding: 1.25rem 0 .25rem; }
.mission h4 { font-family: var(--text); font-size: 1rem; font-weight: 700; margin: 0 0 .15rem; }
.mission .where { font-size: .875rem; color: var(--muted); margin: 0 0 .75rem; }
.mission p { margin: 0 0 .5rem; font-size: .9375rem; }
dl.brief { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .45rem 1rem; margin: 0 0 .25rem; font-size: .9375rem; }
dl.brief dt { color: var(--muted); }
dl.brief dd { margin: 0; }
@media (max-width: 34rem) { dl.brief { grid-template-columns: 1fr; gap: 0; } dl.brief dd { margin-bottom: .5rem; } }
.mission .where + .counts, .mission .counts { margin: 0 0 1rem; }
.mission .counts + .where { margin-top: 0; }
ul.chips { list-style: none; padding: 0; margin: .75rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .375rem; }
ul.chips li { font-size: .8125rem; font-weight: 500; line-height: 1.3; padding: .2rem .5rem; background: var(--surface); border-radius: 6px; }
.proof { font-weight: 600; }
.proof .badge { display: inline-block; vertical-align: -3px; margin-right: .3rem; }
.proof.none { font-weight: 400; }
ul.plain, ul.todo { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .9375rem; }
ul.plain li, ul.todo li { padding: .7rem 0; border-top: 1px solid var(--line); }
ul.plain li:first-child, ul.todo li:first-child { border-top: 0; padding-top: .2rem; }
ul.plain li strong { display: block; font-weight: 600; }
ul.todo li { padding-left: 1.4rem; position: relative; }
ul.todo li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 8px; height: 8px; background: var(--blue); }
ul.todo li:first-child::before { top: .7rem; }
ul.todo li.blocking::before { background: var(--danger); }
/* Complétude du profil : dix carreaux. */
.meter { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.25rem; font-size: .9375rem; }
.meter .tiles { display: flex; gap: 3px; }
.meter .tiles i { width: 12px; height: 12px; background: var(--surface-strong); border-radius: 1px; }
.meter .tiles i.on { background: var(--blue); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th { text-align: left; font-weight: 500; font-size: .8125rem; color: var(--muted); padding: 0 1.25rem .6rem 0; }
td { padding: .85rem 1.25rem .85rem 0; border-top: 1px solid var(--line); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.when { white-space: nowrap; color: var(--muted); }
td strong { font-weight: 600; }
/* Crédits : un ticket par crédit du mois. */
.credits { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.75rem 0 .9rem; }
.credits .tickets { display: flex; gap: 6px; }
.credits p { margin: 0; font-family: var(--display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.empty { display: flex; align-items: center; gap: 1.25rem; font-size: .9375rem; color: var(--muted); max-width: 36rem; margin: 0; }
/* Liste des assistants : un bloc par éditeur, une ligne par assistant. */
.assistants { margin: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.vendor { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.assistant { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: .9rem 0; }
.assistant .who { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: .7rem; align-items: center; margin: 0; align-self: start; }
.assistant .who strong { font-weight: 700; }
.assistant .who span:last-child { grid-column: 2; font-size: .875rem; color: var(--muted); }
.assistant .how p { margin: 0 0 .5rem; font-size: .9375rem; }
.assistant .how .copyable { margin-bottom: .6rem; }
.assistant .how .button { padding: .45rem .8rem; font-size: .875rem; }
.logo { display: block; width: 22px; height: 22px; color: var(--ink); }
.logo.initial { display: grid; place-items: center; background: var(--surface-strong); border-radius: 5px; font-family: var(--display); font-size: .8125rem; font-weight: 600; }
@media (max-width: 40rem) { .assistant { grid-template-columns: 1fr; } }

/* Demande type : ce qu'on dit à son assistant, mot pour mot. */
.say { margin: 0 0 1.25rem; padding: 1rem 1.15rem 1.1rem; background: var(--surface); border-radius: 12px; max-width: 34rem; }
.say figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8125rem; color: var(--muted); margin: -.35rem -.5rem .25rem 0; }
.say blockquote { margin: 0; font-size: 1rem; line-height: 1.5; }
/* Rubrique du mode d'emploi : un objet, puis son texte. */
.topic { display: flex; gap: 1.75rem; align-items: flex-start; }
.topic > div { min-width: 0; flex: 1; }
.topic h2 { margin: .1rem 0 .4rem; }
.topic h2 + :not(.hint) { margin-top: 1.1rem; }
.topic .hint { font-size: .9375rem; color: var(--muted); margin: 0 0 1.25rem; }
@media (max-width: 36rem) { .topic { flex-direction: column; gap: 1rem; } }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem 4.5rem; align-items: center; margin: 1.5rem 0 0; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.25rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.hero .lede { margin-bottom: 2rem; }
.connect { font-size: .9375rem; color: var(--muted); margin: 0 0 .5rem; }
/* Une réponse type : le besoin, puis les profils proposés. */
.lanes { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.75rem 1.2rem; }
.lanes .ask { margin: 0 0 1.1rem; }
.lanes .ask span { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .35rem; }
.lanes .ask p { margin: 0; line-height: 1.5; }
.lanes ol { list-style: none; margin: 0; padding: 0; }
.lanes li { display: grid; grid-template-columns: 10px 32px minmax(0, 1fr); gap: 0 .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); max-width: none; }
.lanes li div { min-width: 0; }
.lanes li strong { font-weight: 700; margin-right: .5rem; }
.lanes li span { color: var(--muted); font-size: .9375rem; }
.lanes li small { display: block; font-size: .8125rem; color: var(--muted); }
.lanes .note { font-size: .8125rem; color: var(--muted); margin: .6rem 0 0; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem 5rem; margin: 6.5rem 0 1rem; }
.path { display: flex; gap: 2rem; align-items: flex-start; }
.path > div { min-width: 0; }
.path h2 { font-size: 1.625rem; margin: .4rem 0 .7rem; }
.path p { color: var(--muted); }
.path .go { color: var(--ink); font-weight: 600; margin: 0; }
@media (max-width: 68rem) { .path { flex-direction: column; gap: 1.25rem; } }
@media (max-width: 60rem) { .hero { grid-template-columns: 1fr; margin-bottom: 0; } .paths { grid-template-columns: 1fr; margin-top: 4.5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .lanes li { animation: lane .5s cubic-bezier(.16, 1, .3, 1) backwards; }
  .lanes li:nth-child(2) { animation-delay: .07s; } .lanes li:nth-child(3) { animation-delay: .14s; }
  .lanes li:nth-child(4) { animation-delay: .21s; } .lanes li:nth-child(5) { animation-delay: .28s; }
  @keyframes lane { from { opacity: 0; transform: translateY(6px); } }
}
