/* book facon carnet : pages (couverture + interieur), elements poses, etagere, lecteur qui tourne les pages */
.bk-page{position:relative;aspect-ratio:.72;container-type:inline-size;overflow:hidden;isolation:isolate;background:var(--bk-papier,#fffbf3);border-radius:1.2cqw 4cqw 4cqw 1.2cqw;
  box-shadow:0 0 0 1px rgba(31,27,22,.06);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.bk-page.fond-ligne{background-image:repeating-linear-gradient(transparent 0 6.6cqw,rgba(120,100,70,.18) 6.6cqw calc(6.6cqw + 1px))}
.bk-page.fond-carreaux{background-image:linear-gradient(rgba(120,100,70,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(120,100,70,.14) 1px,transparent 1px);background-size:4.4cqw 4.4cqw}
.bk-page.fond-points{background-image:radial-gradient(rgba(120,100,70,.35) .45cqw,transparent .55cqw);background-size:5cqw 5cqw}
.bk-page.fond-kraft{background-color:#cdb08a;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 baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.bk-page.fond-noir{background-color:#1f1b16}
/* reliure : ombre du pli (cousu) ou anneaux */
.bk-page.interieur::after{content:"";position:absolute;inset:0 auto 0 0;width:9cqw;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.16),rgba(0,0,0,.04) 45%,transparent)}
.bk-page.gauche{border-radius:4cqw 1.2cqw 1.2cqw 4cqw}
.bk-page.gauche::after{inset:0 0 0 auto;background:linear-gradient(270deg,rgba(0,0,0,.16),rgba(0,0,0,.04) 45%,transparent)}
.bk-anneaux{position:absolute;left:1.6cqw;top:14%;bottom:14%;display:flex;flex-direction:column;justify-content:space-between;z-index:99;pointer-events:none}
.bk-anneaux i{width:7cqw;height:2.6cqw;border:.9cqw solid #9a9286;border-radius:2cqw;box-shadow:0 .4cqw .6cqw rgba(0,0,0,.2)}
.bk-page.gauche .bk-anneaux{left:auto;right:1.6cqw}
/* couverture */
.bk-page.couv{border-radius:1.5cqw 5cqw 5cqw 1.5cqw;box-shadow:inset 5.5cqw 0 0 rgba(0,0,0,.18),inset 6.2cqw 0 0 rgba(255,255,255,.14),0 0 0 1px rgba(0,0,0,.06)}
.bk-page.couv.gauche{border-radius:5cqw 1.5cqw 1.5cqw 5cqw;box-shadow:inset -5.5cqw 0 0 rgba(0,0,0,.12)}
.bk-page.couv.tex-cuir{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),radial-gradient(120% 90% at 40% 30%,rgba(255,255,255,.12),rgba(0,0,0,.28))}
.bk-page.couv.tex-toile{background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.07) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,rgba(0,0,0,.08) 0 1px,transparent 1px 3px)}
.bk-page.couv.tex-kraft{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 baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.bk-page.couv.tex-velours{background-image:radial-gradient(90% 70% at 35% 25%,rgba(255,255,255,.22),transparent 60%),radial-gradient(80% 80% at 80% 100%,rgba(0,0,0,.3),transparent 70%)}
.bk-page.couv.tex-lisse{background-image:linear-gradient(115deg,rgba(255,255,255,.22),transparent 38%,transparent 70%,rgba(255,255,255,.08))}
/* elements */
.bk-el{position:absolute;transform-origin:50% 50%;line-height:1}
.bk-el img,.bk-el svg{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none}
.bk-cadre{position:relative}
.bk-cadre.polaroid{background:#fff;padding:3.5% 3.5% 14%;box-shadow:0 1.2cqw 2.6cqw -1cqw rgba(0,0,0,.35)}
.bk-cadre.ombre img{filter:drop-shadow(0 1cqw 1.4cqw rgba(0,0,0,.3))}
.bk-cadre.scotch{background:#fff;padding:5%;box-shadow:0 1cqw 2cqw -1cqw rgba(0,0,0,.3)}
.bk-cadre.polaroid img,.bk-cadre.scotch img{background:#fff;aspect-ratio:1;object-fit:contain}
.bk-cadre .tape{position:absolute;top:-5%;left:50%;width:44%;height:12%;transform:translateX(-50%) rotate(-4deg);background:var(--tape,rgba(255,210,63,.7));mix-blend-mode:multiply}
.bk-prix{position:absolute;left:0;right:0;bottom:1.5%;text-align:center;font:700 4.6cqw/1 "Caveat",cursive;color:#ff5900;pointer-events:none}
.bk-cadre.aucun+.bk-prix,.bk-cadre.ombre+.bk-prix{bottom:auto;top:100%;margin-top:.5cqw}
.bk-cadre.decoupe img{filter:drop-shadow(0 .5cqw .7cqw rgba(60,45,25,.28)) drop-shadow(0 0 .15cqw rgba(0,0,0,.12))}
.bk-cadre.decoupe .mat{position:absolute;width:5.4cqw;height:2.8cqw;left:50%;background:rgba(244,243,238,.6);box-shadow:0 0 0 .5px rgba(0,0,0,.07);
  background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.35) 0 1px,transparent 1px 3px);backdrop-filter:blur(.4px)}
.bk-cadre.decoupe .m1{top:-1cqw;transform:translateX(-50%) rotate(-3deg)}
.bk-cadre.decoupe .m2{bottom:-1cqw;transform:translateX(-50%) rotate(4deg)}
.bk-cadre.decoupe.s1 .m1{left:30%;transform:rotate(-38deg)}.bk-cadre.decoupe.s1 .m2{left:auto;right:6%;transform:rotate(-40deg)}
.bk-cadre.decoupe.s2 .m2{display:none}
.bk-cadre.decoupe.s3 .m1{top:40%;left:-2cqw;transform:rotate(88deg)}.bk-cadre.decoupe.s3 .m2{bottom:40%;left:auto;right:-2.5cqw;transform:rotate(92deg)}
.bk-cadre.decoupe+.bk-prix{bottom:auto;top:100%;margin-top:.6cqw;font-size:4cqw;color:#3a342c}
.bk-gommette{position:absolute;right:-2.2cqw;top:-2.2cqw;width:7.5cqw;height:7.5cqw;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff6b5e,#d81f12 70%);box-shadow:0 .5cqw 1cqw rgba(0,0,0,.3);z-index:2;pointer-events:none}
.bk-txt{white-space:pre-wrap;word-break:break-word;pointer-events:none}
.bk-txt.f-main{font-family:"Caveat",cursive;font-weight:600;line-height:1.05}
.bk-txt.f-expo{font-family:"Exposure",Georgia,serif;font-style:italic;line-height:.95}
.bk-txt.f-sans{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-weight:800;letter-spacing:.08em;line-height:1.1}
.bk-txt.f-machine{font-family:"Special Elite","Courier New",monospace;line-height:1.15}
.bk-planche{position:relative;background:#fff}
.bk-planche .zone{position:absolute;border:0;padding:0;background:transparent;cursor:pointer;border-radius:1cqw}
.bk-planche .zone .bk-gommette{right:-1cqw;top:-1cqw;width:5.5cqw;height:5.5cqw}
.bk-page [data-f]{cursor:pointer}
/* etagere (page publique) */
.bk-etagere{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:26px max(18px,calc(50% - 120px)) 20px;scrollbar-width:none}
.bk-etagere::-webkit-scrollbar{display:none}
.bk-etagere.seul{justify-content:center}
.bk-livre{flex:none;width:240px;scroll-snap-align:center;border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:center}
.bk-livre .bk-page{box-shadow:inset 5.5cqw 0 0 rgba(0,0,0,.18),inset 6.2cqw 0 0 rgba(255,255,255,.14),0 26px 34px -18px rgba(31,27,22,.5);transition:transform .5s var(--ressort,ease)}
.bk-livre:hover .bk-page{transform:translateY(-4px) rotate(-1deg)}
.bk-livre b{display:block;margin-top:14px;font-weight:800;font-size:16px}
.bk-livre small{color:var(--gris);font-size:13px;font-weight:600}
/* lecteur plein ecran */
.bk-lecteur{position:fixed;inset:0;z-index:45;background:var(--creme,#f6f0e4);display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;transition:opacity .35s}
.bk-lecteur.ouvert{opacity:1}
.bk-lecteur .barre{position:absolute;top:calc(12px + env(safe-area-inset-top));left:16px;right:16px;display:flex;justify-content:space-between;align-items:center;z-index:5}
.bk-lecteur .barre b{font-weight:800;font-size:15px;max-width:60vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-rond{width:42px;height:42px;border-radius:50%;border:0;background:var(--papier,#fffbf3);color:var(--encre,#1f1b16);box-shadow:0 0 0 1px var(--trait,rgba(0,0,0,.08)),0 6px 16px -8px rgba(0,0,0,.3);font-size:18px;display:grid;place-items:center;cursor:pointer}
.bk-scene{position:relative;perspective:2200px;touch-action:none;transition:transform .6s cubic-bezier(.32,.72,0,1)}
.bk-scene .bk-moitie{position:absolute;top:0;bottom:0}
.bk-scene .bk-moitie.g{filter:drop-shadow(-3px 0 0 #ece4d6) drop-shadow(-3px 0 0 #e2d9c9)}  /* l'epaisseur des pages deja tournees */
.bk-lecteur{overflow:hidden}
.bk-feuille{position:absolute;top:0;bottom:0;transform-style:preserve-3d;transform-origin:0 50%;z-index:10;will-change:transform}
.bk-scene .bk-moitie{z-index:1;isolation:isolate;transform:translateZ(0)}  /* Safari : la page du dessous reste dessous pendant que la feuille tourne */
.bk-feuille>.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.bk-feuille>.face{transform:rotateY(0deg)}
.bk-feuille>.face.dos{transform:rotateY(180deg)}
/* Safari ignore parfois backface-visibility : on cache nous-memes la face qui ne doit pas se voir */
.bk-feuille.retournee>.face:not(.dos),.bk-feuille:not(.retournee)>.face.dos{visibility:hidden}
.bk-feuille>.face>.bk-page,.bk-moitie>.bk-page{width:100%;height:100%}
.bk-feuille .ombre-pli{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.25),transparent 40%);opacity:var(--o,0);border-radius:inherit}
.bk-coin{position:absolute;right:0;bottom:0;width:13%;aspect-ratio:1;pointer-events:none;z-index:4;border-radius:0 0 4cqw 0;
  background:linear-gradient(135deg,transparent 49%,rgba(0,0,0,.08) 50%,#f3ece0 56%,#fffaf1 75%,#e9e0d0);box-shadow:-3px -3px 8px -4px rgba(0,0,0,.25)}
.bk-lecteur .bas{position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));left:0;right:0;display:flex;justify-content:center;align-items:center;gap:14px;color:var(--gris,#7a7165);font-weight:700;font-size:13px}
.bk-lecteur .fleche{position:absolute;top:50%;transform:translateY(-50%);z-index:5}
.bk-lecteur .fleche.g{left:18px}.bk-lecteur .fleche.d{right:18px}
@media (max-width:819px){.bk-lecteur .fleche{display:none}}
