:root {
  color-scheme: light;
  --deep: #17394b;
  --ink: #192f3c;
  --muted: #445b65;
  --line: #cfdcd9;
  --accent: #076054;
  --pale: #edf4f1;
  --paper: #fffefa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f2efe9; font: 1rem/1.6 system-ui, sans-serif; }
a { color: #0d5664; text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, :is(summary, select, input, textarea):focus-visible { outline: 3px solid #a36613; outline-offset: 3px; }
.wrap { width: min(68rem, calc(100% - 2rem)); margin-inline: auto; }
header { background: var(--deep); color: #fff; padding: 1rem 0 2rem; }
header a { color: #dcefeb; }
header nav, .actions, .tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
header nav { margin-bottom: 1rem; }
h1, h2 { font-family: Georgia, serif; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.45rem); margin: .65rem 0 .5rem; }
h2 { font-size: clamp(1.35rem, 3.4vw, 2rem); margin-top: .25rem; }
h3 { margin-top: .4rem; }
p { margin: .4rem 0 .8rem; }
p.measure { max-width: 68ch; }
main { padding-block: 1.25rem 3rem; }
.panel { margin: 1rem 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); scroll-margin-top: .7rem; }
.tabs a { background: #fff; border: 1px solid var(--line); padding: .4rem .7rem; border-radius: .4rem; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .65rem; }
details.card { border: 1px solid var(--line); padding: .65rem .85rem; border-radius: .45rem; }
details.card[open] { border-color: #88aaa2; }
summary { cursor: pointer; font-weight: 700; }
details .card-body { padding-top: .7rem; }
.hint { color: var(--muted); }
.sheet { padding: .7rem .9rem; background: var(--pale); border-radius: .45rem; }
.sheet li + li { margin-top: .45rem; }
.actions { margin-top: .75rem; }
.button, button { min-height: 2.7rem; padding: .48rem .76rem; border-radius: .42rem; border: 1px solid #17394b; color: #fff; background: #17394b; font: inherit; font-weight: 670; cursor: pointer; }
.button { display: inline-flex; align-items: center; text-decoration: none; }
.button.secondary, button.secondary { background: #fff; color: #17394b; }
button:disabled { cursor: default; opacity: .7; }
label, legend { display: block; font-weight: 700; }
input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
input:not([type=radio]):not([type=checkbox]), select, textarea { background: #fff; border: 1px solid #9eb7b0; border-radius: .4rem; padding: .45rem .55rem; }
textarea { width: 100%; min-height: 6rem; resize: vertical; }
input:not([type=radio]):not([type=checkbox]) { width: min(100%, 34rem); }
.field { margin: .8rem 0; }
fieldset { border: 1px solid var(--line); border-radius: .45rem; margin: .8rem 0; }
fieldset label { display: inline-flex; align-items: center; margin-right: .8rem; gap: .35rem; }
output { display: block; color: var(--muted); }
.table { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; }
table caption { text-align: left; font-weight: 680; }
th, td { padding: .52rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { background: var(--pale); }
ol { padding-inline-start: 1.4rem; }
ol li + li { margin-top: .4rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .5rem; margin: .8rem 0; }
.stats > div { background: var(--pale); padding: .65rem .8rem; border-radius: .45rem; }
.stats dt { font-weight: 650; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 710; }
.presentation { background: var(--deep); color: #fff; }
.presentation header { padding: .7rem 0 .6rem; }
.presentation main { min-height: 72vh; display: grid; align-content: center; max-width: 60rem; }
.presentation h1 { font-size: clamp(1.85rem, 6vw, 4.4rem); }
.presentation .slide-text { font-size: clamp(1.05rem, 2.6vw, 1.76rem); max-width: 65ch; }
.presentation .slide-text li + li { margin-top: .8rem; }
.presentation footer { padding-bottom: 1rem; }
.presentation button { background: #fff; color: var(--deep); }
@media print {
  body { color: #000; background: #fff; }
  header { background: #fff; color: #000; padding: 0; }
  header a, .actions, .tabs { display: none; }
  .panel { break-inside: avoid; }
  .wrap { width: auto; }
}
#fiches-applications { align-items: start; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin-block: 1rem; }
.route-grid > div { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--pale); }
.route-grid h3 { margin: 0 0 .4rem; font-size: 1rem; }
.route-grid p { margin: 0 0 .6rem; }
#preparer > details { margin-top: 1rem; }
[aria-current="page"] { font-weight: 750; text-decoration-thickness: .13em; }
#deroule-pilotage { margin-top: 1.15rem; }
#fiche-creneau { padding: clamp(.85rem, 2vw, 1.2rem); }
#fiche-creneau h3 { margin: 0 0 .4rem; }
.pilotage-etapes { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
@media (max-width:44rem) { .pilotage-etapes { grid-template-columns: 1fr; } }
.pilotage-etapes li { margin: 0; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .4rem; background: #fff; }
.pilotage-etapes li p { margin: .25rem 0 0; }
.pilotage-etapes li .actions { margin-top: .4rem; gap: .25rem .85rem; }
.pilotage-avancement { margin-top: 2rem; scroll-margin-top: 1rem; }
