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

:root {
  color-scheme: light;
  --ink: #261638;
  --plum: #3e1f57;
  --cream: #faf4e8;
  --mauve: #e7d7fc;
  --rule: #46266442;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #7746a3; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
[id] { scroll-margin-block-start: 1.25rem; }
.frame { width: min(100% - clamp(2rem, 8vw, 10rem), 78rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; inset: .6rem auto auto .6rem; transform: translateY(-180%); padding: .6rem .85rem; background: var(--plum); color: white; }
.skip:focus { transform: none; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.brand { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .38rem; font-size: 1.35rem; line-height: .92; font-weight: 850; text-decoration: none; }
.brand-icon { grid-row: 1 / span 2; padding: .2em .33em; border: 1px solid; border-radius: 50%; color: var(--plum); font-size: 1.6em; font-weight: 400; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .45rem clamp(.8rem, 3vw, 2.1rem); }
.masthead nav a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); align-items: center; gap: clamp(1.2rem, 5vw, 5rem); padding-block: clamp(1.55rem,3.4vw,3.2rem) clamp(1.25rem,2.4vw,2.4rem); }
.hero-text {
  background-image: repeating-linear-gradient(transparent 0 1.6rem, #52216a15 1.6rem calc(1.6rem + 1px));
  border-inline-start: 3px solid #a47ac7;
  padding: .38rem 0 .75rem clamp(.8rem,3vw,2.4rem);
}
.intro-label, .tag { font: 700 .76rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { font: 600 clamp(1.9rem,4.15vw,3.75rem)/1.05 "Lexend", "Trebuchet MS", sans-serif; }
h1 { margin: .48rem 0 .7rem; font-size: clamp(2.45rem,5.8vw,6rem); }
h1 em { color: #694995; font-style: normal; }
.hero-text > p:not(.intro-label) { max-width: 57ch; }
.button { display: inline-flex; align-items: center; gap: .75rem; color: white; background: var(--plum); text-decoration: none; padding: .6rem .85rem; margin-top: .82rem; border-radius: .25rem; font-weight: 750; }
.button:hover { background: #68448d; }
.hero-figure { width: min(100% - 1rem, 19rem); justify-self: center; position: relative; isolation: isolate; padding: .6rem .6rem 0; transform: rotate(2deg); background: white; box-shadow: 0 .5rem 1.35rem #32213d26; border: 1px solid #503c6059; }
.hero-figure::before { content: ""; position: absolute; z-index: 1; top: -.6rem; left: calc(50% - 2.4rem); width: 4.8rem; height: 1.55rem; background: #f1bf80d9; transform: rotate(-8deg); }
.hero-figure img { aspect-ratio: 4/3; object-fit: cover; }
.hero-figure figcaption { padding: .6rem .25rem; font: italic 1rem/1.25 var(--serif); }
.catalogue { padding-block: 0 clamp(2rem,5vw,4.5rem); }
.section-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 2rem; margin-bottom: 1.4rem; }
.section-intro > p { max-width: 44ch; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.course { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(1.15rem, 3vw, 2.2rem); border: 1px solid var(--rule); border-radius: .45rem; }
.course-design { background: #efdffa; }
.course-web { background: #f7daad; }
.course-redaction { background: #ddedde; }
.course h3 { margin: .62rem 0 .6rem; font: 600 clamp(1.25rem,2.2vw,1.95rem)/1.08 "Lexend", "Trebuchet MS", sans-serif; }
.course a { margin-top: auto; padding-block-start: 1.2rem; font-weight: 730; text-underline-offset: .24em; }
.sessions { padding-block: clamp(2.6rem, 6vw, 5rem); background: var(--mauve); }
.session-list { border-top: 1px solid var(--rule); }
.session-list details { border-bottom: 1px solid var(--rule); }
.session-list summary { display: grid; grid-template-columns: minmax(5rem, .35fr) minmax(0, 1fr) auto auto; align-items: center; gap: .55rem clamp(.6rem, 2.5vw, 2rem); padding: .9rem .35rem; list-style: none; cursor: pointer; }
.session-list summary::-webkit-details-marker { display: none; }
.session-list summary:hover, .session-list summary:target { background: #f0e6fd; }
.date { font-size: .88rem; font-weight: 750; }
.format { color: #51376b; font-size: .85rem; }
.expand::before { content: "+"; display: block; text-align: center; width: 1.1em; font-size: 1.3rem; }
details[open] .expand::before { content: "−"; }
.session-list details > p { max-width: 62ch; padding: 0 .35rem 1.1rem; }
.method { padding-block: clamp(3rem, 6vw, 6rem); }
.method p { max-width: 47ch; margin-top: .85rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--rule); }
.footer a { text-underline-offset: .27em; }
@media (max-width: 46rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { width: min(100% - 1.25rem, 19rem); justify-self: start; margin-left: .35rem; }
  .hero-figure img { aspect-ratio: 16/9; }
  .course-grid { grid-template-columns: 1fr; }
}
@media (max-width: 35rem) {
  .session-list summary { grid-template-columns: auto 1fr auto; }
  .session-list .format { grid-column: 2; grid-row: 2; }
  .session-list .expand { grid-column: 3; grid-row: 1; }
}
