:root {
  --linen: #f3f5f6;
  --linen-2: #e6eaec;
  --ink: #1f1a20;
  --ink-2: #5b5660;
  --silver: #9aa4ab;
  --line: #cdd4d8;
  --scarf: #7a1226; /* le rouge du balcon. Plus vif, ça fait pompier */
  --link: #7a1226;
  --velvet: #16070d;
  --velvet-text: #eef1f3;
  --velvet-text-2: #b9b1b7;
  --candle: #f0b35a;
  --display: 'Oranienbaum', 'Times New Roman', serif;
  --text: 'Literata', Georgia, serif;
  --pen: 'Bad Script', cursive;
  --gutter: clamp(1.1rem, 4vw, 4rem);
  --measure: 38rem;
  color-scheme: light;
}
/* les mêmes couleurs deux fois, je sais. Si on en touche une, toucher l'autre */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --linen: #191216; --linen-2: #241a1f; --ink: #ebe7e6; --ink-2: #b0a6aa;
    --line: #42333a; --silver: #8b959c; --link: #f0a3a0; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --linen: #191216; --linen-2: #241a1f; --ink: #ebe7e6; --ink-2: #b0a6aa;
  --line: #42333a; --silver: #8b959c; --link: #f0a3a0; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font: 400 1.125rem/1.68 var(--text);
  font-optical-sizing: auto;
  transition: background-color .5s, color .5s;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--linen); padding: .5rem 1rem; z-index: 9; }
/* le jaune des trous à remplir, à virer quand il n'y en aura plus */
.todo { background: #ffe08a; color: #3a2a00; padding: 0 .3em; }

.top { display: flex; align-items: center; gap: 1rem 2.2rem; padding: 1.1rem var(--gutter); flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.15rem; line-height: 1.1; color: inherit; text-decoration: none; margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.top nav a { color: inherit; text-decoration: none; font-size: 1rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--silver); }
.top nav a[aria-current] { border-color: var(--link); }
.lang { color: inherit; font-size: 1rem; text-decoration: none; border-bottom: 1px solid var(--silver); }
.lang:hover { border-color: currentColor; }
.lamp {
  font: inherit; font-size: .95rem; color: inherit; background: none; cursor: pointer;
  border: 1px solid var(--silver); border-radius: 99px; padding: .3rem .95rem; white-space: nowrap;
}
.lamp:hover { border-color: currentColor; }

.home .top { background: var(--velvet); color: var(--velvet-text); }
.home .top nav a[aria-current] { border-color: var(--candle); }
.stage {
  background: var(--velvet); color: var(--velvet-text);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(1rem, 3vw, 3rem); align-items: center;
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 4vw, 4rem) var(--gutter);
  overflow: hidden;
}
.stage h1 { font-size: clamp(2.7rem, 5.4vw, 5.2rem); line-height: 1; margin-bottom: 1.6rem; }
.stage .lead { font-size: 1.2rem; max-width: 30rem; }
.stage .small { color: var(--velvet-text-2); max-width: 30rem; font-size: 1rem; }
.stage .view { margin-right: -5vw; min-width: 0; }
.console { padding: 0 6vw 0 1rem; max-width: 44rem; margin: 0 auto; }
.console fieldset { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.console legend { float: left; margin-right: 1rem; padding: .45rem 0; color: var(--velvet-text-2); font-size: 1rem; }
.console label { cursor: pointer; }
.console input { position: absolute; opacity: 0; }
.console span { display: block; padding: .4rem 1.1rem; border: 1px solid #5d4a52; border-radius: 99px; font-variant-numeric: tabular-nums; }
.console label:hover span { border-color: var(--silver); }
.console input:checked + span { background: var(--candle); border-color: var(--candle); color: #2a1503; }
.console input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.console output { display: block; min-height: 5.2em; /* sinon la page saute quand la phrase change */ color: var(--velvet-text); font-size: 1.05rem; line-height: 1.55; }

.hall { display: block; width: 100%; height: auto; overflow: visible; }
.hall .floor { fill: #240d15; }
.hall .scarf { fill: none; stroke: #6d1023; stroke-width: 76; } /* l'écharpe */
.hall .scarf-shadow { fill: none; stroke: #000; stroke-opacity: .45; stroke-width: 96; }
.hall .scarf-fold { fill: none; stroke: #a02a3f; stroke-width: 5; }
.hall .scarf-fold.thin { stroke-width: 1.5; stroke-opacity: .6; }
.hall .boards { fill: #3a2019; }
.hall .curtain { fill: #8a1730; }
.hall .cloth { fill: #f4f6f7; transition: fill .9s; }
.hall .bucket { fill: #8d99a1; stroke: #5f6a72; stroke-width: 1; }
.hall .up .cloth { opacity: .85; }
.hall .column { fill: #0c0407; stroke: #9a7a56; stroke-width: 2.5; }
.hall .shade { fill: #0c0407; opacity: .6; }
.hall .beam { mix-blend-mode: screen; transition: opacity .9s; }
.hall .spot { mix-blend-mode: screen; transition: opacity .9s; }
.hall .cabin rect { fill: #0c0407; stroke: #9a7a56; stroke-width: 2; }
.hall .cabin circle { fill: #fff3d2; }
.hall .labels text { font: italic 400 28px var(--text); fill: #d8cdd1; }
.hall .l-candles, .hall .l-stage, .hall .l-night { transition: opacity 1.1s; }
.hall[data-hour='19'] .l-candles { opacity: 1; }
.hall[data-hour='19'] .l-stage { opacity: .12; }
.hall[data-hour='19'] .l-night { opacity: 0; }
.hall[data-hour='19'] .cloth { fill: #ffeccb; }
.hall[data-hour='19'] .beam { opacity: .25; }
.hall[data-hour='19'] .spot { opacity: .35; }
.hall[data-hour='21'] .l-candles { opacity: .22; }
.hall[data-hour='21'] .l-stage { opacity: 1; }
.hall[data-hour='21'] .l-night { opacity: 0; }
.hall[data-hour='21'] .cloth { fill: #eadfdd; }
.hall[data-hour='23'] .l-candles { opacity: .34; } /* pas zéro, il reste toujours quelqu'un */
.hall[data-hour='23'] .l-stage { opacity: .05; }
.hall[data-hour='23'] .l-night { opacity: 1; }
.hall[data-hour='23'] .cloth { fill: #8f8bb5; }
.hall[data-hour='23'] .beam { opacity: .6; }

.head { padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem); max-width: 60rem; }
.head p { font-size: 1.25rem; max-width: var(--measure); margin: 1.4rem 0 0; }
.prose { padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem); max-width: calc(var(--measure) + 2 * var(--gutter)); }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; }
.wide { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); }
.wide > h2 { margin-bottom: 1.6rem; }
.narrow { max-width: var(--measure); }
.flush { padding-top: 0; }
.after { margin-top: 1.5rem; }
.tall { min-height: 55vh; }
figure { margin: 0 0 1.8rem; }
figure img { display: block; width: 100%; height: auto; background: var(--linen-2); }
figcaption { font-family: var(--pen); font-size: 1.2rem; line-height: 1.4; color: var(--link); margin-top: .6rem; }
.wide > figure { max-width: 62rem; margin-bottom: 2.6rem; }
.prose figure, .entry figure, .tips figure { margin: 1.8rem 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-bottom: 2rem; }
.trio figure { margin: 0; }
.pen { font-family: var(--pen); font-size: 1.3rem; line-height: 1.5; color: var(--link); }

.welcome { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 22rem); gap: 2rem clamp(2rem, 7vw, 7rem); padding: clamp(3rem, 7vw, 6rem) var(--gutter); }
.welcome h2 { margin-bottom: 1.2rem; }
.welcome figure { margin: 0; }
.hours { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--velvet); color: var(--velvet-text); }
.hours a { color: inherit; text-decoration: none; padding: clamp(1.8rem, 4vw, 3.5rem) var(--gutter); display: block; }
.hours a:nth-child(1) { background: radial-gradient(circle at 30% 20%, #8a4a17, #3b1a0c 70%); }
.hours a:nth-child(2) { background: radial-gradient(circle at 50% 0, #a3263c, #4c0c1b 75%); }
.hours a:nth-child(3) { background: radial-gradient(circle at 70% 20%, #363a78, #17132e 75%); }
.hours b { font: 400 clamp(3rem, 6vw, 5rem)/1 var(--display); display: block; margin-bottom: .8rem; font-variant-numeric: lining-nums; }
.hours h3 { margin-bottom: .6rem; }
.hours p { margin: 0; line-height: 1.55; }
.hours a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.notes { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 62rem; }
.notes a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; gap: 0 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.notes li:last-child a { border-bottom: 1px solid var(--line); }
.notes h3 { grid-column: 1; font-size: 1.65rem; }
.notes .when { grid-column: 1; margin: .35rem 0 0; }
.notes p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.notes a:hover h3 { color: var(--link); }
.when { color: var(--ink-2); font-size: 1rem; font-style: italic; }

.entry { padding: clamp(2rem, 6vw, 5rem) var(--gutter); max-width: calc(var(--measure) + 2 * var(--gutter)); }
.entry > header { margin-bottom: 2.4rem; }
.entry > header .when { margin: 1rem 0 0; }
.entry > p:first-of-type { font-size: 1.28rem; line-height: 1.55; }
/* les notes au crayon débordent dans la marge, d'où le négatif */
.entry > aside { float: right; clear: right; width: 15rem; margin: .2rem -19rem 1rem 0; font-family: var(--pen); font-size: 1.25rem; line-height: 1.5; color: var(--link); transform: rotate(-1.5deg); }
.entry > aside p { margin: 0; }
.next { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.next p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.next a { font: 400 1.7rem/1.2 var(--display); }

.follow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--velvet); color: var(--velvet-text); }
.follow .view { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding: 1rem 0 1rem var(--gutter); overflow: hidden; }
.follow .steps { padding: 18vh var(--gutter) 30vh clamp(1.5rem, 4vw, 4rem); }
.follow .step { min-height: 62vh; padding-bottom: 7rem; /* laisser de l'air, sinon le faisceau court partout */ max-width: 31rem; transition: opacity .5s; }
.js .follow .step:not(.lit) { opacity: .55; }
.follow .step h2 { margin-bottom: 1rem; }
.follow .step .time { font: 400 clamp(3.2rem, 6vw, 5rem)/1 var(--display); display: block; color: var(--candle); margin-bottom: .5rem; }
.follow .verdict { color: var(--candle); }

.score-wrap { overflow-x: auto; }
.score { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: 1.02rem; line-height: 1.5; }
.score th, .score td { text-align: left; vertical-align: top; padding: 1rem 1.6rem 1rem 0; border-bottom: 1px solid var(--line); }
.score thead th { font: 400 1.7rem/1.1 var(--display); border-bottom: 2px solid var(--scarf); }
.score tbody th { font-weight: 600; width: 8rem; }

.tips { display: grid; grid-template-columns: 13rem minmax(0, var(--measure)); gap: 0 clamp(2rem, 5vw, 5rem); padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem); }
.toc { position: sticky; top: 1.5rem; align-self: start; display: grid; gap: .35rem; font-size: 1rem; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.tips section + section { margin-top: 3.2rem; }
.tips section > h2 { margin-bottom: 1rem; }
.tips li { margin-bottom: .55rem; }
.tips li::marker { color: var(--silver); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: .4rem; top: 1.55rem; width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid var(--silver); transition: background-color .2s; }
details[open] summary::after { background: var(--candle); border-color: var(--candle); }
details p { padding-right: 2rem; }

.envelope { background: #fbfcfc; color: #1f1a20; max-width: 38rem; aspect-ratio: 1.6; margin: 0 0 2.5rem; padding: clamp(1.2rem, 4vw, 2.2rem); position: relative; border: 1px solid #cdd4d8; display: grid; align-items: end; justify-items: end; }
.envelope address { font: 400 clamp(1.15rem, 3vw, 1.5rem)/1.5 var(--pen); min-width: 52%; }
.envelope svg { position: absolute; right: 1.4rem; top: 1.4rem; width: clamp(3.5rem, 12vw, 5.5rem); height: auto; }

.bottom { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; padding: 2rem var(--gutter) 2.5rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.bottom p { max-width: 34rem; margin: 0; }
.bottom nav { display: flex; flex-direction: column; gap: .2rem; }
.bottom a { color: inherit; }

@media (max-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .stage .lead, .stage .small { padding-right: var(--gutter); max-width: 36rem; }
  .stage h1 { padding-right: var(--gutter); }
  .stage .view { margin: 0; padding-right: var(--gutter); }
  .console { padding: 1rem 0 0; margin: 0; }
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .hours { grid-template-columns: minmax(0, 1fr); }
  .welcome figure { max-width: 24rem; }
  .entry > aside { float: none; width: auto; margin: .4rem 0 1.6rem 1.4rem; transform: none; }
  .follow { grid-template-columns: minmax(0, 1fr); }
  .follow .view { height: auto; padding: .8rem var(--gutter); background: var(--velvet); z-index: 2; box-shadow: 0 1rem 1.4rem var(--velvet); }
  .follow .steps { padding: 2.5rem var(--gutter) 25vh; }
  .follow .step { min-height: 46vh; max-width: var(--measure); padding-bottom: 3rem; scroll-margin-top: 78vw; } /* à peu près la hauteur du plan sur un téléphone */
  .tips { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-bottom: 2.4rem; }
  .toc a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  .hall .labels text { font-size: 40px; }
}
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .top { gap: .8rem; }
  .lang, .lamp { font-size: .85rem; }
  .lamp { padding: .25rem .7rem; }
  .top nav { order: 3; width: 100%; gap: .1rem 1.2rem; }
  .notes a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .notes p:last-child { grid-column: 1; grid-row: auto; margin-top: .6rem; }
  .console legend { float: none; width: 100%; }
  .trio { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
/* au cas où quelqu'un imprime */
@media print {
  .top nav, .lang, .lamp, .bottom nav, .view { display: none; }
  .follow, .stage { background: none; color: #000; display: block; }
}
