/* La bibliothèque : une couverture, une fiche, un emplacement par livre. */
body.ei-library {
  --library-paper: #fbf8f1;
  --library-ink: #204f50;
  --library-muted: #62716b;
  --library-line: #dfded2;
  --library-gold: #8c7247;
  --ei-hand: 'Caveat', cursive;
  background: var(--library-paper) !important;
  color: var(--library-ink);
}
.ei-library [hidden] { display: none !important; }
.library-shell { width: min(100%, 1184px); margin: 0 auto; padding: 22px 24px 0; }
.library-shell * { min-width: 0; }
.library-shell a { text-underline-offset: 4px; }
.library-shell p { margin: 0; }
.library-sr-only, .books-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.library-skip { position: fixed; top: -80px; left: 16px; z-index: 500; padding: 12px 20px; background: white; border: 1px solid var(--library-ink); border-radius: 8px; }
.library-skip:focus { top: 12px; }
.library-fallback { display: flex; gap: 20px; padding: 16px 24px; flex-wrap: wrap; }
.library-anchor { display: block; position: relative; height: 0; }
body.ei-library .library-shell [id] { scroll-margin-top: 194px; }
.library-kicker { font: 600 10px/1.5 var(--ei-sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--library-gold); }
.library-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.library-intro .library-kicker { margin-bottom: 8px; }
.library-intro h1 { font: 500 clamp(32px, 3.8vw, 46px)/1.08 var(--ei-serif); letter-spacing: -.9px; margin: 0; }
.library-intro > p { font: 400 17px/1.5 var(--ei-serif); color: var(--library-muted); padding-bottom: 2px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 20px; margin-bottom: 26px; border-bottom: 1px solid var(--library-line); }
.library-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.library-filters button { padding: 10px 14px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #516761; font: 500 12px/1.4 var(--ei-sans); min-height: 44px; transition: background .18s, color .18s; }
.library-filters button:hover { background: #eeeee5; color: var(--library-ink); }
.library-filters button[aria-pressed="true"] { background: var(--library-ink); color: #fffdf7; border-color: var(--library-ink); }
.library-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--library-line); background: #fffdf8; border-radius: 8px; padding: 0 12px; width: 226px; flex-shrink: 0; color: #667c75; }
.library-search:focus-within { outline: 2px solid #9b8154; outline-offset: 3px; }
.library-search svg { flex-shrink: 0; }
.library-search input { width: 100%; min-height: 44px; border: 0; outline: 0; border-radius: 8px; padding: 8px 0; color: var(--library-ink); font: 400 12px/1.5 var(--ei-sans); background: transparent; }
.library-search input::placeholder { color: #6f7870; opacity: 1; }
.library-empty { padding: 50px 24px 70px; text-align: center; }
.library-empty h2 { font-size: 32px; margin-bottom: 14px; }
.library-empty p { color: var(--library-muted); margin-bottom: 24px; }
.library-button, .ei-library .books-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  border: 1px solid var(--library-ink); border-radius: 7px; background: var(--library-ink); color: #fffdf7;
  padding: 12px 23px; font: 600 12px/1.4 var(--ei-sans); text-decoration: none;
  box-shadow: 0 3px 12px #1d52500b; transition: background .2s, box-shadow .2s;
}
.library-button:hover, .ei-library .books-button:hover { background: #286367; box-shadow: 0 5px 15px #1d52501c; }
.library-inline-link { display: inline-block; color: var(--library-ink); font: 600 12px/1.6 var(--ei-sans); text-decoration: underline; text-decoration-color: #b5b4a0; text-underline-offset: 5px; padding: 8px 0; }
a.library-inline-link { min-height: 44px; display: inline-flex; align-items: center; }
.library-feature { display: grid; grid-template-columns: .85fr 1.4fr; border: 1px solid #e1dfd1; border-radius: 20px; overflow: hidden; background: #fffdf7; }
.library-feature-art { display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; min-height: 388px; padding: 36px; background: radial-gradient(ellipse at 48% 45%,#d7dfd0 0%,#e9eade 47%,#efeee4 100%); }
.library-feature-art::before { content: ''; position: absolute; width: 290px; height: 290px; border: 1px solid #a4b3a640; border-radius: 50%; z-index: -1; }
.library-feature-art::after { content: ''; position: absolute; width: 220px; height: 22px; bottom: 38px; background: #40584928; border-radius: 50%; filter: blur(12px); z-index: -1; }
.library-feature-art > img { display: block; width: auto; height: 310px; max-width: 100%; object-fit: contain; border-radius: 2px 4px 4px 2px; box-shadow: 8px 14px 22px #273d3a25, 2px 3px 5px #273d3a24; transform: rotate(-3deg); transition: transform .25s; }
.library-feature-art:hover > img { transform: rotate(-1deg) translateY(-3px); }
.library-feature-copy { padding: 36px 42px; align-self: center; }
.library-feature-copy .library-kicker { margin-bottom: 13px; }
.library-feature h2 { font: 500 clamp(35px,4.4vw,52px)/1.04 var(--ei-serif); letter-spacing: -.7px; margin: 0 0 8px; }
.library-feature h2 em { display: inline; font-weight: 400; }
.library-subtitle { font: 400 23px/1.3 var(--ei-serif); color: #657769; }
.library-feature-description { margin-top: 18px !important; max-width: 470px; font-size: 13px; line-height: 1.8; color: #5d7069; }
.library-release { margin: 17px 0 21px !important; color: #53665f; font-size: 11px; }
.library-release time { color: var(--library-ink); font-weight: 600; }
.library-preorder { margin-top: 7px; }
.library-preorder > summary, .library-waitlist > summary, .library-more-reviews > summary, .library-review-compose > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font: 500 12px/1.6 var(--ei-sans); text-decoration: underline; text-decoration-color: #b4b59f; text-underline-offset: 5px;
}
.library-preorder > summary::-webkit-details-marker, .library-waitlist > summary::-webkit-details-marker, .library-more-reviews > summary::-webkit-details-marker, .library-review-compose > summary::-webkit-details-marker, .library-future > summary::-webkit-details-marker { display: none; }
.library-preorder[open] > summary, .library-waitlist[open] > summary { color: #817049; }
.library-form-panel { margin: 12px 0 5px; padding: 22px; border: 1px solid var(--library-line); background: #fbfaf4; border-radius: 9px; }
.library-form-panel > p { font-size: 12px; line-height: 1.7; color: var(--library-muted); margin-bottom: 15px; }
.ei-library .books-form fieldset { padding: 0; margin: 0; border: 0; display: grid; gap: 8px; }
.ei-library .books-form label { font: 500 12px/1.5 var(--ei-sans); margin-top: 4px; }
.ei-library .books-form input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; min-height: 46px; border: 1px solid #b8c3b7; border-radius: 6px; padding: 9px 12px; background: white; color: var(--library-ink); font-size: 16px; }
.ei-library .books-form input:focus-visible { outline: 2px solid #9b8154; outline-offset: 2px; }
.ei-library .books-form .books-button { width: fit-content; margin-top: 8px; }
.ei-library .books-form .books-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; font-weight: 400; }
.ei-library .books-consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: #204f50; }
.ei-library .books-form-note { font-size: 10px; color: #67766d; line-height: 1.7; margin-top: 7px; }
.ei-library .books-form-status { font-size: 13px; line-height: 1.7; }
.ei-library .books-form-status:not(:empty) { padding-top: 12px; }
.ei-library .books-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; }
.library-section { padding-top: 58px; }
.library-section + .library-section { margin-top: 48px; border-top: 1px solid var(--library-line); }
.library-section.library-romans:not(.library-first-result) { margin-top: 32px; padding-top: 0; border-top: 0; }
.library-section.library-first-result { padding-top: 10px; margin-top: 0; border-top: 0; }
.library-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.library-section-heading .library-kicker { margin-bottom: 8px; }
.library-section-heading h2 { font: 500 38px/1.1 var(--ei-serif); letter-spacing: -.5px; margin: 0; }
.library-section-heading > p { font: 400 12px/1.7 var(--ei-sans); color: var(--library-muted); padding-bottom: 3px; }
.library-grid { display: grid; gap: 28px; }
.library-guides { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.library-novels { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 26px; }
.library-card-link { display: block; text-decoration: none; border-radius: 10px; height: 100%; }
.library-card-art { position: relative; height: 236px; display: flex; align-items: center; justify-content: center; padding: 20px 18px; border-radius: 10px; background: linear-gradient(150deg,#f0eee5,#eaece3); border: 1px solid #e7e5da; transition: background .2s; }
.library-guides .library-card-art { height: 242px; }
.library-guides .library-card:nth-child(2) .library-card-art { background: linear-gradient(150deg,#f0ebe3,#eae5dd); }
.library-guides .library-card:nth-child(3) .library-card-art { background: linear-gradient(150deg,#edece9,#e6e9e4); }
.library-card-art img { display: block; height: auto; width: auto; max-width: 88%; max-height: 100%; object-fit: contain; border-radius: 1px 3px 3px 1px; box-shadow: 4px 7px 12px #273d3a22, 1px 1px 3px #273d3a22; transition: transform .22s,box-shadow .22s; }
.library-card-copy { padding: 15px 2px 0; }
.library-card-label { font: 600 10px/1.5 var(--ei-sans); color: var(--library-gold); letter-spacing: 1.05px; text-transform: uppercase; margin-bottom: 6px !important; }
.library-card h3 { font: 500 24px/1.13 var(--ei-serif); color: var(--library-ink); margin: 0; }
.library-card-description { font-size: 12px; line-height: 1.75; color: var(--library-muted); margin-top: 8px !important; max-width: 300px; }
.library-card-action { display: none; }
.library-card-link:hover .library-card-art img, .library-card-link:focus-visible .library-card-art img { transform: translateY(-5px); box-shadow: 5px 12px 15px #273d3a29; }
.library-card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.library-original { margin-bottom: 29px; }
.library-original .library-feature-art { padding: 14px 24px; }
.library-original .library-feature-art::before, .library-original .library-feature-art::after { content: none; }
.library-original-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.library-series-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.library-series-heading h3 { font: 500 23px/1.2 var(--ei-serif); margin: 0; }
.library-series-heading .library-inline-link { font-size: 11px; font-weight: 500; }
.library-reviews { margin-top: 38px; padding: 26px 30px 12px; border-radius: 11px; background: #f0eee5; }
.library-reviews-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 8px; }
.library-reviews-heading h3 { font: 500 27px/1.2 var(--ei-serif); margin: 0; }
.library-reviews-heading > p { font-size: 10px; color: var(--library-muted); }
.library-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.library-quote { margin: 0; padding: 17px 0 12px; }
.library-quote blockquote { margin: 0; }
.library-quote h4 { margin: 0 0 7px; font: 600 11px/1.5 var(--ei-sans); }
.library-quote blockquote p { font: 400 19px/1.45 var(--ei-serif); color: #496159; }
.library-quote blockquote p + p { margin-top: 9px; }
.library-quote figcaption { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 12px; font: 400 9px/1.6 var(--ei-sans); color: #68766b; }
.library-more-reviews > summary { font-size: 11px; }
.library-more-body { padding: 8px 0 15px; }
.library-more-body > section { padding: 18px 0; border-top: 1px solid #dcdccf; }
.library-more-body > section > h4 { font: 600 12px/1.6 var(--ei-sans); margin: 0 0 7px; }
.library-review-compose [data-review-picker] { display: grid; gap: 12px; max-width: 450px; padding: 12px 0; }
.library-review-compose label { font-size: 12px; }
.library-review-compose select { width: 100%; min-height: 46px; border: 1px solid #bac2b5; border-radius: 6px; background: #fffdf7; color: var(--library-ink); padding: 10px 12px; font-size: 13px; }
.library-spotlight > a { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 35px; padding: 25px 34px; background: #f0efe7; border: 1px solid #e0e0d3; border-radius: 12px; text-decoration: none; }
.library-spotlight-art { display: flex; justify-content: center; align-items: center; height: 205px; }
.library-spotlight-art img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 4px 7px 15px #344b3726; border-radius: 2px; }
.library-availability { display: inline-block; color: #416451; font: 600 10px/1.5 var(--ei-sans); margin-bottom: 9px !important; }
.library-availability::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #648262; margin: 0 7px 2px 0; }
.library-spotlight h3 { font: 500 36px/1.1 var(--ei-serif); margin: 0 0 12px; }
.library-spotlight-copy > p:not(.library-availability) { color: var(--library-muted); font-size: 13px; line-height: 1.6; }
.library-spotlight .library-inline-link { margin-top: 13px; }
.library-spotlight > a:hover { border-color: #adbda5; }
.library-future { margin-top: 20px; border-block: 1px solid var(--library-line); }
.library-future > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 12px 2px; cursor: pointer; list-style: none; font: 500 21px/1.3 var(--ei-serif); }
.library-future > summary small { font: 400 11px/1.5 var(--ei-sans); color: var(--library-muted); margin-left: 15px; }
.library-future > summary::after { content: '+'; font: 400 25px/1 var(--ei-serif); color: var(--library-gold); }
.library-future[open] > summary::after { content: '−'; }
.library-future-body { padding: 0 0 25px; }
.library-future-body > p { font-size: 12px; color: var(--library-muted); margin: 0 0 21px; }
.library-future-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.library-future-grid .library-card-art { height: 215px; background: #efede5; }
.library-future-grid h3 { font-size: 24px; }
.library-waitlist { margin: 5px 0 0; }
.library-waitlist > summary { font-size: 11px; }
.library-waitlist .library-form-panel { max-width: 600px; }
.library-personal { display: grid; grid-template-columns: .8fr 1.4fr; margin-top: 38px; background: #f1ece0; border: 1px solid #e4decd; border-radius: 14px; overflow: hidden; }
.library-personal-art { min-height: 350px; position: relative; background: #eee9db; overflow: hidden; }
.library-personal-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.library-personal-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 80%,#f1ece0); pointer-events: none; }
.library-personal-copy { padding: 35px 40px; align-self: center; }
.library-personal h3 { font: 500 35px/1.12 var(--ei-serif); letter-spacing: -.3px; margin: 9px 0 13px; }
.library-personal-copy > p:not([class]) { font-size: 13px; line-height: 1.8; color: #627369; max-width: 460px; }
.library-personal-price { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px !important; }
.library-personal-price strong { font: 500 31px/1.2 var(--ei-serif); }
.library-personal-price span { font-size: 11px; color: #647064; }
.library-personal-terms { font-size: 10px; line-height: 1.7; color: #647064; margin: 6px 0 20px !important; }
.library-gift-links { display: flex; flex-wrap: wrap; gap: 9px 25px; margin-top: 9px; }
.library-gift-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; text-decoration-color: #b5aa8a; }
.library-closing { text-align: center; margin: 65px 0 0; padding: 48px 24px; background: #244f51; color: #f5eedc; }
.library-closing p { max-width: 950px; margin: 0 auto 18px; font: 400 clamp(30px, 3.4vw, 43px)/1.32 var(--ei-hand); color: #f5eedc; }
.library-closing span { display: block; font: 500 14px/1.5 var(--ei-sans); color: #d6c29a; letter-spacing: 0; }
.library-is-searching .library-context { display: none; }

@media (min-width: 1000px) { .library-shell { padding-top: 19px; } }
@media (max-width: 1080px) {
  .library-toolbar { flex-wrap: wrap; gap: 13px; }
  .library-search { flex: 1; min-width: 195px; }
  .library-filters button { padding-inline: 11px; }
  .library-feature-copy { padding: 30px; }
}
@media (max-width: 999px) {
  body.ei-library .library-shell [id] { scroll-margin-top: 22px; }
  .library-intro { margin-bottom: 23px; }
  .library-shell { padding-top: 30px; }
  .library-search input { font-size: 16px; }
  .library-feature-art { min-height: 355px; padding: 25px; }
  .library-feature-art > img { height: 285px; }
  .library-feature h2 { font-size: 42px; }
  .library-section-heading > p { max-width: 300px; }
  .library-novels { gap: 26px 18px; }
  .library-card-art { height: 205px; }
}
@media (max-width: 699px) {
  .library-shell { padding: 25px 20px 0; }
  .library-intro { display: block; margin-bottom: 22px; }
  .library-intro h1 { font-size: 36px; letter-spacing: -.5px; max-width: 460px; }
  .library-intro .library-kicker { font-size: 9px; margin-bottom: 7px; }
  .library-intro > p { font: 400 12px/1.7 var(--ei-sans); margin-top: 11px; }
  .library-intro > p br { display: none; }
  .library-toolbar { display: grid; grid-template-columns: 1fr; gap: 11px; margin-bottom: 22px; padding-bottom: 19px; }
  .library-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 5px; }
  .library-filters button { min-height: 42px; padding: 9px 8px; font-size: 11px; border-color: #e1dfd2; background: #fffdf74d; }
  .library-search { width: 100%; }
  .library-search input { min-height: 42px; font-size: 16px; }
  .library-feature { grid-template-columns: 1fr; border-radius: 13px; }
  .library-feature-art { min-height: 254px; padding: 22px; }
  .library-feature-art > img { height: 223px; }
  .library-feature-art::before { width: 230px; height: 230px; }
  .library-feature-art::after { bottom: 20px; width: 165px; }
  .library-feature-copy { padding: 25px 25px 21px; }
  .library-feature-copy .library-kicker { font-size: 9px; letter-spacing: 1.15px; margin-bottom: 11px; }
  .library-feature h2 { font-size: 38px; line-height: 1.03; }
  .library-subtitle { font-size: 21px; }
  .library-feature-description { font-size: 12px; line-height: 1.75; margin-top: 13px !important; }
  .library-release { font-size: 10px; margin: 14px 0 17px !important; }
  .library-preorder > summary { font-size: 11px; }
  .library-section { padding-top: 41px; }
  .library-section + .library-section { margin-top: 35px; }
  .library-section-heading { display: block; margin-bottom: 23px; }
  .library-section-heading h2 { font-size: 33px; }
  .library-section-heading .library-kicker { font-size: 9px; margin-bottom: 6px; }
  .library-section-heading > p { max-width: none; margin-top: 11px; font-size: 12px; line-height: 1.7; }
  .library-desktop-br { display: none; }
  .library-guides { grid-template-columns: 1fr; gap: 18px; }
  .library-guides .library-card-link { display: grid; grid-template-columns: 114px 1fr; gap: 18px; align-items: center; }
  .library-guides .library-card-art { height: 165px; padding: 15px 10px; border-radius: 8px; }
  .library-guides .library-card-copy { padding: 0; }
  .library-guides .library-card h3 { font-size: 23px; }
  .library-card-label { font-size: 9px; letter-spacing: .8px; }
  .library-card-description { font-size: 11px; line-height: 1.65; margin-top: 7px !important; }
  .library-novels { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 16px; }
  .library-card-art { height: 216px; padding: 18px 11px; border-radius: 8px; }
  .library-card-art img { max-width: 94%; }
  .library-card-copy { padding-top: 11px; }
  .library-card h3 { font-size: 22px; }
  .library-original .library-stack { max-width: 250px; }
  .library-series-heading { display: block; margin-bottom: 13px; }
  .library-series-heading h3 { font-size: 23px; }
  .library-series-heading .library-inline-link { font-size: 10px; }
  .library-reviews { padding: 23px 22px 12px; margin-top: 30px; }
  .library-reviews-heading { display: block; }
  .library-reviews-heading h3 { font-size: 27px; }
  .library-reviews-heading p { margin-top: 6px; }
  .library-quote-grid { grid-template-columns: 1fr; gap: 0; }
  .library-quote { padding-block: 16px; }
  .library-quote + .library-quote { border-top: 1px solid #dfdece; }
  .library-quote blockquote p { font-size: 19px; }
  .library-spotlight > a { grid-template-columns: 112px 1fr; gap: 22px; padding: 23px 19px; }
  .library-spotlight-art { height: 171px; }
  .library-spotlight h3 { font-size: 30px; margin-bottom: 9px; }
  .library-spotlight-copy > p:not(.library-availability) { font-size: 11px; }
  .library-spotlight .library-inline-link { font-size: 10px; margin-top: 8px; }
  .library-future > summary { font-size: 21px; }
  .library-future > summary small { display: block; margin: 5px 0 0; font-size: 10px; }
  .library-future-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 16px; }
  .library-future-grid .library-card-art { height: 210px; }
  .library-future-grid h3 { font-size: 22px; }
  .library-personal { grid-template-columns: 1fr; margin-top: 25px; }
  .library-personal-art { height: 230px; min-height: 0; }
  .library-personal-art img { object-position: 50% 54%; }
  .library-personal-art::after { background: linear-gradient(0deg,#f1ece0,transparent 25%); }
  .library-personal-copy { padding: 17px 25px 21px; }
  .library-personal h3 { font-size: 32px; }
  .library-personal-copy > p:not([class]) { font-size: 12px; }
  .library-personal-price { margin-top: 17px !important; }
  .library-personal-terms { font-size: 10px; }
  .library-closing { margin: 43px 0 0; padding: 32px 24px; }
  .library-closing p { font-size: 31px; line-height: 1.3; }
  .library-closing span { font-size: 13px; }
  .library-form-panel { padding: 18px; }
}
@media (max-width: 389px) {
  .library-shell { padding-inline: 16px; }
  .library-intro h1 { font-size: 32px; }
  .library-feature h2 { font-size: 35px; }
  .library-feature-copy { padding: 22px 20px; }
  .library-feature-copy .library-kicker { letter-spacing: .6px; }
  .library-card-art { height: 191px; padding: 16px 10px; }
  .library-future-grid .library-card-art { height: 190px; }
  .library-guides .library-card-link { grid-template-columns: 99px 1fr; gap: 15px; }
  .library-guides .library-card-art { height: 151px; }
  .library-guides .library-card h3 { font-size: 21px; }
  .library-card h3 { font-size: 21px; }
  .library-spotlight > a { grid-template-columns: 94px 1fr; gap: 16px; padding: 20px 16px; }
  .library-spotlight-art { height: 147px; }
  .library-spotlight h3 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ei-library .library-shell *, .ei-library .library-shell *::before, .ei-library .library-shell *::after { transition: none !important; animation: none !important; }
  .library-card-link:hover .library-card-art img, .library-card-link:focus-visible .library-card-art img { transform: none; }
  .library-feature-art:hover > img { transform: rotate(-3deg); }
}
@media print {
  .library-closing { background: transparent; color: #222; padding: 24px 0; break-inside: avoid; }
  .library-closing p, .library-closing span { color: inherit; }
  .library-toolbar, .library-preorder, .library-waitlist, .library-more-reviews, #ei-header, #ei-footer { display: none !important; }
  .library-shell { max-width: 100%; padding: 0; }
  .library-feature, .library-card, .library-original, .library-personal, .library-spotlight { break-inside: avoid; }
}


/* Two short, book-specific reviews below the three guides. */
.library-guide-reviews { margin-top: 30px; padding: 25px 0 0; border-top: 1px solid #dedfd3; }
.library-guide-reviews-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.library-guide-reviews-heading h3 { font: 500 27px/1.2 var(--ei-serif); margin: 0 0 5px; }
.library-guide-reviews-heading p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--library-muted); }
.library-guide-reviews-heading em { font-style: normal; }
.library-guide-reviews-heading .library-inline-link { flex-shrink: 0; font-size: 11px; }
.library-guide-stars { display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: 2px; color: #96763c; }
.library-guide-reviews .library-quote { padding-bottom: 0; }
.library-guide-reviews .library-quote figcaption { font-size: 10px; gap: 3px 9px; }
.library-guide-reviews .library-quote figcaption strong { font-weight: 600; }
@media (max-width: 699px) {
  .library-guide-reviews { margin-top: 25px; padding-top: 22px; }
  .library-guide-reviews-heading { display: block; }
  .library-guide-reviews-heading .library-inline-link { margin-top: 12px; }
  .library-guide-reviews .library-quote { padding-block: 18px; }
  .library-guide-reviews .library-quote:last-child { padding-bottom: 0; }
}

/*
 * Les Émerveilleuses : maquette CSS, couvertures d’origine inchangées.
 * Repère de la scène : x horizontal, y vertical (vers le bas), z profondeur.
 * Les 8 tomes font chacun 8 unités d’épaisseur. Le sommet de la pile est y=-64.
 * Le bas de l’intégrale est exactement y=-64 : aucun décalage ni lévitation.
 * Une seule caméra perspective s’applique à tous les volumes et aux ombres.
 */
.library-stack {
  position: relative;
  display: block;
  width: min(100%, 330px);
  aspect-ratio: 11 / 12;
  margin-inline: auto;
  container-type: inline-size;
  pointer-events: none;
  user-select: none;
}

.library-stack .library-stack-scene {
  /* 1 unité = 1 px dans la scène de référence 330 × 360. */
  --library-stack-unit: calc(100cqi / 330);
  position: absolute;
  inset: 0;
  perspective: calc(var(--library-stack-unit) * 1000);
  perspective-origin: 50% 40%;
  overflow: visible;
}

.library-stack .library-stack-world {
  position: absolute;
  left: 50%;
  top: 82%;
  width: 0;
  height: 0;
  transform: rotateX(-14deg) rotateY(-32deg);
  transform-origin: 0 0;
  transform-style: preserve-3d;
}

.library-stack .library-stack-pile {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.library-stack img {
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Sol et ombre de contact sont dans le même plan horizontal que les livres. */
.library-stack .library-stack-floor-shadow {
  position: absolute;
  left: calc(var(--library-stack-unit) * -132);
  top: calc(var(--library-stack-unit) * .7);
  width: calc(var(--library-stack-unit) * 264);
  height: calc(var(--library-stack-unit) * 174);
  background: radial-gradient(ellipse at center, #31403942 0%, #31403924 38%, #31403900 71%);
  filter: blur(calc(var(--library-stack-unit) * 5));
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--library-stack-unit) * -87)) rotateX(90deg);
}

.library-stack .library-stack-contact-shadow {
  position: absolute;
  left: calc(var(--library-stack-unit) * -83);
  top: calc(var(--library-stack-unit) * -64.15);
  width: calc(var(--library-stack-unit) * 166);
  height: calc(var(--library-stack-unit) * 53);
  background: radial-gradient(ellipse at center, #1b221e66 0%, #1b221e43 38%, #1b221e00 73%);
  filter: blur(calc(var(--library-stack-unit) * 1.4));
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--library-stack-unit) * -26.5)) rotateX(90deg);
}

/* Petits volumes couchés : couverture 210 × 140, dos 210 × 8, pages 140 × 8. */
.library-stack .library-stack-volume {
  position: absolute;
  left: calc(var(--library-stack-unit) * -105);
  top: calc(var(--library-stack-unit) * var(--library-stack-y));
  width: calc(var(--library-stack-unit) * 210);
  height: calc(var(--library-stack-unit) * 8);
  transform-origin: 50% 50%;
  transform: translateX(calc(var(--library-stack-unit) * var(--library-stack-offset))) rotateY(var(--library-stack-angle));
  transform-style: preserve-3d;
}

.library-stack .library-stack-volume-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--library-stack-unit) * 140);
  overflow: hidden;
  background: var(--library-stack-spine);
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--library-stack-unit) * -70)) rotateX(90deg);
  backface-visibility: hidden;
}

.library-stack .library-stack-volume-top img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--library-stack-unit) * 140);
  height: calc(var(--library-stack-unit) * 210);
  transform: translate(-50%, -50%) rotate(90deg);
}

.library-stack .library-stack-volume-spine {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--library-stack-unit) * 7);
  padding-inline: calc(var(--library-stack-unit) * 9);
  border-top: calc(var(--library-stack-unit) * .65) solid #ffffff18;
  border-bottom: calc(var(--library-stack-unit) * .8) solid #00000036;
  background: linear-gradient(0deg, #00000020, #00000000 55%, #ffffff12), var(--library-stack-spine);
  color: #f6eedf;
  font: 400 calc(var(--library-stack-unit) * 5.8)/1 Georgia, serif;
  letter-spacing: calc(var(--library-stack-unit) * .12);
  white-space: nowrap;
  transform: translateZ(calc(var(--library-stack-unit) * 70));
  backface-visibility: hidden;
}

.library-stack .library-stack-volume-spine > span:first-child {
  opacity: .7;
  font-size: calc(var(--library-stack-unit) * 5.2);
}

.library-stack .library-stack-volume-spine > span:nth-child(2) {
  flex: 1;
}

.library-stack .library-stack-volume-spine > span:last-child {
  opacity: .68;
  font-size: calc(var(--library-stack-unit) * 4.9);
}

.library-stack .library-stack-volume-pages {
  position: absolute;
  left: 100%;
  top: 0;
  width: calc(var(--library-stack-unit) * 140);
  height: 100%;
  border-top: calc(var(--library-stack-unit) * .7) solid var(--library-stack-spine);
  border-bottom: calc(var(--library-stack-unit) * .7) solid var(--library-stack-spine);
  background: repeating-linear-gradient(to bottom, #eee9dc 0, #eee9dc calc(var(--library-stack-unit) * .75), #c9c4b7 calc(var(--library-stack-unit) * .75), #c9c4b7 calc(var(--library-stack-unit) * 1.25));
  transform-origin: 0 50%;
  transform: translateZ(calc(var(--library-stack-unit) * 70)) rotateY(90deg);
  backface-visibility: hidden;
}

/* Couleurs prélevées dans le bas des couvertures fournies. */
.library-stack-volume--1 { --library-stack-y: -64; --library-stack-offset: -1; --library-stack-angle: -2deg; --library-stack-spine: #582526; }
.library-stack-volume--2 { --library-stack-y: -56; --library-stack-offset: 2; --library-stack-angle: 2.5deg; --library-stack-spine: #18201f; }
.library-stack-volume--3 { --library-stack-y: -48; --library-stack-offset: -3; --library-stack-angle: -3.2deg; --library-stack-spine: #253144; }
.library-stack-volume--4 { --library-stack-y: -40; --library-stack-offset: 1; --library-stack-angle: 1deg; --library-stack-spine: #4e3461; }
.library-stack-volume--5 { --library-stack-y: -32; --library-stack-offset: 3; --library-stack-angle: 3.4deg; --library-stack-spine: #966563; }
.library-stack-volume--6 { --library-stack-y: -24; --library-stack-offset: -2; --library-stack-angle: -2deg; --library-stack-spine: #234570; }
.library-stack-volume--7 { --library-stack-y: -16; --library-stack-offset: 1; --library-stack-angle: 1.6deg; --library-stack-spine: #214548; }
.library-stack-volume--8 { --library-stack-y: -8; --library-stack-offset: 0; --library-stack-angle: -1deg; --library-stack-spine: #204166; }

/* Intégrale : rapport exact 900 / 1390 et tranche épaisse de 44 unités. */
.library-stack .library-stack-original {
  position: absolute;
  left: calc(var(--library-stack-unit) * -71);
  top: calc(var(--library-stack-unit) * -283.311111);
  width: calc(var(--library-stack-unit) * 142);
  height: calc(var(--library-stack-unit) * 219.311111);
  transform-style: preserve-3d;
}

.library-stack .library-stack-original-front,
.library-stack .library-stack-original-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.library-stack .library-stack-original-front {
  overflow: hidden;
  background: #4a3430;
  transform: translateZ(calc(var(--library-stack-unit) * 22));
}

.library-stack .library-stack-cover-image {
  width: 100%;
  height: 100%;
}

.library-stack .library-stack-original-back {
  background: #48322d;
  transform: translateZ(calc(var(--library-stack-unit) * -22)) rotateY(180deg);
}

.library-stack .library-stack-original-pages {
  position: absolute;
  left: 100%;
  top: calc(var(--library-stack-unit) * 1);
  width: calc(var(--library-stack-unit) * 44);
  height: calc(100% - var(--library-stack-unit) * 2);
  border-right: calc(var(--library-stack-unit) * 1) solid #51372f;
  border-left: calc(var(--library-stack-unit) * .9) solid #51372f;
  background: linear-gradient(90deg, #bcb4a03b 0%, #ffffff00 16%, #ffffff35 59%, #9c957c33 100%), repeating-linear-gradient(to right, #e8e3d5 0, #e8e3d5 calc(var(--library-stack-unit) * .65), #ccc7b7 calc(var(--library-stack-unit) * .65), #ccc7b7 calc(var(--library-stack-unit) * 1.05));
  transform-origin: 0 50%;
  transform: translateZ(calc(var(--library-stack-unit) * 22)) rotateY(90deg);
  backface-visibility: hidden;
}

.library-stack .library-stack-original-top {
  position: absolute;
  left: 0;
  top: calc(var(--library-stack-unit) * .6);
  width: 100%;
  height: calc(var(--library-stack-unit) * 44);
  border-block: calc(var(--library-stack-unit) * .8) solid #654638;
  background: repeating-linear-gradient(to bottom, #f2ede1 0, #f2ede1 calc(var(--library-stack-unit) * .65), #d9d3c3 calc(var(--library-stack-unit) * .65), #d9d3c3 calc(var(--library-stack-unit) * 1.05));
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--library-stack-unit) * -22)) rotateX(90deg);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .library-stack, .library-stack * { animation: none !important; transition: none !important; }
}

/* Avis dans leur police d’origine, avec une teinte plus douce. */
body.ei-site.ei-library .library-quote blockquote p,
body.ei-site.ei-library .ei-testimonial-quote,
body.ei-site.ei-library .ei-testimonial-quote p {
  color: #606e67;
}





/* Titre de la bibliothèque : le sujet en romain, la signature en italique irisé. */
body.ei-site.ei-library .library-intro h1 .library-intro-title {
  color: #204f50;
  font-style: normal;
  font-weight: 500;
  -webkit-text-fill-color: #204f50;
}
body.ei-site.ei-library .library-intro h1 .library-intro-author {
  font-family: var(--ei-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(105deg, #287c83 0%, #85709b 44%, #b08274 78%, #9d7b4b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #85709b;
  -webkit-text-fill-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* Bibliothèque : même bandeau illustré et mêmes points de rupture que Ressources & vous. */
body.ei-site.ei-library .library-intro.ei-illustrated-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  align-items: center !important;
  gap: 18px !important;
  max-width: 1268px;
  width: 100%;
  padding: 28px 22px !important;
  margin: 0 auto 22px !important;
  position: relative;
  border-bottom: 1px solid var(--library-line);
  background: transparent !important;
}
body.ei-site.ei-library .library-intro .page-hero-content {
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0;
}
body.ei-site.ei-library .library-intro h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  max-width: 730px;
  margin: 8px 0 14px;
}
body.ei-site.ei-library .library-intro-description {
  font: 400 13px/1.65 var(--ei-sans, Arial, sans-serif);
  color: var(--library-muted);
  max-width: 510px;
  margin: 0;
}
body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  opacity: .55;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(ellipse at 55% 50%, #000 35%, transparent 76%);
  mask-image: radial-gradient(ellipse at 55% 50%, #000 35%, transparent 76%);
  pointer-events: none;
}
@media (min-width: 700px) {
  body.ei-site.ei-library .library-intro.ei-illustrated-hero {
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 48px !important;
    padding: 35px 36px !important;
    margin-bottom: 20px !important;
  }
  body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration {
    height: 230px;
    opacity: .6;
  }
}
@media (min-width: 1050px) {
  body.ei-site.ei-library .library-intro.ei-illustrated-hero {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 70px !important;
    padding: 40px 36px !important;
  }
  body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration { height: 260px; }
}
@media (max-width: 699px) {
  body.ei-site.ei-library .library-intro h1 {
    font-size: clamp(31px, 7.5vw, 38px);
    line-height: 1.1;
    margin-bottom: 12px;
  }
  body.ei-site.ei-library .library-intro-description { font-size: 12px; }
}
@media (max-width: 359px) {
  body.ei-site.ei-library .library-intro.ei-illustrated-hero {
    grid-template-columns: minmax(0, 1fr) 70px !important;
    gap: 12px !important;
    padding: 24px 18px !important;
  }
  body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration { height: 145px; }
}

/* Bandeau Livres : illustration nette, même traitement que les autres pages. */
body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration {
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  filter: none !important;
  object-fit: cover;
  object-position: center;
  border-radius: 55px 55px 12px 12px;
  box-shadow: 5px 5px 0 #e5d9be;
}

/* Original haute définition : récupérer du détail sans vignette pixelisée. */
body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration {
  object-fit: cover !important;
  object-position: 50% 55% !important;
  opacity: 1 !important;
  filter: contrast(1.22) saturate(1.18) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Le visuel HD fourni ne doit subir aucune dégradation colorimétrique. */
body.ei-site.ei-library .library-intro .ei-page-image.library-intro-illustration {
  opacity: 1 !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  image-rendering: auto !important;
}
