/* =========================================================
   LIPATRAD PLUS — Papier & Vermillon
   Direction artistique 2026 : la table du libraire.
   ========================================================= */

:root {
  --paper: #f7f1e5;
  --paper-2: #efe3d0;
  --paper-3: #fffbf4;
  --card: #fffbf4;
  --ink: #17130f;
  --ink-2: #3b342c;
  --muted: #71675a;
  --line: rgba(23, 19, 15, 0.14);
  --line-strong: rgba(23, 19, 15, 0.3);
  --red: #dc2128;
  --red-dark: #b01720;
  --red-soft: #f9e5e2;
  --forest: #1f4a3a;
  --forest-2: #2c6a51;
  --ochre: #d9a441;
  --ochre-ink: #8a5a12;
  --ochre-soft: #f6e8c8;
  --clay: #b65c45;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(58, 39, 22, 0.13);
  --shadow-soft: 0 8px 30px rgba(58, 39, 22, 0.09);
  --shadow-hard: 5px 5px 0 var(--ink);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --header-h: 84px;
}

[data-theme="dark"] {
  --paper: #14110e;
  --paper-2: #1b1713;
  --paper-3: #211c17;
  --card: #1d1915;
  --ink: #f7f1e5;
  --ink-2: #ded4c5;
  --muted: #b5a998;
  --line: rgba(247, 241, 229, 0.15);
  --line-strong: rgba(247, 241, 229, 0.3);
  --red: #ef4a52;
  --red-dark: #dc2128;
  --red-soft: #351719;
  --forest: #78a68c;
  --forest-2: #95c2a8;
  --ochre: #e0b05c;
  --ochre-ink: #f0c87a;
  --ochre-soft: #332817;
  --clay: #d27c63;
  --white: #f7f1e5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.28);
  --shadow-hard: 5px 5px 0 rgba(247, 241, 229, 0.8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
::selection { background: var(--red); color: var(--white); }

h1, h2, h3, h4, p { margin: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
h1 {
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
  font-variation-settings: "opsz" 144, "SOFT" 55, "WONK" 1;
}
h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  font-variation-settings: "opsz" 96, "SOFT" 45, "WONK" 1;
}
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.02em; }
em { color: var(--red); font-style: italic; }
strong { font-weight: 650; }

.container {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink em { color: var(--ochre); }
.section--ink .eyebrow { color: var(--ochre); }
.section--ink .section-lead { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.section--red { background: var(--red); color: var(--white); }
.section--red h2, .section--red h3 { color: var(--white); }
.section--red em { color: var(--ochre-soft); }
.section--red .eyebrow { color: var(--ochre-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.section-lead { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 46ch; }
.section-head .section-lead { justify-self: end; }
.text-red { color: var(--red); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 0.8rem;
}
.skip-link:focus { transform: translateY(0); }
.svg-sprite { position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.975); }
.btn:focus-visible, .icon-btn:focus-visible, .menu-toggle:focus-visible, .quote-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.btn--primary, .btn-primary { background: var(--red); border-color: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary:hover, .btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost, .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover, .btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--whatsapp, .btn-wa { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn--whatsapp:hover, .btn-wa:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn--light { background: var(--paper-3); border-color: var(--paper-3); color: var(--ink); }
.btn--light:hover { background: var(--ochre-soft); border-color: var(--ochre-soft); }
.btn--small { min-height: 38px; padding: 8px 14px; font-size: 0.7rem; }
.btn--block, .btn-block { width: 100%; }
.btn .icon { width: 17px; height: 17px; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 0.8rem; font-weight: 650; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; transition: transform 180ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }
.link-underline { text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- En-tête ---------- */
.announcement {
  position: relative;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.announcement__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.announcement__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 4px rgba(217,164,65,0.16); flex: 0 0 auto; }
.announcement a { color: var(--ochre); text-decoration: none; }
.announcement a:hover { text-decoration: underline; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease, background 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(58, 39, 22, 0.08); background: var(--paper); }
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; text-decoration: none; }
.brand__mark { width: 54px; height: 48px; flex: 0 0 auto; object-fit: contain; mix-blend-mode: multiply; }
[data-theme="dark"] .brand__mark { mix-blend-mode: normal; background: #fff; border-radius: 4px; padding: 3px; }
.brand__word { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--sans); font-size: 1.16rem; font-weight: 700; letter-spacing: -0.055em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.brand__name em { color: var(--red); font-style: normal; }
.brand__tag { color: var(--muted); font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--red);
  transition: right 220ms var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.icon-btn:hover, .menu-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.icon-btn .icon, .menu-toggle .icon { width: 17px; height: 17px; }
.theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: block; }
.menu-toggle { display: none; }
.quote-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 650;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.quote-trigger:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quote-trigger__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.6rem;
}
.head-wa { min-height: 42px; padding: 9px 14px; border-radius: 999px; }
.head-wa .icon { width: 16px; height: 16px; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 58px 0 94px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 18%;
  width: 36vw;
  height: 36vw;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr); gap: 58px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 30px; height: 1px; background: var(--red); }
.hero h1 { max-width: 9.5ch; }
.hero-lead { max-width: 51ch; margin-top: 24px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 30px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--forest); }
.hero-visual { position: relative; min-height: 560px; }
.hero-photo { position: absolute; top: 0; right: 0; width: 90%; height: 500px; overflow: hidden; background: var(--paper-2); border-radius: 4px; box-shadow: var(--shadow); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(23, 19, 15, 0.22)); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-stamp {
  position: absolute;
  top: 20px;
  left: 2%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 0.8;
  transform: rotate(-9deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.hero-stamp small { color: var(--ochre-ink); font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card-fan { position: absolute; right: 4%; bottom: 0; z-index: 4; width: 360px; height: 220px; }
.index-card {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 150px;
  min-height: 204px;
  padding: 15px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-3);
  box-shadow: 10px 12px 0 rgba(23, 19, 15, 0.12);
  text-decoration: none;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.index-card:nth-child(1) { right: 175px; bottom: 30px; transform: rotate(-9deg); z-index: 1; }
.index-card:nth-child(2) { right: 88px; bottom: 14px; transform: rotate(2deg); z-index: 2; background: var(--red); color: var(--white); border-color: var(--red); }
.index-card:nth-child(3) { right: 0; bottom: 0; transform: rotate(8deg); z-index: 3; }
.index-card:hover, .index-card:focus-visible { transform: translateY(-12px) rotate(0deg); box-shadow: 14px 20px 0 rgba(23, 19, 15, 0.11); outline: none; }
.index-card__num { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; opacity: 0.65; }
.index-card__title { font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: -0.035em; }
.index-card__sub { font-size: 0.65rem; line-height: 1.35; opacity: 0.72; }
.index-card__arrow { align-self: flex-end; font-size: 1.1rem; }

/* ---------- Étapes ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-card { position: relative; padding: 32px 30px 30px; border-right: 1px solid var(--line); }
.step-card:last-child { border-right: 0; }
.step-card__num { display: block; margin-bottom: 36px; color: var(--red); font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.12em; }
.step-card h3 { max-width: 18ch; font-family: var(--serif); font-size: 1.9rem; font-weight: 520; line-height: 1.02; letter-spacing: -0.04em; }
.step-card p { margin-top: 14px; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.step-card__icon { position: absolute; top: 27px; right: 26px; width: 26px; height: 26px; color: var(--red); }
.steps-actions { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Rayons / étagère ---------- */
.shelf-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.shelf-head .section-lead { max-width: 36ch; }
.shelf { position: relative; display: flex; gap: 12px; overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ochre) transparent; }
.shelf::-webkit-scrollbar { height: 4px; }
.shelf::-webkit-scrollbar-thumb { background: var(--ochre); }
.shelf-card {
  position: relative;
  flex: 0 0 178px;
  height: 372px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(247, 241, 229, 0.18);
  border-radius: 2px;
  color: var(--paper);
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
}
.shelf-card:nth-child(6n+1) { background: #8f2624; }
.shelf-card:nth-child(6n+2) { background: #1f4a3a; }
.shelf-card:nth-child(6n+3) { background: #8a5a12; }
.shelf-card:nth-child(6n+4) { background: #6d3e36; }
.shelf-card:nth-child(6n+5) { background: #314a5a; }
.shelf-card:nth-child(6n+6) { background: #7a6134; }
.shelf-card:hover, .shelf-card:focus-visible { transform: translateY(-10px) rotate(-1deg); border-color: var(--paper); outline: none; }
.shelf-card__index { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; opacity: 0.68; }
.shelf-card__label { font-family: var(--serif); font-size: 2.15rem; line-height: 0.92; letter-spacing: -0.045em; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; }
.shelf-card__note { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px; background: var(--paper); color: var(--ink); font-size: 0.72rem; line-height: 1.4; transform: translateY(125%); transition: transform 300ms var(--ease-out); }
.shelf-card:hover .shelf-card__note, .shelf-card:focus-visible .shelf-card__note { transform: translateY(0); }
.shelf-card__arrow { align-self: flex-end; width: 22px; height: 22px; }
.shelf-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; color: var(--muted); font-family: var(--mono); font-size: 0.61rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Cartes livres ---------- */
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.book-card { min-width: 0; }
.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 0.72;
  padding: 22px 18px 18px 25px;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.28);
  border-radius: 3px;
  background: var(--cover-bg, var(--ink));
  color: var(--cover-ink, var(--paper));
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.book-cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 10px; width: 1px; background: currentColor; opacity: 0.35; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,0.12), transparent 42%, rgba(0,0,0,0.16)); pointer-events: none; }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover__kicker { position: relative; z-index: 1; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.74; }
.book-cover__title { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 560; line-height: 0.96; letter-spacing: -0.045em; }
.book-cover__author { position: relative; z-index: 1; margin-top: 10px; font-size: 0.69rem; line-height: 1.35; opacity: 0.8; }
.book-cover:hover { transform: translateY(-7px) rotate(-0.5deg); box-shadow: var(--shadow); }
.book-body { padding: 15px 2px 0; }
.book-cat { color: var(--red); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.book-title { margin-top: 6px; font-family: var(--serif); font-size: 1.2rem; font-weight: 560; line-height: 1.05; letter-spacing: -0.03em; }
.book-title a { text-decoration: none; }
.book-title a:hover { color: var(--red); }
.book-author { margin-top: 5px; color: var(--muted); font-size: 0.74rem; }
.book-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.book-price { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.02em; }
.book-stock { color: var(--forest); font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; }
.book-stock--order { color: var(--ochre-ink); }
.book-stock--out { color: var(--red); }
.book-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.book-actions .btn { flex: 1; min-height: 38px; padding: 8px 10px; font-size: 0.65rem; }
.book-actions .text-link { white-space: nowrap; font-size: 0.66rem; }
.book-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card__cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1.3; padding: 22px; overflow: hidden; border: 1px solid rgba(23, 19, 15, 0.28); background: var(--post-bg, var(--paper-2)); color: var(--post-ink, var(--ink)); text-decoration: none; }
.post-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23,19,15,0.16)); }
.post-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__cover .post-card__label { position: relative; z-index: 1; }
.post-card__kicker { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.72; }
.post-card__cover-title { display: block; margin-top: 12px; font-family: var(--serif); font-size: 2rem; line-height: 0.96; letter-spacing: -0.045em; }
.post-card__body { padding-top: 16px; }
.post-card__title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.03em; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--red); }
.post-card__excerpt { margin-top: 8px; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.post-card__meta { display: flex; gap: 12px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.07em; text-transform: uppercase; }
.post-card__link { margin-top: 12px; }

/* ---------- Histoire ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.story-visual { position: relative; }
.story-visual img { width: 100%; aspect-ratio: 0.92; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.story-stamp { position: absolute; right: -20px; bottom: -20px; display: grid; place-items: center; width: 130px; height: 130px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--red); font-family: var(--serif); font-size: 2.6rem; line-height: 0.8; transform: rotate(8deg); box-shadow: 4px 4px 0 var(--ink); }
.story-stamp small { color: var(--ochre-ink); font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.story-copy h2 { max-width: 11ch; }
.story-copy p { max-width: 54ch; margin-top: 20px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.7; }
.story-quote { margin: 30px 0 0; padding: 22px 0 0 25px; border-left: 2px solid var(--red); font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.03em; }
.story-quote small { display: block; margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.proof-list li { color: var(--ink-2); font-size: 0.8rem; }
.proof-list li::before { content: "—"; margin-right: 8px; color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 70px; align-items: start; }
.contact-copy h2 { max-width: 8ch; }
.contact-copy > p { max-width: 43ch; margin-top: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.contact-list { display: grid; gap: 18px; margin-top: 30px; }
.contact-line { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); text-decoration: none; }
.contact-line__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--red); }
.contact-line__icon .icon { width: 15px; height: 15px; }
.contact-line b { display: block; font-size: 0.82rem; font-weight: 650; }
.contact-line small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); box-shadow: var(--shadow-soft); }
.contact-form h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 540; letter-spacing: -0.03em; }
.form-kicker { margin-bottom: 10px; color: var(--red); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.form-field { display: grid; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--ink-2); font-size: 0.7rem; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea, .toolbar input, .toolbar select, .drawer-form input, .drawer-form textarea, .school-form input, .school-form select, .school-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.form-field textarea, .drawer-form textarea, .school-form textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .toolbar input:focus, .toolbar select:focus, .drawer-form input:focus, .drawer-form textarea:focus, .school-form input:focus, .school-form select:focus, .school-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: var(--paper-3); }
.form-note { margin-top: 12px; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.form-note a { color: var(--red); }
.form-status { min-height: 20px; margin-top: 10px; color: var(--forest); font-size: 0.72rem; }
.form-status.is-error { color: var(--red); }
.newsletter-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 40px; align-items: center; margin-top: 70px; padding: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter-box h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 540; letter-spacing: -0.04em; }
.newsletter-box p { margin-top: 8px; color: var(--muted); font-size: 0.8rem; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.newsletter-form input[type="email"] { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 0.82rem; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.newsletter-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.newsletter-consent input { width: auto; margin-top: 2px; accent-color: var(--red); }
.newsletter-consent a { color: var(--red); }
.newsletter-status { grid-column: 1 / -1; color: var(--forest); font-size: 0.7rem; }
.newsletter-status.is-error { color: var(--red); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 64px 0 24px; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 0.7fr); gap: 42px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .brand__mark { width: 58px; height: 51px; background: #fff; border-radius: 4px; padding: 3px; mix-blend-mode: normal; }
.footer-brand .brand__name { color: var(--paper); font-size: 1.26rem; }
.footer-brand .brand__tag { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.footer-brand p { max-width: 34ch; color: color-mix(in srgb, var(--paper) 67%, transparent); font-size: 0.78rem; line-height: 1.6; }
.footer-col h3 { margin-bottom: 14px; color: var(--ochre); font-family: var(--mono); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; margin-bottom: 8px; color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 0.75rem; text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 18px; border-top: 1px solid rgba(247, 241, 229, 0.17); color: color-mix(in srgb, var(--paper) 52%, transparent); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--ochre); }

/* ---------- Pages intérieures ---------- */
.page-hero { padding: 64px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 12ch; font-size: clamp(3rem, 6.4vw, 5.8rem); }
.page-hero p { max-width: 60ch; margin-top: 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.05em; text-decoration: none; text-transform: uppercase; }
.pill:hover { border-color: var(--red); color: var(--red); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.main-content { padding: 46px 0 86px; }

/* ---------- Catalogue ---------- */
.catalogue-toolbar { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; padding: 14px 0; background: color-mix(in srgb, var(--paper) 95%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.toolbar { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(150px, 0.7fr) minmax(140px, 0.55fr) minmax(120px, 0.45fr) auto; gap: 10px; align-items: center; }
.toolbar input, .toolbar select { min-height: 44px; }
.toolbar-count { color: var(--muted); font-family: var(--mono); font-size: 0.6rem; white-space: nowrap; text-align: right; text-transform: uppercase; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.filter-chip { min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase; }
.filter-chip:hover, .filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.catalogue-grid { margin-top: 40px; }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.listing-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { grid-column: 1 / -1; display: grid; gap: 9px; padding: 54px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; background: color-mix(in srgb, var(--card) 50%, transparent); }
.empty-state b { font-family: var(--serif); font-size: 1.6rem; font-weight: 540; letter-spacing: -0.03em; }
.empty-state span { max-width: 55ch; margin-inline: auto; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.empty-state .btn { justify-self: center; margin-top: 6px; }
.skeleton { min-height: 360px; border-radius: 3px; background: linear-gradient(100deg, var(--paper-2) 20%, var(--paper-3) 45%, var(--paper-2) 70%); background-size: 300% 100%; animation: skeleton 1.4s ease infinite; }
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Fiche livre ---------- */
.detail-page { min-height: 60vh; }
.book-detail { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.book-detail__cover { position: relative; }
.book-detail__cover .book-cover { aspect-ratio: 0.72; max-width: 380px; }
.book-detail__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 20px 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; }
.book-detail h1 { max-width: 13ch; font-size: clamp(2.8rem, 5.5vw, 5.2rem); }
.book-detail__author { margin-top: 13px; color: var(--muted); font-size: 1rem; }
.book-detail__desc { max-width: 58ch; margin-top: 26px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.75; }
.book-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.book-fact { display: grid; gap: 2px; }
.book-fact small { color: var(--muted); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; }
.book-fact b { font-size: 0.82rem; font-weight: 550; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related { margin-top: 80px; padding-top: 34px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 26px; font-family: var(--serif); font-size: 2.4rem; font-weight: 540; }

/* ---------- Articles / éditorial ---------- */
.article-page { max-width: 880px; margin-inline: auto; }
.article-header { padding: 54px 0 38px; }
.article-header h1 { max-width: 15ch; font-size: clamp(3rem, 6.4vw, 5.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; }
.article-cover { width: 100%; aspect-ratio: 1.8; object-fit: cover; margin: 30px 0; border-radius: 3px; }
.article-body { color: var(--ink-2); font-size: 1.02rem; line-height: 1.85; }
.article-body p { margin: 0 0 1.25em; }
.article-body p:first-of-type::first-letter { float: left; margin: 0.04em 0.1em 0 0; color: var(--red); font-family: var(--serif); font-size: 4.6em; line-height: 0.72; }
.article-body h2, .article-body h3 { margin: 1.5em 0 0.5em; font-family: var(--serif); font-weight: 550; letter-spacing: -0.03em; line-height: 1.05; }
.article-body blockquote { margin: 1.6em 0; padding: 18px 0 18px 24px; border-left: 2px solid var(--red); font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.article-body a { color: var(--red); }
.article-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-related { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Agenda ---------- */
.events-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 30px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.event-date { color: var(--red); font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.04em; line-height: 1.5; text-transform: uppercase; }
.event-row h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 540; letter-spacing: -0.035em; line-height: 1.05; }
.event-row p { max-width: 60ch; margin-top: 8px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.event-place { display: inline-block; margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Formulaires longs / liste scolaire ---------- */
.school-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 70px; align-items: start; }
.school-copy h1 { max-width: 10ch; font-size: clamp(3rem, 6vw, 5.2rem); }
.school-copy p { margin-top: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.school-steps { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.school-step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.school-step__num { color: var(--red); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; }
.school-step b { display: block; font-size: 0.82rem; }
.school-step span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.school-form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); box-shadow: var(--shadow-soft); }
.school-form h2 { font-family: var(--serif); font-size: 2rem; font-weight: 540; letter-spacing: -0.035em; }
.school-form .form-grid { margin-top: 20px; }

/* ---------- Pages légales ---------- */
.legal-page { max-width: 800px; margin-inline: auto; padding: 54px 0 86px; }
.legal-page h1 { max-width: 13ch; font-size: clamp(2.8rem, 5.8vw, 5rem); }
.legal-intro { margin-top: 22px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }
.legal-page h2 { margin: 42px 0 12px; font-family: var(--serif); font-size: 1.8rem; font-weight: 540; letter-spacing: -0.03em; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: 0.9rem; line-height: 1.75; }
.legal-page p { margin-bottom: 12px; }
.legal-page ul { margin: 8px 0 16px; padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--red); }
.legal-page code { padding: 2px 5px; border-radius: 3px; background: var(--paper-2); font-family: var(--mono); font-size: 0.8em; }
.legal-date { margin-top: 38px; color: var(--muted); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.todo { color: var(--red); font-weight: 650; }

/* ---------- Drawer Ma liste ---------- */
body.drawer-open { overflow: hidden; }
.drawer-scrim { position: fixed; inset: 0; z-index: 120; background: rgba(23, 19, 15, 0.48); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(23, 19, 15, 0.18);
  transform: translateX(102%);
  transition: transform 320ms var(--ease-out);
}
.quote-drawer.is-open { transform: translateX(0); }
.quote-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.quote-drawer__head h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 540; letter-spacing: -0.03em; }
.quote-drawer__close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.quote-drawer__close:hover { background: var(--ink); color: var(--paper); }
.quote-drawer__body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.quote-empty { padding: 20px 0 22px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.quote-empty b { display: block; margin-bottom: 5px; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 540; letter-spacing: -0.02em; }
.quote-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.quote-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quote-item__title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.02em; }
.quote-item__meta { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase; }
.quote-item__tools { display: flex; align-items: center; gap: 5px; }
.quote-item__qty { display: inline-flex; align-items: center; gap: 5px; }
.quote-item__qty button { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 0.8rem; }
.quote-item__qty span { min-width: 18px; text-align: center; font-family: var(--mono); font-size: 0.65rem; }
.quote-item__remove { border: 0; background: transparent; color: var(--muted); font-size: 1rem; }
.quote-item__remove:hover { color: var(--red); }
.quote-add { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 18px; }
.quote-add input { min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-3); color: var(--ink); font-size: 0.78rem; }
.quote-add button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 0.7rem; }
.quote-add button:hover { background: var(--red); border-color: var(--red); }
.quote-drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--paper-3); }
.drawer-form { display: grid; gap: 9px; }
.drawer-form input, .drawer-form textarea { min-height: 40px; padding: 8px 10px; background: var(--paper); }
.drawer-form textarea { min-height: 64px; }
.drawer-form .btn { width: 100%; }
.drawer-note { margin-top: 10px; color: var(--muted); font-size: 0.65rem; line-height: 1.45; }
.drawer-note a { color: var(--red); }
.quote-total { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; }
.quote-total b { color: var(--ink); font-weight: 500; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); max-width: min(420px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-size: 0.76rem; opacity: 0; pointer-events: none; transition: opacity 220ms ease, transform 220ms var(--ease-out); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Animations ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal--delay-1 { transition-delay: 80ms; }
.js .reveal--delay-2 { transition-delay: 160ms; }
.js .reveal--delay-3 { transition-delay: 240ms; }
.stamp { animation: stamp-in 450ms var(--ease-out); }
@keyframes stamp-in { 0% { transform: scale(1.18) rotate(-4deg); opacity: 0.3; } 60% { transform: scale(0.96) rotate(1deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes float-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { animation: float-in 700ms var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 150ms; }
.hero-copy > *:nth-child(4) { animation-delay: 220ms; }
.hero-copy > *:nth-child(5) { animation-delay: 290ms; }
.hero-copy > *:nth-child(6) { animation-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr); gap: 36px; }
  .hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.2rem); }
  .book-grid, .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 28px; }
}

@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .announcement { display: none; }
  body.menu-open .mobile-bar { display: none; }
  body.menu-open .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 24px 24px 40px;
    overflow-y: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(23, 19, 15, 0.12);
  }
  body.menu-open .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(1.65rem, 8vw, 2.4rem);
    font-weight: 540;
    letter-spacing: -0.035em;
    line-height: 1;
  }
  body.menu-open .main-nav a::after { display: none; }
  .head-wa { display: none; }
  .header-inner { gap: 14px; }
  .brand { min-width: 0; margin-right: auto; }
  .hero { padding-top: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 520px; max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-photo { height: 460px; }
  .hero::after { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head .section-lead { justify-self: start; }
  .story-grid, .contact-grid, .school-layout { grid-template-columns: 1fr; gap: 44px; }
  .story-copy h2, .contact-copy h2, .school-copy h1 { max-width: 14ch; }
  .story-visual { max-width: 620px; }
  .book-detail { grid-template-columns: 1fr; gap: 36px; }
  .book-detail__cover .book-cover { max-width: 330px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar-count { grid-column: 1 / -1; text-align: left; }
  .newsletter-box { grid-template-columns: 1fr; gap: 22px; }
  .shelf-head { align-items: start; flex-direction: column; gap: 16px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 66px 0; }
  .section--tight { padding: 46px 0; }
  .announcement__inner { min-height: 34px; font-size: 0.56rem; padding: 6px 14px; }
  .announcement__inner a { display: none; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { display: none; }
  .brand__mark { width: 42px; height: 37px; }
  .header-actions { gap: 6px; }
  .header-actions > .icon-btn:not(.menu-toggle), .header-actions .theme-btn { display: none; }
  .icon-btn, .menu-toggle { width: 38px; height: 38px; }
  .quote-trigger { min-height: 38px; padding: 7px 10px; font-size: 0.64rem; }
  .quote-trigger__label { display: none; }
  .hero { padding: 30px 0 64px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  .hero-lead { font-size: 0.92rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { gap: 10px 16px; font-size: 0.55rem; }
  .hero-visual { min-height: 420px; }
  .hero-photo { width: 100%; height: 350px; }
  .hero-stamp { top: 12px; left: 12px; width: 72px; height: 72px; font-size: 1.85rem; }
  .card-fan { right: 0; bottom: -30px; width: 270px; height: 180px; }
  .index-card { width: 130px; min-height: 172px; padding: 12px; }
  .index-card:nth-child(1) { right: 125px; bottom: 20px; }
  .index-card:nth-child(2) { right: 62px; bottom: 8px; }
  .index-card__title { font-size: 1.05rem; }
  .index-card__sub { font-size: 0.56rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .step-card:last-child { border-bottom: 0; }
  .step-card__num { margin-bottom: 18px; }
  .step-card h3 { font-size: 1.65rem; }
  .step-card__icon { top: 22px; }
  .shelf-card { flex-basis: 150px; height: 310px; }
  .shelf-card__label { font-size: 1.75rem; }
  .book-grid, .listing-grid, .journal-grid, .book-grid--three, .book-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .book-cover { padding: 16px 13px 13px 18px; }
  .book-cover__title { font-size: 1.25rem; }
  .book-cover__author { font-size: 0.58rem; }
  .book-actions { flex-wrap: wrap; }
  .book-actions .btn { flex: 1 1 100%; }
  .book-actions .text-link { display: none; }
  .book-title { font-size: 1.05rem; }
  .book-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .post-card__cover-title { font-size: 1.55rem; }
  .post-card__title { font-size: 1.2rem; }
  .story-visual img { aspect-ratio: 1.05; }
  .story-stamp { width: 92px; height: 92px; right: -8px; bottom: -12px; font-size: 1.9rem; }
  .story-quote { font-size: 1.25rem; }
  .proof-list { grid-template-columns: 1fr; }
  .contact-form, .school-form { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .btn { width: 100%; }
  .newsletter-box { padding: 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 34px; font-size: 0.5rem; }
  .page-hero { padding: 44px 0 38px; }
  .page-hero h1 { font-size: clamp(2.7rem, 12vw, 4.6rem); }
  .main-content { padding: 30px 0 64px; }
  .catalogue-toolbar { top: var(--header-h); }
  .toolbar { grid-template-columns: 1fr; gap: 8px; }
  .toolbar-count { text-align: left; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-chip { flex: 0 0 auto; }
  .book-detail__cover .book-cover { max-width: 260px; }
  .book-detail h1 { font-size: clamp(2.5rem, 11vw, 4.2rem); }
  .book-facts { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .event-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .event-row .btn { justify-self: start; }
  .article-body { font-size: 0.96rem; }
  .article-body p:first-of-type::first-letter { font-size: 3.6em; }
  .legal-page { padding: 38px 0 64px; }
  .legal-page h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 1px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -8px 30px rgba(58, 39, 22, 0.08);
  }
  .mobile-bar a, .mobile-bar button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 0.62rem; font-weight: 650; text-decoration: none; }
  .mobile-bar a:first-child { justify-self: start; }
  .mobile-bar .mobile-bar__primary { background: var(--red); color: var(--white); border-radius: 3px; }
  .mobile-bar .icon { width: 15px; height: 15px; }
  body { padding-bottom: 66px; }
  .footer-bottom { padding-bottom: 10px; }
}

@media (max-width: 420px) {
  .book-grid, .listing-grid, .book-grid--three, .book-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-grid { grid-template-columns: 1fr; }
  .book-cover__title { font-size: 1.35rem; }
  .book-cover__kicker { font-size: 0.48rem; }
  .hero-actions .btn { width: 100%; }
  .quote-drawer__head { padding: 16px 18px; }
  .quote-drawer__body { padding: 16px 18px; }
  .quote-drawer__foot { padding: 14px 18px 18px; }
}

@media (max-width: 360px) {
  .book-grid, .listing-grid, .book-grid--three, .book-grid--two, .journal-grid { grid-template-columns: 1fr; }
  .book-cover__title { font-size: 1.7rem; }
}
