/* Couvertures cliquables : les formats et compositions de la page sont conservés. */
.books-preview-hint{margin:11px 0 0;color:#768079;font:400 10px/1.65 var(--ei-sans,'Manrope',sans-serif)}
.books-preview-cover,.books-preview-composition{display:block;position:relative;color:inherit;text-decoration:none}
[data-book-preview]{cursor:zoom-in}
.books-classic-cover[data-book-preview],.books-volume-cover[data-book-preview]{position:relative}
[data-book-preview]:focus-visible{outline:2px solid #8d7150;outline-offset:6px;border-radius:3px}
.books-classic-cover[data-book-preview]:after,.books-volume-cover[data-book-preview]:after,.books-preview-cover:after,.books-preview-composition:after,.books-destin-art-link[data-book-preview]:after{content:'';position:absolute;right:9px;bottom:9px;width:28px;height:28px;border-radius:50%;background:#faf8f3ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23244f51' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 5 5M10 7v6M7 10h6'/%3E%3C/svg%3E") center/16px no-repeat;box-shadow:0 1px 7px #123c4220;pointer-events:none;z-index:30}
.books-destin-art-link[data-book-preview]{position:relative;display:block}
.books-pacte-cover>.books-preview-cover>img{display:block;width:100%;height:auto;object-fit:contain;position:relative;border-radius:2px 5px 5px 2px;box-shadow:5px 14px 25px #153e4230,1px 2px 4px #153e4233}
.books-symbolic-book>.books-preview-cover{margin-bottom:19px}
.books-symbolic-book>.books-preview-cover>img{display:block;width:100%;height:260px;object-fit:contain;filter:drop-shadow(3px 6px 6px #29442d26)}

/* Dialogue natif : couverture entière en mode ajusté, défilement libre après zoom. */
.books-preview{box-sizing:border-box;width:min(1120px,calc(100vw - 44px));height:min(930px,calc(100vh - 44px));height:min(930px,calc(100dvh - 44px));max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid #d9cdb7;border-radius:12px;background:#faf8f3;color:#244f51;box-shadow:0 24px 100px #102f4166;font-family:var(--ei-sans,'Manrope',sans-serif);text-align:left}
.books-preview[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.books-preview::backdrop{background:#102b3cd6;backdrop-filter:blur(5px)}
.books-preview *{box-sizing:border-box}
.books-preview [hidden]{display:none!important}
.books-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0;padding:19px 24px 16px;border-bottom:1px solid #ded8ca;background:#faf8f3}
.books-preview-heading{min-width:0}
.books-preview-eyebrow{margin:0 0 5px;font:600 9px/1.5 var(--ei-sans,'Manrope',sans-serif);color:#8b7041;letter-spacing:1.65px;text-transform:uppercase}
.books-preview-title{margin:0;color:#244f51;font:500 29px/1.05 var(--ei-serif,'Cormorant Garamond',serif);letter-spacing:-.25px}
.books-preview-subtitle{margin:7px 0 0;color:#60736e;font:400 11px/1.55 var(--ei-sans,'Manrope',sans-serif)}
.books-preview button,.books-preview-action{font-family:var(--ei-sans,'Manrope',sans-serif);-webkit-tap-highlight-color:transparent}
.books-preview button{margin:0;cursor:pointer}
.books-preview button:focus-visible,.books-preview a:focus-visible,.books-preview summary:focus-visible,.books-preview-viewport:focus-visible,.books-preview-transcript-text:focus-visible{outline:2px solid #987c48;outline-offset:3px}
.books-preview button:disabled{opacity:.32;cursor:default}
.books-preview-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:1px solid #d9d2c2;border-radius:50%;background:transparent;color:#244f51}
.books-preview-icon-button:not(:disabled):hover{background:#eeeadd;border-color:#b7a782}
.books-preview button svg{display:block;width:21px;height:21px;flex:none}
.books-preview-close{margin-top:0!important;background:#f3efe6;flex-shrink:0}
.books-preview-viewport{position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;background:radial-gradient(ellipse at 50% 48%,#fffdfa 0%,#eee9dd 100%);scrollbar-width:thin;scrollbar-gutter:stable;scrollbar-color:#bbad92 #eee9dd}
.books-preview-canvas{display:grid;place-items:center;width:max-content;min-width:100%;min-height:100%;padding:23px}
.books-preview-sheet{position:relative;flex:none;max-width:none;max-height:none;opacity:1;box-shadow:4px 9px 24px #203b4133;border-radius:2px;transition:opacity .16s ease}
.books-preview-sheet.is-loading{opacity:0}
.books-preview-image{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:2px}
.books-preview.is-zoomed .books-preview-viewport{touch-action:auto}
.books-preview.is-zoomed .books-preview-canvas{align-items:start}
.books-preview-feedback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:28px;pointer-events:none;text-align:center;color:#65716b;font:400 12px/1.7 var(--ei-sans,'Manrope',sans-serif)}
.books-preview-feedback p{margin:0;max-width:340px}
.books-preview-retry{pointer-events:auto;padding:9px 14px;min-height:44px;color:#244f51;background:#faf8f3;border:1px solid #bbaa88;border-radius:5px;font-size:12px}
.books-preview-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 24px;padding:13px 23px;background:#faf8f3;border-top:1px solid #ded8ca}
.books-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.books-preview-zoom{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;flex-shrink:0;border:1px solid #d9d2c2;border-radius:6px;background:transparent;color:#244f51;font-size:11px}
.books-preview-zoom:not(:disabled):hover{background:#eeeadd}
.books-preview-pagination{display:flex;align-items:center;justify-content:center;gap:9px}
.books-preview-pagination .books-preview-icon-button{width:40px;height:40px;flex-basis:40px}
.books-preview-counter{margin:0;min-width:120px;max-width:220px;text-align:center;color:#60736e;font:500 10px/1.5 var(--ei-sans,'Manrope',sans-serif)}
.books-preview-action{display:flex;align-items:center;justify-content:center;min-height:46px;max-width:340px;padding:12px 20px;border:1px solid #244f51;border-radius:5px;background:#244f51;color:#fffdf5;text-decoration:none;text-align:center;font-size:11px;font-weight:600;line-height:1.6;transition:background .15s}
.books-preview-action:hover{background:#173e42;color:#fffdf5}
.books-preview-transcript{grid-column:1/-1;min-width:0;border-bottom:1px solid #e3ddcf;padding-bottom:8px}
.books-preview-transcript summary{width:fit-content;max-width:100%;padding:4px 0;color:#64746c;font-size:11px;line-height:1.6;cursor:pointer}
.books-preview-transcript summary::marker{color:#8b7041}
.books-preview-transcript-text{max-height:min(23dvh,220px);overflow:auto;overscroll-behavior:contain;padding:14px 17px;margin-top:9px;background:#f1ede3;border-radius:5px;white-space:pre-wrap;color:#344e4a;font-size:13px;line-height:1.85;scrollbar-width:thin}

/* Le titrage reste proportionnel à l’illustration du livret, y compris au zoom. */
.books-preview-personal{position:absolute;inset:0;color:#24585e;border:1px solid #c7b58b66;pointer-events:none}
.books-preview-personal:before{content:'';position:absolute;inset:2.5%;border:1px solid #bda57466}
.books-preview-personal-heading{position:absolute;top:5%;left:7%;right:7%;text-align:center}
.books-preview-personal-eyebrow{display:block;margin:0 0 calc(var(--preview-cover-width)*.03);font:600 calc(var(--preview-cover-width)*.035)/1.5 var(--ei-sans,'Manrope',sans-serif);letter-spacing:calc(var(--preview-cover-width)*.005);text-transform:uppercase;color:#8c7754}
.books-preview-personal-title{display:block;font:500 calc(var(--preview-cover-width)*.15)/.94 var(--ei-serif,'Cormorant Garamond',serif);letter-spacing:.1px}
.books-preview-personal-title em{display:block;font:400 calc(var(--preview-cover-width)*.165)/1 'Caveat',cursive;color:#426b67}
.books-preview-personal-author{position:absolute;left:5%;right:5%;bottom:4%;text-align:center;font:500 calc(var(--preview-cover-width)*.035)/1.4 var(--ei-sans,'Manrope',sans-serif);letter-spacing:calc(var(--preview-cover-width)*.008);text-transform:uppercase;color:#796846}

@media(max-width:1000px){.books-symbolic-book>.books-preview-cover>img{height:220px}.books-preview-footer{gap:10px 16px}.books-preview-action{max-width:260px;padding-inline:14px}.books-preview-counter{min-width:95px;max-width:170px}.books-preview-toolbar{gap:12px}.books-preview-pagination{gap:6px}}
@media(max-width:650px){
  .books-pacte-cover>.books-preview-cover>img{box-shadow:3px 7px 14px #173f4530}
  .books-symbolic-book>.books-preview-cover{margin-bottom:14px}
  .books-symbolic-book>.books-preview-cover>img{height:205px}
  .books-classic-cover[data-book-preview]:after,.books-volume-cover[data-book-preview]:after,.books-preview-cover:after,.books-preview-composition:after,.books-destin-art-link[data-book-preview]:after{width:25px;height:25px;right:5px;bottom:5px;background-size:14px}
  .books-preview{width:100%;height:100%;height:100dvh;border:0;border-radius:0;margin:0}
  .books-preview-header{gap:14px;padding:calc(12px + env(safe-area-inset-top)) 15px 12px}
  .books-preview-eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:4px}
  .books-preview-title{font-size:24px;line-height:1.08}
  .books-preview-subtitle{font-size:10px;line-height:1.5;margin-top:5px}
  .books-preview-canvas{padding:17px}
  .books-preview-footer{grid-template-columns:minmax(0,1fr);gap:9px;padding:11px 15px calc(12px + env(safe-area-inset-bottom))}
  .books-preview-toolbar{gap:10px}
  .books-preview-pagination{gap:4px}
  .books-preview-pagination .books-preview-icon-button{width:44px;height:44px;flex-basis:44px}
  .books-preview-counter{min-width:90px;max-width:140px;font-size:9px}
  .books-preview-zoom{padding-inline:10px;font-size:10px;gap:5px}
  .books-preview-action{max-width:none;width:100%;min-height:45px;font-size:11px;padding-block:10px}
  .books-preview-transcript{padding-bottom:5px}
  .books-preview-transcript-text{font-size:12px;padding:12px 14px;max-height:22dvh}
}
@media(max-width:360px){.books-symbolic-book>.books-preview-cover>img{height:178px}.books-preview-title{font-size:22px}.books-preview-header{padding-inline:12px}.books-preview-footer{padding-inline:10px}.books-preview-zoom{padding-inline:7px}.books-preview-counter{min-width:75px;max-width:110px}.books-preview-pagination{gap:2px}}
@media(max-height:520px){.books-preview-header{padding-block:8px}.books-preview-title{font-size:22px}.books-preview-subtitle{font-size:9px}.books-preview-footer{padding-block:8px;gap:7px}.books-preview-transcript-text{max-height:18dvh}.books-preview-canvas{padding:13px}}
@media(prefers-reduced-motion:reduce){.books-preview-sheet,.books-preview-action{transition:none}}
