/* Composition des maquettes. Les illustrations restent des médias éditoriaux. */
:root {
  --page-width: 1680px;
  --radius: 20px;
  --space: 16px;
  --shadow: 0 3px 16px #25326008;
}
.layout { padding: 10px 24px 0; }
.content { padding: 18px 0; min-height: 60vh; }
.topbar { top: 8px; min-height: 66px; padding: 6px 22px; border-radius: 21px; gap: 18px; }
.brand { font-family: ui-rounded, 'Trebuchet MS', sans-serif; font-size: 2.25rem; letter-spacing: -.065em; }
.topbar .nav { gap: 4px; }
.nav a { font-size: .68rem; min-height: 52px; padding: 6px 12px; }
.nav a.active { box-shadow: inset 0 -2px #8571ff; }
.search { background: transparent; }
.topbar .search { flex: 0 1 112px; }
.search input { font-size: .82rem; padding: 7px; }
.profile-name { font-size: .73rem; }
.profile-button { background: #f0f0ff; padding: 4px 12px 4px 5px; }
button, .button { min-height: 44px; }
.panel { padding: 16px; }
.section-title { margin-bottom: 12px; }
.section-title h2 { font-size: 1.06rem; }
.section-title a { font-size: .67rem; }
.empty-copy { font-size: .85rem; line-height: 1.55; }
.visual-slot { background: #edf0f7; border: 1px solid #e4e8f1; border-radius: 14px; }
.empty-visual { border: 0; padding: 10px; color: #6d768d; font-size: .73rem; }
.neutral-cover { background: #edf0f7 !important; color: #60708e; padding: 10px; justify-content: center; gap: 10px; text-align: center; }
.neutral-cover strong { font-size: .72rem; color: #5a6780; }
.neutral-cover span { font-size: .65rem; letter-spacing: 0; }

/* Accueil : une composition dense, avec les trois catégories dans le premier écran. */
body[data-view="home"] .content { padding: 0; }
.home-hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.35fr); min-height: 250px; height: auto; gap: 20px; padding: 10px 30px 10px 46px; }
.hero-copy { padding: 0; }
.hero-copy .eyebrow { display: none; }
.hero-copy h1 { font-family: ui-rounded,'Trebuchet MS',sans-serif; font-size: clamp(2rem,3vw,2.8rem); line-height: 1.04; max-width: 460px; letter-spacing: -.045em; margin-bottom: 12px; }
.hero-copy > p:not(.eyebrow) { font-size: .9rem; line-height: 1.25; max-width: 430px; margin-bottom: 0; }
.hero-copy .row { gap: 9px; margin-top: 14px; flex-wrap: nowrap; }
.hero-copy .button { font-size: .74rem; padding: 9px 15px; min-height: 40px; white-space: nowrap; }
.hero-visual { aspect-ratio: auto; min-height: 0; border-radius: 20px; background: #e9ecf6; }
.home-modules { background: #fffffff2; padding: 14px; border-radius: 23px; }
.category-grid { gap: 14px; }
.category-card { min-height: 145px; padding: 15px 14px 15px 22px; grid-template-columns: 1.08fr 1fr; gap: 8px; border-radius: 17px; }
.category-card h2 { font-size: 1.3rem; margin-bottom: 7px; }
.category-card p { font-size: .78rem; line-height: 1.3; margin-bottom: 10px; }
.category-card .button { font-size: .65rem; padding: 5px 12px; min-height: 30px; }
.category-visual { min-height: 100px; max-height: 112px; aspect-ratio: 1.1; background: #ffffff6b; border: 0; }
.home-middle { grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 12px; margin: 14px 0 0; }
.home-middle > .panel { border: 0; border-radius: 12px; box-shadow: none; padding: 0 4px; }
.home-middle .section-title { padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
.horizontal-books { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.mini-book.horizontal { grid-template-columns: 58px minmax(0,1fr); gap: 8px; }
.mini-book.horizontal .cover { width: 58px; height: 86px; }
.mini-book strong { font-size: .7rem; line-height: 1.25; }
.mini-book .small { font-size: .62rem; }
.mini-book .reading-progress { margin-top: 8px; }
.reading-progress { gap: 5px; font-size: .62rem; }
.reading-progress progress { height: 6px; }
.companion-card { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(120deg,#e6f0ff,#ecedff); }
.companion-card h2 { font-size: 1.05rem; margin-bottom: 7px; }
.companion-card p { font-size: .77rem; line-height: 1.3; margin-bottom: 8px; }
.companion-card .button { font-size: .69rem; min-height: 34px; padding: 6px 13px; }
.companion-visual { min-height: 100px; aspect-ratio: 1; max-height: 112px; }
.home-lower { grid-template-columns: 2.1fr .95fr 1.04fr 1.04fr; gap: 10px; margin-top: 14px; }
.home-lower > .panel { min-height: 185px; padding: 12px; border-radius: 15px; position: relative; background: #f8faff; }
.home-lower .section-title { align-items: flex-start; }
.home-lower .section-title h2 { font-size: .89rem; }
.home-lower .section-title a { font-size: .61rem; position: absolute; bottom: 12px; left: 12px; }
.home-lower .mini-books { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.home-library { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; align-content: stretch; }
.home-library .section-title,.home-library > p { position: relative; z-index: 1; grid-column: 1; }
.home-library > p { font-size: .74rem; line-height: 1.25; padding-right: 10px; }
.home-library .library-teaser { position: absolute; inset: 8px 8px 8px 51%; width: auto; height: auto; aspect-ratio: auto; }
.home-library .button { position: relative; z-index: 1; align-self: end; width: max-content; max-width: 100%; grid-column: 1 / -1; margin-top: auto; font-size: .68rem; min-height: 34px; padding: 7px 12px; }
.author-mini-list { gap: 8px; }
.home-authors .author-mini-list { display: flex; flex-wrap: wrap; }
.home-authors .author-mini-list a { flex: 0 1 70px; flex-direction: column; text-align: center; gap: 6px; font-size: .68rem; }
.home-authors .portrait-slot { width: 54px; height: 54px; }
.home-lower .empty-copy { font-size: .75rem; }
.event-mini { gap: 9px; margin: 10px 0; }
.event-mini strong { font-size: .69rem; }
.event-mini time { width: 31px; padding: 4px; font-size: .57rem; }
.event-mini time b { font-size: 1rem; }
.footer { margin: 10px -24px 0; padding: 15px 28px; border-radius: 35% 18% 0 0 / 12px 9px 0 0; gap: 20px; font-size: .65rem; }
.footer-brand { display: flex; align-items: center; gap: 17px; }
.footer .brand { font-size: 1.8rem; }
.footer nav { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer button { font-size: .65rem; padding: 5px 10px; color: white; background: transparent; border-color: #ffffff35; min-height: 34px; }
.footer button:hover { background: #ffffff15; }
.footer-promise { margin: 0; max-width: 230px; font-size: .7rem; }
.footer-promise span { font-size: .61rem; opacity: .8; }

/* Bibliothèque : le décor englobe les panneaux, les objets demeurent des boutons. */
.library-layout { position: relative; isolation: isolate; grid-template-columns: minmax(200px,.85fr) minmax(0,3.2fr) minmax(280px,1.15fr); gap: 14px; min-height: 560px; padding: 0; }
.library-layout > .scene-background { inset: -18px -24px -12px; z-index: -1; border-radius: 0; }
.library-layout > .neutral-scene { background: #e7eaf7; }
.neutral-scene > span { left: 43%; bottom: 22px; }
.library-menu { padding: 16px 12px; border-radius: 19px; }
.library-menu h1 { font-size: 1.03rem; margin-bottom: 14px; }
.library-menu h2 { font-size: .88rem; }
.library-menu > a { font-size: .89rem; min-height: 47px; padding: 9px 10px; gap: 11px; }
.library-menu > hr { margin: 16px 0; }
.library-menu .collection-link { padding: 9px; min-height: 44px; font-size: .8rem; }
.library-scene { min-height: 560px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.scene-content { padding: 10px 6px; gap: 10px; }
.scene-toolbar { justify-content: flex-end; gap: 8px; }
.scene-toolbar label { padding: 4px 8px; font-size: .7rem; background: #ffffffe6; }
.scene-toolbar select { font-size: .7rem; max-width: 150px; }
.scene-toolbar > button { width: 40px; min-width: 40px; padding: 5px; font-size: 0; }
.scene-toolbar > button::after { content: '+'; font-size: 1.5rem; }
.companion-card.compact { width: min(420px,94%); margin: 12px auto 0 0; padding: 12px; box-shadow: 0 8px 25px #25375b0d; background: #fffffff3; }
.companion-card.compact .companion-visual { max-height: 125px; }
.scene-shelves { margin-top: 24px; }
.scene-shelves .shelf { min-height: 104px; padding: 4px 8px; border-bottom: 2px solid #b6c1d6; background: #ffffff18; box-shadow: none; margin: 0 0 15px; }
.scene-shelves .shelf-item .cover { height: 80px; width: 56px; }
.shelf-empty { font-size: .69rem; }
.scene-actions { bottom: 12px; }
.scene-hotspots { position: absolute; inset: 0; pointer-events: none; }
.scene-hotspots button { pointer-events: auto; position: absolute; width: 43px; height: 43px; border-radius: 50%; background: #ffffffdf; border: 2px solid #bfcaff; color: #6555e8; padding: 0; font-size: 1.7rem; }
.scene-hotspots button:first-child { left: 22%; bottom: 17%; }
.scene-hotspots button:last-child { right: 11%; bottom: 29%; }
.object-drawer { padding: 15px 13px; border-radius: 19px; }
.object-drawer summary { font-size: 1.07rem; }
.object-tabs { gap: 3px; margin: 12px 0; }
.object-tabs button { font-size: .72rem; min-height: 38px; }
.object-categories { flex-wrap: wrap; gap: 5px; margin: 12px 0 16px; overflow: visible; }
.object-categories button { border-radius: 11px; font-size: .66rem; padding: 5px 8px; min-height: 36px; }
.object-gallery { gap: 12px; }
.object-picture { aspect-ratio: 1; }
.object-gallery h3 { font-size: .68rem; }
.object-gallery .empty-copy { grid-column: 1/-1; font-size: .8rem; }
.library-bottom { grid-template-columns: 1.05fr 1.85fr 1.25fr; gap: 12px; margin-top: 16px; }
.library-bottom > .panel { padding: 14px; }
.library-bottom .reading-total { font-size: 1.05rem; }
.library-bottom .mini-books { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.library-bottom .cover { max-height: 124px; }
.library-bottom .badge-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.library-bottom .badge-card { padding: 4px; border: 0; background: none; }
.library-bottom .badge-picture { width: 42px; height: 42px; margin: auto; }
.library-bottom .badge-card h3 { font-size: .62rem; }
.library-bottom .badge-card p,.library-bottom .badge-card .pill { display: none; }
.library-progress > p { font-size: .73rem; margin: 4px 0; }
.library-progress > button { min-height: 32px; font-size: .7rem; }
.mission-stack { gap: 8px; }
.mission-card { padding: 12px 14px; border-radius: 18px; }
.mission-card h3 { font-size: .87rem; }
.mission-card p { font-size: .72rem; margin: 6px 0; }
.mission-card .button { min-height: 28px; font-size: .67rem; padding: 5px 10px; }

/* Profil : les couvertures gardent leur taille, même si un seul livre est présent. */
.profile-layout { max-width: 980px; margin: 0 auto; gap: 12px; }
.profile-heading { padding: 0 6px 4px; }
.profile-heading h1 { font-size: 1.6rem; margin-bottom: 3px; }
.profile-heading p { font-size: .88rem; margin: 0; }
.profile-hero { padding: 18px 24px; min-height: 172px; gap: 22px; }
.profile-hero > .avatar { width: 120px; height: 120px; min-width: 120px; font-size: 3rem; }
.profile-hero h2 { font-size: 1.55rem; margin-bottom: 4px; }
.profile-hero .eyebrow { display: none; }
.profile-level { color: #604eb5; font-size: .83rem; font-weight: 700; }
.profile-hero p { font-size: .8rem; margin: 6px 0 12px; }
.profile-hero button { min-height: 36px; font-size: .74rem; padding: 7px 12px; }
.profile-decoration { width: 120px; height: 120px; }
.profile-layout .mini-books { grid-template-columns: repeat(auto-fill,minmax(100px,142px)); gap: 18px; }
.profile-layout .mini-book .cover { height: 153px; max-width: 115px; aspect-ratio: 3/4; }
.profile-layout .grid-2 { gap: 12px; }
.profile-layout .grid-2 .mini-books { grid-template-columns: repeat(3,minmax(0,110px)); gap: 12px; }
.profile-layout .grid-2 .cover { height: 120px; }
.profile-shortcuts { gap: 10px; }
.profile-shortcuts .panel { min-height: 100px; padding: 16px; font-size: .78rem; }

/* Lecteur : le mode devient un groupe de commandes visible. */
.reader { inset: 100px 28px 24px; max-width: 1580px; margin-inline: auto; border-width: 9px; background: #fff; }
.reader-head { min-height: 61px; padding: 8px 14px; gap: 12px; }
.reader-title h2 { font-size: .9rem; }
.reader-title p { font-size: .69rem; }
.reader-top-progress progress { width: 145px; }
.reader-contents { width: 180px; min-width: 180px; padding: 14px 12px; }
.reader-cover { width: 87px; margin-bottom: 12px; }
.reader-cover .cover { width: 87px; height: 119px; }
.reader-viewport { padding: 12px; }
.reader-foot { gap: 6px; padding: 8px 12px; }
.reader-foot button { min-height: 37px; font-size: .68rem; padding: 8px 10px; }
.reader-mode-tabs { display: flex; border: 1px solid #d9d6ff; background: #f8f7ff; border-radius: 24px; }
.reader-mode-tabs button { border: 0; background: none; border-radius: 22px; padding: 8px 14px; }
.reader-mode-tabs button[aria-pressed="true"] { background: linear-gradient(110deg,#8270ff,#6050ee); color: white; }
.reader-mode-label { display: none; }
.reader-foot select { font-size: .68rem; min-height: 37px; max-width: 125px; }
.reader-foot input[type=range] { max-width: 100px; }
.reader-contents > button { border-radius: 9px; font-size: .73rem; }
.reader-viewport:focus { outline: none; }
.reader-viewport:focus-visible { outline: 2px solid #ada6eb; outline-offset: -2px; }
.reader.focus .reader-mode-tabs { display: none; }
@media (min-width: 1700px) {
  .home-hero { min-height: 345px; height: auto; padding-left: 65px; }
  .hero-copy h1 { font-size: 3.3rem; max-width: 510px; }
  .category-card { min-height: 174px; }
  .home-lower > .panel { min-height: 218px; }
  .library-scene,.library-layout { min-height: 600px; }
}
@media (min-width: 1001px) and (max-width: 1250px) {
  .topbar { flex-wrap: nowrap; gap: 9px; }
  .topbar .sidebar { flex: 1 1 0; order: 0; }
  .topbar .nav a { flex: 0 1 auto; padding: 6px 7px; }
  .topbar .search { flex-basis: 50px; width: 50px; }
  .search input { width: 0; padding: 0; }
  .search:focus-within { flex-basis: 150px; }
  .search:focus-within input { width: 100%; padding: 5px; }
  .brand { font-size: 1.9rem; }
  .nav a { font-size: .6rem; padding: 6px 8px; }
  .profile-name { display: none; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .topbar { flex-wrap: wrap; }
  .topbar .sidebar { flex-basis: 100%; order: 5; }
  .topbar .nav { justify-content: space-between; }
  .topbar .search { flex-basis: 180px; margin-left: auto; }
  .home-hero { min-height: 290px; height: auto; padding: 14px; gap: 14px; grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-copy .row { flex-wrap: wrap; gap: 7px; }
  .hero-copy > p:not(.eyebrow) { font-size: .82rem; }
  .category-card { padding: 13px; grid-template-columns: 1fr .7fr; min-height: 150px; }
  .category-card h2 { font-size: 1.06rem; }
  .category-card p { font-size: .7rem; }
  .home-middle { grid-template-columns: 1.25fr 1fr; }
  .horizontal-books { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-lower { grid-template-columns: 1.5fr 1fr; }
  .home-lower > .panel:last-child { grid-column: auto; }
  .library-layout { grid-template-columns: 175px minmax(0,1fr); min-height: 500px; }
  .object-drawer { grid-column: 1/-1; }
  .object-gallery { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .library-bottom { grid-template-columns: 1fr 1.5fr; }
  .mission-stack { grid-column: 1/-1; grid-template-columns: 1fr 1fr; }
  .footer { flex-wrap: wrap; }
  .reader { inset: 145px 15px 18px; }
}
@media (min-width: 768px) { .reader-contents { position: static; box-shadow: none; } }
@media (max-width: 1100px) {
  .reader-mode-tabs { display: none; }
  .reader-mode-label { display: flex; }
}
@media (max-width: 700px) {
  .layout { padding: 7px 10px 0; }
  .topbar { min-height: 58px; padding: 7px 10px; gap: 8px; border-radius: 18px; }
  .topbar .brand { font-size: 1.8rem; }
  .topbar .search { display: none; }
  .topbar .profile-button { padding: 3px; }
  .topbar .nav { gap: 8px; }
  .nav a { min-height: 64px; font-size: .73rem; }
  .home-hero { height: auto; min-height: 0; padding: 19px 9px 14px; grid-template-columns: 1.25fr .75fr; gap: 12px; align-items: stretch; }
  .hero-copy h1 { font-size: clamp(1.45rem,6.6vw,2rem); line-height: 1.09; margin-bottom: 10px; }
  .hero-copy > p:not(.eyebrow) { font-size: .74rem; line-height: 1.35; }
  .hero-copy .row { margin-top: 12px; flex-wrap: wrap; gap: 7px; }
  .hero-copy .button { font-size: .64rem; padding: 8px 10px; min-height: 40px; white-space: normal; }
  .hero-visual { aspect-ratio: auto; max-height: none; min-height: 150px; }
  .home-modules { padding: 10px; border-radius: 20px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 126px; grid-template-columns: 1.2fr 1fr; padding: 15px; gap: 12px; }
  .category-card h2 { font-size: 1.18rem; }
  .category-card p { font-size: .75rem; }
  .category-card .button { min-height: 35px; }
  .category-visual { max-height: 122px; min-height: 96px; aspect-ratio: auto; align-self: stretch; }
  .home-middle,.home-lower { grid-template-columns: 1fr; gap: 13px; }
  .home-middle > .panel { padding: 5px 2px; }
  .horizontal-books { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 10px; }
  .mini-book.horizontal { grid-template-columns: 43px minmax(0,1fr); }
  .mini-book.horizontal .cover { height: 64px; width: 43px; }
  .home-lower > .panel:last-child { grid-column: auto; }
  .home-lower > .panel { min-height: 150px; }
  .home-lower .section-title h2 { font-size: 1rem; }
  .companion-card { grid-template-columns: .7fr 1.3fr; padding: 14px; }
  .companion-card .button { min-height: 42px; }
  .home-authors .author-mini-list a { flex-basis: 80px; }
  .home-authors .portrait-slot { width: 60px; height: 60px; }
  .footer { margin: 10px -10px 0; padding: 22px 20px 105px; gap: 13px; align-items: flex-start; }
  .footer-brand { width: 100%; }
  .footer nav { gap: 8px 15px; }
  .footer a,.footer button { font-size: .72rem; min-height: 35px; }
  .footer-promise { max-width: none; }
  .library-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .library-layout > .scene-background { inset: 0; border-radius: 18px; }
  .library-menu { padding: 12px; }
  .library-menu > a { min-height: 44px; padding: 7px 9px; font-size: .8rem; }
  .library-menu .collection-link { padding: 8px; }
  .library-scene { min-height: 470px; }
  .scene-content { padding: 10px; }
  .scene-toolbar label { flex: 0 1 auto; max-width: 80%; }
  .companion-card.compact { width: 100%; margin: 13px 0; padding: 11px; }
  .scene-shelves { margin-top: 14px; }
  .object-drawer { grid-column: auto; padding: 15px; }
  .object-tabs button,.object-categories button { min-height: 44px; }
  .object-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .library-bottom { grid-template-columns: 1fr; gap: 12px; }
  .library-bottom .mini-books { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .library-bottom .cover { max-height: 130px; }
  .mission-stack { grid-template-columns: 1fr; grid-column: auto; }
  .mission-card .button { min-height: 44px; }
  .profile-heading h1 { font-size: 1.4rem; }
  .profile-heading p { font-size: .78rem; }
  .profile-hero { padding: 14px; gap: 12px; min-height: 0; }
  .profile-hero > .avatar { width: 78px; height: 78px; min-width: 78px; font-size: 2rem; }
  .profile-hero > div { min-width: 145px; }
  .profile-hero h2 { font-size: 1.25rem; }
  .profile-hero p { font-size: .72rem; }
  .profile-hero button { min-height: 42px; font-size: .68rem; padding: 7px 9px; }
  .profile-layout .mini-books { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .profile-layout .mini-book .cover { width: 100%; height: auto; aspect-ratio: 3/4; max-height: 140px; }
  .profile-layout .grid-2 { grid-template-columns: 1fr 1fr; gap: 9px; }
  .profile-layout .grid-2 .panel { padding: 11px; }
  .profile-layout .grid-2 .section-title { flex-wrap: wrap; gap: 6px; }
  .profile-layout .grid-2 .section-title h2 { font-size: .83rem; }
  .profile-layout .grid-2 .mini-books { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .profile-layout .grid-2 .cover { max-height: 90px; }
  .profile-layout .grid-2 .empty-copy { font-size: .7rem; }
  .profile-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .profile-shortcuts .panel { min-height: 90px; padding: 10px 5px; font-size: .6rem; gap: 7px; text-align: center; }
  .reader { inset: 0; margin: 0; border: 0; border-radius: 0; height: 100dvh; }
  .reader-head { padding: 8px 10px; }
  .reader-contents { width: 210px; position: absolute; inset: 0 auto 0 0; z-index: 3; box-shadow: 10px 0 25px #25345424; }
  .reader-mode-label { display: flex; }
  .reader-foot { padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); gap: 5px; }
  .reader-foot button { min-height: 42px; font-size: .66rem; padding: 7px; }
  .reader-foot select { min-height: 42px; }
  .reader-foot input[type=range] { max-width: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .reader { inset: 0; border: 0; height: 100dvh; border-radius: 0; }
  .reader-head { min-height: 48px; padding: 4px 10px; }
  .reader-head button { min-height: 36px; }
  .reader-foot { padding: 4px 8px; gap: 4px; }
  .reader-foot button,.reader-foot select { min-height: 34px; padding: 5px 8px; }
  .reader-contents { width: 155px; min-width: 155px; }
  .reader-cover { display: none; }
}
/* Un emplacement vide ne doit pas découper un faux titre de couverture. */
.cover .neutral-cover{padding:8px;display:flex;align-items:center;justify-content:center;text-align:center;gap:7px}
.cover .neutral-cover strong{font-size:.7rem;line-height:1.2;overflow-wrap:anywhere;max-width:100%}
.cover .neutral-cover span{font-size:.62rem;letter-spacing:0;text-transform:none;line-height:1.25}
.scene-shelves .cover .neutral-cover strong,.reader-cover .cover .neutral-cover strong{display:none}
@media(min-width:1001px){.topbar .nav a{min-height:48px;padding:4px 8px;gap:3px}}
@media(max-width:700px){
 .profile-hero>.avatar{width:88px;height:88px;min-width:88px}
 .profile-hero .row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .profile-hero .row button{min-width:0;white-space:normal}
 .profile-hero .row button:last-child{grid-column:1/-1}
 .profile-layout .mini-book .cover{height:106px;width:80px;max-width:100%}
 .profile-layout .grid-2 .empty-copy{padding:6px 0;margin:6px 0;line-height:1.4}
 .home-lower>.panel{padding-bottom:36px}
}
.hero-copy h1{max-width:410px}
.mini-book.horizontal .cover .neutral-cover span,.scene-shelves .cover .neutral-cover span{display:block;font-size:.55rem;line-height:1.25}

/* Finition V6 : proportions tirées des références, sans illustrations ajoutées. */
h1,h2,h3,.brand{font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif}
.hero-line{display:block}
@media(min-width:1001px){
 .home-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.62fr);gap:16px;padding:16px 20px 16px clamp(46px,5vw,78px);min-height:260px}
 .hero-copy h1{font-size:clamp(2.25rem,3.12vw,3.2rem);line-height:1.02;letter-spacing:-.055em;max-width:540px;font-weight:800;margin-bottom:12px}
 .hero-copy>p:not(.eyebrow){max-width:440px;line-height:1.2;font-size:.85rem;margin-bottom:12px}
 .hero-copy .row{gap:10px;margin-top:0;flex-wrap:wrap}
 .hero-copy .button{min-height:38px}
 .topbar .brand{margin-right:10px}
 .library-layout,.library-scene{min-height:clamp(490px,35.4vw,595px)}
 .library-menu h1{font-size:1.12rem}.library-menu h2{font-size:1rem}
 .object-drawer summary{font-size:1.16rem}
 .scene-toolbar{position:absolute;right:6px;top:9px;z-index:2}
 .companion-card.compact{margin-top:8px;max-width:440px;width:65%;min-width:335px}
 .scene-content{padding-top:12px}.scene-shelves{margin-top:38px}
 .library-bottom{grid-template-columns:1fr 1.76fr 1.18fr}.library-bottom>.panel{padding:16px}
 .home-lower>.panel{background:#fff;box-shadow:0 3px 12px #35407004}
 .profile-layout{max-width:1000px}.profile-hero{background:linear-gradient(110deg,#fff,#f7f8ff);min-height:185px}
 .profile-hero>.avatar{width:138px;height:138px;min-width:138px}
}
.category-card,.home-hero{position:relative;isolation:isolate}
.hero-visual.has-media{align-self:stretch;border:0;background:none;border-radius:0;overflow:hidden}
.hero-visual.has-media img,.hero-visual.has-media video{object-fit:cover;width:100%;height:100%}
.category-card:has(.has-media){overflow:hidden}
.category-card>.has-media{position:absolute;inset:0 0 0 39%;width:auto;height:100%;max-height:none;aspect-ratio:auto;background:none;border:0;border-radius:0;z-index:-1}
.category-card>.has-media img,.category-card>.has-media video{object-fit:cover;mask-image:linear-gradient(90deg,transparent,#000 18%)}
.home-library .library-teaser.has-media{inset:0;z-index:0;mask-image:linear-gradient(180deg,transparent,#000 42%)}
.home-library .library-teaser.has-media img{object-fit:cover}
.profile-shortcuts>.panel:nth-child(1){color:#e35082}.profile-shortcuts>.panel:nth-child(2){color:#8c59d4}.profile-shortcuts>.panel:nth-child(3){color:#4b73d1}.profile-shortcuts>.panel:nth-child(4){color:#ad78c2}
.profile-shortcuts strong{color:var(--ink)}
@media(max-width:700px){.hero-copy h1{letter-spacing:-.045em}.hero-line{display:inline}.profile-heading{padding-top:5px}.profile-hero{background:linear-gradient(125deg,#fff,#f3f5ff)}.profile-layout>.panel{border-radius:18px}.profile-shortcuts .panel{background:linear-gradient(#fff,#f6f5ff)}}
@media(min-width:430px) and (max-width:700px){.profile-hero>.avatar{width:116px;height:116px;min-width:116px}}
