/* Vitrine de Biblio' Tour, d'après « Biblio Tour - Vitrine v2 » (Claude Design).
   Polices embarquées, aucune ressource externe. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("polices/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("polices/newsreader-italique.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("polices/instrument-sans.woff2") format("woff2");
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f6f3ec;
  color: #1a1714;
  font-family: "Instrument Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #1a1714; }
a:hover { color: #b8442a; }
a:focus-visible, button:focus-visible { outline: 2px solid #d9573a; outline-offset: 3px; }

/* Marque « B·T » : la taille se règle par font-size sur l'élément. */
.mq {
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: .22em;
  background: #1a1714;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mq > span {
  font: 400 .445em/1 "Newsreader", serif;
  color: #f6f3ec;
  display: flex;
  align-items: baseline;
}
.mq i {
  width: .11em;
  height: .11em;
  border-radius: 50%;
  background: #d9573a;
  margin: 0 .04em;
}
.mq.inv { background: #f6f3ec; }
.mq.inv > span { color: #1a1714; }

/* Photos factices hachurées */
.h { background: repeating-linear-gradient(135deg, #e3dccd 0 5px, #dad2c1 5px 10px); }
.h6 { background: repeating-linear-gradient(135deg, #e3dccd 0 6px, #dad2c1 6px 12px); }
.hd { background: repeating-linear-gradient(135deg, #2b2620 0 8px, #241f1a 8px 16px); }

/* En-tête qui se resserre au défilement */
.entete { border-bottom: 1px solid #d9d2c4; position: sticky; top: 0; background: #f6f3ec; z-index: 5; }
.entete-in {
  max-width: 1160px; margin: 0 auto; padding: 26px 24px; transition: padding .3s ease;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.entete .mq { font-size: 68px; transition: font-size .3s ease; }
.entete .nom { font: 400 42px/1 "Newsreader", serif; letter-spacing: -.02em; transition: font-size .3s ease; }
.entete.petit .entete-in { padding: 12px 24px; }
.entete.petit .mq { font-size: 34px; }
.entete.petit .nom { font-size: 23px; }
@media (max-width: 560px) {
  .entete .mq { font-size: 48px; }
  .entete .nom { font-size: 32px; }
  .entete-in { gap: 14px 24px; padding: 18px 16px; }
  .entete.petit .entete-in { padding: 10px 16px; }
  .entete .menu { gap: 6px 16px !important; font-size: 14px !important; }
  .entete.petit .pastille { display: none !important; }
}

/* Écrans du téléphone animé */
.ecran { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .35s ease; opacity: 0; }
.ecran.vu { opacity: 1; }
.onglets { display: flex; font-size: 11px; border-bottom: 1px solid #d9d2c4; }
.onglets span { flex: 1; text-align: center; padding: 8px 0; color: #6e675d; }
.onglets span.on { color: inherit; font-weight: 600; border-bottom: 2px solid #1a1714; }
.barre-app {
  padding: 30px 16px 9px; border-bottom: 1.5px solid #1a1714; display: flex; align-items: center;
  gap: 7px; font: 400 23px/1 "Newsreader", serif; letter-spacing: -.02em;
}
.puce-tel {
  height: 34px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  font: 500 12.5px "Instrument Sans", sans-serif; border: 1px solid #cfc7b7; color: #1a1714;
  transition: all .2s;
}
.puce-tel.on { border-color: #1a1714; background: #1a1714; color: #f6f3ec; }

/* Étagères */
.etagere {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%;
}
.etagere:hover { opacity: .92; }
.etagere:focus-visible { outline: 2px solid #d9573a; outline-offset: 4px; }
.rayon { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; overflow: hidden; padding-top: 20px; }
.sp { flex: none; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .12); }
.sp.r { background-image: linear-gradient(transparent 14%, rgba(246, 243, 236, .35) 14%, rgba(246, 243, 236, .35) 17%, transparent 17%); }
.sp.penche { transform: rotate(-8deg); transform-origin: bottom right; margin-left: 6px; }
.dos {
  flex: none; width: 28px; height: 84px; background: #1a1714; color: #f6f3ec;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), background .3s;
  display: flex; align-items: center; justify-content: center; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .18);
}
.dos span { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 12.5px/1 "Newsreader", serif; white-space: nowrap; }
.etagere.choisie .dos { background: #d9573a; transform: translateY(-18px) rotate(-3deg); }
.planche { display: block; height: 7px; background: #1a1714; box-shadow: 0 6px 0 -2px #cfc7b7; }

/* Livre ouvert */
.illu { position: absolute; inset: 0; }
.illu[hidden] { display: none; }
.puce-livre { font: 500 12.5px "Instrument Sans", sans-serif; padding: 7px 11px; border: 1px solid #cfc7b7; transition: all .2s; }
.puce-livre.on { border-color: #1a1714; background: #1a1714; color: #f6f3ec; }
.touche {
  width: 30px; height: 34px; display: flex; align-items: center; justify-content: center;
  font: 600 13px "Instrument Sans", sans-serif; border: 1px solid #cfc7b7; border-bottom-width: 3px;
  background: #fbf9f4; color: #1a1714; transition: all .15s;
}
.touche.on { background: #1a1714; color: #f6f3ec; }
@media (max-width: 400px) { .touche { width: 24px; } }
.fonc { border-top: 1px solid #d9d2c4; padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.fonc-titre { font: 400 22px/1.1 "Newsreader", serif; opacity: .45; transition: opacity .3s; }
.fonc.on .fonc-titre { opacity: 1; }
.fonc-detail { display: none; }
.fonc.on .fonc-detail { display: block; }

/* Éléments de liste des sections */
.liste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid #cfc7b7; }
.liste li { padding: 11px 0; border-bottom: 1px solid #cfc7b7; font: 400 15px/1.45 "Instrument Sans", sans-serif; }
.liste.clair, .liste.clair li { border-color: #d9d2c4; }
.surtitre { font: 600 12px "Instrument Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #b8442a; }
.statut { font: 600 10.5px "Instrument Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; }
.statut.test { background: #1a1714; color: #f6f3ec; padding: 4px 9px; }
.statut.prevu { border: 1.5px solid currentColor; padding: 3px 8px; }
.h2-section { margin: 0; font: 400 clamp(36px, 4.8vw, 54px)/1.02 "Newsreader", serif; letter-spacing: -.025em; text-wrap: balance; }
.texte { margin: 0; font: 400 17px/1.6 "Instrument Sans", sans-serif; color: #4a443c; text-wrap: pretty; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }

.bouton-contact {
  font: 600 16px "Instrument Sans", sans-serif; background: #1a1714; color: #f6f3ec;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; transition: background .2s;
}
.bouton-contact:hover { background: #b8442a; color: #f6f3ec; }

/* Bouton « remonter en haut », visible après un peu de défilement */
.haut {
  position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 6;
  width: 52px; height: 52px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: #1a1714; color: #f6f3ec; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 23, 20, .22);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.haut.vu { opacity: 1; visibility: visible; transform: none; }
.haut:hover { background: #b8442a; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
