/* =========================================================================
   Les Éditions de l’Isle
   Une île dans le flot : la mer de mots, l’île, la lecture.
   ========================================================================= */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/commissioner-latin-flar-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/commissioner-latin-ext-flar-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* the deep sea, the lagoon, the foam, the sand, the sun */
  --abysse: #0b2a3a;
  --abysse-2: #0f3549;
  --abysse-3: #18465c;
  --lagon: #3bc9ba;
  --lagon-2: #8be3d8;
  --lagon-ink: #0b7a75;
  --ecume: #eef3ef;
  --ecume-2: #e2ebe6;
  --sable: #e8dcc6;
  --soleil: #e9b949;
  --brume: #a9c4c6;
  --galet: #4e6468;
  --ink: #0b2a3a;
  --danger: #a3271d;

  --font-display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-text: "Commissioner", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ecume);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variation-settings: "FLAR" 40;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }
::selection { background: var(--lagon); color: var(--abysse); }

:focus-visible { outline: 2px solid var(--lagon); outline-offset: 3px; border-radius: 3px; }
.manifesto :focus-visible, .howto :focus-visible, .book-body :focus-visible, .contact :focus-visible,
.doc :focus-visible, .house :focus-visible, .drawer :focus-visible { outline-color: var(--lagon-ink); }

.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 {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--ecume); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 500 1rem/1.2 var(--font-text); letter-spacing: .01em;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: .9375rem; }
.btn--lagon { background: var(--lagon); color: var(--abysse); }
.btn--lagon:hover { background: var(--lagon-2); }
.btn--ghost { border-color: rgba(238, 243, 239, .38); color: var(--ecume); background: transparent; }
.btn--ghost:hover { border-color: var(--ecume); background: rgba(238, 243, 239, .06); }
.btn--ink { background: var(--abysse); color: var(--ecume); }
.btn--ink:hover { background: var(--abysse-3); }
.btn--line { border-color: rgba(11, 42, 58, .3); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.link-arrow {
  display: inline-block; font-weight: 500; text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow--light { color: var(--ecume); }

.badge {
  display: inline-block; padding: 3px 11px 4px; border-radius: 999px;
  background: var(--soleil); color: var(--abysse);
  font: 600 .78rem/1.3 var(--font-text); letter-spacing: .02em; vertical-align: middle;
}

/* ---------- Section typography ---------- */
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -.01em;
}
.section-title--sm { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 28px; }
.section-lede { margin: 14px 0 0; font-size: 1.125rem; color: var(--galet); max-width: 46ch; }
.deep .section-lede, .band .section-lede { color: var(--brume); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  color: var(--ecume);
  transition: background-color .45s, box-shadow .45s, padding .35s var(--ease-out);
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  background: rgba(11, 42, 58, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(238, 243, 239, .08);
  padding-block: 10px;
}
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.no-js .site-header { position: absolute; }
.brand__crest { width: 46px; transition: width .35s var(--ease-out); }
.is-scrolled .brand__crest { width: 38px; }
.brand__name {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.55rem; line-height: 1; letter-spacing: .005em; white-space: nowrap;
}
.menu { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: 6px 0;
  text-decoration: none; font-size: .975rem; letter-spacing: .01em;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.langs a {
  display: inline-block; padding: 6px 9px; border-radius: 999px; text-decoration: none;
  font-size: .8rem; letter-spacing: .06em; opacity: .7; transition: opacity .2s, background-color .2s;
}
.langs a:hover { opacity: 1; }
.langs a[aria-current="true"] { opacity: 1; background: rgba(238, 243, 239, .14); }

.menu-btn {
  display: none; align-items: center; gap: 10px; margin-left: auto;
  background: none; border: 1px solid rgba(238, 243, 239, .35); border-radius: 999px;
  padding: 8px 14px 8px 16px; cursor: pointer; color: var(--ecume); font-size: .9rem;
  position: relative; z-index: 2;
}
.menu-btn__icon { position: relative; width: 16px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-btn__icon::before { top: 1px; }
.menu-btn__icon::after { top: 7.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 4.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .site-header { padding-block: 12px; gap: 16px; }
  .brand__crest { width: 38px; }
  .brand__name { font-size: 1.3rem; }
  .menu-btn { display: inline-flex; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 48px;
    padding: 96px var(--gutter) 48px;
    background: var(--abysse);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
  }
  .menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-in-out); }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a {
    font-family: var(--font-display); font-style: italic; font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.15;
    opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out);
  }
  .menu.is-open .nav a { opacity: 1; transform: none; }
  .menu.is-open .nav li:nth-child(2) a { transition-delay: .07s; }
  .menu.is-open .nav li:nth-child(3) a { transition-delay: .14s; }
  .nav a::after { bottom: 6px; }
  .langs a { font-size: .95rem; padding: 8px 14px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Shorelines (animated wave edges between dark and light) ---------- */
.shore {
  position: absolute; left: 0; right: 0; height: 30px; pointer-events: none; z-index: 3;
  overflow: hidden;
}
.shore span {
  position: absolute; inset: 0;
  background-repeat: repeat-x; background-size: 640px 30px;
  animation: drift 26s linear infinite;
}
.shore span + span { opacity: .45; animation-duration: 17s; animation-direction: reverse; background-size: 420px 30px; }
.shore--ecume { bottom: -1px; }
.shore--ecume span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 30' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C 80 6 160 6 240 16 S 400 28 480 17 S 600 6 640 18 V30 H0Z' fill='%23eef3ef'/%3E%3C/svg%3E");
  background-position: 0 100%;
}
.shore--abysse-top, .shore--abysse { top: -1px; }
.shore--abysse-top span, .shore--abysse span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 30' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C 80 24 160 24 240 14 S 400 2 480 13 S 600 24 640 12 V0 H0Z' fill='%23eef3ef'/%3E%3C/svg%3E");
  background-position: 0 0;
}
@keyframes drift { to { background-position-x: -640px; } }
.shore span + span { animation-name: drift2; }
@keyframes drift2 { to { background-position-x: 420px; } }

/* ---------- Sea canvas ---------- */
.sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  background: radial-gradient(120% 90% at 70% 45%, #10384c 0%, var(--abysse) 62%);
  color: var(--ecume);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  align-items: center; column-gap: 2vw;
  padding: calc(var(--header-h) + 40px) var(--gutter) 88px;
}
.hero__map {
  grid-column: 2; grid-row: 1; justify-self: center; align-self: center;
  width: min(100%, 860px); position: relative; z-index: 1;
}
.hero__copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; max-width: 37rem; }
.hero__coords {
  margin: 0 0 22px; font-size: .875rem; letter-spacing: .06em; color: var(--brume);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 14px;
}
.hero__coords::before {
  content: ""; width: 34px; height: 1px; background: var(--lagon);
  transform-origin: left; animation: line-in 1.2s .2s var(--ease-out) both;
}
.hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(3.6rem, 8.6vw, 8.75rem); line-height: .9; letter-spacing: -.015em;
  margin: 0 0 30px;
}
.hero__line { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.08em; }
.hero__line .wd { display: inline-block; white-space: nowrap; }
.hero__line .ch {
  display: inline-block; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%;
  animation: rise 1.05s var(--ease-out) forwards; animation-delay: calc(.5s + var(--i) * 34ms);
}
.hero__lede {
  font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.5; color: rgba(238, 243, 239, .86);
  max-width: 31ch; margin: 0;
  animation: fade-up 1s 1.25s var(--ease-out) both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: fade-up 1s 1.45s var(--ease-out) both; }

@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Island map */
.island { width: 100%; height: auto; overflow: visible; }
.island__iso path {
  fill: none; stroke: var(--lagon); stroke-opacity: .34; stroke-width: 1.3;
  stroke-dasharray: 1 6.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  animation: fade 1.6s 1.6s ease both;
}
.island__iso path + path { stroke-opacity: .2; animation-delay: 1.9s; }
.island__coast, .island__islets path {
  fill: var(--sable); fill-opacity: 0;
  stroke: var(--ecume); stroke-width: 1.6; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.6s .25s var(--ease-in-out) forwards, fill-in 1.2s 1.7s ease forwards;
}
.island__islets path { animation-delay: calc(1.2s + var(--k) * .12s), calc(1.9s + var(--k) * .1s); animation-duration: 1.2s, 1s; }
.island__contours path {
  fill: none; stroke: var(--abysse); stroke-opacity: .17; stroke-width: 1; vector-effect: non-scaling-stroke;
  animation: fade 1s calc(2.1s + var(--k) * .14s) ease both;
}
.island__labels { animation: fade 1.2s 2.6s ease both; }
.island__land {
  font: 500 21px var(--font-text); letter-spacing: .36em; text-transform: uppercase;
  fill: var(--abysse); fill-opacity: .62;
}
.island__town { fill: var(--abysse); }
.island__townname { font: 500 17px var(--font-text); fill: var(--abysse); fill-opacity: .75; letter-spacing: .04em; }
.island__sea { font: italic 400 34px var(--font-display); fill: var(--lagon); fill-opacity: .78; letter-spacing: .05em; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 72px;
  }
  .hero__map { grid-column: 1; grid-row: 1; width: min(112%, 640px); margin: 0 -6%; justify-self: center; }
  .hero__copy { grid-column: 1; grid-row: 2; margin-top: -2vh; }
  .island__sea { font-size: 40px; }
  .island__land { font-size: 26px; }
}
@media (max-width: 560px) {
  .hero__map { width: 106%; margin: 0 -3%; }
  .island__townname { display: none; }
  .hero__title { font-size: clamp(3.1rem, 15vw, 4.4rem); margin-bottom: 22px; }
  .hero__coords { margin-bottom: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* =========================================================================
   MANIFESTO
   ========================================================================= */
.manifesto { position: relative; padding: clamp(110px, 15vw, 210px) var(--gutter) clamp(110px, 13vw, 190px); }
.manifesto__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 80px);
}
.manifesto__label {
  grid-column: 1; align-self: start; font: 500 .95rem/1.4 var(--font-text); color: var(--galet); margin: .9em 0 0;
  display: flex; gap: 12px; align-items: center;
}
.manifesto__label::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.manifesto__text {
  grid-column: 2;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.85rem, 3.5vw, 3.25rem); line-height: 1.16; letter-spacing: -.008em;
  max-width: 24em;
}
.manifesto__text p { margin: 0 0 .7em; }
.manifesto__text p:last-child { margin-bottom: 0; }
.manifesto__more { grid-column: 2; margin: 48px 0 0; }
.manifesto--full .manifesto__text { font-size: clamp(1.7rem, 2.9vw, 2.6rem); line-height: 1.22; }
.manifesto__end { font-style: italic; }

.ink .w { transition: color .6s ease, opacity .6s ease; }
.js .ink[data-ink-ready] .w { color: rgba(11, 42, 58, .14); }
.js .ink[data-ink-ready] .w.on { color: var(--ink); }

@media (max-width: 760px) {
  .manifesto__inner { grid-template-columns: 1fr; }
  .manifesto__label, .manifesto__text, .manifesto__more { grid-column: 1; }
  .manifesto__label { margin: 0 0 28px; }
}

/* =========================================================================
   DEEP SECTIONS (spotlight + catalogue)
   ========================================================================= */
.deep { position: relative; background: var(--abysse); color: var(--ecume); isolation: isolate; }
.deep::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 18% 12%, rgba(59, 201, 186, .09), transparent 70%),
    radial-gradient(50% 35% at 85% 70%, rgba(59, 201, 186, .06), transparent 70%);
}

/* Spotlight / new release */
.spotlight { padding: clamp(110px, 12vw, 170px) var(--gutter) clamp(60px, 8vw, 110px); }
.spotlight__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center;
}
.spotlight__stage { position: relative; display: grid; place-items: center; min-height: clamp(420px, 44vw, 600px); }
.spotlight__float { display: block; position: relative; z-index: 1; animation: bob 7s ease-in-out infinite; }
.spotlight__float .book3d { --w: clamp(210px, 21vw, 290px); --ry: 18deg; }
.spotlight__float:hover .book3d { --ry: 30deg; }
.spotlight__kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: var(--brume); font-size: .95rem; }
.spotlight__title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.75rem); line-height: .98; letter-spacing: -.01em;
}
.spotlight__title a { text-decoration: none; }
.spotlight__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.spotlight__author { margin: 14px 0 0; color: var(--brume); font-size: 1.05rem; }
.spotlight__quote {
  margin: 34px 0 26px; padding: 0 0 0 24px; border-left: 1px solid rgba(59, 201, 186, .55);
  font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.32; font-weight: 500;
}
.spotlight__quote p { margin: 0; }
.spotlight__pitch { color: rgba(238, 243, 239, .8); max-width: 50ch; }
.spotlight__price { color: var(--brume); font-size: 1rem; }
.spotlight__price strong { color: var(--ecume); font-weight: 600; }
.spotlight__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-.8deg); }
  50% { transform: translateY(-12px) rotate(.8deg); }
}
.ripples { position: absolute; left: 50%; bottom: 8%; width: min(420px, 90%); height: 90px; transform: translateX(-50%); pointer-events: none; }
.ripples span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(59, 201, 186, .45);
  opacity: 0; transform: scale(.25);
  animation: ripple 7.5s linear infinite;
}
.ripples span:nth-child(2) { animation-delay: 2.5s; }
.ripples span:nth-child(3) { animation-delay: 5s; }
@keyframes ripple {
  0% { opacity: 0; transform: scale(.25); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.15); }
}

@media (max-width: 860px) {
  .spotlight__inner { grid-template-columns: 1fr; }
  .spotlight__stage { min-height: 400px; }
}

/* Catalogue */
.catalogue { position: relative; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(120px, 12vw, 170px); }
.catalogue--page { padding-top: 24px; }
.catalogue__head {
  max-width: var(--maxw); margin: 0 auto 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
}
.catalogue__note { max-width: var(--maxw); margin: 0 auto 8px; color: var(--brume); font-size: .95rem; }
.reassure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--brume); font-size: .95rem; }
.reassure li { display: flex; align-items: center; gap: 10px; }
.reassure li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lagon); flex: none;
  box-shadow: 0 0 0 4px rgba(59, 201, 186, .16);
}

.filters {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(238, 243, 239, .05); border: 1px solid rgba(238, 243, 239, .12);
}
.filters button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--ecume);
  opacity: .78; transition: color .35s, opacity .35s; white-space: nowrap;
}
.filters button:hover { opacity: 1; }
.filters button[aria-pressed="true"] { color: var(--abysse); opacity: 1; }
.filters__n { font-variant-numeric: tabular-nums; opacity: .6; margin-left: 3px; font-size: .85em; }
.filters__pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; z-index: 0;
  background: var(--lagon); border-radius: 999px;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.no-js .filters { display: none; }

.grid {
  max-width: var(--maxw); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(24px, 4vw, 56px);
}
.book-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book-card[hidden] { display: none; }
.book-card__stage {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: clamp(260px, 25vw, 340px); width: 100%; margin-bottom: 30px;
}
.book-card__stage::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -14px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 201, 186, .22), transparent);
  transition: transform .6s var(--ease-out), opacity .6s;
}
.book-card:hover .book-card__stage::after { transform: scaleX(1.12); opacity: .7; }
.book-card .book3d { --w: clamp(150px, 15vw, 205px); }
.book-card__meta { display: flex; flex-direction: column; align-items: center; max-width: 30ch; }
.book-card__genre { margin: 0 0 8px; color: var(--brume); font-size: .875rem; display: flex; align-items: center; gap: 10px; }
.book-card__title {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.1vw, 1.85rem); line-height: 1.08; margin: 0;
}
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { text-decoration: underline; text-underline-offset: .14em; }
.book-card__author { margin: 8px 0 14px; color: rgba(238, 243, 239, .78); font-size: .975rem; }
.book-card__lang { margin: -4px 0 14px; color: var(--brume); font-size: .85rem; }
.formats {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; font-size: .95rem;
}
.formats li { display: flex; gap: 8px; align-items: baseline; padding: 0 14px; }
.formats li + li { border-left: 1px solid rgba(238, 243, 239, .22); }
.formats__kind { color: var(--brume); }
.formats__price { font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 56px; }
  .book-card .book3d { --w: 128px; }
  .book-card__stage { height: 230px; margin-bottom: 24px; }
  .book-card__title { font-size: 1.3rem; }
  .formats { font-size: .88rem; flex-direction: column; gap: 2px; }
  .formats li { padding: 0; justify-content: center; }
  .formats li + li { border-left: 0; }
  .filters { width: 100%; }
  .filters button { flex: 1; padding: 10px 6px; font-size: .85rem; }
  .filters__n { display: none; }
}

/* =========================================================================
   3D BOOK
   ========================================================================= */
.book3d {
  --w: 200px; --ratio: 1.43; --dr: .09; --ry: 20deg; --rx: 2deg; --lift: 0px;
  --spine: #ffffff; --spine-ink: var(--ink);
  --d: calc(var(--w) * var(--dr));
  position: relative; width: var(--w); height: calc(var(--w) * var(--ratio));
  perspective: calc(var(--w) * 5.5);
  flex: none;
}
.book3d__body {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ease-out);
}
.book3d.is-live .book3d__body { transition: transform .18s linear; }
.book3d__front, .book3d__back, .book3d__spine, .book3d__pages, .book3d__top { position: absolute; display: block; }
.book3d__front {
  inset: 0; transform: translateZ(calc(var(--d) / 2));
  border-radius: 1px 3px 3px 1px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.book3d__front img { width: 100%; height: 100%; object-fit: cover; }
.book3d__front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(255, 255, 255, .22) 1.4%, rgba(0, 0, 0, .1) 3.2%, transparent 7%),
    linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, transparent 38%);
}
.book3d__back {
  inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
  background: var(--spine); color: var(--spine-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 3px 1px 1px 3px;
  font: italic 500 calc(var(--w) * .07)/1.1 var(--font-display); text-align: center;
}
.book3d__back img { width: 34%; }
.book3d__spine {
  top: 0; height: 100%; width: var(--d); left: calc(50% - var(--d) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: var(--spine); color: var(--spine-ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.book3d__spine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(255, 255, 255, .08) 40%, rgba(0, 0, 0, .14));
}
.book3d__spine span {
  writing-mode: vertical-rl; transform: rotate(180deg); /* lecture de bas en haut, à la française */
  font: 500 calc(var(--d) * .5)/1 var(--font-display); white-space: nowrap; letter-spacing: .04em;
  max-height: 86%; overflow: hidden; text-overflow: ellipsis;
}
.book3d__pages {
  top: 1.2%; height: 97.6%; width: calc(var(--d) - 2px); left: calc(50% - var(--d) / 2 + 1px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f6f2e8 0 1px, #ddd6c6 1px 2px);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .18);
}
.book3d__top {
  left: 1%; width: 97%; height: calc(var(--d) - 2px); top: calc(-1 * var(--d) / 2 + 1px);
  transform: rotateX(90deg) translateZ(0);
  background: repeating-linear-gradient(0deg, #f6f2e8 0 1px, #ddd6c6 1px 2px);
}
/* E-books: a thin, luminous slab */
.book3d--ebook { --dr: .03; --spine: #0d3346; --spine-ink: transparent; }
.book3d--ebook .book3d__pages, .book3d--ebook .book3d__top { background: #123d52; box-shadow: none; }
.book3d--ebook .book3d__front { border-radius: 4px; box-shadow: 0 0 0 1px rgba(139, 227, 216, .25), 0 0 46px rgba(59, 201, 186, .28); }
.book3d--ebook .book3d__spine span { display: none; }

[data-tilt], [data-drag] { will-change: auto; }
.book-card:hover .book3d:not(.is-live), .book-card:focus-within .book3d:not(.is-live) { --ry: 30deg; --lift: -10px; }

/* =========================================================================
   HOW TO ORDER
   ========================================================================= */
.howto { position: relative; padding: clamp(110px, 13vw, 180px) var(--gutter) clamp(100px, 11vw, 150px); }
.howto__inner { max-width: var(--maxw); margin: 0 auto; }
.howto__head { margin-bottom: clamp(48px, 6vw, 80px); }
.steps-wrap { position: relative; }
.route {
  position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 46px; overflow: visible;
}
.route__line { fill: none; stroke: var(--lagon-ink); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route__draw { fill: none; stroke: #fff; stroke-width: 12; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-in-out); }
.is-in .route__draw { stroke-dashoffset: 0; }
.steps {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px;
}
.steps li { position: relative; padding-top: 4px; }
.steps__buoy {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 26px;
  background: var(--ecume); border: 1px solid var(--ink);
  font: italic 500 1.45rem/1 var(--font-display);
  transform: scale(.6); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s;
  transition-delay: calc(var(--k) * .3s + .2s);
}
.steps__buoy::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(11, 122, 117, .35);
  opacity: 0; transition: opacity .6s calc(var(--k) * .3s + .5s);
}
.steps h3, .steps p { opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .8s var(--ease-out); transition-delay: calc(var(--k) * .3s + .35s); }
.is-in .steps__buoy, .is-in .steps h3, .is-in .steps p { opacity: 1; transform: none; }
.is-in .steps__buoy::after { opacity: 1; }
.no-js .steps__buoy, .no-js .steps h3, .no-js .steps p { opacity: 1; transform: none; }
.no-js .route__draw { stroke-dashoffset: 0; }
.steps h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 1.8vw, 1.7rem); line-height: 1.12; margin: 0 0 12px; max-width: 19ch; }
.steps p { color: var(--galet); font-size: 1rem; margin: 0; max-width: 32ch; }
.howto__signoff {
  margin: clamp(56px, 7vw, 88px) 0 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .route { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 36px; }
  .steps li::before {
    content: ""; position: absolute; left: 22.5px; top: 54px; bottom: 6px; width: 1px;
    background: repeating-linear-gradient(to bottom, var(--lagon-ink) 0 2px, transparent 2px 9px);
  }
  .steps li:last-child::before { display: none; }
  .steps__buoy { grid-row: 1 / span 2; margin: 0; }
  .steps h3 { grid-column: 2; }
  .steps p { grid-column: 2; }
}

/* =========================================================================
   PAGE BANDS (inner pages)
   ========================================================================= */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(90% 120% at 80% 0%, #10384c 0%, var(--abysse) 60%);
  color: var(--ecume);
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) var(--gutter) clamp(72px, 8vw, 110px);
}
.band__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.band__title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(3.1rem, 7.4vw, 6.5rem); line-height: .95; letter-spacing: -.012em;
  max-width: 14ch;
  animation: fade-up 1s .1s var(--ease-out) both;
}
.band__lede { margin: 22px 0 0; max-width: 42ch; color: rgba(238, 243, 239, .84); font-size: clamp(1.05rem, 1.4vw, 1.25rem); animation: fade-up 1s .3s var(--ease-out) both; }
.page-legal .band__title, .page-cgv .band__title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); max-width: 18ch; }
.page-legal .band__lede, .page-cgv .band__lede { font-size: .95rem; color: var(--brume); }

/* =========================================================================
   BOOK PAGE
   ========================================================================= */
.book-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(80% 90% at 28% 45%, #123e53 0%, var(--abysse) 65%);
  color: var(--ecume);
  padding: calc(var(--header-h) + 36px) var(--gutter) clamp(90px, 9vw, 130px);
}
.book-hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(32px, 6vw, 96px); align-items: center;
}
.crumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--brume); margin-bottom: 18px; }
.crumbs a { color: var(--ecume); }
.book-hero__stage {
  position: relative; display: grid; place-items: center; min-height: clamp(460px, 48vw, 640px);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.book-hero__stage:active { cursor: grabbing; }
.book-hero__stage .book3d { --w: clamp(220px, 24vw, 320px); --ry: 24deg; z-index: 1; }
.book-hero__stage .ripples { bottom: 4%; }
.ripples--soft span { border-color: rgba(59, 201, 186, .3); }
.book-hero__hint {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center; margin: 0;
  font-size: .82rem; color: var(--brume); letter-spacing: .02em;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.book-hero__hint::before, .book-hero__hint::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.book-hero__genre { display: flex; gap: 12px; align-items: center; color: var(--brume); margin: 0 0 16px; }
.book-hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.01em; max-width: 15ch;
}
.book-hero__subtitle { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 14px 0 0; color: rgba(238, 243, 239, .9); }
.book-hero__author { margin: 14px 0 0; color: var(--brume); }
.book-hero__pitch { margin: 26px 0 0; max-width: 46ch; color: rgba(238, 243, 239, .86); font-size: 1.1rem; }
.book-hero__note { margin: 12px 0 0; color: var(--brume); font-size: .95rem; }

@media (max-width: 900px) {
  .book-hero__inner { grid-template-columns: 1fr; }
  .book-hero__stage { min-height: 420px; }
}

/* Buy box (inline on book page, and inside the drawer) */
.buybox { margin-top: 30px; display: grid; gap: 18px; max-width: 470px; }
.buybox__static { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.buybox__static strong { margin-left: 8px; }
.js .buybox--inline .buybox__static { display: none; }
.buybox fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.buybox legend { font-size: .85rem; color: var(--brume); margin-bottom: 10px; padding: 0; }
.drawer .buybox legend { color: var(--galet); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.seg label {
  position: relative; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(238, 243, 239, .22); transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.seg label:hover { border-color: rgba(238, 243, 239, .5); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--lagon); background: rgba(59, 201, 186, .1); box-shadow: inset 0 0 0 1px var(--lagon); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--lagon); outline-offset: 2px; }
.seg__name { font-weight: 500; }
.seg__price { font-size: .9rem; color: var(--brume); font-variant-numeric: tabular-nums; }
.seg--lang label { padding: 10px 14px; }
.drawer .seg label { border-color: rgba(11, 42, 58, .18); }
.drawer .seg label:hover { border-color: rgba(11, 42, 58, .45); }
.drawer .seg label:has(input:checked) { border-color: var(--lagon-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--lagon-ink); }
.drawer .seg label:has(input:focus-visible) { outline-color: var(--lagon-ink); }
.drawer .seg__price { color: var(--galet); }
.buybox__single { margin: 0; display: flex; gap: 14px; align-items: baseline; font-size: 1rem; }
.buybox__single span { color: var(--brume); font-size: .85rem; }
.drawer .buybox__single span { color: var(--galet); }
.buybox__single strong { font-weight: 500; }
.buybox__note { margin: 0; font-size: .92rem; color: var(--brume); min-height: 2.9em; }
.drawer .buybox__note { color: var(--galet); }
.buybox__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; border-top: 1px solid rgba(238, 243, 239, .16);
}
.drawer .buybox__total { border-top-color: rgba(11, 42, 58, .12); }
.buybox__total span { color: var(--brume); font-size: .95rem; }
.drawer .buybox__total span { color: var(--galet); }
.buybox__price { font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; line-height: 1; font-variant-numeric: lining-nums; display: inline-block; }
.buybox__pay { width: 100%; min-height: 56px; font-size: 1.05rem; }
.buybox__secure, .buybox__terms { margin: 0; font-size: .85rem; color: var(--brume); }
.drawer .buybox__secure, .drawer .buybox__terms { color: var(--galet); }
.buybox__secure { display: flex; gap: 10px; align-items: flex-start; }
.buybox__secure::before {
  content: ""; flex: none; width: 14px; height: 16px; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1.5v8h-11V7H3zm1.6 0h4.8V5a2.4 2.4 0 0 0-4.8 0v2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1.5v8h-11V7H3zm1.6 0h4.8V5a2.4 2.4 0 0 0-4.8 0v2z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.buybox__fallback { margin: 0; font-size: .92rem; padding: 14px 16px; border-radius: 12px; background: rgba(233, 185, 73, .14); border: 1px solid rgba(233, 185, 73, .45); }
.drawer .buybox__fallback { background: #fbf1d8; border-color: #ecd08f; }

/* Book body */
.book-body { position: relative; padding: clamp(90px, 10vw, 140px) var(--gutter) clamp(110px, 11vw, 150px); }
.book-body__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); gap: clamp(48px, 8vw, 120px);
}
.book-body__text { max-width: 64ch; font-size: 1.15rem; line-height: 1.7; }
.book-body__text > p { margin-bottom: 1.1em; }
.pull {
  margin: 0 0 44px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.005em;
  position: relative; padding-left: 1.1em;
}
.pull::before {
  content: "«"; position: absolute; left: 0; top: -.04em; color: var(--lagon-ink); font-style: italic;
}
.pull p { margin: 0; }
html[lang="en"] .pull::before { content: "“"; }
.book-body__preface { font-size: 1rem; color: var(--galet); border-top: 1px solid rgba(11, 42, 58, .14); padding-top: 18px; margin-top: 28px; }
.book-body__aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-title { font: 600 .9rem/1.3 var(--font-text); color: var(--galet); margin: 0 0 14px; }
.details { margin: 0 0 40px; display: grid; }
.details > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(11, 42, 58, .12); font-size: .97rem; }
.details > div:last-child { border-bottom: 1px solid rgba(11, 42, 58, .12); }
.details dt { color: var(--galet); }
.details dd { margin: 0; }
.extracts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.extracts a {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(11, 42, 58, .18); text-decoration: none; font-weight: 500; transition: border-color .2s, background-color .2s;
}
.extracts a:hover { border-color: var(--lagon-ink); background: #fff; }
.extracts a span { color: var(--galet); font-weight: 400; font-size: .88rem; }

.toc { margin-top: 64px; }
.toc h2 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.toc__note { font: 400 .9rem var(--font-text); color: var(--galet); }
.toc__list { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.toc__list li { display: grid; grid-template-columns: 3.2em auto 1fr auto; align-items: baseline; gap: 10px; padding: 7px 0; }
.toc__num { font-family: var(--font-display); font-style: italic; color: var(--lagon-ink); font-size: 1.15em; }
.toc__dots { border-bottom: 1px dotted rgba(11, 42, 58, .35); transform: translateY(-.3em); }
.toc__page { font-variant-numeric: tabular-nums; color: var(--galet); }
.contents__list { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.contents__list li::marker { font-family: var(--font-display); font-style: italic; color: var(--lagon-ink); }

@media (max-width: 900px) {
  .book-body__inner { grid-template-columns: 1fr; }
  .book-body__aside { position: static; }
}
@media (max-width: 520px) {
  .toc__list li { grid-template-columns: 2.6em 1fr auto; }
  .toc__dots { display: none; }
}

/* Related */
.related { padding: clamp(110px, 12vw, 160px) var(--gutter) clamp(100px, 10vw, 140px); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.related .section-title { text-align: center; }
.grid--related { margin-top: 48px; }
.related__all { text-align: center; margin: 64px 0 0; }

/* =========================================================================
   EDITORIAL LINE: house + shelf
   ========================================================================= */
.house { padding: 0 var(--gutter) clamp(120px, 12vw, 170px); }
.house__inner {
  max-width: var(--maxw); margin: 0 auto; padding-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid rgba(11, 42, 58, .14);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: end;
}
.house__copy p { max-width: 46ch; color: var(--galet); }
.house__copy .section-title { margin-bottom: 22px; }
.shelf {
  list-style: none; margin: 0; padding: 0 0 18px; display: flex; align-items: flex-end; justify-content: center; gap: 10px;
  border-bottom: 2px solid var(--ink); position: relative;
}
.shelf li { flex: none; }
.shelf a { display: block; }
.shelf .book3d { --w: clamp(62px, 7vw, 96px); --ry: 62deg; --rx: 0deg; }
.shelf a:hover .book3d, .shelf a:focus-visible .book3d { --ry: 18deg; --lift: -18px; }
@media (max-width: 860px) {
  .house__inner { grid-template-columns: 1fr; }
  .shelf { justify-content: flex-start; overflow-x: auto; padding-top: 30px; }
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { padding: clamp(80px, 9vw, 120px) var(--gutter) clamp(110px, 11vw, 150px); }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 110px);
}
.form { display: grid; gap: 22px; max-width: 620px; }
.form__hint { margin: -8px 0 0; color: var(--galet); font-size: .92rem; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .97rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fbfcfb; border: 1px solid rgba(11, 42, 58, .24); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: rgba(11, 42, 58, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lagon-ink); box-shadow: 0 0 0 4px rgba(11, 122, 117, .16); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 39, 29, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__privacy { margin: 0; font-size: .88rem; color: var(--galet); }
.form__status { margin: 0; font-weight: 500; min-height: 1.6em; }
.form__status.is-success { color: var(--lagon-ink); }
.form__status.is-error { color: var(--danger); }
.contact__map {
  margin: 0 0 40px; padding: clamp(18px, 3vw, 30px); border-radius: 22px;
  background: radial-gradient(90% 90% at 60% 40%, #123e53, var(--abysse) 70%);
  color: var(--ecume);
}
.contact__map figcaption { margin-top: 10px; font-size: .88rem; color: var(--brume); }
.island--small .island__labels .island__sea { display: none; }
.contact__map .island__coast, .contact__map .island__islets path, .contact__map .island__iso path,
.contact__map .island__contours path, .contact__map .island__labels { animation-play-state: paused; }
.contact__map.is-in .island__coast, .contact__map.is-in .island__islets path, .contact__map.is-in .island__iso path,
.contact__map.is-in .island__contours path, .contact__map.is-in .island__labels { animation-play-state: running; }
.contact__ways { margin: 0; display: grid; gap: 0; }
.contact__ways > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(11, 42, 58, .12); }
.contact__ways dt { color: var(--galet); }
.contact__ways dd { margin: 0; }
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__ways > div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   LEGAL DOCUMENTS
   ========================================================================= */
.doc { padding: clamp(72px, 8vw, 110px) var(--gutter) clamp(110px, 11vw, 150px); }
.doc__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 260px minmax(0, 70ch); gap: clamp(40px, 6vw, 96px); justify-content: center;
}
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .92rem; }
.doc__toc-title { font-weight: 600; color: var(--galet); margin: 0 0 12px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(11, 42, 58, .14); }
.doc__toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; text-decoration: none; color: var(--galet);
  border-left: 2px solid transparent; transition: color .2s, border-color .2s;
}
.doc__toc a span { font-variant-numeric: tabular-nums; margin-right: 4px; }
.doc__toc a:hover { color: var(--ink); }
.doc__toc a.is-active { color: var(--ink); border-left-color: var(--lagon-ink); }
.doc__body { font-size: 1.05rem; line-height: 1.72; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.doc__body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 1.95rem); line-height: 1.15; margin: 52px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc__body section:first-of-type h2 { margin-top: 36px; }
.doc__body .doc__num { font-style: italic; color: var(--lagon-ink); margin-right: .2em; }
.doc__note { padding: 14px 18px; border-radius: 12px; background: var(--ecume-2); font-size: .95rem; }
mark.todo { background: #ffe6a1; color: var(--ink); padding: .05em .35em; border-radius: 4px; }
@media (max-width: 900px) {
  .doc__inner { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { position: relative; background: var(--abysse); color: var(--ecume); padding: clamp(110px, 12vw, 160px) var(--gutter) 40px; }
.site-footer--flush { padding-top: clamp(40px, 6vw, 80px); }
.site-footer--flush .site-footer__inner { border-top: 1px solid rgba(238, 243, 239, .1); padding-top: clamp(56px, 7vw, 90px); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer__signoff {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 9rem); line-height: .9; letter-spacing: -.02em; margin: 0 0 clamp(56px, 7vw, 90px);
  color: var(--ecume);
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.site-footer__brand img { width: 64px; flex: none; }
.site-footer__brand p { margin: 0; color: var(--brume); font-size: .95rem; line-height: 1.6; }
.site-footer__name { color: var(--ecume); font-family: var(--font-display); font-style: italic; font-size: 1.35rem; }
.site-footer__h { font: 500 .9rem var(--font-text); color: var(--brume); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__grid a { text-decoration: none; font-size: .97rem; }
.site-footer__grid a:hover { text-decoration: underline; }
.site-footer__bottom {
  margin-top: clamp(56px, 7vw, 90px); padding-top: 24px; border-top: 1px solid rgba(238, 243, 239, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
  font-size: .85rem; color: var(--brume);
}
.site-footer__bottom p { margin: 0; }
.site-footer .langs--footer { display: flex; gap: 6px; }
.langs--footer a { font-size: .85rem; letter-spacing: .01em; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   DRAWER (quick purchase)
   ========================================================================= */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(480px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  background: var(--ecume); color: var(--ink);
  box-shadow: -30px 0 80px rgba(3, 16, 23, .35);
  overflow: hidden;
}
.drawer::backdrop { background: rgba(4, 18, 26, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .55s var(--ease-out); }
.drawer[open]::backdrop { animation: fade .4s ease; }
.drawer.is-closing { animation: drawer-out .32s var(--ease-in-out) forwards; }
.drawer.is-closing::backdrop { animation: fade .32s ease reverse forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.drawer__inner { height: 100%; overflow-y: auto; padding: 30px 30px 40px; display: grid; align-content: start; gap: 8px; }
.drawer__close {
  justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(11, 42, 58, .2);
  background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, transform .3s var(--ease-out);
}
.drawer__close:hover { border-color: var(--ink); transform: rotate(90deg); }
.drawer__head { display: flex; gap: 20px; align-items: center; margin-bottom: 6px; }
.drawer__cover { width: 76px; height: auto; border-radius: 2px; box-shadow: 0 10px 24px rgba(11, 42, 58, .25); }
.drawer__author { margin: 0 0 6px; color: var(--galet); font-size: .95rem; }
.drawer__title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.9rem; line-height: 1.05; }
.drawer .buybox { max-width: none; }
@media (max-width: 640px) {
  .drawer { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .drawer[open] { animation-name: sheet-in; }
  .drawer.is-closing { animation-name: sheet-out; }
  .drawer__inner { max-height: 92dvh; padding: 22px 20px 32px; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

/* =========================================================================
   SOLO PAGES (thank you, 404)
   ========================================================================= */
.solo {
  position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center;
  padding: 48px var(--gutter); background: radial-gradient(90% 90% at 50% 30%, #123e53, var(--abysse) 70%); color: var(--ecume);
}
.solo__card { max-width: 620px; text-align: center; position: relative; z-index: 1; }
.solo__crest { width: 120px; margin: 0 auto 28px; }
.solo__langs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(238, 243, 239, .16); margin-bottom: 32px; }
.solo__langs button { background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .9rem; opacity: .75; }
.solo__langs button[aria-pressed="true"] { background: var(--lagon); color: var(--abysse); opacity: 1; }
.solo__title { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin: 0 0 24px; }
.solo__title--sm { font-size: 1.7rem; margin: 0 0 10px; }
.solo__lang p { color: rgba(238, 243, 239, .86); }
.solo__lang a { color: var(--lagon-2); }
.solo__lang .btn { color: var(--abysse); }
.solo__actions { margin-top: 28px; }
.solo__lang--stack + .solo__lang--stack { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(238, 243, 239, .12); }

/* =========================================================================
   Page transitions (cross-document View Transitions, progressive)
   ========================================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .38s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .62s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease-out); }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__line .ch { transform: none; }
  .island__coast, .island__islets path { stroke-dashoffset: 0; fill-opacity: 1; }
  .shore span, .spotlight__float, .ripples span { animation: none !important; }
  .ripples { display: none; }
  .route__draw { stroke-dashoffset: 0; }
  .steps__buoy, .steps h3, .steps p { opacity: 1; transform: none; }
  .js .ink[data-ink-ready] .w { color: var(--ink); }
  @view-transition { navigation: none; }
}

/* Print */
@media print {
  .site-header, .sea, .shore, .drawer, .hero__map, .filters, .ripples, .menu-btn { display: none !important; }
  .hero, .band, .deep, .book-hero, .site-footer { background: none !important; color: #000 !important; }
}
