/* Espace client: tokens from sites/a-navy, mobile first. */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
:root { --ink: #0B1020; --navy: #060B22; --navy-2: #121A3C; --accent: #3555E5; --bg: #FAFBFF; --mist: #EAEEFC; --line: #DEE1EC; --field: #767B8F; --muted: #585D6F; --ok: #1E7A46; --ok-bg: #E8F5EC; --error: #B42318; --error-bg: #FDECEA; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font: 1rem/1.6 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 12px 16px; white-space: nowrap; background: var(--navy); color: #fff; }
.bar a, .bar .logo { color: #fff; font-weight: 700; }
.bar a { display: inline-flex; align-items: center; min-height: 44px; }
main { flex: 1; width: 100%; max-width: 36rem; margin: 0 auto; padding: 24px 16px; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 16px; }
dl { margin: 0 0 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
dt { font-size: .875rem; color: var(--muted); }
dd { margin: 0 0 12px; font-weight: 500; }
dd:last-child { margin: 0; }
a { color: var(--accent); }
button { width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; font-weight: 700; color: #fff; background: var(--navy-2); border: 0; border-radius: 8px; cursor: pointer; }
button:hover { background: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.note { margin: 0 0 24px; padding: 16px; background: var(--mist); border-radius: 8px; border-left: 4px solid var(--accent); }
.note--ok { background: var(--ok-bg); border-color: var(--ok); }
.note--error { background: var(--error-bg); border-color: var(--error); }
[aria-invalid="true"] { border-color: var(--error); }
footer { padding: 16px; text-align: center; font-size: .875rem; color: var(--muted); }
.bar nav { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.bar form { margin: 0; }
.bar button { width: auto; min-height: 44px; padding: 8px 10px; font-size: inherit; background: transparent; border: 1px solid #fff; font-weight: 500; }
h2 { font-size: 1.125rem; margin: 0 0 12px; }
section { margin: 0 0 32px; }
form { margin: 0 0 16px; }
label { display: block; margin: 0 0 8px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; margin: 0 0 12px; padding: 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 8px; }
.list { margin: 0 0 16px; padding: 0; list-style: none; }
.list li { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; }
fieldset { margin: 0 0 12px; padding: 0; border: 0; }
legend { padding: 0; margin: 0 0 8px; font-weight: 500; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 8px; padding: 8px 12px; font-weight: 400; background: #fff; border: 1px solid var(--field); border-radius: 8px; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--navy-2); }
.hint { margin: 0 0 12px; font-size: .875rem; color: var(--muted); }
/* a link as visible as a button: the way back of a confirmation */
button.secondary, a.button { color: var(--navy-2); background: #fff; border: 2px solid var(--navy-2); }
button.secondary:hover, a.button:hover { background: var(--mist); }
a.button { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0 0 16px; padding: 12px 16px; font-weight: 700; text-align: center; text-decoration: none; border-radius: 8px; }
.note p { margin: 0 0 12px; }
.note > :last-child { margin-bottom: 0; }
a.button.primary { color: #fff; background: var(--navy-2); }
a.button.primary:hover { background: var(--navy); }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 8px; }
.sum dt { font-size: 1rem; color: var(--ink); }
.sum dd { margin: 0; text-align: right; white-space: nowrap; }
.sum .total { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-start; }
.sum .total dt, .sum .total dd { font-weight: 700; }
.sum small { display: block; font-size: .875rem; font-weight: 400; color: var(--muted); }
ol { margin: 0 0 16px; padding-left: 1.25rem; }
ol li { margin: 0 0 8px; }
/* touch targets: 44px high, apart from each other */
.links { display: flex; gap: 8px; margin-top: 8px; }
.links a { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 16px; font-weight: 500; text-decoration: none; background: #fff; border: 1px solid var(--field); border-radius: 8px; }
.links a:hover { background: var(--mist); }
/* a link alone as an action; a link inside a sentence stays inline */
p.action > a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 40rem) {
  .invoice { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .links { margin: 0; }
}
