/* epsilab : la table et les fiches. Repris de da/coquille/coquille.html le 2026-11-12. */
/* La table est la seule page. Une fiche s'ouvre en grande feuille posée dessus : ses carreaux en tête, un fond uni ensuite. */
:root {
  color-scheme: light;
  --carton: #F6EBDA; --carte: #FCF5E9; --papier: #F2E8D5; --moule: #F8E3CD;
  --encre: #1B1712; --mine: #5F5548; --filet: #D6C6AD; --kraft: #C9AC84; --kraft-f: #9C7F58;
  --stylo: #1C3FA8; --rouge: #D8574B; --rouge-carte: #BE2A1E; --vert: #1F6B52;
  --tapis: #171412; --tapis-2: #27211B; --craie: #F3ECE0; --craie-2: #BFB5A5; --trait-tapis: #4B4237;
  --s1: #2D5BD0; --s2: #D2541A; --s3: #1F8A63; --s4: #8E4FB8; --s5: #A67C00; --s6: #C93A6E; --hachure: #7A6C58;
  --titre: "Geologica", "Helvetica Neue", Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, Menlo, monospace;
  --main: "Reenie Beanie", "Bradley Hand", cursive;
  --rayon: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--carton); color: var(--encre); font-family: var(--titre); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--stylo); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.releve { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mine); }
.stylo { font-family: var(--main); color: var(--stylo); font-size: 28px; line-height: 1; }
.nb { white-space: nowrap; }

/* L'île : un en-tête flottant, qui suit la lecture sur une fiche */
.ile {
  position: fixed; z-index: 20; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(14px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 6px; min-height: 48px; max-width: calc(100vw - 28px); padding: 5px 6px 5px 12px; border-radius: 999px; overflow: hidden;
  background: rgba(252, 245, 233, .72); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 28px rgba(27, 23, 18, .15), 0 0 0 1px rgba(27, 23, 18, .07);
}
.marque { display: inline-flex; align-items: center; gap: 7px; font-size: 21px; line-height: 1; font-weight: 700; letter-spacing: -.025em; font-variation-settings: 'SHRP' 100; text-decoration: none; white-space: nowrap; }
.marque svg { width: 24px; height: 24px; flex: none; overflow: visible; }
.ile__titre { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; opacity: 0; transition: max-width .4s cubic-bezier(.65, 0, .35, 1), opacity .3s; }
.ile.lit .ile__titre { max-width: 220px; opacity: 1; padding-left: 6px; }
.pastille { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.pastille:hover { background: rgba(27, 23, 18, .07); }
.pastille--pleine { background: var(--encre); color: var(--carte); }
.pastille--pleine:hover { background: #000; }
.ile__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stylo); transform-origin: 0 50%; transform: scaleX(0); }
.menu {
  position: fixed; z-index: 19; top: calc(env(safe-area-inset-top, 0px) + 70px); right: max(14px, env(safe-area-inset-right, 0px)); width: min(420px, calc(100vw - 28px)); max-height: calc(100vh - 90px); overflow: auto;
  padding: 8px; border-radius: 18px; background: rgba(252, 245, 233, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 44px rgba(27, 23, 18, .2), 0 0 0 1px rgba(27, 23, 18, .07);
}
.menu a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 11px; text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:hover { background: rgba(27, 23, 18, .06); }
.menu i { width: 14px; height: 18px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1px rgba(27, 23, 18, .14) inset; }
.menu .releve { font-size: 11px; }
.menu__acces { padding: 8px 10px 4px; }

/* Cartouche */
.cartouche { display: inline-flex; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid currentColor; }
.cartouche span { padding: 6px 9px; white-space: nowrap; }
.cartouche span + span { border-left: 1.5px solid currentColor; }
.cartouche .etat { position: relative; color: var(--stylo); font-weight: 600; padding-inline: 12px; }
.cartouche .etat::before { content: ""; display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: currentColor; margin-right: .5em; vertical-align: .06em; }
.cartouche .etat svg { position: absolute; inset: -12% -2%; width: 104%; height: 124%; overflow: visible; }
.cartouche .etat path { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; animation: entoure .7s .35s ease-out both; }
@keyframes entoure { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* La table */
.scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: none; }
.grand-mot { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-54%); text-align: center; font-size: clamp(84px, 25vw, 400px); line-height: 1; font-weight: 700; letter-spacing: -.035em; font-variation-settings: 'SHRP' 100; user-select: none; z-index: 0; color: #EBDCC3; }
#s-table .repli { position: absolute; left: 16px; right: 16px; top: 50%; text-align: center; z-index: 2; }
.accroche { position: absolute; z-index: 2; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); pointer-events: none; display: grid; gap: 8px; justify-items: start; }
.accroche p { font-size: 15px; line-height: 1.35; max-width: 34ch; }
.vent { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); pointer-events: none; text-align: right; }
.note3d { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; font-family: var(--main); color: var(--stylo); font-size: 30px; line-height: 1; transition: opacity .5s; }
.note3d.fini { opacity: 0; }
.effacer { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); min-height: 36px; padding: 0 14px; border: 1px solid var(--encre); border-radius: 999px; background: var(--carte); font-size: 13px; font-weight: 500; cursor: pointer; }
@media (max-width: 759px) { .accroche p { display: none; } .vent { font-size: 11px; max-width: 46%; } .note3d { font-size: 25px; } }

/* La fiche ouverte : une grande feuille, la table reste visible autour */
.page { --sw: min(calc(100vw - 2 * max(28px, 11vw)), 1040px); --u: calc(var(--sw) / 1280); position: fixed; inset: 0; z-index: 5; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; padding-block: 28px 44px; background: rgba(27, 23, 18, .12); cursor: zoom-out; }
.page:focus { outline: none; }
.feuille { position: relative; width: var(--sw); margin-inline: auto; background: var(--f); box-shadow: 0 24px 60px rgba(27, 23, 18, .3), 0 2px 6px rgba(27, 23, 18, .16); cursor: auto; }
.page.entre { animation: entre .24s ease-out both; }
.page.part { animation: part .2s ease-in both; pointer-events: none; }
.page.entre .contenu { animation: monte .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes entre { from { opacity: 0; } to { opacity: 1; } }
@keyframes part { to { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero { position: relative; height: calc(640 * var(--u)); overflow: hidden; }
.hero__grille { position: absolute; inset: calc(150 * var(--u)) 0 0; background-image: linear-gradient(var(--l) calc(2 * var(--u)), transparent calc(2 * var(--u))), linear-gradient(90deg, var(--l) calc(2 * var(--u)), transparent calc(2 * var(--u))); background-size: calc(43 * var(--u)) calc(43 * var(--u)); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.hero__filet { position: absolute; left: 0; right: 0; top: calc(145 * var(--u)); height: calc(11 * var(--u)); border-block: calc(3 * var(--u)) solid var(--rouge); }
.hero .cartouche { position: absolute; left: calc(42.5 * var(--u)); top: calc(42.5 * var(--u)); color: var(--encre); font-size: calc(25 * var(--u)); letter-spacing: 0; border-width: calc(3 * var(--u)); font-weight: 500; }
.hero .cartouche span { padding: 0 calc(18.5 * var(--u)); line-height: calc(63 * var(--u)); }
.hero .cartouche span + span { border-left-width: calc(3 * var(--u)); }
.hero .cartouche .etat { color: var(--stylo); padding: 0 calc(26.5 * var(--u)) 0 calc(21.5 * var(--u)); }
.hero .cartouche .etat::before { width: .56em; height: .56em; margin-right: .44em; }
.hero h1 { position: absolute; left: calc(44 * var(--u)); top: calc(201 * var(--u)); font-size: calc(104 * var(--u)); line-height: 1; font-weight: 700; white-space: nowrap; }
.hero .these { position: absolute; left: calc(46 * var(--u)); top: calc(320 * var(--u)); width: calc(610 * var(--u)); font-size: calc(38 * var(--u)); line-height: calc(50 * var(--u)); }
.hero__dessin { position: absolute; left: calc(884 * var(--u)); top: calc(322 * var(--u)); width: calc(336 * var(--u)); height: calc(290 * var(--u)); }
@media (max-width: 759px) {
  .page { --sw: calc(100vw - 16px); --u: 1px; padding-block: 70px 24px; }
  .hero { height: auto; padding: 18px 16px 22px; display: grid; gap: 14px; }
  .hero__grille { inset: 150px 0 0; background-size: 22px 22px; }
  .hero__filet { position: static; height: 8px; border-block-width: 2px; margin-inline: -16px; }
  .hero .cartouche { position: relative; left: auto; top: auto; font-size: 11px; border-width: 1.5px; justify-self: start; letter-spacing: .05em; }
  .hero .cartouche span { padding: 0 8px; line-height: 30px; }
  .hero .cartouche span + span { border-left-width: 1.5px; }
  .hero .cartouche span:nth-child(2), .hero .cartouche span:nth-child(3) { display: none; }
  .hero .cartouche span:nth-child(4) { border-left-width: 1.5px; }
  .hero .cartouche .etat { padding: 0 10px; }
  .hero h1 { position: relative; left: auto; top: auto; font-size: clamp(40px, 11.6vw, 72px); white-space: normal; letter-spacing: -.02em; }
  .hero .these { position: relative; left: auto; top: auto; width: auto; font-size: 18px; line-height: 1.4; }
  .hero__dessin { position: relative; left: auto; top: auto; width: min(58%, 240px); height: auto; aspect-ratio: 44 / 38; justify-self: end; }
}
.contenu { padding: clamp(16px, 3vw, 32px) clamp(14px, 3.4vw, 40px) clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3.6vw, 44px); }
.texte { width: 100%; max-width: 690px; margin-inline: auto; display: grid; gap: 16px; font-size: 19px; line-height: 1.62; }
.texte h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.018em; font-variation-settings: 'SHRP' 100; margin-top: 10px; }
.texte blockquote { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 600; border-left: 4px solid var(--stylo); padding-left: 18px; }
.faits { padding-bottom: 8px; }
.faits dd { font-size: 17px; }
.suivi { max-width: 690px; width: 100%; margin-inline: auto; border-top-color: rgba(27, 23, 18, .25); }
.pied-fiche { max-width: 690px; width: 100%; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1.5px solid var(--encre); }
.pied-fiche a { text-decoration: none; }
.pied-fiche b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.pied-fiche a:hover b { color: var(--stylo); }
.courbe { background: var(--carton); }
.a-ecrire { font-size: 15px; color: var(--mine); }
html.sur-fiche .marque__mot { display: none; }
@media (max-width: 759px) {
  .accroche { display: none; }
  .vent { left: 16px; right: 16px; max-width: none; text-align: center; }
}
.grand-mot { will-change: transform; }
.accroche, .vent, .note3d { transition: opacity .2s; }
html.sur-fiche .accroche, html.sur-fiche .vent, html.sur-fiche .note3d, html.sur-fiche .effacer { opacity: 0; pointer-events: none; }
.effacer { transition: opacity .2s; }
/* Les démos suivent la largeur de la feuille, pas celle de la fenêtre. */
.feuille .tapis { --w: clamp(96px, calc(var(--sw) * .118), 122px); }

/* Faits */
.faits { display: grid; gap: 20px 40px; }
@media (min-width: 760px) { .faits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faits dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mine); margin-bottom: 6px; }
.faits dd { font-size: 17px; line-height: 1.42; }
.suivi { display: grid; gap: 28px 40px; padding-top: 24px; border-top: 1px solid var(--filet); }
@media (min-width: 760px) { .suivi { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.suivi h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mine); margin-bottom: 10px; }
.journal li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 5px; font-size: 16px; line-height: 1.4; }
.journal time, .outils dt { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--mine); }
.journal time { padding-top: 2px; }
.outils { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 16px; font-size: 16px; line-height: 1.4; }
.outils dt { padding-top: 2px; }
.suivant { display: grid; gap: 4px; text-decoration: none; padding-top: 24px; border-top: 1.5px solid var(--encre); }
.suivant b { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variation-settings: 'SHRP' 100; }
.suivant:hover b { color: var(--stylo); }


/* Démo empreinte */
.courbe { display: grid; gap: 14px; padding: clamp(14px, 2.4vw, 26px); border: 1px solid var(--filet); border-radius: var(--rayon); min-width: 0; }
.courbe h3 { font-size: 19px; font-weight: 600; }
.series { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.series li { display: inline-flex; align-items: center; gap: 6px; }
.series i { width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
.series i.h { background: repeating-linear-gradient(135deg, var(--hachure) 0 2px, transparent 2px 5px); box-shadow: 0 0 0 1px var(--hachure) inset; }
.graphe { position: relative; min-width: 0; }
.graphe svg { display: block; width: 100%; overflow: visible; }
.graphe text { font-family: var(--mono); font-size: 12px; fill: var(--mine); font-variant-numeric: tabular-nums; }
.graphe text.fort { fill: var(--encre); font-weight: 500; paint-order: stroke; stroke: var(--carton); stroke-width: 4px; stroke-linejoin: round; }
.graphe text.stylo-t { font-family: var(--main); font-size: 26px; fill: var(--stylo); }
.bulle { position: absolute; left: 0; top: 0; z-index: 3; min-width: 190px; padding: 10px 12px; border-radius: 10px; background: var(--tapis); color: var(--craie); font-size: 13px; line-height: 1.5; pointer-events: none; font-variant-numeric: tabular-nums; }
.bulle b { display: block; font-size: 14px; margin-bottom: 2px; }
.bulle span { display: flex; justify-content: space-between; gap: 16px; }
.tableau summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--mine); }
.defile { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 12px 6px 0; text-align: right; border-bottom: 1px solid var(--filet); font-weight: 400; }
th:first-child, td:first-child { text-align: left; }
thead th { font-family: var(--mono); font-size: 11px; color: var(--mine); vertical-align: bottom; }
.vignette--empreinte { background-color: var(--carton); border: 1px solid var(--filet); }

/* Démo Faro */
.tapis {
  --w: clamp(96px, 13.6vw, 164px); --pas: .5;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(18px, 3vw, 36px); border-radius: var(--rayon); color: var(--craie);
  background: radial-gradient(110% 95% at 30% 18%, #2E271F 0%, var(--tapis) 62%);
}
@media (min-width: 980px) { .tapis { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; } }
.tapis__main { display: grid; gap: 12px; min-width: 0; }
.main { position: relative; height: calc(var(--w) * 2.05); }
.carte {
  --x: calc(var(--i) * var(--w) * var(--pas)); --y: calc(var(--i) * var(--i) * var(--w) * .04); --r: calc(var(--i) * 7deg); --lift: 0px;
  position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--w) * 1.4);
  margin: calc(var(--w) * -.7) 0 0 calc(var(--w) * -.5); perspective: 1100px;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) translateY(var(--lift));
  transition: transform .4s cubic-bezier(.34, 1.25, .64, 1);
}
.carte:hover { --lift: calc(var(--w) * -.1); z-index: 4; }
.carte__in { position: absolute; inset: 0; display: block; }
.carte.tourne .carte__in { animation: tourne .5s cubic-bezier(.65, 0, .35, 1) calc(var(--k) * 45ms) both; }
@keyframes tourne { 0%, 100% { transform: rotateY(0deg); } 50% { transform: rotateY(90deg); } }
.face {
  position: absolute; inset: 0; display: block; border-radius: calc(var(--w) * .075); overflow: hidden;
  background: var(--carte); color: var(--encre); box-shadow: 0 10px 22px rgba(0, 0, 0, .42), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.carte--rouge .face { color: var(--rouge-carte); }
.pip { display: block; fill: currentColor; }
.coin { position: absolute; left: calc(var(--w) * .07); top: calc(var(--w) * .07); display: grid; justify-items: center; gap: calc(var(--w) * .012); font-weight: 700; font-size: calc(var(--w) * .135); line-height: 1; }
.coin .pip { width: calc(var(--w) * .1); height: calc(var(--w) * .1); }
.coin--b { left: auto; top: auto; right: calc(var(--w) * .07); bottom: calc(var(--w) * .07); transform: rotate(180deg); }
.pip--g { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * .44); height: calc(var(--w) * .44); transform: translate(-50%, -50%); }
.aide { font-family: var(--mono); font-size: 12px; color: var(--craie-2); text-align: center; }
.tapis__cote { display: grid; gap: 22px; min-width: 0; }
.bloc { display: grid; gap: 10px; min-width: 0; }
.bloc h3 { font-size: 19px; font-weight: 600; }
.legende { font-size: 14px; line-height: 1.4; color: var(--craie-2); }
.calcul { font-family: var(--mono); font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.bandeau { position: relative; height: 54px; margin-block: 14px; }
.bandeau i {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% / 52); background: var(--c);
  box-shadow: -1px 0 0 var(--tapis) inset;
  transform: translate(calc(var(--p) * 100%), var(--dy, 0px));
  transition: transform .6s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--d, 0) * 1ms);
}
.faro { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 42px; }
.bouton { min-height: 40px; padding: 0 16px; border: 1px solid var(--craie); border-radius: 8px; background: var(--craie); color: var(--tapis); font-weight: 600; font-size: 15px; cursor: pointer; }
.bouton:hover { background: #fff; }
.bouton:focus-visible { outline-color: var(--craie); }
.faro output { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.faro .stylo { color: #A9BCF5; font-size: 24px; }

/* Démo station */
.notice { height: 230vh; }
.notice__fixe {
  position: sticky; top: max(12px, env(safe-area-inset-top, 0px)); height: min(calc(100vh - 24px), 680px); height: min(calc(100svh - 24px), 680px);
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
}
.notice__vue {
  position: relative; min-height: 0; overflow: hidden; border-radius: var(--rayon); border: 1px solid #D3C5AC;
  background-color: var(--papier); background-image: radial-gradient(#CDBFA6 1px, transparent 1.2px); background-size: 20px 20px;
}
.notice__vue canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.reperes { position: absolute; inset: 0; pointer-events: none; }
.repere {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 4px; border-radius: 50%; display: grid; place-items: center;
  background: var(--papier); border: 1.5px solid var(--encre); font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.repere::before { content: ""; position: absolute; right: 100%; top: 50%; width: 30px; height: 1.5px; background: var(--encre); }
.repere.actif { background: var(--vert); border-color: var(--vert); color: var(--papier); }
.etapes { display: grid; gap: 6px; align-content: center; min-width: 0; }
.etape { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; color: var(--mine); }
.etape__n { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.etape__t { font-weight: 600; font-size: 16px; }
.etape__x { grid-column: 2; font-size: 14px; line-height: 1.35; display: none; }
.etape__x .stylo { font-size: 24px; display: block; margin-top: 2px; }
.etape[aria-current="step"] { color: var(--encre); }
.etape[aria-current="step"] .etape__n { color: var(--vert); }
.etape[aria-current="step"] .etape__x { display: block; }
@media (min-width: 900px) {
  .notice__fixe { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: minmax(0, 1fr); gap: 32px; }
  .etapes { order: -1; gap: 14px; }
  .etape__x { display: block; font-size: 15px; }
  .etape__t { font-size: 18px; }
}

/* Démo grappe */
.grappe { position: relative; height: clamp(340px, 50vw, 600px); border-radius: var(--rayon); overflow: hidden; background: radial-gradient(90% 90% at 50% 30%, #FCEEDD 0%, var(--moule) 75%); }
.grappe canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.grappe__nom { position: absolute; left: clamp(14px, 2vw, 24px); top: clamp(12px, 2vw, 22px); max-width: min(30ch, 60%); pointer-events: none; }
.grappe__nom b { display: block; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; font-weight: 700; font-variation-settings: 'SHRP' 100; }
.grappe__nom span { display: block; font-size: 15px; line-height: 1.35; color: var(--mine); margin-top: 4px; }
.grappe__note { position: absolute; right: clamp(14px, 2.4vw, 30px); top: clamp(12px, 2vw, 22px); transform: rotate(-3deg); pointer-events: none; }
.commandes { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 14px; }
.pieces, .lots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.puce { min-height: 34px; padding: 0 11px; border: 1px solid #D9B99A; border-radius: 8px; background: transparent; font-size: 14px; cursor: pointer; }
.puce[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--moule); }
.lot { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--l); cursor: pointer; box-shadow: 0 0 0 2px var(--carton), 0 0 0 3px transparent; }
.lot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--carton), 0 0 0 4px var(--encre); }
.lots__t { font-family: var(--mono); font-size: 12px; color: var(--mine); margin-right: 4px; }
.repli { padding: 16px; font-size: 15px; color: var(--mine); }
.grappe .repli { position: absolute; left: 0; bottom: 0; }

.pied { font-size: 14px; color: var(--mine); padding-block: 0 40px; }


::view-transition-group(*) { animation-duration: .4s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) {
  .carte, .bandeau i { transition: none; }
  .carte.tourne .carte__in, .cartouche .etat path { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}
@media (max-width: 640px) {
  .tapis { --pas: .4; }
  .grappe__note { top: auto; bottom: 10px; }
}
/* Ajouts du site (2026-11-12) */
.marque svg { display: none; }
.lien-projet { margin-top: -6px; }
.demo-media { margin: 0; }
.demo-media img, .demo-media video { display: block; width: 100%; height: auto; border-radius: 6px; }
.demo-media iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 6px; background: var(--carte); }
.demo-media figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--mine); }
.menu__pied { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px 4px; border-top: 1px solid var(--filet); margin-top: 6px; }
.menu__pied a { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--mine); text-decoration: none; }
.menu__pied a:hover { color: var(--encre); }
