/* Thème « Le dossier » : la page de vente remplace la boutique ; le panier du moteur ne revient que hors démo (body.ds-panier). */
body.habillage-dossier { background: var(--ds-bg, #F3EEE4); }
body.habillage-dossier:not(.ds-panier) #app { display: none; }
body.ds-panier #dossier { display: none; }
html.ds-fige { overflow: hidden; }
/* Une page de vente n'a pas de bouton « Installer l'app » posé sur son titre */
body.habillage-dossier:not(.ds-panier) .install-btn { display: none !important; }

.ds { --ds-bg: #F3EEE4; --ds-surface: #FBF8F1; --ds-ink: #15120F; --ds-muted: #6B625A; --ds-line: #15120F; --ds-accent: #9E1B1E;
  --ds-serif: Georgia, serif; --ds-texte: var(--ds-serif); --ds-mono: ui-monospace, Menlo, monospace; --ds-marge: 20px;
  background: var(--ds-bg); color: var(--ds-ink); font: 400 16.5px/1.5 var(--ds-texte); overflow-x: clip; padding-bottom: 96px; -webkit-text-size-adjust: 100%; }
.ds *, .ds *::before, .ds *::after { box-sizing: border-box; margin: 0; }
.ds-corps > *, .ds-tete, .ds-pied { max-width: 1120px; margin-inline: auto; }
.ds-m { font: 400 10.5px/1.4 var(--ds-mono); letter-spacing: .08em; text-transform: uppercase; }
.ds-rouge { color: var(--ds-accent); }
.ds em { color: var(--ds-accent); }
.ds-demo { background: var(--ds-ink); color: var(--ds-bg); text-align: center; padding: 7px var(--ds-marge); }
.ds-tete { display: flex; justify-content: space-between; gap: 12px; padding: 16px var(--ds-marge); border-bottom: 1px solid var(--ds-line); }

.ds-hero__tx { padding: 26px var(--ds-marge) 0; }
.ds h1 { font: 500 clamp(36px, 10.4vw, 64px)/1.02 var(--ds-serif); letter-spacing: -.02em; margin: 12px 0 14px; text-wrap: balance; }
.ds-lead, .ds-dedans p + p, .ds-faq details p { color: color-mix(in srgb, var(--ds-ink) 74%, var(--ds-bg)); }
.ds-lead { max-width: 34em; }
.ds-visuel { margin-top: 18px; border-block: 1px solid var(--ds-line); aspect-ratio: 39 / 43; overflow: hidden; }
.ds-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

.ds-onglets { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; border-bottom: 1px solid var(--ds-line); }
.ds-onglets li { padding: 12px 6px 12px var(--ds-marge); border-right: 1px solid var(--ds-line); min-width: 0; }
.ds-onglets li:last-child { border-right: 0; }
.ds-onglets small { display: none; }
.ds-onglets b { display: block; font: 500 clamp(14px, 4.3vw, 19px)/1.3 var(--ds-serif); letter-spacing: 0; text-transform: none; margin-top: 2px; }

.ds-achat { padding: 22px var(--ds-marge) 0; }
.ds-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 16px 20px; border: 0; border-radius: 0;
  background: var(--ds-ink); color: var(--ds-bg); cursor: pointer; text-align: left; transition: background .15s; }
.ds-cta:hover { background: var(--ds-accent); }
.ds-cta:focus-visible, .ds summary:focus-visible, .ds-fermer:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 3px; }
.ds-cta .ds-m { font-size: 12px; letter-spacing: .12em; }
.ds-cta b { font: 500 22px/1 var(--ds-serif); white-space: nowrap; }
.ds-note { margin-top: 12px; color: var(--ds-muted); }
.ds-m.ds-note { font-size: 10.5px; letter-spacing: .04em; }

.ds-auteur { position: relative; margin: 30px var(--ds-marge) 0 !important; padding: 18px 18px 34px; border: 1px solid var(--ds-line); background: var(--ds-surface); max-width: 560px !important; }
.ds-photo { float: left; width: 66px; height: 82px; margin-right: 14px; object-fit: cover; }
i.ds-photo { display: grid; place-items: center; text-align: center; border: 1px dashed var(--ds-accent); color: var(--ds-accent); font-style: normal; font-size: 9px; padding: 4px; }
.ds-auteur strong { display: block; font: 500 19px/1.3 var(--ds-serif); margin: 4px 0 2px; }
.ds-tampon { color: var(--ds-accent); font-family: var(--ds-serif); }
.ds-tampon__tour { font-family: var(--ds-mono); font-weight: 500; }
.ds-auteur .ds-tampon { position: absolute; right: -6px; bottom: -44px; width: 92px; transform: rotate(-14deg); opacity: .9; }

.ds-pb { margin: 58px var(--ds-marge) 0 !important; padding-top: 20px; border-top: 3px solid var(--ds-accent); }
.ds-pb h2 { font: 400 clamp(26px, 7.2vw, 44px)/1.14 var(--ds-serif); letter-spacing: -.01em; max-width: 20em; text-wrap: balance; }
.ds-dedans, .ds-pieces, .ds-faq { padding: 34px var(--ds-marge) 0; }
.ds-dedans p + p, .ds-faq details p { margin-top: 8px; max-width: 36em; }
.ds-pieces > .ds-m, .ds-faq > .ds-m { margin-bottom: 10px; }
.ds-piece { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--ds-line); cursor: pointer; }
.ds-piece:first-of-type { border-top: 1px solid var(--ds-line); }
.ds-piece input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-case { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ds-ink); }
.ds-piece input:checked + .ds-case { background: var(--ds-accent); border-color: var(--ds-accent); }
.ds-piece input:checked + .ds-case::after { content: ""; width: 6px; height: 11px; margin-top: -3px; border: solid var(--ds-bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ds-piece input:focus-visible + .ds-case { outline: 2px solid var(--ds-accent); outline-offset: 3px; }
.ds-piece .ds-m { flex: none; width: 14px; color: var(--ds-muted); }
.ds-nom { flex: 1; min-width: 0; font-size: 17px; line-height: 1.25; }
.ds-piece b { font: 500 17px/1 var(--ds-serif); white-space: nowrap; }
.ds-faq details { border-bottom: 1px solid var(--ds-line); padding: 14px 0; }
.ds-faq details:first-of-type { border-top: 1px solid var(--ds-line); }
.ds-faq summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+"; font-family: var(--ds-mono); color: var(--ds-accent); }
.ds-faq details[open] summary::after { content: "–"; }
.ds-pied { padding: 40px var(--ds-marge) 0; color: var(--ds-muted); }

.ds-barre { position: fixed; z-index: 20; inset: auto 0 0; display: flex; align-items: center; gap: 14px; padding: 10px var(--ds-marge) calc(10px + env(safe-area-inset-bottom));
  background: var(--ds-bg); border-top: 1px solid var(--ds-line); }
.ds-barre[hidden], .ds-feuille[hidden] { display: none; }
.ds-barre > .ds-m { flex: none; color: var(--ds-muted); }
.ds-barre > .ds-m b { display: block; font: 500 20px/1.1 var(--ds-serif); letter-spacing: 0; color: var(--ds-ink); }
.ds-barre .ds-cta { justify-content: center; min-height: 50px; padding-block: 12px; }

.ds-feuille { position: fixed; z-index: 30; inset: 0; display: grid; align-items: end; background: rgba(21, 18, 15, .55); }
.ds-feuille__in { background: var(--ds-bg); border-top: 3px solid var(--ds-accent); max-height: 100dvh; overflow-y: auto; padding: 18px var(--ds-marge) calc(22px + env(safe-area-inset-bottom)); }
.ds-fermer { float: right; background: none; border: 0; padding: 6px 0 6px 12px; color: var(--ds-muted); cursor: pointer; text-decoration: underline; }
.ds-ligne { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--ds-line); font-size: 16px; }
.ds-rouge + .ds-ligne { clear: both; margin-top: 10px; border-top: 1px solid var(--ds-line); }
.ds-ligne b { font-weight: 500; white-space: nowrap; }
.ds-ligne--total { font-size: 20px; border-bottom: 0; }
.ds-feuille label { display: block; margin: 8px 0 6px; color: var(--ds-muted); }
.ds-champ { display: block; width: 100%; height: 54px; padding: 0 14px; margin-bottom: 12px; border: 1px solid var(--ds-ink); border-radius: 0; background: var(--ds-surface); color: var(--ds-ink); font: 400 16px var(--ds-texte); }
.ds-champ:focus { outline: 2px solid var(--ds-accent); outline-offset: 1px; }
.ds-recu { text-align: center; padding: 18px 0 6px; }
.ds-recu .ds-tampon { width: 132px; transform: rotate(-12deg); animation: ds-frappe .32s cubic-bezier(.2, .9, .3, 1.2) both; }
.ds-recu h2 { font: 500 34px/1.1 var(--ds-serif); margin: 18px 0 10px; }
.ds-recu p { max-width: 26em; margin-inline: auto; }
.ds-recu .ds-cta { justify-content: center; margin-top: 20px; }
@keyframes ds-frappe { from { transform: rotate(-12deg) scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ds-recu .ds-tampon { animation: none; } .ds-cta { transition: none; } }

@media (min-width: 900px) {
  .ds { --ds-marge: 40px; font-size: 18px; }
  .ds-m { font-size: 11.5px; }
  .ds-hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ds-line); }
  .ds-hero__tx { padding-block: 72px; align-self: center; }
  .ds h1 { font-size: 64px; }
  .ds-visuel { margin: 0; border-block: 0; border-left: 1px solid var(--ds-line); aspect-ratio: auto; min-height: 560px; }
  .ds-achat, .ds-dedans, .ds-pieces, .ds-faq { max-width: 720px !important; padding-top: 44px; }
  .ds-auteur, .ds-pb { margin-inline: auto !important; }
  .ds-auteur { margin-top: 56px !important; }
  .ds-pb { max-width: 720px !important; margin-top: 84px !important; }
  .ds-barre { justify-content: center; }
  .ds-barre .ds-cta { width: auto; min-width: 320px; }
  .ds-feuille { align-items: center; justify-items: center; }
  .ds-feuille__in { width: 480px; padding: 28px 32px 32px; border: 1px solid var(--ds-line); border-top: 3px solid var(--ds-accent); }
}

/* Le pack : tout le catalogue, la somme à l'unité barrée, son prix en grand, un bouton */
.ds-pack { margin: 40px var(--ds-marge) 0 !important; padding: 26px 20px 22px; background: var(--ds-surface); border-top: 3px solid var(--ds-accent); max-width: 720px !important; }
.ds-pack h2 { font: 500 clamp(28px, 8vw, 44px)/1.06 var(--ds-serif); margin: 8px 0 16px; text-wrap: balance; }
.ds-pack ul { list-style: none; padding: 0; }
.ds-pack li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ds-ink) 16%, transparent); font-size: 15.5px; line-height: 1.3; }
.ds-pack li span:last-child { white-space: nowrap; color: var(--ds-muted); }
.ds-pack__prix { display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.ds-pack__prix s { color: var(--ds-muted); font-size: 18px; }
.ds-pack__prix b { font: 500 clamp(46px, 14vw, 64px)/1 var(--ds-serif); color: var(--ds-accent); white-space: nowrap; }
.ds-pack__gain { text-align: right; margin: 6px 0 18px; color: var(--ds-muted); }
.ds-contenu { margin: 8px 0 4px; font-size: 13.5px; line-height: 1.45; text-align: left !important; }
@media (min-width: 900px) { .ds-pack { margin: 56px auto 0 !important; padding: 36px 36px 30px; } }

/* La scène au défilement : une piste haute, la vue collée dedans, la toile puis l'image fixe de fin par-dessus */
.ds-scene { position: relative; height: 300vh; height: 300lvh; max-width: none !important; margin-top: 34px; }
.ds-scene__vue { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--ds-bg) center / cover no-repeat; }
.ds-scene canvas, .ds-scene__fin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ds-scene canvas { opacity: 0; }
.ds-scene canvas.ds-pret { opacity: 1; }
.ds-scene__fin { opacity: 0; transition: opacity .3s; }
.ds-scene__vue::before, .ds-scene__vue::after { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 16%; background: linear-gradient(var(--ds-bg), transparent); pointer-events: none; }
.ds-scene__vue::after { inset: auto 0 0; background: linear-gradient(transparent, var(--ds-bg)); }
/* le mot se pose à gauche, sur le ciel sombre, jamais sur le sujet */
.ds-scene__mot { position: absolute; z-index: 2; inset: 10% auto auto max(var(--ds-marge), calc((100vw - 1120px) / 2 + var(--ds-marge))); max-width: 7.2em; font: 500 clamp(40px, 11.5vw, 84px)/1 var(--ds-serif); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; }
.ds-scene--fin .ds-scene__fin { opacity: 1; }
.ds-scene--fin .ds-scene__mot { opacity: 1; transform: none; }
.ds-scene--fixe { height: auto; }
.ds-scene--fixe .ds-scene__vue { position: relative; }
.ds--caps .ds-scene__mot { text-transform: uppercase; font-weight: 400; }
.ds-scene + .ds-pack, .ds-scene + .ds-dedans { margin-top: 0 !important; }
@media (prefers-reduced-motion: reduce) { .ds-scene__fin, .ds-scene__mot { transition: none; } }

/* ---------- La peau « La nuit » (habillageDonnees.variante = "nuit") : fond sombre, or, capitales, la photo en ouverture ---------- */
.ds--caps h1, .ds--caps h2, .ds--caps .ds-onglets b { text-transform: uppercase; }
.ds--nuit .ds-m { letter-spacing: .26em; }
.ds--nuit .ds-rouge, .ds--nuit .ds-tete { color: var(--ds-accent); }
.ds--nuit em { font-style: normal; }
.ds--nuit .ds-demo { background: var(--ds-accent); letter-spacing: .08em; }
.ds--nuit .ds-tete { position: absolute; z-index: 2; inset-inline: 0; border: 0; }
.ds--nuit .ds-hero { position: relative; display: flex; flex-direction: column-reverse; }
.ds--nuit .ds-visuel { position: relative; margin: 0; border: 0; aspect-ratio: 39 / 54; }
.ds--nuit .ds-visuel img { object-position: 50% 45%; }
.ds--nuit .ds-visuel::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, var(--ds-bg)); }
.ds--nuit .ds-hero__tx { position: relative; z-index: 1; margin-top: -92px; padding-top: 0; }
.ds--nuit h1 { font-weight: 400; font-size: clamp(44px, 13.6vw, 84px); line-height: .98; letter-spacing: .005em; margin: 10px 0 14px; }
.ds--nuit .ds-onglets { margin: 30px var(--ds-marge) 0 !important; border-top: 1px solid var(--ds-line); }
.ds--nuit .ds-onglets li { padding: 16px 4px; text-align: center; color: var(--ds-muted); }
.ds--nuit .ds-onglets span { display: none; }
.ds--nuit .ds-onglets small { display: block; font-size: 10.5px; letter-spacing: .14em; }
.ds--nuit .ds-onglets b { font: 400 26px/1.1 var(--ds-serif); letter-spacing: .02em; color: var(--ds-accent); margin: 0 0 4px; }
.ds--nuit .ds-cta { background: var(--ds-accent); color: var(--ds-bg); }
.ds--nuit .ds-cta:hover { background: var(--ds-ink); }
.ds--nuit .ds-cta .ds-m { font-weight: 500; letter-spacing: .2em; }
.ds--nuit .ds-pack h2, .ds--nuit .ds-pack__prix b { font-weight: 400; letter-spacing: .01em; }
.ds--nuit .ds-pack { border-top-width: 1px; }
.ds--nuit .ds-cta b, .ds--nuit .ds-piece b, .ds--nuit .ds-barre > .ds-m b, .ds--nuit .ds-ligne b { font-family: var(--ds-serif); font-weight: 400; letter-spacing: .02em; }
.ds--nuit .ds-cta:focus-visible { outline-color: var(--ds-ink); }
.ds--nuit .ds-note { text-align: center; }
.ds--nuit .ds-auteur { display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: center; border: 0; background: none; padding: 0; margin-top: 26px !important; }
.ds--nuit .ds-auteur .ds-photo { grid-row: 1 / 4; float: none; margin: 0; width: 84px; height: 84px; border-radius: 50%; object-position: 50% 40%; border: 1px solid var(--ds-accent); }
.ds--nuit .ds-auteur > .ds-m:not(.ds-photo), .ds--nuit .ds-auteur .ds-tampon { display: none; }
.ds--nuit .ds-auteur strong { font: 500 16px/1.3 var(--ds-texte); margin: 0; }
.ds--nuit .ds-auteur p { font-size: 14.5px; color: color-mix(in srgb, var(--ds-ink) 74%, var(--ds-bg)); }
.ds--nuit .ds-pb + .ds-scene { margin-top: 0; }
.ds--nuit .ds-pb { max-width: none !important; margin: 34px 0 0 !important; padding: 46px var(--ds-marge); border-top: 1px solid var(--ds-accent); background: color-mix(in srgb, var(--ds-bg) 60%, #000); }
.ds--nuit .ds-pb h2 { font-size: clamp(32px, 9vw, 60px); line-height: 1.04; max-width: 1040px; margin-inline: auto; }
.ds--nuit .ds-piece { border: 0 !important; background: var(--ds-surface); padding: 14px; margin-bottom: 8px; }
.ds--nuit .ds-piece > .ds-m { display: none; }
.ds--nuit .ds-piece b { font-size: 19px; color: var(--ds-accent); }
.ds--nuit .ds-case { border-color: var(--ds-accent); }
.ds--nuit .ds-nom { font-size: 15.5px; }
.ds--nuit .ds-barre { border-top-color: var(--ds-line); }
@media (min-width: 900px) {
  /* la photo va jusqu'au bord droit de l'écran, le texte reste aligné sur la colonne de la page */
  .ds--nuit .ds-hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0; max-width: none !important; }
  .ds--nuit .ds-hero__tx { margin-top: 0; padding-block: 96px 72px; padding-left: max(var(--ds-marge), calc((100vw - 1120px) / 2 + var(--ds-marge))); }
  .ds--nuit h1 { font-size: 84px; }
  .ds--nuit .ds-visuel { order: 2; aspect-ratio: auto; min-height: 640px; border: 0; }
  .ds--nuit .ds-visuel::after { inset: 0 auto 0 0; width: 34%; height: auto; background: linear-gradient(90deg, var(--ds-bg), transparent); }
  .ds--nuit .ds-visuel::before { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 24%; background: linear-gradient(transparent, var(--ds-bg)); }
  .ds--nuit .ds-onglets { max-width: 720px !important; margin-inline: auto !important; }
  .ds--nuit .ds-auteur { max-width: 720px !important; margin-top: 40px !important; }
  .ds--nuit .ds-pb h2 { text-align: center; }
}
