/* Liseuse (ORD LISEUSE-P1190, Tech2, 19/10/2026). Moteur de pli : StPageFlip 2.0.7 (MIT, lib/). Préfixe .lis- pour ne rien toucher d'autre. */
/* ORD ICONS-TIGHT +1 (Benjamin 22/10 16h35 : « changer la couleur des bandes noires pour mettre un truc un peu moins agressif (un marron foncé
   ou un truc plus en rapport avec notre ui ») : bandes du haut et du bas au brun foncé de la charte (--ink de coloriage.css), texte clair #ecf5fb à 12,4:1. */
.lis-cadre { --lis-bande: var(--ink, #3b2a1c); }
.lis-cadre { position: relative; width: 100%; height: 480px; background: var(--lis-bande); overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; touch-action: none; border-radius: 8px; }
.lis-cadre [hidden] { display: none !important; }
.lis-cadre:fullscreen { height: 100vh; border-radius: 0; }
.lis-scene { position: absolute; left: 0; right: 0; top: 44px; bottom: 44px; display: flex; align-items: center; justify-content: center; transform-origin: 0 0; transition: transform .25s ease-out;
  background:
    repeating-linear-gradient(90deg, rgba(90,60,30,.06) 0 2px, transparent 2px 9px, rgba(90,60,30,.04) 9px 11px, transparent 11px 23px),
    repeating-linear-gradient(0deg, rgba(120,80,40,.10) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, #d9b98e, #e8cfa6 35%, #d6b386 60%, #e6cba1); }
.lis-cadre.lis-zoom .lis-scene { transition: none; cursor: grab; }
.lis-cadre.lis-zoom.lis-glisse .lis-scene { cursor: grabbing; }
.lis-livre { position: relative; max-width: 100%; max-height: 100%; }
.lis-page { background: #fff; overflow: hidden; box-shadow: 0 0 15px rgba(40,40,40,.7); }
.lis-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* StPageFlip injecte « .stf__parent canvas { position:absolute; width:100%; height:100% } » pour son mode canvas : on le neutralise pour nos pages. */
.lis-cadre .lis-page canvas, .lis-cadre .lis-page img { position: static !important; max-width: 92%; max-height: 92%; width: auto !important; height: auto !important; left: auto !important; top: auto !important; display: block; pointer-events: none; }
.lis-cadre .lis-page img.lis-attente { filter: blur(3px); opacity: .5; animation: lis-respire 1.8s ease-in-out infinite; }
.lis-spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 4px solid rgba(255,255,255,.75); border-top-color: #c2452f; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25); animation: lis-tourne .9s linear infinite; }
.lis-page.lis-couv .lis-spin { top: 62%; }
@keyframes lis-respire { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
@keyframes lis-tourne { to { transform: rotate(360deg); } }
.lis-page .lis-tag { position: absolute; bottom: 4px; left: 8px; right: 8px; text-align: center; font-size: .62rem; color: #6b5a4a; }
.lis-page.lis-couv { background: #fdf6ea; border-left: 10px solid #6b4a30; }
.lis-page.lis-couv .lis-in { flex-direction: column; justify-content: flex-start; padding-top: 9%; }
.lis-page.lis-couv .lis-t { font-family: Fraunces, Georgia, serif; font-weight: 700; color: #3b2a1c; font-size: 1.25rem; text-align: center; margin: 0; }
.lis-page.lis-couv .lis-n { font-family: Fraunces, Georgia, serif; font-weight: 700; color: #c2452f; font-size: 1.5rem; min-height: 1.3em; margin: 4px 0 10px; text-align: center; }
.lis-page.lis-couv canvas, .lis-page.lis-couv img { max-width: 62%; max-height: 56%; border: 6px solid #fff; box-shadow: 0 2px 8px rgba(59,42,28,.2); }
.lis-page.lis-dos { background: #fdf6ea; border-right: 10px solid #6b4a30; color: #3b2a1c; font-family: Fraunces, Georgia, serif; text-align: center; }
.lis-page.lis-dos .lis-in { flex-direction: column; padding: 20px; }
.lis-page.lis-dos small { color: #c2452f; margin-top: 8px; }
.lis-page.lis-libre { color: #6b5a4a; text-align: center; font-size: .9rem; }
.lis-page.lis-libre .lis-in { flex-direction: column; padding: 20px; }
.lis-page.lis-libre .lis-libre-plus { width: 30px; height: 30px; border: 1.5px dashed #d5b28b; border-radius: 50%; color: #c9a27a; font: 400 22px/27px system-ui, sans-serif; text-align: center; opacity: .8; } /* ORD PAGES-LIBRES : page blanche, petit « + » discret à l'aperçu */
.lis-cadre.lis-revue .lis-libre-plus { display: none; }
.stf__parent.--landscape .lis-page.--left:not(.--hard) { box-shadow: 0 0 15px rgba(40,40,40,.7), inset -40px 0 40px -34px rgba(60,60,60,.6); }
.stf__parent.--landscape .lis-page.--right:not(.--hard) { box-shadow: 0 0 15px rgba(40,40,40,.7), inset 40px 0 40px -34px rgba(60,60,60,.6); }
.lis-fleche { position: absolute; top: 44px; bottom: 44px; width: 64px; border: 0; background: transparent; cursor: pointer; opacity: .9; padding: 0; }
.lis-fleche::before { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border: 4px solid #fff; border-right: 0; border-bottom: 0; transform: translate(-30%, -50%) rotate(-45deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.lis-fleche.lis-prev { left: 0; }
.lis-fleche.lis-next { right: 0; }
.lis-fleche.lis-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.lis-fleche:disabled { opacity: .25; cursor: default; }
/* Écran tactile : les flèches restent un repère visuel, le doigt passe au travers (sinon un glissement parti du bord tombe sur le bouton et ne tourne rien). */
@media (hover: none) and (pointer: coarse) { .lis-fleche { pointer-events: none; } }
.lis-fleche:focus { outline: none; }
.lis-cadre.lis-zoom .lis-fleche, .lis-cadre.lis-zoom .lis-haut, .lis-cadre.lis-minis .lis-fleche { display: none; }
.lis-haut, .lis-bas { position: absolute; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 18px; z-index: 5; margin: 0; }
.lis-haut { top: 0; justify-content: flex-end; padding-right: 8px; }
.lis-bas { bottom: 0; background: var(--lis-bande); }
.lis-ico { width: 40px; height: 40px; min-width: 40px; min-height: 40px; border: 0; border-radius: 6px; background: transparent; color: #ecf5fb; cursor: pointer; font: 26px/1 Georgia, serif; position: relative; padding: 0; }
.lis-ico:hover { background: rgba(255,255,255,.08); }
.lis-ico:focus { outline: none; } .lis-ico:focus-visible { outline: 2px solid #ffd98a; outline-offset: -2px; }
.lis-grille { position: absolute; inset: 11px; background:
  linear-gradient(#ecf5fb, #ecf5fb) 0 0/8px 8px no-repeat, linear-gradient(#ecf5fb, #ecf5fb) 100% 0/8px 8px no-repeat,
  linear-gradient(#ecf5fb, #ecf5fb) 0 100%/8px 8px no-repeat, linear-gradient(#ecf5fb, #ecf5fb) 100% 100%/8px 8px no-repeat; }
.lis-i-first, .lis-i-last, .lis-i-plein { position: absolute; inset: 12px; }
.lis-i-first::before, .lis-i-last::before { content: ""; position: absolute; top: 3px; width: 9px; height: 9px; border: 2px solid #ecf5fb; border-right: 0; border-bottom: 0; transform: rotate(-45deg); left: 6px; }
.lis-i-first::after, .lis-i-last::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #ecf5fb; left: 2px; }
.lis-i-last::before { transform: rotate(135deg); left: auto; right: 6px; }
.lis-i-last::after { left: auto; right: 2px; }
.lis-i-plein::before { content: ""; position: absolute; inset: 0; border: 2px solid #ecf5fb; border-radius: 2px; }
.lis-i-plein::after { content: ""; position: absolute; inset: 5px; border: 2px dashed #ecf5fb; }
.lis-numero { min-width: 120px; height: 34px; border: 0; border-radius: 4px; background: transparent; color: #ecf5fb; font: 14px Georgia, serif; cursor: pointer; }
.lis-numero:hover { background: rgba(255,255,255,.08); }
/* ORD PLUS-DE-16 (Benjamin 22/10 ~18h20) : supplément de pages un peu jauni (lié au nombre de pages), plein écran en 4 coins, marge sous le livre
   (toujours, « pour pas que ca soit trop collé au bas ») et, sous une page au-delà des 16 aperçus, sa phrase en blanc ombré de noir. */
.lis-supp { color: #f2d27a; font: 700 14px system-ui, sans-serif; white-space: nowrap; }
.lis-btn-plein .lis-svg-plein { position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -11px; }
.lis-scene { padding-bottom: 26px; box-sizing: border-box; }
.lis-legende { position: absolute; left: 8px; right: 8px; bottom: 46px; margin: 0; z-index: 4; text-align: center; color: #fff; font: 600 13px/1.25 system-ui, sans-serif; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; }
.lis-cadre .lis-page.lis-tard canvas, .lis-cadre .lis-page.lis-tard img:not(.lis-attente) { opacity: .75; border-radius: 12px; }
.lis-aller { display: flex; gap: 6px; margin: 0; }
.lis-aller input { width: 70px; height: 34px; border: 0; border-radius: 4px; padding: 0 8px; font: 16px Georgia, serif; }
.lis-aller button { height: 34px; min-height: 34px; border: 0; border-radius: 4px; background: #fff; cursor: pointer; font-size: 18px; padding: 0 10px; }
.lis-loupe { position: absolute; top: 44px; right: 8px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lis-loupe .lis-ico { background: rgba(0,0,0,.55); color: #fff; }
.lis-minicarte { position: relative; width: 120px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); display: flex; }
.lis-minicarte img { width: 50%; display: block; }
.lis-minicarte img:only-of-type { width: 50%; margin: 0 auto; }
.lis-cadrevue { position: absolute; border: 2px solid #3cb043; background: rgba(60,176,67,.12); pointer-events: none; }
.lis-bulle { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 4px; pointer-events: none; z-index: 6; white-space: nowrap; }
.lis-miniatures { position: absolute; left: 0; right: 0; top: 44px; bottom: 44px; z-index: 7; background: rgba(51,51,51,.88); overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; align-content: start; }
.lis-miniatures figure { margin: 0; text-align: center; cursor: pointer; }
.lis-miniatures img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 3px solid transparent; background: #fff; }
.lis-miniatures figure.lis-courante img { border-color: #e4473f; }
.lis-miniatures figcaption { color: #fff; font-size: .8rem; margin-top: 3px; }
@media (min-width: 720px) { .lis-fleche { width: 90px; } .lis-numero { min-width: 150px; } .lis-minicarte { width: 180px; } .lis-haut, .lis-bas { gap: 40px; } }
/* ORD CROP-IN-BOOK (Tech2, 20/10/2026 ; p1190b, liseuse construite avec opts.edit => classe lis-v2) : flèches hors du livre, cadrage dans la page. */
.lis-cadre.lis-v2 .lis-page canvas, .lis-cadre.lis-v2 .lis-page img { pointer-events: auto; cursor: pointer; }
.lis-cadre.lis-v2 .lis-fleche { pointer-events: auto; background: var(--lis-bande); opacity: 1; }
.lis-cadre.lis-v2:not(.lis-etroit) .lis-scene { left: 64px; right: 64px; }
@media (min-width: 720px) { .lis-cadre.lis-v2:not(.lis-etroit) .lis-scene { left: 90px; right: 90px; } }
.lis-cadre.lis-v2.lis-etroit .lis-fleche { top: auto; bottom: 0; height: 44px; width: 52px; z-index: 6; }
.lis-cadre.lis-v2.lis-etroit .lis-fleche::before { width: 15px; height: 15px; border-width: 3px; }
.lis-cadre.lis-v2.lis-etroit .lis-bas { padding: 0 52px; gap: 8px; }
.lis-cadre.lis-v2.lis-etroit .lis-numero { min-width: 92px; }
.lis-edit { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; background: #333; }
.lis-edit.lis-glisse { cursor: grabbing; }
.lis-edit::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #e4473f; pointer-events: none; }
.lis-cadre .lis-page .lis-edit img { position: absolute !important; left: 0 !important; top: 0 !important; max-width: none; max-height: none; transform-origin: 0 0; pointer-events: none; cursor: inherit; }
.lis-page.lis-editing .lis-in > :not(.lis-edit) { visibility: hidden; }
.lis-edition { position: absolute; top: 0; left: 0; right: 48px; height: 44px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 0 8px; color: #fff; font-size: .8rem; }
/* ORD CROP-MODE-ICONS : la zone beige gagne 56 px au-dessus du livre (lis-modebar) ; les 2 boutons de mode y vivent, rien sur le dessin. */
.lis-cadre.lis-modebar .lis-scene { padding-top: 56px; box-sizing: border-box; }
.lis-modes { position: absolute; top: 50px; left: 0; right: 0; height: 44px; z-index: 6; display: flex; justify-content: center; gap: 10px; pointer-events: none; }
.lis-mode { pointer-events: auto; display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px 0 8px; border: 2px solid rgba(90, 60, 30, .35); border-radius: 22px; background: rgba(255, 255, 255, .6); color: #6b4a2b; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.lis-mode[aria-pressed="true"] { background: #fff; border-color: #b5542a; color: #b5542a; box-shadow: 0 1px 4px rgba(90, 60, 30, .3); }
.lis-mode:focus-visible { outline: 3px solid #b5542a; outline-offset: 2px; }
.lis-mode svg { flex: none; }
.lis-mode:disabled { opacity: .45; cursor: default; } /* PERSO-V3-B2 : couverture affichée, rien à régler */
/* ORD PERSO-V3-B : 3 icônes de pages blanches à gauche de la bande, Remplir / Image entière à droite (plus au centre). */
.lis-blanks { position: absolute; top: 50px; left: 8px; height: 44px; z-index: 6; display: flex; gap: 6px; }
.lis-blank { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 5px; border: 2px solid rgba(90, 60, 30, .35); border-radius: 22px; background: rgba(255, 255, 255, .6); color: #6b4a2b; cursor: pointer; }
.lis-blank[aria-pressed="true"] { background: #fff; border-color: #b5542a; color: #b5542a; box-shadow: 0 1px 4px rgba(90, 60, 30, .3); }
.lis-blank:focus-visible { outline: 3px solid #b5542a; outline-offset: 2px; }
.lis-blank svg { flex: none; }
.lis-cadre.lis-blankbar .lis-modes { left: auto; right: 8px; justify-content: flex-end; gap: 6px; }
/* ORD CROP-PAR-PAGE : pages blanches au centre de la bande ; une paire Remplir / Image entière au-dessus de chaque page de dessin. */
.lis-cadre.lis-v2.lis-modesvues .lis-blanks, .lis-cadre.lis-v2.lis-modesvues:not(.lis-etroit) .lis-blanks { left: 50%; right: auto; transform: translateX(-50%); }
/* UPD CROP-PAR-PAGE (Benjamin 22/10 15h50 : « cet option concerne les livre dans son ensemble alors que les icon de rognage concerne les pages ») :
   rangée du haut = 3 icônes de pages blanches au centre ; 14 px plus bas, rangée des paires, chacune juste au-dessus de sa page. */
.lis-cadre.lis-modebar.lis-modesvues .lis-scene { padding-top: 114px; }
.lis-pmodes { position: absolute; top: 108px; height: 44px; z-index: 6; display: flex; gap: 6px; }
.lis-pmodes[hidden] { display: none; }
.lis-pmodes .lis-mode span { display: none; } .lis-pmodes .lis-mode { padding: 0 8px; }
.lis-cadre.lis-zoom .lis-pmodes, .lis-cadre.lis-minis .lis-pmodes { display: none; }
/* ORD PHOTO-SENS : « Pivoter » dans le coin bas extérieur de chaque page de dessin (rond, comme les paires ; 40 px, 36 au téléphone) */
.lis-ppiv { position: absolute; z-index: 6; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(90, 60, 30, .35); border-radius: 50%; background: rgba(255, 255, 255, .88); color: #6b4a2b; box-shadow: 0 1px 4px rgba(90, 60, 30, .3); cursor: pointer; pointer-events: auto; }
.lis-ppiv[hidden], .lis-cadre.lis-zoom .lis-ppiv, .lis-cadre.lis-minis .lis-ppiv { display: none; }
.lis-ppiv:focus-visible { outline: 3px solid #b5542a; outline-offset: 2px; } .lis-ppiv svg { flex: none; }
@media (max-width: 599px) { .lis-ppiv { width: 36px; height: 36px; } .lis-ppiv svg { width: 20px; height: 20px; } }
/* ORD CROP-PAR-PAGE-2 (Benjamin 16h15 : « un peu reduire leur taille [...] surtout en mobile ») : 40 px sur ordinateur, 36 px sur téléphone ; 2 rangées partout, 18 px entre elles. */
.lis-cadre.lis-modesvues .lis-blanks, .lis-pmodes { height: 40px; }
.lis-cadre.lis-modesvues .lis-blank, .lis-pmodes .lis-mode { min-height: 40px; min-width: 40px; }
.lis-cadre.lis-modesvues .lis-blank svg { width: 30px; height: 24px; } .lis-pmodes .lis-mode svg { width: 22px; height: 22px; }
/* ORD ICONS-TIGHT (Benjamin 16h30 : « trop d'espace aussi entre les 2 lignes d'icon [...] tricher un peu avec du -npx ») : bande réduite, la
   rangée des paires mord sur celle des pages blanches (le JS pose chaque paire 2 px au-dessus de sa page, cf. modeSync). */
.lis-cadre.lis-modebar.lis-modesvues .lis-scene { padding-top: 66px; }
@media (max-width: 599px) { .lis-cadre.lis-modebar.lis-modesvues .lis-scene { padding-top: 58px; } }
@media (max-width: 599px) { .lis-cadre.lis-modesvues .lis-blanks, .lis-pmodes { height: 36px; } .lis-pmodes { top: 104px; }
  .lis-cadre.lis-modesvues .lis-blank, .lis-pmodes .lis-mode { min-height: 36px; min-width: 36px; }
  .lis-cadre.lis-modesvues .lis-blank svg { width: 26px; height: 21px; } .lis-pmodes .lis-mode svg { width: 20px; height: 20px; } }
@media (max-width: 599px) { .lis-cadre.lis-modesvues .lis-blanks, .lis-pmodes { gap: 4px; } .lis-cadre.lis-modesvues .lis-blank { padding: 0; } .lis-pmodes .lis-mode { padding: 0; justify-content: center; } } /* 390 px : 7 boutons de 44 px sans se toucher */
@media (max-width: 599px) { .lis-cadre.lis-blankbar .lis-mode span { display: none; } .lis-cadre.lis-blankbar .lis-mode { padding: 0 8px; } }
/* dans la bande beige (la scène), pas sur le fond noir des flèches */
.lis-cadre.lis-v2:not(.lis-etroit) .lis-blanks { left: 72px; } .lis-cadre.lis-v2.lis-blankbar:not(.lis-etroit) .lis-modes { right: 72px; }
@media (min-width: 720px) { .lis-cadre.lis-v2:not(.lis-etroit) .lis-blanks { left: 98px; } .lis-cadre.lis-v2.lis-blankbar:not(.lis-etroit) .lis-modes { right: 98px; } }
.lis-edition span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lis-edition button { height: 34px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }
.lis-edition .lis-btn-ok { background: #b5542a; color: #fff; }
.lis-edition .lis-btn-annuler { background: transparent; color: #fff; }
.lis-edition .lis-btn-pivoter { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); } /* ORD PHOTO-SENS */
.lis-edition .lis-btn-pivoter[hidden] { display: none; }
.lis-cadre.lis-cadrage .lis-haut { display: none; }
/* ORD APERCU-LIVRE-OUVERT (T132) : à l'aperçu, livre ouvert ; couverture et dos absents des miniatures, dos vide s'il partage la dernière double page. */
.lis-ouvert .lis-miniatures .lis-mini-couv { display: none; }
.lis-ouvert .lis-page.lis-dos { background: #fff; border-right: 0; } .lis-ouvert .lis-page.lis-dos .lis-in { visibility: hidden; }
/* PARCOURS-A (Benjamin 27/10, parcours EverFold) : avec opts.menu, le doigt posé sur le livre fait défiler la page ; zoom et cadrage gardent tous les gestes. */
.lis-cadre.lis-defile { touch-action: pan-y; }
.lis-cadre.lis-defile.lis-zoom, .lis-cadre.lis-defile.lis-cadrage { touch-action: none; }
.lis-modif { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 3; min-height: 36px; padding: 0 16px; border: 0; border-radius: 18px; background: rgba(59,42,28,.82); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.lis-cadre.lis-cadrage .lis-modif, .lis-cadre.lis-zoom .lis-modif { display: none; }
/* PARCOURS-B : page en attente « Dessin en cours… » ; bande de miniatures sous le livre en page unique (téléphone). */
.lis-encours { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 30px); z-index: 2; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.92); color: #3b2a1c; font-size: .8rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
.lis-bande { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 4px; margin-top: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.lis-bande[hidden] { display: none; }
.lis-bande figure { flex: 0 0 52px; margin: 0; text-align: center; cursor: pointer; }
.lis-bande img { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; background: #fff; box-sizing: border-box; }
.lis-bande .lis-courante img { border-color: #c2452f; }
.lis-bande figcaption { font-size: 11px; line-height: 16px; color: #3b2a1c; }

/* SIMPLE-VIEWER (Benjamin 28/10) : une page dans un cadre blanc arrondi, boutons ronds autour de « Page N sur M », bande de miniatures dessous */
.lis-cadre.lis-simple { height: auto !important; background: transparent; overflow: visible; touch-action: auto; border-radius: 0; user-select: auto; -webkit-user-select: auto; }
.lis-simple .lsv-page { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fff; border: 1px solid #e3d5c0; border-radius: 14px; overflow: hidden; touch-action: pan-y; box-sizing: border-box; }
.lis-simple[data-format="a4"] .lsv-page { aspect-ratio: 210 / 297; }
.lis-simple .lsv-page .lis-page { position: absolute; inset: 0; box-shadow: none; border: 0; }
.lis-simple .lsv-page .lis-page.lis-couv, .lis-simple .lsv-page .lis-page.lis-dos { border: 0; background: #fdf6ea; }
.lis-simple .lsv-page .lis-page canvas, .lis-simple .lsv-page .lis-page img { pointer-events: auto; cursor: default; }
/* ORD DOS-PLEIN-CADRE (Benjamin 28/10 : « pour la 4e de couv on veut les 2 mêmes couleurs entre le BG et le carré encadrant ») : le dos imprimé remplit la page comme la couverture, ni marge ni cadre ni 2e couleur autour */
.lis-simple .lsv-page .lis-page.lis-dos { background: transparent; }
.lis-simple .lsv-page .lis-page.lis-dos .lis-in { padding: 0 !important; margin: 0 !important; }
.lis-simple .lsv-page .lis-page.lis-dos .couv-dos { position: absolute !important; inset: 0; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; display: block; }

/* Benjamin 28/10 : « Modifier » en haut à droite de la page (comme EverFold), seul le bouton ouvre le menu */
.lis-simple .lis-modif { left: auto; right: 10px; top: 10px; bottom: auto; transform: none; min-height: 34px; padding: 0 12px; border: 1px solid #e6dccf; border-radius: 10px; background: rgba(255,255,255,.92); color: #3b2a1c; font-weight: 700; box-shadow: 0 1px 4px rgba(59,42,28,.12); }
.lis-simple .lsv-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.lis-simple .lsv-lab { min-width: 150px; text-align: center; font-weight: 700; color: #3b2a1c; }
.lis-simple .lsv-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d5b28b; background: #fff; color: #3b2a1c; font: 700 26px/1 system-ui, sans-serif; padding: 0 0 3px; cursor: pointer; }
.lis-simple .lsv-btn:disabled { opacity: .35; cursor: default; }
.lis-simple .lis-libre-plus { cursor: pointer; }
/* Benjamin 28/10 : miniatures comme le modèle, 20 % plus grandes (84 px de large ; A4 en hauteur) */
.lis-simple + .lis-bande { gap: 10px; }
.lis-simple + .lis-bande figure { flex: 0 0 84px; }
.lis-simple + .lis-bande img { width: 84px; height: 84px; border-radius: 8px; border: 2px solid #e6dccf; }
.lis-simple[data-format="a4"] + .lis-bande img { height: 119px; }
.lis-simple + .lis-bande .lis-courante img { border-color: #c2452f; }
.lis-simple + .lis-bande figcaption { font-size: 12px; line-height: 18px; }
.lis-bande .lis-courante img { border-color: #c2452f; }
/* GEN-PROGRESSIVE (29/10, opts.generer, p1190e) : page au-delà des 16 aperçus = phrase + bouton « Générer » sous la page ; pastille « Générer » sur la vignette */
.lis-gen { margin: 10px auto 0; max-width: 320px; text-align: center; }
.lis-simple .lsv-page > .lis-gen { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-width: none; margin: 0; padding: 12px 16px 14px; background: rgba(255, 255, 255, .92); border-top: 1px solid #e3d5c0; pointer-events: auto; }
.lis-gen p { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: #6b5a4a; }
.lis-genbtn { min-height: 44px; padding: 0 22px; border: 0; border-radius: 22px; background: #c2452f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.lis-bande figure { position: relative; }
.lis-genvig { position: absolute; left: 0; right: 0; top: 0; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .78); color: #c2452f; font: inherit; font-size: 11px; font-weight: 700; line-height: 14px; cursor: pointer; }
.lis-simple + .lis-bande .lis-genvig { height: 52px; }
