/* Skillothèque — feuille unique. Direction « Table de coupe » (validée le 15/10/2026).
   Polices libres (OFL) hébergées sur place, aucun appel à un service tiers.
   Sans JavaScript, tout s'affiche dans son état final ; les états « avant animation »
   ne s'appliquent que sous html.js (classe posée par la page). */

@font-face { font-family: "Geist"; src: url("/polices/geist.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/polices/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/polices/instrument-serif-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/polices/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/polices/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/polices/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f1eee6; --bg-2: #e8e4d9; --bg-3: #d8d3c5;
  --ink: #1c1b19; --ink-2: rgba(28, 27, 25, .76); --muted: rgba(28, 27, 25, .56);
  --line: rgba(28, 27, 25, .13); --line-2: rgba(28, 27, 25, .3);
  --accent: #f2541b; --accent-d: #c2410c; --on-accent: #fff;
  --tissue: #ece1c7; --print: #5d4935; --label: #fbf8f1;
  --mat: #1e1f1c; --mat-ink: #ece8de; --night: #121211;
  --gutter: clamp(16px, 3vw, 40px); --maxw: 1320px; --nav-h: 64px;
  --ease: cubic-bezier(.65, 0, .35, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-sans); overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 95; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--muted); }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 6px; }
.evitement:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h1, .h2 { font-family: var(--f-sans); font-weight: 600; text-transform: uppercase; letter-spacing: -.045em; line-height: .92; margin: 0; }
.h1 em, .h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--accent); }
.h1 { font-size: clamp(42px, 5.6vw, 92px); }
.h2 { font-size: clamp(34px, 4.4vw, 68px); }
.lead { max-width: 46ch; margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); }
.js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-rv].in { opacity: 1; transform: none; }

/* Ruban gros-grain (étiquette de section) */
.gg { display: inline-flex; align-items: center; min-height: 28px; padding: 6px 22px 6px 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px), var(--ink); color: var(--bg); font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); }
.gg.or { background-color: var(--accent); color: #fff; }

/* Boutons à couture */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; border-radius: 6px; border: 1.5px solid var(--ink); background: none; color: var(--ink); text-decoration: none; font: 500 15.5px/1.2 var(--f-sans); cursor: pointer; }
.btn::after { content: ""; position: absolute; inset: 4px; border: 1.2px dashed currentColor; border-radius: 3px; opacity: .5; pointer-events: none; transition: inset .35s var(--ease-out), opacity .35s; }
.btn:hover::after { inset: 7px; opacity: .8; }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lien { display: inline-flex; gap: 10px; align-items: center; background: none; border: 0; padding: 0 0 6px; color: var(--ink); cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.lien:hover { border-color: var(--ink); }

/* Ciseaux (dessin maison) */
.scissors { color: var(--ink); }
.scissors .ring { fill: none; stroke: currentColor; stroke-width: 2.4; }
.scissors .shank { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.scissors .blade { fill: currentColor; }
.scissors .pivot { fill: var(--bg); }

/* Aperçu local et brouillons */
.bandeau-local { position: relative; z-index: 61; padding: 6px var(--gutter); background: var(--ink); color: var(--bg); text-align: center; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.tampon { display: inline-block; padding: 4px 8px; border: 1.5px solid var(--accent); outline: 1px solid var(--accent); outline-offset: -4.5px; color: var(--accent); font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); background: #fffdf7; }
.retouches { margin: 24px 0 0; padding: 18px 20px; background: radial-gradient(circle, rgba(93,73,53,.28) .9px, transparent 1.3px) 0 0/14px 14px, var(--tissue); color: var(--print); border-radius: 6px; position: relative; }
.retouches::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(93,73,53,.45); border-radius: 3px; pointer-events: none; }
.retouches strong { display: block; font: 600 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.retouches ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); }

/* ============ Barre de navigation ============ */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--nav-h); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 600 19px/1 var(--f-sans); letter-spacing: -.02em; }
.logo .lg-b { fill: var(--accent); }
.logo .lg-s { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 2.6; }
.nav-items { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ni-wrap { position: relative; }
.ni { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; text-decoration: none; color: var(--ink); font: 500 15px/1 var(--f-sans); overflow: hidden; }
html:not(.js) .ni:hover { background: var(--ink); color: var(--bg); }
.ni-w { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--c, 12), 1fr); grid-template-rows: repeat(var(--r, 5), 1fr); pointer-events: none; }
.ni-w i { position: relative; opacity: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%231c1b19' d='M0 0h4l4 4v4H4L0 4zM6 0h2v2zM0 6v2h2z'/%3E%3C/svg%3E"); background-size: 8px 8px; transition: opacity .08s linear var(--o, 0s); }
.ni-w i::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .12s linear var(--o, 0s); }
.ni:hover .ni-w i, .ni:focus-visible .ni-w i, .ni-wrap:hover > .ni .ni-w i { opacity: 1; transition-delay: var(--d, 0s); }
.ni:hover .ni-w i::after, .ni:focus-visible .ni-w i::after, .ni-wrap:hover > .ni .ni-w i::after { opacity: 1; transition-delay: calc(var(--d, 0s) + .16s); }
.ni > span:not(.ni-w) { position: relative; z-index: 1; transition: color .12s .22s; }
.ni:hover > span:not(.ni-w), .ni:focus-visible > span:not(.ni-w), .ni-wrap:hover > .ni > span:not(.ni-w) { color: var(--bg); }
.ni .chev { font-size: 10px; opacity: .6; }
.ni[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px 6px 0 0; }
.ni.cta { background: var(--accent); color: #fff; margin-left: 8px; }
.drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 6px; background: var(--label); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 14px 30px rgba(28,27,25,.12); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .3s var(--ease-out); z-index: 2; }
.drop::before { content: ""; position: absolute; inset: 4px; border: 1px dashed var(--line-2); border-radius: 5px; pointer-events: none; }
.ni-wrap:hover .drop, .ni-wrap:focus-within .drop { opacity: 1; transform: none; pointer-events: auto; }
.ni-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.drop a { position: relative; display: block; padding: 11px 12px; border-radius: 5px; text-decoration: none; font-size: 15px; }
.drop a:hover, .drop a:focus-visible { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: none; color: var(--ink); font: 500 14px/1 var(--f-sans); cursor: pointer; }
.ruler { position: relative; height: 13px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); background:
  linear-gradient(90deg, var(--ink-2) 1px, transparent 1px) 0 0/40px 9px repeat-x,
  linear-gradient(90deg, var(--muted) 1px, transparent 1px) 0 0/8px 4px repeat-x, var(--bg); }
.ruler::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--sp, 0) * 100%); background: var(--accent); }
.ruler-mark { position: absolute; bottom: -9px; left: calc(var(--sp, 0) * 100%); margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--accent); }

/* ============ Haut de page (accueil) ============ */
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(16px, 3vw, 48px); align-items: center; min-height: calc(100svh - var(--nav-h) - 14px); padding-top: clamp(28px, 5vh, 64px); padding-bottom: clamp(28px, 5vh, 64px); }
.hero .h1 { margin: 22px 0 26px; }
.h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h1 .ln > span { display: inline-block; transition: transform 1.1s var(--ease-out) calc(var(--i) * 110ms); }
.js .h1 .ln > span { transform: translateY(108%); }
.js.ready .h1 .ln > span { transform: none; }
.hero-copy > *:not(.h1) { transition: opacity .9s var(--ease-out) .45s, transform .9s var(--ease-out) .45s; }
.js .hero-copy > *:not(.h1) { opacity: 0; transform: translateY(14px); }
.js.ready .hero-copy > *:not(.h1) { opacity: 1; transform: none; }
#patron { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--nav-h) - 60px); overflow: visible; }
.t-sheet { fill: var(--tissue); }
.t-shadow { fill: rgba(28,27,25,.09); }
.t-print { fill: var(--print); font-family: var(--f-mono); font-weight: 500; letter-spacing: .07em; }
.t-line { fill: none; stroke: var(--print); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.t-seam { fill: none; stroke: var(--print); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.t-name { fill: var(--ink); font-family: var(--f-serif); font-style: italic; }
.t-hole { fill: var(--bg-3); transition: opacity .4s; }
.chalk { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease) .7s; }
.cutline { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0; transition: opacity .4s; }
.p-fade { transition: opacity .7s var(--dl, 0s); }
.p-draw { transition: stroke-dashoffset 1.1s var(--ease) var(--dl, 0s); }
.pin-g { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .4s var(--dl, 0s), transform .6s var(--ease-out) var(--dl, 0s); }
.pin-head { stroke: rgba(0,0,0,.2); stroke-width: .8; }
.pin-needle { stroke: #9b978e; stroke-width: 1.4; stroke-linecap: round; }
#pieceLift { transform: translate(-12px, -24px) rotate(-4deg); transition: transform 1.1s var(--ease-out); transform-origin: 280px 280px; }
#face { filter: url(#pshadow); }
#floatG { animation: flotte 6s ease-in-out 1.3s infinite; }
@keyframes flotte { 50% { transform: translateY(-7px); } }
#billet { transform: translate(104px, 64px) rotate(8deg); transition: transform .9s var(--ease-out); transform-origin: 343px 429px; }
.hero-card { cursor: pointer; }
.hero-card:focus { outline: none; }
.hero-card:hover #pieceLift, .hero-card:focus-visible #pieceLift { transform: translate(-16px, -32px) rotate(-6deg); }
.hero-card:hover #billet, .hero-card:focus-visible #billet { transform: translate(118px, 74px) rotate(13deg); }
.b-paper { fill: #fffdf7; stroke: var(--line-2); }
.b-txt { fill: var(--ink); font-family: var(--f-mono); font-weight: 500; }
.b-stamp { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.b-stamp-t { fill: var(--accent); font-family: var(--f-mono); font-weight: 600; }
.hero-note { display: block; text-align: right; margin-top: -6px; color: var(--muted); transition: opacity .6s; }
/* États avant animation (seulement avec JavaScript) */
.js #patron .p-fade { opacity: 0; }
.js #patron.drawn .p-fade { opacity: 1; }
.js #patron .p-draw, .js #patron .chalk { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js #patron.drawn .p-draw, .js #patron.drawn .chalk { stroke-dashoffset: 0; }
.js #patron .pin-g { transform: translateY(-16px) scale(1.5); }
.js #patron.drawn .pin-g { opacity: 1; transform: none; }
.js #patron.unpinned .pin-g { opacity: 0; transform: translate(10px, -26px) rotate(30deg); transition-delay: 0s; }
.js #patron:not(.cut) .t-hole { opacity: 0; }
.js #patron:not(.cut) .cutline { opacity: 1; }
.js #patron:not(.lifted) #pieceLift { transform: none; }
.js #patron:not(.lifted) #face { filter: none; }
.js #patron:not(.lifted) #floatG { animation: none; }
.js #patron:not(.lifted) .hero-card { pointer-events: none; }
.js #patron:not(.billet) #billet { transform: none; }
.js #patron:not(.billet) ~ .hero-note { opacity: 0; }

/* ============ Ruban défilant ============ */
.ribbon { position: relative; overflow: hidden; padding: 15px 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), var(--ink); color: var(--bg); }
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(241,238,230,.45) 55%, transparent 0) 0 0/9px 1px repeat-x; }
.ribbon::before { top: 6px; } .ribbon::after { bottom: 6px; }
.rb-track { display: flex; width: max-content; animation: defile 40s linear infinite; }
.rb-track span { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font: italic 400 clamp(22px, 2.3vw, 32px)/1 var(--f-serif); }
.rb-track svg { width: 34px; height: 17px; color: var(--accent); flex: none; }
.rb-track .pivot { fill: var(--ink); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ============ En-têtes de section ============ */
.sec-head { display: grid; grid-template-columns: 2fr 1fr; gap: 16px 40px; align-items: end; padding: clamp(72px, 11vh, 130px) 0 40px; }
.sec-head .gg { grid-column: 1 / -1; justify-self: start; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 38ch; }

/* ============ Tâches : le mètre ruban ============ */
.taches { padding-bottom: clamp(64px, 10vh, 120px); }
.tape-zone { position: relative; height: 40px; margin-bottom: 34px; }
.js .tape-zone { --u: 0; }
.tape { position: absolute; left: 0; top: 0; height: 40px; width: calc(var(--u, 1) * 100%); overflow: hidden; border-radius: 2px 0 0 2px; box-shadow: 0 3px 0 rgba(28,27,25,.12); }
.tape-in { position: relative; width: 100%; height: 100%; background:
  linear-gradient(90deg, rgba(28,27,25,.85) 1.5px, transparent 1.5px) 0 0/calc(var(--cm, 8px) * 10) 22px repeat-x,
  linear-gradient(90deg, rgba(28,27,25,.7) 1px, transparent 1px) 0 0/var(--cm, 8px) 12px repeat-x,
  linear-gradient(90deg, rgba(28,27,25,.5) 1px, transparent 1px) calc(var(--cm, 8px) / 2) 0/var(--cm, 8px) 7px repeat-x,
  linear-gradient(90deg, rgba(28,27,25,.85) 1.5px, transparent 1.5px) 0 100%/calc(var(--cm, 8px) * 10) 22px repeat-x,
  linear-gradient(90deg, rgba(28,27,25,.7) 1px, transparent 1px) 0 100%/var(--cm, 8px) 12px repeat-x, var(--accent); }
.tape-in b { position: absolute; top: 50%; transform: translate(4px, -50%); font: 600 11px/1 var(--f-mono); color: #fff; }
.tape-in .tm { position: absolute; bottom: 0; width: 0; height: 0; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--ink); }
.coil { position: absolute; top: 50%; left: calc(var(--u, 1) * 100%); width: var(--cs, 18px); height: var(--cs, 18px); margin: calc(var(--cs, 18px) / -2) 0 0 calc(var(--cs, 18px) / -2); border-radius: 50%; background: repeating-radial-gradient(circle, var(--accent) 0 3px, var(--accent-d) 3px 4px); box-shadow: 0 4px 10px rgba(28,27,25,.25); transform: rotate(var(--cr, 0deg)); }
.coil::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--bg); }
.coil::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 50%; background: rgba(0,0,0,.25); }
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.tc { position: relative; transform-origin: 50% -30px; }
.js .tape-zone + .tcards .tc { opacity: 0; }
.js .tape-zone + .tcards .tc.on { animation: balance 1.2s var(--ease-out) forwards; }
@keyframes balance { 0% { opacity: 0; transform: translateY(-26px) rotate(-8deg); } 40% { opacity: 1; transform: translateY(0) rotate(4deg); } 65% { transform: rotate(-2deg); } 85% { transform: rotate(.8deg); } 100% { opacity: 1; transform: none; } }
.tc-pin { position: absolute; left: 50%; top: -34px; width: 14px; height: 44px; margin-left: -7px; z-index: 2; }
.tc-pin i { position: absolute; left: 6px; top: 0; width: 2px; height: 34px; background: linear-gradient(#cfcbc2, #8f8b83); border-radius: 1px; }
.tc-pin b { position: absolute; left: 0; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: inset -2px -2px 0 rgba(255,255,255,.12), 0 2px 3px rgba(0,0,0,.3); }
.tc:nth-child(odd) .tc-pin b { background: var(--accent); }
.tcards:not(.pendues) .tc-pin { display: none; }
.tc-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 330px; padding: 24px 20px 18px; background: var(--label); border-radius: 6px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line-2), 0 10px 24px rgba(28,27,25,.07); transition: transform .4s var(--ease-out), box-shadow .4s; }
.tc-card::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line-2); border-radius: 4px; pointer-events: none; }
.tc-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 1px 0 var(--line-2), 0 18px 34px rgba(28,27,25,.12); }
.tc-top { display: flex; justify-content: space-between; color: var(--muted); }
.tc-art { display: grid; place-items: center; flex: 1; min-height: 110px; }
.tc-art svg { width: 72px; height: 72px; overflow: visible; }
.tc-art svg * { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.2s var(--ease) .35s, stroke .3s; }
.js .tape-zone + .tcards .tc-art svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .tape-zone + .tcards .tc.on .tc-art svg * { stroke-dashoffset: 0; }
.tc-card:hover .tc-art svg * { stroke: var(--accent); }
.tc h2, .tc h3 { margin: 0 0 8px; font: 600 21px/1.05 var(--f-sans); letter-spacing: -.02em; }
.tc h2 em, .tc h3 em { font: italic 400 1.1em/1 var(--f-serif); letter-spacing: -.01em; }
.tc p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tc-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ============ Les fiches : tapis de coupe ============ */
.planche { position: relative; padding: 64px 0; }
.js .planche.anime { height: 300vh; padding: 0; }
.js .planche.anime .pl-sticky { position: sticky; top: calc(var(--nav-h) + 14px); height: calc(100svh - var(--nav-h) - 14px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.pl-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.pl-head .h2 { font-size: clamp(30px, 3.4vw, 54px); }
.pl-head p { margin: 0; max-width: 38ch; color: var(--ink-2); font-size: 15px; }
.mat { --tkw: min(290px, 24vw, calc((100svh - var(--nav-h) - 300px) / 1.4)); position: relative; overflow: hidden; border-radius: 14px; padding: 58px clamp(16px, 4vw, 64px) 46px; color: var(--mat-ink);
  background:
    linear-gradient(rgba(236,232,222,.14) 1px, transparent 1px) 0 0/100px 100px,
    linear-gradient(90deg, rgba(236,232,222,.14) 1px, transparent 1px) 0 0/100px 100px,
    linear-gradient(rgba(236,232,222,.06) 1px, transparent 1px) 0 0/20px 20px,
    linear-gradient(90deg, rgba(236,232,222,.06) 1px, transparent 1px) 0 0/20px 20px, var(--mat); }
.mat-diag { position: absolute; left: 0; bottom: 0; width: 140%; height: 1px; background: rgba(236,232,222,.12); transform-origin: 0 0; transform: rotate(-24deg); pointer-events: none; }
.mat-nums { position: absolute; left: 0; right: 0; top: 8px; height: 14px; pointer-events: none; }
.mat-nums span { position: absolute; font: 500 9px/1 var(--f-mono); color: rgba(236,232,222,.45); transform: translateX(3px); }
.mat-top { position: absolute; left: 18px; right: 18px; top: 26px; display: flex; justify-content: space-between; color: rgba(236,232,222,.6); }
.mat-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mat-lines .chalkd { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 7 6; opacity: .9; }
.mat-lines .done { fill: none; stroke: var(--mat-ink); stroke-width: 2; transition: opacity .4s; }
.mat-lines .done.gone { opacity: 0; }
.mat-grid { display: flex; justify-content: center; gap: clamp(28px, 4vw, 64px); }
.mat-sc { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ssc { position: absolute; left: 0; top: 0; width: 78px; height: 39px; transform-origin: 39px 19.5px; opacity: 0; transition: opacity .2s; color: var(--mat-ink); }
.ssc .pivot { fill: var(--mat); }
.ssc.on { opacity: 1; }
.pl-hint { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); }
html:not(.js) .pl-hint .js-seul { display: none; }

/* Pièce de patron (recto) et étiquette cousue (verso) */
.tk { position: relative; width: var(--tkw); height: calc(var(--tkw) * 1.4); container-type: inline-size; flex: none; }
.tk-lift { position: relative; height: 100%; perspective: 1400px; transition: transform 1s var(--ease-out), filter 1s var(--ease-out); }
.tk.cut .tk-lift { transform: translate(-6px, -16px) rotate(var(--rot, -2deg)); filter: drop-shadow(0 22px 26px rgba(0,0,0,.45)); }
.tk-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-out); outline: none; }
.tk-flip { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.tk:not(.cut) .tk-flip { cursor: default; }
.tk-flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.tk-retour { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.tk-retour:hover { color: var(--accent-d); }
html:not(.js) .tk-retour { display: none; }
.tk.flipped .tk-inner { transform: rotateY(180deg); }
.tk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; }
.tk-back { transform: rotateY(180deg); }
html:not(.js) .tk-front { display: none; }
html:not(.js) .tk-back { transform: none; }
.notch { position: absolute; width: 0; height: 0; }
.n-l { left: -7px; top: 62%; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 7px solid var(--tissue); }
.n-r { right: -7px; top: 62%; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 7px solid var(--tissue); }
.n-t1, .n-t2 { top: -7px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 7px solid var(--tissue); }
.n-t1 { left: calc(50% - 14px); } .n-t2 { left: calc(50% + 2px); }
.patron-papier { background: radial-gradient(circle, rgba(93,73,53,.3) .9px, transparent 1.3px) 0 0/14px 14px, var(--tissue); color: var(--print); }
.patron-papier::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(93,73,53,.5); border-radius: 4px; pointer-events: none; }
.pf { position: relative; height: 100%; display: flex; flex-direction: column; padding: 8cqw 8cqw 7cqw; }
.tk-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk .mono, .piece .mono { font-size: max(9px, 3.3cqw); letter-spacing: .05em; }
.pf-name { margin-top: 9cqw; font: italic 400 var(--nf, 24cqw)/.9 var(--f-serif); color: var(--ink); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-ed { margin-top: 2cqw; }
.pf-grain { margin-top: auto; margin-bottom: 5cqw; text-align: center; }
.pf-grain svg { display: block; width: 100%; height: 12px; overflow: visible; }
.pf-grain path { fill: none; stroke: var(--print); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pf-cut { margin-top: 4cqw; text-align: center; opacity: .8; }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: inset -2px -2px 0 rgba(0,0,0,.18), 0 2px 3px rgba(0,0,0,.35); transition: transform .45s var(--ease-out), opacity .3s; }
.pin::after { content: ""; position: absolute; left: 5px; top: 10px; width: 1.5px; height: 17px; background: linear-gradient(#d4d0c7, #8f8b83); transform: rotate(-32deg); transform-origin: top; }
.pin-a { top: 34%; right: 18px; } .pin-b { bottom: 20px; left: 18px; background: var(--ink); }
.tk.cut .pin { opacity: 0; transform: translate(8px, -22px) rotate(30deg); }
.etiquette { background: repeating-linear-gradient(0deg, rgba(28,27,25,.022) 0 1px, transparent 1px 3px), var(--label); color: var(--ink); border-radius: 6px; }
.etiquette::before { content: ""; position: absolute; inset: 7px; border: 1.3px dashed var(--line-2); border-radius: 3px; pointer-events: none; }
.lb { position: relative; height: 100%; display: flex; flex-direction: column; padding: 8cqw 8cqw 7cqw; }
.lb-top { color: var(--muted); }
.lb-title { margin: 2cqw 0 0; font: italic 400 15cqw/.95 var(--f-serif); }
.lb-res { margin: 3cqw 0 0; font-size: 4.6cqw; line-height: 1.38; color: var(--ink-2); }
.care-icons { display: flex; justify-content: space-between; margin: auto 0 0; padding-top: 4cqw; border-top: 1px solid var(--line); }
.care-i { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; width: 31%; }
.care-i svg { width: 10cqw; height: 10cqw; }
.care-i svg *, .ce-picto svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg .box { stroke-dasharray: 2 2.2; opacity: .8; }
svg .no { stroke-width: 1.8; }
.care-i .mono { font-size: max(8px, 2.9cqw); text-align: center; line-height: 1.2; }
.lb-compo { margin-top: 3.5cqw; color: var(--muted); }
.lb-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 4cqw; height: 12cqw; padding: 0 4.5cqw; border-radius: 4px; background: var(--accent); color: #fff; text-decoration: none; font: 500 4.8cqw/1 var(--f-sans); }
.tk-billet { position: absolute; top: -3.5cqw; right: -4cqw; display: flex; flex-direction: column; gap: 1cqw; padding: 2.4cqw 3cqw; background: #fffdf7; border: 1.5px solid var(--accent); outline: 1px solid var(--accent); outline-offset: -4.5px; color: var(--accent); transform: rotate(7deg); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.tk-billet b { font-weight: 600; font-size: 3.6cqw; }
.tk-billet span { font-size: max(8px, 2.7cqw); }
.tk-soon .chalk-ghost { position: absolute; inset: 0; border: 1.6px dashed var(--accent); border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3cqw; color: var(--accent); text-align: center; padding: 8cqw; }
.tk-soon em { font: italic 400 12cqw/1 var(--f-serif); }
.tk .brouillon-tampon { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%) rotate(-6deg); z-index: 2; }
.piece .brouillon-tampon { position: absolute; right: 16px; top: 30%; transform: rotate(-8deg); z-index: 2; }

/* ============ En situation ============ */
.demo { padding-bottom: clamp(64px, 10vh, 120px); }
.stage { display: grid; grid-template-columns: 1.55fr 1fr; align-items: start; }
.xl { position: relative; background: #fffdf8; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; transition: opacity .7s, transform .9s var(--ease-out); box-shadow: 0 14px 34px rgba(28,27,25,.08); }
.xl-top { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg-2); }
.fx { display: flex; border-bottom: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; }
.fx span { padding: 8px 12px; border-right: 1px solid var(--line); }
.fx .fx-v { flex: 1; border: 0; color: var(--accent-d); }
.xl-scroll { overflow-x: auto; }
.xl table { width: 100%; border-collapse: collapse; font: 500 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.xl th, .xl td { border: 1px solid var(--line); padding: 10px 12px; height: 38px; text-align: right; white-space: nowrap; }
.xl th { color: var(--muted); font-weight: 500; background: var(--bg-2); }
.xl th:first-child, .xl td:first-child { width: 36px; text-align: center; color: var(--muted); background: var(--bg-2); }
.xl td.txt { text-align: left; }
.xl tr.head td { font-weight: 600; }
.xl tr.tot td { font-weight: 600; border-top: 1.5px solid var(--ink); }
.xl td .v { transition: opacity .25s; }
.xl td.f .v { color: var(--accent-d); }
.xl tr.hl td:not(:first-child) { background: color-mix(in srgb, var(--accent) 16%, #fffdf8); }
.xl .tag { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 10px; transition: opacity .4s .3s; }
.chat { position: relative; z-index: 2; margin: 70px 0 0 -56px; background: var(--label); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 24px 50px rgba(28,27,25,.16); overflow: hidden; transition: opacity .6s .25s, transform 1s var(--ease-out) .25s; }
.chat-h { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--accent); color: #fff; font-size: 11px; }
.chat-b { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 250px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.42; transition: opacity .4s, transform .5s var(--ease-out); }
.msg p { margin: 0; }
.msg.me { align-self: flex-end; background: var(--bg-2); border-bottom-right-radius: 2px; }
.msg.bot { align-self: flex-start; border: 1px solid var(--line-2); background: #fff; border-bottom-left-radius: 2px; }
.msg .chip { display: inline-block; margin-top: 8px; padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 10.5px; }
.msg .file { background: var(--ink); color: var(--bg); border-color: var(--ink); transition: opacity .4s; }
.typing { display: none; gap: 4px; align-self: flex-start; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.typing.on { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: tape 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tape { 50% { transform: translateY(-4px); opacity: .4; } }
.chat-f { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 14px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); }
.chat-f .send { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--ink); color: var(--bg); font-size: 12px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
html:not(.js) #rejouer { display: none; }
.js .stage:not(.on) .xl { opacity: 0; transform: translateY(18px); }
.js .stage:not(.on) .chat { opacity: 0; transform: translateY(40px); }
.js .stage .msg:not(.on) { opacity: 0; transform: translateY(8px); }
.js .stage .file:not(.on) { opacity: 0; }
.js .stage td:not(.on) .v { opacity: 0; }
.js .stage tr:not(.hl) .tag { opacity: 0; }

/* ============ Méthode : le fil qui coud ============ */
.methode { padding-bottom: clamp(80px, 12vh, 140px); }
.seam { position: relative; padding-top: 60px; }
.seam-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
html:not(.js) .seam-svg { display: none; }
.seam-ghost { fill: none; stroke: var(--line-2); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .1 21; }
.seam-thread { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 13 8; }
.needle-body { fill: #8e8a82; }
.needle-hi { fill: none; stroke: rgba(255,255,255,.55); stroke-width: .8; stroke-linecap: round; }
.needle-eye { fill: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); padding: 0; margin: 0; list-style: none; }
.step { position: relative; padding: 44px 26px 28px; background: var(--label); border-radius: 6px; box-shadow: 0 1px 0 var(--line-2), 0 16px 34px rgba(28,27,25,.1); transition: box-shadow .5s; }
.step::before { content: ""; position: absolute; inset: 6px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 4px; pointer-events: none; transition: border-color .5s; }
.eye { position: absolute; left: 50%; top: -38px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--accent); background: var(--accent); transition: border-color .4s, background .4s; }
.step-top { display: flex; justify-content: space-between; color: var(--muted); }
.step-art { height: 120px; display: grid; place-items: center; }
.step-art svg { width: 84px; height: 84px; overflow: visible; }
.step-art svg * { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; }
.step h3 { margin: 0 0 10px; font: 600 clamp(26px, 2.4vw, 36px)/.95 var(--f-sans); text-transform: uppercase; letter-spacing: -.04em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.js .step:not(.on) { box-shadow: 0 1px 0 var(--line-2); }
.js .step:not(.on)::before { border-color: var(--line); }
.js .step:not(.on) .eye { border-color: var(--line-2); background: var(--bg); }
.js .step .step-art svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .step.on .step-art svg * { stroke-dashoffset: 0; }
.js .step:not(.on) .step-art svg * { stroke: var(--muted); }
.m-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; color: var(--muted); }

/* ============ La lettre : bouton de couture ============ */
.lettre { border-top: 1px solid var(--line); }
.lettre-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(72px, 12vh, 140px); }
.lettre .h2 { margin-top: 18px; font-size: clamp(38px, 5vw, 78px); }
.lettre p { max-width: 44ch; margin: 24px 0 0; color: var(--ink-2); }
.lettre-form { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lettre-form label { color: var(--ink-2); }
.lettre-form input { width: min(340px, 100%); padding: 13px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--label); color: var(--ink); font: 400 16px/1.2 var(--f-sans); }
.sew { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0; border: 0; background: none; text-decoration: none; color: var(--ink); cursor: pointer; font: inherit; }
.sew svg { width: clamp(150px, 16vw, 210px); height: auto; overflow: visible; transition: transform .7s var(--ease-out); filter: drop-shadow(0 12px 18px rgba(28,27,25,.18)); }
.sew:hover svg, .sew:focus-visible svg { transform: rotate(14deg); }
.sw-b { fill: var(--accent); }
.sw-rim { fill: none; stroke: var(--accent-d); stroke-width: 3; }
.sw-hi { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 3; stroke-linecap: round; }
.sw-h { fill: var(--bg); stroke: var(--accent-d); stroke-width: 2; }
.sw-t { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); }
.sew:hover .sw-t1, .sew:focus-visible .sw-t1 { stroke-dashoffset: 0; }
.sew:hover .sw-t2, .sew:focus-visible .sw-t2 { stroke-dashoffset: 0; transition-delay: .3s; }
.sew-l { font: 500 17px/1 var(--f-sans); padding-bottom: 6px; background: linear-gradient(90deg, var(--ink) 55%, transparent 0) 0 100%/8px 1.5px repeat-x; }
.sew-sub { color: var(--muted); margin-top: -8px; }
.sew.attente { cursor: default; }

/* ============ Pied de page : tissu sombre et lisière ============ */
.foot { position: relative; background: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px), var(--night); color: #ebe6da; }
.pinked { height: 14px; background: linear-gradient(135deg, var(--bg) 50%, transparent 50%) 0 0/14px 14px repeat-x, linear-gradient(225deg, var(--bg) 50%, transparent 50%) 0 0/14px 14px repeat-x; }
.f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 44px; padding-bottom: 48px; }
.f-top a { display: block; text-decoration: none; font-size: 15px; line-height: 1.8; color: #ebe6da; }
.f-top a:hover { color: var(--accent); }
.f-brand { font: 600 22px/1.1 var(--f-sans); letter-spacing: -.02em; }
.f-brand em { display: block; margin-top: 8px; font: italic 400 19px/1.2 var(--f-serif); color: rgba(235,230,218,.7); letter-spacing: 0; }
.f-h { color: rgba(235,230,218,.5); margin-bottom: 10px; }
.f-note { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(235,230,218,.12); font-size: 13.5px; color: rgba(235,230,218,.6); }
.selvage { position: relative; overflow: hidden; background: #e7e1d1; color: #2b2925; padding: 11px 0; border-top: 2px solid #d3cbb6; }
.sv-track { display: flex; width: max-content; animation: defile 70s linear infinite; }
.sv-track span { display: flex; align-items: center; gap: 14px; padding-right: 14px; white-space: nowrap; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.sv-dots { display: inline-flex; gap: 6px; }
.sv-dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.fringe { height: 9px; background: repeating-linear-gradient(90deg, #e7e1d1 0 1px, transparent 1px 3px); -webkit-mask: linear-gradient(#000, rgba(0,0,0,.25)); mask: linear-gradient(#000, rgba(0,0,0,.25)); }
.f-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; padding-bottom: 14px; color: rgba(235,230,218,.55); }

/* ============ Pages intérieures ============ */
.tete { padding: clamp(48px, 8vh, 96px) 0 clamp(32px, 5vh, 56px); }
.tete .h1 { margin: 20px 0 22px; font-size: clamp(38px, 5vw, 80px); }
.fil { margin: 0 0 18px; color: var(--muted); }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--ink); text-decoration: underline; }
.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 36px 28px; padding: 12px 0 clamp(64px, 10vh, 120px); margin: 0; list-style: none; }
.piece { position: relative; display: block; min-height: 380px; container-type: inline-size; border-radius: 8px; text-decoration: none; box-shadow: 0 1px 0 rgba(93,73,53,.3), 0 12px 26px rgba(28,27,25,.08); transition: transform .45s var(--ease-out), box-shadow .45s; }
.piece:hover, .piece:focus-visible { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 1px 0 rgba(93,73,53,.3), 0 22px 40px rgba(28,27,25,.16); }
.piece .pf { min-height: 380px; }
.piece .pf-res { margin: 4cqw 0 0; color: var(--ink-2); font: 400 max(14px, 4.6cqw)/1.4 var(--f-sans); }
.piece .pf-lire { margin-top: 4cqw; color: var(--accent-d); }
.vide { padding: 28px; border: 1.6px dashed var(--accent); border-radius: 8px; color: var(--ink-2); max-width: 60ch; }

/* ============ Fiche d'un skill ============ */
.fiche-tete { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 7vh, 88px); padding-bottom: clamp(40px, 6vh, 72px); }
.fiche-tete .h1 { margin: 20px 0 6px; font-size: clamp(44px, 6vw, 96px); }
.fiche-precision { margin: 0 0 22px; font: italic 400 clamp(20px, 2vw, 26px)/1.2 var(--f-serif); color: var(--ink-2); }
.fiche-etiquette { position: relative; padding: 26px 26px 22px; }
.fiche-etiquette .fe-top { display: flex; justify-content: space-between; color: var(--muted); }
.risque { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font: 600 15px/1.2 var(--f-sans); }
.risque .points { display: inline-flex; gap: 4px; }
.risque .points i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.risque .points i.on { background: var(--ink); }
.risque-faible .points i.on { background: #3d7a46; border-color: #3d7a46; }
.risque-modere .points i.on { background: #b7791f; border-color: #b7791f; }
.risque-eleve .points i.on { background: #b42318; border-color: #b42318; }
.fe-motif { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }
.fiche-etiquette .care-icons { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fiche-etiquette .care-i svg { width: 34px; height: 34px; }
.fiche-etiquette .care-i .mono { font-size: 10px; }
.fe-dl { margin: 14px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.fe-dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
.fe-dl dt { font: 500 11px/1.9 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fe-dl dd { margin: 0; }
.fe-dl a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.fe-dl a:hover { border-color: var(--ink); }
.fiche-etiquette .tk-billet { top: -16px; right: -14px; padding: 8px 10px; gap: 3px; }
.fiche-etiquette .tk-billet b { font-size: 12px; } .fiche-etiquette .tk-billet span { font-size: 10px; }
.fiche-corps { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-bottom: clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); padding-top: 40px; }
.sommaire { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.sommaire ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: s; }
.sommaire li { counter-increment: s; }
.sommaire a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; font-size: 14.5px; color: var(--ink-2); border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; }
.sommaire a::before { content: counter(s, decimal-leading-zero); font: 500 11px/1.9 var(--f-mono); color: var(--muted); }
.sommaire a:hover, .sommaire a.actif { color: var(--ink); border-left-color: var(--accent); }

/* Texte courant */
.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.68; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 .8em; padding-bottom: 12px; font: 600 clamp(24px, 2.3vw, 32px)/1 var(--f-sans); text-transform: uppercase; letter-spacing: -.035em; background: linear-gradient(90deg, var(--accent) 55%, transparent 0) 0 100%/10px 2px repeat-x; }
.prose h3 { margin: 1.8em 0 .5em; font: 600 20px/1.2 var(--f-sans); letter-spacing: -.01em; }
.prose p { margin: 0 0 1em; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent-d); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose ul > li { position: relative; padding-left: 28px; margin: .55em 0; }
.prose ul > li::before { content: "×"; position: absolute; left: 4px; top: -.02em; color: var(--accent); font: 600 20px/1.4 var(--f-mono); }
.prose ol { list-style: none; padding: 0; margin: 0 0 1.2em; counter-reset: o; }
.prose ol > li { position: relative; counter-increment: o; padding-left: 50px; margin: 1em 0; min-height: 34px; }
.prose ol > li::before { content: counter(o); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 14px/1 var(--f-mono); box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 5.5px rgba(255,255,255,.55); }
.prose code { font: 500 .86em/1 var(--f-mono); background: var(--bg-2); padding: 2px 5px; border-radius: 3px; }
.prose pre { background: var(--label); border: 1px solid var(--line-2); border-radius: 6px; padding: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { position: relative; margin: 1.4em 0; padding: 16px 20px; background: var(--label); border-radius: 6px; }
.prose blockquote::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line-2); border-radius: 3px; pointer-events: none; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose .tableau { overflow-x: auto; margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--label); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-2); }
/* Les exemples de demandes deviennent des bulles de conversation */
.prose h2#exemples-de-demandes-a-claude + ul > li { padding: 12px 16px; margin: 10px 0 10px auto; max-width: 92%; background: var(--bg-2); border-radius: 10px 10px 2px 10px; font-size: 16.5px; }
.prose h2#exemples-de-demandes-a-claude + ul > li::before { display: none; }
/* Ce qu'il peut toucher */
.touche-l { display: grid; gap: 14px; margin: 0 0 1em; padding: 0; list-style: none; }
.touche-l > li { display: grid; grid-template-columns: 58px 1fr; gap: 16px; margin: 0 !important; padding: 16px 18px 16px 16px !important; background: var(--label); border-radius: 6px; position: relative; }
.touche-l > li::before { display: none; }
.ce-picto { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 6px; background: var(--bg); }
.ce-picto svg { width: 34px; height: 34px; }
.touche-l h3 { margin: 0 0 4px; font: 600 16px/1.3 var(--f-sans); }
.touche-l h3 span { margin-left: 8px; color: var(--accent-d); }
.touche-l p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.verification { position: relative; margin-top: 2.4em; padding: 22px 24px; background: #fffdf7; border: 1.5px solid var(--accent); outline: 1px solid var(--accent); outline-offset: -6px; border-radius: 2px; }
.verification h2 { margin-top: 0; background: none; padding-bottom: 0; color: var(--accent-d); }
.verification ul > li::before { content: "✓"; font-size: 16px; top: .1em; }
.verification ul > li.a-faire::before { content: "○"; color: var(--muted); }
.verification p { font-size: 15px; color: var(--ink-2); margin: 0; }
.technique { margin-top: 2em; border-radius: 6px; background: var(--label); }
.technique summary { cursor: pointer; padding: 14px 18px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.technique dl { margin: 0; padding: 0 18px 16px; display: grid; gap: 10px; font-size: 15px; }
.technique dl div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.technique dt { font: 500 11px/1.9 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.technique dd { margin: 0; overflow-wrap: anywhere; }
.texte-page { padding-bottom: clamp(64px, 10vh, 120px); }

/* ============ Écrans plus petits ============ */
@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr; }
  .chat { margin: -40px 0 0 auto; width: min(380px, 90%); }
  .fiche-corps { grid-template-columns: 1fr; }
  .sommaire { display: none; }
}
@media (max-width: 900px), (max-height: 640px) {
  .js .planche.anime { height: auto; padding: 64px 0; }
  .js .planche.anime .pl-sticky { position: relative; top: 0; height: auto; display: block; overflow: visible; }
  .mat { --tkw: min(290px, 70vw); }
  .mat-grid { flex-direction: column; align-items: center; gap: 60px; }
}
@media (max-width: 820px) {
  .js .nav-items { display: none; }
  .js .menu-btn { display: block; }
  .js .nav.ouvert .nav-items { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line-2); box-shadow: 0 16px 30px rgba(28,27,25,.1); }
  .js .nav.ouvert .drop { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; margin: 4px 0 8px; }
  .js .nav.ouvert .ni { width: 100%; }
  .js .nav.ouvert .ni.cta { margin-left: 0; justify-content: center; }
  .hero-in { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { max-width: 480px; width: 100%; margin: 0 auto; }
  .sec-head { grid-template-columns: 1fr; }
  .tcards { grid-template-columns: 1fr; gap: 44px; }
  .tc-card { min-height: 0; }
  .pl-head { flex-direction: column; align-items: start; }
  .chat { margin: -30px 0 0 auto; width: 92%; }
  .steps { grid-template-columns: 1fr; gap: 64px; padding-left: 44px; }
  .step .eye { left: -36px; top: 50%; margin: -8px 0 0; }
  .lettre-in { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .fiche-tete { grid-template-columns: 1fr; }
  .fiche-etiquette { margin-top: 12px; }
  .fiche-etiquette .tk-billet { right: 8px; }
  .fe-dl div, .technique dl div { grid-template-columns: 1fr; gap: 2px; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
