/* Librairie des Univers — direction A « Sable et encre » (planches validées le 2026-11-28).
   Polices hébergées sur le site (fonts/), aucun appel à Google. */
@import url('fonts/fonts.css');

:root {
  --fond: #e7dcca; --papier: #f3ece0; --carte: #fffdf8; --encre: #1c1916; --doux: #5d5347; --pale: #7a6e60; --trait: #d6cab7;
  --acc: #2f6f6a; --corail: #c8603f; --moutarde: #e3a73b; --vert: #3f9a5e; --rouge: #b04a33;
  --titre: Gloock, Georgia, 'Times New Roman', serif; --texte: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif; --main: 'Gochi Hand', 'Comic Sans MS', cursive;
  --gout: max(20px, env(safe-area-inset-left, 0px)); --gout-d: max(20px, env(safe-area-inset-right, 0px));
  --ombre-carte: 0 12px 26px -16px rgba(30, 22, 12, .45), 0 0 0 1px rgba(30, 22, 12, .06);
  --haut-barre: 76px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--haut-barre) + 12px); }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #e0a15a; outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evite { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--encre); color: var(--papier); padding: 10px 16px; border-radius: 8px; }
.evite:focus { top: 12px; }

/* texte servi par index.php pour les moteurs : caché dès que le site s'affiche */
html.js #ssr { display: none; }
#ssr { max-width: 70ch; margin: 40px auto; padding: 0 20px; }

/* ---------------------------------------------------------------- barre du haut */
.barre { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 22px; min-height: var(--haut-barre);
  padding: 10px var(--gout-d) 10px var(--gout); padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(231, 220, 202, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(28, 25, 22, .12); }
.marque { display: block; flex: none; line-height: 0; }
.marque img { width: 158px; height: auto; }
.menu { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.menu a:hover { border-color: rgba(28, 25, 22, .35); }
.menu a[aria-current="page"] { border-color: currentColor; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; border-radius: 50%; cursor: pointer; place-items: center; }
.tiroir { position: fixed; inset: 0; z-index: 60; display: none; }
.tiroir.ouvert { display: block; }
.tiroir .voile { position: absolute; inset: 0; background: rgba(28, 25, 22, .45); animation: fondu .2s ease-out; }
.tiroir nav { position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); background: var(--papier); padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 24px;
  display: grid; align-content: start; gap: 4px; box-shadow: -12px 0 40px rgba(0, 0, 0, .25); animation: glisse .25s cubic-bezier(.2, .8, .2, 1); }
.tiroir nav a { text-decoration: none; font-family: var(--titre); font-size: 26px; padding: 8px 0; }
.tiroir nav a[aria-current="page"] { color: var(--corail); }
.tiroir .fermer { justify-self: end; width: 46px; height: 46px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 28px; line-height: 1; }
.tiroir nav a.btn-plein { margin-top: 18px; font: 600 16px var(--texte); padding: 0 22px; color: var(--papier); }
@keyframes fondu { from { opacity: 0; } }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } }

/* ---------------------------------------------------------------- boutons */
.btn-cmd, .btn-plein, .btn-trait { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 99px;
  font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; cursor: pointer; border: 0; transition: transform .15s ease, background-color .2s, box-shadow .2s; }
.btn-cmd, .btn-plein { background: var(--encre); color: var(--papier); }
.btn-cmd:hover, .btn-plein:hover { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.btn-trait { background: none; border: 1.5px solid currentColor; }
.btn-trait:hover { background: rgba(28, 25, 22, .06); }
.btn-cmd:active, .btn-plein:active, .btn-trait:active { transform: scale(.97); }
.btn-cmd { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.voir { font-weight: 600; font-size: 15px; text-underline-offset: 5px; white-space: nowrap; }
.main { font: 400 23px/1.1 var(--main); color: var(--corail); margin-bottom: 4px; }

/* ---------------------------------------------------------------- état ouvert / fermé */
.etat { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.pastille { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5fbf7a; box-shadow: 0 0 0 4px rgba(95, 191, 122, .25); }
.etat.ferme .pastille { background: #d4876a; box-shadow: 0 0 0 4px rgba(212, 135, 106, .25); }
.etat.ouvert .pastille { animation: pouls 2.4s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 7px rgba(95, 191, 122, .12); } }

/* ---------------------------------------------------------------- accueil : fenêtres */
.fenetre { position: relative; height: 62vh; min-height: 340px; max-height: 620px; overflow: hidden; background: var(--encre); }
.fenetre .vue { position: absolute; left: 0; right: 0; top: 0; height: 100vh; background: center / cover no-repeat; will-change: transform; }
.heros { height: calc(100svh - 0px); min-height: 560px; max-height: 920px; margin-top: calc(-1 * var(--haut-barre)); display: flex; align-items: flex-end; }
.heros .vue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 12, .05) 25%, rgba(20, 16, 12, .78) 100%); }
.heros-texte { position: relative; z-index: 1; color: var(--papier); padding: 0 var(--gout-d) 64px var(--gout); max-width: 820px; display: grid; gap: 16px; }
.heros h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.sur { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.heros .btn-plein { background: var(--papier); color: var(--encre); }
.heros .btn-trait { color: var(--papier); }
.heros .btn-trait:hover { background: rgba(255, 255, 255, .1); }
.heros .etat { color: var(--papier); }
.panneau { position: relative; z-index: 2; padding: 88px var(--gout-d) 88px var(--gout); }
.panneau > .col, .panneau > .bloc { max-width: 1200px; margin: 0 auto; }
.panneau h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; margin-bottom: 20px; }
.p-papier { background: var(--papier); } .p-sable { background: var(--fond); }
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; max-width: 1200px; margin: 0 auto; }
.intro .txt { display: grid; gap: 14px; max-width: 60ch; }
.col-dessin { display: grid; gap: 20px; justify-items: center; }
.dessin { width: min(290px, 100%); border-radius: 18px; }
.horaires { margin: 0; display: grid; gap: 8px; width: 100%; max-width: 360px; }
.horaires div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed #c4b59d; font-size: 15px; }
.horaires dt { font-weight: 600; } .horaires dd { margin: 0; text-align: right; }
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tuile { display: grid; gap: 6px; }
.tuile .photo { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--trait); }
.tuile .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tuile:hover .photo img { transform: scale(1.04); }
.tuile .t { font-weight: 700; font-size: 19px; margin-top: 4px; } .tuile .d { font-size: 15px; color: var(--doux); }
.tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 8px; }
.tete h2 { margin-bottom: 0; }
.cc-accueil { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; max-width: 1100px; margin: 0 auto; }
.cc-accueil .couv-wrap { width: 250px; justify-self: center; transform: rotate(-2deg); }
.cc-accueil .txt { display: grid; gap: 12px; max-width: 60ch; }
.cc-accueil .auteur { color: var(--doux); }
.evt-court { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; max-width: 760px; }
.evt-court time { display: grid; place-items: center; align-content: center; width: 104px; height: 112px; border-radius: 16px; line-height: 1; background: var(--acc); color: var(--papier); }
.evt-court .j { font: 400 46px/1 var(--titre); } .evt-court .m { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-top: 4px; }
.evt-court h3 { font-size: 26px; margin-bottom: 6px; } .evt-court p { margin-bottom: 10px; }
.vide { color: var(--doux); font-size: 17px; }

/* ---------------------------------------------------------------- pied */
.pied { background: var(--encre); color: #e7dcca; padding: 64px var(--gout-d) calc(36px + env(safe-area-inset-bottom, 0px)) var(--gout); }
.pied-grille { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: auto 1.1fr 1fr; gap: 40px; align-items: start; }
.pied .mono { width: 104px; height: 104px; }
.pied h2 { font-size: 28px; margin-bottom: 10px; }
.pied address { font-style: normal; line-height: 1.7; }
.pied a { text-decoration-color: rgba(231, 220, 202, .4); text-underline-offset: 4px; }
.pied .liens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; font-size: 15px; }
.pied .liens a { text-decoration: none; } .pied .liens a:hover { text-decoration: underline; }
.pied .reseaux { display: flex; gap: 12px; margin-top: 16px; }
.pied .reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(231, 220, 202, .35); }
.pied .reseaux a:hover { background: rgba(231, 220, 202, .1); }
.pied .bas { max-width: 1200px; margin: 40px auto 0; padding-top: 18px; border-top: 1px solid rgba(231, 220, 202, .16); font-size: 13.5px; color: #b9ab95; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.pied .etat { color: #e7dcca; margin-top: 12px; }

/* ---------------------------------------------------------------- pages intérieures */
.contenu { padding: 52px var(--gout-d) 90px var(--gout); max-width: 1240px; margin: 0 auto; }
.tete-page { display: grid; gap: 8px; margin-bottom: 26px; max-width: 72ch; }
.tete-page h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.03; }
.chapo { color: var(--doux); font-size: 18px; }
.fil { font-size: 14px; color: var(--pale); margin-bottom: 12px; }
.fil a { text-decoration: none; } .fil a:hover { text-decoration: underline; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 34px; }
.filtre { padding: 0; border: 2px solid transparent; border-radius: 11px; background: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease; line-height: 0; }
.filtre img { width: 150px; height: 55px; object-fit: cover; border-radius: 8px; }
.filtre:hover { transform: translateY(-2px); }
.filtre[aria-pressed="true"] { border-color: var(--encre); }

/* ---------------------------------------------------------------- couvertures (communes) */
.couv { position: relative; display: block; border-radius: 2px 4px 4px 2px; background: #d9ccb6; }
.couv img { display: block; width: 100%; height: auto; border-radius: inherit; }
.couv::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .30) 0, rgba(255, 255, 255, .22) 1.6%, rgba(0, 0, 0, .10) 3.4%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 94%, rgba(0, 0, 0, .08) 100%),
              linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%); }

/* couverture absente (livre pas encore complété) : une couverture composée */
.couv-vide { display: grid; align-content: center; gap: 8px; aspect-ratio: 2 / 3; padding: 14% 12%; text-align: center; background: linear-gradient(160deg, #2f6f6a, #23514d); color: #f3ece0; }
.couv-vide span { font: 400 clamp(13px, 1.1em, 18px)/1.15 var(--titre); } .couv-vide small { font-size: 11px; opacity: .85; }
.pres-etagere .couv-vide, .pres-presentoir .couv-vide { height: 100%; width: auto; }

/* ---------------------------------------------------------------- grilles de livres : trois présentations (réglage de l'admin) */
.livres { list-style: none; margin: 0; padding: 0; }
.livre { position: relative; }
.livre[hidden] { display: none; }
.lien-livre { display: grid; gap: 4px; text-decoration: none; justify-items: center; text-align: center; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.livre .couv { width: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.livre .titre { font-weight: 700; font-size: 15px; line-height: 1.28; margin-top: 14px; }
.livre .auteur { font-size: 14px; color: var(--doux); }
/* le rang : toujours au-dessus de la couverture, hors de la zone inclinée */
.rang { position: absolute; top: 10px; left: 10px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px var(--texte); background: var(--moutarde); color: var(--encre); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px 3px 8px; border-radius: 99px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.en-rayon { color: #2c7346; background: #e2f0e4; }
.badge.commande { color: #8a5a1c; background: #f6e9d2; }

/* L3 cartes inclinées (par défaut) */
.pres-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 24px; }
.pres-cartes .livre { background: var(--carte); border-radius: 18px; box-shadow: var(--ombre-carte); }
.pres-cartes .lien-livre { padding: 26px 16px 18px; }
.pres-cartes .couv { width: 128px; box-shadow: 4px 6px 14px -4px rgba(30, 22, 12, .45); }
.pres-cartes .livre:nth-child(odd) .couv { transform: rotate(-2deg); }
.pres-cartes .livre:nth-child(even) .couv { transform: rotate(1.6deg); }
.pres-cartes .lien-livre:hover .couv { transform: translateY(-6px) rotate(0deg); box-shadow: 8px 14px 22px -8px rgba(30, 22, 12, .5); }
/* L1 étagère en bois */
.pres-etagere { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 46px 26px; }
.pres-etagere .lien-livre { justify-items: start; text-align: left; }
.pres-etagere .couv-zone { position: relative; width: 100%; height: 210px; display: flex; align-items: flex-end; justify-content: center; }
.pres-etagere .couv-zone::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -22px; height: 22px; background: linear-gradient(180deg, #caa980, #b8956a 55%, #8f6f4c); border-radius: 2px; box-shadow: 0 8px 12px -6px rgba(60, 40, 15, .5); }
.pres-etagere .couv { width: auto; height: 100%; }
.pres-etagere .couv img { height: 100%; width: auto; }
.pres-etagere .couv { box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 6px 4px 10px -2px rgba(40, 25, 10, .35), 18px 12px 26px -10px rgba(40, 25, 10, .35); }
.pres-etagere .titre { margin-top: 36px; }
.pres-etagere .rang { top: -12px; left: -8px; background: var(--encre); color: var(--papier); }
.pres-etagere .lien-livre:hover .couv { transform: translateY(-8px) rotate(-1deg); }
/* L2 présentoir éclairé */
.pres-presentoir { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 30px 24px; padding: 40px 26px 24px; border-radius: 18px;
  background: radial-gradient(70% 90% at 50% -20%, rgba(255, 226, 170, .75), rgba(255, 226, 170, 0) 62%), linear-gradient(180deg, #efe4d2, #e2d3bc); }
.pres-presentoir .couv-zone { position: relative; height: 220px; display: flex; align-items: flex-end; justify-content: center; }
.pres-presentoir .couv-zone::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -8px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 40, 15, .32), rgba(60, 40, 15, 0)); filter: blur(2px); }
.pres-presentoir .couv { width: auto; height: 100%; box-shadow: 0 2px 2px rgba(0, 0, 0, .18), 0 24px 30px -16px rgba(60, 40, 15, .55); }
.pres-presentoir .couv img { height: 100%; width: auto; }
.pres-presentoir .rang { top: -10px; left: 0; }
.pres-presentoir .lien-livre:hover .couv { transform: translateY(-6px); }
/* rangée de l'accueil : une seule ligne qu'on fait glisser */
.rangee { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 22px; margin: 0 -4px; scrollbar-width: thin; }
.rangee .livre { scroll-snap-align: start; }
.rangee.pres-etagere { grid-auto-columns: 150px; padding-bottom: 40px; }
.rangee.pres-presentoir { grid-auto-columns: 170px; }

/* ---------------------------------------------------------------- « Vous l'avez ? » */
.chercher { margin: 64px 0 0; background: var(--fond); border-radius: 22px; padding: 30px; display: grid; gap: 12px; }
.chercher h2 { font-size: 32px; }
.chercher form { display: flex; gap: 10px; flex-wrap: wrap; }
.chercher input { flex: 1 1 260px; min-width: 0; font: 17px var(--texte); padding: 12px 16px; min-height: 50px; border-radius: 99px; border: 1.5px solid #c9bba5; background: var(--carte); color: var(--encre); }
.chercher input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(28, 25, 22, .12); }
.resultats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.resultats li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; background: var(--carte); border-radius: 14px; padding: 12px 16px; }
.resultats b { font-weight: 700; } .resultats small { color: var(--doux); display: block; }
.resultats .badge { margin: 0; }
.resultats .rien { grid-template-columns: 1fr; color: var(--doux); }
.aide { font-size: 14px; color: var(--doux); }
.guide { font-size: 14px; line-height: 1.45; color: var(--doux); background: rgba(47, 111, 106, .08); border-left: 3px solid var(--acc); padding: 8px 12px; border-radius: 0 10px 10px 0; }
.guide b { color: var(--encre); }

/* ---------------------------------------------------------------- fiche rapide (meilleures ventes) */
dialog.fiche-rapide { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); border: 0; padding: 0; border-radius: 22px; background: var(--papier); color: var(--encre); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
dialog.fiche-rapide::backdrop { background: rgba(28, 25, 22, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.fiche-rapide[open] { animation: monte .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes monte { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.fr-corps { display: grid; grid-template-columns: 210px 1fr; gap: 30px; padding: 32px; }
.fr-corps .couv { align-self: start; width: 210px; transform: rotate(-1.5deg); box-shadow: 12px 16px 30px -12px rgba(40, 25, 10, .5); }
.fr-txt { display: grid; gap: 10px; align-content: start; min-width: 0; }
.fr-txt > .badge { justify-self: start; }
.fr-txt h2 { font-size: 30px; line-height: 1.1; }
.fr-txt .auteur { font-size: 17px; }
.meta { color: var(--doux); font-size: 14.5px; }
/* résumé de l'éditeur, remis en page (étiquettes, accroche, paragraphes, presse) */
.resume { position: relative; display: grid; gap: 10px; font-size: 16px; line-height: 1.6; }
.resume p { margin: 0; }
.resume.replie { max-height: 300px; overflow: hidden; }
.resume.replie::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(243, 236, 224, 0), var(--papier)); pointer-events: none; }
.r-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.r-etiquettes span { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--acc); background: rgba(47, 111, 106, .1); padding: 4px 10px; border-radius: 99px; }
.r-accroche { font: 400 21px/1.3 var(--titre); color: var(--encre); text-wrap: balance; }
.r-dialogue { padding-left: 14px; }
.r-presse { display: grid; gap: 8px; margin-top: 4px; padding: 12px 16px; border-left: 3px solid var(--moutarde); background: rgba(227, 167, 59, .09); border-radius: 0 12px 12px 0; }
.r-presse p { font-style: italic; font-size: 15px; color: #4c4339; }
.r-presse cite { font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pale); white-space: nowrap; }
.r-suite { justify-self: start; margin-top: -2px; border: 0; background: none; padding: 6px 0; font: 600 15px var(--texte); color: var(--encre); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
dialog.fiche-rapide { overflow-y: auto; }
.fr-fermer { position: absolute; top: 10px; right: 10px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(28, 25, 22, .08); cursor: pointer; font-size: 26px; line-height: 1; }
.fr-fermer:hover { background: rgba(28, 25, 22, .14); }

/* ---------------------------------------------------------------- coups de cœur (L4) */
.cc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.cc-carte { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 16px 26px; align-items: start; }
.cc-carte .couv { grid-row: 1 / span 2; width: 190px; box-shadow: 12px 16px 30px -12px rgba(40, 25, 10, .5); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.cc-carte:hover .couv { transform: translateY(-4px) rotate(-1deg); }
.cc-carte > a.couv-lien { grid-row: 1 / span 2; line-height: 0; }
.mot { position: relative; background: #fffdf6; padding: 16px 18px 10px; border-radius: 3px; transform: rotate(1.8deg); box-shadow: 0 8px 18px -10px rgba(30, 22, 12, .45); margin-top: 10px;
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, rgba(47, 111, 106, .18) 25px 26px); }
.mot::before { content: ""; position: absolute; top: -12px; left: 50%; width: 44px; height: 22px; transform: translateX(-50%) rotate(-4deg); background: rgba(200, 96, 63, .55); }
.mot-txt { font: 400 21px/26px var(--main); color: #22303a; }
.mot-sig { margin-top: 4px; text-align: right; font: 400 19px var(--main); color: var(--corail); }
.cc-info { display: grid; gap: 4px; align-content: start; }
.cc-info h2 { font-size: 26px; line-height: 1.12; } .cc-info h2 a { text-decoration: none; }
.cc-info .auteur { font-size: 15px; color: var(--doux); margin-bottom: 6px; }
.lire { font-weight: 600; font-size: 15px; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- fiche d'un livre */
.fiche-grille { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.fiche-visuel { position: sticky; top: calc(var(--haut-barre) + 30px); display: grid; justify-items: center; gap: 22px; }
.fiche-visuel .couv { align-self: start; width: 300px; transform: rotate(-1.5deg); box-shadow: 18px 24px 46px -16px rgba(40, 25, 10, .55); }
.fiche-visuel .mot { width: 270px; }
.fiche-texte { display: grid; gap: 14px; max-width: 66ch; min-width: 0; }
.fiche-texte h1 { font-size: clamp(36px, 4.8vw, 52px); line-height: 1.04; }
.fiche-texte h2 { font-size: 28px; margin-top: 22px; }
.auteur-grand { font-size: 20px; }
.dispo { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--corail); display: grid; gap: 10px; }
.avis p { margin: 0 0 10px; }
.extrait { font-style: italic; color: #4c4339; }
.autres { margin-top: 80px; }
.autres h2 { font-size: 34px; margin-bottom: 20px; }

/* ---------------------------------------------------------------- événements */
.a-venir h2, .passes h2 { font-size: 34px; margin-bottom: 20px; }
.evt-grand { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: center; background: var(--carte); border-radius: 24px; padding: 28px; box-shadow: 0 16px 36px -22px rgba(30, 22, 12, .45); }
.evt-grand + .evt-grand { margin-top: 24px; }
.affiche { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--fond); }
.evt-grand .affiche { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
.affiche-vide { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--fond); }
.affiche-vide img { width: 55%; opacity: .85; }
.evt-texte { display: grid; gap: 12px; }
.evt-texte h3 { font-size: 32px; line-height: 1.1; }
.date-bloc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--acc); }
.date-bloc .j { font: 400 58px/1 var(--titre); } .date-bloc .m { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; } .date-bloc .h { font-size: 15px; color: var(--doux); }
.lieu { color: var(--doux); font-size: 15px; }
.passes { margin-top: 72px; }
.liste-passes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.evt-passe { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; background: rgba(255, 255, 255, .55); border-radius: 18px; padding: 12px; }
.evt-passe h3 { font-size: 20px; line-height: 1.2; } .evt-passe p { font-size: 14.5px; color: var(--doux); }
.date-courte { color: var(--acc) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px !important; margin-bottom: 2px; }

/* ---------------------------------------------------------------- contact */
.contact-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.formulaire { display: grid; gap: 16px; background: var(--carte); border-radius: 22px; padding: 30px; box-shadow: 0 16px 36px -22px rgba(30, 22, 12, .45); }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.formulaire input, .formulaire select, .formulaire textarea { font: 17px var(--texte); padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--trait); background: #fbf8f3; color: var(--encre); min-height: 48px; width: 100%; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(28, 25, 22, .1); }
.formulaire textarea { resize: vertical; min-height: 140px; }
.formulaire .erreur { color: var(--rouge); font-size: 14px; font-weight: 600; }
.formulaire .piege { position: absolute; left: -9999px; }
.formulaire .btn-plein { justify-self: start; }
.formulaire .btn-plein[disabled] { opacity: .6; cursor: wait; }
.merci { background: #e2f0e4; color: #24543a; border-radius: 14px; padding: 16px 18px; font-weight: 600; }
.infos { display: grid; gap: 18px; }
.info-carte { background: var(--carte); border-radius: 22px; padding: 24px; display: grid; gap: 14px; box-shadow: 0 16px 36px -22px rgba(30, 22, 12, .45); }
.info-carte address { font-style: normal; }
.plan { position: relative; display: block; height: 210px; border-radius: 22px; overflow: hidden; background: #e2d7c4; text-decoration: none; }
.plan .rue { position: absolute; background: #f6f0e4; }
.plan .r1 { left: -10%; right: -10%; top: 46%; height: 16px; transform: rotate(-8deg); } .plan .r2 { top: -10%; bottom: -10%; left: 38%; width: 12px; transform: rotate(12deg); } .plan .r3 { left: 55%; right: -10%; top: 20%; height: 9px; transform: rotate(18deg); }
.plan .epingle { position: absolute; left: 44%; top: 34%; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--corail); box-shadow: 0 4px 8px rgba(0, 0, 0, .3); }
.plan .nom-lieu { position: absolute; left: 52%; top: 32%; font-weight: 700; font-size: 14px; background: #fff; padding: 4px 10px; border-radius: 99px; }
.plan .ouvrir { position: absolute; right: 12px; bottom: 12px; background: var(--encre); color: var(--papier); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 99px; }
.boutique { display: grid; gap: 2px; background: var(--acc); color: #fff; border-radius: 18px; padding: 18px 22px; font-weight: 700; text-decoration: none; transition: transform .2s; }
.boutique:hover { transform: translateY(-2px); }
.boutique small { font-weight: 400; opacity: .9; font-size: 14.5px; }

/* ---------------------------------------------------------------- pages légales, 404 */
.legal { max-width: 72ch; display: grid; gap: 12px; }
.legal h2 { font-size: 26px; margin-top: 18px; }
.introuvable { min-height: 50vh; display: grid; align-content: center; gap: 16px; }

/* ---------------------------------------------------------------- apparitions au défilement */
.monte { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.monte.vu { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- tablette et téléphone */
@media (max-width: 1060px) {
  .menu { gap: 18px; font-size: 14.5px; }
  .barre .btn-cmd { display: none; }
}
@media (max-width: 860px) {
  :root { --haut-barre: 66px; }
  .menu { display: none; } .burger { display: grid; }
  .marque img { width: 128px; }
  .intro, .cc-accueil, .contact-grille, .fiche-grille { grid-template-columns: 1fr; gap: 34px; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .tuiles { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cc-grille { grid-template-columns: 1fr; }
  .fiche-visuel { position: static; }
  .evt-grand { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .liste-passes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .heros-texte { padding-bottom: 34px; gap: 12px; }
  .heros h1 { font-size: 34px; }
  .heros .actions > a { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 14.5px; }
  .panneau { padding-top: 60px; padding-bottom: 60px; }
  .fenetre { height: 46vh; min-height: 280px; }
  .fenetre.heros { height: 100svh; min-height: 540px; max-height: 780px; }
  .tuile .d { display: none; } .tuile .t { font-size: 16px; }
  .contenu { padding-top: 34px; padding-bottom: 64px; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gout-d)); padding: 2px var(--gout-d) 6px 2px; scrollbar-width: none; }
  .filtre img { width: 128px; height: 47px; }
  .pres-cartes { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pres-cartes .lien-livre { padding: 22px 10px 14px; }
  .pres-cartes .couv { width: 104px; }
  .pres-etagere { grid-template-columns: 1fr 1fr; gap: 50px 22px; }
  .pres-etagere .couv-zone { height: 176px; }
  .pres-presentoir { grid-template-columns: 1fr 1fr; padding: 34px 14px 18px; gap: 26px 14px; }
  .pres-presentoir .couv-zone { height: 170px; }
  .rangee { grid-auto-columns: 158px; }
  .rangee.pres-cartes .couv { width: 104px; }
  .livre .titre { font-size: 14px; } .livre .auteur { font-size: 13px; }
  .cc-carte { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cc-carte > a.couv-lien { grid-row: auto; }
  .cc-carte .couv { width: 170px; }
  .cc-carte .mot { width: min(320px, 100%); text-align: left; }
  .cc-accueil .couv-wrap { width: 190px; }
  .fiche-visuel .couv { width: 230px; }
  .fr-corps { grid-template-columns: 1fr; padding: 26px 20px; gap: 20px; justify-items: center; }
  .fr-corps .couv { width: 150px; }
  .fr-txt { justify-items: start; width: 100%; }
  .fr-txt h2 { font-size: 26px; }
  .actions > a, .actions > button { flex: 1 1 100%; }
  .evt-court { grid-template-columns: 1fr; gap: 16px; }
  .evt-passe { grid-template-columns: 90px 1fr; }
  .formulaire, .chercher { padding: 20px; }
  .resultats li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .monte { opacity: 1; transform: none; }
}
