:root {
  color-scheme: light;
  --ink: #111;
  --body: #222;
  --muted: #535353;
  --line: #d4d4d4;
  --soft: #f4f4f4;
  --gutter: clamp(1rem, 5vw, 4rem);
  font: 400 100%/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--body);
  background: #fff;
  accent-color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
::selection { color: #fff; background: #282828; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
main:focus { outline: none; }
.skip { position: absolute; z-index: 4; inset: .45rem auto auto .45rem; padding: .65rem 1rem; background: #fff; transform: translateY(-155%); }
.skip:focus { transform: none; }

.mast { border-bottom: 1px solid var(--line); }
.mast > div, main, .foot nav {
  width: min(calc(100% - 2 * var(--gutter)), 70rem);
  margin-inline: auto;
}
.mast > div { min-height: 4.25rem; padding-block: .55rem; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.1rem; }
.brand-icon { display: block; width: 44px; height: 32px; object-fit: contain; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding-block: .35rem; color: var(--ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.15; text-decoration: none; }
.mast nav, .foot nav, .page-links { display: flex; flex-wrap: wrap; align-items: center; }
.mast nav { margin-inline-start: auto; gap: .85rem; }
.mast nav a, .foot a, .page-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.mast nav a, .foot a { font-size: .9rem; }
.mast nav button { min-height: 2.4rem; padding: .45rem .85rem; font-size: .9rem; }
.foot { margin-top: auto; border-top: 1px solid var(--line); }
.foot nav { min-height: 4.5rem; column-gap: clamp(1rem, 3vw, 2rem); padding-block: .5rem; }
.foot a { color: var(--muted); }

main { flex: 1 0 auto; min-width: 0; padding-block: clamp(2.4rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; text-wrap: balance; }
h1 { margin: 0 0 .8rem; font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -.065em; }
h2 { margin: 0 0 1.05rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -.04em; }
h3 { margin: 1rem 0 .45rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.lead { max-width: 58ch; font-size: 1.1rem; color: var(--muted); }
.meta, small { color: var(--muted); font-size: .9rem; }
.guest main { max-width: 27rem; padding-top: clamp(3rem, 9vh, 6rem); }
.thin { max-width: 32rem; }
.thin h1 { font-size: clamp(2.35rem, 4.1vw, 3.35rem); }
.thin .panel { margin-block: 1.85rem 1rem; }
.thin form > button, .thin form > .btn { width: 100%; }
.thin form > button { margin-top: .2rem; }
.thin .page-links { justify-content: space-between; gap: 0 1.25rem; }
.thin .page-links a, .thin > a:not(.btn) { font-size: .93rem; }
.workspace main { max-width: 66rem; font-variant-numeric: tabular-nums; }
.workspace main > a + h1 { margin-top: 1rem; }
.workspace .page-links { gap: .1rem 1.5rem; margin-block: 1.4rem 0; padding-block: .35rem; border-block: 1px solid var(--line); }
.workspace .page-links a { font-size: .94rem; font-weight: 600; }
.workspace :is(.panel, main > section, #fuhrpark > section, #tarif > section) { margin-top: 2rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.workspace .page-links + .panel { margin-top: 0; border-top: 0; }
section[id], #fuhrpark, #tarif, h2[id] { scroll-margin-top: 1.4rem; }
.workspace section > p { max-width: 68ch; }
.item, article.record { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item h3 { margin-top: 0; }
.item .btn, .item > form { margin-top: .55rem; }
.initials { text-transform: uppercase; white-space: nowrap; }
.grid, .row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.grid > *, .row > * { min-width: 0; }
.grid > label, .row > label { flex: 1 1 11rem; margin: 0; }
.grid > div { flex: 1 1 10rem; }
.grid > div > strong { font-size: 1.65rem; font-weight: 650; letter-spacing: -.04em; }
.select-small { max-width: 22rem; }
.stack { display: grid; gap: .6rem; }

form { margin: 0; }
label { display: block; min-width: 0; margin: 0 0 1rem; font-size: .94rem; font-weight: 600; }
input, select, textarea, button { font: inherit; }
input:not([type="hidden"], [type="checkbox"], [type="radio"]), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  margin-top: .3rem;
  padding: .6rem .75rem;
  border: 1px solid #828282;
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}
input::placeholder, textarea::placeholder { color: #666; }
input[readonly] { background: var(--soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #111; outline-width: 2px; outline-offset: 2px; }
fieldset { min-width: 0; margin: 1.25rem 0; padding: .85rem 1rem 0; border: 1px solid var(--line); }
legend { padding-inline: .35rem; font-weight: 650; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  max-width: 100%;
  padding: .65rem 1.1rem;
  border: 1px solid #111;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button.secondary, .btn.secondary { border-color: #888; background: #fff; color: #111; }
button[disabled] { border-color: #ccc; background: #e3e3e3; color: #595959; cursor: not-allowed; }
details { margin-block: .6rem; }
summary { min-height: 2.75rem; padding-block: .6rem; cursor: pointer; color: #161616; font-weight: 600; }
details[open] > summary { margin-bottom: .6rem; }
:where(.panel, #tarif) form + form, .panel form + p, #tarif p + form { margin-top: 1rem; }
.notice, .warn, .error { margin: 1rem 0; padding: .8rem 1rem; background: var(--soft); border-inline-start: 2px solid #666; color: #252525; }
.warn, .error { border-inline-start: 4px solid #111; font-weight: 600; }
.linkbox, [data-total]:not(:empty) { margin-block: 1rem; padding: .75rem 1rem; background: var(--soft); overflow-wrap: anywhere; }
[data-total]:not(:empty) { font-weight: 650; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
td, th { padding: .65rem .45rem; text-align: left; border-bottom: 1px solid var(--line); }
.scroll { overflow-x: auto; }
.legal main { max-width: 44rem; }
.legal-sheet h1 { padding-bottom: 1.35rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.legal-sheet h2 { margin: 2.15rem 0 .7rem; }
.legal-sheet dl { margin-block: 1.2rem; }
.legal-sheet dt { margin-top: .85rem; color: var(--muted); font-size: .86rem; }
.legal-sheet dd { margin: .1rem 0 0; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
  button:enabled:hover, .btn:hover { background: #333; color: #fff; }
  button.secondary:enabled:hover, .btn.secondary:hover { background: #efefef; color: #111; }
  summary:hover { text-decoration: underline; text-underline-offset: .2em; }
}
button:enabled:active, .btn:active { background: #000; color: #fff; }
button.secondary:enabled:active, .btn.secondary:active { background: #ddd; color: #111; }
@media (prefers-reduced-motion: no-preference) {
  button:enabled, .btn { transition: background-color 100ms ease-out; }
}
@media (max-width: 36rem) {
  .brand { gap: 7px; font-size: 1.1rem; }
  .brand-icon { width: 36px; height: 27px; }
  .mast > div { min-height: 3.65rem; }
  .mast nav { column-gap: .65rem; }
  .workspace .mast nav { margin-inline-start: auto; }
  .grid > label, .row > label { flex-basis: 100%; }
  .workspace .page-links { gap: 0 1rem; }
  .foot nav { min-height: 3.75rem; }
}
@media print {
  body { display: block; color: #000; }
  .mast, .foot, .skip, .workspace .page-links, button { display: none; }
  main, .guest main, .workspace main, .legal main { width: 100%; max-width: none; padding: 0; }
  .linkbox { padding: 0; background: #fff; }
}
