:root{--marine:#0d2955;--accent:#1657d3;--text:#11264b;--muted:#64769b;--surface:#fff;--border:#e3e8f2;--shadow:0 8px 25px #102e531f;--radius:15px;--top:69px;--bottom:67px;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--text)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{background:#d5e9fc;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}img{max-width:100%}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{color:#102854}h1,h2,.serif{font-family:Georgia,'Times New Roman',serif}h1{font-size:clamp(29px,2.9vw,48px)}h2{font-size:20px}h3{font-size:17px}.sr{position:absolute;left:-9999px}.icon{width:21px;height:21px;vertical-align:middle;object-fit:contain;flex-shrink:0}.icon-lg{width:30px;height:30px}.icon-sm{width:17px;height:17px}.frame{height:100dvh;display:flex;flex-direction:column;position:relative;background:url('../assets/images/fond-ciel.png') center center / cover no-repeat}.frame:before{content:'';position:absolute;inset:0;background:linear-gradient(#dae9ff18,#d8b89a1a);pointer-events:none}.header,.footer{position:relative;z-index:20;flex:none}.header{max-width:1330px;width:calc(100% - 50px);margin:0 auto;height:var(--top);background:#fff;display:flex;align-items:center;gap:17px;padding:5px 23px;border-radius:0 0 13px 13px;box-shadow:0 3px 16px #14294d24}.brand{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:none}.brand img{width:44px;height:35px}.brand-word{font-family:Georgia,serif;font-style:italic;font-weight:800;font-size:31px;letter-spacing:-2px;color:#0b1d46}.tagline{font-size:12px;color:#7887a9;max-width:116px;line-height:1.3}.search{display:flex;align-items:center;gap:10px;flex:1;min-width:100px;background:#f0f1f5;border-radius:28px;padding:6px 13px}.search input{width:100%;border:0;outline:0;background:none;color:#0c2b58;font-size:12px}.nav{display:flex;align-items:stretch;gap:9px;height:100%}.nav-link{min-width:68px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;border-radius:8px;color:#152e5d;position:relative}.nav-link:hover,.nav-link.active{background:#f0f6ff}.nav-link.active:after{content:'';position:absolute;bottom:-5px;left:22%;right:22%;height:3px;background:var(--accent);border-radius:5px}.nav-link .icon{width:23px;height:23px}.avatar{border-radius:50%;width:41px;height:41px;object-fit:cover;border:2px solid #d9e2f6}.header-avatar{display:flex;align-items:center;gap:5px}.content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;position:relative;z-index:2;overscroll-behavior:contain}.content>.container{max-width:1380px;padding:17px 16px 30px;margin:auto}.footer{height:var(--bottom);background:linear-gradient(115deg,#0c2951,#09264e);color:#e5eeff;display:flex;align-items:center;justify-content:space-between;padding:0 max(2%,calc((100vw - 1340px)/2));border-radius:13px 13px 0 0;gap:15px}.footer-brand{display:flex;align-items:center;gap:8px;color:#94bbfb;font-weight:700;font-family:Georgia,serif;font-size:23px;font-style:italic}.footer-brand img{width:36px}.footer .nav-link{color:#b3bfd6}.footer .nav-link .icon{filter:grayscale(1) brightness(0) invert(.82)}.footer .nav-link.active .icon{filter:grayscale(1) brightness(0) invert(1)}.footer .nav-link:hover,.footer .nav-link.active{background:#214a7a;color:white}.footer .nav-link.active:after{display:none}.footer .nav{gap:26px}.motto{font-style:italic;font-family:Georgia,serif;color:#b1c2df;white-space:nowrap}.panel{background:#ffffffef;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid #ffffffa6;overflow:hidden}.panel-title{font-weight:800;font-size:15px;display:flex;align-items:center;gap:10px;margin:0 0 14px}.panel-title .icon{width:22px;height:22px}.card-body{padding:17px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);border-radius:12px;background:white;color:#102c61;padding:10px 16px;font-weight:700;min-height:41px;transition:background .15s,transform .15s,box-shadow .15s}.btn:hover{box-shadow:0 4px 12px #17335620;transform:translateY(-1px)}.btn:focus-visible,.nav-link:focus-visible,.icon-btn:focus-visible{outline:3px solid #4287f5;outline-offset:2px}.btn.primary{background:var(--marine);color:white;border-color:#254a7a}.btn.blue{background:var(--accent);color:white;border-color:var(--accent)}.btn.ghost{background:#f3f6fa}.btn.outline{border:2px solid var(--accent);color:var(--accent)}.btn.danger{color:#b31f39}.btn.small{padding:7px 12px;min-height:30px;font-size:12px}.btn.icon-label{flex-direction:column;gap:4px;min-width:75px;min-height:69px;font-size:11px;padding:7px}.btn.icon-label .icon{width:24px;height:24px}.btn.selected,.tab.active,.mode.active{background:#eaf2ff;border:2px solid #1760e6;color:#0848c1}.tabs{display:flex;gap:4px;background:#ffffffed;padding:6px;border-radius:13px;box-shadow:var(--shadow);overflow-x:auto}.tab{padding:10px 13px;border:none;background:transparent;border-radius:8px;color:#183a71;font-weight:650;white-space:nowrap;display:flex;align-items:center;gap:6px}.tab.active{background:var(--marine);color:white;border:0}.tab.active .icon{filter:brightness(0) invert(1)}.grid3{display:grid;grid-template-columns:300px minmax(0,1fr) 296px;gap:15px}.profile-strip{display:flex;align-items:center;gap:22px;padding:15px 23px;margin-bottom:14px;min-height:133px;background:#f4f8ffe8}.profile-strip .avatar{width:107px;height:107px;border:5px solid white;box-shadow:0 0 0 2px #e2e8f9}.profile-strip h1{font-size:34px;margin:0 0 2px}.profile-strip .quote{font-family:Georgia,serif;font-size:16px;font-style:italic;color:#6479a3;line-height:1.55}.profile-stats{display:grid;grid-template-columns:repeat(5,1fr);margin-left:auto;background:#fff;border-radius:12px;overflow:hidden;min-width:490px}.stat{text-align:center;padding:10px 6px;border-right:1px solid #e8ecf3}.stat:last-child{border:none}.stat img{width:28px;height:28px;display:block;margin:0 auto 4px}.stat strong{display:block;font-size:19px}.stat small{display:block;font-size:10px;color:#7283a8}.aside-news .news-card{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #e8ebf0}.news-card:last-child{border:0}.news-thumb{width:95px;height:85px;object-fit:cover;border-radius:9px}.news-card h3{font-size:14px;margin:0 0 4px}.news-card p{font-size:12px;color:#8190ad;line-height:1.4;margin:0 0 6px}.pill{font-size:10px;font-weight:800;color:var(--accent);background:#e6effe;padding:3px 7px;border-radius:8px;display:inline-block}.publications-box{padding:20px 15px;margin-bottom:12px;border-radius:9px;text-align:center;background:#f4f5f8;color:#8391ae;min-height:145px}.publications-box .icon{width:40px;height:40px;opacity:.55;margin:0 auto 10px;display:block}.publications-box h3{font:700 14px 'Segoe UI',sans-serif;color:#6177a4}.shelf-wrap{position:relative;background:url('../assets/images/bibliotheque.png') center center/100% 100% no-repeat;aspect-ratio:1.42;border-radius:6px;min-height:375px;padding:10% 7% 8% 10%;overflow:hidden}.shelf-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:1fr 1fr;column-gap:4%;row-gap:15%;height:100%}.slot{border:2px dashed #ddd2be8c;background:#80533222;border-radius:10px;display:flex;align-items:center;justify-content:center;position:relative;color:#fff0e0;text-align:center;min-width:0}.slot.drag-over{border-color:#7ec2ff;background:#c0e5ff66}.slot .slot-add{border:0;background:none;color:#e6d7c1;text-shadow:0 1px 3px #362213;font-size:27px;line-height:1;display:flex;flex-direction:column;gap:4px;align-items:center}.slot-add span{font:11px 'Segoe UI',sans-serif;max-width:90px}.book-on-shelf{height:97%;max-width:100%;object-fit:contain;filter:drop-shadow(5px 6px 2px #160e0a8c);cursor:grab;touch-action:none}.book-on-shelf:active{cursor:grabbing}.book-controls{position:absolute;right:2px;top:2px;border-radius:10px;background:#fffd;color:#0e2b58;border:none}.after-shelf{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px;margin-top:15px}.progress-track{height:16px;border-radius:25px;background:#e8e9ec;overflow:hidden;flex:1}.progress-track>div{height:100%;background:#2c67b5;border-radius:25px;transition:width .3s}.stats-tiles{display:flex;gap:5px;margin-top:16px}.stats-tiles .stat{border:1px solid #edf1f7;border-radius:8px;flex:1}.feature-author{display:flex;gap:14px}.feature-author img{width:38%;height:178px;object-fit:cover;border-radius:9px}.feature-author p,.album-teaser p{line-height:1.4}.album-teaser{display:flex;gap:12px}.album-teaser>img{width:100px;object-fit:cover;border-radius:5px}.album-teaser .btn{width:100%;margin-top:9px}.assistant-fab{position:fixed;z-index:25;right:18px;bottom:calc(var(--bottom) + 12px);display:flex;align-items:flex-end;flex-direction:column;max-width:340px}.assistant-fab>img{width:135px;height:130px;object-fit:contain;object-position:bottom;cursor:pointer;filter:drop-shadow(0 4px 6px #1828493d)}.assistant-bubble{background:white;box-shadow:var(--shadow);border-radius:16px;padding:12px;font-size:13px;line-height:1.4;max-width:250px}.assistant-fab .btn{font-size:11px}.hero-album{display:grid;grid-template-columns:310px minmax(0,1fr) 165px;gap:28px;align-items:center;padding:12px 25px 25px;min-height:400px}.hero-cover{width:100%;max-height:410px;object-fit:contain;filter:drop-shadow(10px 12px 13px #4336276e)}.hero-album .subtitle{font-size:13px;margin-bottom:10px}.hero-album p{line-height:1.55;max-width:630px}.meta{display:flex;gap:14px;flex-wrap:wrap;margin:18px 0}.meta span{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:650}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.album-bottom{display:grid;grid-template-columns:1fr 295px;gap:12px;margin:8px 0}.page-preview{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.page-preview img{width:100%;max-height:225px;object-fit:cover;object-position:top;border-radius:8px;border:1px solid #dae2ee}.page-preview a{display:block}.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px}.reader-top{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px;margin-bottom:12px}.modes{display:flex;gap:8px}.mode{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid #dfe4ed;border-radius:10px;background:white;padding:10px 5px;font-weight:700;min-height:80px;font-size:11px}.mode .icon{height:25px;width:25px}.paper-stage{background:#fff9ef;border-radius:12px;border:1px solid #d3c2a8;box-shadow:0 5px 15px #2d415122;padding:14px;min-height:375px}.papers{display:grid;gap:10px;max-width:1100px;margin:auto}.papers.single{grid-template-columns:minmax(0,680px);justify-content:center}.papers.double,.papers.scroll-double{grid-template-columns:repeat(2,minmax(0,1fr))}.papers.scroll{grid-template-columns:minmax(0,680px);justify-content:center}.papers img{width:100%;height:auto;max-height:calc(100vh - 280px);object-fit:contain;background:white;display:block;box-shadow:0 3px 12px #0002}.papers.scroll img,.papers.scroll-double img{max-height:none}.reader-side .page-thumbs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.page-thumb{border:2px solid transparent;padding:3px;background:#f5f7fa;border-radius:9px;color:#1d3764}.page-thumb.active{border-color:#1260e8}.page-thumb img{display:block;width:100%;height:130px;object-fit:cover;object-position:top;border-radius:4px}.reader-pagination{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;background:#fff;border-radius:11px}.reader-pagination strong{font-size:12px}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.article{padding:12px}.article .picture{height:180px;object-fit:cover;width:100%;border-radius:9px;margin-bottom:12px}.article p{line-height:1.5}.empty{text-align:center;padding:40px 18px;color:#7585a2}.empty .icon{height:40px;width:40px;opacity:.65;display:block;margin:0 auto 15px}.mini-cover{width:80px;height:106px;object-fit:cover;border-radius:5px}.library-list{display:flex;gap:14px;align-items:center;padding:12px;background:white;border-radius:10px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label{font-weight:750}.field input,.field textarea,.field select{background:#f8faff;border:1px solid #d7e0ed;border-radius:8px;padding:11px;width:100%;color:#173263}.field textarea{min-height:92px;resize:vertical}.modal-backdrop{position:fixed;inset:0;background:#051b3e88;z-index:70;display:flex;justify-content:center;align-items:center;padding:20px}.modal{background:#fff;color:#10244c;border-radius:17px;max-height:90dvh;overflow-y:auto;box-shadow:0 18px 60px #051b3e99;width:min(540px,100%);padding:22px}.modal.wide{width:min(850px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.modal-head h2{margin:0}.icon-btn{border:none;background:#edf2fb;border-radius:50%;height:34px;width:34px;display:inline-flex;align-items:center;justify-content:center}.toast{position:fixed;z-index:90;bottom:calc(var(--bottom) + 12px);left:50%;transform:translateX(-50%);background:#0b2c55;color:white;padding:12px 20px;border-radius:12px;box-shadow:0 6px 22px #0003;max-width:90vw;text-align:center}.hidden{display:none!important}.tags{display:flex;flex-wrap:wrap;gap:6px}.tags span{background:#e7efff;color:#4d6fad;padding:4px 9px;border-radius:9px;font-size:11px}.profile-page{display:grid;grid-template-columns:270px 1fr;gap:16px}.profile-picture{width:120px;height:120px;border-radius:50%;object-fit:cover}.page-heading{margin:0 0 12px;color:#0e2f61}.floating-more{background:#fff;border-radius:14px;padding:10px}.custom-page{max-width:800px;margin:auto;line-height:1.7;white-space:pre-wrap}.custom-page h1{white-space:normal}@media(max-width:1250px){.grid3{grid-template-columns:240px minmax(0,1fr) 240px}.header{gap:9px;padding:5px 14px}.brand-word{font-size:24px}.tagline{display:none}.profile-stats{min-width:440px}.hero-album{grid-template-columns:265px 1fr 90px}}@media(max-width:980px){.header{width:100%;border-radius:0}.header .nav-link{min-width:50px}.header .nav-link span{display:none}.search{max-width:280px}.profile-strip{flex-wrap:wrap}.profile-stats{order:3;width:100%;min-width:0;margin:0}.grid3{grid-template-columns:minmax(0,1fr) 240px}.grid3 .aside-news{grid-column:1/-1;order:2}.grid3 .main-shelf{grid-column:1;grid-row:1}.grid3 .aside-upcoming{grid-column:2;grid-row:1}.after-shelf{grid-template-columns:1fr 1fr}.after-shelf> :last-child{grid-column:1/-1}.hero-album{grid-template-columns:230px 1fr}.hero-album .hero-side{display:none}.footer .nav{gap:10px}}@media(max-width:680px){:root{--top:58px;--bottom:58px}.header{padding:6px 12px;gap:6px}.brand img{width:30px}.brand-word{font-size:22px}.search{padding:6px 8px;min-width:0;flex:1}.header .nav{display:none}.header-avatar{margin-left:3px}.header-avatar .avatar{width:34px;height:34px}.content>.container{padding:11px 8px 20px}.footer{padding:0 4px}.footer-brand,.motto{display:none}.footer .nav{width:100%;gap:0;justify-content:space-around}.footer .nav-link{min-width:54px;font-size:10px}.footer .nav-link .icon{width:21px;height:21px}.profile-strip{padding:11px;gap:10px}.profile-strip .avatar{width:73px;height:73px}.profile-strip h1{font-size:25px}.profile-strip .quote{font-size:12px}.profile-stats .stat{padding:7px 1px}.profile-stats .stat img{width:20px;height:20px}.profile-stats .stat strong{font-size:15px}.profile-stats .stat small{font-size:9px}.grid3,.after-shelf,.reader-layout,.reader-top,.album-bottom,.profile-page{grid-template-columns:1fr}.grid3 .main-shelf,.grid3 .aside-news,.grid3 .aside-upcoming{grid-column:auto;grid-row:auto}.grid3 .aside-news{order:2}.grid3 .aside-upcoming{order:3}.after-shelf>:last-child{grid-column:auto}.shelf-wrap{min-height:280px}.hero-album{grid-template-columns:1fr;padding:14px;gap:10px}.hero-cover{height:310px;max-width:280px;margin:auto}.hero-album h1{font-size:27px}.article-grid{grid-template-columns:1fr}.assistant-fab{right:5px;bottom:calc(var(--bottom) + 5px)}.assistant-fab>img{width:75px;height:78px}.assistant-bubble{font-size:11px;max-width:210px;padding:8px}.modes{flex-wrap:wrap}.mode{flex:1 1 40%}.papers.double img,.papers.scroll-double img{max-height:none}.paper-stage{padding:4px;min-height:100px}.paper-stage .papers{gap:2px}.paper-stage .papers img{max-height:75vh}.reader-pagination .btn{padding:8px;font-size:11px;min-width:0}.reader-side{order:-1}.reader-side .page-thumb img{height:80px}.stats-tiles .stat{padding:7px 2px}.stats-tiles .stat img{width:20px;height:20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}} 

.shelf-book-link{height:97%;max-width:100%;display:flex;align-items:center;justify-content:center}.shelf-book-link .book-on-shelf{height:100%}.additional-albums{background:#fff;padding:12px;border-radius:0 0 12px 12px}.additional-albums strong{display:block;margin-bottom:8px}


/* Adaptation responsive audit visuel : élimination des tailles intrinsèques
   qui étiraient la bibliothèque et tronquaient les panneaux sur mobile. */
.grid3 > *, .main-shelf, .aside-news, .aside-upcoming,
.after-shelf > *, .reader-layout > *, .reader-top > *,
.album-bottom > *, .profile-strip > *, .panel { min-width:0; }
.news-card > div, .album-teaser > div, .feature-author > div {min-width:0;overflow-wrap:anywhere}
.publications-box, .article, .custom-page {overflow-wrap:anywhere}
.shelf-wrap, .tabs {max-width:100%;}
/* Sur tablette, l'image de bibliothèque est bornée par sa colonne, pas sa hauteur minimale. */
@media (max-width:980px) {
  .shelf-wrap {min-height:0;width:100%;aspect-ratio:1.42;}
  .tabs {min-width:0;flex-wrap:wrap;overflow-x:visible;gap:5px;}
  .tabs .tab {flex:1 1 150px;white-space:normal;justify-content:center;text-align:center;
              min-width:0;min-height:44px;line-height:1.25;padding:8px 7px;}
  .tabs .tab .icon{flex-shrink:0;}
  .grid3 .main-shelf{width:100%;}
}
@media (max-width:680px) {
  .shelf-wrap{min-height:0;aspect-ratio:1.42;padding:10% 7% 8% 10%;}
  .shelf-grid{min-width:0;}
  .slot {min-width:0;}
  .slot .slot-add {font-size:clamp(13px,4vw,26px);width:100%;padding:0 1px;}
  .slot-add span {font-size:clamp(8px,2.2vw,11px);max-width:100%;overflow-wrap:anywhere;}
  .news-card .news-thumb {flex:0 0 auto;max-width:30%;}
  .profile-strip .quote{overflow-wrap:anywhere;}
  .stats-tiles{min-width:0;}
  .stats-tiles .stat{min-width:0;}
  .assistant-fab{pointer-events:none;}
  .assistant-fab > img, .assistant-bubble, .assistant-fab button {pointer-events:auto;}
}
@media (max-width:380px) {
  .header {padding:5px 6px;gap:4px;}
  .brand {gap:3px;}
  .brand img{width:27px;}
  .brand-word{font-size:19px;letter-spacing:-1.6px;}
  .search{padding:6px;gap:4px;}
  .search input{min-width:0;font-size:12px;}
  .header .icon-btn {flex-shrink:0;width:31px;height:31px;}
  .header-avatar{flex-shrink:0;margin-left:0;gap:1px;}
  .header-avatar .avatar{width:30px;height:30px;}
  .header-avatar .icon-sm{display:none;}
  .footer .nav-link{min-width:0;flex:1;}
  .tabs .tab{flex-basis:calc(50% - 4px);font-size:12px;padding:8px 4px;}
  .slot-add span{font-size:8px;}
  .after-shelf .panel-title{flex-wrap:wrap;}
}

/* Les filtres restent visibles même lorsque la colonne centrale est étroite. */
@media (min-width:981px) and (max-width:1250px){
 .tabs{flex-wrap:wrap;overflow-x:visible;gap:5px;}
 .tabs .tab{flex:1 1 145px;min-width:0;min-height:44px;white-space:normal;justify-content:center;text-align:center;padding:8px;}
}
@media (min-width:1251px){
 .tabs .tab{padding:9px 6px;font-size:12px;gap:4px;}
}
/* Garde les commandes de l'album accessibles sous la mascotte flottante. */
@media (max-width:680px){
 .main-shelf > .shelf-wrap + .row.between {flex-wrap:wrap;gap:7px;padding-right:83px!important;}
 .slot .slot-add {min-height:44px;height:100%;}
}
/* Le champ de recherche bénéficie de plus de place pendant la saisie. */
@media (max-width:420px){
 .header .search:focus-within {position:absolute;left:6px;right:85px;z-index:4;max-width:none;
 background:#f0f1f5;box-shadow:0 4px 14px #102e5326;}
}


/* Correction mobile : la tuile « À commencer » ne doit plus déborder. */
.stats-tiles .stat{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.stats-tiles .stat strong{max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.12;text-wrap:balance}
.stats-tiles .stat small{max-width:100%;overflow-wrap:anywhere;line-height:1.25}
@media (max-width:760px){
 .stats-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .stats-tiles .stat{padding:10px 6px;min-height:104px}
 .stats-tiles .stat strong{font-size:clamp(15px,4.2vw,18px)}
}
@media (max-width:480px){
 .stats-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats-tiles .stat{min-height:98px}
 .stats-tiles .stat strong{font-size:16px}
}


/* Avis de transparence : informations, sans bandeau de consentement ni traceurs. */
.privacy-notice,.privacy-reopen{position:fixed;left:clamp(10px,2.5vw,32px);bottom:calc(var(--bottom) + 13px + env(safe-area-inset-bottom,0px));z-index:45}
.privacy-notice{width:min(510px,calc(100vw - 20px));max-height:min(65dvh,540px);overflow-y:auto;background:#fff;color:#17315c;border:1px solid #dae5f5;border-radius:16px;padding:16px 18px;box-shadow:0 10px 38px #10294966;line-height:1.44}
.privacy-notice-head{display:flex;align-items:center;gap:9px;margin-bottom:7px}.privacy-notice-head h2{font-family:Georgia,serif;font-size:19px;margin:0;color:#102c61}.privacy-notice-mark{font-size:24px;color:#3480eb}
.privacy-notice p{margin:6px 0 8px;font-size:13px}.privacy-notice-small{color:#627292;font-size:12px!important}
.privacy-notice-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:12px}
.privacy-notice-actions .btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center}
.privacy-reopen{border:1px solid #d7e4f5;color:#0c2e65;background:#fff;padding:8px 12px;border-radius:999px;box-shadow:0 5px 17px #10294930;font-size:12px;font-weight:700;max-width:calc(100vw - 20px)}
.privacy-reopen:hover,.privacy-reopen:focus-visible{background:#eaf2ff}
.privacy-detail p{line-height:1.6}.privacy-detail .privacy-notice-actions{margin-top:20px}
@media(max-width:680px){.privacy-notice,.privacy-reopen{left:10px;bottom:calc(var(--bottom) + 10px + env(safe-area-inset-bottom,0px))}.privacy-notice{width:min(410px,calc(100vw - 20px));padding:12px;max-height:min(59dvh,455px)}.privacy-notice-head h2{font-size:17px}.privacy-notice p{font-size:12px}.privacy-notice-small{font-size:11px!important}}
@media(max-height:540px){.privacy-notice{max-height:50dvh;padding:8px 12px}.privacy-notice p{font-size:11px}.privacy-notice-head h2{font-size:16px}}

/* Gestes horizontaux sur les pages fixes, sans bloquer le défilement vertical. */
.papers.single img,.papers.double img{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}


/* Lecteur stable : la mise à jour d'une page ne déplace ni la fenêtre ni les panneaux. */
.paper-stage.paginated {
  height:clamp(300px,68dvh,850px);
  min-height:0;
  overflow:hidden;
  overflow-anchor:none;
}
.paper-stage.paginated .papers {
  height:100%;
  min-height:0;
  grid-template-rows:minmax(0,1fr);
}
.paper-stage.paginated .papers img {
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  max-height:100%;
  object-fit:contain;
}
/* Le défilement continu se produit uniquement à l'intérieur du lecteur. */
.paper-stage.scrolling {
  height:clamp(300px,68dvh,850px);
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  overflow-anchor:none;
  touch-action:pan-y;
  scrollbar-gutter:stable;
}
@media(max-width:680px){
  .paper-stage.paginated{height:clamp(240px,60dvh,650px)}
  .paper-stage.scrolling{height:clamp(240px,60dvh,650px)}
  .paper-stage.paginated .papers img{max-height:100%}
}

/* Notification et recommandations locales — accessible sur tous les formats d’écran. */
.header .icon-btn[data-action="notifications"]{position:relative}
.notification-badge{position:absolute;top:-5px;right:-4px;min-width:18px;height:18px;background:#cb2f4e;color:#fff;border-radius:12px;font:700 11px/18px system-ui;text-align:center;padding:0 4px}
.notification-badge[hidden]{display:none}
.alerts-live{position:fixed;z-index:57;top:calc(var(--top,60px) + 12px);right:clamp(8px,2vw,28px);max-width:min(440px,calc(100vw - 16px));pointer-events:none}
.live-alert{pointer-events:auto;background:#fff;color:#122c55;border:2px solid #4588ec;border-radius:14px;box-shadow:0 12px 35px #091d4c55;padding:12px 16px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-weight:700}
.live-alert .actions{margin-left:auto}
.notification-scroll{max-height:min(45vh,460px);overflow-y:auto;overscroll-behavior:contain}
.notification-entry,.reminder-entry{border:1px solid #d9e4f4;background:#fff;border-radius:11px;margin:8px 0;padding:12px;display:flex;gap:10px;align-items:start;justify-content:space-between;flex-wrap:wrap;overflow-wrap:anywhere}
.notification-entry.unread{border-left:4px solid #276ce2;background:#f2f7ff}
.notification-entry p{margin:4px 0}
.notification-entry .actions,.reminder-entry .actions{flex-wrap:wrap;gap:6px}
.recommendations-panel{margin:12px 0}.recommendations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
.recommendation-item{display:flex;align-items:center;gap:11px;background:#f6f9ff;border:1px solid #dfe9f6;border-radius:12px;padding:10px;min-width:0}
.recommendation-item img{width:68px;height:94px;object-fit:cover;flex:0 0 68px;border-radius:5px}
.recommendation-item>div{min-width:0;overflow-wrap:anywhere}.recommendation-item p{margin:7px 0}
@media(max-width:680px){.alerts-live{top:calc(65px + env(safe-area-inset-top,0px));left:8px;right:8px;max-width:none}.live-alert{font-size:13px}.notification-entry,.reminder-entry{padding:9px}}

/* Néo : discussion locale responsive, sans déplacer le lecteur. */
.assistant-fab{z-index:44;max-width:min(390px,calc(100vw - 18px));gap:4px}
.assistant-fab.neo-open{bottom:calc(var(--bottom) + 7px)}
.assistant-fab>img{flex:none}
.assistant-fab .assistant-bubble{display:flex;flex-direction:column;width:min(375px,calc(100vw - 18px));max-width:none;height:min(520px,calc(100dvh - var(--top) - var(--bottom) - 42px));min-height:220px;padding:0;overflow:hidden;border:1px solid #d7e4f8;background:#fff;box-shadow:0 11px 37px #071e4d66;font-size:13px;line-height:1.45}
.neo-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#14396f;color:white;gap:12px}
.neo-head strong{color:#fff;font-size:14px}
.neo-close{background:#fff2;color:#fff;border:0;border-radius:7px;font-size:22px;width:34px;height:34px;line-height:1}
.neo-disclaimer{font-size:10px;color:#66789a;background:#f4f7ff;padding:6px 12px;margin:0;line-height:1.4}
.neo-history{overflow-y:auto;min-height:0;flex:1;padding:12px;display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain}
.neo-message{padding:9px 11px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:94%;color:#16315b;flex-shrink:0}
.neo-message.user{background:#dceafe;align-self:flex-end}
.neo-message.neo{background:#f0f3f9;align-self:flex-start}
.neo-action{margin-top:9px}
.neo-suggestions{display:flex;gap:5px;overflow-x:auto;padding:7px 10px;border-top:1px solid #e7edf7}
.neo-suggestions .btn{white-space:nowrap;flex-shrink:0;min-height:29px}
.neo-form{display:flex;gap:6px;align-items:end;padding:6px 10px 9px}
.neo-form textarea{resize:none;min-width:0;flex:1;border:1px solid #b9cdec;border-radius:9px;padding:9px;color:#112c5c;background:#fff;line-height:1.35;max-height:90px}
.neo-form textarea:focus-visible{outline:2px solid #2f71ea;outline-offset:1px}
.neo-form button{flex:none}
.neo-footer{border-top:1px solid #e8edf5;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;font-size:10px;color:#73819b}
.neo-forget{border:0;background:none;color:#214d9a;font-size:11px;text-decoration:underline;text-align:left;padding:5px 0}
@media(max-width:680px){.assistant-fab{right:5px;bottom:calc(var(--bottom) + 5px)}.assistant-fab.neo-open>img{width:55px;height:49px}.assistant-fab .assistant-bubble{height:min(460px,calc(100dvh - var(--top) - var(--bottom) - 67px));width:min(360px,calc(100vw - 12px));font-size:12px}.neo-history{padding:8px}.neo-form textarea{font-size:16px}}
@media(max-height:530px){.assistant-fab.neo-open>img{width:45px;height:40px}.assistant-fab .assistant-bubble{height:calc(100dvh - var(--top) - var(--bottom) - 53px);min-height:155px}.neo-disclaimer{display:none}}
/* La discussion ouverte reste utilisable si l'avis d'information est encore affiché. */
.assistant-fab.neo-open{z-index:48}


/* Lecteur immersif multi-écran — ne modifie pas la mise en page des autres vues. */
.reader-focus{--reader-zoom:1;display:flex;flex-direction:column;min-width:0;min-height:0;border-radius:12px;position:relative;isolation:isolate}
.reader-focus .paper-stage{flex:none;min-width:0;overscroll-behavior:contain}
.reader-toolbar{background:#f9fbff;border:1px solid #dce6f4;border-radius:12px;padding:7px;display:flex;flex-direction:column;gap:7px;margin-bottom:7px;color:#18355f}
.reader-toolbar-pinned,.reader-toolbar-extras{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.reader-toolbar-pinned .btn{min-height:37px;white-space:nowrap}
.reader-toolbar-page{margin-left:auto;font-weight:750;font-size:12px;white-space:nowrap}
.reader-toolbar-extras{min-width:0}
.reader-toolbar-extras .btn{min-height:35px;padding:7px 9px}
.reader-toolbar select{max-width:min(240px,100%);min-height:35px;border:1px solid #b9c9e6;background:white;color:#18355f;border-radius:8px;padding:4px 7px;font:inherit}
.reader-toolbar-label,.reader-zoom-label{font-size:12px;font-weight:700}
.reader-focus.reader-tools-hidden .reader-toolbar-extras,.reader-focus.reader-tools-hidden .reader-pagination{display:none!important}
.reader-focus.reader-tools-hidden .reader-toolbar{background:#f8faffee}
.reader-focus .paper-stage.is-zoomed{overflow:auto;scrollbar-gutter:stable;touch-action:pan-x pan-y pinch-zoom}
.reader-focus .paper-stage.is-zoomed .papers{max-width:none;width:calc(100% * var(--reader-zoom));min-width:100%;height:auto;grid-template-rows:auto}
.reader-focus .paper-stage.is-zoomed .papers img{width:100%;height:auto;max-height:none;touch-action:pan-x pan-y pinch-zoom}
.reader-focus .papers.scroll,.reader-focus .papers.scroll-double{width:100%;max-width:100%}
/* Les pages côte à côte deviennent une seule grande planche sur les téléphones et tablettes en portrait. */
@media(max-width:900px){.reader-focus .papers.double,.reader-focus .papers.scroll-double{grid-template-columns:minmax(0,1fr)}.reader-focus .papers.single,.reader-focus .papers.double{max-width:none}.reader-focus .paper-stage.paginated{height:clamp(280px,70dvh,900px)}.reader-focus .paper-stage.scrolling{height:clamp(300px,70dvh,900px)}.reader-side{order:0}}
/* Plein écran natif et repli iOS Safari : les contenus restent dans leur fenêtre de lecture. */
.reader-focus:fullscreen,.reader-focus:-webkit-full-screen,.reader-focus.reader-full,body.reader-immersive-fallback .reader-focus{width:100%;height:100dvh;max-height:100dvh;margin:0;padding:clamp(5px,1vw,14px);background:#101c2e;color:#fff;box-sizing:border-box;border:0;border-radius:0;overflow:hidden}
.reader-focus:fullscreen .paper-stage,.reader-focus:-webkit-full-screen .paper-stage,.reader-focus.reader-full .paper-stage{flex:1 1 0;height:auto!important;min-height:0;max-height:none!important;box-shadow:none;padding:clamp(2px,.6vw,8px);background:#162237;border:0;border-radius:6px;overflow:auto}
.reader-focus:fullscreen .papers,.reader-focus:-webkit-full-screen .papers,.reader-focus.reader-full .papers{max-width:100%;height:100%}
.reader-focus:fullscreen .papers img,.reader-focus:-webkit-full-screen .papers img,.reader-focus.reader-full .papers img{max-height:100%;object-fit:contain}
.reader-focus:fullscreen .paper-stage.scrolling .papers,.reader-focus:-webkit-full-screen .paper-stage.scrolling .papers,.reader-focus.reader-full .paper-stage.scrolling .papers{height:auto}
.reader-focus:fullscreen .paper-stage.scrolling img,.reader-focus:-webkit-full-screen .paper-stage.scrolling img,.reader-focus.reader-full .paper-stage.scrolling img{max-height:none}
.reader-focus:fullscreen .reader-pagination,.reader-focus:-webkit-full-screen .reader-pagination,.reader-focus.reader-full .reader-pagination{flex:0 0 auto;margin-top:5px;padding:5px 9px}
.reader-focus:fullscreen .reader-toolbar,.reader-focus:-webkit-full-screen .reader-toolbar,.reader-focus.reader-full .reader-toolbar{flex:0 0 auto;margin-bottom:5px;padding:5px 8px}
.reader-focus:fullscreen .paper-stage.is-zoomed .papers,.reader-focus:-webkit-full-screen .paper-stage.is-zoomed .papers,.reader-focus.reader-full .paper-stage.is-zoomed .papers{max-width:none;width:calc(100% * var(--reader-zoom));min-width:100%;height:auto}
.reader-focus:fullscreen .paper-stage.is-zoomed .papers img,.reader-focus:-webkit-full-screen .paper-stage.is-zoomed .papers img,.reader-focus.reader-full .paper-stage.is-zoomed .papers img{max-height:none;height:auto}
body.reader-immersive-fallback{overflow:hidden!important}
body.reader-immersive-fallback .reader-focus{position:fixed;inset:0;z-index:210;box-shadow:0 0 0 200vmax #091326}
.reader-focus:fullscreen .reader-toggle-fullscreen,.reader-focus.reader-full .reader-toggle-fullscreen{font-weight:800}
@media(max-width:680px){.reader-toolbar{padding:5px}.reader-toolbar-page{font-size:11px}.reader-toolbar-pinned{gap:4px}.reader-toolbar-pinned .btn{padding:7px 9px;font-size:11px}.reader-toolbar-extras .reader-toolbar-label{display:none}.reader-toolbar select{max-width:165px;font-size:12px}.reader-focus:fullscreen,.reader-focus.reader-full{padding:4px}.reader-focus:fullscreen .paper-stage,.reader-focus.reader-full .paper-stage{padding:0}.reader-focus .reader-pagination{gap:4px}.reader-focus .reader-pagination .btn{min-height:38px}}
@media(max-height:470px){.reader-focus.reader-full .reader-toolbar-extras{max-height:65px;overflow:auto}.reader-focus.reader-full .reader-pagination{padding:3px}.reader-focus.reader-full .reader-pagination .btn{padding:5px}}

/* Lecture universelle : confinement de la roulette et des gestes, sans déplacement de la page du site. */
.reader-focus .paper-stage{overscroll-behavior:contain;scrollbar-gutter:stable}
.reader-focus .paper-stage.paginated:not(.is-zoomed){overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
.reader-focus .paper-stage.scrolling{overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom}

/* Déplacement des albums sans défilement parasite (PC, Android, iOS, iPadOS). */
.shelf-wrap .shelf-book-link,
.shelf-wrap .book-on-shelf{
 touch-action:none;user-select:none;-webkit-user-select:none;
 -webkit-user-drag:none;-webkit-touch-callout:none;
}
.shelf-wrap .slot{overflow:visible;}
.shelf-drag-active .shelf-wrap,.shelf-drag-active .book-on-shelf{cursor:grabbing!important;}
.shelf-drag-ghost{
 position:fixed;left:0;top:0;z-index:1000;pointer-events:none;
 object-fit:contain;opacity:.92;filter:drop-shadow(5px 8px 6px #101b2a99);
 will-change:transform;border-radius:4px;
}
.shelf-wrap .slot.drag-over{outline:3px solid #75c5ff;outline-offset:-3px;background:#d5efff77;}

/* Onglets de bibliothèque : filtres sans déplacement ni reconstruction de page. */
.main-shelf {overflow-anchor:none;}
.main-shelf .shelf-extras{height:142px;overflow-y:auto;overscroll-behavior:contain;background:#ffffffed;border-radius:0 0 12px 12px;}
.main-shelf .shelf-extras .additional-albums{min-height:100%;}
.main-shelf .shelf-extras-empty{padding:14px;margin:0;}
.main-shelf .tabs .tab{transform:none;}
.main-shelf .tabs .tab:focus-visible{outline:3px solid #4287f5;outline-offset:-2px;}
