/* beakirkbride.com
   Le monde du livre, et rien d'autre : le vert de la gare la nuit, le papier
   des étiquettes et du registre, le laiton des œillets, le ruban rouge.
   Caslon parce que c'est la typographie anglaise par excellence (Bea écrit en
   anglais britannique) ; Courier pour tout ce qui est tapé au bureau. */

@font-face { font-family: "Caslon Display"; src: url("/fonts/libre-caslon-display-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("/fonts/libre-caslon-text-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("/fonts/libre-caslon-text-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caslon"; src: url("/fonts/libre-caslon-text-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --vert: #0b371d;          /* vert de la couverture */
  --vert-nuit: #072613;
  --papier: #efe3cc;        /* papier de l'étiquette */
  --papier-clair: #f7efdf;
  --encre: #1d2620;
  --encre-douce: #565246;
  --laiton: #bfa66d;        /* filets et œillets */
  --ruban: #a8232e;
  --ruban-sombre: #861a24;
  --creme-doux: #d4c8ab;
  --filet: rgba(191, 166, 109, 0.35);
  --serif: "Caslon", Georgia, "Times New Roman", serif;
  --affiche: "Caslon Display", "Caslon", Georgia, serif;
  --machine: "Courier Prime", "Courier New", monospace;
  --marge: clamp(1.1rem, 5vw, 4rem);
}

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

html { background: var(--vert); color: var(--papier); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  background: var(--vert);
  color: var(--papier);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--papier); color: var(--encre); padding: .6rem 1rem;
  font-family: var(--machine); text-decoration: none;
}
.evitement:focus { top: 1rem; }

/* ——— Bandeau ——— */

.bandeau {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding: 1.1rem var(--marge);
  border-bottom: 1px solid var(--filet);
}
.marque {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .32em;
  font-size: .82rem; color: var(--laiton); text-decoration: none;
}
.bandeau nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.bandeau nav a {
  font-family: var(--machine); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--creme-doux); text-decoration: none;
  padding: .3rem 0;
}
.bandeau nav a:hover { color: var(--papier-clair); text-decoration: underline; text-underline-offset: .3em; }

/* ——— Boutons ——— */

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.35rem;
  font-family: var(--machine); font-weight: 700; font-size: .84rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.bouton--plein { background: var(--ruban); color: var(--papier-clair); }
.bouton--plein:hover { background: var(--ruban-sombre); }
.bouton--trait { border-color: var(--laiton); color: var(--papier); }
.bouton--trait:hover { background: rgba(191, 166, 109, .14); }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ——— Ouverture ——— */

.ouverture {
  display: grid; gap: 2.8rem; align-items: center;
  max-width: 74rem; margin: 0 auto;
  padding: clamp(2.6rem, 8vw, 6.5rem) var(--marge) clamp(3rem, 8vw, 6rem);
}
.surtitre {
  font-family: var(--machine); text-transform: uppercase; letter-spacing: .15em;
  font-size: .78rem; color: var(--laiton); margin-bottom: 1.2rem;
}
.surtitre sup { font-size: .7em; text-transform: none; }
.ouverture h1 {
  font-family: var(--affiche); font-size: clamp(2.75rem, 8.4vw, 5.4rem);
  line-height: .98; letter-spacing: -.012em; color: var(--papier-clair);
  text-wrap: balance; margin-bottom: 1rem;
}
.sous-titre { font-style: italic; font-size: 1.22rem; color: var(--creme-doux); margin-bottom: 1.6rem; }
.accroche { font-size: 1.24rem; line-height: 1.5; max-width: 36ch; text-wrap: pretty; color: var(--papier-clair); margin-bottom: 2rem; }
.achats { display: flex; flex-wrap: wrap; gap: .8rem; }
.achats__note { font-family: var(--machine); font-size: .8rem; letter-spacing: .06em; color: var(--creme-doux); margin: 1rem 0 0; }
.achats__note a { color: var(--papier); }
.ouverture__couverture { margin: 0; justify-self: center; width: min(68vw, 23rem); }
.ouverture__couverture img {
  width: 100%; transform: rotate(-2deg);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, .45), 0 .25rem .6rem rgba(0, 0, 0, .3);
}

@media (min-width: 52rem) {
  .ouverture { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

/* ——— Le registre : la page du livre posée sur le comptoir ——— */

.registre { background: var(--papier); color: var(--encre); }
.registre__dedans {
  display: grid; gap: 2.6rem; align-items: start;
  max-width: 74rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) var(--marge);
}
.registre__page {
  position: relative; background: var(--papier-clair);
  border: 1px solid #d8c9a8; box-shadow: 0 .15rem .35rem rgba(40, 30, 10, .1);
  padding: 1.7rem 1.3rem 1.3rem 2.7rem;
}
.registre__page::before {           /* marge rouge du registre */
  content: ""; position: absolute; top: 0; bottom: 0; left: 1.6rem;
  border-left: 3px double rgba(168, 35, 46, .55);
}
.registre h2 { font-family: var(--affiche); font-size: clamp(1.9rem, 4.6vw, 2.5rem); line-height: 1.05; }
.registre__lieu {
  font-family: var(--machine); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--encre-douce); margin: .5rem 0 1.4rem;
}
.registre table { width: 100%; border-collapse: collapse; }
.registre th {
  font-family: var(--machine); font-weight: 400; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--encre-douce); text-align: left;
  border-bottom: 3px double rgba(29, 38, 32, .4); padding: 0 .9rem .45rem 0;
}
.registre td { border-bottom: 1px solid rgba(64, 92, 122, .3); padding: .8rem .9rem .8rem 0; vertical-align: top; }
.registre td:first-child { font-family: var(--machine); font-size: .86rem; white-space: nowrap; padding-top: .95rem; }
.registre td:first-child sup { font-size: .7em; }
.registre__objet { font-style: italic; font-size: 1.04rem; line-height: 1.45; }
.registre__issue { display: block; font-family: var(--machine); font-style: normal; font-size: .8rem; color: var(--encre-douce); margin-top: .3rem; }
.registre__suite { font-style: italic; color: var(--encre-douce); margin: 1rem 0 0; }
.registre__recit p { font-size: 1.12rem; }
.registre__recit p:first-child::first-line { font-variant: small-caps; letter-spacing: .03em; }

@media (min-width: 56rem) {
  .registre__dedans { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .registre__recit { padding-top: 1.2rem; }
}

/* ——— Ce que contient le livre ——— */

.promesses { max-width: 74rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) var(--marge) 1rem; }
.promesses ul { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 3.5rem; }
.promesses li { border-top: 1px solid var(--filet); padding: 1.4rem 0 1.1rem; }
.promesses h3 { font-family: var(--affiche); font-size: 1.55rem; line-height: 1.15; color: var(--papier-clair); margin-bottom: .45rem; }
.promesses p { color: var(--creme-doux); margin: 0; max-width: 42ch; }
@media (min-width: 46rem) { .promesses ul { grid-template-columns: 1fr 1fr; } }

/* ——— Le prochain livre : l'étiquette de la couverture ——— */

.prochain { padding: clamp(3rem, 8vw, 5.5rem) var(--marge) clamp(4rem, 10vw, 7rem); }
.etiquette {
  position: relative; isolation: isolate;
  width: min(100%, 29rem); margin: 3.2rem auto 0;
  padding: 4.9rem 1.7rem 1.9rem;
  color: var(--encre);
  filter: drop-shadow(0 1.1rem 1.4rem rgba(0, 0, 0, .4));
}
.etiquette::before {                 /* le carton, coins coupés */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--papier);
  clip-path: polygon(17% 0, 83% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
}
@media (min-width: 40rem) { .etiquette { transform: rotate(-1.4deg); } }

.etiquette__oeillet {
  position: absolute; top: 1.45rem; left: 50%; width: 1.5rem; height: 1.5rem; margin-left: -.75rem;
  border-radius: 50%; background: var(--vert);
  box-shadow: 0 0 0 .3rem var(--laiton), 0 0 0 .38rem rgba(0, 0, 0, .22), inset 0 .15rem .3rem rgba(0, 0, 0, .55);
}
.etiquette__ruban { position: absolute; top: -2.9rem; left: 50%; width: 10rem; height: 5.2rem; margin-left: -1.1rem; pointer-events: none; }

.etiquette__en-tete {
  font-family: var(--machine); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  text-align: center; color: var(--encre-douce);
  border-bottom: 1px solid rgba(29, 38, 32, .25); padding-bottom: .7rem; margin-bottom: 1.3rem;
}
.etiquette__titre { font-family: var(--affiche); font-size: clamp(2.1rem, 7vw, 2.7rem); line-height: 1; text-align: center; margin-bottom: .9rem; }
.etiquette__texte { text-align: center; font-size: 1.08rem; margin-bottom: .4rem; text-wrap: balance; }

.fiche__ligne {
  display: flex; align-items: baseline; gap: .8rem;
  border-bottom: 2px dotted rgba(29, 38, 32, .55); margin: 1.4rem 0 1.3rem;
}
.fiche__ligne:focus-within { border-bottom: 2px solid var(--ruban); }
.fiche__ligne label {
  flex: none; font-family: var(--machine); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--encre-douce);
}
.fiche__ligne input {
  flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent;
  font-family: var(--machine); font-size: 1.05rem; color: var(--encre); padding: .55rem 0;
}
.fiche__ligne input::placeholder { color: rgba(86, 82, 70, .7); }
.fiche__ligne input:focus-visible { outline: none; }
.fiche__ligne:has(input[aria-invalid="true"]) { border-bottom: 2px solid var(--ruban); }
.etiquette .bouton { width: 100%; }
.fiche__statut { min-height: 1.4em; font-size: .92rem; margin: .8rem 0 0; color: var(--ruban); }
.input--hidden { display: none !important; }

.etiquette__merci { text-align: center; font-size: 1.18rem; margin: 1.6rem 0 1.2rem; }
.etiquette__merci:empty { display: none; }
.etiquette__merci:focus { outline: none; }
.etiquette__mentions { font-size: .82rem; color: var(--encre-douce); text-align: center; margin: 1rem 0 0; }
.etiquette__mentions a { color: var(--encre); }

.etiquette__tampon {               /* tamponné à l'inscription, sous le message */
  display: none; width: fit-content; margin: .4rem auto 1.4rem;
  flex-direction: column; align-items: center;
  border: 4px double var(--ruban); color: var(--ruban); padding: .45rem .9rem;
  font-family: var(--machine); font-weight: 700; font-size: .95rem; line-height: 1.3;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: rotate(-9deg);
}
.est-inscrit .etiquette__tampon { display: flex; animation: tamponner .42s cubic-bezier(.2, .9, .3, 1.25) forwards; }
.est-inscrit form, .est-inscrit .etiquette__texte { display: none; }
@keyframes tamponner {
  from { opacity: 0; transform: rotate(-9deg) scale(1.8); }
  to { opacity: .86; transform: rotate(-9deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .est-inscrit .etiquette__tampon { animation: none; opacity: .86; transform: rotate(-9deg); }
  .bouton { transition: none; }
}

.prochain__retour { text-align: center; margin: 2.6rem 0 0; font-family: var(--machine); font-size: .82rem; letter-spacing: .08em; }
.prochain__retour a { color: var(--creme-doux); }
.prochain__chapeau { text-align: center; color: var(--creme-doux); font-style: italic; margin: 0 auto; max-width: 34ch; }

/* ——— Pages de texte : mentions, confidentialité, 404 ——— */

.page-texte {
  background: var(--papier); color: var(--encre);
  max-width: 46rem; margin: clamp(2rem, 6vw, 4rem) auto;
  padding: clamp(1.6rem, 5vw, 3.2rem);
}
@media (max-width: 47.9rem) { .page-texte { margin-left: var(--marge); margin-right: var(--marge); } }
.page-texte h1 { font-family: var(--affiche); font-size: clamp(2.1rem, 6vw, 2.8rem); line-height: 1.05; margin-bottom: 1.4rem; }
.page-texte h2 { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; margin: 1.9rem 0 .5rem; }
.page-texte a { color: var(--ruban); }
.a-completer { background: #ffe08a; color: #5a3b00; padding: 0 .3em; font-family: var(--machine); font-size: .9em; }
.page-texte .petit { font-size: .9rem; color: var(--encre-douce); }

/* ——— Pied ——— */

.pied {
  background: var(--vert-nuit); border-top: 1px solid var(--filet);
  padding: 2rem var(--marge) 2.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; justify-content: space-between; align-items: center;
  font-family: var(--machine); font-size: .78rem; letter-spacing: .06em; color: var(--creme-doux);
}
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pied a { color: var(--creme-doux); }
.pied a:hover { color: var(--papier-clair); }

/* ——— Registre des lecteurs : l'avis en un clic ——— */

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.avis {
  max-width: 42rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) var(--marge) clamp(4rem, 10vw, 6rem);
  text-align: center; border-top: 1px solid var(--filet);
}
.avis__surtitre { font-family: var(--machine); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--laiton); margin-bottom: .8rem; }
.avis h2 { font-family: var(--affiche); font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1.05; color: var(--papier-clair); margin-bottom: .6rem; }
.avis__chapeau { color: var(--creme-doux); font-style: italic; margin-bottom: 1.8rem; }

.avis__notes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.avis__note {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  padding: .9rem .25rem .8rem; border: 1px solid var(--filet); border-radius: 3px;
  background: transparent; color: var(--papier); cursor: pointer;
  font-family: var(--machine); font-size: .7rem; letter-spacing: .04em; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.avis__emoji { font-size: 2.1rem; line-height: 1; transition: transform .18s cubic-bezier(.2, .9, .3, 1.4); }
.avis__note:hover { border-color: var(--laiton); }
.avis__note:hover .avis__emoji { transform: scale(1.18) rotate(-6deg); }
.avis__note[aria-pressed="true"] { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.avis__note[aria-pressed="true"] .avis__emoji { transform: scale(1.12); }
.a-vote .avis__note[aria-pressed="false"] { opacity: .55; }
.a-vote .avis__note[aria-pressed="false"]:hover { opacity: 1; }

.avis__statut { min-height: 1.5em; color: var(--papier-clair); margin: 1.2rem 0 .4rem; }
.avis__suite { text-align: left; }
.avis__groupe { border: 0; margin: 1.3rem 0 0; padding: 0; }
.avis__groupe legend { font-family: var(--machine); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); margin-bottom: .7rem; padding: 0; }
.avis__puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { position: relative; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puce > span {
  display: inline-block; padding: .45rem .85rem; border: 1px solid var(--filet); border-radius: 999px;
  color: var(--papier); font-size: .95rem; cursor: pointer; user-select: none;
  transition: background-color .15s ease, color .15s ease;
}
.puce > span:hover { border-color: var(--laiton); }
.puce input:checked + span { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.puce input:focus-visible + span { outline: 2px solid var(--laiton); outline-offset: 2px; }

.avis__soirs { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 40rem) { .avis__soirs { grid-template-columns: 1fr 1fr; } }
.avis__champ { display: block; font-family: var(--machine); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--laiton); }
.avis__champ small { text-transform: none; letter-spacing: 0; color: var(--creme-doux); }
.avis select, .avis textarea {
  display: block; width: 100%; margin-top: .45rem;
  background: rgba(239, 227, 204, .07); color: var(--papier); border: 1px solid var(--filet); border-radius: 2px;
  font-family: var(--serif); font-size: 1rem; padding: .6rem .7rem; letter-spacing: 0; text-transform: none;
}
.avis select option { background: var(--vert-nuit); color: var(--papier); }
.avis textarea { resize: vertical; min-height: 5.5rem; }
.avis__commentaire { margin-top: 1.4rem; }
.avis__envoyer { margin-top: 1.6rem; }
.avis__fin { font-size: 1.15rem; color: var(--papier-clair); }
.avis__fin:focus { outline: none; }
.avis__fin a { color: var(--papier); }
.avis__fin .bouton { margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) {
  .avis__emoji, .avis__note, .puce > span { transition: none; }
  .avis__note:hover .avis__emoji { transform: none; }
}
@media (max-width: 26rem) {
  .avis__notes { gap: .3rem; }
  .avis__note { font-size: .62rem; padding: .7rem .1rem; }
  .avis__emoji { font-size: 1.8rem; }
}

/* ——— Résultats (page privée de l'autrice) ——— */

.page-texte--large { max-width: 62rem; }
.resultats__table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.resultats__table th { text-align: left; font-weight: 400; padding: .35rem 1rem .35rem 0; white-space: nowrap; }
.resultats__table td { padding: .35rem .6rem .35rem 0; }
.resultats__table td:last-child { white-space: nowrap; font-family: var(--machine); font-size: .85rem; }
.resultats__table meter { width: 100%; min-width: 6rem; height: 1rem; }
.resultats__soirs li { margin-bottom: .2rem; }
.resultats__mot { margin: 0 0 1rem; padding: .8rem 1rem; background: var(--papier-clair); border-left: 3px solid var(--laiton); }
.resultats__mot p { margin-bottom: .3rem; }
