
/* Layout : en-tête collant translucide, sections pleine largeur teintées par livre, colonne de lecture 64ch pour les textes */
:root {
  --fond: #f8f2e7; --fond-2: #efe4d1; --surface: #fffcf6; --encre: #2a2017; --encre-2: #6b5a46; --ligne: #e2d3ba;
  --accent: #8f5d1e; --sur-accent: #fffaf0; --accent-doux: #f2e2c4;
  --ecrin: #2e2116; --ecrin-2: #5a3a17; --ecrin-3: #221811; --ecrin-texte: #fbf3e4; --ecrin-doux: #d9c7ab; --or: #e0b15a; --sur-or: #22180f;
  --livre: var(--accent); --livre-fond: var(--fond-2);
  --etoile: #b8862b; --ok: #1f7a4d;
  --ombre: 0 1px 2px rgb(60 40 15 / .06), 0 14px 34px -10px rgb(60 40 15 / .22);
  --f-titre: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-texte: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --f-ui: var(--f-titre); --poids-titre: 800; --poids-titre-2: 700; --espace-titre: -0.035em; --espace-titre-2: -0.025em;
  --max: 1240px; --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --fond: #15110d; --fond-2: #1e1813; --surface: #251d16; --encre: #f1e8da; --encre-2: #b9a78f; --ligne: #3a2f24;
  --accent: #e0b15a; --sur-accent: #1b140d; --accent-doux: #3a2a14; --etoile: #f0b43c; --ok: #5ccf94;
  --ecrin: #2c2016; --ecrin-2: #5e3d18; --ecrin-3: #1d1510;
  --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -10px rgb(0 0 0 / .6); color-scheme: dark } }
:root[data-theme="dark"] {
  --fond: #15110d; --fond-2: #1e1813; --surface: #251d16; --encre: #f1e8da; --encre-2: #b9a78f; --ligne: #3a2f24;
  --accent: #e0b15a; --sur-accent: #1b140d; --accent-doux: #3a2a14; --etoile: #f0b43c; --ok: #5ccf94;
  --ecrin: #2c2016; --ecrin-2: #5e3d18; --ecrin-3: #1d1510;
  --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -10px rgb(0 0 0 / .6); color-scheme: dark }
:root[data-theme="light"] { color-scheme: light; }

/* Teinte propre à chaque livre, choisie dans le back office */
[data-teinte="ambre"]  { --livre: #b7791f; --livre-fond: #f6efe2; }
[data-teinte="fraise"] { --livre: #d1453b; --livre-fond: #fbeceb; }
[data-teinte="rouge"]  { --livre: #c2302a; --livre-fond: #f3ecec; }
[data-teinte="sauge"]  { --livre: #3f6b5c; --livre-fond: #e9f0ed; }
[data-teinte="sable"]  { --livre: #9a6b24; --livre-fond: #f6efdf; }
[data-teinte="encre"]  { --livre: var(--accent); --livre-fond: var(--accent-doux); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  & [data-teinte="ambre"] { --livre: #f2b45a; --livre-fond: #221c12; } & [data-teinte="fraise"] { --livre: #ff8a80; --livre-fond: #261615; }
  & [data-teinte="rouge"] { --livre: #ff7a70; --livre-fond: #241515; } & [data-teinte="sauge"] { --livre: #86c9b1; --livre-fond: #14201c; }
  & [data-teinte="sable"] { --livre: #e0b46a; --livre-fond: #221c11; } } }
:root[data-theme="dark"] [data-teinte="ambre"] { --livre: #f2b45a; --livre-fond: #221c12; }
:root[data-theme="dark"] [data-teinte="fraise"] { --livre: #ff8a80; --livre-fond: #261615; }
:root[data-theme="dark"] [data-teinte="rouge"] { --livre: #ff7a70; --livre-fond: #241515; }
:root[data-theme="dark"] [data-teinte="sauge"] { --livre: #86c9b1; --livre-fond: #14201c; }
:root[data-theme="dark"] [data-teinte="sable"] { --livre: #e0b46a; --livre-fond: #221c11; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--f-texte); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--fond); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-titre); line-height: 1.05; letter-spacing: var(--espace-titre-2); text-wrap: balance; margin: 0 0 .5em; font-weight: var(--poids-titre-2); }
h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); font-weight: var(--poids-titre); letter-spacing: var(--espace-titre); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.enveloppe { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sur { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); margin: 0 0 .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.puce { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; background: var(--fond-2); color: var(--encre-2); border: 1px solid var(--ligne); }
.puce--livre { background: color-mix(in srgb, var(--livre) 14%, transparent); color: var(--livre); border-color: transparent; }
.chapo { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--encre-2); max-width: 46ch; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-ui); font-weight: 500; font-size: .95rem; padding: .78em 1.25em; border-radius: 999px; border: 1px solid var(--encre); background: var(--encre); color: var(--fond); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--clair { background: transparent; color: var(--encre); border-color: var(--ligne); }
.btn--clair:hover { border-color: var(--encre); }
.btn--livre { background: var(--livre); border-color: var(--livre); color: var(--fond); }
.btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.fleche { transition: transform .2s; } a:hover > .fleche, button:hover > .fleche { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.utile { border-bottom: 1px solid var(--ligne); font-family: var(--f-ui); font-size: .84rem; }
.utile .enveloppe { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .45rem; }
.utile__info { color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.utile__info b { color: var(--accent); font-weight: 500; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; display: block; }
.menu--sec { display: flex; gap: 1.2rem; flex-shrink: 0; }
.menu--sec a { color: var(--encre-2); } .menu--sec a:hover, .menu a[aria-current="page"] { color: var(--accent); }
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--ligne); }
.entete .enveloppe { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.marque { font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 1.3rem; letter-spacing: var(--espace-titre-2); text-decoration: none; display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.marque__rm { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--encre); color: var(--fond); font-size: .82rem; letter-spacing: 0; }
.marque__nom { line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .06em .15em .1em .2em; margin-left: -.2em; }
.marque:has(.marque__nom) { flex-shrink: 1; min-width: 0; }
[data-police-nom="alex-brush"] .marque__nom { font-family: "Alex Brush", var(--f-titre); font-weight: 400; font-size: 1.62em; letter-spacing: 0; padding-top: .08em; }
@media (max-width: 479px) { [data-police-nom="alex-brush"] .marque__nom { font-size: 1.2em; } }
@media (max-width: 379px) { [data-police-nom="alex-brush"] .marque__nom { font-size: 1.08em; } }
.marque__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--fond), 0 0 0 3px var(--ligne); }
.menu--princ { display: flex; gap: .2rem; margin-left: auto; font-family: var(--f-ui); font-size: .93rem; }
.menu--princ > li { position: relative; }
.menu--princ > li > a { padding: .5rem .7rem; border-radius: 999px; transition: background .15s; }
.menu--princ > li > a:hover, .menu--princ > li:focus-within > a { background: var(--fond-2); }
.menu .sm > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .55; }
.menu .n2, .menu .n3 { position: absolute; min-width: 240px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); padding: .45rem; opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top left; transition: opacity .16s, transform .16s, visibility .16s; z-index: 30; }
.menu .n2 { top: calc(100% + 6px); left: 0; }
.menu--sec .n2 { left: auto; right: 0; top: calc(100% + 8px); }
.menu .n3 { top: -.45rem; left: calc(100% + 8px); }
.menu .n2 li { position: relative; }
.menu .n2 a { padding: .55rem .75rem; border-radius: 9px; font-size: .9rem; color: var(--encre); }
.menu .n2 a:hover { background: var(--fond-2); }
.menu .n2 .sm > a::after { transform: translateY(-1px) rotate(-45deg); float: right; margin-top: .55rem; }
.menu li:hover > ul, .menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.actions { display: flex; gap: .4rem; margin-left: .4rem; }
.ico { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: var(--encre); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ico:hover { border-color: var(--encre); }
.ico svg { width: 18px; height: 18px; }
.ico--burger { display: none; }
.kbd { font-family: var(--f-mono); font-size: .7rem; border: 1px solid var(--ligne); border-radius: 5px; padding: 0 .35em; color: var(--encre-2); }
.progression { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--livre); transform-origin: left; transform: scaleX(0); }
@media (max-width: 1279px) {
  .nav-princ { display: none; }
  .actions { margin-left: auto; }
  .ico--burger { display: grid; }
}

/* Tiroir mobile */
.tiroir { position: fixed; inset: 0; z-index: 70; }
.tiroir__voile { position: absolute; inset: 0; background: rgb(0 0 0 / .4); animation: fondu .2s; }
.tiroir__panneau { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: var(--fond); overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 1rem) max(1.2rem, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 2rem) 1.2rem; animation: glisse .25s ease-out; }
.tiroir__haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.tiroir .menu a { padding: .7rem 0; border-bottom: 1px solid var(--ligne); font-family: var(--f-ui); font-size: 1.05rem; }
.tiroir .n2 { padding-left: 1rem; } .tiroir .n2 a { font-size: .95rem; color: var(--encre-2); }
.tiroir .n3 { padding-left: 1rem; }
.tiroir__titre { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); margin: 1.6rem 0 .2rem; }
@keyframes glisse { from { transform: translateX(30px); opacity: 0; } }
@keyframes fondu { from { opacity: 0; } }

/* ---------- Recherche (palette) ---------- */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: calc(env(safe-area-inset-top, 0px) + 12vh) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); background: rgb(0 0 0 / .35); animation: fondu .15s; }
.palette__boite { width: min(100%, 620px); background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.palette__champ { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--ligne); }
.palette__champ input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-family: var(--f-ui); font-size: 1.1rem; color: var(--encre); outline: none; }
.palette ul { list-style: none; margin: 0; padding: .4rem; max-height: 52vh; overflow-y: auto; }
.palette li button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem .8rem; border: 0; border-radius: 10px; background: transparent; color: var(--encre); font-family: var(--f-ui); font-size: .98rem; cursor: pointer; }
.palette li button span:last-child { font-family: var(--f-mono); font-size: .7rem; color: var(--encre-2); text-transform: uppercase; }
.palette li button[aria-selected="true"], .palette li button:hover { background: var(--accent-doux); }
.palette__vide { padding: 1.2rem; color: var(--encre-2); font-family: var(--f-ui); }

/* ---------- Vues ---------- */
main { min-height: 60vh; }
@keyframes apparition { from { opacity: .4; transform: translateY(8px); } }
.fil { font-family: var(--f-ui); font-size: .85rem; color: var(--encre-2); padding-block: 1.2rem 0; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fil li + li::before { content: "→"; margin-right: .4rem; opacity: .5; }
.fil a { text-decoration: none; } .fil a:hover { color: var(--accent); }
.bloc { padding-block: clamp(2.5rem, 5vw, 5rem); }
.bloc--teinte { background: var(--livre-fond); }
.tete-section { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tete-section h2 { margin: 0; }
.lien-fleche { font-family: var(--f-ui); font-weight: 500; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.lien-fleche:hover { color: var(--accent); }

/* Accueil */
.hero { display: grid; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; } }
.hero > * { min-width: 0; }
.hero h1 span { color: var(--accent); }
.pile { position: relative; height: clamp(320px, 42vw, 460px); max-width: 100%; }
.pile > a { position: absolute; top: 50%; left: 50%; width: clamp(150px, 19vw, 225px); border-radius: 6px; transition: transform .8s cubic-bezier(.22,.61,.36,1) .05s, translate .6s cubic-bezier(.22,.61,.36,1), scale .6s cubic-bezier(.22,.61,.36,1), z-index 0s linear .12s; will-change: transform; }
.pile > a img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; box-shadow: var(--ombre); transition: box-shadow .6s ease; cursor: pointer; }
.pile > a:nth-child(1) { transform: translate(-95%, -52%) rotate(-9deg); }
.pile > a:nth-child(2) { transform: translate(-50%, -50%) rotate(0deg); z-index: 2; }
.pile > a:nth-child(3) { transform: translate(-5%, -48%) rotate(8deg); }
.pile:hover > a:nth-child(1) { transform: translate(-112%, -53%) rotate(-12deg); }
.pile:hover > a:nth-child(3) { transform: translate(6%, -53%) rotate(11deg); }
.pile:hover > a:nth-child(2) { transform: translate(-50%, -54%) scale(1.04); }
.pile > a:hover, .pile > a:focus-visible { z-index: 3; translate: 0 -8px; scale: 1.015; }
.pile > a:hover img, .pile > a:focus-visible img { box-shadow: 0 28px 56px -16px rgb(0 0 0 / .42); }
.pile > a:focus-visible { outline: none; }
.pile > a:focus-visible img { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Pastille « Nouveauté » : accrochée à la couverture du livre concerné, elle la suit dans l'animation */
.pile__nouveau { position: absolute; z-index: 1; top: -14px; right: -16px; background: var(--accent); color: var(--sur-accent); font-family: var(--f-ui); font-weight: 700; font-size: .8rem; line-height: 1.2; white-space: nowrap; padding: .6rem .9rem; border-radius: 999px; transform: rotate(6deg); box-shadow: var(--ombre); pointer-events: none; }
.pile > a:nth-child(1) .pile__nouveau { right: auto; left: -16px; transform: rotate(-6deg); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-block: 1px solid var(--ligne); }
.chiffres div, .chiffres a { padding: 1.4rem 1rem 1.4rem 0; }
.chiffres strong { display: block; font-family: var(--f-titre); font-size: 2.2rem; font-weight: var(--poids-titre); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--encre-2); font-size: .95rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .4rem; }
.filtre { font-family: var(--f-ui); font-size: .88rem; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: var(--encre); cursor: pointer; transition: all .15s; }
.filtre:hover { border-color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.filtre small { font-family: var(--f-mono); opacity: .6; margin-left: .25rem; }
.etagere { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 2.4rem 1.6rem; margin-top: 2rem; }
@media (max-width: 460px) { .etagere { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; } }
.carte { text-decoration: none; display: block; min-width: 0; }
.carte[hidden] { display: none; }
.carte__couv { aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; box-shadow: var(--ombre); margin-bottom: 1rem; transform-style: preserve-3d; transition: transform .25s; background: var(--fond-2); }
.carte__couv img { width: 100%; height: 100%; object-fit: cover; }
.carte__couv--type { display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem 1rem; background: #20352e; color: #e9f0ed; font-family: var(--f-titre); }
.carte__couv--type b { font-size: 2rem; font-weight: var(--poids-titre); letter-spacing: -0.03em; }
.carte__couv--type small { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.carte h3 { margin: .35rem 0 .3rem; transition: color .15s; }
.carte:hover h3 { color: var(--accent); }
.carte p { font-size: .95rem; color: var(--encre-2); line-height: 1.45; margin: 0; }
.citations { position: relative; overflow: hidden; }
.citation { margin: 0; font-family: var(--f-texte); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); line-height: 1.25; font-style: italic; max-width: 26ch; letter-spacing: -0.01em; }
.citation-src { font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); margin-top: 1.2rem; }
.citations__ctrl { display: flex; gap: .5rem; align-items: center; margin-top: 1.8rem; }
.points { display: flex; gap: .4rem; margin-left: .6rem; }
.points button { width: 26px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: var(--ligne); cursor: pointer; }
.points button[aria-current="true"] { background: var(--encre); }
.encart { display: grid; gap: 2rem; align-items: center; background: var(--encre); color: var(--fond); border-radius: 24px; padding: clamp(1.8rem, 4vw, 3.5rem); }
@media (min-width: 800px) { .encart { grid-template-columns: 1.4fr 1fr; } }
.encart > * { min-width: 0; }
.encart .btn { background: var(--fond); color: var(--encre); border-color: var(--fond); }
.encart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.encart li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fond) 20%, transparent); font-family: var(--f-ui); }
.encart li span { font-family: var(--f-mono); font-size: .72rem; opacity: .7; white-space: nowrap; }

/* Fiche livre */
.livre-hero { background: var(--livre-fond); padding-block: clamp(2rem, 5vw, 4.5rem); }
.livre-hero .enveloppe { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .livre-hero .enveloppe { grid-template-columns: minmax(240px, 340px) 1fr; gap: 4.5rem; } }
.livre-hero .enveloppe > * { min-width: 0; }
.couv-3d { perspective: 1000px; max-width: 340px; margin-inline: auto; width: 100%; }
.couv-3d > * { width: 100%; border-radius: 4px 8px 8px 4px; box-shadow: -10px 22px 40px -12px rgb(0 0 0 / .45), inset 4px 0 0 rgb(255 255 255 / .1); transition: transform .2s ease-out; }
.livre-hero h1 { margin-bottom: .2rem; }
.sous-titre { font-family: var(--f-texte); font-style: italic; font-size: 1.4rem; color: var(--livre); margin-bottom: 1rem; }
.statut { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.sousnav { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.6rem; }
.sousnav a { font-family: var(--f-ui); font-size: .88rem; padding: .45em 1em; border-radius: 999px; text-decoration: none; border: 1px solid var(--ligne); background: var(--surface); }
.sousnav a:hover, .sousnav a[aria-current="page"] { border-color: var(--livre); color: var(--livre); }
.onglets { display: flex; gap: .2rem; border-bottom: 1px solid var(--ligne); overflow-x: auto; scrollbar-width: none; margin-bottom: 2.4rem; }
.onglet { font-family: var(--f-ui); font-weight: 500; font-size: .98rem; padding: .9rem 1.1rem; border: 0; background: transparent; color: var(--encre-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.onglet[aria-selected="true"] { color: var(--encre); border-color: var(--livre); }
.onglet:hover { color: var(--encre); }
.panneau[hidden] { display: none; }
.deux-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .deux-col { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; } }
.deux-col > * { min-width: 0; }
.fiche { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.2rem 1.3rem; align-self: start; }
.fiche h3 { font-size: 1rem; margin-bottom: .8rem; }
.fiche dl { margin: 0; display: grid; }
.fiche div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.fiche div:last-child { border-bottom: 0; }
.fiche dt { color: var(--encre-2); font-family: var(--f-ui); }
.fiche dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.copier { font-family: var(--f-mono); font-size: .8rem; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; }
.lecture { max-width: 64ch; font-size: var(--taille-lecture, 1.12rem); line-height: 1.75; transition: font-size .15s; }
.lecture h2, .lecture h3 { margin-top: 1.8em; }
.lecture blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--livre); font-style: italic; font-size: 1.2em; color: var(--encre); }
.lecture .lettrine::first-letter { font-family: var(--f-titre); font-weight: var(--poids-titre); float: left; font-size: 3.6em; line-height: .85; margin: .08em .1em 0 0; color: var(--livre); }
.outils-lecture { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; font-family: var(--f-mono); font-size: .76rem; color: var(--encre-2); text-transform: uppercase; letter-spacing: .05em; }
.outils-lecture button { font-family: var(--f-ui); width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); cursor: pointer; }
.suite { position: relative; }
.suite[data-replie="true"] .suite__corps { max-height: 11em; overflow: hidden; mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.liste-cit { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.liste-cit li { font-style: italic; font-size: 1.2rem; padding: 1.1rem 1.3rem; background: var(--surface); border-radius: var(--r); border: 1px solid var(--ligne); }
.mouvements { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .5rem; counter-reset: m; }
.mouvements li { font-family: var(--f-ui); font-size: .92rem; padding: .7rem .9rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--ligne); }
.mouvements li small { display: block; font-family: var(--f-mono); font-size: .68rem; color: var(--livre); text-transform: uppercase; }

/* Avis */
.avis-outils { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.champ-recherche { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--ligne); border-radius: 999px; padding: .5rem .9rem; background: var(--surface); min-width: 0; flex: 1 1 240px; max-width: 360px; }
.champ-recherche input { border: 0; background: transparent; font: inherit; font-family: var(--f-ui); font-size: .95rem; color: var(--encre); outline: none; min-width: 0; flex: 1; }
.mosaique { columns: 3 300px; column-gap: 1.2rem; }
.avis { break-inside: avoid; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.avis[hidden] { display: none; }
.avis__tete { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.avis__nom { font-family: var(--f-ui); font-weight: 700; }
.etoiles { color: var(--etoile); letter-spacing: .1em; font-size: .9rem; }
.avis p { font-size: 1rem; line-height: 1.55; margin-bottom: .6rem; }
.avis__date { font-family: var(--f-mono); font-size: .72rem; color: var(--encre-2); text-transform: uppercase; }
.compteur { font-family: var(--f-mono); font-size: .78rem; color: var(--encre-2); }

/* Frise / agenda */
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--ligne); }
.frise li { position: relative; padding: 0 0 1.6rem 2.2rem; }
.frise li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--fond); border: 2px solid var(--livre); }
.frise li.fait::before { background: var(--livre); }
.frise li.cle::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--livre) 25%, transparent); }
.frise .frise__date { font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--livre); }
.frise h3 { margin: .15rem 0 .2rem; font-size: 1.1rem; }
.frise p { margin: 0; color: var(--encre-2); font-size: 1rem; }
.rdv { display: grid; gap: 1rem; }
.rdv article { display: grid; grid-template-columns: 76px 1fr; gap: 1.2rem; align-items: start; padding: 1.2rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); }
.rdv__date { text-align: center; border-radius: 12px; background: var(--fond-2); padding: .6rem .2rem; font-family: var(--f-titre); line-height: 1.1; }
.rdv__date b { display: block; font-size: 1.8rem; font-weight: var(--poids-titre); }
.rdv__date small { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; color: var(--encre-2); }
.rdv h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.rdv p { margin: 0; color: var(--encre-2); font-size: .98rem; }
.vide { padding: 2rem; border: 1px dashed var(--ligne); border-radius: var(--r); text-align: center; color: var(--encre-2); }
.progres { height: 10px; background: var(--fond-2); border-radius: 99px; overflow: hidden; margin: .6rem 0 .4rem; border: 1px solid var(--ligne); }
.progres span { display: block; height: 100%; width: 0; background: var(--livre); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.etapes { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .7rem; color: var(--encre-2); text-transform: uppercase; gap: .5rem; flex-wrap: wrap; }

/* Nouvelles (accordéon) */
.accordeon { display: grid; gap: 1rem; }
.nouvelle { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
.nouvelle summary { list-style: none; cursor: pointer; padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; }
.nouvelle summary::-webkit-details-marker { display: none; }
.nouvelle summary h3 { margin: 0; font-size: 1.45rem; }
.nouvelle summary p { grid-column: 1; margin: 0; color: var(--encre-2); font-size: 1rem; }
.nouvelle summary .plus { grid-row: 1 / span 3; grid-column: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ligne); display: grid; place-items: center; transition: transform .25s; font-family: var(--f-ui); font-size: 1.3rem; }
.nouvelle[open] summary .plus { transform: rotate(45deg); }
.nouvelle__corps { padding: 0 1.5rem 1.6rem; border-top: 1px solid var(--ligne); padding-top: 1.4rem; }

/* Médias, réseaux, contact */
.grille-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.media { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.media:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.media__visuel { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, var(--encre), color-mix(in srgb, var(--livre) 70%, var(--encre))); color: var(--fond); position: relative; }
.media__visuel svg { width: 58px; height: 58px; }
.media__visuel--audio { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--encre))); }
.media__corps { padding: 1.1rem 1.2rem 1.3rem; }
.media__corps .media__titre { margin: 0 0 .3rem; font-size: 1.1rem; }
.media__corps p { margin: 0; color: var(--encre-2); font-size: .95rem; }
.ondes { display: flex; gap: 4px; align-items: center; height: 40px; }
.ondes i { width: 4px; border-radius: 3px; background: currentColor; height: 30%; animation: onde 1.1s ease-in-out infinite; }
.ondes i:nth-child(2) { animation-delay: .15s } .ondes i:nth-child(3) { animation-delay: .3s } .ondes i:nth-child(4) { animation-delay: .45s } .ondes i:nth-child(5) { animation-delay: .6s } .ondes i:nth-child(6) { animation-delay: .75s }
@keyframes onde { 50% { height: 100%; } }
.reseaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.reseau { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; border-radius: 18px; text-decoration: none; border: 1px solid var(--ligne); background: var(--surface); transition: border-color .15s, transform .15s; }
.reseau:hover { border-color: var(--encre); transform: translateY(-2px); }
.reseau b { font-family: var(--f-titre); font-size: 1.5rem; letter-spacing: -0.02em; }
.reseau span { color: var(--encre-2); font-size: .98rem; }
.reseau small { font-family: var(--f-mono); font-size: .74rem; color: var(--accent); margin-top: .5rem; }
.form { display: grid; gap: 1.1rem; max-width: 620px; }
.form .ligne { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form .ligne { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-family: var(--f-ui); font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.form [aria-invalid="true"] { border-color: #c2302a; }
.aide { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; color: var(--encre-2); margin-top: .3rem; }
.erreur { color: #c2302a; }
.succes { display: none; padding: 1.4rem; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.succes.visible { display: block; animation: apparition .3s; }
.sujets { display: flex; flex-wrap: wrap; gap: .4rem; }
.note-apercu { font-family: var(--f-mono); font-size: .74rem; color: var(--encre-2); border: 1px dashed var(--ligne); border-radius: 10px; padding: .7rem .9rem; margin-top: 2rem; }

/* Pied */
.pied { margin-top: 4rem; border-top: 1px solid var(--ligne); padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 800px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pied h4 { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); margin-bottom: .8rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-family: var(--f-ui); font-size: .95rem; }
.pied a { text-decoration: none; } .pied a:hover { color: var(--accent); }
.pied__marque { font-family: var(--f-titre); font-weight: var(--poids-titre); font-size: 2rem; letter-spacing: var(--espace-titre); line-height: 1; }
.pied__bas { margin-top: 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--f-mono); font-size: .72rem; color: var(--encre-2); }
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--encre); color: var(--fond); font-family: var(--f-ui); font-size: .92rem; padding: .7rem 1.1rem; border-radius: 999px; transition: transform .3s; z-index: 90; box-shadow: var(--ombre); }
.toast.visible { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Compléments du site réel ---------- */
@view-transition { navigation: auto; }
[hidden] { display: none !important; }
.evitement { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--encre); color: var(--fond); padding: .6rem 1rem; border-radius: 10px; font-family: var(--f-ui); }
.evitement:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }
.sr-only, .cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.utile__info { margin: 0; }
.nav-princ { margin-left: auto; }
.ico-soleil { display: none; }
:root[data-theme="dark"] .ico-soleil { display: inline; } :root[data-theme="dark"] .ico-lune { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-soleil { display: inline; } :root:not([data-theme="light"]) .ico-lune { display: none; } }
.hero h1 b { color: var(--accent); font-weight: inherit; }
.hero--page { padding-top: 2rem; }
.hero--page h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); }
.portrait img { border-radius: 24px; box-shadow: var(--ombre); width: 100%; height: auto; }
.bloc--haut { padding-top: 2rem; }
.bloc--gris { background: var(--fond-2); }
.sur--inverse { color: inherit; opacity: .7; }
.encart__texte { opacity: .8; }
.encart a:not(.btn) { text-decoration: none; }
.encart a:not(.btn):hover { text-decoration: underline; }
.titre-rubrique { font-size: 1.35rem; margin-top: 3rem; }
.etagere + .titre-rubrique { margin-top: 3.5rem; }
.carte__couv > img { width: 100%; height: 100%; object-fit: cover; }
.carte__couv--type { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem 1rem; background: color-mix(in srgb, var(--livre) 55%, #101614); color: #f2f4f1; font-family: var(--f-titre); border-radius: inherit; }
.carte__couv--type b { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: var(--poids-titre); letter-spacing: -0.03em; line-height: 1.05; }
.carte__couv--type small { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.couv-3d .carte__couv--type { aspect-ratio: 2/3; }
.couv-3d .carte__couv--type b { font-size: 2.6rem; }
.couv-3d img { height: auto; }
.page__image { margin: 0 0 2rem; } .page__image img { border-radius: 18px; width: 100%; height: auto; }
.lecture img { border-radius: 12px; margin: 1.6rem auto; height: auto; }
.lecture figure { margin: 1.6rem 0; } .lecture figcaption { font-size: .9rem; color: var(--encre-2); text-align: center; }
.lecture a { color: var(--accent); }
.lecture hr { border: 0; text-align: center; margin: 2.4rem 0; }
.lecture hr::after { content: "✦  ✦  ✦"; color: var(--livre); letter-spacing: .4em; font-size: .8rem; }
.lecture > :first-child { margin-top: 0; }
.panneau .lecture > p:first-of-type::first-letter, .nouvelle__corps > p:first-of-type::first-letter { font-family: var(--f-titre); font-weight: var(--poids-titre); float: left; font-size: 3.4em; line-height: .85; margin: .08em .1em 0 0; color: var(--livre); }
.lecture--longue[data-replie="true"] { max-height: 28em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.btn-suite { margin-top: 1rem; }
.fiche h2 { font-size: 1rem; margin-bottom: .8rem; }
.fiche dd a { color: var(--accent); }
.grille-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.4rem; margin-top: 2rem; }
.video { margin: 0; } .video figcaption { font-family: var(--f-ui); font-size: .95rem; margin-top: .6rem; }
.yt, .yt-frame { display: block; position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #000; border: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; margin: 0; border-radius: 0; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt__play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.yt__play::after { content: ""; position: absolute; left: 28px; top: 22px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #15171b; }
.lecture .yt { margin: 1.6rem 0; }
.media__lien { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent) !important; margin-top: .8rem !important; }
.grille-media { margin-top: 2rem; }
.etoiles__vides { opacity: .25; }
.avis__texte p { font-size: 1rem; line-height: 1.55; margin-bottom: .6rem; }
.alerte { padding: 1rem 1.2rem; border-radius: 12px; background: color-mix(in srgb, #c2302a 10%, transparent); border: 1px solid color-mix(in srgb, #c2302a 35%, transparent); }
.champ-sujets { border: 0; padding: 0; margin: 0; }
.champ-sujets legend { font-family: var(--f-ui); font-weight: 500; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.filtre--radio { position: relative; display: inline-flex; align-items: center; }
.filtre--radio input { position: absolute; opacity: 0; pointer-events: none; }
.filtre--radio:has(input:checked) { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.filtre--radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .aide span:empty { display: none; }
.liste-404 { font-family: var(--f-ui); font-size: 1.1rem; line-height: 2; }
.pied__titre { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); margin-bottom: .8rem; }
.pied__accroche { color: var(--encre-2); margin-top: .8rem; }
.nouvelle summary h2 { margin: 0; font-size: 1.45rem; }
.nouvelle:target { outline: 2px solid var(--livre); outline-offset: 3px; }
.rdv--passes article { opacity: .75; }
.palette__boite, .tiroir__panneau { overscroll-behavior: contain; }

/* En-tête : le menu principal tient sur une ligne à partir de 1320 px */
.menu--princ { white-space: nowrap; font-size: .9rem; gap: 0; }
.menu--princ > li > a { padding: .5rem .5rem; }
.menu .n2 a { white-space: normal; }
@media (max-width: 760px) { .utile { display: none; } }
@media (max-width: 1279px) { .menu--sec { display: none; } .utile .enveloppe { justify-content: center; } }
.pile { overflow: visible; }
@media (max-width: 899px) { .pile { height: 340px; margin-inline: auto; width: min(100%, 420px); } .pile > a { width: 150px; } .pile:hover > a:nth-child(1) { transform: translate(-95%, -52%) rotate(-9deg); } .pile:hover > a:nth-child(3) { transform: translate(-5%, -48%) rotate(8deg); } .pile__nouveau { font-size: .72rem; padding: .5rem .75rem; } }
.hero { overflow-x: clip; }
.palette li a { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem .8rem; border-radius: 10px; color: var(--encre); font-family: var(--f-ui); font-size: .98rem; text-decoration: none; }
.palette li a span:last-child { font-family: var(--f-mono); font-size: .7rem; color: var(--encre-2); text-transform: uppercase; }
.palette li a[aria-selected="true"], .palette li a:hover { background: var(--accent-doux); }
.toast { visibility: hidden; transform: translate(-50%, calc(100% + 3rem)); }
.toast.visible { visibility: visible; }
@media (max-width: 859px) { .couv-3d { max-width: 210px; } .livre-hero .enveloppe { gap: 1.6rem; } }
.lecture { overflow-wrap: break-word; }

/* ---------- Couverture qui se retourne (4e de couverture) ---------- */
.retournable { perspective: 1400px; }
.retournable > .retournable__livre { box-shadow: none; border-radius: 0; }
.retournable > .btn-retourner { width: auto; box-shadow: none; border-radius: 999px; }
.retournable__livre { position: relative; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); cursor: pointer; container-type: inline-size; }
.retournable.est-retourne .retournable__livre { transform: rotateY(180deg); }
.retournable__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: -10px 22px 40px -12px rgb(0 0 0 / .45); }
.retournable__face > * { display: block; width: 100%; height: auto; }
.retournable__dos { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--dos-fond, #1d1a17); color: var(--dos-texte, #efe6d6); padding: 8cqi 7cqi 6cqi; display: flex; flex-direction: column; gap: .6em; font-family: var(--f-texte); font-size: clamp(.62rem, 4.2cqi, .92rem); line-height: 1.4; overflow-y: auto; }
.retournable__dos p { margin: 0; }
.retournable__dos .dos__accroche { font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: 1.12em; line-height: 1.2; color: var(--dos-accent, #f2b45a); letter-spacing: -0.01em; }
.dos__bas { margin-top: auto; padding-top: .6em; display: flex; justify-content: space-between; align-items: end; gap: 1em; font-family: var(--f-mono); font-size: .66em; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.dos__code { flex: none; width: 22cqi; height: 10cqi; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 3px, currentColor 3px 4px, transparent 4px 6px); }
.btn-retourner { display: flex; align-items: center; gap: .45rem; margin: 1.1rem auto 0; font-family: var(--f-ui); font-size: .88rem; color: var(--encre-2); background: var(--surface); border: 1px solid var(--ligne); border-radius: 999px; padding: .5em 1em; cursor: pointer; transition: border-color .15s, color .15s; }
.btn-retourner:hover { color: var(--encre); border-color: var(--encre); }
.btn-retourner span[aria-hidden] { display: inline-block; transition: transform .5s; }
.est-retourne .btn-retourner span[aria-hidden] { transform: rotate(-180deg); }
@media (max-width: 859px) { .couv-3d.retournable { max-width: 250px; } }

/* ---------- Mode lecture des extraits ---------- */
.liseuse { --l-haut: calc(68px + env(safe-area-inset-top, 0px)); background: var(--surface); color: var(--encre); border: 1px solid var(--ligne); border-radius: 18px; transition: background .3s, color .3s, border-color .3s; }
.liseuse[data-ambiance="sepia"] { --surface: #f4ecd8; --fond-2: #eadfc4; --encre: #46371f; --encre-2: #7a6646; --ligne: #ddcfae; --livre: #9a6b24; color-scheme: light; }
.liseuse[data-ambiance="nuit"] { --surface: #0b0c0f; --fond-2: #16181d; --encre: #d4cfc4; --encre-2: #8f939c; --ligne: #262930; --livre: #f2b45a; color-scheme: dark; }
.liseuse__outils { position: sticky; top: var(--l-haut); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .7rem .9rem; background: var(--surface); border-bottom: 1px solid var(--ligne); border-radius: 18px 18px 0 0; transition: background .3s; }
.liseuse__groupe { display: flex; gap: .3rem; }
.liseuse__outils button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: var(--encre); font-family: var(--f-ui); font-size: .9rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.liseuse__outils button:hover { border-color: var(--encre); }
.liseuse__outils button[aria-pressed="true"] { background: var(--encre); color: var(--surface); border-color: var(--encre); }
.liseuse__etat { flex: 1; text-align: center; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.liseuse__progres { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.liseuse__progres span { display: block; height: 100%; width: 0; background: var(--livre); transition: width .15s linear; }
.liseuse__texte { max-width: none; padding: clamp(1.2rem, 4vw, 2.4rem) clamp(1.1rem, 5vw, 3rem); }
.liseuse__texte > * { max-width: 64ch; margin-inline: auto; }
.liseuse__texte ::selection { background: color-mix(in srgb, var(--livre) 30%, transparent); }
.liseuse__fin { margin: 0 clamp(1.1rem, 5vw, 3rem) clamp(1.1rem, 5vw, 2.4rem); padding: 1.6rem 1.2rem; border-top: 1px solid var(--ligne); text-align: center; }
.liseuse__fin .sur { margin-bottom: .4rem; }
.liseuse__fin-titre { font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); letter-spacing: -0.02em; margin: 0 0 .3rem; }
.liseuse__fin p { color: var(--encre-2); }
.liseuse__fin .btns { justify-content: center; margin-top: 1rem; }
.liseuse[data-ambiance="nuit"] .btn--livre { color: #0b0c0f; }
@media (max-width: 520px) { .liseuse__etat { order: 3; flex-basis: 100%; text-align: left; } .liseuse__outils { justify-content: space-between; } }

.reprise { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: .5rem; max-width: calc(100% - 32px); padding: .45rem .45rem .45rem 1.1rem; background: var(--encre); color: var(--fond); border-radius: 999px; box-shadow: var(--ombre); font-family: var(--f-ui); font-size: .9rem; animation: reprise-monte .35s ease-out; }
.reprise[hidden] { display: none; }
.reprise span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reprise button { flex: none; border: 0; border-radius: 999px; padding: .45rem .9rem; background: var(--fond); color: var(--encre); font: inherit; cursor: pointer; }
.reprise button.reprise__fermer { background: transparent; color: var(--fond); padding: .45rem .6rem; }
@keyframes reprise-monte { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Prochain rendez-vous avec compte à rebours ---------- */
.prochain, .rdv .prochain { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: center; padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); position: relative; overflow: hidden; }
.prochain::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--livre); }
@media (min-width: 760px) { .prochain, .rdv .prochain { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; } }
.prochain h3 { margin: .3rem 0 .3rem; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
.prochain p { margin: 0; color: var(--encre-2); }
.prochain__droite { display: grid; gap: .8rem; justify-items: stretch; }
.puce--direct::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .4em; border-radius: 50%; background: currentColor; vertical-align: .05em; animation: battement 1.6s ease-in-out infinite; }
@keyframes battement { 50% { opacity: .25; } }
.decompte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.decompte > div { min-width: 64px; background: var(--fond-2); border-radius: 12px; padding: .7rem .3rem .55rem; text-align: center; }
.decompte b { display: block; font-family: var(--f-titre); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: var(--poids-titre); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.decompte small { display: block; margin-top: .3rem; font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); }
.decompte__maintenant { grid-column: 1 / -1; margin: 0; padding: .9rem; text-align: center; font-family: var(--f-ui); font-weight: 700; border-radius: 12px; background: var(--fond-2); }
.btn--agenda { justify-content: center; font-size: .88rem; padding: .6em 1em; }
.rdv__agenda { margin-top: .5rem !important; }
.rdv__agenda a { font-family: var(--f-ui); font-size: .85rem; color: var(--encre); text-decoration: none; border: 1px solid var(--ligne); border-radius: 999px; padding: .3em .8em; display: inline-block; transition: border-color .15s; }
.rdv__agenda a:hover { border-color: var(--encre); }
@media (prefers-reduced-motion: reduce) { .retournable__livre { transition: none; } }

/* Lien de refus des statistiques (pied de page) */
.lien-discret { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.lien-discret:hover { color: var(--encre); }

/* Liens du bandeau d'annonce */
.utile__info a { color: inherit; text-decoration: none; }
.utile__info a:hover b, .utile__info a:focus-visible b, .utile__info a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }


/* ---------- Ambiance mordorée : écrin brun et or pour l'accueil ---------- */
.hero:not(.hero--page) { position: relative; margin-top: 1.2rem; width: auto; max-width: none; margin-inline: max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--max)) / 2 + 16px)); padding-inline: clamp(1.4rem, 4vw, 3.5rem); border-radius: 28px; background: radial-gradient(120% 90% at 85% 40%, var(--ecrin-2) 0%, var(--ecrin) 55%, var(--ecrin-3) 100%); color: var(--ecrin-texte); }
.hero:not(.hero--page) h1 { color: var(--ecrin-texte); }
.hero:not(.hero--page) h1 b, .hero:not(.hero--page) h1 span { color: var(--or); }
.hero:not(.hero--page) .chapo { color: var(--ecrin-doux); }
.hero:not(.hero--page) .sur { color: #cdb796; }
.hero:not(.hero--page) .puce { background: rgb(224 177 90 / .16); color: #e9c27a; border-color: transparent; }
.hero:not(.hero--page) .btn { background: var(--or); color: var(--sur-or); border-color: var(--or); }
.hero:not(.hero--page) .btn--clair { background: transparent; color: var(--ecrin-texte); border-color: rgb(243 232 214 / .35); }
.hero:not(.hero--page) .btn--clair:hover { border-color: var(--ecrin-texte); }
.hero:not(.hero--page) .pile__nouveau { background: var(--or); color: var(--sur-or); }
.hero:not(.hero--page) :focus-visible { outline-color: var(--or); }
:root[data-theme="dark"] .hero:not(.hero--page) { box-shadow: inset 0 0 0 1px rgb(224 177 90 / .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero:not(.hero--page) { box-shadow: inset 0 0 0 1px rgb(224 177 90 / .14); } }
.encart { background: var(--ecrin); color: var(--ecrin-texte); }
.encart .btn { background: var(--or); color: var(--sur-or); border-color: var(--or); }
.encart li { border-bottom-color: rgb(243 232 214 / .18); }
.sur--inverse { color: #cdb796; }

/* Chiffres clés centrés */
.chiffres div, .chiffres a { text-align: center; padding-inline: 1rem; }
.chiffres a { display: block; color: inherit; text-decoration: none; border-radius: var(--r); transition: background .2s; }
.chiffres a:hover { background: var(--accent-doux); }
.chiffres a:hover span { color: var(--accent); }


/* ---------- Polices du site, choisies dans Réglages du site ---------- */
[data-police="fraunces"] { --f-titre: 'Fraunces', Georgia, serif; --f-texte: 'Source Serif 4', Georgia, serif; --f-ui: 'Fraunces', Georgia, serif; --poids-titre: 600; --poids-titre-2: 600; --espace-titre: -0.02em; --espace-titre-2: -0.015em; }
[data-police="playfair"] { --f-titre: 'Playfair Display', Georgia, serif; --f-texte: 'Lora', Georgia, serif; --f-ui: 'Lora', Georgia, serif; --poids-titre: 700; --poids-titre-2: 700; --espace-titre: -0.01em; --espace-titre-2: -0.005em; }
[data-police="garamond"] { --f-titre: 'Cormorant Garamond', Garamond, serif; --f-texte: 'EB Garamond', Garamond, serif; --f-ui: 'EB Garamond', Garamond, serif; --poids-titre: 600; --poids-titre-2: 600; --espace-titre: -0.005em; --espace-titre-2: 0; }
[data-police="instrument"] { --f-titre: 'Instrument Serif', Georgia, serif; --f-texte: 'Inter', system-ui, sans-serif; --f-ui: 'Inter', system-ui, sans-serif; --poids-titre: 400; --poids-titre-2: 400; --espace-titre: -0.01em; --espace-titre-2: -0.005em; }
[data-police="dm"] { --f-titre: 'DM Serif Display', Georgia, serif; --f-texte: 'DM Sans', system-ui, sans-serif; --f-ui: 'DM Sans', system-ui, sans-serif; --poids-titre: 400; --poids-titre-2: 400; --espace-titre: -0.01em; --espace-titre-2: -0.005em; }
[data-police="marcellus"] { --f-titre: 'Marcellus', Georgia, serif; --f-texte: 'Crimson Pro', Georgia, serif; --f-ui: 'Marcellus', Georgia, serif; --poids-titre: 400; --poids-titre-2: 400; --espace-titre: 0; --espace-titre-2: 0; }
[data-police="dm"] body, [data-police="instrument"] body { font-size: 17px; }

/* ---------- Page Avis ---------- */
.avis-filtres { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; margin: 2.4rem 0 1.8rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); }
.avis-filtres__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; min-width: 0; }
.avis-filtres__ligne--bas { justify-content: space-between; padding-top: .9rem; border-top: 1px solid var(--ligne); }
.avis-filtres__lib { flex: none; width: 4.5rem; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); }
.avis-filtres .filtres { flex: 1; min-width: 0; }
.avis-filtres .compteur { margin: 0; }
.filtre--livre { display: inline-flex; align-items: center; gap: .45rem; padding-left: .4em; }
.filtre--livre img { width: 18px; height: 27px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.filtre:disabled { opacity: .4; cursor: default; }
.segmente { gap: 0; flex: 0 1 auto !important; border: 1px solid var(--ligne); border-radius: 999px; padding: 3px; background: var(--fond); }
.segmente .filtre { border: 0; }
.segmente .filtre[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); }
.avis--chronique { border-color: color-mix(in srgb, var(--accent) 35%, var(--ligne)); background: var(--surface); }
.puce--chronique { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
.avis__media { display: block; font-weight: 400; font-size: .85rem; color: var(--encre-2); }
.avis__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .9rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--ligne); }
.avis__livre { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-ui); font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--encre); }
.avis__livre img { width: 20px; height: 30px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.avis__livre:hover { color: var(--accent); }
.avis__lien { font-family: var(--f-ui); font-size: .85rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.avis__lien:hover { text-decoration: underline; }
.avis-vide { padding: 2rem; text-align: center; color: var(--encre-2); border: 1px dashed var(--ligne); border-radius: var(--r); }
@media (max-width: 640px) {
  .avis-filtres__lib { width: 100%; }
  .avis-filtres .filtres:not(.segmente) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
  .avis-filtres .filtres .filtre { flex: none; }
  .segmente { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .segmente .filtre { flex: 1 1 auto; padding: .5em .4em; font-size: .8rem; white-space: nowrap; }
  .avis-filtres { padding: 1rem; }
  .champ-recherche { width: 100%; }
}

/* ---------- Babelio ---------- */
.babelio { display: flex; align-items: center; gap: .8rem 1.1rem; flex-wrap: wrap; margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; max-width: 520px; }
.babelio[hidden] { display: none; }
.babelio__note { margin: 0; font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: 2.4rem; line-height: 1; color: var(--encre); }
.babelio__note small { font-size: 1rem; color: var(--encre-2); }
.babelio__infos { display: grid; gap: .2rem; flex: 1; min-width: 150px; }
.babelio__infos .etoiles { font-size: 1rem; }
.babelio__infos > span:last-child { font-family: var(--f-ui); font-size: .88rem; color: var(--encre-2); }
.babelio__infos b { font-family: var(--f-ui); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); font-weight: 600; }
.babelio a { font-family: var(--f-ui); font-weight: 500; font-size: .9rem; text-decoration: none; color: var(--encre); border: 1px solid var(--ligne); border-radius: 999px; padding: .6em 1em; white-space: nowrap; transition: border-color .15s; }
.babelio a:hover { border-color: var(--encre); }
.avis-filtres + .babelio { margin: -.6rem 0 1.8rem; max-width: none; }
.carte__babelio { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-family: var(--f-ui); font-size: .82rem; font-weight: 600; color: var(--encre); }
.carte__babelio > span:first-child { color: var(--etoile); }
.carte__babelio > span:last-child { font-weight: 400; color: var(--encre-2); }

/* ---------- Page Avis : filtre par couvertures ---------- */
.avis-filtres__ligne--livres { align-items: flex-start; }
.avis-filtres__ligne--livres .avis-filtres__lib { padding-top: .4rem; }
.couv-filtres { flex: 1; min-width: 0; display: flex; gap: .9rem; overflow-x: auto; padding: .4rem .2rem .6rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.couv-filtre { flex: none; width: 96px; scroll-snap-align: start; display: grid; justify-items: center; gap: .3rem; padding: 0; border: 0; background: none; color: var(--encre); font: inherit; text-align: center; cursor: pointer; }
.couv-filtre__img { position: relative; display: block; width: 76px; aspect-ratio: 2/3; border-radius: 4px 6px 6px 4px; overflow: hidden; background: var(--fond-2); box-shadow: 0 6px 14px -6px rgb(40 25 10 / .45); outline: 3px solid transparent; outline-offset: 3px; transition: transform .25s cubic-bezier(.22,.61,.36,1), outline-color .2s, box-shadow .25s; }
.couv-filtre__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couv-filtre__type { display: grid; place-items: center; height: 100%; padding: .4rem; background: var(--ecrin, #2e2116); color: var(--or, #e0b15a); font-family: var(--f-titre); font-size: .75rem; line-height: 1.15; }
.couv-filtre__titre { font-family: var(--f-ui); font-size: .78rem; font-weight: 500; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.couv-filtre small { font-family: var(--f-mono); font-size: .64rem; color: var(--encre-2); }
.couv-filtre:hover .couv-filtre__img { transform: translateY(-3px); box-shadow: 0 10px 20px -8px rgb(40 25 10 / .5); }
.couv-filtre[aria-pressed="true"] .couv-filtre__img { outline-color: var(--accent); transform: translateY(-3px); }
.couv-filtre[aria-pressed="true"] .couv-filtre__titre { font-weight: 700; color: var(--accent); }
.couv-filtre:focus-visible { outline: none; }
.couv-filtre:focus-visible .couv-filtre__img { outline-color: var(--encre); }
/* « Tous les livres » : petite pile de couvertures en éventail */
.couv-filtre__pile { background: transparent; box-shadow: none; overflow: visible; }
.couv-filtre__pile img { position: absolute; inset: 8% 12%; width: 76%; height: 84%; border-radius: 3px; box-shadow: 0 4px 10px -4px rgb(40 25 10 / .5); }
.couv-filtre__pile img:nth-child(1) { transform: rotate(-10deg) translateX(-14%); }
.couv-filtre__pile img:nth-child(2) { transform: rotate(9deg) translateX(14%); }
.couv-filtre__pile img:nth-child(3) { z-index: 1; }
@media (max-width: 640px) {
  .couv-filtre { width: 80px; }
  .couv-filtre__img { width: 64px; }
  .avis-filtres__ligne--livres .avis-filtres__lib { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .couv-filtre__img { transition: none; } }
.couv-filtre { grid-template-rows: auto 2.5em auto auto; align-content: start; }
.couv-filtre__titre { align-self: start; }
.couv-filtre::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: transparent; transition: background .2s; }
.couv-filtre[aria-pressed="true"]::after { background: var(--accent); }
.couv-filtre__pile, .couv-filtre[aria-pressed="true"] .couv-filtre__pile { outline: none; }
.couv-filtre[aria-pressed="true"] .couv-filtre__pile img:nth-child(3) { box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px var(--accent); }
@media (max-width: 640px) { .couv-filtre { width: 88px; } .couv-filtre__titre { font-size: .72rem; } }

/* ---------- Avis : phrase en exergue et repli des avis longs ---------- */
.avis__exergue { margin: .1rem 0 .8rem; font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-size: 1.28rem; line-height: 1.3; letter-spacing: var(--espace-titre-2); color: var(--encre); }
.avis__texte { font-size: 1rem; }
.avis__texte.replie { max-height: 9.3em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.avis--exergue .avis__texte.replie { max-height: 4.65em; }
.avis__suite { display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; padding: .3rem 0; background: none; border: 0; font-family: var(--f-ui); font-size: .88rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.avis__suite:hover { text-decoration: underline; text-underline-offset: 3px; }
.avis--cible { box-shadow: 0 0 0 2px var(--accent), var(--ombre); animation: avis-cible 2.4s ease-out; }
@keyframes avis-cible { 0%, 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent), var(--ombre); } }

/* Bloc d'avis qui défile sur l'accueil */
.citation--longue { font-size: clamp(1.25rem, 1rem + 1.3vw, 1.9rem); max-width: 34ch; }
.citation-lien { display: inline-flex; gap: .35rem; margin-top: .9rem; font-family: var(--f-ui); font-size: .92rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.citation-lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.citations__tous { margin: 1.6rem 0 0; }
@media (prefers-reduced-motion: reduce) { .avis--cible { animation: none; } }

/* ---------- Donner son avis : bloc de l'accueil, fenêtre du formulaire ---------- */
.depot-cta-zone { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.depot-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 3rem); border-radius: 24px; background: radial-gradient(120% 140% at 85% 0%, var(--ecrin-2) 0%, var(--ecrin) 55%, var(--ecrin-3) 100%); color: var(--ecrin-texte); }
.depot-cta__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ecrin), 0 0 0 4px var(--or); }
.depot-cta h2 { margin: 0; color: var(--ecrin-texte); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; }
.depot-cta__txt > p:not(.depot-cta__sig) { margin: .55rem 0 0; color: var(--ecrin-doux); max-width: 44ch; }
.depot-cta__sig { margin: .5rem 0 0; font-family: "Alex Brush", var(--f-titre); font-size: 1.9rem; line-height: 1; color: var(--or); }
.depot-cta__livres { display: flex; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.depot-cta__livres a { display: grid; justify-items: center; gap: .55rem; width: 86px; text-decoration: none; color: var(--or); font-family: var(--f-ui); font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2; }
.depot-cta__livres img, .depot-cta__type { width: 86px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 12px 24px -10px rgb(0 0 0 / .6); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.depot-cta__type { display: grid; place-items: center; padding: .4rem; box-sizing: border-box; background: var(--surface); color: var(--encre); font-size: .72rem; }
.depot-cta__livres a:hover img, .depot-cta__livres a:focus-visible img { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 2px 4px rgb(0 0 0 / .25), 0 18px 30px -10px rgb(0 0 0 / .7); }
.depot-cta__livres a:hover .depot-cta__lib { text-decoration: underline; text-underline-offset: 3px; }
.depot-cta__btn { display: none; }
@media (max-width: 1023px) {
  .depot-cta { grid-template-columns: auto minmax(0, 1fr); }
  .depot-cta__livres { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 599px) {
  .depot-cta { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .depot-cta__photo { width: 64px; height: 64px; }
  .depot-cta__txt > p:not(.depot-cta__sig) { margin-inline: auto; }
  .depot-cta__livres { gap: .6rem; }
  .depot-cta__livres a { width: 76px; }
  .depot-cta__livres img, .depot-cta__type { width: 76px; }
  .depot-cta__lib { display: none; }
  .depot-cta__btn { display: inline-flex; justify-content: center; width: 100%; background: var(--or); border-color: var(--or); color: var(--sur-or); order: 9; }
  .depot-cta__sig { order: 10; }
}

.depot-relance { margin-top: 2.6rem; padding: 1.4rem 1.6rem; border: 1px solid var(--ligne); border-radius: var(--r); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; }
.depot-relance p { margin: 0; }
.depot-relance__msg { flex-basis: 100%; color: var(--ok); font-weight: 600; }
.depot-relance__msg--err { color: #b3261e; }

.depot { width: min(600px, calc(100vw - 24px)); max-height: min(92vh, 900px); box-sizing: border-box; padding: clamp(1.4rem, 4vw, 2.2rem); border: 0; border-radius: 22px; background: var(--surface); color: var(--encre); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .55); overflow: auto; overscroll-behavior: contain; }
.depot::backdrop { background: rgb(34 24 17 / .58); backdrop-filter: blur(3px); }
.depot[open] { animation: depot-entree .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes depot-entree { from { opacity: 0; transform: translateY(18px) scale(.98); } }
#donner-avis:target:not([open]) { display: block; position: static; margin: 2rem auto; }
.depot__fermer { position: absolute; top: .8rem; right: .8rem; }
.depot .depot__titre { font-family: var(--f-titre); font-weight: var(--poids-titre-2); letter-spacing: var(--espace-titre-2); margin: .2rem 0 1.2rem; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.12; padding-right: 2.4rem; }
.depot fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.depot legend, .depot__champ > span { font-family: var(--f-ui); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.depot__champ > span small { font-weight: 400; color: var(--encre-2); }
.depot__couvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .7rem; }
.depot__couv { position: relative; display: grid; gap: .4rem; cursor: pointer; text-align: center; }
.depot__couv input { position: absolute; opacity: 0; pointer-events: none; }
.depot__couv-img { display: block; padding: 4px; border-radius: 8px; transition: background .2s, box-shadow .2s, opacity .2s; opacity: .78; }
.depot__couv-img img, .depot__couv-img .depot-cta__type { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 14px -8px rgb(30 20 10 / .55); }
.depot__couv-titre { font-family: var(--f-ui); font-size: .74rem; line-height: 1.25; color: var(--encre-2); }
.depot__couv:hover .depot__couv-img { opacity: 1; }
.depot__couv input:checked + .depot__couv-img { opacity: 1; background: var(--accent-doux); box-shadow: 0 0 0 2px var(--accent); }
.depot__couv input:checked ~ .depot__couv-titre { color: var(--encre); font-weight: 600; }
.depot__couv input:focus-visible + .depot__couv-img { outline: 2px solid var(--accent); outline-offset: 3px; }
.notes-choix { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.notes-choix input { position: absolute; opacity: 0; pointer-events: none; }
.notes-choix label { font-size: 2rem; line-height: 1; color: var(--ligne); cursor: pointer; transition: color .15s, transform .15s; padding: .1rem; }
.notes-choix label:hover, .notes-choix label:hover ~ label, .notes-choix input:checked ~ label { color: var(--etoile); }
.notes-choix label:hover { transform: scale(1.12); }
.notes-choix input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.depot__champ { display: grid; margin-bottom: 1rem; position: relative; }
.depot__champ input, .depot__champ textarea { font: inherit; font-size: 1rem; color: var(--encre); background: var(--fond); border: 1px solid var(--ligne); border-radius: 10px; padding: .7rem .9rem; width: 100%; box-sizing: border-box; }
.depot__champ textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.depot__champ input:focus, .depot__champ textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.depot__compte { justify-self: end; margin-top: .3rem; font-family: var(--f-ui); font-size: .75rem; color: var(--encre-2); }
.depot__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.depot__ok { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--encre-2); margin-bottom: 1rem; cursor: pointer; }
.depot__ok input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.depot__erreur { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px; background: #fbeceb; color: #8c1d18; font-size: .92rem; }
.depot__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.depot__envoi .btn { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.depot__envoi span { font-size: .85rem; color: var(--encre-2); }
.depot__merci:focus { outline: none; }
.depot__merci-tete { display: flex; align-items: center; gap: .8rem; }
.depot__merci-tete .depot__titre { margin: 0; padding: 0; }
.depot__ok-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.depot__merci > p { color: var(--encre-2); margin: .8rem 0 0; }
.depot__partage { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--accent-doux); }
.depot__partage p { margin: 0 0 .7rem; font-size: .94rem; color: var(--encre-2); }
.depot__partage .depot__partage-titre { margin-bottom: .3rem; font-weight: 600; color: var(--encre); font-size: 1rem; }
.depot__partage blockquote { margin: 0; padding: .8rem 1rem; background: var(--surface); border: 1px dashed var(--ligne); border-radius: 10px; font-family: var(--f-titre); line-height: 1.5; }
.depot__partage-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.depot__partage-btns .btn:first-child { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.depot__partage-btns .btn--clair { background: var(--surface); }
@media (max-width: 599px) {
  .depot { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .depot[open] { animation-name: depot-monte; }
  @keyframes depot-monte { from { transform: translateY(40px); opacity: 0; } }
  .depot__couvs { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .depot[open] { animation: none; } .depot-cta__livres img { transition: none; } }

/* ---------- Avis de l'accueil : carte avec la couverture du livre ---------- */
.bloc--avis { padding-block: clamp(2.4rem, 5vw, 3.6rem) 0; }
.carte-avis { display: grid; grid-template-columns: clamp(120px, 14vw, 160px) minmax(0, 1fr); grid-template-areas: "couv tete" "couv zone" "couv pied"; align-items: start; column-gap: clamp(1.8rem, 4vw, 3rem); padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 3rem); background: var(--surface); border: 1.5px solid var(--ligne); border-radius: 22px; }
.carte-avis__couv { grid-area: couv; align-self: center; }
.carte-avis__couv img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 1px 2px rgb(60 40 15 / .15), 0 14px 28px -10px rgb(30 20 10 / .5); }
.carte-avis__tete { grid-area: tete; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.carte-avis__tete .sur { margin: 0; font-family: var(--f-mono); font-weight: 400; font-size: .74rem; letter-spacing: .08em; line-height: 1.4; }
.carte-avis__livre { margin: 0; font-size: .92rem; font-style: italic; color: var(--encre-2); }
.carte-avis .citation-zone { grid-area: zone; }
.carte-avis .citation { margin: 1rem 0 0; font-family: var(--f-titre); font-weight: var(--poids-titre-2); font-style: normal; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); line-height: 1.28; max-width: 40ch; letter-spacing: var(--espace-titre-2); }
.carte-avis .citation--longue { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); max-width: 48ch; }
.carte-avis .citation::before { content: "« "; } .carte-avis .citation::after { content: " »"; }
.citation-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1.1rem; }
.citation-meta .etoiles { font-size: .95rem; }
.carte-avis .citation-src { margin: 0; font-family: var(--f-ui); font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--encre-2); }
.carte-avis .citation-src b { color: var(--encre); font-weight: 600; }
.carte-avis .citation-lien { margin: 0 0 0 auto; }
.carte-avis__pied { grid-area: pied; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--ligne); }
.carte-avis .citations__ctrl { margin: 0; }
@media (max-width: 699px) {
  .carte-avis { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "couv tete" "zone zone" "pied pied"; column-gap: 1rem; padding: 1.5rem 1.25rem; }
  .carte-avis__tete { flex-direction: column; gap: .3rem; align-self: center; }
  .carte-avis__tete .sur { font-size: .7rem; }
  .carte-avis .citation { font-size: 1.4rem; margin-top: 1.1rem; }
  .carte-avis .citation--longue { font-size: 1.2rem; }
  .carte-avis .citation-lien { margin-left: 0; flex-basis: 100%; }
  .carte-avis__pied { flex-direction: column; align-items: flex-start; }
}

/* ---------- Réseaux sociaux : pastilles écrin et or ---------- */
.pastille-reseau { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(120% 120% at 80% 10%, var(--ecrin-2), var(--ecrin) 60%); color: var(--or); box-shadow: inset 0 0 0 1px rgb(224 177 90 / .22); transition: transform .2s, box-shadow .2s; }
.pied__reseaux { gap: .65rem; }
.pied__reseaux a { display: inline-flex; align-items: center; gap: .7rem; }
.pied__reseaux a:hover .pastille-reseau { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgb(46 33 22 / .6); }
.reseau__tete { display: flex; align-items: center; gap: .9rem; margin-bottom: .2rem; }
.reseau__tete .pastille-reseau { width: 52px; height: 52px; }
.reseau:hover .pastille-reseau { transform: rotate(-6deg); }
.reseau span.reseau__tete { color: inherit; font-size: inherit; }

/* ---------- Couvertures de l'accueil : balayage au doigt (écrans tactiles) ---------- */
.pile__legende { display: none; }
.pile--tactile { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pile--tactile > a, .pile--tactile img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.pile--tactile .pile__legende { display: block; position: absolute; left: 0; right: 0; bottom: 2px; margin: 0; text-align: center; font-family: var(--f-ui); font-size: .82rem; color: var(--ecrin-doux, var(--encre-2)); opacity: .75; pointer-events: none; transition: opacity .3s; }
.pile--tactile .pile__legende.est-titre { opacity: 1; color: var(--or, var(--accent)); font-weight: 600; font-size: .95rem; pointer-events: auto; cursor: pointer; }
.pile--tactile > a:hover:not(.est-choisi), .pile--tactile > a:focus:not(.est-choisi) { translate: none; scale: none; }
.pile--tactile > a:hover:not(.est-choisi) img { box-shadow: var(--ombre); }
.pile--tactile > a.est-choisi { z-index: 5; translate: 0 -14px; scale: 1.06; transition-duration: .45s, .25s, .25s, 0s; transition-delay: 0s; }
.pile--tactile > a.est-choisi img { box-shadow: 0 28px 56px -16px rgb(0 0 0 / .5); }
.pile--tactile:has(.est-choisi) > a:not(.est-choisi) img { filter: brightness(.82); transition: filter .3s, box-shadow .6s; }
.pile--balaye > a:nth-child(1) { transform: translate(-106%, -52%) rotate(-11deg); }
.pile--balaye > a:nth-child(2) { transform: translate(-50%, -53%); }
.pile--balaye > a:nth-child(3) { transform: translate(4%, -52%) rotate(10deg); }
@media (prefers-reduced-motion: reduce) { .pile--tactile > a { transition: none; } }

/* ---------- Crédit Studio Sébou (bas de page) ---------- */
.credit { white-space: nowrap; }
.credit__lien { position: relative; display: inline; margin-left: .15em; color: var(--accent); font-weight: 500; text-decoration: none; }
.credit__logo { display: inline-block; width: auto; height: 1.5em; margin-right: .4em; vertical-align: -.4em; filter: grayscale(1) sepia(.35); opacity: .6; transition: filter .35s, opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.credit__lien::after { content: ""; position: absolute; left: calc(1.5em * 15 / 18 + .4em); right: 1.1em; bottom: -2px; height: 1px; background: linear-gradient(90deg, #6d28d9, #e0457b, #f5913e); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.credit__fleche { display: inline-block; margin-left: .25em; opacity: 0; transform: translate(-4px, 3px); transition: opacity .25s, transform .3s; }
.credit__lien:hover .credit__logo, .credit__lien:focus-visible .credit__logo { filter: none; opacity: 1; transform: rotate(-8deg) scale(1.15); }
.credit__lien:hover::after, .credit__lien:focus-visible::after { transform: scaleX(1); }
.credit__lien:hover .credit__fleche, .credit__lien:focus-visible .credit__fleche { opacity: 1; transform: none; }
@media (hover: none) { .credit__logo { filter: none; opacity: .9; } }
@media (max-width: 699px) { .credit { display: block; margin-top: .7rem; } .credit__sep { display: none; } }
@media (prefers-reduced-motion: reduce) { .credit__logo, .credit__lien::after, .credit__fleche { transition: none; } }
