/* Il fallait décider — feuille de styles unique
   Palette : papier ivoire, encre bordeaux-noir, bordeaux (identité), bleu roi (accent rare).
   Typographies : Bodoni Moda (titres), IBM Plex Sans (texte et interface : un clin d’œil aux tests IBM qui ouvrent le livre),
   EB Garamond (extraits et citations : la typographie du livre lui-même). */

@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda.woff2") format("woff2-variations"), url("/assets/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --papier: #F3EFE8;
  --papier-2: #EAE3D9;
  --encre: #2A1219;
  --bordeaux: #6B1328;
  --bordeaux-fonce: #430A19;
  --bleu: #2338B5;
  --bleu-sur-fonce: #B9C3F5;
  --taupe: #6A5A60;
  --filet: #D6C9C1;
  --ivoire-sur-fonce: #F3EFE8;
  --ivoire-doux: #D9C6C4;
  --alerte: #8A1F11;
  --ok: #1F5B3A;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --texte: "Plex", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --livre: "EB Garamond", Garamond, Georgia, serif;

  --gouttiere: clamp(16px, 4vw, 48px);
  --largeur: 1200px;
  --mesure: 38rem;
  --rayon: 3px;
  --ombre-livre: 0 1px 0 rgba(42,18,25,.06), 0 18px 30px -12px rgba(42,18,25,.45), 0 40px 70px -30px rgba(42,18,25,.5);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }
.sombre :focus-visible { outline-color: var(--bleu-sur-fonce); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; font-optical-sizing: auto; line-height: 1.05; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }
.mesure { max-width: var(--mesure); }

.evitement { position: absolute; left: var(--gouttiere); top: -100px; background: var(--encre); color: var(--papier); padding: .6rem 1rem; z-index: 50; }
.evitement:focus { top: .5rem; }

/* ——— En-tête ——— */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(243,239,232,.94); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.entete.defile { border-bottom-color: var(--filet); }
.entete .conteneur { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.marque { font-family: var(--display); font-size: 1.35rem; color: var(--bordeaux); text-decoration: none; white-space: nowrap; font-weight: 600; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; }
.nav a { color: var(--encre); text-decoration: none; font-size: 1rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--bordeaux); }
.bouton-panier { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: 1rem; background: none; border: 1px solid var(--encre); color: var(--encre); border-radius: var(--rayon); padding: .45rem .8rem; cursor: pointer; min-height: 44px; }
.bouton-panier:hover { background: var(--encre); color: var(--papier); }
.bouton-panier .compte { min-width: 1.4em; text-align: center; font-weight: 700; }
.bouton-menu { display: none; }

@media (max-width: 760px) {
  .entete .conteneur { gap: .75rem; }
  .bouton-menu { display: inline-flex; margin-left: auto; font: inherit; font-size: 1rem; background: none; border: 0; color: var(--encre); padding: .5rem; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--filet); display: none; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gouttiere) 1rem; }
  .nav a { display: block; padding: .75rem 0; font-size: 1.125rem; }
  .bouton-panier .libelle { display: none; }
  .marque { font-size: 1.15rem; }
}

/* ——— Boutons ——— */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2; border-radius: var(--rayon); border: 1.5px solid var(--bordeaux); background: var(--bordeaux); color: var(--papier); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bouton:hover { background: var(--bordeaux-fonce); border-color: var(--bordeaux-fonce); }
.bouton.secondaire { background: transparent; color: var(--bordeaux); }
.bouton.secondaire:hover { background: var(--bordeaux); color: var(--papier); }
.bouton[disabled], .bouton[aria-disabled="true"] { background: transparent; color: var(--taupe); border-color: var(--filet); cursor: not-allowed; }
.bouton.plein { width: 100%; }
.bouton[aria-busy="true"] { opacity: .75; cursor: progress; }

/* ——— Accueil : ouverture ——— */
.ouverture { position: relative; overflow: hidden; }
.ouverture .conteneur { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 8vw, 7rem); }
.ouverture::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: max(36%, calc((100% - var(--largeur)) / 2 + var(--largeur) * .36)); background: var(--bordeaux); z-index: -1; }
.titre-livre { font-size: clamp(3.4rem, 10.5vw, 9.2rem); line-height: .88; color: var(--bordeaux); font-weight: 500; letter-spacing: -.02em; margin-left: -.04em; }
.titre-livre span { display: block; }
.sous-titre { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; margin: 1.4rem 0 .4rem; font-weight: 400; }
.auteur-nom { font-size: 1.125rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 1.8rem; }
.chapeau { font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 34rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.prix-rappel { font-size: 1rem; color: var(--taupe); margin-top: 1rem; }
.objet-livre { justify-self: center; width: min(100%, 360px); position: relative; }
.objet-livre img { width: 100%; box-shadow: var(--ombre-livre); background: #fff; }
.objet-livre::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(255,255,255,.12) 40%, rgba(0,0,0,0)); z-index: 1; pointer-events: none; }
.mention-visuel { color: var(--ivoire-doux); font-size: .8rem; margin-top: 1rem; text-align: center; }

@media (max-width: 860px) {
  .ouverture .conteneur { grid-template-columns: 1fr; }
  .ouverture::after { display: none; }
  .ouverture .conteneur { padding-bottom: 0; }
  .objet-livre { width: auto; justify-self: stretch; margin: 0 calc(-1 * var(--gouttiere)); padding: 2.5rem var(--gouttiere) 3rem; background: var(--bordeaux); display: flex; justify-content: center; }
  .objet-livre::before { display: none; }
  .objet-livre picture { width: min(70%, 300px); position: relative; }
}

/* Moment d'ouverture orchestré : une seule séquence au chargement. */
@media (prefers-reduced-motion: no-preference) {
  .anime .titre-livre span { animation: monter .9s cubic-bezier(.2,.7,.1,1) both; }
  .anime .titre-livre span + span { animation-delay: .12s; }
  .anime .objet-livre { animation: poser 1.1s cubic-bezier(.2,.7,.1,1) .25s both; }
  @keyframes monter { from { transform: translateY(.35em); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes poser { from { transform: translateY(24px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ——— Sections ——— */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section.alt { background: var(--papier-2); }
.intro-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro-section h2 { color: var(--bordeaux); }
@media (max-width: 860px) { .intro-section { grid-template-columns: 1fr; } }

.quatrieme p { font-size: 1.2rem; }
.quatrieme p:last-child { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--bordeaux); margin-top: 1.6rem; }

/* Les cinq parties : vraie séquence chronologique, d'où la numérotation. */
.parties { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--encre); counter-reset: partie; }
.partie { display: grid; grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 6fr); gap: 1.25rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.partie .rang { font-family: var(--display); font-size: 2rem; color: var(--bordeaux); line-height: 1; }
.partie h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.partie .dates { display: block; font-family: var(--texte); font-size: 1rem; color: var(--taupe); margin-top: .35rem; }
.partie p { margin: 0; }
.partie .devise { font-family: var(--display); font-style: italic; color: var(--bordeaux); display: block; margin-bottom: .35rem; }
@media (max-width: 760px) { .partie { grid-template-columns: 2.5rem minmax(0, 1fr); } .partie > p { grid-column: 2; } }

/* ——— Registre des décisions (élément signature) ——— */
.registre { background: var(--bordeaux-fonce); color: var(--ivoire-sur-fonce); }
.registre h2 { color: var(--ivoire-sur-fonce); max-width: 18ch; }
.registre .intro { max-width: 36rem; color: var(--ivoire-doux); font-size: 1.2rem; margin-top: 1.2rem; }
.registre ol { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(243,239,232,.35); }
.decision { display: grid; grid-template-columns: minmax(7rem, 2.3fr) minmax(0, 4fr) minmax(0, 5fr); gap: .5rem 2.5rem; padding: 1.7rem 0; border-bottom: 1px solid rgba(243,239,232,.18); align-items: baseline; }
.decision .quand { font-family: var(--display); font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: .9; font-weight: 500; letter-spacing: -.02em; color: var(--ivoire-sur-fonce); }
.decision .quand.texte { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.decision .quoi { font-size: 1.15rem; font-weight: 600; }
.decision blockquote { margin: 0; font-family: var(--livre); font-size: 1.3rem; line-height: 1.45; font-style: italic; color: var(--ivoire-doux); }
.decision blockquote cite { display: block; font-style: normal; font-family: var(--texte); font-size: .875rem; margin-top: .4rem; color: #BFA7A9; }
.decision.derniere .quand { color: #E7B9C2; }
@media (max-width: 860px) {
  .decision { grid-template-columns: 1fr; gap: .4rem; }
}

/* ——— Quatre verbes ——— */
.verbes-liste { display: flex; flex-wrap: wrap; gap: 0 .35em; font-family: var(--display); font-size: clamp(2.4rem, 7.2vw, 6rem); line-height: 1; color: var(--bleu); font-weight: 500; letter-spacing: -.02em; margin: 1.5rem 0 2.5rem; }
.verbes-corps { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); }
.citation-livre { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--bordeaux); font-family: var(--livre); font-size: 1.45rem; line-height: 1.4; }
.citation-livre cite { display: block; font-family: var(--texte); font-style: normal; font-size: .9rem; color: var(--taupe); margin-top: .6rem; }
@media (max-width: 860px) { .verbes-corps { grid-template-columns: 1fr; } }

/* ——— Pour quels lecteurs ——— */
.lecteurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: 3rem; }
.lecteur { padding: 1.5rem 0 1.7rem; border-top: 1px solid var(--encre); }
.lecteur h3 { color: var(--bordeaux); margin-bottom: .6rem; }
.lecteur p { margin: 0; }
@media (max-width: 760px) { .lecteurs { grid-template-columns: 1fr; } }

/* ——— Extrait ——— */
.extrait-apercu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-livre { background: #FBF9F5; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 1px 0 rgba(42,18,25,.05), 0 20px 40px -28px rgba(42,18,25,.45); font-family: var(--livre); font-size: 1.3rem; line-height: 1.55; }
.page-livre p { margin: 0 0 .7em; }
.page-livre .cri { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--bordeaux); line-height: 1.2; }
.page-livre .fondu { position: relative; max-height: 15em; overflow: hidden; }
.page-livre .fondu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6em; background: linear-gradient(rgba(251,249,245,0), #FBF9F5); }
@media (max-width: 860px) { .extrait-apercu { grid-template-columns: 1fr; } }

/* ——— Auteur ——— */
.auteur-bloc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.portrait { margin: 0; }
.portrait img { width: 100%; max-width: 360px; filter: saturate(.85); }
.portrait figcaption { font-size: .875rem; color: var(--taupe); margin-top: .6rem; }
@media (max-width: 760px) { .auteur-bloc { grid-template-columns: 1fr; } .portrait img { max-width: 240px; } }

/* ——— Commander ——— */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 3rem; }
.format { border: 1px solid var(--encre); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; background: var(--papier); }
.format h3 { font-size: 1.75rem; }
.format .prix { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--bordeaux); }
.format .prix.attente { font-family: var(--texte); font-size: 1.05rem; color: var(--taupe); }
.format ul { display: grid; gap: .4rem; font-size: 1rem; }
.format li { padding-left: 1.1rem; position: relative; }
.format li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: 1px; background: var(--encre); }
.format .etat { font-size: .95rem; color: var(--taupe); margin: 0; }
.format .bouton { margin-top: auto; }
.reassurance { margin-top: 2rem; font-size: 1rem; color: var(--taupe); max-width: 48rem; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }

/* ——— Pages intérieures ——— */
.fil { font-size: .95rem; padding-top: 1.5rem; color: var(--taupe); }
.fil ol { display: flex; flex-wrap: wrap; gap: .3rem; }
.fil li + li::before { content: "/"; margin-right: .3rem; color: var(--filet); }
.fil a { color: var(--taupe); }
.entete-page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.entete-page h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); color: var(--bordeaux); }
.entete-page .chapeau { margin-top: 1.25rem; }

.produit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.produit .galerie { display: grid; gap: 1.5rem; position: sticky; top: 6rem; }
.produit .galerie img { box-shadow: var(--ombre-livre); background: #fff; }
.produit .galerie figure { margin: 0; }
.produit .galerie figcaption { font-size: .85rem; color: var(--taupe); margin-top: .5rem; }
.produit h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: var(--bordeaux); }
.choix-format { display: grid; gap: 1rem; margin: 2rem 0; }
.ligne-format { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid var(--encre); border-radius: var(--rayon); }
.ligne-format .nom { font-weight: 700; font-size: 1.15rem; }
.ligne-format .detail { grid-column: 1 / -1; font-size: .95rem; color: var(--taupe); margin: 0; }
.ligne-format .prix { font-family: var(--display); font-size: 1.8rem; color: var(--bordeaux); }
.ligne-format .prix.attente { font-family: var(--texte); font-size: .95rem; color: var(--taupe); }
.ligne-format .bouton { grid-column: 1 / -1; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; font-size: 1rem; margin: 0; }
.fiche dt { color: var(--taupe); }
.fiche dd { margin: 0; }
.bloc { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.bloc h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; color: var(--encre); }
.sommaire { font-size: 1rem; }
.sommaire > li { margin-bottom: 1.25rem; }
.sommaire .titre-partie { font-family: var(--display); font-size: 1.25rem; color: var(--bordeaux); display: block; margin-bottom: .35rem; }
.sommaire ol li { display: flex; gap: .75rem; justify-content: space-between; border-bottom: 1px dotted var(--filet); padding: .2rem 0; }
.sommaire ol li span:last-child { color: var(--taupe); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .produit { grid-template-columns: 1fr; } .produit .galerie { position: static; grid-template-columns: 1fr 1fr; } }

.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--bordeaux); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 1.25rem; max-width: var(--mesure); }

/* Lecture de l'extrait */
.lecture { font-family: var(--livre); font-size: clamp(1.2rem, 1.9vw, 1.375rem); line-height: 1.6; max-width: 34rem; margin: 0 auto; }
.lecture h2 { font-family: var(--livre); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: 1.5rem; color: var(--bordeaux); }
.lecture p { margin: 0 0 .65em; hyphens: auto; }
.lecture .fin { text-align: center; font-family: var(--display); color: var(--bordeaux); margin: 2.5rem 0; letter-spacing: .5em; }
.suite { border-top: 1px solid var(--encre); margin-top: 3rem; padding-top: 2rem; }

/* Parcours de l'auteur : séquence chronologique */
.parcours { border-top: 1px solid var(--encre); margin-top: 1rem; }
.parcours li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--filet); }
.parcours .an { font-family: var(--display); font-size: 1.35rem; color: var(--bordeaux); line-height: 1.3; }
@media (max-width: 600px) { .parcours li { grid-template-columns: 1fr; gap: .2rem; } }

/* Pages légales */
.legal { max-width: 46rem; padding-bottom: 5rem; }
.legal h2 { font-size: 1.6rem; margin: 2.5rem 0 .8rem; color: var(--bordeaux); }
.legal h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; font-family: var(--texte); font-weight: 700; }
.legal li { list-style: disc; margin-left: 1.25rem; margin-bottom: .35rem; }
.a-completer { background: #FFF1B8; color: #5A4300; padding: 0 .3em; border-radius: 2px; font-weight: 600; }
.avertissement { border: 1px solid #C9A227; background: #FFF8DC; padding: 1rem 1.25rem; border-radius: var(--rayon); font-size: 1rem; margin-bottom: 2rem; }

/* États de commande */
.etat-commande { max-width: 40rem; padding: clamp(2rem, 6vw, 5rem) 0 6rem; }
.etat-commande h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--bordeaux); margin-bottom: 1rem; }
.recap { border-top: 1px solid var(--encre); margin: 1.5rem 0; }
.recap li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--filet); }
.message { padding: .9rem 1.1rem; border-radius: var(--rayon); font-size: 1rem; margin: 1rem 0; }
.message.erreur { background: #FBE9E6; color: var(--alerte); border: 1px solid #E8B9B0; }
.message.info { background: #E9ECFA; color: #1B2A85; border: 1px solid #C3CBF2; }
.message.succes { background: #E5F1EA; color: var(--ok); border: 1px solid #B8D8C4; }
.attente-point::after { content: ""; display: inline-block; width: 1em; text-align: left; animation: points 1.2s steps(4) infinite; }
@keyframes points { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .attente-point::after { animation: none; content: "…"; } }
.formulaire label { display: block; font-weight: 600; margin-bottom: .35rem; }
.formulaire input[type="email"] { width: 100%; max-width: 26rem; font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--encre); border-radius: var(--rayon); background: #fff; min-height: 48px; }
.formulaire .rangee { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }

/* ——— Panier (dialog) ——— */
.panier { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(100%, 440px); max-width: 100%; border: 0; padding: 0; background: var(--papier); color: var(--encre); box-shadow: -20px 0 50px -20px rgba(42,18,25,.45); }
.panier::backdrop { background: rgba(42,18,25,.45); }
.panier[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .panier[open] { animation: glisser .28s cubic-bezier(.2,.7,.1,1); } @keyframes glisser { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } } }
.panier-tete { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--filet); }
.panier-tete h2 { font-size: 1.7rem; }
.fermer { font: inherit; background: none; border: 0; color: var(--encre); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 44px; padding: 0 .25rem; }
.panier-corps { flex: 1; overflow-y: auto; padding: 1.25rem 1.4rem; }
.panier-vide { color: var(--taupe); }
.ligne-panier { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); align-items: start; }
.ligne-panier img { width: 56px; box-shadow: 0 6px 12px -6px rgba(42,18,25,.4); }
.ligne-panier .nom { font-weight: 700; }
.ligne-panier .sous { font-size: .9rem; color: var(--taupe); }
.ligne-panier .montant { font-weight: 600; white-space: nowrap; }
.quantite { display: inline-flex; align-items: center; margin-top: .5rem; border: 1px solid var(--encre); border-radius: var(--rayon); }
.quantite button { width: 40px; height: 40px; font: inherit; font-size: 1.2rem; background: none; border: 0; cursor: pointer; color: var(--encre); }
.quantite button:disabled { color: var(--filet); cursor: not-allowed; }
.quantite output { min-width: 2rem; text-align: center; font-weight: 700; }
.retirer { font: inherit; font-size: .9rem; background: none; border: 0; padding: .3rem 0; margin-left: .75rem; color: var(--taupe); text-decoration: underline; cursor: pointer; min-height: 40px; }
.totaux { display: grid; grid-template-columns: 1fr auto; gap: .35rem 0; margin-top: 1.25rem; font-size: 1rem; }
.totaux > span:nth-child(even) { text-align: right; padding-left: 1rem; }
.totaux .total { font-weight: 700; font-size: 1.15rem; padding-top: .5rem; border-top: 1px solid var(--encre); margin-top: .35rem; }
.panier-pied { padding: 1.1rem 1.4rem 1.4rem; border-top: 1px solid var(--filet); display: grid; gap: .9rem; background: var(--papier-2); }
.case { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; font-size: .95rem; line-height: 1.45; align-items: start; }
.case input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--bordeaux); }
.mention-paiement { font-size: .85rem; color: var(--taupe); margin: 0; }
.bandeau-test { background: #FFF1B8; color: #5A4300; font-size: .9rem; padding: .5rem 1.4rem; }

/* ——— Pied de page ——— */
.pied { background: var(--encre); color: var(--ivoire-doux); padding: 3.5rem 0 2.5rem; font-size: 1rem; }
.pied a { color: var(--ivoire-sur-fonce); }
.pied .conteneur { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.pied .marque { color: var(--ivoire-sur-fonce); font-size: 1.6rem; display: inline-block; margin-bottom: .5rem; }
.pied ul { display: grid; gap: .4rem; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgba(243,239,232,.2); padding-top: 1.25rem; font-size: .9rem; }
@media (max-width: 760px) { .pied .conteneur { grid-template-columns: 1fr; } }

@media print { .entete, .pied, .panier, .actions { display: none !important; } body { background: #fff; } }
.ligne-format .etat { grid-column: 1 / -1; font-size: .9rem; color: var(--taupe); margin: 0; }

/* ═══════════ Version immersive : de la carte perforée à l'IA ═══════════ */
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
:root { --machine: "Plex Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace; --carton: #F1E5C9; --carton-encre: #8C5A62; }
code { font-family: var(--machine); }

/* Ouverture : la carte perforée */
.ouverture-machine { background: var(--bordeaux-fonce); color: var(--ivoire-sur-fonce); padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; position: relative; }
.ouverture-machine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 30%, rgba(241,229,201,.10), transparent 70%); pointer-events: none; }
.legende-carte { max-width: 40rem; color: var(--ivoire-doux); font-size: 1rem; margin-bottom: 1.5rem; position: relative; }
.legende-carte strong { color: var(--ivoire-sur-fonce); font-weight: 600; }
.carte { margin: 0; position: relative; perspective: 1400px; max-width: 1040px; }
.carte-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)) drop-shadow(0 2px 2px rgba(0,0,0,.3)); transform: rotateX(8deg) rotateZ(-.6deg); transform-origin: 50% 100%; }
.carte-fond { fill: var(--carton); }
.carte-svg pattern text { font-family: var(--machine); font-size: 78px; fill: var(--carte-encre, #B08A86); text-anchor: middle; opacity: .55; }
.carte-filet { stroke: #C9A99E; stroke-width: 6; opacity: .6; }
.carte-lettres text { font-family: var(--machine); font-size: 104px; font-weight: 500; fill: #3A1C22; text-anchor: middle; }
.carte-trous rect { fill: var(--bordeaux-fonce); }
.carte-tete { fill: #2338B5; opacity: 0; }
.carte-code { font-family: var(--machine); font-size: clamp(.85rem, 1.6vw, 1.05rem); color: var(--ivoire-doux); margin-top: 1.4rem; letter-spacing: .02em; }
.carte-code span { color: var(--bleu-sur-fonce); margin-right: .4rem; }
.carte-code code::after { content: "▍"; color: var(--bleu-sur-fonce); margin-left: .15rem; animation: clignote 1.1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.ouverture-bas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-top: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.ouverture-machine .titre-livre { color: var(--ivoire-sur-fonce); }
.ouverture-machine .sous-titre { color: var(--ivoire-sur-fonce); }
.ouverture-machine .auteur-nom { color: var(--ivoire-doux); }
.flux { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; margin-bottom: 2rem; color: var(--ivoire-sur-fonce); min-height: 3.2em; }
.flux .mot { opacity: 0; transition: opacity .25s; }
.flux .mot.vu { opacity: 1; }
.flux.ecrit::after { content: "▍"; color: var(--bleu-sur-fonce); animation: clignote 1.1s steps(2) infinite; }
.ouverture-machine .objet-livre { width: min(100%, 300px); justify-self: end; }
.bouton.clair { background: var(--ivoire-sur-fonce); border-color: var(--ivoire-sur-fonce); color: var(--bordeaux-fonce); }
.bouton.clair:hover { background: #fff; border-color: #fff; }
.bouton.secondaire.clair { background: transparent; color: var(--ivoire-sur-fonce); border-color: rgba(243,239,232,.6); }
.bouton.secondaire.clair:hover { background: var(--ivoire-sur-fonce); color: var(--bordeaux-fonce); }
@media (max-width: 860px) {
  .ouverture-bas { grid-template-columns: 1fr; }
  .ouverture-machine .objet-livre { justify-self: start; width: min(55%, 220px); margin: 0; padding: 0; background: none; display: block; }
  .ouverture-machine .objet-livre picture { width: 100%; }
  .carte-svg { transform: none; }
  .carte-chiffres { display: none; }
}
/* Animation de perforation : la classe .mvt est posée avant l'affichage (pre.js) si le mouvement est autorisé.
   Filet de sécurité : si le script principal ne se charge pas, tout apparaît au bout de 8 secondes. */
.mvt [data-carte] .carte-trous g:not(.on), .mvt [data-carte] .carte-lettres text:not(.on) { opacity: 0; animation: secours 0s 8s forwards; }
.mvt [data-carte] .carte-trous g.on { opacity: 1; animation: poinçon .18s ease-out; transform-box: fill-box; transform-origin: center; }
.mvt [data-carte] .carte-lettres text.on { opacity: 1; }
.mvt [data-flux]:not(.pret) { visibility: hidden; animation: secours-v 0s 8s forwards; }
@keyframes secours { to { opacity: 1; } }
@keyframes secours-v { to { visibility: visible; } }
@keyframes poinçon { from { transform: scale(1.8); opacity: .2; } to { transform: scale(1); opacity: 1; } }

/* Frise des machines */
.machines { background: var(--papier-2); overflow: hidden; }
.machines-tete { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.machines-tete h2 { color: var(--bordeaux); margin-bottom: 1rem; }
.machines-nav { display: flex; gap: .5rem; flex: none; }
.machines-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--encre); background: transparent; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--encre); }
.machines-nav button:hover { background: var(--encre); color: var(--papier); }
.machines-piste { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 340px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem max(var(--gouttiere), calc((100% - var(--largeur)) / 2)) 1.5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.machines-piste::-webkit-scrollbar { display: none; }
.machine { scroll-snap-align: start; scroll-margin-left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); background: var(--papier); border-top: 3px solid var(--bordeaux); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; min-height: 300px; }
.machine:nth-last-child(-n+3) { border-top-color: var(--bleu); }
.machine .epoque { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--bordeaux); font-weight: 500; letter-spacing: -.02em; }
.machine:nth-last-child(-n+3) .epoque { color: var(--bleu); }
.machine h3 { font-family: var(--texte); font-size: 1.05rem; font-weight: 700; }
.machine blockquote { margin: auto 0 0; font-family: var(--livre); font-size: 1.2rem; line-height: 1.45; }
.machine blockquote p { margin: 0; }
.machine cite { display: block; font-style: normal; font-size: .85rem; color: var(--taupe); margin-top: .5rem; font-family: var(--texte); }
.machines-progression { height: 3px; background: var(--filet); position: relative; overflow: hidden; }
.machines-progression span { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: linear-gradient(90deg, var(--bordeaux), var(--bleu)); transition: width .15s linear; }
@media (max-width: 760px) { .machines-nav { display: none; } .machines-piste { grid-auto-columns: 82%; } .machine { min-height: 0; } .machine blockquote { margin-top: .6rem; } }

/* Registre : bordeaux franc pour alterner avec l'ouverture */
.registre { background: var(--bordeaux); }

/* Cycle des quatre verbes */
.cycle-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cycle h2 { color: var(--bordeaux); }
.cycle .citation-livre { margin-top: 2rem; }
.roue { display: grid; justify-items: center; gap: 1.5rem; }
.roue-cercle { position: relative; width: min(100%, 420px); aspect-ratio: 1; }
.roue-cercle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.roue-piste { fill: none; stroke: var(--filet); stroke-width: 2; }
.roue-arc { fill: none; stroke: var(--bleu); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 25 100; stroke-dashoffset: 0; transition: stroke-dashoffset .6s cubic-bezier(.2,.7,.1,1); }
.roue-verbe { position: absolute; transform: translate(-50%, -50%); font: inherit; font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.45rem); background: var(--papier); border: 1.5px solid var(--encre); color: var(--encre); padding: .45rem .9rem; border-radius: 999px; cursor: pointer; min-height: 44px; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.roue-verbe[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.roue-verbe.p0 { left: 50%; top: 12.5%; } .roue-verbe.p1 { left: 87.5%; top: 50%; } .roue-verbe.p2 { left: 50%; top: 87.5%; } .roue-verbe.p3 { left: 12.5%; top: 50%; }
.roue-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; font-family: var(--display); font-size: clamp(3.5rem, 9vw, 5.5rem); line-height: 1; color: var(--bleu); pointer-events: none; }
.roue-centre small { font-family: var(--texte); font-size: .9rem; color: var(--taupe); margin-top: .3rem; }
.roue-citation { margin: 0; max-width: 28rem; text-align: center; font-family: var(--livre); font-size: 1.3rem; line-height: 1.45; min-height: 4.5em; }
.roue-citation p { margin: 0; }
.roue-citation cite { display: block; font-family: var(--texte); font-style: normal; font-size: .85rem; color: var(--taupe); margin-top: .5rem; }
@media (max-width: 860px) { .cycle-grille { grid-template-columns: 1fr; } .roue-verbe.p1 { left: 84%; } .roue-verbe.p3 { left: 16%; } }

/* 2050 : le dialogue */
.dialogue { background: var(--encre); color: var(--ivoire-sur-fonce); }
.dialogue h2 { color: var(--ivoire-sur-fonce); }
.dialogue p { color: var(--ivoire-doux); }
.dialogue-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.avant-apres { margin-top: 2rem; display: grid; gap: .9rem; }
.avant-apres p { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; margin: 0; padding-top: .9rem; border-top: 1px solid rgba(243,239,232,.2); color: var(--ivoire-sur-fonce); }
.avant-apres .annee { font-family: var(--display); font-size: 1.6rem; color: var(--bleu-sur-fonce); }
.avant-apres code { font-size: .95rem; color: #F1E5C9; }
.petite-cite { font-size: .85rem; margin-top: .8rem; }
.ecran { margin: 0; background: #1A0B10; border: 1px solid rgba(185,195,245,.25); border-radius: 10px; padding: 0 0 1rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 6px rgba(35,56,181,.08); font-family: var(--machine); overflow: hidden; }
.ecran-barre { display: flex; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(185,195,245,.15); }
.ecran-barre span { width: 10px; height: 10px; border-radius: 50%; background: rgba(243,239,232,.25); }
.ecran-intro { font-family: var(--livre); font-style: italic; font-size: 1.05rem; padding: 1rem 1.2rem 0; margin: 0; }
.ecran-fil { padding: 1rem 1.2rem; display: grid; gap: 1rem; min-height: 290px; align-content: start; }
.msg { display: grid; gap: .3rem; max-width: 88%; }
.msg .qui { font-size: .72rem; letter-spacing: .04em; color: rgba(243,239,232,.55); }
.msg .texte { font-size: .98rem; line-height: 1.55; padding: .75rem .9rem; border-radius: 8px; }
.msg.humain { justify-self: end; text-align: left; }
.msg.humain .texte { background: var(--bordeaux); color: var(--ivoire-sur-fonce); }
.msg.systeme .texte { background: rgba(35,56,181,.22); border: 1px solid rgba(185,195,245,.35); color: #E8EBFF; }
.ecran figcaption { font-family: var(--texte); font-size: .8rem; color: rgba(243,239,232,.5); padding: 0 1.2rem; }
.dialogue-en-cours .msg { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.dialogue-en-cours .msg.vu { opacity: 1; transform: none; }
.msg .texte.frappe::after { content: "▍"; color: var(--bleu-sur-fonce); animation: clignote 1.1s steps(2) infinite; }
.grande-citation { margin: clamp(3rem, 7vw, 5rem) 0 0; padding-top: 2rem; border-top: 1px solid rgba(243,239,232,.2); }
.grande-citation p { font-family: var(--display); font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.1; color: var(--ivoire-sur-fonce); margin: 0; max-width: 22ch; }
.grande-citation cite { display: block; font-style: normal; font-size: .95rem; color: var(--ivoire-doux); margin-top: 1rem; max-width: 36rem; }
@media (max-width: 860px) { .dialogue-grille { grid-template-columns: 1fr; } .ecran-fil { min-height: 0; } }

/* Interroger le livre */
.interroger h2 { color: var(--bordeaux); }
.interroger-ui { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.puces { display: flex; flex-wrap: wrap; gap: .6rem; }
.puce { font: inherit; font-size: 1rem; text-align: left; background: var(--papier); border: 1.5px solid var(--encre); color: var(--encre); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; min-height: 44px; transition: background .15s, color .15s; }
.puce:hover { background: var(--papier-2); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.reponse { background: #FBF9F5; border-left: 3px solid var(--bleu); padding: 1.5rem 1.6rem; min-height: 14rem; box-shadow: 0 20px 40px -30px rgba(42,18,25,.45); }
.reponse .question { font-family: var(--machine); font-size: .9rem; color: var(--bleu); margin-bottom: 1rem; }
.reponse blockquote { margin: 0 0 1.1rem; font-family: var(--livre); font-size: 1.3rem; line-height: 1.5; }
.reponse blockquote p { margin: 0; }
.reponse cite { display: inline-block; font-family: var(--texte); font-style: normal; font-size: .82rem; color: var(--taupe); margin-top: .35rem; border: 1px solid var(--filet); border-radius: 999px; padding: .1rem .6rem; }
.reponse .vide { color: var(--taupe); font-size: 1rem; }
.reponse .en-cours::after { content: "▍"; color: var(--bleu); animation: clignote 1.1s steps(2) infinite; }
.interroger-statique details { border-top: 1px solid var(--filet); }
.interroger-statique summary { cursor: pointer; padding: 1rem 0; font-weight: 600; }
.interroger-statique blockquote { font-family: var(--livre); font-size: 1.2rem; margin: 0 0 1rem; }
.interroger-statique cite { font-family: var(--texte); font-style: normal; font-size: .85rem; color: var(--taupe); }
@media (max-width: 860px) { .interroger-ui { grid-template-columns: 1fr; } .reponse { min-height: 10rem; } }

@media (prefers-reduced-motion: reduce) {
  .carte-code code::after, .flux.ecrit::after, .msg .texte.frappe::after, .reponse .en-cours::after { animation: none; }
  .roue-arc { transition: none; }
}

/* ═══════════ Achat rapide ═══════════ */
.bouton-panier.vide { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--papier); font-weight: 600; }
.bouton-panier.vide:hover { background: var(--bordeaux-fonce); border-color: var(--bordeaux-fonce); color: var(--papier); }
.bouton-panier .compte[hidden] { display: none; }
.panier-intro { font-weight: 600; margin: .25rem 0 1rem; }
.choix { display: grid; gap: .75rem; }
.choix-format { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; gap: .1rem .9rem; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--encre); background: #FBF9F5; border: 1.5px solid var(--encre); border-radius: var(--rayon); padding: .85rem 1rem; cursor: pointer; text-decoration: none; min-height: 84px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choix-format img { grid-row: 1 / 3; width: 44px; height: auto; box-shadow: 0 4px 10px -4px rgba(42,18,25,.45); }
.choix-format .nom { font-weight: 700; font-size: 1.1rem; }
.choix-format .detail { grid-column: 2; font-size: .9rem; color: var(--taupe); }
.choix-format .prix { grid-column: 3; grid-row: 1 / 3; font-family: var(--display); font-size: 1.5rem; color: var(--bordeaux); white-space: nowrap; }
button.choix-format:hover, a.choix-format:hover { border-color: var(--bordeaux); box-shadow: 0 10px 24px -16px rgba(107,19,40,.6); }
button.choix-format:active { transform: scale(.99); }
.choix-format.indisponible { cursor: default; opacity: .75; border-style: dashed; }
.choix-format.indisponible .prix, a.choix-format .prix { font-family: var(--texte); font-size: .9rem; color: var(--taupe); }
.ajout-suggere { display: flex; justify-content: space-between; gap: 1rem; width: 100%; margin-top: .9rem; font: inherit; font-size: .95rem; background: transparent; border: 1.5px dashed var(--filet); border-radius: var(--rayon); padding: .7rem .9rem; color: var(--encre); cursor: pointer; min-height: 48px; text-align: left; }
.ajout-suggere:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.ajout-suggere span:last-child { font-weight: 700; white-space: nowrap; }
.panier-pied .mention-paiement a { color: inherit; }

.barre-achat { display: none; }
@media (max-width: 860px) {
  .barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: .75rem; padding: .6rem var(--gouttiere) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(243,239,232,.97); backdrop-filter: blur(6px); border-top: 1px solid var(--filet); box-shadow: 0 -12px 30px -18px rgba(42,18,25,.5); transform: translateY(110%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.7,.1,1), visibility 0s .28s; }
  .barre-achat.visible { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.7,.1,1), visibility 0s; }
  .barre-achat img { width: 34px; height: auto; box-shadow: 0 4px 10px -4px rgba(42,18,25,.45); }
  .barre-achat p { margin: 0; flex: 1; line-height: 1.25; min-width: 0; }
  .barre-achat strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--bordeaux); }
  .barre-achat span { font-size: .82rem; color: var(--taupe); }
  .barre-achat .bouton { min-height: 44px; padding: .55rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .barre-achat, .barre-achat.visible { transition: none; } }
