/* MIRE — site public */
:root { --ground: #ECEAE3; --ink: #111111; --sel: #111111; --selInk: #FFFFFF; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Archivo', system-ui, sans-serif; }
a { color: #111; } a:hover { color: #4a4a4a; }
::selection { background: var(--sel); color: var(--selInk); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.page { min-height: 100vh; background: var(--ground); transition: background-color .8s ease; }
.wrap { max-width: 1344px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* En-tête collant + réglette */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); transition: background-color .8s ease; }
.head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; transition: padding .25s ease; }
.top.compact .head { padding-top: 14px; padding-bottom: 14px; }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; gap: 6px; }
.logo b { font-size: 30px; font-weight: 850; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1; }
.rule { display: flex; height: 6px; }
.rule span { flex: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; letter-spacing: .02em; }
.nav a { text-decoration: none; padding: 12px 0; }
.strip { display: flex; overflow: hidden; }
.strip span { flex: 1 1 0; box-shadow: inset 0 0 0 1px #1111110d; transition: flex-grow .55s cubic-bezier(.2,.8,.2,1); }

/* Accroche */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding-top: 56px; padding-bottom: 40px; }
.hero h1 { margin: 0; flex: 1 1 640px; min-width: 0; font-size: clamp(44px, 6.4vw, 96px); font-weight: 800; font-stretch: 110%; line-height: .95; letter-spacing: -0.035em; }
.hero p { margin: 0; flex: 0 1 300px; font-size: 14px; line-height: 1.6; white-space: pre-line; }

/* La mire */
.bars { display: flex; height: 440px; }
@media (max-width: 640px) { .bars { height: 300px; } }
.bar { appearance: none; border: 0; margin: 0; cursor: pointer; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 14px 10px; flex: 1 1 0; position: relative; overflow: hidden; transition: flex-grow .55s cubic-bezier(.2,.8,.2,1); }
.bar:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
.bar .n { position: relative; font-size: 13px; font-weight: 500; }
.bar .v { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 17px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.meter { position: absolute; left: 0; right: 0; bottom: 0; height: 0; pointer-events: none; }

/* Panneau d'une couleur */
.panel { display: flex; flex-wrap: wrap; gap: 64px; padding: 64px 56px 80px; transition: background-color .45s ease, color .45s ease; }
@media (max-width: 640px) { .panel { padding: 40px 20px 56px; gap: 40px; } }
.panel .meta { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.panel .meta p { margin: 0; font-size: 14px; }
.panel h2 { margin: 0; max-width: 100%; font-size: clamp(72px, 11vw, 168px); font-weight: 850; font-stretch: 125%; line-height: .85; letter-spacing: -0.045em; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid currentColor; background: transparent; cursor: pointer; text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 500; color: inherit; transition: transform .2s; }
.btn:hover { transform: translateX(4px); color: inherit; }
.btn.solid { background: var(--pInk); color: var(--pBg); border-color: var(--pInk); }
.tracks { flex: 1 1 440px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.tracks li { border-top: 1px solid var(--line); }
.row { appearance: none; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; padding: 13px 0; display: flex; gap: 16px; align-items: baseline; }
.row:disabled { cursor: default; }
.row .soon { font-size: 12px; margin-left: 10px; }
.row .i { font-size: 13px; width: 24px; flex-shrink: 0; }
.row .t { flex: 1; min-width: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.row .d { font-size: 13px; }
.row.cur .t { font-weight: 700; }
.seekwrap { padding: 0 0 8px 40px; margin-top: -4px; }
.seek { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--pInk) var(--pct), var(--line) var(--pct)); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; background: var(--pInk); border: 0; border-radius: 0; }
.seek::-moz-range-track { height: 3px; background: var(--line); }
.seek::-moz-range-progress { height: 3px; background: var(--pInk); }
.seek::-moz-range-thumb { width: 14px; height: 14px; background: var(--pInk); border: 0; border-radius: 0; }

/* À propos, pied de page */
.about { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 120px; padding-bottom: 96px; }
.about h2 { margin: 0; flex: 0 1 320px; font-size: 14px; font-weight: 500; }
.about p { margin: 0; flex: 1 1 560px; min-width: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; white-space: pre-line; }
footer { border-top: 1px solid #11111133; }
.foot { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-top: 40px; padding-bottom: 56px; font-size: 14px; line-height: 1.7; }
.foot > div { display: flex; flex-direction: column; }
.foot b { font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 850; font-stretch: 125%; }
.linkbtn { appearance: none; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; font: inherit; }

/* Intro « mire » */
.intro { position: fixed; inset: 0; z-index: 50; border: 0; padding: 0; margin: 0; cursor: pointer; display: flex; background: transparent; overflow: hidden; }
.intro .bg { position: absolute; inset: 0; background: #111; animation: bgOut .6s ease 1.1s both; }
.intro .tv { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; transform-origin: 50% 50%; animation: tvOn .55s cubic-bezier(.2,.9,.2,1) both; }
.intro .ib { display: flex; flex: 1; }
.intro .ib span { flex: 1; animation: barUp .6s cubic-bezier(.75,0,.25,1) both; }
.intro .id { height: 18vh; display: flex; align-items: center; justify-content: center; background: #111; color: #fff; animation: identDown .55s cubic-bezier(.75,0,.25,1) .95s both; }
.intro .id span { font-size: 8vh; font-weight: 850; font-stretch: 125%; letter-spacing: -0.03em; animation: flick .5s steps(1) .5s both; }
@keyframes tvOn { 0% { transform: scale(0, .004); filter: brightness(4); } 45% { transform: scale(1, .004); filter: brightness(4); } 100% { transform: scale(1, 1); filter: brightness(1); } }
@keyframes barUp { to { transform: translateY(-101%); } }
@keyframes identDown { to { transform: translateY(101%); } }
@keyframes flick { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .2; } 50%, 100% { opacity: 1; } }
@keyframes bgOut { to { opacity: 0; } }
.rise { animation: riseIn .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } }

/* Mode immersion */
.immerse { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; text-align: center; padding: 48px; animation: immIn 1.2s ease both; }
.immerse .c { font-size: 120px; font-weight: 850; font-stretch: 125%; letter-spacing: -0.045em; line-height: .82; white-space: nowrap; max-width: 100%; }
.immerse .tt { font-size: 28px; font-weight: 500; }
.immerse .lv { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
@keyframes immIn { from { opacity: 0; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro *, .rise, .immerse { animation: none !important; }
  .bar, .page, .panel, .top, .strip span { transition: none !important; }
}
