/* The offer pages (lib/offer-demo.mjs, src/offre-demo.js): a stage with the printed sheet and the phone page, beside the
   steps. The paper stays white in dark mode: it is a sheet of paper. */
.demo { display: flex; flex-direction: column; gap: 1.4rem; }
.demo-kicker { margin: 0; font: 700 0.95rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sign-red); }
.demo h1 { margin: 0; font: 700 clamp(2rem, 6vw, 3.2rem)/1.02 var(--display); text-transform: uppercase; max-width: 22ch; }
.demo-chapo { margin: 0; font-size: 1.15rem; line-height: 1.5; max-width: 46rem; color: var(--ink-soft); }
.demo-essai { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem 0.8rem; background: var(--surface); border: 2px dashed var(--rule); border-radius: 10px; padding: 0.7rem 0.9rem; max-width: 40rem; }
.demo-essai span { font-weight: 700; }
.demo-essai input { flex: none; min-height: 44px; font: inherit; padding: 0.4rem 0.6rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--field); color: var(--ink); }

/* The scene: stage and steps. Phone first: the stage sticks at the top, the steps scroll under it. */
.demo-scene { display: grid; gap: 1.2rem; }
.demo-scene-scene { position: relative; }
.demo-onglets { display: flex; gap: 0.4rem; margin-bottom: 0.7rem; }
.demo-onglets button { flex: 1; min-height: 44px; font: 700 0.95rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.demo-onglets button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.demo-scene:not(.demo-actif) .demo-onglets { display: none; }
.demo-vues { display: grid; gap: 1rem; }
.demo-note { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.demo-note-pied { display: none; }
@media (max-width: 899px) { .demo-actif .demo-note-pied { display: block; } }
.demo-actif .demo-vues { display: grid; grid-template-areas: "v"; }
.demo-actif .demo-vue { grid-area: v; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.97); transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s; }
.demo-actif .demo-vue.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.demo-vue { display: flex; justify-content: center; container-type: inline-size; }
.demo-actif .demo-vue { container-type: size; }

.demo-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.demo-etape { position: relative; background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 0.9rem 1rem 0.9rem 3.3rem; cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s; }
.demo-etape h3 { margin: 0 0 0.25rem; font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; }
.demo-etape p { margin: 0; line-height: 1.45; }
.demo-num { position: absolute; left: 0.9rem; top: 0.85rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--display); background: var(--rule); color: var(--ink); }
.demo-etape.on { border-color: var(--sign-red); box-shadow: 0 6px 18px rgba(196, 18, 47, 0.14); }
.demo-etape.on .demo-num { background: var(--sign-red); color: #fff; }
.demo-etape:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

@media (max-width: 899px) {
  .demo-actif .demo-scene-scene { position: sticky; top: 0; z-index: 3; background: var(--ground); padding: 0.5rem 0 0.6rem; box-shadow: 0 10px 12px -12px rgba(0,0,0,0.35); }
  .demo-actif .demo-vue { height: min(44vh, 26rem); }
  .demo-actif .demo-note { display: none; }
  .demo-actif .demo-onglets { margin-bottom: 0.5rem; }
  .demo-actif .demo-onglets button { min-height: 40px; font-size: 0.85rem; }
  .demo-actif .demo-etapes { gap: 22vh; padding: 4vh 0 30vh; }
}
@media (min-width: 900px) {
  .demo-scene { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; align-items: stretch; }
  .demo-actif .demo-scene-colle { position: sticky; top: 1rem; }
  .demo-actif .demo-vue { height: min(78vh, 46rem); }
  .demo-actif .demo-etapes { gap: 34vh; padding: 22vh 0 36vh; }
}

/* The sheet of paper: A4, drawn at the size of its frame (container units). */
.demo-papier { aspect-ratio: 210 / 297; height: 100%; max-width: 100%; background: #fff; color: #15181C; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 14px 34px rgba(0,0,0,.22); padding: 4.2%; overflow: hidden; font: 400 1.05rem/1.3 var(--body); transform: rotate(-0.6deg); }
.demo-scene:not(.demo-actif) .demo-papier { height: auto; width: min(100%, 34rem); }
.demo-papier { font-size: clamp(6px, 2.2cqi, 13px); }
.demo-actif .demo-papier { font-size: clamp(5px, 1.95cqh, 13px); }
@supports not (font-size: 1cqi) { .demo-papier { font-size: 9px; } }

/* The phone. */
.demo-tel { position: relative; height: 100%; aspect-ratio: 9 / 18.5; max-width: 100%; background: #15181C; border-radius: 2.2rem; padding: 0.7rem; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.demo-scene:not(.demo-actif) .demo-tel { height: 36rem; }
.demo-tel-oreille { position: absolute; top: 0.95rem; left: 50%; width: 30%; height: 0.95rem; transform: translateX(-50%); background: #15181C; border-radius: 1rem; z-index: 2; }
.demo-tel-ecran { height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: 1.6rem; background: var(--ground); color: var(--ink); font-size: 0.82rem; line-height: 1.35; scrollbar-width: none; }
.demo-tel-ecran::-webkit-scrollbar { display: none; }
.demo-tel-ecran:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }

/* What lights up. */
[data-part] { transition: box-shadow 0.3s, background-color 0.3s; border-radius: 4px; }
.dm-allume { box-shadow: 0 0 0 0.25em #F2C230, 0 0 0 0.5em rgba(242, 194, 48, 0.35); position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .dm-allume { animation: dm-pouls 1.6s ease-in-out 2; } }
@keyframes dm-pouls { 50% { box-shadow: 0 0 0 0.35em #F2C230, 0 0 0 0.9em rgba(242, 194, 48, 0.18); } }

/* Shared drawings: the list of events. */
.dm-rubrique { margin: 0.9em 0 0.4em; font: 700 1.05em/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 0.15em solid currentColor; padding-bottom: 0.25em; }
.dm-liste { list-style: none; margin: 0; padding: 0; }
.dm-jour { margin-top: 0.6em; padding-bottom: 0.15em; border-bottom: 1px solid #D5DAD2; font-size: 0.95em; text-transform: lowercase; }
.dm-jour b { font: 700 1.15em/1 var(--display); text-transform: uppercase; margin-right: 0.3em; }
.dm-ev { display: grid; grid-template-columns: 3.2em 1fr; gap: 0.5em; padding: 0.35em 0; border-bottom: 1px dotted #D5DAD2; }
.dm-h { font: 700 1em/1.2 var(--display); }
.dm-t { font-weight: 700; display: flex; flex-direction: column; gap: 0.15em; }
.dm-t a { color: inherit; }
.dm-lieu { font-weight: 400; font-size: 0.86em; display: flex; flex-wrap: wrap; gap: 0.35em; align-items: center; opacity: 0.85; }
.dm-chip { font: 700 0.8em/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid currentColor; border-radius: 3px; padding: 0.15em 0.35em; }
.dm-annonce { background: #FBEFD9; padding-inline: 0.3em; }
.dm-tag { align-self: flex-start; font: 700 0.75em/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; background: #8A4B0F; color: #fff; border-radius: 2px; padding: 0.2em 0.4em; margin-bottom: 0.15em; }
.dm-panneau { margin: 0; display: inline-flex; flex-direction: column; align-items: center; border: 0.22em solid #C4122F; border-radius: 0.5em; background: #fff; color: #15181C; padding: 0.25em 0.7em 0.3em; font: 700 1.6em/1 var(--display); text-transform: uppercase; }
.dm-panneau span { font-size: 0.42em; letter-spacing: 0.1em; }

/* The host's sheet and page, in the host's colours. */
.dm-hote { color: var(--h-ink); }
.dm-hote-tete { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3em; padding-bottom: 0.6em; border-bottom: 0.12em solid var(--h-rule); }
.dm-hote-tete img { width: 3.6em; height: 3.6em; }
.dm-kicker { margin: 0; font-size: 0.75em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-soft); }
.dm-titre { margin: 0; font: 400 2em/1 Georgia, serif; }
.dm-accueil { margin: 0.7em 0 0; background: var(--h-plaque); color: var(--h-plaque-ink); padding: 0.6em 0.8em; font-style: italic; text-align: center; font-size: 0.95em; }
.dm-hote .dm-rubrique { color: var(--h-ink); }
.dm-hote .dm-chip { color: var(--h-accent-dark); }
.dm-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1em; }
.dm-boite { margin-top: 0.9em; background: var(--h-tint); border: 0.12em solid var(--h-rule); border-radius: 0.4em; padding: 0 0.7em 0.6em; }
.dm-boite ul { list-style: none; margin: 0; padding: 0; }
.dm-boite li { padding: 0.35em 0; border-bottom: 1px dotted var(--h-rule); font-size: 0.92em; display: flex; flex-direction: column; }
.dm-plaque { margin-top: 1em; display: grid; grid-template-columns: 1fr 5.2em; gap: 0.9em; align-items: center; background: var(--h-plaque); color: var(--h-plaque-ink); border-radius: 0.4em; padding: 0.7em 0.9em; font-size: 0.95em; }
.dm-plaque b { display: block; font: 700 1.2em/1.1 var(--display); text-transform: uppercase; margin-bottom: 0.2em; }
.dm-qr { background: #fff; padding: 0.3em; border-radius: 0.2em; }
.dm-qr svg { display: block; width: 100%; height: auto; }
.dm-hote-tel { background: #FCFAF6; min-height: 100%; padding: 2.4rem 0.9rem 1.2rem; }
.dm-hote-tel .dm-titre { font-size: 1.6rem; }
.dm-hote-tel .dm-hote-tete img { width: 2.8rem; height: 2.8rem; }
.dm-pied { margin: 1rem 0 0; font-size: 0.75rem; color: var(--h-soft); }

/* The edition's sheet and the site on the phone. */
.dm-feuille .dm-f-tete { display: flex; justify-content: space-between; align-items: center; border-bottom: 0.2em solid #15181C; padding-bottom: 0.5em; }
.dm-f-ce { margin: 0; font: 700 1.8em/1 var(--display); text-transform: uppercase; }
.dm-soutenu { margin: 0.6em 0 0; text-align: center; font-size: 0.95em; padding: 0.4em; border: 0.12em solid #15181C; border-radius: 0.3em; }
.dm-chez { margin-top: 0.9em; border: 0.15em solid #1D3A8A; border-radius: 0.4em; padding: 0 0.7em 0.5em; }
.dm-chez .dm-rubrique { color: #1D3A8A; }
.dm-chez ul { list-style: none; margin: 0; padding: 0; }
.dm-chez li { padding: 0.3em 0; display: flex; flex-direction: column; }
.dm-f-une { margin-top: 0.9em; background: #F2C230; color: #2A2204; border-radius: 0.4em; padding: 0.6em 0.8em; display: flex; flex-direction: column; gap: 0.2em; }
.dm-f-une b { font: 700 1.25em/1.1 var(--display); text-transform: uppercase; }
.dm-f-suite { font-size: 0.85em; }
.dm-f-plaque { margin-top: 0.9em; background: #1D3A8A; color: #fff; border-radius: 0.4em; padding: 0.6em 0.8em; font-size: 0.92em; }
.dm-f-plaque b { display: block; font: 700 1.2em/1.1 var(--display); text-transform: uppercase; }
.dm-f-plaque span { display: block; font-weight: 700; margin-top: 0.2em; }
.dm-une-tag { align-self: flex-start; font: 700 0.78em/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; background: #C4122F; color: #fff; border-radius: 2px; padding: 0.2em 0.45em; }
.dm-site { padding: 2.4rem 0.8rem 1.2rem; }
.dm-site .dm-panneau { font-size: 1.15rem; }
.dm-site .dm-liste, .dm-site .dm-jour, .dm-site .dm-ev { border-color: var(--rule); }
.dm-site .dm-annonce { background: var(--warn-bg); }
.dm-svcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.dm-svc { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.65rem; display: flex; flex-direction: column; gap: 0.15rem; }
.dm-svc b { font: 700 1.05rem/1.1 var(--display); text-transform: uppercase; }
.dm-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.dm-svc-une { border: 2px solid var(--sign-red); background: linear-gradient(var(--surface), var(--surface)) padding-box; box-shadow: 0 4px 12px rgba(196,18,47,.15); }
.dm-boutons { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.dm-boutons span { flex: 1; text-align: center; font: 700 0.8rem/1 var(--display); text-transform: uppercase; background: var(--plaque); color: var(--plaque-ink); border-radius: 4px; padding: 0.45rem; }

/* What you get, the offer, the other offers. */
.demo-recu { background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 0.2rem 1.2rem 1rem; }
.demo-recu h2, .demo-offre h2, .demo-autres h2 { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; }
.demo-recu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.demo-recu li { position: relative; padding-left: 1.9rem; line-height: 1.45; }
.demo-recu li::before { content: ""; position: absolute; left: 0.2rem; top: 0.2rem; width: 1.05rem; height: 0.6rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.demo-offre p { line-height: 1.5; }
.demo-offre .bouton { margin: 0.3rem 0.4rem 0.3rem 0; }
.demo-autres ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.demo-autres a { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 10px; padding: 0.8rem 0.9rem; }
.demo-autres a:hover { border-color: var(--ink); }
.demo-autres b { font: 700 1.15rem/1.1 var(--display); text-transform: uppercase; }
.demo-autres span { color: var(--link); }

/* The /pros hub: three doors to the demos. */
.pros-portes { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pros-portes a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 1rem; }
.pros-portes b { font: 700 1.3rem/1.05 var(--display); text-transform: uppercase; }
.pros-portes span { color: var(--link); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .demo-actif .demo-vue, .demo-actif .demo-vue.on, .demo-etape, [data-part] { transition: none; }
  .demo-papier { transform: none; }
}

/* /pros: the hub (Eric, 2026-11-26). */
.hub main { display: flex; flex-direction: column; gap: 1.6rem; }
.hub-tete { display: flex; flex-direction: column; gap: 0.8rem; }
.hub-tete h1 { margin: 0; font: 700 clamp(2.1rem, 6vw, 3.4rem)/1 var(--display); text-transform: uppercase; max-width: 20ch; }
.hub-chiffres { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hub-chiffres li { background: var(--surface); border: 2px solid var(--rule); border-radius: 999px; padding: 0.4rem 0.9rem; }
.hub-chiffres b { font: 700 1.25rem/1 var(--display); color: var(--sign-red); margin-right: 0.25rem; }
.hub-titre { margin: 0.4rem 0 0; font: 700 1.7rem/1.1 var(--display); text-transform: uppercase; }
.hub-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.hub-carte { display: flex; flex-direction: column; gap: 0.55rem; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 1.1rem 1.1rem 1.2rem; }
.hub-carte h2 { margin: 0; font: 700 1.35rem/1.05 var(--display); text-transform: uppercase; }
.hub-carte p { margin: 0; line-height: 1.45; }
.hub-icone { color: var(--sign-red); }
.hub-prix { font-weight: 700; color: var(--ink); background: var(--ground); border-radius: 8px; padding: 0.45rem 0.6rem; }
.hub-gratuit .hub-prix { color: var(--ok); }
.hub-boutons { margin-top: auto !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 0.3rem; }
.hub-exemple { font-weight: 700; }
.hub-comment ol { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: n; }
.hub-comment li { counter-increment: n; background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 0.9rem 1rem 0.9rem 3.2rem; position: relative; line-height: 1.45; }
.hub-comment li::before { content: counter(n); position: absolute; left: 0.9rem; top: 0.85rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--sign-red); color: #fff; font: 700 1rem/1 var(--display); }
.hub-qui { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1rem; }
.hub-qui img { border-radius: 50%; flex: none; object-fit: cover; }
.hub-qui h2 { margin: 0 0 0.3rem; font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; }
.hub-qui p { margin: 0; line-height: 1.45; }
@media (max-width: 30rem) { .hub-qui { flex-direction: column; align-items: flex-start; } }

.demo-prix { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; padding: 0.7rem 0.9rem; max-width: 46rem; }
.demo-prix b { font: 700 1.05rem/1 var(--display); text-transform: uppercase; margin-right: 0.3rem; }
