:root{--red:#d52424;--red-dark:#941818;--dark:#171923;--soft:#fff1f1}body{background:#f5f6fa;color:#1b1d24}.navbar{background:linear-gradient(135deg,#901616,var(--red));box-shadow:0 8px 24px rgba(213,36,36,.22)}.hero{background:radial-gradient(circle at top right,rgba(213,36,36,.35),transparent 35%),linear-gradient(135deg,#171923,#321111);color:white;border-radius:32px;padding:46px;box-shadow:0 18px 45px rgba(20,20,30,.14)}.hero-small{padding:30px}.search-bar{display:grid;grid-template-columns:1fr auto;gap:12px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.section-title p{color:#6c7280;margin:0}.book-card{border:0;border-radius:24px;box-shadow:0 12px 30px rgba(20,20,30,.08);overflow:hidden;transition:.18s transform,.18s box-shadow;background:#fff}.book-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(20,20,30,.13)}.book-card .cover-link{display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f5f6fa,#eceff5);padding:18px 0 10px}.book-card .cover{width:128px;height:192px;object-fit:contain;background:transparent;border-radius:8px;box-shadow:0 10px 22px rgba(20,20,30,.16);image-rendering:auto}.book-card h3{font-size:1.05rem;line-height:1.25;min-height:2.6em}.book-card .card-body{padding-top:16px}.cover-detail-wrap{display:flex;justify-content:center;background:linear-gradient(180deg,#fff,#eef0f5);border-radius:26px;padding:24px;box-shadow:0 16px 40px rgba(20,20,30,.10)}.cover-big{width:220px;max-width:100%;height:330px;object-fit:contain;border-radius:10px;box-shadow:0 20px 44px rgba(0,0,0,.18);background:transparent;image-rendering:auto}.btn-primary{background:var(--red);border-color:var(--red)}.btn-primary:hover{background:var(--red-dark);border-color:var(--red-dark)}.btn-outline-primary{color:var(--red);border-color:#efb2b2}.btn-outline-primary:hover{background:var(--red);border-color:var(--red);color:#fff}.badge-soft{background:#ffe8e8;color:#9e1616}.avatar{width:72px;height:72px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:700}.progress{height:14px;border-radius:999px}.progress-bar{background:linear-gradient(90deg,#ff8a8a,var(--red))}.public-card{border:0;border-radius:24px;box-shadow:0 10px 28px rgba(0,0,0,.07)}.description-box{background:#fff;border-radius:24px;padding:24px;box-shadow:0 10px 28px rgba(0,0,0,.06)}.description-box h2{font-size:1.25rem}.reading-panel{background:#fff;border-radius:28px;padding:26px;box-shadow:0 14px 38px rgba(20,20,30,.08)}.progress-pill{background:var(--soft);color:var(--red-dark);border-radius:999px;padding:10px 16px;font-weight:700}.quick-actions{display:flex;flex-wrap:wrap;gap:10px}.rating-line{font-weight:700;color:#a01616;background:#fff3cd;border-radius:999px;padding:6px 10px;font-size:.9rem;display:inline-block}.book-page h1{font-weight:800}@media(max-width:768px){.hero{padding:30px;border-radius:24px}.search-bar{grid-template-columns:1fr}.section-title{display:block}.book-card .cover{width:128px;height:192px}.cover-big{width:180px;height:270px}.quick-actions .btn{width:100%}}

/* v5 · affichage livres plus éditorial et plus lisible */
.books-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}.book-tile{display:grid;grid-template-columns:112px 1fr;gap:16px;background:#fff;border:0;border-radius:26px;padding:16px;box-shadow:0 14px 34px rgba(20,20,30,.08);transition:.18s transform,.18s box-shadow;min-height:236px}.book-tile:hover{transform:translateY(-4px);box-shadow:0 20px 46px rgba(20,20,30,.13)}.tile-cover{display:flex;align-items:center;justify-content:center;min-height:192px;border-radius:20px;background:linear-gradient(180deg,#f9fafc,#edf0f6);text-decoration:none}.book-tile .cover{width:112px;height:168px;object-fit:contain;border-radius:8px;box-shadow:0 12px 24px rgba(20,20,30,.18);background:transparent}.tile-content{display:flex;flex-direction:column;min-width:0}.tile-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}.tile-meta span{background:#fff1f1;color:#9e1616;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:700}.book-tile h3{font-size:1.02rem;line-height:1.22;margin:0 0 6px;min-height:auto}.book-tile h3 a{color:#171923;text-decoration:none}.book-tile h3 a:hover{color:var(--red)}.book-tile .authors{color:#6c7280;font-size:.88rem;margin:0 0 8px}.tile-desc{font-size:.84rem;color:#4f5665;margin:0 0 10px;line-height:1.35}.tile-link{margin-top:auto;color:var(--red);font-weight:800;text-decoration:none}.tile-link:hover{text-decoration:underline}.search-tools{background:#fff;border-radius:22px;padding:16px 18px;box-shadow:0 10px 28px rgba(20,20,30,.06);display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.search-tools strong{color:#171923}.public-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 10%,rgba(255,255,255,.24),transparent 26%),linear-gradient(135deg,#171923,#5b1111 58%,#d52424);color:#fff;border-radius:34px;padding:34px;box-shadow:0 22px 52px rgba(20,20,30,.16)}.public-hero .avatar{background:#fff;color:var(--red);box-shadow:0 16px 34px rgba(0,0,0,.18)}.public-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.public-stats span{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:8px 12px;font-weight:700}.shelf-section{margin-bottom:36px}.shelf-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px;gap:16px}.shelf-heading h2{margin:0}.public-book{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:start;background:#fff;border-radius:24px;padding:14px;box-shadow:0 12px 30px rgba(20,20,30,.075);height:100%}.public-book img{width:96px;height:144px;object-fit:contain;border-radius:8px;background:#f3f5f9;box-shadow:0 8px 18px rgba(20,20,30,.14)}.public-book h3{font-size:1rem;line-height:1.25;margin-bottom:5px}.public-book h3 a{text-decoration:none;color:#171923}.public-book h3 a:hover{color:var(--red)}.public-book .muted{font-size:.84rem;color:#6c7280}.progress-label{display:flex;justify-content:space-between;font-size:.8rem;font-weight:700;color:#7a1b1b;margin-bottom:5px}@media(max-width:576px){.book-tile{grid-template-columns:92px 1fr;padding:13px;gap:13px}.tile-cover{min-height:154px}.book-tile .cover{width:92px;height:138px}.tile-desc{display:none}.public-hero{padding:26px;border-radius:26px}.public-book{grid-template-columns:82px 1fr}.public-book img{width:82px;height:123px}}

/* v6 · finitions visuelles, auteurs, footer et couvertures sans blancs excessifs */
main.container{min-height:70vh}.navbar{margin-bottom:28px!important}.author-link{color:var(--red);font-weight:700;text-decoration:none}.author-link:hover{text-decoration:underline;color:var(--red-dark)}.book-tile{grid-template-columns:128px 1fr;align-items:start}.tile-cover{min-height:auto;height:auto;background:linear-gradient(145deg,#fff,#f3f5f9);padding:10px;border:1px solid rgba(20,20,30,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}.book-tile .cover{width:128px;height:auto;max-height:192px;object-fit:contain;display:block}.book-card .cover-link{padding:12px;background:linear-gradient(145deg,#fff,#f3f5f9)}.book-card .cover{width:128px;height:auto;max-height:192px;display:block;object-fit:contain}.cover-detail-wrap{background:linear-gradient(145deg,#fff,#f3f5f9);padding:14px}.cover-big{width:220px;height:auto;max-height:330px;object-fit:contain;display:block}.public-book{grid-template-columns:112px 1fr;border:1px solid rgba(20,20,30,.05)}.public-book>a{display:flex;align-items:flex-start;justify-content:center;background:linear-gradient(145deg,#fff,#f3f5f9);border-radius:16px;padding:8px;text-decoration:none}.public-book img{width:96px;height:auto;max-height:144px;object-fit:contain;background:transparent;display:block}.follow-card{height:100%;background:#fff;border-radius:24px;padding:22px;box-shadow:0 12px 30px rgba(20,20,30,.07)}.follow-card h2{font-size:1.2rem;margin-bottom:14px}.follow-list{display:flex;flex-wrap:wrap;gap:10px}.follow-list a{display:inline-flex;align-items:center;gap:8px;background:#fff1f1;color:#7f1717;border-radius:999px;padding:8px 12px;text-decoration:none;font-weight:800}.follow-list a:hover{background:#ffdede}.follow-list span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--red);color:#fff;font-size:.8rem}.site-footer{background:#171923;color:#d9dce6;margin-top:60px;padding:34px 0}.site-footer .container{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}.site-footer p{margin:.25rem 0 0;color:#aeb4c4}.site-footer nav{display:flex;gap:14px;flex-wrap:wrap}.site-footer a{color:#fff;text-decoration:none;font-weight:700}.site-footer a:hover{color:#ffb5b5}.site-footer small{color:#aeb4c4}.author-hero{background:radial-gradient(circle at top right,rgba(255,255,255,.16),transparent 30%),linear-gradient(135deg,#171923,#651515)}
@media(max-width:576px){.book-tile{grid-template-columns:104px 1fr}.book-tile .cover{width:104px;max-height:156px}.public-book{grid-template-columns:92px 1fr}.public-book img{width:78px;max-height:117px}.site-footer .container{display:block}.site-footer nav{margin:18px 0}}


/* v7 · recherche filtrée et résultats plus nombreux */
.search-main{grid-template-columns:1fr auto}.search-filters{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-top:6px}.search-filters .form-control,.search-filters .form-select{border:0;box-shadow:0 8px 22px rgba(0,0,0,.08)}.books-grid-wide{grid-template-columns:repeat(auto-fill,minmax(285px,1fr))}.books-grid-wide .book-tile{min-height:220px}.books-grid-wide .tile-desc{display:block}@media(max-width:992px){.search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:576px){.search-filters{grid-template-columns:1fr}.search-main{grid-template-columns:1fr}.books-grid-wide{grid-template-columns:1fr}}
