/* ==========================================================================
   Biblioscope — feuille de style du site
   Aucune ressource externe : polices système (New York sur les appareils Apple).
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  --paper: #FBF7F0;
  --paper-2: #F4ECDF;
  --paper-3: #EADDC8;
  --card: #FFFCF7;
  --ink: #2B2118;
  --ink-2: #4A3C30;
  --muted: #7A6A5C;
  --copper: #C8803E;
  --copper-text: #B86F2E;
  --copper-deep: #965620;
  --green-text: #4A5E31;
  --line: rgba(43, 33, 24, .12);
  --line-strong: rgba(43, 33, 24, .24);
  --grid: rgba(40, 68, 107, .055);
  --wood: #6B4A33;
  --wood-2: #4E3424;
  --wood-3: #8C6647;
  --niche: rgba(43, 33, 24, .055);
  --shadow-sm: 0 1px 2px rgba(43, 33, 24, .06);
  --shadow: 0 1px 2px rgba(43, 33, 24, .05), 0 10px 30px -8px rgba(43, 33, 24, .14);
  --shadow-lg: 0 2px 6px rgba(43, 33, 24, .07), 0 30px 70px -20px rgba(43, 33, 24, .30);
  --red: #C63D2F;
  --navy: #28446B;
  --yellow: #F2D35C;
  --green: #556B3A;
  --black: #1F1F1F;
  --cream: #F1ECE2;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, system-ui, sans-serif;
  --header-h: 68px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A17;
    --paper-2: #23201C;
    --paper-3: #2E2A25;
    --card: #26231F;
    --ink: #F6ECDD;
    --ink-2: #DDD0BE;
    --muted: #B2A290;
    --copper: #E49A55;
    --copper-text: #E49A55;
    --copper-deep: #EDB27A;
    --green-text: #A9C084;
    --line: rgba(246, 236, 221, .11);
    --line-strong: rgba(246, 236, 221, .22);
    --grid: rgba(246, 236, 221, .04);
    --wood: #5C402C;
    --wood-2: #3E2A1D;
    --wood-3: #7A573C;
    --niche: rgba(0, 0, 0, .22);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 70px -20px rgba(0, 0, 0, .7);
    --black: #34312D;
  }
}

/* Couleurs de tranches réutilisées partout (--c : fond, --on : texte, --band : filets). */
.c-red    { --c: #C63D2F; --on: #FBEDE6; --band: rgba(255, 255, 255, .32); }
.c-navy   { --c: #28446B; --on: #EEF2F8; --band: rgba(255, 255, 255, .28); }
.c-yellow { --c: #F2D35C; --on: #3A2E10; --band: rgba(0, 0, 0, .14); }
.c-black  { --c: var(--black); --on: #EDE6DA; --band: rgba(255, 255, 255, .2); }
.c-cream  { --c: #F1ECE2; --on: #3B3026; --band: rgba(0, 0, 0, .12); }
.c-green  { --c: #556B3A; --on: #EEF2E6; --band: rgba(255, 255, 255, .26); }
.c-copper { --c: #C8803E; --on: #FFF4E8; --band: rgba(255, 255, 255, .3); }
.c-wine   { --c: #7E2A2A; --on: #F6E4E0; --band: rgba(255, 255, 255, .24); }
.c-slate  { --c: #5B6770; --on: #EEF1F3; --band: rgba(255, 255, 255, .24); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + .22vw, 1.1875rem);
  line-height: 1.62;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: var(--copper-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-text); }
strong { font-weight: 650; }
button { font: inherit; color: inherit; }
main { display: block; outline: none; }

:focus-visible {
  outline: 2.5px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(200, 128, 62, .28); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.wrap-narrow { max-width: 880px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

/* ---------- Logotype ---------- */
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.012em;
  white-space: nowrap;
  color: var(--ink);
}
.wm-biblio { font-weight: 620; }
.wm-scope { font-style: italic; font-weight: 400; color: var(--copper); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 .5px rgba(43, 33, 24, .14), 0 2px 6px rgba(43, 33, 24, .12);
}
.brand-lg .brand-icon { width: 52px; height: 52px; border-radius: 12px; }
.brand-lg .wordmark { font-size: 2.1rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper-3); color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
}
.lang-switch a {
  padding: 6px 6px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.btn-store-mini {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background-color .2s;
}
.btn-store-mini:hover { color: var(--paper); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle-bars { position: relative; width: 16px; height: 10px; }
.menu-toggle-bars span {
  position: absolute; left: 0; right: 0;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, top .25s;
}
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(43, 33, 24, .35);
    display: none;
  }
  .js .site-nav.is-open { display: block; animation: drop .25s ease-out both; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 13px 12px; font-size: 1.05rem; border-radius: 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .btn-store-mini { display: none; }
  .wordmark { font-size: 1.32rem; }
  .brand-icon { width: 32px; height: 32px; }
  .header-tools { gap: 6px; margin-left: auto; }
}

/* ---------- Boutons ---------- */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 28px -10px rgba(43, 33, 24, .55);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.appstore:hover { color: var(--paper); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 36px -12px rgba(43, 33, 24, .6); }
.appstore:active { transform: translateY(0); }
.appstore-icon { width: 26px; height: 26px; color: var(--copper); }
.appstore-text { display: flex; flex-direction: column; font-family: var(--sans); line-height: 1.1; }
.appstore-text small { font-size: .72rem; letter-spacing: .02em; opacity: .82; }
.appstore-text strong { font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }
.appstore-sm { padding: 9px 18px 9px 13px; border-radius: 12px; }
.appstore-sm .appstore-text strong { font-size: 1.02rem; }
.appstore-lg { padding: 15px 30px 15px 22px; border-radius: 18px; }
.appstore-lg .appstore-icon { width: 30px; height: 30px; }
.appstore-lg .appstore-text strong { font-size: 1.4rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper);
}
.link-arrow:hover { color: var(--copper-deep); }
.link-arrow .icon { width: 18px; height: 18px; transition: translate .25s; }
.link-arrow:hover .icon { translate: 0 3px; }

.round-btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, opacity .2s, transform .2s;
}
.round-btn:hover:not(:disabled) { background: var(--paper-3); }
.round-btn:active:not(:disabled) { transform: scale(.95); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn .icon { width: 20px; height: 20px; }

.checklist { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checklist .icon { width: 20px; height: 20px; margin-top: .22em; color: var(--green-text); stroke-width: 2.3; }

/* ---------- Ouverture (hero) ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  padding-top: clamp(28px, 6vw, 84px);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(200, 128, 62, .13), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(40, 68, 107, .06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--copper); }

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.5rem);
  font-weight: 650;
  line-height: 1.01;
  letter-spacing: -.028em;
}
h1 em, h2 em { font-style: italic; font-weight: 440; color: var(--copper-text); }
.hero h1 em { display: block; }

.hero-lead {
  max-width: 33ch;
  margin: 0;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 30px; }
.hero-note { margin: 16px 0 0; font-family: var(--sans); font-size: .85rem; letter-spacing: .02em; color: var(--muted); }

/* Scène animée : étagère, tranches, loupe, fiches */
.hero-art { position: relative; }
.scene {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 6 / 5;
  margin-inline: auto;
}
.scene::before {
  content: "";
  position: absolute;
  left: 1%; right: 1%;
  bottom: 12%;
  height: 54%;
  border-radius: 2cqi 2cqi 0 0;
  background: linear-gradient(180deg, transparent, var(--niche));
}

.notices { position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 3; }
.notice {
  position: absolute;
  width: 30cqi;
  padding: 1.9cqi 2.2cqi 5.4cqi;
  border-radius: .7cqi;
  background-color: #FFFDF7;
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent calc(3.2cqi - 1px), rgba(40, 68, 107, .13) calc(3.2cqi - 1px), rgba(40, 68, 107, .13) 3.2cqi);
  background-position: 0 6.4cqi;
  color: #2B2118;
  font-size: 2.15cqi;
  line-height: 1.35;
  box-shadow: 0 .25cqi .5cqi rgba(43, 33, 24, .12), 0 2.4cqi 4.4cqi -1cqi rgba(43, 33, 24, .28);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), translate .7s cubic-bezier(.2, .8, .2, 1);
}
.notice::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 6.2cqi;
  height: 1px;
  background: rgba(198, 61, 47, .55);
}
.notice p { margin: 0; }
.notice-title { font-size: 2.55cqi; font-style: italic; font-weight: 620; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-author { margin-top: 1.4cqi !important; font-variant: small-caps; letter-spacing: .03em; color: #4A3C30; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-place { display: flex; align-items: center; gap: .6cqi; margin-top: .8cqi !important; font-family: var(--sans); font-size: 1.62cqi; color: #6E5F51; white-space: nowrap; }
.notice-place .icon { width: 1.9cqi; height: 1.9cqi; color: #C8803E; stroke-width: 2; }
.stamp {
  position: absolute;
  right: 1.6cqi; bottom: 1.3cqi;
  padding: .25cqi .8cqi;
  border: .28cqi solid currentColor;
  border-radius: .5cqi;
  color: #B23A2E;
  font-family: var(--sans);
  font-size: 1.35cqi;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .82;
  rotate: -7deg;
}
.notice-1 { left: 0; top: 6%; rotate: -3deg; }
.notice-2 { left: 35%; top: 0; rotate: 1.6deg; }
.notice-3 { left: 69%; top: 8%; rotate: -1.4deg; }
.notice-2 .stamp { color: #28446B; }
.notice-3 .stamp { color: #556B3A; }
.js .notice { opacity: 0; translate: 0 2.4cqi; }
.js .notice.is-shown { opacity: 1; translate: 0 0; }

.books {
  position: absolute;
  left: 3.5%; right: 3.5%;
  bottom: 12%;
  height: 50%;
  display: flex;
  align-items: flex-end;
  gap: .42cqi;
  clip-path: inset(-80% -14% 0 -14%);
  z-index: 1;
}
.spine {
  position: relative;
  flex: 0 1 calc(var(--w) * 1%);
  min-width: 0;
  height: calc(var(--h) * 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .55cqi .55cqi .2cqi .2cqi;
  background: var(--c);
  color: var(--on);
  font-size: 2.15cqi;
  box-shadow: inset -.7cqi 0 0 rgba(0, 0, 0, .15), inset .35cqi 0 0 rgba(255, 255, 255, .1);
  animation: rise .95s cubic-bezier(.2, .85, .25, 1.06) both;
  animation-delay: calc(var(--i) * 55ms + 120ms);
  transition: filter .35s, box-shadow .35s;
}
.spine.c-cream { box-shadow: inset 0 0 0 .18cqi rgba(43, 33, 24, .12), inset -.7cqi 0 0 rgba(0, 0, 0, .07); }
.spine::before, .spine::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%;
  height: .42cqi;
  border-radius: 1px;
  background: var(--band);
}
.spine::before { top: 8%; }
.spine::after { bottom: 8%; }
.spine-title {
  max-height: 76%;
  overflow: hidden;
  font-size: 1em; /* taille portée par .spine : les unités cqi suivent l'axe d'écriture vertical */
  font-weight: 560;
  letter-spacing: .03em;
  white-space: nowrap;
  text-overflow: ellipsis;
  writing-mode: vertical-rl;
}
.spine-title.up { rotate: 180deg; }
.spine.tilt { rotate: 9deg; transform-origin: 0 100%; margin-right: 3cqi; }
.spine.is-lit { filter: brightness(1.14) saturate(1.12); }
.spine-tick {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1.1cqi);
  display: grid;
  place-items: center;
  width: 3.3cqi; height: 3.3cqi;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  box-shadow: 0 .4cqi 1cqi rgba(200, 128, 62, .45);
  scale: 1;
  transition: scale .45s cubic-bezier(.3, 1.7, .5, 1);
}
.spine-tick .icon { width: 72%; height: 72%; stroke-width: 3.2; }
.js .spine-tick { scale: 0; }
.js .spine.is-read .spine-tick { scale: 1; }
.spine.tilt .spine-tick { rotate: -9deg; }

.pile {
  flex: 0 0 12.5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .3cqi;
  height: 100%;
  animation: rise .95s cubic-bezier(.2, .85, .25, 1.06) both;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
.pile span { display: block; height: 3.3cqi; border-radius: .4cqi; box-shadow: inset 0 -.5cqi 0 rgba(0, 0, 0, .14); }
.pile span:nth-child(1) { width: 84%; margin-left: 9%; background: #556B3A; }
.pile span:nth-child(2) { width: 100%; background: #28446B; }
.pile span:nth-child(3) { width: 92%; margin-left: 3%; background: #C63D2F; }

.plank {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(12% - 3.2cqi);
  height: 3.2cqi;
  border-radius: .5cqi;
  background: linear-gradient(180deg, var(--wood-3) 0%, var(--wood) 35%, var(--wood-2) 100%);
  box-shadow: 0 1.6cqi 2.6cqi -1.2cqi rgba(43, 33, 24, .55);
  z-index: 2;
}

.lens-track {
  position: absolute;
  left: 0; right: 0;
  bottom: 37%;
  height: 0;
  z-index: 4;
  pointer-events: none;
  animation: sweep 12s ease-in-out 1.5s infinite alternate both;
}
.lens {
  position: absolute;
  left: 0; bottom: -10cqi;
  width: 20cqi;
  aspect-ratio: 1;
  animation: bob 4.5s ease-in-out infinite;
}
.lens-glass {
  position: absolute;
  inset: 0;
  border: 1.25cqi solid var(--copper);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .6), rgba(255, 255, 255, .1) 36%, rgba(255, 250, 240, .04) 62%, rgba(200, 128, 62, .14));
  box-shadow: 0 1.6cqi 4cqi rgba(43, 33, 24, .3), inset 0 0 0 .35cqi rgba(255, 255, 255, .45), inset 0 -1.2cqi 2.4cqi rgba(200, 128, 62, .2);
  -webkit-backdrop-filter: brightness(1.12) saturate(1.3) contrast(1.05);
  backdrop-filter: brightness(1.12) saturate(1.3) contrast(1.05);
}
.lens-handle {
  position: absolute;
  left: 82%; top: 79%;
  width: 3.4cqi; height: 12cqi;
  border-radius: 1.7cqi;
  background: linear-gradient(90deg, var(--wood-3), var(--wood) 50%, var(--wood-2));
  box-shadow: 0 1cqi 2cqi rgba(43, 33, 24, .35);
  rotate: -42deg;
  transform-origin: 50% 0;
}
.scene.is-paused .lens-track, .scene.is-paused .lens { animation-play-state: paused; }

@container (max-width: 520px) {
  .notice { width: 45cqi; padding: 2.6cqi 3cqi 7.2cqi; font-size: 3.1cqi; background-position: 0 8.6cqi; }
  .notice::before { top: 8.4cqi; }
  .notice-title { font-size: 3.7cqi; }
  .notice-place { font-size: 2.5cqi; }
  .notice-place .icon { width: 2.8cqi; height: 2.8cqi; }
  .stamp { font-size: 2.1cqi; }
  .notice-2 { left: auto; right: 0; top: 4%; }
  .notice-3 { display: none; }
  .spine { font-size: 2.45cqi; }
}

.ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin: clamp(32px, 5vw, 64px) auto 0;
  padding-block: 20px 22px;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .86rem;
  color: var(--ink-2);
}
.ribbon li { display: flex; align-items: center; white-space: nowrap; }
.ribbon li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin: 0 16px;
  background: var(--copper);
  rotate: 45deg;
}

/* ---------- Sommaire ---------- */
.sommaire { max-width: 920px; padding-top: clamp(56px, 8vw, 104px); text-align: center; }
.sommaire ol {
  columns: 2;
  column-gap: 56px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.sommaire li { break-inside: avoid; }
.sommaire a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  color: var(--ink);
  font-size: 1.14rem;
  text-decoration: none;
}
.toc-label { transition: color .2s; }
.sommaire a:hover .toc-label { color: var(--copper-deep); }
.toc-dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--line-strong); translate: 0 -5px; }
.toc-no { min-width: 2.6em; color: var(--copper-deep); font-size: .95rem; font-variant: small-caps; letter-spacing: .06em; text-align: right; }

/* ---------- Chapitres ---------- */
.chapter { position: relative; overflow-x: clip; padding-block: clamp(76px, 11vw, 144px); }
.chapter-tint { background: linear-gradient(180deg, var(--paper-2), color-mix(in srgb, var(--paper-2) 60%, var(--paper))); }

.chapter-head { max-width: 820px; margin: 0 auto clamp(44px, 6vw, 76px); text-align: center; }
.chapter-no {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.chapter-no::before, .chapter-no::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .5; }
.chapter-head h2 {
  margin: 0 0 26px;
  font-size: clamp(2.15rem, 1.25rem + 3.5vw, 3.85rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.022em;
}
.chapter-lede {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1rem + .38vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-align: left;
}
.lettrine::first-letter {
  float: left;
  padding: .07em .1em 0 0;
  font-size: 3.55em;
  font-weight: 650;
  font-style: normal;
  line-height: .8;
  color: var(--copper-text);
}

.features { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.features-compact { gap: 22px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--copper-deep);
  box-shadow: var(--shadow-sm);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin: 3px 0 4px; font-size: 1.22rem; font-weight: 620; line-height: 1.25; }
.feature p { margin: 0; font-size: 1.02rem; color: var(--ink-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
}
.split-device { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); margin-top: 0; }
.split-reverse { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
.device-col { display: flex; justify-content: center; }

/* Étapes illustrées */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 18px 22px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.step-ill {
  position: relative;
  display: grid;
  place-items: center;
  height: 156px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin: 0 0 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 1.32rem; font-weight: 640; }
.step p { margin: 0; font-size: 1rem; color: var(--ink-2); }

.mini-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 76px;
  padding: 0 8px;
  border-bottom: 5px solid var(--wood);
}
.mini-row i { position: relative; display: block; width: 13px; height: 100%; border-radius: 2px 2px 0 0; background: var(--c); }
.mini-row i.c-cream { box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .14); }
.mini-row i:nth-child(1) { height: 80%; }
.mini-row i:nth-child(2) { height: 100%; width: 15px; }
.mini-row i:nth-child(3) { height: 72%; }
.mini-row i:nth-child(4) { height: 64%; width: 11px; }
.mini-row i:nth-child(5) { height: 92%; }
.mini-row i:nth-child(6) { height: 76%; }
.mini-row i:nth-child(7) { height: 86%; }
.mini-row i.tilt { rotate: 10deg; transform-origin: 0 100%; margin-right: 6px; }

.vf { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 76%; height: 74%; padding-bottom: 12%; }
.vf-c { position: absolute; inset: 0; }
.vf::before, .vf::after, .vf-c::before, .vf-c::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid var(--copper);
}
.vf::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 7px; }
.vf::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 7px; }
.vf-c::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 7px; }
.vf-c::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 7px; }
.step-ill-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: shutter 5s ease-out infinite 1s;
}

.reading i b {
  position: absolute;
  inset: 12% -3px 14%;
  border: 1.5px dashed var(--copper);
  border-radius: 3px;
  opacity: 0;
  animation: ocr 3.4s ease-in-out infinite;
}
.reading i:nth-child(2) b { animation-delay: .3s; }
.reading i:nth-child(3) b { animation-delay: .6s; }
.reading i:nth-child(4) b { animation-delay: .9s; }
.reading i:nth-child(5) b { animation-delay: 1.2s; }
.step-ill-2::after {
  content: "";
  position: absolute;
  left: 14%; right: 14%;
  top: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  box-shadow: 0 0 12px var(--copper);
  animation: scanline 2.8s ease-in-out infinite alternate;
}
.ocr-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 650;
  color: var(--copper-deep);
}

.step-ill-3 { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 0 22px; }
.crumbs { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: .76rem; }
.crumbs span {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-left: calc(var(--k) * 16px);
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink-2);
}
.crumbs span:last-child { background: var(--ink); color: var(--paper); border-color: transparent; font-weight: 600; }
.crumbs span + span::before {
  content: "";
  position: absolute;
  left: -11px; top: -9px;
  width: 9px; height: 19px;
  border-left: 1.5px solid var(--line-strong);
  border-bottom: 1.5px solid var(--line-strong);
  border-bottom-left-radius: 5px;
}
.crumb-pos { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: .72rem; font-weight: 650; color: var(--green-text); }
.crumb-pos .icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* Catalogues */
.catalogs {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.stamps { display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 18px 0 22px; padding: 0; list-style: none; }
.catalog-stamp {
  display: flex;
  flex-direction: column;
  padding: 8px 14px 7px;
  border: 2px solid currentColor;
  border-radius: 6px;
  outline: 1px solid currentColor;
  outline-offset: 2.5px;
  color: var(--navy);
  rotate: var(--r);
  transition: rotate .35s cubic-bezier(.3, 1.4, .5, 1);
}
.catalog-stamp:nth-child(2) { color: var(--copper-deep); }
.catalog-stamp:nth-child(3) { color: #A23529; }
.catalog-stamp:nth-child(4) { color: var(--green-text); }
.catalog-stamp:nth-child(5) { color: var(--ink-2); }
.catalog-stamp:hover { rotate: 0deg; }
.catalog-stamp strong { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-stamp span { font-size: .86rem; font-style: italic; opacity: .8; }
.catalogs-note { margin: 0; font-size: .98rem; color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  .catalog-stamp { color: #9DB4D6; }
  .catalog-stamp:nth-child(3) { color: #E58A7D; }
}

/* ---------- Appareils ---------- */
.device { position: relative; margin: 0; }

.iphone {
  width: min(292px, 74vw);
  padding: 3.3%;
  border-radius: 15.6% / 7.3%;
  background: linear-gradient(150deg, #4A4540, #1A1816 40%, #0E0D0C);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 0 0 1px #2A2724, var(--shadow-lg);
}
.iphone::before, .iphone::after {
  content: "";
  position: absolute;
  width: 1.3%;
  border-radius: 2px;
  background: #2A2724;
}
.iphone::before { left: -1.2%; top: 21%; height: 12%; }
.iphone::after { right: -1.2%; top: 27%; height: 9%; }
.iphone-screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  border-radius: 13.2% / 6.1%;
  background: var(--paper-2);
  isolation: isolate;
}
.iphone-screen img, .ipad-screen img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.iphone-island {
  position: absolute;
  top: 1.55%; left: 50%;
  width: 29%; height: 3.05%;
  translate: -50% 0;
  border-radius: 999px;
  background: #0A0A0A;
  z-index: 2;
}

.ipad {
  width: 100%;
  padding: 2.4%;
  border-radius: 4.6% / 6.1%;
  background: linear-gradient(150deg, #4A4540, #1A1816 40%, #0E0D0C);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 0 0 1px #2A2724, var(--shadow-lg);
}
.ipad-screen {
  position: relative;
  aspect-ratio: 2752 / 2064;
  overflow: hidden;
  border-radius: 2.3% / 3.1%;
  background: var(--paper-2);
}

.mac { width: 100%; }
.mac-display {
  padding: 2% 2% 2.4%;
  border-radius: 2.4% / 3.8%;
  background: linear-gradient(180deg, #34302C, #171513);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), var(--shadow-lg);
}
.mac-screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: .5%;
  background: radial-gradient(120% 130% at 18% 0%, #F2DDBF 0%, #D79B5F 42%, #8A5A36 78%, #4E3424 100%);
}
.mac-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mac-stand {
  display: block;
  width: 17%;
  aspect-ratio: 5 / 2;
  margin: 0 auto;
  background: linear-gradient(180deg, #BDB4A8, #D9D2C8 60%, #A79E92);
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
}
.mac-stand::after {
  content: "";
  display: block;
  height: 100%;
}

.stack img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.stack img.is-active, html:not(.js) .stack img:first-child { opacity: 1; }

.device-pair { display: grid; place-items: center; padding-block: 2% 6%; }
.device-pair > * { grid-area: 1 / 1; }
.device-pair .pair-front { z-index: 1; width: min(272px, 60vw); translate: -20% 0; rotate: -2.5deg; }
.device-pair .pair-back { width: min(248px, 54vw); translate: 26% 9%; rotate: 4deg; }

/* ---------- Compteur et plan ---------- */
.counter { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.counter-value {
  margin: 0;
  font-size: clamp(3.4rem, 2rem + 6vw, 6.2rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums lining-nums;
}
.counter-label { margin: 8px 0 6px; font-size: 1.3rem; font-style: italic; color: var(--copper-text); }
.counter-detail { margin: 0; font-family: var(--sans); font-size: .88rem; letter-spacing: .01em; color: var(--muted); }

.plan-block { margin-top: clamp(64px, 9vw, 120px); }
.plan-block-title { margin: 0 0 8px; font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 650; text-align: center; }
.plan-block-text { max-width: 58ch; margin: 0 auto 30px; color: var(--ink-2); text-align: center; }

.plan-sheet {
  position: relative;
  padding: clamp(16px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background-color: var(--card);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--shadow-lg);
}
.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}
.plan-place { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.45rem; font-weight: 650; }
.plan-place .icon { width: 22px; height: 22px; color: var(--copper); }
.plan-stats { margin: 0; font-family: var(--sans); font-size: .86rem; color: var(--muted); }
.plan-rooms { display: flex; flex-wrap: wrap; gap: 18px; }
.plan-room {
  flex: 1 1 auto;
  padding: 12px 14px 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  transition: border-color .25s, background-color .25s;
}
.plan-room:hover, .plan-room:focus-within { border-color: var(--copper); background: rgba(200, 128, 62, .045); }
.plan-room-name {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plan-room-name span { font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-cases { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.plan-case {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 7px 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  transition: background-color .2s, opacity .3s, box-shadow .2s;
}
.plan-case svg { display: block; height: auto; }
.plan-case:hover { background: rgba(200, 128, 62, .09); }
.plan-case[aria-pressed="true"] { background: rgba(200, 128, 62, .15); box-shadow: 0 0 0 2px var(--copper); }
.plan.has-selection .plan-case:not([aria-pressed="true"]) { opacity: .42; }
.plan-case-name { font-family: var(--sans); font-size: .74rem; color: var(--ink-2); }
.pc-frame { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .7; }
.pc-plank { fill: none; stroke: var(--wood); stroke-width: 1.7; }
.pc-book { fill: none; stroke-width: 1.75; }
.pc-cream { stroke: #D8CBB4; }
.pc-navy { stroke: #28446B; }
.pc-red { stroke: #C63D2F; }
.pc-black { stroke: #2A2623; }
.pc-yellow { stroke: #E6C443; }
.pc-copper { stroke: #C8803E; }
.pc-green { stroke: #556B3A; }
.pc-wine { stroke: #7E2A2A; }
.pc-slate { stroke: #5B6770; }
@media (prefers-color-scheme: dark) {
  .pc-black { stroke: #8F877D; }
  .pc-navy { stroke: #5679AA; }
  .pc-wine { stroke: #A84A44; }
}
.plan-cartouche { display: flex; justify-content: flex-end; margin: 18px 0 0; font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; color: var(--ink-2); }
.plan-cartouche span { padding: 4px 10px; border: 1px solid var(--line-strong); background: var(--card); }
.plan-cartouche span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.plan-cartouche span + span { border-left: 0; font-style: italic; font-family: var(--serif); font-size: .82rem; }
.plan-caption {
  position: relative;
  bottom: 14px;
  z-index: 2;
  display: block;
  width: fit-content;
  max-width: calc(100% - 16px);
  min-height: 1.8em;
  margin: 22px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink-2);
}
.plan.has-selection .plan-caption { position: sticky; }
.plan-caption .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -.22em; color: var(--copper); }
.plan.has-selection .plan-caption-path { font-weight: 650; color: var(--ink); }
.plan-caption-info { margin-left: 10px; color: var(--muted); white-space: nowrap; }

/* ---------- Vues ---------- */
.views {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tablist [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.tablist [role="tab"]:hover { border-color: var(--copper); color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tablist .icon { width: 18px; height: 18px; }
.tabpanel { outline-offset: 6px; }
.tabpanel h3 { margin: 0 0 10px; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 650; }
.tabpanel p { max-width: 46ch; margin: 0; font-size: 1.12rem; color: var(--ink-2); }
html:not(.js) .tabpanel + .tabpanel { margin-top: 24px; }
.js .tabpanel:not([hidden]) { animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.views-also { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }

.bigscreens {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(80px, 11vw, 150px);
}
.bigscreens-copy h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 650; line-height: 1.12; }
.bigscreens-copy > p { margin: 0; color: var(--ink-2); }
.segmented { display: inline-flex; gap: 2px; margin-top: 26px; padding: 4px; border-radius: 999px; background: var(--paper-3); }
.segmented button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(43, 33, 24, .18); }
html:not(.js) .segmented { display: none; }
.desk { position: relative; padding-bottom: 14%; }
.desk-mac { width: 90%; margin-left: auto; }
.desk-ipad { position: absolute; left: 0; bottom: 0; width: 52%; z-index: 1; }

/* ---------- Recherche ---------- */
.search-demo {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 15px;
  background: var(--paper-2);
  font-size: 1.16rem;
}
.search-field .icon { width: 20px; height: 20px; color: var(--muted); }
.search-text { overflow: hidden; white-space: nowrap; }
.caret { flex: none; width: 2px; height: 1.2em; margin-left: -6px; background: var(--copper); animation: blink 1.05s steps(1) infinite; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 31px; margin: 14px 0 0; padding: 0; list-style: none; }
.search-chips li {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(200, 128, 62, .13);
  color: var(--copper-deep);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 650;
  animation: pop .4s cubic-bezier(.3, 1.5, .5, 1) both;
}
.search-chips li span { font-weight: 500; opacity: .85; }
.search-count { margin: 16px 0 4px; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-results { display: grid; margin: 0; padding: 0; list-style: none; }
.search-results li {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .45s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--n, 0) * 80ms);
}
.search-results i { width: 11px; height: 42px; border-radius: 2px; background: var(--c); }
.search-results i.c-cream { box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .16); }
.search-results strong { font-weight: 620; }
.search-results em { color: var(--muted); }
.search-results small { display: block; margin-top: 2px; font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.search-examples { margin-top: 18px; }
.search-examples p { margin: 0 0 8px; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.search-examples ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.search-examples button {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: .92rem;
  font-style: italic;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.search-examples button:hover { border-color: var(--copper); }
.search-examples button[aria-pressed="true"] { border-color: var(--copper); background: rgba(200, 128, 62, .09); color: var(--copper-deep); }

.collections { margin-top: clamp(64px, 9vw, 110px); text-align: center; }
.collection-spines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  max-width: 880px;
  min-height: 236px;
  margin: 22px auto 0;
  padding: 0 14px;
  list-style: none;
  border-bottom: 12px solid var(--wood);
  border-radius: 0 0 4px 4px;
}
.collection-spines li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 7.4vw, 76px);
  height: 196px;
  padding: 14px 0;
  border-radius: 5px 5px 0 0;
  background: var(--c);
  color: var(--on);
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, .13), inset 3px 0 0 rgba(255, 255, 255, .08);
  font-size: clamp(.78rem, .7rem + .3vw, 1rem);
  font-weight: 600;
  letter-spacing: .02em;
  writing-mode: vertical-rl;
  white-space: nowrap;
  transition: translate .3s cubic-bezier(.3, 1.4, .5, 1);
}
.collection-spines li.c-cream { box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .14), inset -6px 0 0 rgba(0, 0, 0, .06); }
.collection-spines li:nth-child(2) { height: 220px; }
.collection-spines li:nth-child(3) { height: 172px; }
.collection-spines li:nth-child(4) { height: 204px; }
.collection-spines li:nth-child(5) { height: 186px; }
.collection-spines li:nth-child(6) { height: 214px; }
.collection-spines li:nth-child(7) { height: 178px; }
.collection-spines li:nth-child(8) { height: 224px; }
.collection-spines li:nth-child(9) { height: 192px; }
.collection-spines li:hover { translate: 0 -10px; }
:lang(fr) .collection-spines span { rotate: 180deg; }

.themes { max-width: 820px; margin: 30px auto 0; }
.themes-text { display: inline-flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ink-2); text-align: left; }
.themes-text .icon { width: 22px; height: 22px; margin-top: .2em; color: var(--copper); }
.theme-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.theme-chips li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-family: var(--sans); font-size: .85rem; color: var(--ink-2); }

/* ---------- Statistiques ---------- */
.colorbar {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.colorbar-bar {
  display: flex;
  height: 50px;
  margin: 12px 0 16px;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.colorbar-bar li {
  flex: 0 0 calc(var(--p) * 1%);
  background-color: var(--c);
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .09) 7px 8px, transparent 8px 13px, rgba(255, 255, 255, .08) 13px 14px);
  transition: flex-basis 1.2s cubic-bezier(.2, .8, .2, 1);
}
.js .colorbar:not(.is-visible) .colorbar-bar li { flex-basis: 0; }
.colorbar-bar li:nth-child(2) { transition-delay: .08s; }
.colorbar-bar li:nth-child(3) { transition-delay: .16s; }
.colorbar-bar li:nth-child(4) { transition-delay: .24s; }
.colorbar-bar li:nth-child(5) { transition-delay: .32s; }
.colorbar-bar li:nth-child(6) { transition-delay: .4s; }
.colorbar-bar li:nth-child(7) { transition-delay: .48s; }
.colorbar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: .82rem; color: var(--ink-2); }
.colorbar-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.colorbar-legend span { color: var(--muted); }
.colorbar-note { margin: 14px 0 0; font-size: .92rem; font-style: italic; color: var(--muted); }
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.stat-tiles li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.stat-tiles strong { display: block; font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.stat-tiles span { font-family: var(--sans); font-size: .82rem; color: var(--muted); }

.shelf-carousel { margin-top: clamp(72px, 10vw, 128px); }
.shelf-carousel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shelf-carousel-head .kicker { margin: 0; }
.carousel-buttons { display: flex; gap: 8px; }
html:not(.js) .carousel-buttons { display: none; }
.shelf-cards {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 10px 4px 20px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shelf-cards::-webkit-scrollbar { display: none; }
.book-card {
  position: relative;
  flex: 0 0 clamp(236px, 25vw, 278px);
  min-height: 292px;
  padding: 24px 22px 26px 36px;
  border: 1px solid var(--line);
  border-radius: 5px 18px 18px 5px;
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: translate .35s cubic-bezier(.3, 1.3, .5, 1), box-shadow .35s;
}
.book-card::before {
  content: "";
  position: absolute;
  top: -1px; bottom: -1px; left: -1px;
  width: 15px;
  border-radius: 5px 0 0 5px;
  background: var(--c);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, .16), inset 2px 0 0 rgba(255, 255, 255, .12);
}
.book-card.c-cream::before { box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .14), inset -3px 0 0 rgba(0, 0, 0, .08); }
.book-card:hover { translate: 0 -10px; box-shadow: var(--shadow-lg); }
.book-card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--ink);
}
.book-card-icon .icon { width: 23px; height: 23px; }
.book-card h4 { margin: 20px 0 8px; font-size: 1.36rem; font-weight: 650; line-height: 1.2; }
.book-card p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.shelf-carousel-plank {
  height: 14px;
  margin-top: -8px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--wood-3), var(--wood) 45%, var(--wood-2));
  box-shadow: 0 14px 22px -12px rgba(43, 33, 24, .55);
}

/* ---------- Professionnels ---------- */
.chapter-ink {
  --ink: #F6ECDD;
  --ink-2: #DCCDB9;
  --muted: #B09F8B;
  --card: rgba(255, 255, 255, .045);
  --line: rgba(246, 236, 221, .12);
  --line-strong: rgba(246, 236, 221, .22);
  --copper-text: #E49A55;
  --copper-deep: #EDB27A;
  --pro-bg: #211912;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(228, 154, 85, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(40, 68, 107, .22), transparent 60%),
    var(--pro-bg);
}
@media (prefers-color-scheme: dark) { .chapter-ink { --pro-bg: #15110D; } }
.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}
.pro-card { padding: 26px 26px 30px; background: var(--pro-bg); transition: background-color .3s; }
.pro-card:hover { background: color-mix(in srgb, var(--pro-bg) 88%, #E49A55); }
.pro-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(228, 154, 85, .13); color: #E9A665; }
.pro-icon .icon { width: 24px; height: 24px; }
.pro-card h3 { margin: 16px 0 6px; font-size: 1.3rem; font-weight: 620; }
.pro-card p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.pro-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(52px, 7vw, 92px);
}
.pro-points { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.pro-points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.pro-points .feature-icon { color: #E9A665; background: rgba(255, 255, 255, .05); box-shadow: none; }
.pro-points h3 { margin: 3px 0 4px; font-size: 1.22rem; font-weight: 620; }
.pro-points p { margin: 0; color: var(--ink-2); }
.profiles-card {
  --ink: #2B2118; --ink-2: #4A3C30; --muted: #7A6A5C;
  --line: rgba(43, 33, 24, .12); --line-strong: rgba(43, 33, 24, .24);
  --copper-deep: #965620;
  padding: 22px;
  border-radius: 24px;
  background: #FBF7F0;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  rotate: 1deg;
}
.profiles { display: grid; gap: 4px; margin: 8px 0; padding: 0; list-style: none; }
.profiles li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; }
.profiles li.is-current { background: rgba(200, 128, 62, .13); }
.profile-dot { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.is-current .profile-dot { border-color: #C8803E; background: #C8803E; box-shadow: inset 0 0 0 3px #FBF7F0; }
.profile-name strong { display: block; font-weight: 640; line-height: 1.2; }
.profile-name small { font-family: var(--sans); font-size: .77rem; color: var(--muted); }
.profile-count { font-family: var(--sans); font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.profiles-note { margin: 6px 0 16px; font-size: .9rem; font-style: italic; color: var(--muted); }
.exports { display: flex; flex-wrap: wrap; gap: 8px; }
.exports span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 9px; font-family: var(--sans); font-size: .8rem; font-weight: 650; }
.exports .icon { width: 16px; height: 16px; color: #C8803E; }

/* ---------- Vie privée ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.privacy-card {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.privacy-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D2584A, #9E2C22 70%);
  color: #FBEDE6;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .25), 0 6px 14px -4px rgba(158, 44, 34, .5);
}
.privacy-icon .icon { width: 25px; height: 25px; }
.privacy-card h3 { margin: 18px 0 8px; font-size: 1.26rem; font-weight: 640; }
.privacy-card p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.privacy-site {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 780px;
  margin: 40px auto 0;
  padding: 18px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  font-size: 1rem;
  color: var(--ink-2);
}
.privacy-site .icon { width: 24px; height: 24px; margin-top: .1em; color: var(--green-text); }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; }
.price-card {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.price-card.is-main {
  --ink-2: color-mix(in srgb, var(--paper) 82%, transparent);
  --green-text: var(--copper);
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
  box-shadow: var(--shadow-lg);
}
.price-card.is-main h3 { color: var(--paper); }
.price-kicker { margin: 0; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-deep); }
.is-main .price-kicker { color: var(--copper); }
.price-card h3 { margin: 10px 0 4px; font-size: 1.7rem; font-weight: 650; }
.price { margin: 0 0 18px; font-size: 1.15rem; font-style: italic; color: var(--copper-text); }
.is-main .price { font-size: 2.8rem; font-style: normal; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; color: var(--paper); }
.price-card .checklist li { color: var(--ink-2); font-size: 1rem; }
.pricing-note { max-width: 760px; margin: 30px auto 0; font-size: .95rem; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  font-size: 1.18rem;
  font-weight: 620;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper-deep); }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate .3s, translate .3s;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq-answer { max-width: 68ch; padding: 0 4px 22px; color: var(--ink-2); }
.faq-answer p { margin: 0; }
.faq details[open] .faq-answer { animation: fadeUp .4s ease both; }
.faq-more { margin-top: 30px; color: var(--ink-2); text-align: center; }

/* ---------- Épilogue ---------- */
.epilogue {
  position: relative;
  overflow: hidden;
  padding-block: clamp(84px, 12vw, 164px);
  text-align: center;
  background:
    radial-gradient(800px 420px at 50% 110%, rgba(200, 128, 62, .2), transparent 70%),
    var(--paper-2);
}
.epilogue-inner { display: flex; flex-direction: column; align-items: center; }
.epilogue h2 { margin: 6px 0 2px; line-height: 1; }
.wordmark-xl { font-size: clamp(3.3rem, 1.8rem + 6.4vw, 7rem); letter-spacing: -.028em; }
.epilogue-slogan { margin: 10px 0 26px; font-size: clamp(1.2rem, 1rem + .9vw, 1.75rem); font-style: italic; color: var(--muted); }
.epilogue-text { max-width: 36ch; margin: 0 0 34px; font-size: 1.2rem; color: var(--ink-2); }

/* ---------- Pied de page ---------- */
.site-footer { padding-bottom: 30px; background: var(--paper); }
.footer-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 64px;
  margin-bottom: 52px;
  padding: 0 16px;
  overflow: hidden;
  border-bottom: 8px solid var(--wood);
}
.footer-shelf i {
  flex: none;
  width: var(--w);
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: var(--c);
  transition: translate .3s cubic-bezier(.3, 1.4, .5, 1);
}
.footer-shelf i.c-cream { box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .14); }
.footer-shelf i:hover { translate: 0 -6px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.3fr; gap: 44px; }
.footer-slogan { margin: 12px 0 4px; font-size: 1.12rem; font-style: italic; color: var(--muted); }
.footer-tagline { margin: 0 0 20px; color: var(--ink-2); }
.footer-nav ul { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.footer-nav a:hover { color: var(--copper-deep); border-color: var(--copper); }
.colophon-title { margin: 6px 0 10px; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-deep); }
.colophon p { margin: 0 0 10px; font-size: .96rem; font-style: italic; color: var(--ink-2); }
.colophon .colophon-sources { font-family: var(--sans); font-size: .78rem; font-style: normal; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: var(--ink-2); font-weight: 600; }
.to-top { color: var(--ink-2); text-decoration: none; white-space: nowrap; }

/* ---------- Pages documents ---------- */
.doc-hero {
  padding-block: clamp(52px, 8vw, 108px) clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(200, 128, 62, .12), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
.doc-hero h1 { margin: 10px 0 18px; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); font-weight: 650; line-height: 1.04; letter-spacing: -.025em; }
.doc-lede { max-width: 640px; margin: 0 auto; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); }
.doc-updated { display: inline-block; margin: 22px 0 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-family: var(--sans); font-size: .82rem; color: var(--muted); }

.doc-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  padding-block: clamp(40px, 6vw, 84px);
}
.doc-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.doc-toc summary {
  padding: 4px 0 12px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-deep);
  list-style: none;
}
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-strong); }
.doc-toc a {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 6px 10px 6px 14px;
  border-left: 2px solid transparent;
  font-size: .94rem;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-current { border-left-color: var(--copper); color: var(--copper-deep); font-weight: 620; }
.doc-toc-no { min-width: 1.5em; padding-top: .18em; font-family: var(--sans); font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-aside-cta { margin-top: 26px; }

.prose { max-width: 730px; font-size: 1.08rem; }
.doc-section { display: flow-root; margin-bottom: 52px; padding-bottom: 52px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section:last-child { margin-bottom: 0; border-bottom: 0; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem); font-weight: 650; line-height: 1.15; letter-spacing: -.012em; }
.doc-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.1em; height: 2.1em;
  translate: 0 -.18em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  color: var(--copper-deep);
}
.prose h3 { margin: 34px 0 10px; font-size: 1.3rem; font-weight: 630; }
.prose p, .prose ul, .prose ol, .prose dl, .prose table { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--copper); }
.ui {
  padding: .08em .45em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: .84em;
  font-weight: 600;
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.steps-list { padding: 0; list-style: none; counter-reset: step; }
.steps-list > li { position: relative; padding-left: 44px; margin-bottom: 14px; counter-increment: step; }
.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .1em;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
}
.callout { margin: 26px 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; background: var(--card); }
.callout.tip { border-left-color: var(--copper); }
.callout p { margin: 0; }
.callout .callout-title { margin: 0 0 6px; font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .callout { border-left-color: #6E8FBF; } }
.path-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.path-demo span { position: relative; padding: 6px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-family: var(--sans); font-size: .9rem; font-weight: 650; box-shadow: var(--shadow-sm); }
.path-demo span + span::before { content: "›"; position: absolute; left: -16px; color: var(--copper); font-weight: 700; }
.banner-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 420px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: .9rem;
}
.banner-demo span:first-child { display: flex; align-items: center; gap: 8px; }
.banner-demo .icon { width: 18px; height: 18px; color: var(--muted); }
.banner-demo-action { font-weight: 700; color: var(--copper-deep); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none; }
.examples li { margin: 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-style: italic; }
.defs dt { margin-top: 18px; font-size: 1.1rem; font-weight: 650; }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: 4px 0 0; color: var(--ink-2); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.doc-table th, .doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table th { border-bottom: 1.5px solid var(--line-strong); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc-table td:first-child { font-weight: 620; }
.doc-figure { float: right; width: 196px; margin: 4px 0 22px 30px; }
.doc-figure .iphone { width: 100%; }
.doc-figure-wide { float: none; width: 100%; max-width: 560px; margin: 8px 0 24px; }
.doc-figure figcaption { margin-top: 12px; font-family: var(--sans); font-size: .8rem; color: var(--muted); text-align: center; }
.summary-list { display: grid; gap: 12px; padding: 0 !important; list-style: none; }
.summary-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.summary-list .icon { width: 24px; height: 24px; color: var(--copper); }
code { padding: .1em .35em; border-radius: 4px; background: var(--paper-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; }
mark.placeholder { padding: .1em .45em; border-radius: 5px; background: #FFE27A; color: #2B2118; font-family: var(--sans); font-size: .88em; font-weight: 700; }
.doc-contact { margin-top: 28px; font-size: 1.05rem; }
.faq-doc summary { font-size: 1.06rem; }

/* ---------- 404 ---------- */
.not-found {
  padding-block: clamp(56px, 10vw, 132px);
  text-align: center;
  background: radial-gradient(700px 360px at 50% 0%, rgba(200, 128, 62, .12), transparent 70%), linear-gradient(180deg, var(--paper), var(--paper-2));
}
.nf-shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; max-width: 440px; height: 200px; margin: 0 auto 40px; padding: 0 22px; }
.nf-spine { width: 34px; height: calc(var(--h) * 100%); border-radius: 3px 3px 0 0; background: var(--c); box-shadow: inset -5px 0 0 rgba(0, 0, 0, .13); animation: rise .8s cubic-bezier(.2, .85, .25, 1.06) both; animation-delay: calc(var(--i) * 60ms); }
.nf-spine.c-cream { box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .14); }
.nf-gap { display: grid; place-items: center; width: 40px; height: calc(var(--h) * 100%); border: 2px dashed var(--copper); border-bottom: 0; border-radius: 4px 4px 0 0; color: var(--copper); font-size: 1.7rem; font-style: italic; animation: breathe 2.6s ease-in-out infinite; }
.nf-plank { position: absolute; left: 0; right: 0; bottom: -11px; height: 11px; border-radius: 2px; background: linear-gradient(180deg, var(--wood-3), var(--wood-2)); }
.not-found h1 { margin: 12px 0 16px; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 650; line-height: 1.06; }
.nf-text { max-width: 46ch; margin: 0 auto 26px; font-size: 1.15rem; color: var(--ink-2); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nf-links a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nf-links li:first-child a { border-color: transparent; background: var(--ink); color: var(--paper); }
.nf-other { margin-top: 30px; font-family: var(--sans); font-size: .9rem; }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .85s cubic-bezier(.2, .7, .2, 1), translate .85s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.js .step:not(.is-visible) *, .js .step:not(.is-visible)::after { animation-play-state: paused; }

/* ---------- Animations ---------- */
@keyframes rise { from { translate: 0 112%; opacity: 0; } 30% { opacity: 1; } to { translate: 0 0; opacity: 1; } }
@keyframes sweep { from { transform: translateX(-3%); } to { transform: translateX(81%); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.2cqi; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes ocr { 0%, 12% { opacity: 0; scale: .92; } 24%, 72% { opacity: 1; scale: 1; } 88%, 100% { opacity: 0; scale: 1; } }
@keyframes scanline { from { top: 18%; } to { top: 74%; } }
@keyframes shutter { 0%, 88% { opacity: 0; } 90% { opacity: .75; } 100% { opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Mises en page adaptatives ---------- */
@media (max-width: 1080px) {
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-art { margin-top: 8px; }
  .views, .bigscreens, .pro-bottom { grid-template-columns: 1fr; }
  .views-device { order: -1; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; max-height: none; overflow: visible; }
  .doc-toc { padding: 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
  .doc-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; cursor: pointer; }
  .doc-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .25s; }
  .doc-toc[open] summary::after { rotate: 225deg; translate: 0 2px; }
  .doc-toc[open] ol { margin: 8px 0 6px; }
  .doc-aside-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 961px) {
  .doc-toc summary { pointer-events: none; }
}
@media (max-width: 860px) {
  .split, .split-device, .split-reverse { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .split-reverse .device-col { order: 2; }
  .split-device .device-col { order: -1; }
}
@media (max-width: 640px) {
  .scene { aspect-ratio: 1 / 1.02; }
  .iphone { width: min(256px, 66vw); }
  .plan-caption { font-size: .86rem; padding: 9px 14px; }
  .sommaire ol { columns: 1; }
  .ribbon li + li::before { margin: 0 10px; }
  .pro-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-figure { float: none; width: 180px; margin: 8px auto 24px; }
  .doc-figure-wide { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .desk { padding-bottom: 18%; }
  .desk-ipad { width: 58%; }
  .collection-spines { gap: 4px; padding: 0 6px; }
  .collection-spines li { height: 168px; }
  .collection-spines li:nth-child(2n) { height: 184px; }
  .collection-spines li:nth-child(3n) { height: 150px; }
  .doc-table { font-size: .86rem; }
  .doc-table th, .doc-table td { padding: 8px 6px; }
  .is-main .price { font-size: 2.3rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .lens-track { transform: translateX(62%); animation: none !important; }
  .lens { animation: none !important; }
  .reading i b { opacity: 1; animation: none !important; }
  .step-ill-2::after, .step-ill-1::after { display: none; }
  .caret { animation: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .hero-art, .footer-shelf, .doc-aside, .appstore, .carousel-buttons, .segmented, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
  .doc-section { break-inside: avoid-page; }
  a { color: inherit; }
}
