/* Librairie Baobab — a fictional bookshop. Slate paper, night-blue ink,
   baobab ochre. The books' covers carry the colour; the page stays calm. */
@font-face { font-family: 'Instrument Sans'; src: url('/static/InstrumentSans.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root { --papier: #eceff5; --page: #f7f8fb; --encre: #161d33; --gris: #586078; --ligne: #d3d8e4; --ocre: #d9822b; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.55 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 6px; }
code { font: 500 .88rem/1.4 ui-monospace, 'SF Mono', Menlo, monospace; overflow-wrap: anywhere; }

.demo { background: var(--encre); color: #d7dcea; font-size: .82rem; text-align: center; padding: .5rem 1rem; }
.entete, main, .pied { max-width: 72rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--ligne); }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; font-weight: 640; text-decoration: none; letter-spacing: -.01em; font-stretch: 85%; font-size: 1.1rem; }
.logo svg { width: 1.6rem; height: 1.6rem; fill: var(--ocre); }
nav { display: flex; align-items: center; gap: 1rem; font-size: .95rem; }
.qui { color: var(--gris); }
.qui strong { color: var(--encre); }
.sortir { color: var(--gris); }

/* The official button, as a link (server-rendered, no script). */
.droplet-id-bouton { display: inline-flex; align-items: center; gap: .55em; height: 40px; padding: 0 1.1em; border-radius: 999px; text-decoration: none; font: 600 14px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; background: #fff; color: #0a1a24; box-shadow: inset 0 0 0 1px #d6dee4; white-space: nowrap; }
.droplet-id-bouton svg { width: 1.2em; height: 1.2em; color: #0a7cff; }
.droplet-id-bouton:hover { box-shadow: inset 0 0 0 1px #0a7cff; }
@media (max-width: 30rem) { .droplet-id-bouton span { font-size: 13px; } .logo { font-size: .98rem; } .couv-titre { font-size: .98rem; } .couv { padding: .8rem; } }

.ouverture { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4.4rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; font-stretch: 78%; margin: 0; max-width: 18ch; }
.chapo { color: var(--gris); max-width: 46ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); margin: 1.4rem 0 0; }
.chapo strong { color: var(--encre); }
.erreur { color: #a3361f; }

.registre { background: var(--page); border-radius: 18px; padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: inset 0 0 0 1px var(--ligne); margin-bottom: 2.5rem; }
.registre h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.registre p { margin: 0 0 1rem; color: var(--gris); }
.registre table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.registre th { text-align: left; font-weight: 560; color: var(--gris); border-bottom: 1px solid var(--ligne); padding: .4rem .6rem .5rem 0; }
.registre td { padding: .6rem .6rem .2rem 0; vertical-align: top; }
@media (max-width: 40rem) { .registre thead { display: none; } .registre td { display: block; padding: .2rem 0; } }

.rayon { font-size: 1rem; color: var(--gris); font-weight: 560; margin: 0 0 1rem; }
.livres { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 15rem), 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.livre { display: grid; gap: .8rem; align-content: start; }
.couv { position: relative; aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; background: var(--c); color: rgba(255, 255, 255, .9); padding: 1.1rem 1rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .14), 0 18px 30px -18px rgba(22, 29, 51, .55); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.livre:hover .couv { transform: translateY(-4px) rotate(-.6deg); }
.couv svg { position: absolute; top: 1rem; left: 1rem; width: 55%; color: rgba(255, 255, 255, .35); }
.couv-titre { font-weight: 640; font-size: 1.15rem; line-height: 1.1; font-stretch: 80%; letter-spacing: -.01em; }
.couv-auteur { font-size: .82rem; opacity: .8; margin-top: .4rem; }
.infos h3 { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.infos p { margin: .15rem 0 0; color: var(--gris); font-size: .93rem; }
.infos .prix { color: var(--encre); font-variant-numeric: tabular-nums; }
.envie { font: inherit; font-size: .9rem; font-weight: 560; border: 0; border-radius: 999px; padding: .5rem .9rem; cursor: pointer; background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--ligne); }
.envie[aria-pressed='true'] { background: var(--encre); color: #fff; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .couv { transition: none; } }

.pied { border-top: 1px solid var(--ligne); padding-block: 1.8rem 3rem; color: var(--gris); font-size: .9rem; }
