:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: rgba(8, 8, 12, .72);
  --panel-solid: #111116;
  --text: #f7f7f9;
  --muted: #c7c5ce;
  --accent: #9b5cff;
  --accent-soft: rgba(155, 92, 255, .18);
  --line: rgba(255,255,255,.16);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--bg); overflow: hidden; }
body { font-family: Inter, Arial, sans-serif; color: var(--text); }
button { font: inherit; }
.story { position: relative; width: 100%; height: 100dvh; min-height: 580px; background: var(--bg); overflow: hidden; isolation: isolate; }
.chrome { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: calc(74px + var(--safe-top)); padding: var(--safe-top) clamp(18px, 4vw, 40px) 0; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.brand { pointer-events: auto; appearance: none; border: 0; background: transparent; padding: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); transition: transform .2s ease; }
.brand:hover { transform: scale(1.04); }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.counter { margin-top: 11px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.75); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.progress { position: fixed; z-index: 31; top: calc(var(--safe-top) + 61px); left: clamp(18px, 4vw, 40px); right: clamp(18px, 4vw, 40px); height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: #fff; transition: width .45s cubic-bezier(.2,.75,.25,1); }
.screen { position: absolute; inset: 0; }
.frame { position: absolute; inset: 0; display: grid; background: #09090c; overflow: hidden; animation: enter .48s cubic-bezier(.2,.75,.25,1) both; }
@keyframes enter { from { opacity: .18; transform: translateX(18px) scale(1.01); } to { opacity: 1; transform: none; } }
.visual { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.015); }
.visual::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(5,5,8,.52) 0%, rgba(5,5,8,.1) 22%, rgba(5,5,8,.28) 44%, rgba(5,5,8,.92) 79%, #07070a 100%),
  linear-gradient(90deg, rgba(5,5,8,.25), transparent 45%, rgba(5,5,8,.15));
}
.visual--neutral { background: radial-gradient(circle at 50% 30%, #27222d 0, #111116 42%, #07070a 80%); }
.content-wrap { position: relative; z-index: 4; align-self: end; width: min(100%, 790px); max-height: calc(100dvh - 188px); padding: 0 clamp(22px, 6vw, 72px) clamp(116px, 14vh, 142px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.content-wrap::-webkit-scrollbar { display:none; }
.eyebrow { margin: 0 0 11px; color: #c8a9ff; font-size: clamp(11px, 2.9vw, 14px); font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(31px, 8.2vw, 64px); line-height: .99; letter-spacing: -.045em; font-weight: 820; text-wrap: balance; }
.time { margin: 15px 0 0; font-size: clamp(16px, 4.1vw, 22px); line-height: 1.25; font-weight: 740; color: #fff; }
.body-copy { max-width: 720px; margin-top: 17px; color: var(--muted); font-size: clamp(15px, 3.85vw, 19px); line-height: 1.5; text-wrap: pretty; }
.body-copy p { margin: 0 0 10px; }
.quote { position: relative; max-width: 680px; margin: 21px 0 3px; padding: 17px 19px 17px 22px; border: 1px solid rgba(255,255,255,.2); border-left: 3px solid var(--accent); border-radius: 15px; background: rgba(14,12,19,.68); box-shadow: 0 15px 40px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.quote p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(18px, 4.7vw, 25px); line-height: 1.25; font-style: italic; }
.quote cite { display: block; margin-top: 9px; color: #c7c2ce; font-size: clamp(12px, 3vw, 14px); font-style: normal; font-weight: 650; }
.home-frame .visual::after { background: linear-gradient(180deg, rgba(6,6,9,.54), rgba(6,6,9,.28) 35%, rgba(6,6,9,.92) 82%, #07070a 100%); }
.home-frame .content-wrap { padding-bottom: clamp(58px, 9vh, 92px); }
.home-kicker { margin-bottom: 13px; color: #d5c0ff; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; font-size: 12px; }
.home-frame h1 { font-size: clamp(41px, 10vw, 80px); line-height: .95; max-width: 860px; }
.home-deck { max-width: 650px; margin: 20px 0 28px; color: rgba(255,255,255,.78); font-size: clamp(16px, 4vw, 20px); line-height: 1.45; }
.start-button { min-height: 54px; padding: 15px 20px; border: 0; border-radius: 14px; background: #fff; color: #0a0a0d; font-weight: 800; font-size: clamp(14px,3.7vw,17px); cursor: pointer; box-shadow: 0 16px 42px rgba(0,0,0,.35); }
.end-frame .content-wrap { align-self:center; padding-bottom: 60px; text-align:center; margin-inline:auto; }
.end-frame h1 { margin-inline:auto; }
.end-frame .body-copy { margin-inline:auto; }
.end-logo { width: 110px; height: 110px; margin: 0 auto 26px; }
.end-logo img { width:100%; height:100%; }
.navigation { position: fixed; z-index: 25; left: clamp(18px, 5vw, 72px); right: clamp(18px, 5vw, 72px); bottom: var(--safe-bottom); display: none; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 11px; max-width: 720px; }
.navigation.is-visible { display: grid; }
.nav-button { min-height: 50px; border-radius: 13px; font-weight: 780; cursor: pointer; transition: transform .16s ease, opacity .16s ease; }
.nav-button:active { transform: scale(.98); }
.nav-button:disabled { opacity: .34; cursor: default; }
.nav-button--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(9,9,12,.56); backdrop-filter: blur(10px); }
.nav-button--primary { border: 1px solid #fff; color: #09090c; background: #fff; }
@media (min-width: 860px) {
  .frame { grid-template-columns: minmax(340px, 47vw) minmax(420px, 1fr); background: #0a0a0e; }
  .visual { position: relative; grid-column: 1; inset: auto; transform: none; }
  .visual::after { background: linear-gradient(90deg, rgba(5,5,8,.05), rgba(5,5,8,.15) 65%, #0a0a0e 100%); }
  .content-wrap { grid-column: 2; align-self: center; max-height: calc(100vh - 175px); padding: 115px clamp(48px, 6vw, 96px) 118px; }
  .home-frame { display:block; }
  .home-frame .visual { position:absolute; inset:0; }
  .home-frame .visual::after { background: linear-gradient(90deg, rgba(5,5,8,.12), rgba(5,5,8,.78) 57%, #07070a 100%), linear-gradient(0deg, rgba(5,5,8,.5), transparent 60%); }
  .home-frame .content-wrap { position: absolute; right: 4vw; bottom: 6vh; width: min(620px, 50vw); padding: 0; }
  .navigation { left: auto; width: min(590px, 48vw); right: clamp(48px, 6vw, 96px); }
  .end-frame { display:block; }
  .end-frame .content-wrap { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; max-height:none; padding:100px 24px; }
}
@media (prefers-reduced-motion: reduce) { .frame { animation:none; } .progress span { transition:none; } }

/* Corrections éditoriales V1 — lisibilité et crédit */
.content-wrap h1,
.content-wrap .time,
.content-wrap .body-copy,
.content-wrap .quote,
.home-kicker,
.home-deck,
.counter,
.illustration-credit {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, .98),
    0 2px 7px rgba(0, 0, 0, .98),
    0 0 14px rgba(0, 0, 0, .72);
}

.content-wrap h1,
.content-wrap .time,
.content-wrap .body-copy p,
.content-wrap .quote p,
.content-wrap .quote cite,
.home-kicker,
.home-deck {
  -webkit-text-stroke: .15px rgba(0, 0, 0, .75);
}

.content-wrap h1.is-long {
  font-size: clamp(28px, 7.2vw, 56px);
  line-height: 1.02;
}

.content-wrap--text-only {
  padding-top: calc(var(--safe-top) + 92px);
}

.body-copy--after {
  margin-top: 17px;
}

.illustration-credit {
  position: fixed;
  z-index: 29;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 64px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 36px);
  color: rgba(255, 255, 255, .64);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .035em;
  pointer-events: none;
  white-space: nowrap;
}

.story.is-home .illustration-credit {
  bottom: var(--safe-bottom);
}

@media (min-width: 860px) {
  .illustration-credit {
    left: auto;
    right: clamp(48px, 6vw, 96px);
    transform: none;
    bottom: calc(var(--safe-bottom) + 64px);
  }

  .story.is-home .illustration-credit {
    right: 4vw;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}
