/* Visuels des étapes (visuels-etapes.js). Dessinés pour ~780 px de large, réduits par le zoom de la scène.
   Style d'interface retenu par Theo le 09/09 : « Doux » (angles 8–12 px, surfaces blanches sur crème, ombres douces, filets presque invisibles, pilules, étiquettes en bas de casse). */
.vis { --font: 'Uxum', 'Inter', system-ui, sans-serif; --on: #161510; --muted: rgba(22,21,16,0.6); --trait: rgba(22,21,16,0.08); --surface: #fff; --surface-2: rgba(22,21,16,0.05); --ombre: 0 1px 2px rgba(20,19,14,0.06), 0 10px 28px rgba(20,19,14,0.10); --r: 8px; --r-l: 12px; font-family: var(--font); color: var(--on); -webkit-font-smoothing: antialiased; }
.vis .et { display: block; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 12px; }
.vis .bt { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--on); color: #fbfbf8; font-size: 14px; line-height: 1; white-space: nowrap; }
.vis .bt.ligne { background: transparent; color: var(--on); border: 1px solid var(--on); }
.vis .bt.off { background: var(--surface-2); color: var(--muted); }
.vis .pastille { display: inline-flex; align-items: center; padding: 6px 10px; border: 0; border-radius: 999px; background: rgba(140,146,112,0.16); font-size: 11.5px; color: #4f5438; line-height: 1; }
.vis .pastille.plein { background: var(--on); color: #fbfbf8; border-color: var(--on); }
.vis .badge { display: inline-block; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font-size: 16px; font-weight: 450; line-height: 1.2; }
.vis .lien { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.vis .lien i { font-style: normal; }
/* A · Planche */
.v1a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; padding: 28px 30px 32px; }
.v1a .v-col { display: grid; gap: 24px; align-content: start; min-width: 0; }
.v1a .nuancier { display: flex; gap: 6px; }
.v1a .nuancier i { flex: 1; min-width: 0; display: grid; gap: 5px; font-style: normal; }
.v1a .nuancier i::before { content: ""; display: block; height: 46px; border-radius: 8px; background: var(--c); border: 1px solid rgba(22,21,16,0.08); }
.v1a .nuancier b { font-size: 11px; font-weight: 450; white-space: nowrap; overflow: hidden; }
.v1a .nuancier small { font-size: 9.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; }
.v1a .typo { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 0 12px; }
.v1a .typo b { font-size: 50px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.v1a .typo b.in { font-family: 'Inter', system-ui, sans-serif; font-size: 40px; }
.v1a .typo span { font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.v1a .esp { display: flex; align-items: flex-end; gap: 7px; width: 300px; max-width: 100%; }
.v1a .esp i { display: block; height: 12px; background: #8c9270; border-radius: 2px; }
.v1a .esp-l { display: flex; gap: 7px; width: 300px; max-width: 100%; margin-top: 6px; font-size: 10px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.v1a .esp-l span:nth-child(1) { width: 4px; } .v1a .esp-l span:nth-child(2) { width: 8px; } .v1a .esp-l span:nth-child(3) { width: 16px; } .v1a .esp-l span:nth-child(4) { width: 32px; } .v1a .esp-l span:nth-child(5) { width: 40px; } .v1a .esp-l span:nth-child(6) { width: 56px; }
.v1a .rayons { display: flex; gap: 12px; }
.v1a .rayons i { width: 40px; height: 40px; border: 1.5px solid rgba(22,21,16,0.35); background: var(--surface); display: grid; place-items: center; font-style: normal; }
.v1a .rayons small { font-size: 10px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.v1a .comp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* B · Figma ↔ site */
.v1b { display: grid; grid-template-columns: 300px 1fr; min-height: 380px; }
.v1b .v-figma { background: #1e1e1e; color: #e6e6e6; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; padding: 14px 0 18px; }
.v1b .v-figma .v-tete { display: flex; justify-content: space-between; padding: 0 16px 12px; border-bottom: 1px solid #2c2c2c; margin-bottom: 8px; font-weight: 500; }
.v1b .v-figma .v-coll { color: #8a8a8a; font-weight: 400; }
.v1b .v-figma .v-ligne { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 7px 16px; }
.v1b .v-figma .v-ligne:nth-child(odd) { background: #232323; }
.v1b .v-figma i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--c); font-style: normal; font-size: 10px; color: #bdbdbd; border: 1px solid #3a3a3a; }
.v1b .v-figma i.t, .v1b .v-figma i.n { background: #2f2f2f; }
.v1b .v-figma em { font-style: normal; color: #9a9a9a; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.v1b .v-site { position: relative; background: #8A8770; display: grid; place-items: center; padding: 40px; }
.v1b .v-carte { width: 260px; background: #fff; border-radius: 12px; padding: 20px; display: grid; gap: 10px; justify-items: start; box-shadow: var(--ombre); }
.v1b .v-carte .v-tag { font-size: 11px; color: #4f5438; background: rgba(140,146,112,0.16); border-radius: 999px; padding: 4px 9px; }
.v1b .v-carte h4 { margin: 4px 0 0; font-size: 26px; font-weight: 400; line-height: 1.1; }
.v1b .v-carte p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.v1b .v-carte .bt { margin-top: 6px; }
.v1b .v-annot { position: absolute; font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: #fbfbf8; background: rgba(20,19,14,0.6); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.v1b .v-annot::after { content: ""; position: absolute; width: 22px; border-top: 1px dashed rgba(251,251,248,0.8); top: 50%; }
.v1b .a1 { left: 16px; top: 18px; } .v1b .a1::after { display: none; }
.v1b .a2 { left: 14px; top: 46%; } .v1b .a2::after { left: 100%; }
.v1b .a3 { right: 14px; top: 30%; } .v1b .a3::after { right: 100%; }
.v1b .a4 { right: 14px; bottom: 60px; } .v1b .a4::after { right: 100%; }
.v1b .a5 { left: 14px; bottom: 24px; } .v1b .a5::after { left: 100%; }
/* C · Composants */
.v1c { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; background: #f5f4ef; }
.v1c .v-case { background: #fff; border-radius: 12px; box-shadow: var(--ombre); padding: 22px 24px 26px; display: grid; align-content: start; }
.v1c .v-rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v1c .v-mini { display: grid; gap: 6px; justify-items: start; padding: 16px; border: 1px solid var(--trait); border-radius: 10px; background: #fbfbf8; }
.v1c .v-mini .v-tag { font-size: 11px; color: var(--muted); }
.v1c .v-mini b { font-size: 22px; font-weight: 400; line-height: 1.1; }
.v1c .v-mini small { font-size: 12px; color: var(--muted); }
.v1c .v-champ { display: grid; gap: 6px; }
.v1c .v-champ label { font-size: 12px; font-weight: 450; }
.v1c .v-champ .v-input { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; color: var(--muted); background: rgba(22,21,16,0.04); box-shadow: 0 0 0 2px rgba(22,21,16,0.14); }
.v1c .v-champ .v-input i { width: 1px; height: 14px; background: var(--on); }
.v1c .v-champ small { font-size: 11px; color: var(--muted); }

/* ---- Calque d'animation : curseurs nommés façon Figma, sélection, bulle de valeur, état publié ---- */
.v-calque { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.v-curseur { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; transform: translate(40px, 40px); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.v-curseur svg { display: block; width: 25px; height: 27px; filter: drop-shadow(0 1px 2px rgba(20,19,14,0.35)); }
.v-curseur svg path { fill: var(--cc); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.v-curseur span { display: inline-flex; align-items: center; gap: 7px; margin: 16px 0 0 -2px; padding: 3px 11px 3px 3px; border-radius: 999px; background: var(--cc); color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; box-shadow: 0 1px 2px rgba(20,19,14,0.25); }
.v-curseur span img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; border: 1.5px solid rgba(255,255,255,0.9); }
/* Couleurs de curseur façon Figma, volontairement hors charte pour ressortir */
.v-curseur[data-c="a"] { --cc: #A259FF; } .v-curseur[data-c="b"] { --cc: #0D99FF; }
/* Près du bord droit du cadre, l'étiquette passe à gauche de la flèche : sinon elle sort du cadre et se retrouve coupée (Theo, 15/09). */
.v-curseur.gauche span { transform: translateX(calc(-100% - 22px)); }
.v-curseur svg { transition: transform 0.12s ease-out; }
.v-curseur.clic svg { transform: scale(0.78); transform-origin: 2px 2px; }
.v-anneau { position: absolute; left: 3px; top: 3px; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--cc); opacity: 0.7; transform: scale(0.3); animation: v-ondes 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; pointer-events: none; }
@keyframes v-ondes { to { transform: scale(1.5); opacity: 0; } }
.v-sel { position: absolute; border: 1.5px solid #A259FF; border-radius: 10px; opacity: 0; transition: opacity 0.18s ease-out; }
.v-sel.v-b { border-color: #0D99FF; }
.v-sel.on { opacity: 1; }
.v-pop { position: absolute; display: grid; gap: 2px; padding: 8px 11px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(20,19,14,0.08), 0 10px 28px rgba(20,19,14,0.16); font-size: 11.5px; opacity: 0; white-space: nowrap; transform: translateY(6px) scale(0.96); transform-origin: left top; transition: opacity 0.18s ease-out, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.v-pop.on { opacity: 1; transform: none; }
.v-pop span.saute { animation: v-saute 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes v-saute { 0% { transform: scale(0.9); background: rgba(140,146,112,0.4); } 100% { transform: none; } }
.v-pop b { font-weight: 450; }
.v-pop span { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #4f5438; background: rgba(140,146,112,0.16); border-radius: 999px; padding: 2px 7px; justify-self: start; }
/* Les retouches glissent en douceur vers leur nouvelle valeur */
.v1a .nuancier i::before { transition: background 0.4s ease-out; }
.v1a .esp i { transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease-out; }
.v1a .comp .bt { transition: border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.v1a .typo b.ux { transition: font-weight 0.45s ease-out; }
.v-sans *, .v-sans .v-curseur { transition: none !important; }

.v1a .typo em { font-style: normal; }

/* ---- Étape 2 · Flux : Figma → Claude → Webflow ou Meleï, et la page qui se génère dessous ---- */
/* Le fond du flux : un verre dépoli, blanc translucide flouté, qui se détache du crème de la scène sans le cacher */
.v2a { position: relative; display: grid; grid-template-rows: 120px 1fr; gap: 14px; padding: 22px 28px 26px; background: rgba(251,251,248,0.62); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); }
.scene .cadre:has(> .v2a) { background: transparent; }
.v2a .flux { position: relative; height: 120px; }
.v2a .fils { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v2a .fils path { fill: none; stroke: rgba(22,21,16,0.28); stroke-width: 1.5; }
/* Le flux de données : une comète qui parcourt le fil, sa traînée, et des grains (petits carrés) qui suivent */
.v2a .comete { fill: none; stroke: #161510; stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.v2a .comete.trainee { stroke: #8c9270; stroke-width: 1.5; opacity: 0; }
.v2a .flot.on .comete { opacity: 1; } .v2a .flot.on .comete.trainee { opacity: 0.8; }
.v2a .grain { opacity: 0; } .v2a .grain.on { opacity: 0.9; }
.v2a .noeud::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; border: 2px solid #161510; opacity: 0; pointer-events: none; }
.v2a .noeud.arrive::after { animation: v2-onde 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes v2-onde { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
.v2a .noeud[data-n="claude"] img { transition: transform 0.4s; }
.v2a .noeud[data-n="claude"].on img { animation: v2-tourne 2.6s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
@keyframes v2-tourne { 0% { transform: rotate(0); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.v2a .noeud { position: absolute; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 12px; background: #fff; border-radius: 12px; border: 1px solid rgba(22,21,16,0.08); font-size: 14px; font-weight: 450; white-space: nowrap; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.v2a .noeud img { width: 24px; height: 24px; object-fit: contain; display: block; }
.v2a .noeud[data-n="webflow"] img { width: 22px; }
.v2a .noeud.petit { height: 42px; font-size: 13px; padding: 0 14px 0 11px; } .v2a .noeud.petit img { width: 20px; height: 20px; }
.v2a .noeud[data-n="melei"] img { width: 18px; }
.v2a .noeud.on { outline-color: #161510; transform: translateY(-2px); }
.v2a .page { position: relative; background: #fff; border-radius: 12px; border: 1px solid rgba(22,21,16,0.06); min-height: 250px; overflow: hidden; }
.v2a .zone { position: absolute; inset: 14px; }
.v2a .bloc { position: absolute; box-sizing: border-box; border-radius: 6px; background: rgba(22,21,16,0.06); border: 1.5px solid transparent; padding: 10px; display: grid; gap: 6px; align-content: start; transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1), top 0.6s cubic-bezier(0.22, 1, 0.36, 1), width 0.6s cubic-bezier(0.22, 1, 0.36, 1), height 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s, border-color 0.4s; }
.v2a .bloc i { display: block; height: 5px; border-radius: 3px; background: rgba(22,21,16,0.14); width: 70%; } .v2a .bloc i:first-child { width: 50%; height: 7px; } .v2a .bloc i:nth-child(3) { width: 40%; }
.v2a .bloc.image { background: rgba(140,146,112,0.32); }
/* La page prend en compte le padding : les pourcentages se rapportent à la zone intérieure */
.v2a .bloc { transform-origin: 0 0; }
.v2a .page.maquette .bloc { background: transparent; border-color: rgba(162,89,255,0.55); border-style: dashed; } .v2a .page.maquette .bloc i { background: rgba(162,89,255,0.25); }
.v2a .page.genere .bloc { border-color: rgba(217,119,87,0.7); }
.v2a .statut { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #161510; color: #fbfbf8; font-size: 11.5px; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.v2a .statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8c9270; }
.v2a .page.integre .statut { opacity: 1; transform: none; }
.v2a .v-sans .bloc, .v2a.v-sans .bloc, .v-sans .bloc { transition: none !important; }

/* ---- Étape 3 · Éditeur : le client au quotidien, prompt à Claude, retouche à la main, commentaires de l'équipe ---- */
.v3a { position: relative; display: grid; grid-template-rows: 44px 1fr auto; background: #fbfbf8; min-height: 420px; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; }
.v3a .barre-ed { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid rgba(22,21,16,0.08); background: #fff; }
.v3a .fil-ariane { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; } .v3a .fil-ariane img { width: 14px; height: 12px; } .v3a .fil-ariane b { font-weight: 500; }
.v3a .locales { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(22,21,16,0.06); }
.v3a .locales i { font-style: normal; padding: 4px 9px; border-radius: 999px; color: rgba(22,21,16,0.55); font-size: 11px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.v3a .locales i.on { background: #fff; color: #161510; box-shadow: 0 1px 2px rgba(20,19,14,0.12); }
.v3a .locales i.neuf { animation: v3-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes v3-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.v3a .droite { display: inline-flex; align-items: center; gap: 12px; }
.v3a .presence { display: inline-flex; } .v3a .presence b { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-size: 9.5px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; margin-left: -6px; }
.v3a .presence b:first-child { margin-left: 0; }
.v3a .presence b.parle { animation: v3-parle 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes v3-parle { 0% { transform: scale(1); box-shadow: 0 0 0 0 var(--c); } 50% { transform: scale(1.18); } 100% { transform: scale(1); box-shadow: 0 0 0 8px transparent; } }
.v3a .publier { padding: 6px 12px; border-radius: 999px; background: #161510; color: #fbfbf8; font-size: 11.5px; font-weight: 500; }
.v3a .corps-ed { display: grid; grid-template-columns: 132px 1fr; min-height: 0; }
.v3a .sections { padding: 14px 10px; border-right: 1px solid rgba(22,21,16,0.08); display: grid; gap: 4px; align-content: start; }
.v3a .sections .et { margin: 0 6px 6px; font-size: 10.5px; }
.v3a .sections i { font-style: normal; padding: 6px 10px; border-radius: 8px; color: rgba(22,21,16,0.7); } .v3a .sections i.on { background: rgba(22,21,16,0.06); color: #161510; } .v3a .sections i.plus { color: rgba(22,21,16,0.45); border: 1px dashed rgba(22,21,16,0.18); }
.v3a .canvas { position: relative; padding: 16px; }
.v3a .hero-ed { position: relative; padding: 22px 22px 20px; background: #f5f4ef; border-radius: 10px; display: grid; gap: 10px; justify-items: start; }
.v3a .titre-ed { margin: 0; font-family: 'Uxum', 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 400; line-height: 1.15; max-width: 26ch; }
.v3a .sous-ed { margin: 0; font-size: 12.5px; line-height: 1.4; color: rgba(22,21,16,0.7); width: 46ch; max-width: 100%; padding: 3px 5px; margin: -3px -5px; border-radius: 6px; border: 1.5px solid transparent; height: calc(2.8em + 6px); overflow: hidden; }
.v3a .sous-ed.edite { border-color: #0D99FF; background: #fff; color: #161510; }
.v3a .sous-ed.edite::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: #161510; vertical-align: -2px; margin-left: 1px; animation: v3-caret 0.9s steps(2) infinite; }
@keyframes v3-caret { to { opacity: 0; } }
.v3a .sous-ed.selection { background: rgba(13,153,255,0.18); }
.v3a .vient { animation: v3-vient 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes v3-vient { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.v3a .bt-ed { padding: 8px 13px; border-radius: 999px; background: #161510; color: #fbfbf8; font-size: 11.5px; }
.v3a .cartes-ed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.v3a .cartes-ed i { display: block; height: 62px; border-radius: 10px; background: #f5f4ef; }
.v3a .bulle { position: absolute; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: #fff; border-radius: 999px 999px 999px 4px; box-shadow: 0 1px 2px rgba(20,19,14,0.08), 0 10px 28px rgba(20,19,14,0.16); font-size: 11.5px; opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: left bottom; transition: opacity 0.18s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); white-space: nowrap; z-index: 2; }
.v3a .bulle.on { opacity: 1; transform: none; }
.v3a .bulle b { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 9px; font-weight: 600; display: grid; place-items: center; }
.v3a .epingle { position: absolute; width: 24px; height: 24px; border-radius: 999px 999px 999px 4px; background: var(--c, #F24E1E); color: #fff; font-size: 9px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(20,19,14,0.2); opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); z-index: 1; }
.v3a .epingle.on { opacity: 1; transform: none; }
.v3a .toast { position: absolute; right: 16px; bottom: 12px; padding: 6px 11px; border-radius: 999px; background: #161510; color: #fbfbf8; font-size: 11px; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.v3a .toast::before { content: "✓ "; color: #8c9270; }
.v3a .toast.on { opacity: 1; transform: none; }
.v3a .prompt { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 10px 12px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(22,21,16,0.1); box-shadow: 0 1px 2px rgba(20,19,14,0.05); transition: border-color 0.2s, box-shadow 0.2s; }
.v3a .prompt img { width: 18px; height: 18px; }
.v3a .prompt.focus { border-color: #161510; box-shadow: 0 0 0 3px rgba(22,21,16,0.08); }
.v3a .prompt.travaille img { animation: v2-tourne 1.2s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.v3a .saisie { flex: 1; font-size: 12.5px; color: #161510; min-height: 1.3em; }
.v3a .saisie:empty::before { content: attr(data-vide); color: rgba(22,21,16,0.4); }
.v3a .prompt.travaille .saisie:empty::before { content: "Claude travaille…"; color: rgba(22,21,16,0.6); }
.v3a .envoyer { width: 26px; height: 26px; border-radius: 50%; background: #161510; color: #fbfbf8; display: grid; place-items: center; font-size: 12px; }
.v3a .v-curseur[data-c="c"] { --cc: #0D99FF; }

/* Composition (section CMS) : l'emplacement en pointillé, la section déposée, le fantôme qui suit le curseur */
.v4a .sections i.prise { opacity: 0.45; }
.v4a .slot { position: relative; margin-top: 12px; height: 64px; border: 1.5px dashed rgba(22,21,16,0.18); border-radius: 10px; display: grid; place-items: center; color: rgba(22,21,16,0.4); font-size: 11.5px; transition: border-color 0.2s, background 0.2s; }
.v4a .slot.vise { border-color: #0D99FF; background: rgba(13,153,255,0.06); }
.v4a .slot.plein { border-style: solid; border-color: transparent; background: #f5f4ef; animation: v3-vient 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.v4a .slot .neuf { display: none; width: 100%; padding: 0 18px; align-items: center; gap: 14px; }
.v4a .slot.plein > span { display: none; } .v4a .slot.plein .neuf { display: flex; }
.v4a .neuf b { font-size: 12px; font-weight: 500; color: #161510; } .v4a .neuf i { flex: 1; height: 8px; border-radius: 4px; background: rgba(22,21,16,0.08); }
.v4a .fantome { position: absolute; left: 16px; top: 18px; padding: 6px 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(20,19,14,0.08), 0 10px 28px rgba(20,19,14,0.18); font-size: 11.5px; font-style: normal; color: #161510; white-space: nowrap; opacity: 0; transform: scale(0.9); transition: opacity 0.15s, transform 0.2s; }
.v4a .fantome.on { opacity: 1; transform: none; }
.v4a .publier { transition: background 0.2s; } .v4a .publier.fait { background: #8c9270; }
.v4a .claude-bt { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid rgba(22,21,16,0.14); transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.v4a .claude-bt img { width: 15px; height: 15px; }
.v4a .claude-bt.on { background: #161510; border-color: #161510; box-shadow: 0 0 0 3px rgba(22,21,16,0.1); }
/* La barre de chat reste dans la grille (pas de saut de hauteur) mais n'apparaît qu'au clic sur le bouton Claude */
.v4a .prompt { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.2s; }
.v4a .prompt.on { opacity: 1; transform: none; }

/* ---- Étape 1 · D et E : deux planches plus « fichier de travail » que « poster », demandées par Theo le 14/09 ----
   Curseurs sobres (Figma tel quel : flèche et étiquette, pas d'avatar), cotes de spec en bordeaux, frames nommées comme dans le fichier. */
.vis.sobre .v-curseur svg { width: 18px; height: 20px; }
.vis.sobre .v-curseur span { margin: 11px 0 0 -5px; padding: 3px 7px; border-radius: 3px; font-size: 11px; box-shadow: none; }
.vis.sobre .v-curseur span img { display: none; }
.vis.sobre .v-anneau { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.vis.sobre .v-sel { border-radius: 2px; }
.vis.sobre .v-sel::after { content: attr(data-dim); position: absolute; top: 100%; left: 50%; transform: translate(-50%, 5px); padding: 2px 5px; border-radius: 2px; background: #A259FF; color: #fff; font: 500 9.5px/1.2 'Inter', system-ui, sans-serif; white-space: nowrap; }
.vis.sobre .v-sel.v-b::after { background: #0D99FF; }
.vis.sobre .v-sel[data-dim=""]::after, .v1e .v-sel::after { display: none; }
.vis.sobre .v-sel2 { border-style: dashed; border-width: 1px; }
.vis.sobre .v-sel2::after { display: none; }
.vis.sobre .v-pop { border-radius: 6px; padding: 7px 10px; font-family: 'Inter', system-ui, sans-serif; }
.vis.sobre .v-pop span { border-radius: 3px; }
/* Les cotes : un trait fin bordeaux à bouts marqués, la valeur dans une petite étiquette */
.vis .cote { position: absolute; font-style: normal; --cc: #772406; pointer-events: none; }
.vis .cote.h { height: 0; border-top: 1px solid var(--cc); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.vis .cote.h::before, .vis .cote.h::after { content: ""; position: absolute; top: -4px; height: 8px; border-left: 1px solid var(--cc); }
.vis .cote.h::before { left: 0; } .vis .cote.h::after { right: -1px; }
.vis .cote.v { width: 0; border-left: 1px solid var(--cc); transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.vis .cote.v::before, .vis .cote.v::after { content: ""; position: absolute; left: -4px; width: 8px; border-top: 1px solid var(--cc); }
.vis .cote.v::before { top: 0; } .vis .cote.v::after { bottom: -1px; }
.vis .cote em { position: absolute; font-style: normal; font: 500 9px/1 'Inter', system-ui, sans-serif; color: #fff; background: var(--cc); padding: 2px 3px; border-radius: 2px; white-space: nowrap; }
.vis .cote.h em { left: 50%; bottom: 5px; transform: translateX(-50%); }
.vis .cote.v em { top: 50%; left: 6px; transform: translateY(-50%); }
.vis .cote.rayon { left: -5px; top: -5px; width: calc(var(--r) + 5px); height: calc(var(--r) + 5px); border-top: 1px solid var(--cc); border-left: 1px solid var(--cc); border-top-left-radius: calc(var(--r) + 5px); transition: width 0.4s, height 0.4s, border-radius 0.4s; }
.vis .cote.rayon em { left: -4px; top: -20px; }
/* D · Canevas : un coin de fichier Figma, fond gris-crème pointillé, frames posées librement, deux d'entre elles coupées par le bord */
.v1d { position: relative; height: 420px; overflow: hidden; background: #ECEBE5; background-image: radial-gradient(rgba(22,21,16,0.14) 0.8px, transparent 0.9px); background-size: 14px 14px; background-position: 4px 6px; font-family: 'Inter', system-ui, sans-serif; }
.v1d .v-frame { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(22,21,16,0.06), 0 1px 3px rgba(22,21,16,0.05); }
.v1d .v-frame::before { content: attr(data-nom); position: absolute; left: 0; bottom: 100%; margin-bottom: 5px; font-size: 10px; color: rgba(22,21,16,0.5); white-space: nowrap; }
.v1d .v-set { background: transparent; box-shadow: none; outline: 1px dashed rgba(162,89,255,0.75); }
.v1d .v-set::before { color: #A259FF; content: "◈ " attr(data-nom); }
.v1d .f-titre { left: 32px; top: 40px; width: 404px; padding: 26px 28px 20px; font-family: var(--font); }
.v1d .f-titre h3 { margin: 0; font-size: 31px; line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; transition: font-weight 0.45s ease-out; }
.v1d .f-titre small { display: block; margin-top: 14px; font-family: 'Inter', system-ui, sans-serif; font-size: 10.5px; color: var(--muted); }
.v1d .f-titre small em { font-style: normal; }
.v1d .f-couleurs { left: 472px; top: 40px; width: 330px; padding: 12px; }
.v1d .bandes { display: flex; gap: 5px; }
.v1d .bandes i { flex: 1; min-width: 0; height: 100px; background: var(--c); display: grid; align-content: end; gap: 3px; padding: 8px 7px; font-style: normal; color: #fbfbf8; transition: background 0.4s ease-out; overflow: hidden; }
.v1d .bandes i.claire { color: var(--on); box-shadow: inset 0 0 0 1px rgba(22,21,16,0.08); }
.v1d .bandes b { font-size: 10px; font-weight: 500; white-space: nowrap; }
.v1d .bandes small { font-size: 8.5px; opacity: 0.7; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
.v1d .f-bouton { left: 32px; top: 234px; width: 404px; padding: 22px 24px 18px; }
.v1d .etats { display: flex; gap: 18px; align-items: flex-start; }
.v1d .etats > span { display: grid; gap: 9px; justify-items: start; }
.v1d .etats small { font-size: 10px; color: rgba(22,21,16,0.5); }
.v1d .bt { transition: border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.v1d .bt.survol { background: #2f2e25; }
.v1d .f-carte { left: 472px; top: 234px; width: 330px; padding: 22px; background: #F6F4EC; }
.v1d .v-carte { position: relative; background: #fff; border-radius: 12px; padding: 24px; display: grid; gap: 10px; justify-items: start; transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1); font-family: var(--font); box-shadow: 0 1px 2px rgba(20,19,14,0.05); }
.v1d .v-carte b { font-size: 24px; font-weight: 400; line-height: 1.1; }
.v1d .v-carte p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.v1d .v-carte .cote.v { top: 0; left: 62%; }
.v1d .pastille { transition: background 0.4s ease-out; }
/* E · Spécification : un composant seul, grand, sur le canevas ; ses cotes ; et le panneau d'inspection où l'on change les valeurs */
.v1e { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 252px; height: 420px; overflow: hidden; font-family: 'Inter', system-ui, sans-serif; }
.v1e .v-planche { position: relative; background: #ECEBE5; background-image: radial-gradient(rgba(22,21,16,0.14) 0.8px, transparent 0.9px); background-size: 14px 14px; background-position: 4px 6px; display: grid; place-items: center; }
.v1e .v-nom { position: absolute; left: 30px; top: 22px; font-size: 10.5px; color: #A259FF; }
.v1e .v-carte { position: relative; width: 300px; background: #fff; border-radius: 12px; padding: 24px; display: grid; gap: 12px; justify-items: start; font-family: var(--font); outline: 1px dashed rgba(162,89,255,0.6); outline-offset: 12px; transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 1px 2px rgba(20,19,14,0.05); }
.v1e .v-carte b { font-size: 28px; font-weight: 400; line-height: 1.1; transition: font-weight 0.45s ease-out; }
.v1e .v-carte p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.v1e .v-carte .bt { margin-top: 4px; transition: border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.v1e .v-carte .cote.h { right: 0; top: 38px; }
.v1e .v-carte .cote.v { top: 0; left: 64%; }
.v1e .pastille { transition: background 0.4s ease-out; }
.v1e .note { position: absolute; font: 10px/1.35 'Inter', system-ui, sans-serif; color: rgba(22,21,16,0.55); white-space: nowrap; }
.v1e .note em { font-style: normal; color: var(--on); }
.v1e .n-titre { left: calc(100% + 26px); top: 54px; }
.v1e .n-titre::before { content: ""; position: absolute; right: calc(100% + 6px); top: 7px; width: 16px; border-top: 1px solid rgba(22,21,16,0.3); }
.v1e .n-dim { left: 50%; top: calc(100% + 18px); transform: translateX(-50%); padding: 2px 5px; border-radius: 2px; background: #A259FF; color: #fff; font-weight: 500; }
.v1e .v-inspect { background: #fff; border-left: 1px solid var(--trait); font-size: 11.5px; }
.v1e .v-tete { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px 11px; border-bottom: 1px solid var(--trait); font-weight: 500; font-size: 12px; }
.v1e .v-tete i { font-style: normal; font-weight: 400; color: rgba(22,21,16,0.45); }
.v1e .v-sec { padding: 14px 16px 5px; font-size: 10px; letter-spacing: 0.02em; color: rgba(22,21,16,0.45); }
.v1e .v-prop { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 6px; padding: 6px 16px; }
.v1e .v-prop span { color: rgba(22,21,16,0.62); }
.v1e .v-prop em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; background: rgba(22,21,16,0.05); font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; justify-self: start; white-space: nowrap; }
.v1e .v-prop em i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(22,21,16,0.15); transition: background 0.4s ease-out; }
.v1e .v-prop em b { font-weight: 500; }
