/* Mijoh Studio — maquette v6 · illustrations d'interface (automatisation, assistant IA, formation, recherche, audit).
   Ce sont des illustrations, pas des captures de clients : textes génériques, aucun chiffre de résultat.
   Insertion : <div data-mock="flow|chat|atelier|serp|audit"></div> + js/mocks.js */

.mock {
  position: relative; border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -50px rgba(13, 13, 14, .55);
  font-size: 14px; line-height: 1.35; text-align: left;
}
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); }
.mock__dots { display: inline-flex; gap: 5px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.mock__name { font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.mock__tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--mute); }
.mock__body { padding: clamp(14px, 1.6vw, 22px); }
.mock__mono { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mock__check { width: 14px; height: 14px; flex: none; }
.mock__check path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- flow : une demande traverse les outils --- */
.flow { position: relative; display: flex; flex-direction: column; gap: 10px; }
.flow__line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1.5px; background: var(--line); }
.flow__line i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--ink); }
.flow__dot { position: absolute; left: 17px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.flow__node { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 0; }
.flow__ico { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); border: 1.5px solid var(--ink); transition: background-color .4s, color .4s; }
.flow__ico .mock__mono { font-size: 8.5px; letter-spacing: .02em; }
.flow__t { font-weight: 620; }
.flow__s { display: block; font-size: 12px; color: var(--mute); font-weight: 450; }
.flow__state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); transition: background-color .4s, color .4s, box-shadow .4s; white-space: nowrap; }
.flow__node.is-done .flow__ico { background: var(--ink); color: var(--paper); }
.flow__node.is-done .flow__state { background: var(--ink); color: var(--paper); box-shadow: none; }
.flow__node.is-wait .flow__state { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* --- chat : l'assistant prépare un brouillon --- */
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.chat__msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; }
.chat__msg small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 650; opacity: .7; }
.chat__in { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.chat__out { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; min-height: 3.6em; }
.chat__typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--ink); }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); animation: typing 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; } .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .25; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
.chat__actions { align-self: flex-end; display: flex; gap: 8px; }
.chat__btn { font-size: 12px; font-weight: 650; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chat__btn--on { background: var(--ink); color: var(--paper); }

/* --- atelier : formation à l'IA --- */
.atelier { display: flex; flex-direction: column; gap: 10px; }
.atelier__row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.atelier__row:first-child { border-top: 0; }
.atelier__box { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; color: var(--paper); transition: background-color .35s; }
.atelier__row.is-done .atelier__box { background: var(--ink); }
.atelier__row .mock__check { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s var(--ease); }
.atelier__row.is-done .mock__check { opacity: 1; transform: none; }
.atelier__t { font-weight: 620; }
.atelier__d { display: block; font-size: 12px; color: var(--mute); font-weight: 450; }
.atelier__bar { height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; margin-top: 4px; }
.atelier__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .6s var(--ease); }

/* --- serp : une recherche locale (illustration générique, aucune marque de moteur) --- */
.serp__q { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 560; }
.serp__q svg { width: 15px; height: 15px; flex: none; }
.serp__caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); vertical-align: -.18em; animation: caret 1s steps(2, start) infinite; }
.serp__list { position: relative; margin-top: 12px; }
.serp__res { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; transition: background-color .4s, color .4s; }
.serp__res b { font-weight: 680; }
.serp__res span { grid-column: 1; font-size: 12px; color: var(--mute); }
.serp__res em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 11px; font-weight: 650; }
.serp__res--me { background: var(--ink); color: var(--paper); }
.serp__res--me span { color: var(--mute-d); }
.serp__res:not(.serp__res--me) b { color: var(--mute); }
.serp__stars { letter-spacing: 2px; }

/* --- audit : les points techniques passent au vert (ici : au noir) --- */
.audit { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2vw, 26px); align-items: center; }
.audit__ring { position: relative; width: clamp(92px, 9vw, 124px); aspect-ratio: 1; }
.audit__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.audit__ring circle { fill: none; stroke-width: 7; }
.audit__ring .bg { stroke: var(--paper-3); }
.audit__ring .fg { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.audit__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 880; font-stretch: 62%; font-size: clamp(26px, 2.6vw, 36px); }
.audit__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 560; }
.audit__list li:first-child { border-top: 0; }
.audit__st { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--paper); transition: background-color .35s, box-shadow .35s; }
.audit__list li.is-done .audit__st { background: var(--ink); box-shadow: none; }
.audit__list .mock__check { width: 12px; height: 12px; opacity: 0; transition: opacity .3s; }
.audit__list li.is-done .mock__check { opacity: 1; }

/* --- compteur de temps (accueil) --- */
html.reduce .flow__dot { display: none; }
