/* Polices : Fraunces (titres) et Inter (texte), licence SIL OFL. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2-variations"), url("/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2-variations"), url("/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus Decitre";
  src: url("/fonts/marcellus-decitre.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2-variations"), url("/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fond: #faf7f1;
  --surface: #ffffff;
  --encre: #161a26;
  --encre-2: #565c6e;
  --nuit: #1c2540;
  --nuit-2: #273257;
  --creme: #f3e3bf;
  --creme-2: #d9cdb4;
  --accent: #b4481b;
  --filet: #e6dfd0;
  --rayon: 16px;
  --ombre: 0 1px 2px rgb(22 26 38 / 0.04), 0 8px 24px rgb(22 26 38 / 0.06);
  --largeur: 72rem;
  --mesure: 38rem;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color .15s, text-decoration-thickness .15s; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Lien externe : petite flèche */
a[target="_blank"]:not(.bouton)::after { content: "\2009↗"; font-size: 0.85em; }

.masque {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--encre); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.evitement:focus { top: 1rem; }
.insecable, .isbn { white-space: nowrap; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ------------------------------------------------------------------ En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 247 241 / 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(22 26 38 / 0.06);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { font-family: var(--serif); font-weight: 420; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1; text-decoration: none; color: var(--encre); }
.logo:hover { color: var(--encre); }
.menu { display: flex; gap: clamp(.9rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--encre-2); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--encre); }
.logo, .menu a { white-space: nowrap; }
.logo { flex-shrink: 0; }
@media (max-width: 30rem) { .menu { font-size: .85rem; gap: .8rem; } .logo { font-size: 1.12rem; } }

/* ------------------------------------------------------------------ Typo */
.surtitre {
  display: inline-block; margin: 0 0 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 380; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.chapeau { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.35; color: var(--encre); text-wrap: balance; }

/* ------------------------------------------------------------------ Boutons */
.bouton {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font: 500 .95rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  background: var(--encre); color: #fff; border: 1px solid var(--encre);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
button.bouton { cursor: pointer; }
.bouton:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.bouton--clair { background: transparent; color: var(--encre); border-color: rgb(22 26 38 / 0.2); }
.bouton--clair:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
/* Bouton clair avec logo : il reste clair au survol pour que le logo reste lisible. */
.bouton--clair:has(.bouton__icone):hover { background: #fff; border-color: var(--encre); color: var(--encre); box-shadow: var(--ombre); }
/* Instagram : fond clair dans un cadre aux couleurs du logo, aussi visible que Babelio. */
.bouton--instagram {
  color: var(--encre); border: 2px solid transparent; padding: calc(.8em - 1px) calc(1.4em - 1px);
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #fdb550, #fd5c3c 30%, #d6309a 60%, #8a3ac6 85%, #4f5bd5) border-box;
}
.bouton--instagram:hover {
  color: var(--encre); border-color: transparent; box-shadow: var(--ombre);
  background: linear-gradient(#fff6f8, #fff6f8) padding-box,
    linear-gradient(45deg, #fdb550, #fd5c3c 30%, #d6309a 60%, #8a3ac6 85%, #4f5bd5) border-box;
}
.bouton--creme { background: var(--creme); color: var(--nuit); border-color: var(--creme); }
.bouton--creme:hover { background: #fff; border-color: #fff; color: var(--nuit); }
.bouton--contour-creme { background: transparent; color: var(--creme); border-color: rgb(243 227 191 / 0.4); }
.bouton--contour-creme:hover { background: var(--creme); border-color: var(--creme); color: var(--nuit); }
.bouton .fleche { font-size: .9em; opacity: .7; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ------------------------------------------------------------------ Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--filet); }

/* Accueil : présentation de l'auteur */
.accueil { padding-block: clamp(5rem, 14vw, 10rem) clamp(4rem, 9vw, 7rem); }
.accueil h1 { font-size: clamp(3rem, 10.5vw, 7rem); line-height: 1; letter-spacing: -0.03em; font-weight: 340; }
.accueil .chapeau { max-width: 34rem; margin-top: 2rem; color: var(--encre-2); }

/* Fiche livre (accueil) */
.livres { display: grid; gap: 1.5rem; }
.fiche-livre {
  display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center;
  background: var(--nuit); color: var(--creme);
  border-radius: calc(var(--rayon) * 1.5); padding: clamp(1.75rem, 5vw, 3.5rem);
  overflow: hidden; position: relative;
}
.fiche-livre::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(214 120 60 / 0.35), transparent); pointer-events: none;
}
.fiche-livre > * { position: relative; }
.fiche-livre__couverture { width: min(15rem, 60vw); justify-self: center; }
.fiche-livre__couverture { display: block; border-radius: 4px; }
.fiche-livre__couverture picture { display: block; }
.fiche-livre__couverture img { border-radius: 4px; box-shadow: 0 20px 50px rgb(0 0 0 / 0.45); transition: transform .25s ease, box-shadow .25s ease; }
.fiche-livre__couverture:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 28px 60px rgb(0 0 0 / 0.55); }
@media (prefers-reduced-motion: reduce) { .fiche-livre__couverture img { transition: none; } }
.fiche-livre h3 { color: #fff; margin-bottom: .75rem; }
.fiche-livre h3 a { text-decoration: none; }
.fiche-livre h3 a:hover { color: var(--creme); }
.fiche-livre .surtitre { color: var(--creme-2); }
.fiche-livre .chapeau { color: var(--creme); font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 1.25rem 0 0; }
.fiche-livre .meta { color: var(--creme-2); font-size: .95rem; margin: 0; }
.pastille {
  display: inline-block; margin-bottom: 1.25rem; padding: .3em .85em; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgb(243 227 191 / 0.12); color: var(--creme); border: 1px solid rgb(243 227 191 / 0.25);
}
@media (min-width: 48rem) {
  .fiche-livre { grid-template-columns: 15rem 1fr; }
}

/* À propos */
.apropos { display: grid; gap: 1rem 4rem; }
@media (min-width: 56rem) { .apropos { grid-template-columns: 1fr 2fr; } }
.apropos .texte { max-width: var(--mesure); font-size: 1.1rem; }

/* ------------------------------------------------------------------ Page livre */
.retour { display: block; width: fit-content; margin: 0 auto 2.5rem; font-size: .95rem; color: var(--encre-2); text-decoration: none; }
.retour:hover { color: var(--accent); }
.livre-titre { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); text-align: center; }
.livre-titre h1 { font-size: clamp(1.75rem, 5.25vw, 3.65rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 340; max-width: 15ch; margin-inline: auto; }
.livre-titre .meta { margin: 1.5rem 0 0; color: var(--encre-2); font-size: 1rem; }
.livre-titre .actions { justify-content: center; }
.livre-couverture {
  background: radial-gradient(120% 90% at 50% 0%, var(--nuit-2), var(--nuit) 70%);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.livre-couverture picture { display: block; width: min(20rem, 72vw); margin-inline: auto; }
.livre-couverture img { border-radius: 4px; box-shadow: 0 30px 70px rgb(0 0 0 / 0.5); }
.livre-couverture__cliquable { cursor: pointer; }
.livre-couverture__cliquable img { transition: transform .25s ease, box-shadow .25s ease; }
.livre-couverture__cliquable:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 38px 80px rgb(0 0 0 / 0.6); }
@media (prefers-reduced-motion: reduce) { .livre-couverture__cliquable img { transition: none; } }
.livre-texte { text-align: center; }
.livre-texte .chapeau { font-size: clamp(1.6rem, 3.8vw, 2.4rem); max-width: 22ch; margin: 0 auto 3rem; }
.resume { max-width: var(--mesure); margin-inline: auto; font-size: 1.1rem; text-align: left; }
.livre-texte .actions { justify-content: center; }

/* Éditions */
.editions { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .editions { grid-template-columns: 1fr 1fr; } }
.edition {
  background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon);
  padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--ombre);
  display: flex; flex-direction: column;
}
.edition h3 { font-size: 1.65rem; margin-bottom: 1.25rem; }
.edition__fiche { margin: 0 0 1.75rem; font-size: .95rem; border-top: 1px solid var(--filet); }
.edition__fiche div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--filet); }
.edition__fiche dt { color: var(--encre-2); }
.edition__fiche dd { margin: 0; text-align: right; }
.boutiques { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.boutiques li[hidden], [hidden] { display: none !important; }
.note { margin: 1.25rem 0 0; font-size: .92rem; color: var(--encre-2); }

/* ------------------------------------------------------------------ Page simple */
.page-simple { padding-block: clamp(3.5rem, 9vw, 6rem); }
.page-simple h1 { font-size: clamp(2.8rem, 8vw, 5rem); margin-bottom: 2.5rem; }
.page-simple h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; }
.page-simple .texte { max-width: var(--mesure); }

/* ------------------------------------------------------------------ Pied */
.pied { border-top: 1px solid var(--filet); padding-block: 2.5rem; font-size: .9rem; color: var(--encre-2); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.pied ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied p { margin: 0; }
.pied ul { align-items: center; gap: .5rem .6rem; }
.pied li:first-child { margin-right: .9rem; }
.pied__fiche {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .35em .85em .35em .45em; border-radius: 999px;
  background: #fff; border: 1px solid var(--filet); color: var(--encre);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pied__fiche img { width: 1.25rem; height: 1.25rem; object-fit: contain; border-radius: 4px; }
.pied a.pied__fiche:hover { text-decoration: none; border-color: rgb(22 26 38 / 0.35); box-shadow: var(--ombre); transform: translateY(-1px); }

/* ------------------------------------------------------------------ Extrait à feuilleter */
.livre-couverture .actions { justify-content: center; margin-top: 2.5rem; }
/* Extrait en version texte : un bouton qui déplie une page de livre. */
.extrait-texte { width: min(40rem, 100% - 2rem); margin: 1rem auto 0; text-align: left; interpolate-size: allow-keywords; }
.extrait-texte summary {
  display: flex; align-items: center; gap: .7rem; width: fit-content; margin: 0 auto;
  padding: .8em 1.4em; border: 1px solid rgb(243 227 191 / 0.4); border-radius: 999px; background: transparent;
  color: var(--creme); font: 500 .95rem/1.2 var(--sans); cursor: pointer; list-style: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.extrait-texte summary::-webkit-details-marker { display: none; }
.extrait-texte summary::after {
  content: ""; width: .45rem; height: .45rem; margin-top: -.2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .3s, margin .3s;
}
.extrait-texte[open] summary::after { transform: rotate(225deg); margin-top: .2rem; }
.extrait-texte summary:hover { background: var(--creme); border-color: var(--creme); color: var(--nuit); }
/* Dépliage animé (navigateurs récents) et apparition de la page. */
.extrait-texte::details-content { block-size: 0; overflow: clip; overflow-clip-margin: 4rem; transition: block-size .7s ease, content-visibility .7s allow-discrete; }
.extrait-texte[open]::details-content { block-size: auto; }
.extrait-texte[open] .extrait-texte__page { animation: page-apparait .7s ease both; }
@keyframes page-apparait { from { opacity: 0; transform: translateY(-1rem) scale(.98); } }
.extrait-texte__page {
  margin: 2rem 0 .5rem; padding: clamp(2rem, 6vw, 4rem) clamp(1.4rem, 6vw, 4.25rem);
  /* Papier : ton ivoire, grain léger, pli de reliure à gauche, tranches de pages à droite. */
  background-color: #fbf6ea; color: #2b2721; border-radius: 3px 6px 6px 3px;
  background-image:
    linear-gradient(90deg, rgb(70 50 20 / 0.16), rgb(70 50 20 / 0.04) 2.5rem, transparent 4rem),
    radial-gradient(130% 80% at 50% 0%, rgb(255 255 255 / 0.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  box-shadow:
    3px 3px 0 -1px #f1e9d6, 6px 6px 0 -2px #e6dcc4, 9px 9px 0 -3px #d9cdb1,
    0 30px 60px -20px rgb(0 0 0 / 0.6);
  font: 400 1.05rem/1.7 var(--serif); hyphens: auto;
}
/* Texte justifié comme dans le livre, sauf sur petit écran où les lignes trop courtes se troueraient. */
@media (min-width: 40rem) { .extrait-texte__page { text-align: justify; } }
/* Comme dans le livre : une ligne blanche entre les paragraphes, sans alinéa. */
.extrait-texte__page p { margin: 0; }
.extrait-texte__page p + p { margin-top: 1.7em; }
.extrait-texte__page p.enchaine { margin-top: 0; }
.extrait-texte__page .signature { text-align: right; font-style: italic; }
.extrait-texte__page h3 {
  margin: 0 0 2.25rem; text-align: center; font: 600 .78rem/1.4 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--encre-2);
}
.extrait-texte__page h3::after { content: ""; display: block; width: 2.5rem; height: 1px; margin: .9rem auto 0; background: currentColor; opacity: .4; }
.extrait-texte__page p + h3 { margin-top: 4rem; }
.extrait-texte__page h3 + p::first-letter { float: left; margin: .1em .12em 0 0; font-size: 3.3em; line-height: .8; font-weight: 500; color: var(--accent); }
.extrait-texte__fermer {
  display: block; margin: 3rem auto 0; padding: .4rem .8rem; border: 0; background: none;
  font: 500 .9rem var(--sans); color: var(--encre-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.extrait-texte__fermer:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .extrait-texte::details-content { transition: none; }
  .extrait-texte[open] .extrait-texte__page { animation: none; }
}

html:has(.feuilleter[open]) { overflow: hidden; }
.feuilleter {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: radial-gradient(120% 80% at 50% 20%, #2a3560, #121830 75%); color: var(--creme);
}
.feuilleter::backdrop { background: rgb(10 14 28 / 0.7); }
.feuilleter[open] { display: grid; grid-template-rows: auto 1fr auto; }
.feuilleter__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2rem); }
.feuilleter__barre h2 { font-size: 1.15rem; margin: 0; color: var(--creme); font-weight: 380; }
.feuilleter__scene { display: grid; place-items: center; min-height: 0; padding: 0 clamp(.75rem, 3vw, 2rem); overflow: hidden; }
.feuilleter__livre { width: min(94vw, calc((100dvh - 10rem) * 1.41)) !important; }
@media (max-width: 40rem) { .feuilleter__livre { width: min(90vw, calc((100dvh - 10rem) * 0.705)) !important; } }
.feuilleter__commandes { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 1rem 1rem 1.5rem; font-size: .9rem; color: var(--creme-2); }
.feuilleter__compteur { min-width: 7ch; text-align: center; font-variant-numeric: tabular-nums; }
.rond {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgb(243 227 191 / 0.1); color: var(--creme); border: 1px solid rgb(243 227 191 / 0.3);
  font: 400 1.2rem/1 var(--sans); cursor: pointer; transition: background .15s, color .15s;
}
.rond:hover:not(:disabled) { background: var(--creme); color: var(--nuit); }
.rond:disabled { opacity: .35; cursor: default; }
.feuilleter__chargement { color: var(--creme-2); }

.page-livre { background: #fff; overflow: hidden; }
.page-livre img { width: 100%; height: 100%; object-fit: cover; }
.page-livre--blanche { background: #fbfaf6; }
.page-livre--fin { background: #fbfaf6; color: var(--encre); display: flex; }
.page-livre--fin > div { margin: auto; padding: 12%; text-align: center; }
.page-livre--fin p { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2.4vw, 1.4rem); line-height: 1.4; margin-bottom: 1.5em; }
.page-livre--fin .bouton { font-size: .85rem; }

/* Styles de base de la bibliothèque page-flip (MIT). */
.stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); touch-action: pan-y; }
.sft__wrapper { position: relative; width: 100%; box-sizing: border-box; }
.stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.stf__block { position: absolute; width: 100%; height: 100%; box-sizing: border-box; perspective: 2000px; }
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position: absolute; left: 0; top: 0; }

/* ------------------------------------------------------------------ Boutons des boutiques */
/* Même taille, 3 par ligne au plus (2 sur petit écran), centrés. */
.boutiques { justify-content: center; }
.boutiques li { flex: 0 0 calc((100% - 1.2rem) / 3); min-width: 0; }
@media (max-width: 26rem) { .boutiques li { flex-basis: calc((100% - .6rem) / 2); } }
.boutique {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; height: 3rem; padding: 0 .6rem;
  background: #fff; color: var(--encre); border: 1px solid var(--filet); border-radius: 12px;
  font: 600 .95rem/1 var(--sans); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.boutique:hover { color: var(--encre); border-color: rgb(22 26 38 / 0.3); box-shadow: var(--ombre); transform: translateY(-1px); }
a.boutique[target="_blank"]::after { content: none; }
.boutique__logo { width: auto; height: 1.3rem; }
.boutique__logo--amazon { height: 1.15rem; margin-top: .3rem; }
.boutique__logo--kobo { height: 1.05rem; }
.boutique__logo--carre { height: 2rem; }
.boutique__nom--bookelis { color: #001045; font-weight: 700; letter-spacing: -0.01em; }
/* Libellés qui imitent le lettrage des logos : Inter très gras pour la Fnac,
   Marcellus (réduite aux lettres de « DECITRE ») pour Decitre. */
.boutique__nom--fnac { color: #141414; font-weight: 850; letter-spacing: -0.05em; text-transform: lowercase; font-size: 1.1rem; }
.boutique__nom--decitre { color: #d21217; font: 400 1rem/1 "Marcellus Decitre", var(--serif); text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------------------------ Prix, appels à l’action, contact */
.edition__prix { font-weight: 600; }
/* Les logos débordent un peu de la ligne sans agrandir le bouton : tous les boutons gardent la même hauteur. */
.bouton__icone { width: auto; height: 1.15rem; margin-block: -.5rem; border-radius: 3px; }
.bouton__icone--amazon { height: 1rem; margin-block: -.2rem -.5rem; border-radius: 0; }
.bouton__icone--nom { height: 1.2rem; transform: translateY(-.12rem); border-radius: 0; }
.bouton__icone--bandeau { height: 1.5rem; border-radius: 4px; }
.appel {
  display: grid; gap: 1.25rem 1.75rem; align-items: center;
  margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff8e8; border: 1px solid #f1dfae; border-radius: var(--rayon);
}
.appel h3 { font-size: 1.55rem; margin-bottom: .4rem; }
.appel p { margin: 0; color: var(--encre-2); }
.appel__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.appel--colonne { max-width: var(--mesure); }
@media (min-width: 30rem) {
  .appel--colonne .appel__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 13rem)); justify-content: center; }
  .appel--colonne .appel__actions .bouton { justify-content: center; }
}
.appel--centre { justify-items: center; text-align: center; }
.appel--centre .appel__actions { justify-content: center; }
/* Sur grand écran, le bouton du milieu est centré sur le titre même si ses voisins n’ont pas la même largeur. */
@media (min-width: 56rem) {
  .appel--centre .appel__actions { display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; }
  .appel--centre .appel__actions > :first-child { justify-self: end; }
  .appel--centre .appel__actions > :last-child { justify-self: start; }
}
.contact__email {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.25rem; border-radius: 12px; background: #fff; border: 1px solid var(--filet);
  font-weight: 500; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.contact__email:hover { color: var(--encre); border-color: rgb(22 26 38 / 0.3); box-shadow: var(--ombre); transform: translateY(-1px); }
.contact__email svg { color: var(--accent); flex: none; }

/* ------------------------------------------------------------------ Accueil : portrait */
.accueil__grille { display: grid; gap: 3rem; align-items: center; }
.accueil__visuel { width: min(18rem, 100%); }
.accueil__portrait { display: block; }
.accueil__portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 1.5rem;
  filter: drop-shadow(2px 4px 6px black);
}
@media (min-width: 56rem) {
  .accueil__grille { grid-template-columns: 1fr auto; gap: 4rem; }
  .accueil__visuel { width: 23rem; }
}

/* ------------------------------------------------------------------ Transitions entre les pages */
/* Fondu entre les pages ; la couverture glisse de la fiche de l’accueil vers la page du livre.
   Ignoré par les navigateurs qui ne gèrent pas les View Transitions. */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
.fiche-livre__couverture img, .livre-couverture img { view-transition-name: couverture-arbres; }
::view-transition-group(couverture-arbres) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
