/* =========================================================
   Librairie Parakletos — feuille de style du site public
   Bleu nuit du logo CIE/MIA + or doux, fond « papier ».
   ========================================================= */

:root {
    --ink: #1c2254;          /* bleu nuit : titres, fonds sombres */
    --brand: #344096;        /* bleu du logo */
    --brand-600: #2a3480;
    --brand-50: #eef0fa;
    --gold: #e2b93b;         /* or : accents, boutons secondaires */
    --gold-700: #8a6a10;     /* or lisible sur fond clair */
    --gold-50: #fbf4dc;
    --paper: #faf7f1;        /* fond général */
    --paper-2: #f3eee3;
    --card: #ffffff;
    --line: #e6e0d2;
    --line-2: #d8d0bd;
    --text: #22253a;
    --muted: #63667a;
    --ok: #1f7a4d;
    --ok-50: #e7f5ee;
    --err: #b42318;
    --err-50: #fdecea;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(28, 34, 84, .06), 0 2px 8px rgba(28, 34, 84, .05);
    --shadow: 0 2px 4px rgba(28, 34, 84, .05), 0 12px 32px rgba(28, 34, 84, .10);
    --shadow-book: 0 1px 1px rgba(0,0,0,.08), 0 8px 18px rgba(28, 34, 84, .18), 0 24px 40px -18px rgba(28, 34, 84, .35);
    --gutter: 16px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ecc955; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold-50); color: var(--ink); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--brand); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-quiet { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.link-quiet:hover { color: var(--brand); text-decoration: underline; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--brand-50); color: var(--brand); }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--ok { background: var(--ok-50); color: var(--ok); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------- Avis / notices ---------- */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; margin: 0 0 18px; }
.notice .icon { margin-top: 2px; }
.notice--ok { background: var(--ok-50); color: var(--ok); }
.notice--err { background: var(--err-50); color: var(--err); }
.notice--info { background: var(--brand-50); color: var(--brand-600); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(28,34,84,.4); }
.site-header__row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand__text small { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.brand--light { color: #fff; }
.brand--light .brand__text small { color: rgba(255,255,255,.65); }

.main-nav { display: none; gap: 4px; }
.main-nav a { position: relative; padding: 8px 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px; }
.main-nav a:hover { color: var(--brand); background: var(--brand-50); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }

.header-search { display: none; position: relative; flex: 1; max-width: 260px; margin-left: auto; }
.header-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.header-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 16px 0 40px; font-size: 14.5px; }
.header-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.header-actions { display: none; align-items: center; gap: 14px; flex: none; }

.menu-toggle { margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); padding: 16px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-search { position: relative; margin-bottom: 8px; }
.mobile-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.mobile-search input { width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; padding: 0 16px 0 44px; font-size: 16px; }
.mobile-menu__link { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 20px; }
.mobile-menu__link .icon { color: var(--muted); }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 20px; }

@media (min-width: 1024px) {
    .main-nav, .header-actions { display: flex; }
    .header-search { display: block; }
    .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1180px) { .header-search { display: none; } .header-actions { margin-left: auto; } }

.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 18px; flex: none; }
.avatar--xs { width: 26px; height: 26px; font-size: 13px; }
.avatar--lg { width: 72px; height: 72px; font-size: 30px; background: var(--gold); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #dfe2f3; }
.section--ink h2, .section--ink h3 { color: #fff; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.section--ink .section-head p { color: #b9bedb; }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; margin-bottom: 20px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.hero__lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 540px; box-shadow: var(--shadow-sm); }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.hero-search > .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 46px; font-size: 16px; outline: none; }
.hero-search .btn { min-height: 46px; }
.hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: .2s; cursor: pointer; }
.chip:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.chip[aria-current="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { color: inherit; opacity: .6; font-weight: 600; }

.hero__book { position: absolute; bottom: 34px; width: 42%; aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: var(--shadow-book); transition: transform .5s cubic-bezier(.2,.7,.2,1); background: #ddd; }
.hero__book img { width: 100%; height: 100%; object-fit: cover; }
.hero__book::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 60%, transparent); }
.hero__book--1 { left: 6%; transform: rotate(-8deg); z-index: 1; }
.hero__book--2 { left: 29%; bottom: 52px; width: 45%; z-index: 3; }
.hero__book--3 { right: 4%; transform: rotate(7deg); z-index: 2; }
.hero__seal { position: absolute; z-index: 6; right: 0; top: 0; width: 96px; height: 96px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 14px; line-height: 1.15; font-weight: 600; transform: rotate(8deg); box-shadow: var(--shadow); }
.hero__seal strong { display: block; font-size: 30px; }

/* ---------- Accueil : scènes animées (personnes détourées + livres) ---------- */
.stage { --bar: 52px; position: relative; width: 100%; max-width: 580px; height: 400px; margin: 0 auto; }
.scene { position: absolute; inset: 0 0 var(--bar); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 2; }
.scene > * { position: absolute; }

/* Fonds */
.scene__panel { left: 0; right: 0; top: 24%; bottom: 0; border-radius: 28px; }
.scene__panel--blue { background: linear-gradient(180deg, var(--brand) 0%, #7a83c2 55%, #eef0fa 100%); }
.scene__panel--gold { top: 10%; background: linear-gradient(180deg, #fffdf0 0%, #fbf2b5 45%, #f1df4f 100%); }
.scene--femme .scene__panel { top: 6%; }
.scene__block { left: 34%; right: 0; top: 42%; bottom: 0; border-radius: 22px; background: linear-gradient(160deg, #f4e53c, #f8f1b4); }
.scene__block--round { left: auto; right: 4%; top: 18%; bottom: auto; width: 66%; aspect-ratio: 1; border-radius: 50%; }

/* Personnes détourées */
.scene__person { bottom: 0; right: 0; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(28, 34, 84, .25)); }
.scene--femme .scene__person { width: 72%; right: 2%; }
.scene--fillette .scene__person { width: 84%; right: 0; }

/* Couvertures flottantes */
.scene__cover { width: 22%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-book); z-index: 3; }
.scene--famille .scene__cover--a { left: 3%; top: 0; --r: -10deg; }
.scene--famille .scene__cover--b { left: 24%; top: 8%; width: 18%; --r: 7deg; }
.scene--femme .scene__cover--a { left: 4%; top: 16%; width: 26%; --r: -8deg; }
.scene--fillette .scene__cover--a { left: 2%; top: 4%; --r: -9deg; }
.scene--fillette .scene__cover--b { left: 20%; top: 26%; width: 17%; --r: 6deg; }

/* Tablette + livre papier */
.device { left: 8%; bottom: 8%; width: 40%; aspect-ratio: 3 / 4.2; padding: 4.5% 4%; border-radius: 22px; background: #111522; box-shadow: 0 2px 0 2px #2b3044 inset, 0 30px 50px -18px rgba(28, 34, 84, .55); z-index: 3; --r: -6deg; }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.device::after { content: ""; position: absolute; left: 50%; bottom: 1.8%; width: 7%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #2b3044; }
.book3d { right: 8%; bottom: 6%; width: 38%; aspect-ratio: 2 / 3; perspective: 900px; z-index: 2; --r: 0deg; }
.book3d img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px 6px 6px 2px; transform: rotateY(-24deg); transform-origin: left center; box-shadow: 18px 24px 36px -12px rgba(28, 34, 84, .5); }
.book3d::before { content: ""; position: absolute; left: -5%; top: 1.5%; bottom: 1.5%; width: 7%; background: linear-gradient(90deg, #d9d2c0, #fff 40%, #cfc7b2); transform: skewY(-10deg); border-radius: 2px 0 0 2px; }

/* Entrées animées (rejouées à chaque scène) */
@keyframes st-panel { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes st-rise { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes st-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes st-drop { from { opacity: 0; transform: translateY(-40px) rotate(0deg); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes st-float { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-10px); } }
@keyframes st-left { from { opacity: 0; transform: translateX(-60px) rotate(0deg); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes st-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
.scene.is-active .scene__panel { animation: st-panel .8s cubic-bezier(.2,.7,.2,1) both; }
.scene.is-active .scene__block { animation: st-pop .7s .15s cubic-bezier(.2,.9,.3,1.2) both; }
.scene.is-active .scene__person { animation: st-rise .9s .25s cubic-bezier(.2,.7,.2,1) both; }
.scene.is-active .scene__cover--a { animation: st-drop .7s .55s cubic-bezier(.2,.7,.2,1) both, st-float 4s 1.3s ease-in-out infinite; }
.scene.is-active .scene__cover--b { animation: st-drop .7s .7s cubic-bezier(.2,.7,.2,1) both, st-float 4.6s 1.5s ease-in-out infinite; }
.scene.is-active .device { animation: st-left .8s .2s cubic-bezier(.2,.7,.2,1) both, st-float 5s 1.2s ease-in-out infinite; }
.scene.is-active .book3d { animation: st-right .8s .4s cubic-bezier(.2,.7,.2,1) both; }

/* Légende + pastilles de progression */
.stage__bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; z-index: 5; }
.stage__caption { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--ink); transition: opacity .3s; }
.stage__dots { display: flex; gap: 6px; flex: none; padding-bottom: 6px; }
.stage__dots button { width: 34px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.stage__dots span { display: block; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; position: relative; }
.stage__dots span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.stage__dots button.is-done span::after { transform: scaleX(1); }
.stage__dots button.is-active span::after { animation: st-progress var(--dur, 6s) linear both; }
.stage.is-paused .stage__dots button.is-active span::after { animation-play-state: paused; }
@keyframes st-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 900px) {
    .hero { padding: 56px 0 88px; }
    .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; }
    .stage { height: 540px; }
    .stage__caption { font-size: 17px; }
    .hero__seal { width: 108px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
    .scene.is-active * { animation: none !important; }
    .scene__cover, .device { transform: rotate(var(--r)); }
}

/* ---------- Bande de confiance ---------- */
.promises { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.promise { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 20px; }
.promise__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex: none; }
.promise h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; margin: 0 0 2px; color: var(--ink); letter-spacing: 0; }
.promise p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Carte livre ---------- */
.book-card { position: relative; }
.book-card__link { display: block; text-decoration: none; color: inherit; }
.book-card__cover { position: relative; aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-book); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card__cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.12) 60%, transparent); pointer-events: none; }
.book-card__cover .tag { position: absolute; top: 10px; left: 12px; }
.book-card__link:hover .book-card__cover { transform: translateY(-6px); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 16px 30px rgba(28, 34, 84, .22), 0 36px 50px -20px rgba(28, 34, 84, .4); }
.book-card__body { padding: 16px 2px 0; }
.book-card__cat { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 4px; }
.book-card__title { font-size: 17px; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card__link:hover .book-card__title { color: var(--brand); }
.book-card__author { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.book-card__price { font-weight: 700; color: var(--ink); margin: 0; font-size: 15px; }
.book-card__price small { font-weight: 500; color: var(--muted); font-size: 13px; }

.cover-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: linear-gradient(160deg, var(--brand), var(--ink)); color: #fff; }
.cover-fallback span { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.cover-fallback small { color: var(--gold); font-size: 12px; }

.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1000px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 30px; } }
.book-grid--5 { }
@media (min-width: 1100px) { .book-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Étagère défilante */
.shelf { position: relative; }
.shelf__track { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .shelf__track { grid-auto-columns: 30%; gap: 24px; } }
@media (min-width: 1000px) { .shelf__track { grid-auto-columns: calc((100% - 4 * 28px) / 5); gap: 28px; } }
.shelf__nav { display: flex; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.round-btn:hover { border-color: var(--ink); }
.round-btn[disabled] { opacity: .35; cursor: default; }
.section--ink .round-btn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.section--ink .book-card__title { color: #fff; }
.section--ink .book-card__author { color: #aab0d3; }
.section--ink .book-card__price { color: var(--gold); }
.section--ink .book-card__cat { color: var(--gold); }

/* ---------- Thèmes ---------- */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.theme { position: relative; display: flex; align-items: flex-end; min-height: 220px; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.theme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.theme::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,34,84,0) 30%, rgba(28,34,84,.88)); }
.theme__body { padding: 18px; width: 100%; }
.theme__body small { display: block; color: var(--gold); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.theme__body h3 { color: #fff; font-size: 24px; margin: 2px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.theme__body h3 .icon { width: 22px; height: 22px; transition: transform .25s; }
.theme__count { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 4px; }
.theme:hover img { transform: scale(1.06); }
.theme:hover h3 .icon { transform: translateX(4px); }
.theme:hover { color: #fff; }
@media (min-width: 900px) { .themes { grid-template-columns: repeat(4, 1fr); gap: 20px; } .theme { min-height: 340px; } .theme__body { padding: 24px; } .theme__body h3 { font-size: 28px; } }

/* ---------- Auteurs ---------- */
.authors { display: grid; gap: 20px; }
.author { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.author__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.author h3 { font-size: 23px; margin-bottom: 2px; }
.author__role { font-size: 13.5px; font-weight: 600; color: var(--gold-700); margin-bottom: 10px; }
.author p { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .authors { grid-template-columns: 1fr 1fr; gap: 28px; } .author { grid-template-columns: 140px 1fr; padding: 32px; gap: 28px; } .author__photo { width: 140px; height: 140px; } }

/* ---------- Étapes ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step__num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.formats { display: grid; gap: 18px; margin-top: 24px; }
.format { display: flex; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--ink); color: #c9cde6; }
.format h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.format p { margin: 0; font-size: 15px; }
.format__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(226,185,59,.15); color: var(--gold); display: grid; place-items: center; flex: none; }
.format__icon .icon { width: 26px; height: 26px; }
.format--paper { background: var(--gold-50); color: #5d5130; }
.format--paper h3 { color: var(--ink); }
.format--paper .format__icon { background: #fff; color: var(--gold-700); }
@media (min-width: 900px) { .formats { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Promotions ---------- */
.promo-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .promo-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; } }
.promo { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--gold); }
.promo__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.promo h3 { font-size: 22px; margin: 0; }
.promo p { color: var(--muted); margin: 0; font-size: 15px; }
.promo__stack { display: flex; }
.promo__stack img, .promo__stack .cover-fallback { width: 64px; height: 96px; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-book); border: 2px solid #fff; }
.promo__stack > * + * { margin-left: -18px; }
.promo__more { width: 64px; height: 96px; margin-left: -18px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid #fff; }
.promo__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.promo__price strong { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.promo__price s { color: var(--muted); }
.promo__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.save { font-size: 13.5px; font-weight: 600; color: var(--ok); background: var(--ok-50); padding: 5px 12px; border-radius: 999px; }

/* ---------- Revues (fond sombre) ---------- */
.revues-intro { display: grid; gap: 28px; align-items: end; margin-bottom: 32px; }
@media (min-width: 900px) { .revues-intro { grid-template-columns: 1fr auto; } }

/* ---------- Catalogue ---------- */
.page-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.page-head p { color: var(--muted); max-width: 620px; margin: 0; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }

.cat-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; margin-top: 8px; }
.cat-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,34,84,.92) 0%, rgba(28,34,84,.6) 55%, rgba(28,34,84,.15)); }
.cat-banner__body { padding: 28px; max-width: 620px; }
.cat-banner h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); margin: 0 0 8px; }
.cat-banner p { color: #dfe2f3; margin: 0; font-size: 17px; }
.cat-banner .eyebrow { color: var(--gold); }
@media (min-width: 900px) { .cat-banner { min-height: 300px; } .cat-banner__body { padding: 44px; } }

.catalog { display: grid; gap: 28px; padding: 28px 0 72px; }
@media (min-width: 1000px) { .catalog { grid-template-columns: 240px 1fr; gap: 48px; padding-top: 40px; } }
.filters { display: none; }
@media (min-width: 1000px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.filters h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.filters__group + .filters__group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 15px; }
.filter-list a:hover { background: #fff; color: var(--brand); }
.filter-list a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.filter-list a small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.filter-list a[aria-current="true"] small { color: rgba(255,255,255,.7); }

.toolbar { display: grid; gap: 14px; margin-bottom: 26px; }
.toolbar__search { position: relative; }
.toolbar__search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar__search input { width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; padding: 0 110px 0 46px; font-size: 16px; }
.toolbar__search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.toolbar__search .btn { position: absolute; right: 5px; top: 5px; min-height: 40px; }
.toolbar__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-count { color: var(--muted); font-size: 15px; margin: 0; }
.result-count strong { color: var(--ink); }
.select { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.select select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 38px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 500; font-size: 14.5px; cursor: pointer; }
.select .icon { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--ink); }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }
@media (min-width: 1000px) { .chips-scroll { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); text-decoration: none; font-weight: 500; }
.active-filters a .icon { width: 15px; height: 15px; }
.active-filters a:hover { background: var(--brand); color: #fff; }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: #fff; }
.empty__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--gold-50); color: var(--gold-700); display: grid; place-items: center; }
.empty__icon .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 24px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Fiche livre ---------- */
.product { display: grid; gap: 24px; padding: 12px 0 56px; }
.product__cover-wrap { position: relative; padding: 18px 0 4px; }
.product__cover-wrap::before { content: ""; position: absolute; inset: 0 8% 18% 8%; background: var(--paper-2); border-radius: 200px 200px 20px 20px; z-index: -1; }
.product__cover { width: min(210px, 56%); margin: 0 auto; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: var(--shadow-book); position: relative; background: var(--paper-2); }
.product__cover img { width: 100%; height: 100%; object-fit: cover; }
.product__cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.14) 60%, transparent); }
.product__cover-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.fav-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.fav-btn:hover { border-color: #c2410c; color: #c2410c; }
.fav-btn.is-on { border-color: #fbd5c5; background: #fff4ee; color: #c2410c; }
.fav-btn.is-on .icon { fill: currentColor; }

.product__info h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; margin: 8px 0 10px; }
.product__by { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.product__by img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; }
.product__by strong { color: var(--ink); font-weight: 600; }
.product__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); text-decoration: none; margin-bottom: 18px; }
.product__rating:hover { color: var(--brand); }
.product__summary { font-size: 17px; color: #43465a; margin-bottom: 24px; }

.buy-box { border: 1px solid var(--line); background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.buy-box h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 14px; letter-spacing: 0; }
.formats-pick { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 560px) { .formats-pick { grid-template-columns: 1fr 1fr; } }
.fmt { position: relative; display: block; cursor: pointer; }
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt__box { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); transition: .2s; height: 100%; }
.fmt__box .icon { grid-row: span 3; width: 24px; height: 24px; color: var(--muted); margin-top: 2px; }
.fmt__name { font-weight: 600; color: var(--ink); }
.fmt__price { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.fmt__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; }
.fmt__note { font-size: 13.5px; color: var(--muted); }
.fmt input:checked + .fmt__box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.fmt input:checked + .fmt__box .icon { color: var(--brand); }
.fmt input:focus-visible + .fmt__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.fmt--off { cursor: not-allowed; opacity: .55; }
.buy-box__perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.buy-box__perks li { display: flex; align-items: center; gap: 8px; }
.buy-box__perks .icon { width: 17px; height: 17px; color: var(--ok); }
.buy-box--owned { background: var(--ok-50); border-color: #bfe3cf; }
.buy-box--owned h2 { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 17px; }
.buy-box--owned p { color: #2d5c45; margin-bottom: 16px; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 28px 0 0; }
.specs div { padding: 14px 16px; box-shadow: -1px -1px 0 var(--line); }
.specs dt { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.specs dt .icon { width: 15px; height: 15px; }
.specs dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(3, 1fr); } }

.prose { font-size: 17px; line-height: 1.75; color: #3a3d50; max-width: 720px; }
.prose p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 58px; line-height: .9; padding: 6px 10px 0 0; color: var(--brand); font-weight: 600; }

@media (min-width: 900px) {
    .product { grid-template-columns: 400px 1fr; gap: 64px; padding-top: 28px; }
    .product__media { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
    .product__cover { width: 320px; }
}

.block { padding: 48px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 3.4vw, 34px); }

/* Avis */
.reviews { display: grid; gap: 28px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 300px 1fr; gap: 56px; } }
.score { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.score__big { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--ink); line-height: 1; }
.score__big small { font-size: 20px; color: var(--muted); font-weight: 400; }
.score__total { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 14px 1fr 24px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.bar__track { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar__fill { height: 100%; background: var(--gold); border-radius: 99px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; fill: #e2dccd; }
.stars svg.on { fill: var(--gold); }
.stars--lg svg { width: 22px; height: 22px; }

.review-list { display: grid; gap: 14px; }
.review { padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review__head .avatar { width: 40px; height: 40px; font-size: 16px; }
.review__who { flex: 1; min-width: 0; }
.review__who strong { display: block; color: var(--ink); }
.review__date { font-size: 13px; color: var(--muted); }
.review p { margin: 0; color: #43465a; }

.rate-form { padding: 22px; border-radius: var(--r); background: var(--gold-50); border: 1px solid #f0e2b0; margin-bottom: 8px; }
.rate-form h3 { font-size: 20px; margin-bottom: 4px; }
.rate-form p { font-size: 14.5px; color: #6b5c2c; margin-bottom: 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 12px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: #dcd3b9; transition: color .15s, transform .15s; }
.star-input label svg { width: 34px; height: 34px; fill: currentColor; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 3px solid var(--brand); border-radius: 4px; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.pw { position: relative; }
.pw input { padding-right: 54px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.pw button:hover { color: var(--ink); background: var(--paper-2); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check--light { color: #b9bedb; }
.check--light input { accent-color: var(--gold); }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Connexion / inscription ---------- */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__panel { display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; }
.auth__panel .brand { margin-bottom: auto; }
.auth__form { width: 100%; max-width: 420px; margin: 40px auto; }
.auth__form h1 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 8px; }
.auth__form > p { color: var(--muted); margin-bottom: 28px; }
.auth__alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth__alt a { font-weight: 600; }
.auth__aside { display: none; position: relative; overflow: hidden; background: var(--ink); color: #dfe2f3; isolation: isolate; }
@media (min-width: 960px) { .auth__aside { display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; } }
.auth__aside::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -140px; background: radial-gradient(circle, rgba(226,185,59,.4), transparent 65%); z-index: -1; }
.auth__books { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); width: 72%; height: 48%; }
.auth__books .hero__book { width: 38%; bottom: 0; }
.auth__aside blockquote { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.3; color: #fff; font-style: italic; max-width: 460px; }
.auth__aside cite { display: block; margin-top: 12px; font-style: normal; color: var(--gold); font-size: 15px; font-family: var(--sans); }
.auth__benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.auth__benefits li { display: flex; gap: 10px; align-items: center; }
.auth__benefits .icon { color: var(--gold); }

/* ---------- Espace lecteur ---------- */
.account-head { padding: 36px 0 0; }
.account-hello { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.account-hello h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 0; }
.account-hello p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.account-hello .btn { margin-left: auto; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-top: 32px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.tabs a .count { font-size: 12px; background: var(--paper-2); color: var(--muted); border-radius: 99px; padding: 2px 8px; }
.tabs a[aria-current="page"] .count { background: var(--ink); color: #fff; }
.account-body { padding: 32px 0 72px; }

.lib-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .lib-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.lib-item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.lib-item__cover { width: 92px; aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: var(--shadow-book); }
.lib-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-item h3 { font-size: 18px; line-height: 1.25; margin: 4px 0 4px; }
.lib-item h3 a { color: inherit; text-decoration: none; }
.lib-item h3 a:hover { color: var(--brand); }
.lib-item__meta { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.lib-item__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-item__actions .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }

.panel { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.panel h2 { font-size: 24px; }
.panel + .panel { margin-top: 20px; }
.profile-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } .profile-grid .panel + .panel { margin-top: 0; } }

/* ---------- Lecteur PDF ---------- */
.reader { position: fixed; inset: 0; display: flex; flex-direction: column; background: #2a2d3e; }
.reader__bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; background: var(--ink); color: #fff; flex: none; }
.reader__back { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.reader__back:hover { background: rgba(255,255,255,.1); color: #fff; }
.reader__title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__title small { font-family: var(--sans); color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-left: 8px; }
.reader__tools { display: flex; gap: 4px; }
.reader__tools button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.reader__tools button:hover { background: rgba(255,255,255,.12); }
.reader__frame { position: relative; flex: 1; overflow: hidden; }
.reader__frame iframe { width: 100%; height: 100%; border: 0; transform-origin: 0 0; background: #2a2d3e; }
.reader__foot { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; font-size: 12.5px; color: #aab0d3; background: #1f2132; }
.reader__foot .icon { width: 14px; height: 14px; }
.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(15,18,40,.7); z-index: 80; padding: 16px; }
.modal.is-open { display: grid; }
.modal__box { max-width: 420px; background: #fff; border-radius: var(--r-lg); padding: 28px; text-align: center; }
.modal__box h2 { font-size: 24px; }
.modal__box p { color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #b9bedb; margin-top: 0; }
.newsletter { border-bottom: 1px solid rgba(255,255,255,.08); }
.newsletter__inner { display: grid; gap: 24px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
.newsletter h2 { color: #fff; font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 8px; }
.newsletter p { margin: 0; max-width: 460px; }
.newsletter__field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); margin-bottom: 14px; }
.newsletter__field input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #fff; padding: 0 14px; font-size: 16px; outline: none; }
.newsletter__field input::placeholder { color: #8d93b8; }
@media (min-width: 900px) { .newsletter__inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
@media (max-width: 479px) { .newsletter__field { flex-direction: column; border-radius: var(--r); } .newsletter__field input { height: 48px; } }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.footer-grid h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #b9bedb; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin: 16px 0 18px; max-width: 320px; font-size: 15px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.contact-list .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 3px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 28px; font-size: 13.5px; }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Note des lecteurs sur les cartes : étoiles + (nombre d'avis)
   ========================================================= */
.rating { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; line-height: 1; }
.rating__stars { display: inline-flex; gap: 1px; color: var(--gold); }
.rating__stars svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; overflow: visible; }
.rating__stars .r-empty { fill: none; color: #c9bfa4; }
.rating__count { font-size: 13.5px; color: var(--muted); }
.section--ink .rating__count { color: #aab0d3; }
.section--ink .rating__stars .r-empty { color: #5b628f; }

/* =========================================================
   Accueil : animations sur toute la page
   ========================================================= */

/* Barre de progression de lecture de la page */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--gold), #f3d77a); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* Fond vivant du héros : taches de couleur qui dérivent lentement */
.hero { isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .6; animation: drift 22s ease-in-out infinite alternate; }
.hero__bg span:nth-child(1) { width: 420px; height: 420px; background: #f6e7b0; top: -120px; left: -80px; }
.hero__bg span:nth-child(2) { width: 380px; height: 380px; background: #dfe3f7; bottom: -160px; right: 10%; animation-duration: 26s; animation-delay: -6s; }
.hero__bg span:nth-child(3) { width: 260px; height: 260px; background: #fbefd0; top: 30%; left: 40%; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(.95); } }

/* Entrée du texte du héros au chargement */
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(105%) rotate(4deg); } to { opacity: 1; transform: none; } }
.hero-intro > * { animation: rise-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-intro > .eyebrow { animation-delay: .05s; }
.hero-intro > h1 { animation: none; }
.hero-intro > .hero__lead { animation-delay: .75s; }
.hero-intro > .hero-search { animation-delay: .9s; }
.hero-intro > .hero__chips { animation-delay: 1.05s; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; animation: word-in .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.15s + var(--i) * 55ms); }
.hero h1 em { white-space: nowrap; }
.hero-intro .chip { animation: rise-in .6s cubic-bezier(.2,.7,.2,1) both; }
.hero-intro .chip:nth-of-type(1) { animation-delay: 1.1s; }
.hero-intro .chip:nth-of-type(2) { animation-delay: 1.18s; }
.hero-intro .chip:nth-of-type(3) { animation-delay: 1.26s; }
.hero-intro .chip:nth-of-type(4) { animation-delay: 1.34s; }
.hero-search .btn { position: relative; overflow: hidden; }
.hero-search .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s 2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.stage { animation: rise-in 1s .3s cubic-bezier(.2,.7,.2,1) both; }

/* Badges flottants autour des scènes */
.float-chip { position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 14px 30px -10px rgba(28,34,84,.35); color: var(--ink); text-decoration: none; animation: chip-in .8s cubic-bezier(.2,.8,.3,1.2) both, bob 6s ease-in-out infinite; }
.float-chip small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.float-chip .rating { margin: 0 0 3px; }
.float-chip--rating { top: 2%; right: -6px; animation-delay: 1.3s, 2.1s; }
.float-chip--rating > strong { font-family: var(--serif); font-size: 30px; line-height: 1; }
.float-chip--new { left: -14px; top: 50%; max-width: 230px; animation-delay: 1.55s, 2.4s; }
.float-chip--new img { width: 34px; height: 50px; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.float-chip--new strong { font-size: 13.5px; line-height: 1.25; display: block; }
.float-chip--new:hover { color: var(--brand); }
@keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 599px) { .float-chip--new { display: none; } .float-chip--rating { right: 0; top: 0; padding: 8px 10px; } .float-chip--rating > strong { font-size: 24px; } }

/* Ruban de couvertures qui défile */
.ribbon { overflow: hidden; padding: 28px 0 34px; background: var(--ink); }
.ribbon__track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item { flex: none; width: 92px; aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,.35); transition: transform .3s; }
.ribbon__item:nth-child(odd) { transform: rotate(-2deg); }
.ribbon__item:nth-child(even) { transform: rotate(2deg) translateY(6px); }
.ribbon__item:hover { transform: translateY(-8px) scale(1.06); }
.ribbon__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 900px) { .ribbon__item { width: 116px; } }

/* Apparitions au défilement : data-reveal (un bloc) et data-stagger (les enfants en cascade) */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-stagger].is-in > * { opacity: 1; transform: none; }
.section-head .eyebrow::before { transform-origin: left; transition: transform .8s .25s cubic-bezier(.2,.7,.2,1); }
.section-head[data-reveal]:not(.is-in) .eyebrow::before { transform: scaleX(0); }

/* Étoiles qui s'allument une à une quand la carte apparaît */
[data-stagger] .rating__stars svg { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
[data-stagger].is-in .rating__stars svg { transform: none; }
[data-stagger].is-in .rating__stars svg:nth-child(1) { transition-delay: .35s; }
[data-stagger].is-in .rating__stars svg:nth-child(2) { transition-delay: .42s; }
[data-stagger].is-in .rating__stars svg:nth-child(3) { transition-delay: .49s; }
[data-stagger].is-in .rating__stars svg:nth-child(4) { transition-delay: .56s; }
[data-stagger].is-in .rating__stars svg:nth-child(5) { transition-delay: .63s; }

/* Icônes des promesses */
.promise__icon { transition: transform .3s; }
.promise:hover .promise__icon { transform: translateY(-4px) rotate(-6deg); }

/* Thèmes : l'image se dévoile comme un rideau */
.themes[data-stagger] > * { clip-path: inset(100% 0 0 0 round 14px); transform: none; opacity: 1; transition: clip-path 1s cubic-bezier(.7,0,.2,1); transition-delay: calc(var(--i, 0) * 120ms); }
.themes[data-stagger].is-in > * { clip-path: inset(0 0 0 0 round 14px); }
.themes[data-stagger] .theme img { transform: scale(1.25); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.themes[data-stagger].is-in .theme img { transform: scale(1); }
.themes[data-stagger].is-in .theme:hover img { transform: scale(1.06); transition-duration: .6s; }

/* Auteurs : cercle doré qui tourne autour de la photo */
.author__photo { position: relative; overflow: visible; box-shadow: none; }
.author__photo img { border-radius: 50%; position: relative; z-index: 1; }
.author__photo::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed var(--gold); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Revues : halo lumineux qui se déplace */
.section--glow { position: relative; overflow: hidden; isolation: isolate; }
.section--glow::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; left: -10%; top: -40%; z-index: -1; background: radial-gradient(circle, rgba(226,185,59,.22), transparent 65%); animation: glow 18s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(70vw, 50%); } }

/* Promotions : compte à rebours + reflet */
.countdown { font-variant-numeric: tabular-nums; position: relative; overflow: hidden; }
.countdown::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.5s ease-in-out infinite; }

/* Étapes : la ligne se trace entre les numéros */
.steps { position: relative; }
@media (min-width: 900px) {
    .steps::before { content: ""; position: absolute; top: 45px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); transform: scaleX(0); transform-origin: left; transition: transform 1.4s .4s cubic-bezier(.7,0,.2,1); z-index: 0; }
    .steps.is-in::before { transform: scaleX(1); }
    .step { z-index: 1; }
}
.step__num { transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i, 0) * 200ms + .3s); }
.steps[data-stagger]:not(.is-in) .step__num { transform: scale(0); }

/* Les livres préférés des lecteurs */
.loved { display: grid; gap: 18px; }
@media (min-width: 900px) { .loved { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.loved__card { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: opacity .7s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.loved__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.loved__cover { aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; overflow: hidden; box-shadow: var(--shadow-book); }
.loved__cover img { width: 100%; height: 100%; object-fit: cover; }
.loved__score { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.loved__score strong { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1; }
.loved__score .rating { margin: 0; }
.loved h3 { font-size: 18px; margin: 0 0 2px; }
.loved__card:hover h3 { color: var(--brand); }
.muted-line { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.loved blockquote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--gold-50); border-radius: 0 10px 10px 0; font-size: 14px; color: #4a4d60; font-style: italic; }
.loved cite { display: block; margin-top: 4px; font-style: normal; font-weight: 600; font-size: 13px; color: var(--gold-700); }
.loved cite::before { content: "— "; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-stagger] > *, .themes[data-stagger] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    [data-stagger] .rating__stars svg, .steps[data-stagger] .step__num { transform: none !important; }
    .ribbon__track, .hero__bg span, .author__photo::before, .section--glow::before, .float-chip { animation: none !important; }
    .hero h1 .w > span, .hero-intro > *, .hero-intro .chip, .stage { animation: none !important; }
}
[data-stagger].is-done > * { transition-delay: 0s; }

/* Les animations latérales ne doivent jamais créer de défilement horizontal */
main { overflow-x: clip; }

/* =========================================================
   Accueil : diaporama plein écran (lecteurs détourés + grand cercle)
   ========================================================= */
.hs { --cur: #e2b93b; --sp: 0; --mx: 0; --my: 0; position: relative; height: 820px; overflow: hidden; color: #fff; isolation: isolate;
      background: radial-gradient(120% 90% at 70% 40%, #262d6e 0%, #161a44 55%, #0f1233 100%); }
@media (min-width: 900px) { .hs { height: clamp(640px, calc(100svh - var(--header-h)), 860px); } }
.hs::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
             background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; }
.hs__glow { position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -10vw; top: 50%; transform: translateY(-50%); z-index: -1; border-radius: 50%;
            background: radial-gradient(circle, color-mix(in srgb, var(--cur) 45%, transparent), transparent 62%); transition: background 1s ease; filter: blur(10px); }

.hs__slides, .hs__slide { position: absolute; inset: 0; }
.hs__slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.hs__slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; z-index: 2; }
.hs__slide.is-leaving { opacity: 0; visibility: visible; z-index: 1; }

.hs__grid { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr; padding-top: 40px; padding-bottom: 92px; }
@media (min-width: 900px) { .hs__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: none; align-items: center; padding-top: 0; } }

/* Gros numéro en filigrane */
.hs__num { position: absolute; right: 4%; top: 2%; font-family: var(--serif); font-weight: 600; font-size: clamp(120px, 22vw, 300px); line-height: 1; letter-spacing: -.04em;
           color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.12); pointer-events: none; translate: calc(var(--mx) * -14px) calc(var(--sp) * 120px); }

/* Texte */
.hs__text { position: relative; z-index: 3; max-width: 540px; translate: 0 calc(var(--sp) * -60px); opacity: calc(1 - var(--sp) * 1.3); }
.hs__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9cde6; }
.hs__eyebrow span { color: var(--accent); font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
.hs__eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--accent); border-radius: 2px; order: 1; }
.hs__eyebrow span { order: 0; }
.hs__title { color: #fff; font-size: clamp(40px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 600; }
.hs__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hs__title .ln > span { display: inline-block; }
.hs__title em { color: var(--accent); font-weight: 500; }
.hs__lead { color: #c9cde6; font-size: clamp(15.5px, 1.4vw, 18px); max-width: 440px; margin: 0 0 28px; }
.hs__cta { display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.hs__cta-circle { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.hs__cta:hover { color: #fff; }
.hs__cta:hover .hs__cta-circle { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateX(4px); }

/* Visuel : cercle, anneau, lecteur, livre */
.hs__visual { position: relative; height: 100%; min-height: 360px; translate: 0 calc(var(--sp) * 70px); }
.hs__circle { position: absolute; left: 50%; top: 52%; width: min(500px, 74vw); aspect-ratio: 1; margin: calc(min(500px, 74vw) / -2) 0 0 calc(min(500px, 74vw) / -2); border-radius: 50%;
              background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 80%, #000));
              box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); translate: calc(var(--mx) * 10px) calc(var(--my) * 10px); }
.hs__ring { position: absolute; left: 50%; top: 52%; width: min(600px, 88vw); aspect-ratio: 1; margin: calc(min(600px, 88vw) / -2) 0 0 calc(min(600px, 88vw) / -2); border-radius: 50%;
            border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.hs__person { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; max-width: 112%; object-fit: contain; object-position: bottom; transform: translateX(-50%);
              filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); translate: calc(var(--mx) * -18px) calc(var(--my) * -8px);
              -webkit-mask-image: linear-gradient(to top, transparent 0, #000 14%); mask-image: linear-gradient(to top, transparent 0, #000 14%); }
.hs__person--fade-droite { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 14%), linear-gradient(to left, transparent 0, #000 16%); -webkit-mask-composite: source-in;
                           mask-image: linear-gradient(to top, transparent 0, #000 14%), linear-gradient(to left, transparent 0, #000 16%); mask-composite: intersect; }
.hs__book { position: absolute; z-index: 4; left: 0; bottom: 18%; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; max-width: 290px; border-radius: 18px;
            background: rgba(255,255,255,.95); color: var(--ink); text-decoration: none; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55); translate: calc(var(--mx) * 22px) calc(var(--my) * 14px); }
.hs__book:hover { color: var(--brand); }
.hs__book-cover { width: 58px; flex: none; aspect-ratio: 2 / 3; border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.hs__book-cover img { width: 100%; height: 100%; object-fit: cover; }
.hs__book-info { min-width: 0; }
.hs__book-info small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.hs__book-info strong { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.25; margin: 2px 0 6px; }
.hs__book-info .rating { margin: 0 0 4px; }
.hs__book-info b { font-size: 14px; }

/* Commandes : compteur 01 — 04, thèmes, flèches */
.hs__controls { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; display: flex; align-items: center; gap: 24px; }
.hs__counter { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 16px; color: #c9cde6; font-variant-numeric: tabular-nums; }
.hs__counter span:first-child { color: #fff; font-size: 20px; }
.hs__bar { width: 110px; height: 2px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.hs__bar i { display: block; height: 100%; background: var(--cur); transform-origin: left; transform: scaleX(0); }
.hs__bar i.is-running { animation: hs-progress var(--hs-dur, 7s) linear forwards; }
.hs.is-paused .hs__bar i { animation-play-state: paused; }
@keyframes hs-progress { to { transform: scaleX(1); } }
.hs__dots { display: none; gap: 4px; }
.hs__dots button { background: none; border: 0; color: #8f96c4; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 10px; cursor: pointer; border-radius: 999px; transition: color .3s, background .3s; }
.hs__dots button:hover { color: #fff; }
.hs__dots button[aria-selected="true"] { color: var(--ink); background: var(--cur); }
@media (min-width: 1100px) { .hs__dots { display: flex; } }
.hs__arrows { margin-left: auto; display: flex; gap: 10px; }
.hs__arrow { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: .3s; }
.hs__arrow:hover { border-color: #fff; }
.hs__arrow--next { background: #fff; color: var(--ink); border-color: #fff; }
.hs__arrow--next:hover { background: var(--cur); border-color: var(--cur); }

.hs__scroll { display: none; position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 5; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8f96c4; }
.hs__scroll span { width: 1.5px; height: 34px; background: linear-gradient(var(--cur), transparent); animation: scroll-hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes scroll-hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1300px) { .hs__scroll { display: flex; } }

/* Entrées animées de la diapositive active */
@keyframes hs-pop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: none; } }
@keyframes hs-ring { from { opacity: 0; transform: scale(.6) rotate(-90deg); } to { opacity: 1; transform: rotate(0); } }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-person { from { opacity: 0; transform: translateX(-50%) translate(90px, 30px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes hs-line { from { transform: translateY(110%); } to { transform: none; } }
@keyframes hs-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hs-book { from { opacity: 0; transform: translateY(40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes hs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hs-num { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.hs__slide.is-active .hs__circle { animation: hs-pop 1s cubic-bezier(.2,.8,.2,1) both; }
.hs__slide.is-active .hs__ring { animation: hs-ring 1.2s .1s cubic-bezier(.2,.8,.2,1) both, hs-spin 40s 1.3s linear infinite; }
.hs__slide.is-active .hs__person { animation: hs-person 1.1s .25s cubic-bezier(.2,.8,.2,1) both; }
.hs__slide.is-active .hs__book { animation: hs-book .9s .75s cubic-bezier(.2,.8,.3,1.1) both, hs-float 6s 1.7s ease-in-out infinite; }
.hs__slide.is-active .hs__num { animation: hs-num 1.2s .1s cubic-bezier(.2,.8,.2,1) both; }
.hs__slide.is-active .hs__eyebrow { animation: hs-up .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.hs__slide.is-active .hs__title .ln > span { animation: hs-line .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.3s + var(--k) * .12s); }
.hs__slide.is-active .hs__lead { animation: hs-up .8s .6s cubic-bezier(.2,.8,.2,1) both; }
.hs__slide.is-active .hs__cta { animation: hs-up .8s .75s cubic-bezier(.2,.8,.2,1) both; }
/* Sortie : le lecteur file vers la gauche, le cercle se rétracte */
.hs__slide.is-leaving .hs__person { transform: translateX(-50%) translateX(-80px); opacity: 0; transition: transform .7s ease, opacity .5s ease; }
.hs__slide.is-leaving .hs__circle { transform: scale(.8); transition: transform .7s ease; }
.hs__slide.is-leaving .hs__text { opacity: 0; transition: opacity .4s ease; }

/* Recherche posée à cheval sous le diaporama */
.search-float-wrap { position: relative; z-index: 6; margin-top: -34px; }
.search-float { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px; background: #fff; border-radius: 22px; box-shadow: 0 24px 50px -24px rgba(28,34,84,.45); border: 1px solid var(--line); }
.search-float .hero-search { flex: 1 1 360px; max-width: none; box-shadow: none; }
.search-float .hero__chips { margin: 0; padding-right: 8px; }

/* Téléphone */
@media (max-width: 899px) {
    .hs__text { max-width: none; }
    .hs__title { margin-bottom: 14px; }
    .hs__lead { margin-bottom: 18px; font-size: 15px; }
    .hs__cta-circle { width: 48px; height: 48px; }
    .hs__visual { min-height: 0; }
    .hs__circle { width: min(330px, 78vw); margin: calc(min(330px, 78vw) / -2) 0 0 calc(min(330px, 78vw) / -2); }
    .hs__ring { width: min(390px, 92vw); margin: calc(min(390px, 92vw) / -2) 0 0 calc(min(390px, 92vw) / -2); }
    .hs__person { height: 96%; }
    .hs__book { left: 0; bottom: 6%; max-width: 200px; padding: 8px 10px 8px 8px; gap: 8px; }
    .hs__book-cover { width: 40px; }
    .hs__book-info strong { font-size: 13.5px; }
    .hs__book-info .rating, .hs__book-info b { display: none; }
    .hs__num { top: auto; bottom: 36%; }
    .hs__controls { bottom: 18px; }
    .hs__bar { width: 70px; }
    .hs__arrow { width: 46px; height: 46px; }
    .search-float { padding: 10px; }
    .search-float .hero__chips { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hs__slide.is-active *, .hs__slide.is-leaving * { animation: none !important; transition: none !important; }
    .hs__num, .hs__text, .hs__visual, .hs__circle, .hs__person, .hs__book { translate: none !important; }
}
/* Retouches du diaporama */
.hs__scroll { display: none !important; }
@media (min-width: 900px) { .hs__text { max-width: 640px; } .hs__title { font-size: clamp(42px, 4.9vw, 74px); } .hs__title .ln { white-space: nowrap; } .hs__book { left: -6%; bottom: 7%; } }
.hs__controls { bottom: 54px; }
.hs__grid { padding-bottom: 120px; }
@media (max-width: 899px) { .hs__controls { bottom: 46px; } .hs__grid { padding-bottom: 104px; } }

/* =========================================================
   « Nous trouver » : adresse + carte
   ========================================================= */
.visit { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .visit { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.visit h2 { font-size: clamp(28px, 4vw, 40px); }
.visit__info > p { color: var(--muted); max-width: 480px; }
.visit__list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.visit__list li { display: flex; gap: 14px; align-items: flex-start; }
.visit__list strong { display: block; color: var(--ink); font-weight: 600; }
.visit__list strong a { color: inherit; text-decoration: none; }
.visit__list span { color: var(--muted); font-size: 14.5px; }
.visit__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex: none; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); box-shadow: var(--shadow); border: 1px solid var(--line); }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit__pin { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); pointer-events: none; }
.visit__pin .icon { width: 16px; height: 16px; color: var(--gold); }

/* WhatsApp : bouton vert et bulle flottante */
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5b; color: #fff; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border-radius: 999px;
            background: #25d366; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6), 0 4px 10px rgba(0,0,0,.15);
            animation: wa-in .6s 1.5s cubic-bezier(.2,.9,.3,1.3) both; transition: transform .25s, background .25s; }
.wa-float:hover { color: #fff; background: #1ebe5b; transform: translateY(-3px); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: wa-pulse 2.6s 2.2s ease-out infinite; pointer-events: none; }
@keyframes wa-in { from { opacity: 0; transform: scale(.5) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 639px) { .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; } .wa-float__label { display: none; } }
.socials a:hover .icon { color: inherit; }
body.reading .wa-float { display: none; }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::before { animation: none; } }

/* =========================================================
   Livraison ou retrait (après l'achat d'une version papier)
   ========================================================= */
[hidden] { display: none !important; }
.delivery { padding-bottom: 72px; }
.delivery__grid { display: grid; gap: 28px; margin-top: 12px; }
@media (min-width: 900px) { .delivery__grid { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; } .delivery__order { position: sticky; top: calc(var(--header-h) + 20px); } }
.delivery__order { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.delivery__cover { width: 150px; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: var(--shadow-book); }
.delivery__cover img { width: 100%; height: 100%; object-fit: cover; }
.delivery__order h2 { font-size: 22px; margin: 0 0 4px; }
.delivery__facts { margin: 16px 0 0; display: grid; gap: 10px; }
.delivery__facts div { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.delivery__facts dt { color: var(--muted); }
.delivery__facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.delivery__main h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.delivery__lead { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.delivery__modes { margin-bottom: 22px; }
.delivery__modes .fmt__box { grid-template-columns: auto 1fr; padding: 18px; }
.delivery__modes .fmt__box .icon { grid-row: span 2; width: 28px; height: 28px; }
.delivery__modes .fmt__name { font-size: 17px; }
.delivery__fields { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.delivery__done { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.delivery__done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-50); color: var(--ok); margin-bottom: 16px; }
.delivery__done-icon .icon { width: 30px; height: 30px; }
.delivery__done p { color: #43465a; font-size: 16.5px; }
.delivery__address { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); font-size: 15.5px; }
.delivery__address .icon { width: 17px; height: 17px; color: var(--gold-700); vertical-align: -3px; margin-right: 6px; }
.delivery__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Suivi de la version papier sur la fiche livre et dans « Ma bibliothèque » */
.paper-status { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--gold-50); border: 1px solid #f0e2b0; margin-bottom: 16px; }
.paper-status .icon { width: 24px; height: 24px; color: var(--gold-700); flex: none; margin-top: 2px; }
.paper-status strong { display: block; color: var(--ink); }
.paper-status p { margin: 2px 0 0; font-size: 14.5px; color: #5d5130; }
.paper-status a { font-weight: 600; }
.lib-item__ship { font-size: 13.5px; margin: -4px 0 12px; color: var(--muted); }
.lib-item__ship strong { color: var(--ink); }
.lib-item__ship .icon { width: 15px; height: 15px; vertical-align: -3px; color: var(--gold-700); }

/* =========================================================
   Conseiller de lecture (IA)
   ========================================================= */
.advisor__launch { position: fixed; right: 18px; bottom: 88px; z-index: 61; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 8px; border: 0; border-radius: 999px;
                   background: var(--ink); color: #fff; font: 600 15px var(--sans); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(28,34,84,.55);
                   animation: wa-in .6s 1.8s cubic-bezier(.2,.9,.3,1.3) both; transition: transform .25s, background .25s; }
.advisor__launch:hover { transform: translateY(-3px); background: var(--brand); }
.advisor__launch-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.advisor__launch-icon .icon { width: 22px; height: 22px; }
.advisor__launch[aria-expanded="true"] { opacity: 0; pointer-events: none; }
@media (max-width: 639px) { .advisor__launch { width: 56px; height: 56px; padding: 0; justify-content: center; bottom: 84px; } .advisor__launch-text { display: none; } .advisor__launch-icon { background: transparent; color: var(--gold); } }

.advisor__panel { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(410px, calc(100vw - 36px)); height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column;
                  background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(15,18,40,.5); border: 1px solid var(--line); animation: advisor-in .35s cubic-bezier(.2,.8,.3,1.1) both; }
@keyframes advisor-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) { .advisor__panel { inset: 0; width: auto; height: auto; border-radius: 0; } }
.advisor__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--ink); color: #fff; }
.advisor__head div { flex: 1; min-width: 0; }
.advisor__head strong { display: block; font-family: var(--serif); font-size: 18px; }
.advisor__head small { color: #b9bedb; font-size: 12.5px; }
.advisor__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; flex: none; }
.advisor__close, .advisor__reset { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.advisor__close:hover, .advisor__reset:hover { background: rgba(255,255,255,.12); }
.advisor__close .icon, .advisor__reset .icon { width: 20px; height: 20px; }
.advisor__body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #fbf9f4; overscroll-behavior: contain; }
.advisor .msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.advisor .msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.advisor .msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); }
.advisor .msg--err { align-self: flex-start; background: var(--err-50); color: var(--err); border-radius: 14px; }
.advisor__ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.advisor__ideas button { border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 12px; font: 500 13.5px var(--sans); cursor: pointer; }
.advisor__ideas button:hover { border-color: var(--brand); color: var(--brand); }
.advisor__books { display: grid; gap: 8px; align-self: stretch; }
.advisor__book { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.advisor__book:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.advisor__book img, .advisor__book .ph { width: 48px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 3px 8px rgba(0,0,0,.18); background: var(--paper-2); }
.advisor__book strong { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); line-height: 1.25; }
.advisor__book small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.advisor__book b { font-size: 13px; color: var(--brand); }
.advisor__typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.advisor__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: advisor-dot 1.2s infinite ease-in-out; }
.advisor__typing span:nth-child(2) { animation-delay: .15s; } .advisor__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes advisor-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.advisor__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.advisor__form textarea { flex: 1; resize: none; max-height: 120px; min-height: 46px; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--line-2); font: 15px/1.4 var(--sans); }
.advisor__form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.advisor__form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.advisor__form button:disabled { opacity: .5; cursor: default; }
.advisor__form button .icon { width: 20px; height: 20px; }
body.advisor-open .wa-float { display: none; }
@media (max-width: 639px) { body.advisor-open { overflow: hidden; } }
@media (prefers-reduced-motion: reduce) { .advisor__launch, .advisor__panel { animation: none; } }

/* ===== Identité : CIE/MIA puis Centre d'Édition des Publications Paraklétos ===== */
.brand__text small { order: -1; margin: 0 0 3px; color: var(--gold-700, #a7811a); font-weight: 700; letter-spacing: .14em; }
.brand__text strong { font-size: 15px; line-height: 1.15; max-width: 205px; }
.brand--light .brand__text small { color: #e2b93b; }
.brand img { object-fit: contain; padding: 2px; }
@media (max-width: 420px) { .brand__text strong { font-size: 13.5px; max-width: 170px; } }

/* ===== Connexion par téléphone, mot de passe oublié ===== */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.auth__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.auth__icon .icon { width: 26px; height: 26px; }
.auth__steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth__steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--paper, #f7f4ee); border-radius: 12px; padding: 12px 14px; }
.auth__steps .icon { color: var(--brand); flex: none; margin-top: 2px; }
.auth__steps strong { color: var(--ink); }

/* ===== Revues gratuites ===== */
.buy-box--free { border-color: #b9dfcb; background: linear-gradient(180deg, #f1faf5, #fff); }
.buy-box--free h2 { color: #1f7a52; }
.book-card__price--free { color: #1f7a52; font-size: 14px; }
.chip--free .icon { width: 14px; height: 14px; }

/* ===== Audios ===== */
.audio-hero { background: radial-gradient(120% 140% at 85% 0%, #344096 0%, #1c2254 55%, #12163a 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.audio-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(226,185,59,.12); }
.audio-hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 14px; max-width: 14ch; line-height: 1.05; color: #fff; }
.audio-hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.audio-hero__lead { max-width: 52ch; color: rgba(255,255,255,.8); font-size: 17px; margin: 0 0 26px; }
.eyebrow--light { color: var(--gold); }
.eyebrow--light .icon { width: 18px; height: 18px; }
.eyebrow--light::before { display: none; }
.audio-search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; position: relative; z-index: 1; color: var(--muted); }
.audio-search input { flex: 1; border: 0; outline: 0; font: inherit; min-width: 0; color: var(--ink); background: transparent; }
.audio-page { padding: 28px var(--gutter) 120px; }
.audio-filters { margin-bottom: 26px; }
.audio-filters .icon { width: 14px; height: 14px; }

.audio-feature { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.audio-feature__art { position: relative; min-height: 220px; background: var(--art, none) center 20% / cover, linear-gradient(135deg, #e2b93b, #d9673f); }
.audio-feature__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,34,84,.35), transparent 60%); }
.audio-feature__badge { position: absolute; left: 16px; top: 16px; z-index: 1; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.audio-feature__body { padding: 26px; }
.audio-feature__body h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 8px; }
.audio-feature__body > p:not(.eyebrow):not(.muted-line) { color: var(--muted); }
@media (min-width: 820px) { .audio-feature { grid-template-columns: 340px 1fr; } .audio-feature__body { padding: 36px 40px; align-self: center; } }

.audio-list__title { font-size: 24px; margin: 0 0 14px; }
.audio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.audio-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 18px 10px 10px; transition: border-color .2s, box-shadow .2s; }
.audio-row:hover { border-color: #cfd3ee; box-shadow: var(--shadow-sm); }
.audio-row.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.audio-row__play { position: relative; width: 72px; height: 72px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, #344096, #1c2254); }
.audio-row__art { position: absolute; inset: 0; background: center 20% / cover no-repeat; }
.audio-row__btn { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(28,34,84,.35); color: #fff; transition: background .2s; }
.audio-row__play:hover .audio-row__btn { background: rgba(28,34,84,.55); }
.audio-row__btn .icon { width: 24px; height: 24px; }
.audio-row__info h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; margin: 0 0 3px; line-height: 1.3; }
.audio-row__info p { margin: 0; font-size: 14px; color: var(--muted); }
.audio-row__desc { margin-top: 4px !important; display: none; }
.audio-row__time { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 720px) { .audio-row__desc { display: block; } }
@media (max-width: 520px) { .audio-row { grid-template-columns: auto 1fr; } .audio-row__time { display: none; } .audio-row__play { width: 60px; height: 60px; } }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: inline; }

/* Lecteur fixé en bas */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(18,22,58,.97); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 -10px 30px rgba(0,0,0,.18); animation: player-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes player-in { from { transform: translateY(100%); } }
.player__row { display: grid; grid-template-columns: 48px 1fr auto auto; grid-template-areas: "art meta ctrls close" "bar bar bar bar"; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.player__art { grid-area: art; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #e2b93b, #d9673f) center 20% / cover; }
.player__meta { grid-area: meta; min-width: 0; display: grid; }
.player__meta strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta small { color: rgba(255,255,255,.65); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__ctrls { grid-area: ctrls; display: flex; align-items: center; gap: 4px; }
.player button { background: none; border: 0; color: inherit; cursor: pointer; }
.player__main { width: 46px; height: 46px; border-radius: 50%; background: var(--gold) !important; color: var(--ink) !important; display: grid; place-items: center; }
.player__main .icon { width: 20px; height: 20px; }
.player__skip { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.player__skip span { position: absolute; bottom: 2px; font-size: 9px; font-weight: 700; }
.player__skip:hover, .player__close:hover, .player__speed:hover { background: rgba(255,255,255,.1) !important; }
.player__bar { grid-area: bar; display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.player__bar input { flex: 1; accent-color: var(--gold); }
.player__speed { display: none; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.player__close { grid-area: close; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
@media (min-width: 860px) {
    .player__row { grid-template-columns: 52px minmax(160px, 260px) auto 1fr auto auto; grid-template-areas: "art meta ctrls bar speed close"; }
    .player__art { width: 52px; height: 52px; }
    .player__speed { display: block; grid-area: speed; }
}
body.has-player .wa-float { bottom: 128px; } body.has-player .advisor__launch { bottom: 196px; }
@media (min-width: 860px) { body.has-player .wa-float { bottom: 96px; } body.has-player .advisor__launch { bottom: 166px; } }
.empty-state { text-align: center; padding: 60px 20px; max-width: 520px; margin: 0 auto; }
.empty-state__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.empty-state h2 { font-size: 26px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); }

/* ===== Accueil : affiches qui défilent (auteurs, livres, audios…) ===== */
.posters { position: relative; background: #12163a; overflow: hidden; aspect-ratio: 1920 / 900; max-height: calc(100vh - var(--header-h)); }
.posters__track { position: absolute; inset: 0; }
.posters__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.posters__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.posters__slide picture, .posters__slide img { display: block; width: 100%; height: 100%; }
.posters__slide img { object-fit: cover; object-position: left center; transform: scale(1.06); transition: transform 7s ease-out; }
.posters__slide.is-active img { transform: scale(1); }
.posters__arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
    background: rgba(255,255,255,.88); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.25); opacity: 0; transition: opacity .25s, transform .2s; }
.posters:hover .posters__arrow, .posters__arrow:focus-visible { opacity: 1; }
.posters__arrow:hover { transform: scale(1.06); }
.posters__arrow--prev { left: 20px; }
.posters__arrow--next { right: 20px; }
.posters__dots { position: absolute; z-index: 3; left: 50%; bottom: 18px; translate: -50% 0; display: flex; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(18,22,58,.45); backdrop-filter: blur(6px); }
.posters__dots button { width: 34px; height: 14px; padding: 5px 0; border: 0; background: none; cursor: pointer; }
.posters__dots span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.posters__dots [aria-selected="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: posters-progress var(--posters-delay, 6s) linear forwards; }
.posters.is-paused .posters__dots [aria-selected="true"] span::after { animation-play-state: paused; }
@keyframes posters-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.posters + .search-float-wrap { margin-top: 22px; }
@media (max-width: 767px) {
    .posters { aspect-ratio: 1080 / 1350; max-height: none; }
    .posters__slide img { object-position: center top; }
    .posters__arrow { display: none; }
    .posters__dots { bottom: 12px; }
    .posters__dots button { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .posters__slide, .posters__slide img { transition: none; transform: none; }
    .posters__dots [aria-selected="true"] span::after { animation: none; transform: none; }
}
@media (max-width: 600px) { .search-float .hero-search { flex: 1 1 100%; min-width: 0; } .search-float .hero-search .btn { padding-inline: 14px; } }
@media (min-width: 1024px) and (max-width: 1500px) { .header-search { display: none; } .header-actions { margin-left: auto; } }
.audio-feature__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* L'affiche occupe toute la largeur, même sur grand écran (hauteur limitée à l'écran, image recadrée) */
@media (min-width: 768px) {
    .posters { aspect-ratio: 1920 / 900; width: 100%; height: auto; max-height: none; }
    .posters__slide img { object-position: center center; }
}
@media (min-width: 1501px) { .header-search { flex: 0 1 230px; min-width: 200px; } .header-search input { width: 100%; } }
