/* Plaquette animée : livre feuilletable, craie sur ardoise (mêmes variables que portal.css). */
body.brochure {
  display: flex; flex-direction: column; place-items: initial; min-height: 100vh; min-height: 100dvh; padding: 0;
  height: 100vh; height: 100dvh; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 12% 8%, rgba(123, 167, 239, .20), transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 90%, rgba(255, 122, 110, .14), transparent 70%),
    radial-gradient(ellipse 45% 35% at 8% 92%, rgba(168, 217, 143, .10), transparent 70%),
    var(--slate);
}
.bk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 18px; }
.bk-brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.bk-lang { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-lang a { color: var(--chalk-dim); text-decoration: none; padding: 3px 10px; border: 2px solid transparent; border-radius: 999px; font-size: .85rem; }
.bk-lang a:hover { color: var(--chalk); }
.bk-lang a[aria-current="true"] { color: #eef4ff; border-color: var(--chalk-blue); background: rgba(123, 167, 239, .16); }
.bk-main { position: relative; overflow: hidden; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.bk-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bk-book { width: 100%; height: 100%; transition: transform .7s ease; }
.bk-loading { position: absolute; margin: 0; color: var(--chalk-dim); }
.bk-loading.hidden { display: none; }
.bk-bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 14px 14px; flex-wrap: wrap; }
.bk-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; flex: 0 1 420px; }
.bk-range { display: flex; align-items: center; gap: 12px; width: 100%; font-size: .9rem; color: var(--chalk); }
.bk-range span { min-width: 6.5em; text-align: right; }
.bk-range input { flex: 1 1 auto; min-width: 0; accent-color: var(--chalk-blue); }
.bk-hint { margin: 0; font-size: .78rem; line-height: 1.3; color: var(--chalk-dim); text-align: center; }
.bk-btn { width: auto; display: inline-flex; align-items: center; justify-content: center; margin: 0; min-width: 52px; min-height: 52px; padding: 0 14px; font-size: 1.8rem; line-height: 1; letter-spacing: normal; }
.bk-btn.small { min-width: 44px; min-height: 44px; font-size: 1.15rem; }
.bk-mail { font-size: .85rem; text-decoration: none; }
.bk-btn[disabled] { opacity: .4; cursor: default; }
@media (max-width: 640px) {
  .bk-mid { order: 5; flex-basis: 100%; }
  .bk-mail { display: none; }
  .bk-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bk-book { transition: none; } }
/* StPageFlip pose parfois un fond blanc : le livre se pose directement sur l'ardoise */
.stf__parent, .stf__wrapper, .stf__block, .bk-book canvas { background: transparent !important; }

.bk-page { background: #1c211f; overflow: hidden; }
.bk-page img { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* Sommaire cliquable et téléchargement */
.bk-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-tool { width: auto; display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 40px; padding: 2px 14px; font-size: .85rem; line-height: 1.2; letter-spacing: normal; }
.bk-tool[disabled] { opacity: .5; cursor: progress; }
.bk-toc { position: absolute; z-index: 20; top: 0; bottom: 0; left: 0; width: min(22rem, 100%); display: flex; flex-direction: column; gap: 8px; padding: 10px 12px;
  background: var(--slate-raised); border-right: 3px solid var(--chalk-dim); box-shadow: 12px 0 28px rgba(0, 0, 0, .5); }
.bk-toc[hidden] { display: none; }
.bk-toc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bk-toc h2 { margin: 0; font-size: 1.1rem; }
.bk-toc input { width: 100%; margin: 0; min-height: 40px; padding: 4px 12px; font: inherit; font-size: .9rem; color: var(--chalk); background: var(--slate); border: 2px solid var(--chalk-dim); border-radius: 10px; }
.bk-toc ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.bk-toc li.bk-toc-group { margin: 10px 4px 2px; font-size: .8rem; font-weight: 700; color: var(--chalk-blue); text-transform: uppercase; }
.bk-toc li button { width: 100%; display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 8px; min-height: 36px; text-align: left; font: inherit; font-size: .88rem; line-height: 1.35; letter-spacing: normal;
  color: var(--chalk); background: none; border: 0; border-bottom: 1px dashed rgba(181, 185, 178, .35); border-radius: 0; box-shadow: none; cursor: pointer; }
.bk-toc li button:hover, .bk-toc li button:focus-visible { background: rgba(123, 167, 239, .16); }
.bk-toc li button[aria-current="true"] { color: var(--chalk-blue); font-weight: 700; }
.bk-toc li button span:last-child { flex: none; color: var(--chalk-dim); font-variant-numeric: tabular-nums; }
.bk-toc-none { margin: 0; color: var(--chalk-dim); font-size: .9rem; }
