
.mag-body {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(121, 197, 232, 0.12), transparent 60%),
    linear-gradient(180deg, #edeae3 0%, #e3dfd6 100%);
  min-height: 100vh;
}

.mag-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 4vw 48px;
  align-items: start;
}

.editions {
  position: sticky;
  top: 92px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(28, 27, 59, 0.08);
}
.editions-title {
  font-family: var(--font-black);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  color: var(--black);
}
.editions-sub {
  font-size: 0.8rem;
  color: var(--grey);
  margin: 4px 0 20px;
}

.edition {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f7f5f0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.edition:hover:not(:disabled) { transform: translateX(3px); }
.edition.is-active { border-color: var(--hoka-blue); background: #eef6fc; }
.edition.is-locked { opacity: 0.55; cursor: not-allowed; }

.edition-cover {
  flex: none;
  width: 52px;
  height: 68px;
  border-radius: 4px 7px 7px 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-black);
  font-weight: 800;
  font-style: italic;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: inset -6px 0 8px -6px rgba(0,0,0,0.5);
}
.ed-1 { background: linear-gradient(155deg, var(--anthracite), var(--hoka-blue) 160%); }
.ed-2 { background: linear-gradient(155deg, var(--rust), #6e3712); }
.ed-3 { background: linear-gradient(155deg, var(--hoka-blue), #0b4569); }

.edition-meta { display: flex; flex-direction: column; gap: 2px; }
.edition-meta strong { font-size: 0.9rem; color: var(--ink); }
.edition-meta em { font-style: normal; font-size: 0.75rem; color: var(--grey); }

.editions-note {
  margin-top: 22px;
  padding: 14px;
  border-radius: 10px;
  background: #eef7ee;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #33513a;
}
.editions-note p + p { margin-top: 6px; }

.stage { min-width: 0; }
.stage-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.book-wrap {
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 30px 45px rgba(28, 27, 59, 0.3));
}
#book { touch-action: none; }

.page {
  background: var(--cream);
  overflow: hidden;
}
.page-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 34px 30px 46px;
  display: flex;
  flex-direction: column;
}

.paper {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.06) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.04) 100%),
    var(--cream);
}
.page.--left .paper { background: linear-gradient(270deg, rgba(0,0,0,0.07) 0%, transparent 7%), var(--cream); }

.cover-front, .cover-back {
  background:
    radial-gradient(ellipse 90% 55% at 80% 10%, rgba(21, 134, 198, 0.4), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 95%, rgba(186, 97, 37, 0.35), transparent 60%),
    linear-gradient(160deg, var(--anthracite) 0%, #1a1922 60%, var(--black) 100%);
  color: #fff;
  justify-content: space-between;
}
.cover-2 {
  background:
    radial-gradient(ellipse 90% 55% at 80% 10%, rgba(186, 97, 37, 0.5), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 95%, rgba(21, 134, 198, 0.3), transparent 60%),
    linear-gradient(160deg, var(--anthracite) 0%, #1a1922 60%, var(--black) 100%);
}
.cover-3 {
  background:
    radial-gradient(ellipse 90% 55% at 80% 10%, rgba(21, 134, 198, 0.55), transparent 65%),
    radial-gradient(ellipse 70% 60% at 15% 95%, rgba(206, 212, 218, 0.18), transparent 60%),
    linear-gradient(160deg, #0e2a3d 0%, #101820 60%, var(--black) 100%);
}

.cover-brand-row {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  overflow: visible;
}
.cover-hoka {
  height: 84px;
  width: auto;
  margin-left: -18px;
  filter: brightness(0) invert(1);
}
.cover-presente {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.cover-logo {
  margin: auto 0 0;
  padding: 8% 0 0;
}
.cover-logo img {
  width: 88%;
  filter: brightness(0) invert(1) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

.cover-tag {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.cover-foot {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
}

.cover-back { justify-content: center; text-align: center; gap: 40px; }
.back-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.back-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}
.back-logo-img {
  height: 96px;
  width: auto;
  margin: -30px auto;
  filter: brightness(0) invert(1);
}

.folio-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--font-black);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 18px;
}
.page-title.small { font-size: 1.35rem; }

.body-text {
  font-family: "Playfair Display", serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #33333d;
  margin-bottom: 14px;
}
.drop-cap::first-letter {
  font-family: var(--font-black);
  font-weight: 800;
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding-right: 8px;
  color: var(--orange);
}
.stat-punch {
  font-family: var(--font-black);
  font-weight: 800;
  font-style: italic;
  font-size: 3.4rem;
  color: var(--hoka-blue);
  line-height: 1;
  margin-bottom: 10px;
}
.signature {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--grey);
  margin-top: auto;
  font-size: 0.9rem;
}

.emphase {
  font-weight: 700;
  font-family: var(--font);
  color: var(--hoka-blue);
  font-size: 0.95rem;
}

.pull-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--anthracite);
  border-left: 3px solid var(--rust);
  padding: 10px 0 10px 14px;
  margin: 8px 0 14px;
}

.poll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 10px;
}
.poll-row {
  display: grid;
  grid-template-columns: 90px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.poll-label { font-weight: 500; color: var(--anthracite); }
.poll-bar {
  height: 12px;
  background: #e7e3d8;
  border-radius: var(--pill);
  overflow: hidden;
}
.poll-bar i {
  display: block;
  height: 100%;
  background: var(--hoka-blue);
  border-radius: var(--pill);
}
.poll-row:last-child .poll-bar i { background: var(--grey-mid); }
.poll-val { font-weight: 700; color: var(--hoka-blue); text-align: right; }
.poll-row:last-child .poll-val { color: var(--grey); }
.poll-note {
  font-size: 0.72rem;
  color: var(--grey);
  font-style: italic;
}

.folio {
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #a39d8f;
}

.toc { list-style: none; margin-top: 8px; }
.toc li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #d8d2c2;
  font-size: 0.88rem;
  line-height: 1.5;
}
.toc-num {
  font-family: var(--font-black);
  font-weight: 800;
  color: var(--hoka-blue);
  font-size: 0.95rem;
}
.toc-quote {
  margin-top: auto;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--anthracite);
  padding: 14px;
  background: rgba(21, 134, 198, 0.09);
  border-left: 3px solid var(--hoka-blue);
  border-radius: 0 8px 8px 0;
}

.article-visual {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45)),
    url("../assets/img/photo-hoka01.avif") center/cover;
  display: grid;
  place-items: end start;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.lexique { margin-top: 6px; }
.lexique dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-top: 14px;
}
.lexique dt em { font-weight: 400; color: var(--grey); font-size: 0.8rem; }
.lexique dd {
  font-family: "Playfair Display", serif;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #45454f;
  margin-top: 3px;
}

.casier {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.05) 0%, transparent 6%),
    var(--grey-bg);
}

.voice-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.voice-msg {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  gap: 5px 10px;
  align-items: center;
}

.voice-avatar {
  grid-row: 1;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(140deg, var(--hoka-blue), #0b4569);
}

.voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #e4e6ea;
  border-radius: var(--radius-lg);
  border-top-left-radius: 4px;
  padding: 10px 14px 10px 8px;
  box-shadow: 0 2px 8px rgba(43, 42, 56, 0.08);
  min-width: 0;
}

.voice-play {
  flex: none;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--hoka-blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.voice-play:hover { transform: scale(1.08); background: #106da3; }
.voice-play svg { width: 18px; height: 18px; fill: currentColor; }
.voice-play .ic-pause { display: none; }
.voice-msg.is-playing .ic-play { display: none; }
.voice-msg.is-playing .ic-pause { display: block; }

.voice-wave {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.voice-wave i {
  flex: 1;
  min-width: 2px;
  max-width: 3px;
  border-radius: 2px;
  background: var(--grey-mid);
  transition: background 0.2s linear;
}
.voice-wave i.played { background: var(--hoka-blue); }

.voice-time {
  flex: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.voice-mic {
  flex: none;
  font-size: 0.8rem;
  color: var(--rust);
}

.voice-name {
  grid-column: 2;
  font-size: 0.72rem;
  color: var(--grey);
  padding-left: 4px;
}

.casier-cta {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(21, 134, 198, 0.08);
  border: 1px dashed rgba(21, 134, 198, 0.4);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--anthracite);
}
.casier-cta i { color: var(--hoka-blue); margin-right: 4px; }

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}
.ctrl-btn {
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ctrl-btn:hover { background: var(--orange); transform: scale(1.06); }
.ctrl-btn svg { width: 22px; height: 22px; }
.page-indicator {
  min-width: 130px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.ctrl-btn i { font-size: 1rem; }

.mag-footnote {
  text-align: center;
  margin-top: 26px;
  font-size: 0.75rem;
  color: var(--grey);
}
.mag-footnote strong { color: var(--anthracite); }

@media (max-width: 1000px) {
  .mag-layout { grid-template-columns: 1fr; }
  .editions { position: static; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .editions-title, .editions-sub { width: 100%; }
  .edition { width: auto; margin-bottom: 0; }
  .editions-note { display: none; }
}
