/* ==========================================================================
   Le récit — scène persistante pilotée par le défilement
   Les positions sont calculées en JS (transform/opacity uniquement).
   ========================================================================== */

.recit {
  position: relative;
  height: 720vh;
  margin-top: -64px; /* la scène passe sous l'en-tête translucide */
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 8% 0%, #fffaf0 0%, rgba(255, 250, 240, 0) 60%),
    radial-gradient(70% 60% at 100% 100%, #ece5d6 0%, rgba(236, 229, 214, 0) 70%),
    var(--paper);
}

/* Lumière de fenêtre : ombres de croisillons qui glissent sur le papier */
.light {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  transform: translate3d(var(--light-x, 0), 0, 0) rotate(-24deg);
  will-change: transform;
}
.light span {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 9vw;
  background: linear-gradient(90deg, rgba(88, 70, 40, 0), rgba(88, 70, 40, 0.075) 30%, rgba(88, 70, 40, 0.075) 70%, rgba(88, 70, 40, 0));
  filter: blur(18px);
}
.light span:nth-child(1) { left: 18%; }
.light span:nth-child(2) { left: 34%; width: 3vw; }
.light span:nth-child(3) { left: 62%; }
.light span:nth-child(4) { left: 78%; width: 3vw; }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Ouverture ----- */
.hero-copy {
  position: absolute;
  z-index: 5;
  left: clamp(16px, 5vw, 88px);
  top: 50%;
  width: min(54vw, 760px);
  transform: translate3d(0, calc(-50% + var(--hero-y, 0px)), 0);
  opacity: var(--hero-o, 1);
  will-change: transform, opacity;
}
.hero-copy.is-gone {
  visibility: hidden;
}
.hero-title {
  margin: 0 0 var(--s-5);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.hero-title em {
  display: block;
  padding-left: 0.42em;
  font-style: italic;
  color: var(--thread);
}
.hero-lead {
  max-width: 34ch;
  margin: 0 0 var(--s-6);
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink-2);
}
.audience--hero {
  display: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-7) 0 0;
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.scroll-cue span {
  position: relative;
  width: 1.5px;
  height: 40px;
  background: var(--line-2);
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--thread);
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue {
  to { top: 100%; }
}

/* ----- Légendes ----- */
.captions {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 4;
  left: clamp(16px, 5vw, 88px);
  top: 50%;
  width: min(31vw, 440px);
  transform: translateY(-50%);
  height: 0;
}
.caption {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translate3d(0, calc(-50% + 18px), 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s 520ms;
}
.caption.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition: opacity 520ms var(--ease-out) 80ms, transform 620ms var(--ease-out) 80ms, visibility 0s;
}
.caption__n {
  display: inline-block;
  margin-bottom: var(--s-4);
  color: var(--thread);
  letter-spacing: 0.06em;
}
.caption__title {
  margin: 0 0 var(--s-4);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.2rem + 2.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.caption__text {
  margin: 0;
  max-width: 34ch;
  font-size: var(--t-lg);
  color: var(--ink-2);
}
.caption__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ----- Monde ----- */
.world {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  perspective: 1400px;
  transition: opacity 200ms linear;
}
.world.is-swapping {
  opacity: 0;
}
.thread-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}
.thread-path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thread-path--shadow {
  stroke: rgba(44, 57, 214, 0.12);
  stroke-width: 9;
}

/* Carte = fragment → fiche → étape */
.card {
  --cw: 210px;
  --ch: 140px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw);
  height: var(--ch);
  transform-style: preserve-3d;
  will-change: transform; /* surtout pas opacity : aplatirait la 3D et casserait le recto/verso */
  z-index: 2;
}
.card__face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.card__front {
  background: var(--sheet);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 4px rgba(21, 23, 28, 0.05), 0 18px 34px -14px rgba(60, 45, 20, 0.35);
  border: 1px solid rgba(21, 23, 28, 0.06);
}
.card__back {
  transform: rotateY(180deg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 4px 10px;
  padding: 8px 14px 14px 18px;
  background: #fff;
  border: 1px solid rgba(21, 23, 28, 0.08);
  box-shadow: 0 10px 24px -14px rgba(60, 45, 20, 0.4);
  font-family: var(--f-display);
  font-size: 1.25rem;
  line-height: 1;
}
.card__back::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 14px;
  top: 38px;
  bottom: 14px;
  background: repeating-linear-gradient(180deg, transparent 0 14px, var(--paper-2) 14px 15px);
}
.card__back::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--thread);
}
.tag {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--ember { background: var(--ember-soft); color: #7a2e12; }
.tag--thread { background: var(--thread-soft); color: var(--thread-2); }

.frag,
.step {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  transition: opacity 240ms linear;
}
.step {
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.card.is-step .frag { opacity: 0; }
.card.is-step .step { opacity: 1; }
.step strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2px;
}
.step__n {
  color: var(--ink-3);
  margin-bottom: auto;
}
.card.is-active .card__front {
  box-shadow: 0 0 0 2px var(--thread), 0 22px 40px -16px rgba(44, 57, 214, 0.45);
}
.card.is-active .step__n { color: var(--thread); }
.card.is-done .card__front { background: #f7fbf8; }
.card.is-done .step__n::after {
  content: " ✓ fait";
  color: var(--sage);
}
.card.is-future .step { opacity: 0.55; }

/* Fragments — petits objets du quotidien */
.frag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}
.frag strong { font-size: 0.95rem; }
.frag__meta { color: var(--ink-3); }
.lines {
  display: grid;
  gap: 7px;
  margin-top: auto;
}
.lines i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--paper-3);
}
.lines i:nth-child(2n) { width: 78%; }
.lines i:last-child { width: 46%; }
.lines--dense { gap: 5px; }
.lines--dense i { height: 4px; }
.frag--letter { background: linear-gradient(180deg, #fffdf8, #fbf6ec); }
.frag__stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 2px 6px;
  border: 1.5px solid var(--ember);
  border-radius: 4px;
  color: var(--ember);
  transform: rotate(8deg);
  font-size: 0.62rem;
}
.frag--sms {
  justify-content: center;
  gap: 8px;
  background: #f3f2ee;
}
.bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 7px 11px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: var(--sh-1);
  font-size: 0.78rem;
}
.bubble--me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--thread);
  color: #fff;
}
.frag--date {
  align-items: center;
  justify-content: center;
  gap: 0;
}
.date__day {
  font-family: var(--f-display);
  font-size: 3.4rem;
  line-height: 0.9;
}
.date__month { color: var(--ink-3); margin-top: 10px; }
.date__ring {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 84px;
  height: 62px;
  border: 2px solid var(--ember);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: 0.8;
}
.frag--note {
  justify-content: center;
  background: #fff4c7;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.05;
  color: #3a3220;
}
.frag--contract { background: #fff; }
.frag--figures { background: #fff; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 52px;
  margin-top: auto;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--paper-3);
}
.bars i:nth-child(4) { background: var(--ember); opacity: 0.8; }

/* Dossier (chemise) */
.folder {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 230px;
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}
.folder__tab {
  position: absolute;
  left: 18px;
  top: -24px;
  height: 30px;
  padding: 6px 16px 0;
  border-radius: 10px 10px 0 0;
  background: #d9cdb4;
  color: #5a4c33;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.folder__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 4px 14px 14px 14px;
  background: linear-gradient(180deg, #e4d9c2, #d9cdb4);
  box-shadow: 0 30px 60px -24px rgba(60, 45, 20, 0.5), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  color: #4a3f2b;
}
.folder__ref,
.folder__count { font-size: 0.68rem; opacity: 0.8; }
.folder__title {
  font-family: var(--f-display);
  font-size: 1.7rem;
  line-height: 1;
}

.here {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--thread);
  color: #fff;
  font-size: 0.68rem;
  white-space: nowrap;
  opacity: 0;
  box-shadow: 0 6px 16px -6px var(--thread);
  will-change: transform, opacity;
}
.here::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--thread);
  transform: rotate(45deg);
}

/* Panneaux cabinet / client */
.panel {
  --pw: 300px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pw);
  padding: 16px;
  border-radius: 18px;
  opacity: 0;
  z-index: 3;
  will-change: transform, opacity;
  display: grid;
  gap: 8px;
  transition: border-radius 400ms var(--ease-out), padding 400ms var(--ease-out);
}
.panel--cabinet {
  background: #fbf9f5;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.panel--client {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3), 0 0 0 0 var(--thread-glow);
  overflow: hidden;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 0.8rem;
}
.panel__ref { color: var(--ink-3); }
.prow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(21, 23, 28, 0.06);
  font-size: 0.78rem;
}
.prow__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--paper-2);
  flex: none;
}
.prow__icon svg,
.packet svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prow__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.prow__body .mono { color: var(--ink-3); }
.prow--conf {
  background: var(--conf-hatch), var(--conf-bg);
  border-color: rgba(59, 53, 48, 0.12);
  color: var(--conf-ink);
}
.prow--conf .prow__icon { background: var(--ink); color: #fff; }
.blur-lines {
  display: grid;
  gap: 4px;
  filter: blur(2px);
}
.blur-lines i {
  display: block;
  height: 5px;
  width: 150px;
  border-radius: 3px;
  background: rgba(59, 53, 48, 0.35);
}
.blur-lines i + i { width: 100px; }
.check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  flex: none;
  position: relative;
  transition: background 200ms, border-color 200ms;
}
.panel.is-checked .check {
  background: var(--sage);
  border-color: var(--sage);
}
.panel.is-checked .check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.panel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 4px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform 150ms, background 250ms;
}
.panel.is-pressed .panel__btn { transform: scale(0.96); }
.panel.is-validated .panel__btn { background: var(--sage); }
.panel.is-validated .panel__btn::before { content: "✓ "; white-space: pre; }
.cursor {
  position: absolute;
  right: 40px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(21, 23, 28, 0.85);
  box-shadow: 0 0 0 5px rgba(21, 23, 28, 0.12);
  opacity: var(--cur-o, 0);
  transform: translate3d(calc(var(--cur, 0) * -60px), calc(30px - var(--cur, 0) * 36px), 0);
  pointer-events: none;
}

.status {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  transition: background 500ms, box-shadow 500ms;
}
.status__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--thread);
}
.status__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.05;
}
.status__b { display: none; }
.panel.is-advanced .status__a { display: none; }
.panel.is-advanced .status__b { display: inline; }
.panel.is-advanced .status {
  background: var(--thread-soft);
  box-shadow: 0 0 0 2px var(--thread) inset;
}
.status .progress i {
  width: 50%;
  transition: width 700ms var(--ease-out);
}
.panel.is-advanced .status .progress i { width: 66%; }
.prow--todo { background: var(--ember-soft); border-color: transparent; color: #6b2810; }
.prow--todo .prow__icon { background: #fff; color: var(--ember); }

.phone-notch {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 12px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 300ms;
}
.panel--client.is-phone {
  border: 9px solid var(--ink);
  border-radius: 40px;
  padding: 40px 16px 20px;
}
.panel--client.is-phone .phone-notch { opacity: 1; }
.notif {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 34px;
  display: grid;
  gap: 1px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -10px rgba(21, 23, 28, 0.35), 0 0 0 1px rgba(21, 23, 28, 0.06);
  font-size: 0.8rem;
  transform: translate3d(0, -170%, 0);
  opacity: 0;
  transition: transform 600ms var(--ease-out), opacity 300ms;
}
.notif__app { color: var(--ink-3); font-size: 0.66rem; }
.panel.show-notif .notif {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.membrane {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 260px;
  opacity: 0;
  z-index: 2;
  background: repeating-linear-gradient(180deg, var(--ink-3) 0 6px, transparent 6px 12px);
  will-change: transform, opacity;
}
.membrane span {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.64rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.membrane.is-horizontal {
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px);
}
.membrane.is-horizontal span {
  top: auto;
  bottom: 6px;
  left: 0;
  transform: none;
}
.packet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.packet--ok {
  background: var(--thread);
  color: #fff;
  box-shadow: 0 6px 18px -6px var(--thread);
}
.packet--conf {
  background: var(--ink);
  color: #fff;
  transition: background 200ms;
}
.packet--conf.is-blocked {
  background: var(--danger);
}

/* Navigation des chapitres */
.chapters {
  position: absolute;
  z-index: 8;
  right: clamp(12px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 4px;
  opacity: var(--nav-o, 0);
  transition: opacity 300ms;
}
.chapters button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.chapters button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
  transition: transform 300ms var(--ease-out), background 300ms;
}
.chapters button.is-active::before {
  background: var(--thread);
  transform: scale(1.6);
}
.chapters button:hover::before {
  background: var(--ink-2);
}
.stage-progress {
  display: none;
}
.skip-story {
  position: absolute;
  z-index: 8;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 32px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-sm);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.skip-story svg {
  width: 16px;
  height: 16px;
}
.skip-story:hover {
  color: var(--thread);
}

/* ============ Mobile ============ */
@media (max-width: 760px) {
  .recit {
    height: 640vh;
    margin-top: -56px;
  }
  .hero-copy {
    top: 76px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: translate3d(0, var(--hero-y, 0px), 0);
  }
  .hero-title {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
    margin-bottom: var(--s-4);
  }
  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: var(--s-5);
    max-width: 30ch;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .audience--hero {
    display: inline-grid;
    margin-bottom: var(--s-4);
  }
  .audience--hero .audience__btn {
    min-height: 40px;
    padding: 0 18px;
  }
  .hero-contact,
  .scroll-cue {
    display: none;
  }
  .captions {
    top: 72px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }
  .caption {
    transform: translate3d(0, 14px, 0);
  }
  .caption.is-active {
    transform: translate3d(0, 0, 0);
  }
  .caption__n {
    margin-bottom: var(--s-2);
  }
  .caption__title {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    margin-bottom: var(--s-2);
  }
  .caption__text {
    font-size: 0.95rem;
  }
  .caption__actions {
    margin-top: var(--s-4);
  }
  .caption__actions .btn {
    min-height: 44px;
    flex: 1 1 auto;
  }
  .card__back { font-size: 1.15rem; padding: 10px 12px; }
  .frag, .step { padding: 10px 12px; }
  .frag { font-size: 0.7rem; }
  .frag strong { font-size: 0.8rem; }
  .step { font-size: 0.68rem; }
  .step strong { font-size: 1.12rem; }
  .date__day { font-size: 2.4rem; }
  .date__ring { width: 64px; height: 48px; }
  .frag--note { font-size: 1.15rem; }
  .bubble { font-size: 0.66rem; padding: 5px 8px; }
  .bars { height: 32px; }
  .frag__stamp { display: none; }
  .folder__title { font-size: 1.3rem; }
  .folder__ref { display: none; }
  .card__back { font-size: 1rem; gap: 2px 8px; }
  .panel { padding: 12px; gap: 6px; }
  .panel .prow--task,
  .panel--cabinet .prow:not(.prow--conf):not(.prow--task),
  .panel--client .prow:not(.prow--todo) {
    display: none;
  }
  .panel--client.is-phone { padding: 34px 12px 14px; }
  .status__title { font-size: 1.2rem; }
  .chapters {
    display: none;
  }
  .stage-progress {
    display: block;
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    top: 56px;
    height: 2px;
    background: rgba(21, 23, 28, 0.06);
    opacity: var(--nav-o, 0);
  }
  .stage-progress i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--thread);
    transform-origin: 0 50%;
    transform: scaleX(var(--prog, 0));
  }
  .skip-story {
    bottom: 12px;
    right: 12px;
    min-height: 36px;
    font-size: 0.8rem;
  }
  .light span { width: 22vw; }
}

/* ============ Mouvement réduit ============ */
html.reduce-motion .scroll-cue span::after { animation: none; }
html.reduce-motion .caption,
html.reduce-motion .caption.is-active { transition: opacity 200ms linear, visibility 0s; }
html.reduce-motion .notif,
html.reduce-motion .status .progress i,
html.reduce-motion .frag,
html.reduce-motion .step { transition: none; }
