/* KORIUM TECH · Feuilleteur du catalogue */
.fb { position: relative; outline: none; }
.fb__book { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1.414; max-width: 1180px; margin-inline: auto; perspective: 2600px; }
.fb__book figure { margin: 0; position: relative; background: #fff; overflow: hidden; cursor: zoom-in; box-shadow: 0 30px 70px oklch(0.24 0.065 252 / 0.22); }
.fb__l { grid-column: 1; border-radius: 10px 0 0 10px; }
.fb__r { grid-column: 2; border-radius: 0 10px 10px 0; }
.fb__l::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 14%; background: linear-gradient(90deg, transparent, oklch(0 0 0 / 0.14)); pointer-events: none; }
.fb__r::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 14%; background: linear-gradient(270deg, transparent, oklch(0 0 0 / 0.12)); pointer-events: none; }
.fb__book img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.fb__book.is-cover .fb__r { border-radius: 10px; }
.fb__book.is-back .fb__l { border-radius: 10px; }
.fb__leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.2, 1); z-index: 3; }
.fb__leaf--next { left: 50%; transform-origin: left center; }
.fb__leaf--prev { left: 0; transform-origin: right center; }
.fb__leaf--next.is-turning { transform: rotateY(-180deg); }
.fb__leaf--prev.is-turning { transform: rotateY(180deg); }
.fb__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.fb__face img { width: 100%; height: 100%; object-fit: contain; }
.fb__face--back { transform: rotateY(180deg); }
.fb__leaf--next .fb__face--front { border-radius: 0 10px 10px 0; }
.fb__leaf--next .fb__face--front::after, .fb__leaf--prev .fb__face--back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0 0 0 / 0.18), transparent 30%); }
.fb__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 26px; }
.fb__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, transform 0.4s var(--ease); }
.fb__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fb__btn:hover:not(:disabled) { background: var(--marine); color: #fff; }
.fb__btn:disabled { opacity: 0.3; cursor: default; }
.fb__count { font-family: var(--mono); font-size: 15px; color: var(--ink-2); min-width: 170px; text-align: center; }
.fb__th { display: flex; gap: 10px; overflow-x: auto; padding: 22px 2px 8px; margin-top: 10px; scrollbar-width: thin; }
.fb__th li { flex: none; }
.fb__th button { position: relative; display: grid; gap: 6px; justify-items: center; width: 74px; }
.fb__th button > a { position: absolute; inset: 0; }
.fb__th img { width: 74px; aspect-ratio: 0.707; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); opacity: 0.7; transition: opacity 0.3s, box-shadow 0.3s, transform 0.4s var(--ease); }
.fb__th span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.fb__th button[aria-current="true"] img, .fb__th button:hover img { opacity: 1; box-shadow: 0 0 0 2px var(--blue); transform: translateY(-3px); }
.fb__zoom { position: fixed; inset: 0; z-index: 80; background: oklch(0.12 0.04 252 / 0.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.fb__zoom img { max-width: min(100%, 1100px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 8px; background: #fff; }
.fb__close { position: absolute; top: 18px; right: 18px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--l-ink); font-weight: 600; }
.fb:not(.is-on) .fb__book, .fb:not(.is-on) .fb__bar button { display: none; }
.slide-l { animation: fbL 0.5s var(--ease); } .slide-r { animation: fbR 0.5s var(--ease); }
@keyframes fbL { from { opacity: 0; transform: translateX(30px); } } @keyframes fbR { from { opacity: 0; transform: translateX(-30px); } }
@media (max-width: 899px) {
  .fb__book { grid-template-columns: 1fr; aspect-ratio: 0.707; max-width: 520px; }
  .fb__book figure { grid-column: 1 !important; border-radius: 10px !important; }
  .fb__book .fb__l { display: none; }
  .fb__dl { flex-basis: 100%; justify-content: space-between; }
}
.cat-pg { align-self: center; font-family: var(--mono); font-size: 14px; color: var(--blue); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px oklch(0.55 0.15 245 / 0.35); }
.ph__media > .m.m--cat { aspect-ratio: 0.707; max-height: 64svh; background: #fff; transform: rotate(-3deg); box-shadow: 0 50px 90px oklch(0 0 0 / 0.5); }
@media (min-width: 900px) {
  .fb__book.is-cover .fb__r { grid-column: 1 / -1; justify-self: center; width: 50%; }
  .fb__book.is-back .fb__l { grid-column: 1 / -1; justify-self: center; width: 50%; }
}
