:root {
  color-scheme: light;
  --ink: #292c50;
  --muted: #4b5572;
  --paper: #f4f8ff;
  --surface: #ffffff;
  --line: #bac9e0;
  --red: #c90032;
  --red-dark: #a8002b;
  --turquoise: #007568;
  --turquoise-bright: #47d3bd;
  --mint: #e0f7f3;
  --sky: #d6e4fa;
  --pink: #ffe5ec;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .75rem; background: var(--surface); z-index: 1; }
.skip:not(:focus) { clip-path: inset(50%); }
.bar, main, footer { max-width: 74rem; margin: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
.bar, footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .8rem; }
.brand { font-weight: 800; text-decoration: none; }
.brand span { color: var(--red); padding-right: .3rem; }
nav { display: flex; gap: 1.25rem; }
nav a, footer a, .brand, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
nav a { font-weight: 650; text-underline-offset: .2em; }
.hero { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 7vw, 5rem); }
.eyebrow { margin: 0 0 .5rem; color: var(--turquoise); font-size: .82rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1, h2 { font-weight: 850; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 7vw, 5rem); margin-bottom: 1rem; letter-spacing: -.045em; }
h1 span { text-decoration: underline; text-decoration-color: var(--turquoise-bright); text-decoration-thickness: .08em; text-underline-offset: .12em; }
h2 { font-size: clamp(1.85rem, 5vw, 3rem); margin-bottom: .75rem; }
h3 { line-height: 1.25; margin-bottom: .5rem; }
.intro, .section > p:not(.eyebrow) { color: var(--muted); }
.intro { font-size: 1.1rem; }
.facts { border-left: 3px solid var(--turquoise); padding-left: 1rem; margin-block: 1.25rem; }
.facts p { margin-bottom: .25rem; }
.date { font-weight: 800; }
.actions, .choices { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 48px; padding: .68rem 1rem; border: 1px solid var(--ink); border-radius: 1.5rem; font: inherit; font-weight: 700; text-decoration: none; text-align: left; cursor: pointer; }
.primary { background: var(--red); border-color: var(--red); color: var(--surface); }
.primary:hover { background: var(--red-dark); }
.secondary { color: var(--ink); background: var(--surface); }
.secondary:hover, .card:hover { background: var(--mint); }
.art { display: grid; place-items: center; background: linear-gradient(155deg, var(--surface), var(--sky)); border-radius: 7rem 1rem 1rem 1rem; min-height: 9rem; }
.art svg { width: min(70%, 22rem); height: auto; max-height: 13rem; }
.art-ring { stroke: var(--line); }
.art-main { stroke: var(--ink); }
.art-red { stroke: var(--red); }
.art-turquoise { stroke: var(--turquoise); }
.art-origin { fill: var(--ink); }
.section { padding-block: 2rem; border-top: 1px solid var(--line); }
.grid, .exhibitors { list-style: none; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; margin-block: 1.25rem; }
.card { display: flex; flex-direction: column; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); text-decoration: none; }
.card-title { font-size: 1.05rem; font-weight: 750; }
#fiches, #animations { display: grid; gap: .85rem; }
.pole, .event, .recommendation { padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.pole:target { border-color: var(--ink); box-shadow: inset 4px 0 var(--ink); }
.exhibitors { margin: 0; }
.exhibitors li { padding-block: .7rem; border-top: 1px solid var(--line); }
.exhibitors li:last-child { padding-bottom: 0; }
.exhibitors p, .event p { margin-bottom: .3rem; }
.event-type { color: var(--muted); }
.badge { display: inline-block; width: fit-content; margin: .2rem 0 .1rem .45rem; padding: .15rem .55rem; border-radius: .45rem; background: var(--pink); color: var(--red-dark); font-size: .85rem; font-weight: 700; }
.event .badge { margin-left: 0; }
#note-programme { margin-top: 1rem; }
.recommendation { margin-top: 1rem; background: var(--mint); }
.text-link { font-weight: 750; text-underline-offset: .2em; }
.notice { padding: .85rem; background: var(--pink); }
footer { border-top: 1px solid var(--line); }
footer p { margin: 0; font-weight: 750; }
footer small { color: var(--muted); }
[id] { scroll-margin-top: 1rem; }

@media (max-width: 32rem) {
  .actions .button, .choices .button { width: 100%; }
  .art { display: none; }
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.45fr 1fr; align-items: stretch; }
  .art svg { max-height: none; }
  #fiches, #animations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

nav { flex-wrap: wrap; column-gap: 1rem; row-gap: 0; }
#progression-carnet { display: block; width: min(100%, 18rem); accent-color: var(--turquoise); margin-bottom: 1rem; }
#compte-carnet { font-size: .9rem; color: var(--muted); }
#questions-carnet { display: grid; gap: 1rem; }
.carnet-question { padding: clamp(1rem, 4vw, 1.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: .85rem; }
.carnet-question h3 { color: var(--turquoise); }
.carnet-question label { display: block; font-weight: 650; margin-bottom: .65rem; }
.carnet-question textarea { display: block; width: 100%; min-height: 7rem; resize: vertical; padding: .75rem; border: 1px solid var(--muted); border-radius: .5rem; font: inherit; color: var(--ink); background: var(--surface); }
.carnet-question textarea:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.carnet-actions { margin-block: 1rem; }
.carnet-print { display: none; }

@media print {
  body.printing-carnet { background: var(--surface); }
  body.printing-carnet > :not(.carnet-print) { display: none; }
  body.printing-carnet > .carnet-print { display: block; }
  .carnet-print h1 { font-size: 24pt; }
  .carnet-print h2 { font: 750 13pt system-ui; break-after: avoid; }
  .carnet-print p { white-space: pre-wrap; overflow-wrap: anywhere; }
}

#apres-visite .button { margin-top: auto; align-self: flex-start; }
#apres-visite .card p { color: var(--muted); }
.button[hidden] { display: none; }
