@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("demo-communs-titre.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f3dc;
  --ink: #1e243a;
  --blue: #143da0;
  --yellow: #f5cc42;
  --pink: #ffd4cb;
  --line: #1e243a54;
  --type: "Atkinson Hyperlegible Next", "Trebuchet MS", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 system-ui,sans-serif; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { width: 100%; height: auto; display: block; }
[id] { scroll-margin-block-start: 1rem; }
.frame { width: min(100% - clamp(1.7rem, 7vw, 8rem), 82rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .6rem auto auto .6rem; transform: translateY(-180%); padding: .6rem .9rem; color: white; background: var(--blue); }
.skip:focus { transform: none; }
.masthead { border-bottom: 2px solid var(--ink); }
.nav-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.13rem; }
.brand { color: var(--blue); text-decoration: none; text-transform: uppercase; font: 800 1.17rem/.93 var(--type); }
.brand strong { font-size: 1.34em; }
nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(.8rem, 3.5vw, 2.6rem); }
nav a { font-weight: 750; text-underline-offset: .2em; }
.hero {
  margin-top: clamp(1rem,3vw,2.25rem);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-bottom: 0;
}
.poster { padding: clamp(1rem,3vw,2.45rem); }
.poster-label { font-weight: 760; font-size: .9rem; }
h1, h2, h3 {
  font-family: var(--type);
  font-weight: 600;
  line-height: 1.06;
}
h1 { margin-block: .35rem .6rem; color: var(--blue); font-size: clamp(2.35rem,5vw,5.2rem); }
.poster > p:not(.poster-label) { max-width: 54ch; }
.hero-photo { grid-column: 1/-1; border: 2px solid var(--ink); }
.hero-photo img { height: clamp(9rem, 18vw, 16rem); object-fit: cover; object-position: 50% 55%; }
.hero-photo figcaption { padding: .6rem .75rem; background: var(--blue); color: white; font-size: .84rem; }
h2 { font-size: clamp(2.45rem, 5.35vw, 5.35rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.8rem); }
.activities { padding-block: clamp(1.8rem, 4vw, 3.5rem) clamp(2.9rem, 6vw, 5rem); }
.activities ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 1.3rem; padding: 0; list-style: none; border: 2px solid var(--ink); }
.activities li { display: flex; flex-direction: column; align-items: start; padding: clamp(1rem, 2.4vw, 2.2rem); background: var(--pink); }
.activities li + li { border-left: 2px solid var(--ink); }
.activities li:nth-child(2) { background: #d7e3ff; }
.activities li:nth-child(3) { background: #fbe799; }
.activity-mark { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: .7rem; border: 2px solid var(--ink); border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.activities li p { margin-top: .65rem; }
.activities li a { margin-top: auto; padding-top: .85rem; font-weight: 750; text-underline-offset: .2em; }
.agenda { padding: clamp(1rem,3vw,2.4rem); background: var(--blue); color: white; border: 2px solid var(--ink); }
.agenda h2 { color: var(--yellow); font-size: clamp(1.6rem,3.5vw,3.4rem); }
.agenda-layout > div:first-child p { margin-top: .35rem; }
.events { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: .7rem; margin-top: 1.25rem; }
.events details { min-width: 0; border: 1px solid #b0c3fc; background: #1a469e; }
.events details:target { background: #2350ae; }
.events summary { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .45rem; padding: .75rem; cursor: pointer; list-style: none; }
.events summary::-webkit-details-marker { display: none; }
.events summary::after { content: "+"; grid-column: 2; grid-row: 1; font-size: 1.4rem; }
.events details[open] summary::after { content: "−"; }
.events summary > span:nth-child(2) { display: grid; grid-column: 1/-1; }
.events summary strong { font-size: clamp(1.12rem,2.2vw,1.55rem); }
.events summary strong + span { font-size: .88rem; }
.day { justify-self: start; padding: .23rem .55rem; color: var(--ink); background: var(--yellow); font-weight: 780; }
.events details p { max-width: 48ch; padding: .1rem .75rem .9rem; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem clamp(1.2rem,7vw,6rem); align-items: start; padding-block: clamp(3rem,6vw,5.5rem); }
.projects article { border-top: 2px solid var(--ink); padding-top: .85rem; }
.projects p { margin-block: .75rem; max-width: 47ch; }
.projects a { font-weight: 750; text-underline-offset: .2em; }
footer { border-top: 2px solid var(--ink); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; padding-block: 1.25rem 1.8rem; }
.footer a { text-underline-offset: .22em; }
@media (max-width: 52rem) {
  .events, .projects { grid-template-columns: 1fr; }
  .hero-photo img { height: clamp(9rem, 37vw, 13rem); }
  .events summary { grid-template-columns: auto 1fr auto; align-items: center; }
  .events summary::after { grid-column: 3; }
  .events summary > span:nth-child(2) { grid-column: 2; }
}
@media (max-width: 38rem) {
  .activities ul { grid-template-columns: 1fr; }
  .activities li + li { border-left: 0; border-top: 2px solid var(--ink); }
}
