/* Direction A — « La scène » : l'atelier fixe d'un côté, la lecture de l'autre. Archivo, papier gris, encre, laiton. */
@font-face { font-family: "Archivo"; src: url("/polices/archivo-normal-100-900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/polices/archivo-italic-100-900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --papier: #e8e8e3;
  --papier-2: #dcdcd6;
  --encre: #181715;
  --encre-2: #5c5b55;
  --laiton: #c2b41c;
  --nuit: #121316;
  --petit: clamp(.8125rem, .79rem + .1vw, .875rem);
  --nav: .9375rem;
  --corps: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --grand: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  --h3: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  --h2: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem);
  --h1: clamp(2.25rem, 1.4rem + 2.8vw, 3.5rem);
  --marge: clamp(20px, 5vw, 72px);
  --barre: 44px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 var(--corps)/1.5 "Archivo", system-ui, sans-serif; overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; font-stretch: 92%; }
h1 { font-size: var(--h1); line-height: 1; letter-spacing: -.03em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.15; }
p, ul { margin: 0; }
a { color: inherit; }
::selection { background: var(--laiton); color: var(--encre); }
:focus-visible { outline: 3px solid var(--laiton); outline-offset: 3px; }
.evitement { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--encre); color: var(--papier); padding: 10px 16px; }
.evitement:focus { top: 12px; }

.grand { font-size: var(--grand); line-height: 1.4; }
.note { font-size: var(--petit); color: var(--encre-2); line-height: 1.5; }
.lien { font-weight: 600; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; text-decoration-color: var(--laiton); transition: text-decoration-color var(--t-hover) ease; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; background: var(--laiton); color: var(--encre); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.bouton:active, .bouton.is-in:active { transform: scale(.97); }
.bouton-encre { background: var(--encre); color: var(--papier); }
.bouton-papier { background: var(--papier); color: var(--encre); }
@media (hover: hover) and (pointer: fine) {
  .lien:hover { text-decoration-color: currentColor; }
  .bouton:hover { background: var(--encre); color: var(--papier); }
  .bouton-encre:hover, .bouton-papier:hover, .forfait-mise .bouton:hover { background: var(--laiton); color: var(--encre); }
}

/* ---------- La scène ---------- */
.scene { position: sticky; top: 0; z-index: 3; height: 36svh; min-height: 240px; overflow: hidden; background: var(--nuit); }
.scene-images, .scene-objets { position: absolute; inset: 0; }
.scene-image { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.scene-image img, .scene-image video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-image.active { opacity: 1; }
.scene-affiche { position: absolute; inset: 0; }
.scene-video { position: relative; transition: opacity 1.8s var(--ease-soft); }
.scene-video.finie { opacity: 0; }
.scene-objet { position: absolute; opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.scene-objet.active { opacity: 1; transform: none; }
.appareil { background: #15161a; box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .7), 0 14px 28px -14px rgba(0, 0, 0, .55); } /* objet réel posé dans la scène photo : taste-skill-ignore */
.appareil img { display: block; width: 100%; height: auto; }
.appareil-tel { padding: 3.2%; border-radius: 11% / 5.5%; }
.appareil-tel img { border-radius: 8% / 4%; }
.appareil-pc { padding: .8% .8% 1.1%; border-radius: 10px; }
.appareil-pc img { border-radius: 5px; }
.appareil-a4 { padding: 0; background: #fff; }
.objet-tel { right: 7%; bottom: calc(var(--barre) + 8%); width: clamp(84px, 20%, 300px); }
.objet-tel .appareil { transform: perspective(1400px) rotateY(-12deg) rotateX(3deg); }
.objet-pc { right: 5%; bottom: calc(var(--barre) + 7%); width: 62%; }
.objet-pc .appareil { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: right center; }
.objet-a4 { right: 8%; bottom: calc(var(--barre) + 4%); width: 30%; }
.objet-a4 .appareil { transform: rotate(2deg); }
.scene-barre { position: absolute; left: 0; right: 0; bottom: 0; min-height: var(--barre); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 16px; background: var(--papier); color: var(--encre); font-size: var(--petit); line-height: 1.3; }
.scene-legende { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene-note { display: none; color: var(--encre-2); text-align: right; }

/* ---------- La colonne de lecture ---------- */
.colonne { position: relative; z-index: 2; background: var(--papier); padding: 0 var(--marge); }
.chapitre { max-width: 46ch; padding: 12vh 0; }
.chapitre > * + * { margin-top: 28px; }
.savoir { margin-top: 44px; }
.savoir > * + *, .mode > * + * { margin-top: 10px; }
.chapitre h3 + p, .chapitre h2 + p { margin-top: 12px; }
.liste { padding-left: 1.1em; }
.liste li + li { margin-top: 10px; }
.etape { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.etape > * + * { margin-top: 14px; }
.fait { font-size: var(--grand); line-height: 1.3; margin-top: 18px; }
.fait b { display: block; margin-bottom: 6px; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.6rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; font-stretch: 92%; font-variant-numeric: tabular-nums; }

.hero { max-width: none; padding: 0 0 10vh; }
.entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 22px; }
.marque { display: inline-flex; align-items: baseline; gap: 10px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.marque span { font-size: var(--petit); font-weight: 600; letter-spacing: .04em; color: var(--encre-2); }
/* liens croisés SELECTIS (24/10/2026) : mention « par SELECTIS » à côté de la marque, en-tête et pied */
.par-selectis { margin-right: auto; font-size: var(--petit); font-weight: 600; letter-spacing: .04em; color: var(--encre-2); text-decoration: none; transition: color var(--t-hover) ease; }
.par-selectis:hover { color: var(--encre); text-decoration: underline; text-underline-offset: .18em; }
.pied-marque { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pied .par-selectis { margin-right: 0; color: #a8a79f; }
.pied .par-selectis:hover { color: var(--papier); }
.entete nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--nav); font-weight: 500; }
.entete nav a { text-decoration: none; }
.hero-corps { max-width: 46ch; padding-top: clamp(44px, 9vh, 120px); }
.hero-corps > * + * { margin-top: 24px; }
.hero-corps h1 { max-width: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.preuve { font-weight: 600; }
.direct { font-size: var(--petit); color: var(--encre-2); }
.direct b { color: var(--encre); font-weight: 600; }

.choix { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--papier-2); }
.choix-bouton { border: 0; background: transparent; color: var(--encre); font: inherit; font-size: var(--petit); font-weight: 600; padding: 10px 14px; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.choix-bouton[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.mode { margin-top: 20px; }

/* ---------- Pleine largeur ---------- */
.video { max-width: 1240px; margin: 0 auto; padding: 14vh var(--marge); }
.video-texte { max-width: 60ch; }
.video-texte > * + * { margin-top: 18px; }
.video-cadre { position: relative; margin-top: 40px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nuit); }
.video-cadre img, .video-cadre iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-lire { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border: 0; background: var(--papier); color: var(--encre); font: inherit; font-weight: 600; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.video-lire:active { transform: translate(-50%, -50%) scale(.97); }
.video-rond { display: grid; place-items: center; width: 44px; height: 44px; background: var(--laiton); }
.video-rond::before { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--encre); }
.video-consent { max-width: 70ch; margin-top: 14px; font-size: var(--petit); color: var(--encre-2); }
.video-message { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 20px; background: var(--encre); color: var(--papier); font-size: var(--petit); }

.accompagnement { padding-top: 8vh; }
.accompagnement-intro { max-width: 820px; margin: 0 auto; padding: 0 var(--marge) 52px; }
.accompagnement-intro > * + * { margin-top: 18px; }
.accompagnement-intro .actions { margin-top: 28px; }
.forfaits { display: grid; }
.forfait { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; gap: 18px 24px; min-height: 68svh; padding: 40px var(--marge); }
.forfait h3, .forfait .qui, .forfait .inclus { grid-column: 1 / -1; }
.forfait .bouton { justify-self: start; white-space: nowrap; }
.forfait h3 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5rem); line-height: .95; letter-spacing: -.03em; }
.forfait .qui { max-width: 30ch; font-size: var(--grand); line-height: 1.35; }
.forfait .inclus { max-width: 54ch; align-self: start; }
.forfait .prix { grid-column: 1; align-self: end; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 32px; }
.forfait .apd { width: 100%; font-size: var(--grand); }
.forfait .montant { font-size: clamp(3.4rem, 1.8rem + 7vw, 9rem); line-height: .9; letter-spacing: -.04em; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.forfait .unite { font-size: var(--corps); }
.forfait-jour { background: var(--laiton); color: var(--encre); }
.forfait-mise { background: var(--encre); color: var(--papier); }
.forfait-mise .bouton { background: var(--laiton); color: var(--encre); }
.forfaits-note { max-width: 80ch; margin: 0 auto; padding: 28px var(--marge) 0; font-size: var(--petit); color: var(--encre-2); }

.lettre { padding: clamp(96px, 16vh, 180px) var(--marge); background: var(--papier-2); }
.lettre-corps { max-width: 520px; margin: 0 auto; }
.lettre-corps > * + * { margin-top: 18px; }
.lettre p { line-height: 1.55; }
.portrait-vide { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--encre); color: var(--papier); font-size: 14px; font-weight: 600; }
.signature { display: grid; gap: 4px; margin-top: 32px; }
.signature .nom { font-style: italic; font-size: 1.375rem; }
.signature .role { font-size: var(--petit); color: var(--encre-2); }

.telecharger { display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 14vh var(--marge); }
.telecharger-texte > * + *, .prevenez > * + * { margin-top: 18px; }
.champ-ligne { display: grid; gap: 8px; }
.champ-ligne label { font-size: var(--petit); font-weight: 600; }
.champ-ligne input { min-height: 54px; padding: 12px 16px; border: 2px solid var(--encre); background: #fff; color: var(--encre); font: inherit; }
.case { display: flex; align-items: flex-start; gap: 10px; font-size: var(--petit); color: var(--encre-2); }
.case input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--encre); }
.prevenez-merci { padding: 16px 18px; background: var(--laiton); color: var(--encre); font-weight: 600; }
/* Zone de téléchargement : la version stable et la bêta, côte à côte (05/11/2026) */
.telecharger-tete { max-width: 60ch; }
.telecharger-tete > * + * { margin-top: 18px; }
.version { display: grid; align-content: start; gap: 18px; padding: 32px clamp(20px, 3vw, 40px) 36px; background: var(--papier-2); }
.version h3 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); line-height: .95; letter-spacing: -.03em; }
.version-etiquette { justify-self: start; padding: 5px 10px; font-size: var(--petit); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--encre); color: var(--papier); }
.version-beta { background: var(--encre); color: var(--papier); }
.version-beta .version-etiquette { background: var(--laiton); color: var(--encre); }
.version-beta .note { color: #a8a79f; }
.correctif { padding: 14px 16px; border-left: 4px solid var(--laiton); background: var(--papier-2); }
@media (hover: hover) and (pointer: fine) {
  .version-beta .bouton:hover { background: var(--papier); color: var(--encre); }
}

.final { position: relative; display: grid; align-items: end; min-height: 72svh; background: var(--nuit); color: var(--papier); }
.final-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.final-texte { position: relative; max-width: 46ch; padding: 48px var(--marge); }
.final-texte > * + * { margin-top: 20px; }
.final-texte h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 300; }

.pied { display: grid; background: var(--encre); color: var(--papier); }
.pied-image { display: block; width: 100%; height: 50svh; object-fit: cover; object-position: 60% 50%; }
.pied-menu { display: grid; gap: 40px; align-content: start; padding: 48px var(--marge) 32px; }
.pied .marque span { color: #a8a79f; }
.pied nav { display: grid; gap: 14px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; }
.pied nav a { display: inline-block; text-decoration: none; transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
.pied-blocs { display: grid; gap: 24px; max-width: 70ch; font-size: var(--petit); line-height: 1.6; }
.pied-blocs .lien { font-weight: 500; }
.pied-signature { font-weight: 600; }
.pied-credits { max-width: 70ch; font-size: var(--petit); color: #a8a79f; }
@media (hover: hover) and (pointer: fine) {
  .pied nav:hover a:not(:hover) { color: #a8a79f; }
  .pied nav a:hover { transform: translateX(12px); }
}

/* ---------- Pages intérieures : démo, à propos, contact, pages légales (même scène, même colonne) ---------- */
.hero.court { min-height: 0; }
.hero.court .hero-corps { padding: clamp(36px, 7vh, 90px) 0 4vh; }
.chapitre.large { max-width: 64ch; padding: 8vh 0; }
.portrait { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.frise { display: grid; gap: 26px; margin: 0; }
.frise > div { display: grid; grid-template-columns: 4.6ch 1fr; gap: 6px 18px; }
.frise dt { font-size: var(--grand); line-height: 1.2; font-variant-numeric: tabular-nums; font-stretch: 92%; }
.frise dd { margin: 0; }
.frise dd b { display: block; font-weight: 600; margin-bottom: 4px; }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.chiffre b { display: block; margin-bottom: 8px; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; font-stretch: 92%; font-variant-numeric: tabular-nums; }
.chiffre span { display: block; font-size: var(--petit); color: var(--encre-2); line-height: 1.45; }
.tableau { width: 100%; border-collapse: collapse; font-size: var(--petit); line-height: 1.45; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; }
.tableau th { font-weight: 600; }
.tableau tbody tr:nth-child(odd) td { background: var(--papier-2); }
.tableau tbody td:first-child { padding-left: 12px; }
.tableau td b { font-weight: 600; }
.formulaire { display: grid; gap: 22px; }
.champ { display: grid; gap: 8px; }
.champ label { font-weight: 600; }
.champ input, .champ textarea, .champ select { width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--encre); background: #fff; color: var(--encre); font: inherit; }
.champ textarea { min-height: 180px; resize: vertical; }
.aide { color: var(--encre-2); }
.formulaire .case { font-size: var(--corps); color: var(--encre); }
.piege { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; } /* champ piège hors écran, pas un filet : taste-skill-ignore */
.erreur { padding: 14px 18px; background: var(--laiton); font-weight: 600; }
.bloc-texte { padding: 24px; background: var(--papier-2); }
.bloc-texte p + p { margin-top: 14px; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { margin-top: 8px; font-size: var(--petit); color: var(--encre-2); }
@media (max-width: 699px) {
  .tableau thead { display: none; }
  .tableau tr { display: grid; gap: 4px; padding: 14px 12px; }
  .tableau tbody tr:nth-child(odd) { background: var(--papier-2); }
  .tableau tbody td, .tableau tbody tr:nth-child(odd) td { display: block; padding: 0; background: transparent; }
  .tableau td::before { content: attr(data-th) " : "; font-weight: 600; }
  .tableau td:first-child { font-size: var(--corps); font-weight: 600; margin-bottom: 4px; }
  .tableau td:first-child::before { content: none; }
}

/* ---------- Grands écrans : la scène et la colonne côte à côte ---------- */
@media (min-width: 560px) {
  .champ-ligne { grid-template-columns: 1fr auto; }
  .champ-ligne label { grid-column: 1 / -1; }
}
@media (min-width: 700px) {
  .forfait { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto; }
  .forfait .prix { grid-column: 1; }
  .forfait .bouton { grid-column: 2; align-self: end; justify-self: end; }
  .scene-note { display: block; white-space: nowrap; }
  .scene-legende { display: block; }
}
@media (min-width: 900px) {
  .forfaits { grid-template-columns: 5fr 7fr; }
  .forfait { min-height: 84svh; }
  .telecharger { grid-template-columns: 1fr 1fr; gap: 72px 40px; align-items: start; }
  .telecharger-tete { grid-column: 1 / -1; }
  .telecharger .version { align-self: stretch; }
  .final { min-height: 90svh; }
  .final-texte { margin-left: 52%; padding-bottom: 12vh; }
}
@media (min-width: 1024px) {
  :root { --barre: 56px; }
  .scene-page { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .scene { z-index: 1; height: 100svh; min-height: 0; }
  .scene-barre { padding: 0 28px; }
  .colonne { padding: 0 clamp(40px, 4.5vw, 72px); }
  .hero { display: grid; grid-template-rows: auto 1fr; min-height: 100svh; }
  .hero-corps { padding: 13vh 0 14vh; }
  .chapitre { padding: 12vh 0; }
  .etape { min-height: 62vh; }
  .pied { grid-template-columns: 1fr 1fr; min-height: 100svh; }
  .pied-image { height: 100%; }
  .pied-menu { padding: 80px 72px 40px; }
}

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .apparait.is-in { opacity: 1; transform: none; }
  .scene-image.active img, .scene-image.active video { animation: respire 9s var(--ease-soft) both; }
  @keyframes respire { from { transform: scale(1.06); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-image, .scene-objet, .bouton, .pied nav a { transition: none; }
}
