/* Profondeur du skin, sections Produit et Couleur. Même DA : blanc, encre, tuiles teintées. */

:root {
  --b-wafa: #00a63e; --b-yakeey: #0f8a7a; --b-carrefour: #1e5bc6;
  --paper: #f7f4ee;
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --e-soft: 0 1px 1px rgba(0, 0, 0, 0.03), 0 4px 8px -2px rgba(0, 0, 0, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.12);
}

/* ---------- profondeur : intro ---------- */
.intro { position: relative; isolation: isolate; }
.intro::before {
  content: ""; position: absolute; z-index: -1; inset: -120px 0 -40px; pointer-events: none;
  background:
    radial-gradient(520px 340px at 12% 28%, rgba(0, 166, 62, 0.10), transparent 70%),
    radial-gradient(560px 360px at 62% 8%, rgba(30, 91, 198, 0.09), transparent 70%),
    radial-gradient(480px 320px at 92% 46%, rgba(15, 138, 122, 0.09), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
          mask-image: linear-gradient(#000 55%, transparent);
}
.intro-title .iw:nth-last-child(-n+3) { color: #1f5a46; }

.proof { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.proof li { display: grid; align-content: start; gap: 4px; padding: 20px 20px 0 0; }
.proof li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.proof b { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof span { font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- profondeur : tuiles projet ---------- */
.stage {
  --mx: -999px; --my: -999px;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%), var(--tint);
  box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--e-soft);
}
.stage .device { box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06), 0 24px 40px -18px rgba(0, 0, 0, 0.32), 0 60px 90px -40px rgba(0, 0, 0, 0.28); }
.also-visual { box-shadow: inset 0 0 0 1px var(--hair), var(--e-soft); }
.next-project .wrap { --mx: -999px; --my: -999px; background-image: radial-gradient(480px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.6), transparent 62%); }

/* séparateurs : un filet qui s'estompe sur les bords */
.profile, .product, .studio { border-top: 0; position: relative; }
.profile::before, .product::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1072px, calc(100% - 48px)); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

/* ---------- têtes de section ---------- */
.sec-head { display: grid; gap: 16px; justify-items: start; max-width: 760px; margin-bottom: 56px; }
.sec-note { margin-top: 20px; }

/* ---------- Produit : méthode ---------- */
.method { --fill: 0; list-style: none; padding: 0; margin: 0 0 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.method::before, .method::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; border-radius: 2px; }
.method::before { background: var(--line); }
.method::after { background: linear-gradient(90deg, var(--b-wafa), var(--b-yakeey), var(--b-carrefour)); transform-origin: left; transform: scaleX(var(--fill)); }
.m-step {
  --mx: -999px; --my: -999px;
  position: relative; z-index: 1; display: grid; align-content: start; gap: 12px; padding: 0 20px 22px; border-radius: 20px;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(0, 0, 0, 0.025), transparent 60%), #fff;
  box-shadow: inset 0 0 0 1px var(--hair), var(--e-soft);
}
.m-num { width: 36px; height: 36px; margin-top: 10px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.m-step h3 { font-size: 18px; line-height: 24px; letter-spacing: -0.01em; }
.m-step > p { color: var(--ink-2); }
.m-out { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.m-out li { padding: 3px 8px; border-radius: 8px; background: var(--tile); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.m-seen { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 18px; color: var(--ink-2); text-decoration: none; }
.m-seen i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
@media (hover: hover) and (pointer: fine) { .m-seen:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- Produit : carte impact / effort ---------- */
.pm { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding: 48px; border-radius: var(--r-box, 24px); background: var(--tile); box-shadow: inset 0 0 0 1px var(--hair); align-items: start; }
.pm-copy { display: grid; gap: 14px; }
.pm-copy > p { color: var(--ink-2); }
.pm-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.pm-row { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; line-height: 20px; color: var(--ink); text-align: left; cursor: pointer; transition: background-color 160ms var(--ease); }
.pm-row[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--hair), 0 2px 6px rgba(0, 0, 0, 0.05); }
@media (hover: hover) and (pointer: fine) { .pm-row:hover { background: rgba(255, 255, 255, 0.7); } }
.pm-n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 600; }
.pm-q { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pm-detail { min-height: 128px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: 8px; align-content: start; }
.pm-dq { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
.pm-dq:empty { display: none; }
.pm-detail.pop { animation: pm-pop 320ms var(--ease); }
@keyframes pm-pop { from { opacity: 0.4; transform: translateY(4px); } }

.pm-plot-wrap { position: relative; padding: 0 0 28px 28px; }
.pm-plot { position: relative; aspect-ratio: 1 / 0.92; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden;
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(135deg, rgba(0, 166, 62, 0.07), transparent 50%);
  background-size: 1px 100%, 100% 1px, 50% 50%; background-position: 50% 0, 0 50%, 0 0; background-repeat: no-repeat; }
.pm-quad { position: absolute; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.q-tl { top: 12px; left: 14px; color: #13703a; } .q-tr { top: 12px; right: 14px; } .q-bl { bottom: 12px; left: 14px; } .q-br { bottom: 12px; right: 14px; }
.pm-dot { position: absolute; left: calc(9% + var(--x) * 0.82); bottom: calc(12% + var(--y) * 0.74); width: 30px; height: 30px; margin: 0 0 -15px -15px; padding: 0; border: 0; border-radius: 50%; background: var(--c); color: #fff; font: 600 12px/1 var(--font, system-ui); cursor: pointer; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, 0.18); transition: transform 380ms var(--spring), box-shadow 200ms; }
.pm-dot.on, .pm-dot.hover { transform: scale(1.22); box-shadow: 0 0 0 3px #fff, 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 6px 14px rgba(0, 0, 0, 0.2); z-index: 2; }
.pm:not(.placed) .pm-dot { left: 50%; bottom: 50%; opacity: 0; }
.pm.placed .pm-dot { transition: left 700ms var(--spring), bottom 700ms var(--spring), opacity 300ms, transform 380ms var(--spring), box-shadow 200ms; }
.pm-dot:nth-of-type(2) { transition-delay: 40ms; } .pm-dot:nth-of-type(3) { transition-delay: 80ms; } .pm-dot:nth-of-type(4) { transition-delay: 120ms; }
.pm-dot:nth-of-type(5) { transition-delay: 160ms; } .pm-dot:nth-of-type(6) { transition-delay: 200ms; } .pm-dot:nth-of-type(7) { transition-delay: 240ms; } .pm-dot:nth-of-type(8) { transition-delay: 280ms; }
.pm-axes { position: absolute; left: 28px; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 12px; }
.pm-axes span:last-child::after { content: " →"; }
.pm-yaxis { position: absolute; left: 2px; top: 0; bottom: 28px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: start; font-size: 12px; white-space: nowrap; }
.pm-yaxis::after { content: " →"; }

/* ---------- Couleur ---------- */
.studio { background: var(--paper); }
.studio-grid {
  --p-bg: #f4eee3; --p-su: #fbf8f2; --p-ink: #1f1a17; --p-act: #b5482a; --p-acc: #1e6b66; --p-on: #fff;
  --p-mute: color-mix(in srgb, var(--p-ink) 62%, var(--p-su));
  display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "picks main" "picks side"; gap: 40px 48px; align-items: start;
}
.pal-picks { grid-area: picks; display: grid; gap: 6px; position: sticky; top: 96px; }
.studio-main { grid-area: main; }
.studio-side { grid-area: side; }
.pal-pick { display: grid; gap: 2px; padding: 12px; border: 0; border-radius: 14px; background: transparent; font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.pal-pick[aria-checked="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--hair), var(--e-soft); }
@media (hover: hover) and (pointer: fine) { .pal-pick:hover { background: rgba(255, 255, 255, 0.6); } }
.pal-strip { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.pal-strip i { flex: 1; }
.pal-strip i:nth-child(1) { flex: 2.2; } .pal-strip i:nth-child(2) { flex: 1.4; }
.pal-name { font-size: 15px; line-height: 20px; font-weight: 600; }
.pal-place { font-size: 12px; line-height: 16px; color: var(--muted); }

.studio-main { display: grid; gap: 16px; }
.chips { display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1fr 1fr; gap: 8px; height: 280px; }
.chip { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 12px; border: 0; border-radius: 14px; background: var(--c); color: var(--t); font: inherit; text-align: left; cursor: copy; min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: chip-in 560ms var(--spring) both; animation-delay: calc(var(--i) * 45ms); transition: transform 200ms var(--ease); }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.chip:active { transform: scale(0.97); }
.chip-role { position: absolute; top: 12px; left: 12px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.75; }
.chip-name { font-size: 13px; line-height: 17px; font-weight: 600; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.chip-hex { font: 500 11px/14px ui-monospace, "SF Mono", Menlo, monospace; opacity: 0.8; }
.chip.copied .chip-hex { opacity: 1; font-weight: 700; }
.dose { display: flex; height: 8px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.dose i { transition: background-color 400ms var(--ease); }
.dose i:nth-child(1) { flex: 55; } .dose i:nth-child(2) { flex: 25; } .dose i:nth-child(3) { flex: 10; } .dose i:nth-child(4) { flex: 7; } .dose i:nth-child(5) { flex: 3; }
.dose-legend { margin-top: -6px; font-size: 12px; line-height: 16px; }
.pal-note { color: var(--ink-2); font-size: 17px; line-height: 26px; padding-left: 16px; border-left: 2px solid var(--p-act); transition: border-color 400ms var(--ease); text-wrap: pretty; }

.studio-side { display: grid; gap: 12px; }
.vision { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.05); }
.vision button { flex: 1 1 auto; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 9px; background: transparent; font: 500 12px/16px var(--font, system-ui); color: var(--ink-2); cursor: pointer; transition: background-color 200ms var(--ease); }
.vision button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.sim { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; transition: filter 300ms; }
.sim-note { font-size: 12px; line-height: 16px; }

.mini { --r: 10px; display: grid; gap: 8px; padding: 14px 12px 10px; border-radius: 26px; background: var(--p-bg); color: var(--p-ink); font: 13px/17px -apple-system, system-ui, sans-serif;
  box-shadow: 0 0 0 6px #1d1d1f, 0 0 0 7px #3a3a3c, 0 24px 40px -16px rgba(0, 0, 0, 0.35); margin: 7px; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.mini * { transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease); }
.mini-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; }
.mini-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--p-acc); }
.mini-bell { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--p-mute); }
.mini-card { display: grid; gap: 4px; padding: 12px; border-radius: var(--r); background: var(--p-su); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-ink) 8%, transparent); }
.mini-card b { font-size: 14px; line-height: 18px; }
.mini-tag { justify-self: start; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; background: color-mix(in srgb, var(--p-acc) 18%, var(--p-su)); color: color-mix(in srgb, var(--p-acc) 55%, var(--p-ink)); }
.mini-sub { font-size: 11px; line-height: 15px; color: var(--p-mute); }
.mini-bar { height: 5px; border-radius: 3px; margin-top: 4px; background: color-mix(in srgb, var(--p-ink) 10%, var(--p-su)); overflow: hidden; }
.mini-bar i { display: block; width: 75%; height: 100%; border-radius: 3px; background: var(--p-act); }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r); background: var(--p-su); font-size: 12px; }
.mini-row i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--p-mute); flex: none; }
.mini-row i.ok { background: var(--p-acc); box-shadow: none; }
.mini-row em { margin-left: auto; font-style: normal; color: var(--p-mute); font-size: 11px; }
.mini-cta { margin-top: 4px; display: grid; place-items: center; min-height: 36px; border-radius: var(--r); background: var(--p-act); color: var(--p-on); font-weight: 600; font-size: 13px; }
.mini-tabs { display: flex; justify-content: space-around; padding-top: 8px; margin-top: 2px; border-top: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent); }
.mini-tabs i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--p-mute); }
.mini-tabs i.on { background: var(--p-act); box-shadow: none; }

.pairs { display: grid; gap: 8px; }
.pair-grid { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 460px; }
.pg-corner { font-size: 9px; line-height: 11px; color: var(--muted); align-self: end; }
.pg-h { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; line-height: 12px; color: var(--ink-2); padding-bottom: 2px; }
.pg-h i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.pg-r { flex-direction: row; justify-content: flex-start; padding: 0; }
.pg-c { position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 0; border-radius: 8px; background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.pg-c b { font-size: 16px; line-height: 18px; font-weight: 600; }
.pg-c em { font: 600 9px/11px ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; }
.pg-c small { position: absolute; top: 3px; right: 4px; font-size: 8px; line-height: 10px; font-weight: 700; }
.pg-c.g-no { opacity: 0.38; background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(0, 0, 0, 0.06) 5px 6px); }
.pg-c.g-grand { opacity: 0.75; }
.pg-self { background: transparent; box-shadow: none; border: 1px dashed var(--line); }
.pair-key { font-size: 11px; line-height: 15px; }
.pair-key b { color: var(--ink); }
.studio-grid.swap .pal-note { animation: note-in 420ms var(--ease); }
@keyframes note-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- barre de lecture ---------- */
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--b-wafa), var(--b-yakeey), var(--b-carrefour)); pointer-events: none; }

/* ---------- contact : profondeur ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -40%; width: 900px; height: 600px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 166, 62, 0.16), transparent), radial-gradient(closest-side at 30% 60%, rgba(30, 91, 198, 0.18), transparent); filter: blur(10px); }
.contact-lead { color: var(--on-dark-muted); max-width: 520px; font-size: 17px; line-height: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "picks" "main" "side"; }
  .pal-picks { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method::before, .method::after { display: none; }
}
@media (max-width: 860px) {
  .pm { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 28px; }
  .pm-plot-wrap { order: -1; }
  .pm-copy .pm-detail { order: 1; min-height: 0; }
  .pm-copy .pm-list { order: 2; }
  .pm-plot { aspect-ratio: 1 / 1; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .pal-picks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding: 2px 24px 8px; scrollbar-width: none; }
  .pal-picks::-webkit-scrollbar { display: none; }
  .pal-pick { flex: 0 0 150px; scroll-snap-align: start; }
  .chips { height: 200px; gap: 6px; }
  .chip { padding: 8px; border-radius: 12px; }
  .chip-role { top: 8px; left: 8px; font-size: 9px; }
  .chip-name { font-size: 11px; line-height: 14px; }
  .chip-hex { font-size: 9px; }
  .sim { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .mini { width: 220px; }
  .pairs { width: 100%; }
  .proof b { font-size: 20px; line-height: 26px; }
  .pm-q { display: none; }
  .sec-head { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .chip, .pm-detail.pop, .studio-grid.swap .pal-note { animation: none; }
  .pm-dot { transition: none !important; }
}

/* ---------- couche d'agrément des prototypes ---------- */
.proto .p-ct { opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 260ms var(--ease); }
.proto .p-scrolled .p-ct { opacity: 1; transform: none; }
.proto .p-nav { transition: box-shadow 200ms ease, background-color 200ms ease; }
.proto .p-scrolled .p-nav { box-shadow: 0 0.5px 0 var(--sep, rgba(60, 60, 67, 0.2)); }
.proto .p-minihead { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 98px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; pointer-events: none;
  background: color-mix(in srgb, var(--pg, #f2f2f7) 82%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 0.5px 0 rgba(60, 60, 67, 0.2);
  font-size: 17px; font-weight: 600; color: var(--tx, #000); opacity: 0; transform: translateY(-8px); transition: opacity 220ms ease, transform 300ms var(--ease); }
.proto .p-scrolled .p-minihead { opacity: 1; transform: none; }
.proto .p-screen.brand .p-minihead, .proto .p-screen[data-light] .p-minihead { color: #000; }
.proto .p-rv { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 420ms ease, transform 620ms var(--spring); }
.proto .p-rv.p-in { opacity: 1; transform: none; }
.proto .p-ptr { position: absolute; z-index: 7; top: 104px; left: 50%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #1d1d1f; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.08); opacity: 0; transform: translate(-50%, -20px); pointer-events: none; transition: opacity 200ms ease; }
.proto .p-ptr i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--b, #0071e3); border-right-color: transparent; }
.proto .p-ptr.spin i { animation: p-spin 700ms linear infinite; }
.proto .p-ptr.ok i { border-color: #1f9d55; border-right-color: #1f9d55; background: #1f9d55; box-shadow: inset 0 0 0 3px #fff; }
@keyframes p-spin { to { transform: rotate(360deg); } }
.proto .p-heart { position: absolute; z-index: 5; width: 64px; height: 64px; margin: -32px 0 0 -32px; color: #fff; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35)); pointer-events: none; animation: p-heart 820ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes p-heart { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.15) rotate(4deg); opacity: 1; } 45% { transform: scale(0.95); } 70% { transform: scale(1); opacity: 1; } 100% { transform: translateY(-40px) scale(0.6); opacity: 0; } }
.proto .p-liked { position: absolute; z-index: 4; left: 10px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #ff2d55; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); animation: p-pop 420ms var(--spring) both; }
.proto .p-boing svg, .proto .p-boing .p-ico { animation: p-boing 480ms var(--spring); }
@keyframes p-boing { 30% { transform: scale(0.82) translateY(2px); } 65% { transform: scale(1.12) translateY(-2px); } }
.proto .p-pop { animation: p-pop 420ms var(--spring); }
@keyframes p-pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.06); } }
.proto [data-activate].p-on { background: var(--b); color: #fff; }
.proto [data-activate].p-on::before { content: "✓"; margin-right: 4px; font-weight: 700; }
.proto .p-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
.proto .w-actions button { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 500; color: var(--tx2); cursor: pointer; }
.proto .w-actions button:active .p-ico { transform: scale(0.92); }
.proto .w-actions .p-ico { transition: transform 160ms ease; }
.proto .p-range { --v: 40%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 10px 0 0; background: transparent; touch-action: pan-y; }
.proto .p-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--b) var(--v), rgba(60, 60, 67, 0.14) var(--v)); }
.proto .p-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--b) var(--v), rgba(60, 60, 67, 0.14) var(--v)); }
.proto .p-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.08); transition: transform 160ms ease; }
.proto .p-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.proto .p-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); }
.proto .p-ring-v { transition: stroke-dashoffset 120ms linear; }
@media (prefers-reduced-motion: reduce) { .proto .p-rv { opacity: 1; transform: none; } .proto .p-heart, .proto .p-boing svg { animation: none; } }

/* ---------- Réalisations ---------- */
.works::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1072px, calc(100% - 48px)); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.works { position: relative; }
.wk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.wk-f { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tile); font: 500 14px/20px var(--font); color: var(--ink-2); cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease); }
.wk-f span { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.wk-f[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wk-f[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.6); }
.wk-f:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .wk-f:not([aria-pressed="true"]):hover { background: var(--tile-2); } }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wk-grid[data-collapsed="true"] .wk:nth-child(n+10) { display: none; }
.wk { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), var(--e-soft); overflow: hidden; color: inherit; text-decoration: none; transition: transform 380ms var(--spring), box-shadow 300ms var(--ease); }
.wk.wk-in { animation: wk-in 520ms var(--spring) both; animation-delay: calc(min(var(--k, 0), 8) * 40ms); }
@keyframes wk-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (hover: hover) and (pointer: fine) {
  a.wk:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hair), 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px -28px rgba(0, 0, 0, 0.28); }
  a.wk:hover .wk-phone, a.wk:hover .wk-web img { transform: translateY(-6px); }
}
.wk:active { transform: scale(0.99); }
.wk-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.wk-phone { position: absolute; left: 50%; top: 14%; width: 46%; margin-left: -23%; aspect-ratio: 9 / 19.5; border-radius: 22px; padding: 4px; background: #1d1d1f; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.35); transition: transform 500ms var(--spring); }
.wk-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; display: block; }
.wk-web { position: absolute; left: 9%; right: 9%; top: 14%; bottom: -6%; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06); overflow: hidden; }
.wk-web i { display: block; height: 14px; background: #f1f1f3 radial-gradient(circle at 9px 7px, #ff5f57 2.5px, transparent 3px), #f1f1f3; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.wk-web img { width: 100%; height: calc(100% - 14px); object-fit: cover; object-position: top left; display: block; transition: transform 500ms var(--spring); }
.wk-gen { position: absolute; inset: 0; display: grid; place-items: center; }
.wk-gen b { position: absolute; left: 18px; top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: rgba(0, 0, 0, 0.45); }
.g-free b { position: static; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: rgba(0, 0, 0, 0.78); font-weight: 600; }
.g-free::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px dashed rgba(0, 0, 0, 0.18); }
.g-bo { grid-template-columns: 24% 1fr; grid-auto-rows: 14px; align-content: center; gap: 8px 10px; padding: 0 12%; place-items: stretch; }
.g-bo .g-side { grid-row: span 5; border-radius: 6px; background: rgba(255, 255, 255, 0.7); height: auto; }
.g-bo .g-row { border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.g-bo .g-row.s { width: 60%; }
.g-dash { grid-auto-flow: column; align-items: end; justify-content: center; gap: 10px; height: 100%; padding: 22% 0 18%; }
.g-dash .g-bar { width: 22px; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(#1e5bc6, #6c98e8); }
.g-ds { grid-template-columns: repeat(3, 34px); grid-auto-rows: auto; gap: 10px; align-content: center; justify-content: center; }
.g-ds .g-sw { height: 34px; border-radius: 10px; background: #e2582e; } .g-ds .g-sw:nth-child(3) { background: #1d1d1f; } .g-ds .g-sw:nth-child(4) { background: #f2c2a8; }
.g-ds .g-btn { grid-column: 1 / -1; height: 26px; border-radius: 13px; background: #1d1d1f; }
.g-ds .g-in { grid-column: 1 / -1; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.g-app .g-ph { width: 30%; aspect-ratio: 9 / 19.5; border-radius: 16px; background: linear-gradient(160deg, #ff7a00, #e10a0a); box-shadow: 0 0 0 4px #1d1d1f, 0 20px 30px -14px rgba(0, 0, 0, 0.35); margin-top: 8%; }
.wk-info { display: grid; gap: 4px; align-content: start; padding: 16px 18px 18px; }
.wk-co { font-size: 12px; line-height: 16px; color: var(--muted); }
.wk-t { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
.wk-d { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wk-tags i { font-style: normal; font-size: 11px; line-height: 16px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--tile); color: var(--ink-2); }
.wk-tags .wk-go { background: transparent; padding-inline: 0; margin-left: auto; color: var(--ink); }
.wk-more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- DS Lab ---------- */
.dsl-sec { position: relative; }
.dsl { border-radius: 28px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--hair); padding: 20px; }
.dsl-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dsl-sys { display: flex; gap: 6px; flex-wrap: wrap; }
.dsl-sys button { display: grid; gap: 0; text-align: left; padding: 8px 14px; border: 0; border-radius: 14px; background: transparent; font: inherit; color: var(--ink); cursor: pointer; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.dsl-sys button b { font-size: 15px; line-height: 20px; }
.dsl-sys button span { font-size: 12px; line-height: 16px; color: var(--muted); }
.dsl-sys button[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--hair), var(--e-soft); }
.dsl-opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dsl-seg { display: flex; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, 0.06); }
.dsl-seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: 500 13px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.dsl-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.dsl-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dsl-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--d-g); padding: var(--d-g); border-radius: 20px; background: var(--d-bg); color: var(--d-ink); font-family: var(--d-font); font-size: var(--d-fs); line-height: 1.4; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.dsl-board * { transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease), border-radius 400ms var(--ease), height 300ms var(--ease), padding 300ms var(--ease); }
.d-card { display: grid; gap: var(--d-g); align-content: start; padding: var(--d-p); border-radius: var(--d-r); background: var(--d-su); box-shadow: 0 0 0 1px var(--d-line); }
.d-span { grid-column: 1 / -1; }
.d-head { display: flex; align-items: center; gap: 12px; }
.d-head > span:nth-child(2) { flex: 1; display: grid; }
.d-head small, .d-field small { color: var(--d-mute); font-size: 0.82em; }
.d-av { width: var(--d-h); height: var(--d-h); flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--d-act) 16%, var(--d-su)); color: var(--d-act); font-weight: 700; font-size: 0.85em; }
.d-prog { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--d-ink) 10%, var(--d-su)); overflow: hidden; }
.d-prog i { display: block; height: 100%; border-radius: 3px; background: var(--d-act); }
.d-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--d-line); }
.d-tabs button { padding: 8px 10px; border: 0; background: none; font: inherit; color: var(--d-mute); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.d-tabs button.on { color: var(--d-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--d-act); }
.d-field { display: grid; gap: 6px; }
.d-field > span { font-weight: 600; font-size: 0.9em; }
.d-field input { height: var(--d-h); padding: 0 12px; border: 1px solid var(--d-line); border-radius: var(--d-rs); background: var(--d-bg); color: var(--d-ink); font: inherit; font-size: max(16px, var(--d-fs)); }
.d-field input:focus { outline: 2px solid var(--d-act); outline-offset: 1px; }
.d-field.bad input { border-color: var(--d-bad); }
.d-field.bad small { color: var(--d-bad); }
.d-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.d-btn { height: var(--d-h); padding: 0 var(--d-p); border: 0; border-radius: var(--d-rs); font: 600 1em/1 var(--d-font); cursor: pointer; transition: transform 140ms var(--ease), filter 200ms; }
.d-btn:active { transform: scale(0.97); }
.d-btn.p { background: var(--d-act); color: var(--d-on); }
.d-btn.s { background: transparent; color: var(--d-ink); box-shadow: inset 0 0 0 1px var(--d-line); }
.d-btn.g { background: transparent; color: var(--d-act); padding-inline: 8px; }
.d-row { display: flex; justify-content: space-between; align-items: center; }
.d-switch { width: 46px; height: 28px; padding: 2px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--d-ink) 18%, var(--d-su)); cursor: pointer; }
.d-switch i { display: block; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 320ms var(--spring); }
.d-switch.on { background: var(--d-act); }
.d-switch.on i { transform: translateX(18px); }
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.d-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: calc(var(--d-rs) * 0.6); font-size: 0.8em; font-weight: 600; white-space: nowrap; }
.d-badge.ok { background: color-mix(in srgb, var(--d-ok) 14%, var(--d-su)); color: var(--d-ok); }
.d-badge.warn { background: color-mix(in srgb, var(--d-warn) 16%, var(--d-su)); color: var(--d-warn); }
.d-badge.bad { background: color-mix(in srgb, var(--d-bad) 14%, var(--d-su)); color: var(--d-bad); }
.d-badge.info { background: color-mix(in srgb, var(--d-info) 14%, var(--d-su)); color: var(--d-info); }
.d-alert { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: var(--d-p); border-radius: var(--d-rs); background: color-mix(in srgb, var(--d-warn) 10%, var(--d-su)); box-shadow: inset 3px 0 0 var(--d-warn); }
.d-alert span { color: var(--d-mute); grid-column: 1; }
.d-alert .d-btn { grid-column: 2; grid-row: 1 / span 2; }
.d-table { display: grid; font-size: 0.92em; }
.d-table > div { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; align-items: center; padding: calc(var(--d-p) * 0.6) 0; border-bottom: 1px solid var(--d-line); }
.d-table > div:first-child { color: var(--d-mute); font-size: 0.85em; font-weight: 600; }
.d-table > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.d-table .d-badge { justify-self: start; }
.dsl-tokens { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.dsl-pipe { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dsl-pipe li { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; font: 500 12px/16px ui-monospace, "SF Mono", Menlo, monospace; animation: note-in 360ms var(--ease); }
.dsl-pipe .t-p { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.dsl-pipe .t-p i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.dsl-pipe .t-p em { margin-left: auto; font-style: normal; color: var(--muted); }
.dsl-pipe .t-a { display: none; }
.dsl-pipe .t-s { color: #7b61ff; } .dsl-pipe .t-c { color: #0f8a7a; text-align: right; }
.dsl-ab { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.dsl-json { margin: 0; max-height: 180px; overflow: auto; padding: 12px; border-radius: 12px; background: #1d1d1f; color: #e8e8ed; font: 11px/16px ui-monospace, "SF Mono", Menlo, monospace; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

/* ---------- Freelance ---------- */
.free { position: relative; background: linear-gradient(180deg, #fff, var(--tile) 30%, var(--tile)); }
.offers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.of { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), var(--e-soft); }
.of-dur { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--tile); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-2); }
.of h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.of-for { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.of ul { list-style: none; padding: 12px 0 0; margin: 0; display: grid; gap: 8px; border-top: 1px dashed var(--line); }
.of ul li { position: relative; padding-left: 20px; font-size: 14px; line-height: 20px; }
.of ul li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid #1a7f45; border-bottom: 2px solid #1a7f45; transform: rotate(-45deg); }
.of-cta { margin-top: 6px; justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease); }
.of-cta::after { content: "→"; margin-left: 8px; transition: transform 200ms var(--ease); }
.of-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .of-cta:hover::after { transform: translateX(3px); } }
.free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 64px; }
.flow4 { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.flow4 li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 0 14px; padding-bottom: 22px; }
.flow4 li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.flow4 li:last-child::before { display: none; }
.flow4 span { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.flow4 b { font-size: 16px; line-height: 22px; padding-top: 5px; }
.flow4 small { font-size: 14px; line-height: 20px; color: var(--muted); }
.fq { border-bottom: 1px solid var(--line); }
.fq:first-of-type { margin-top: 8px; }
.fq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 16px; line-height: 22px; font-weight: 600; cursor: pointer; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 300ms var(--spring); }
.fq[open] summary::after { transform: rotate(45deg); }
.fq p { padding: 0 0 16px; font-size: 15px; line-height: 23px; color: var(--ink-2); max-width: 520px; }
.fq[open] p { animation: note-in 320ms var(--ease); }

@media (max-width: 1100px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dsl-body { grid-template-columns: minmax(0, 1fr); }
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dsl { padding: 12px; border-radius: 22px; }
  .dsl-board { grid-template-columns: minmax(0, 1fr); }
  .d-alert { grid-template-columns: minmax(0, 1fr); } .d-alert .d-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .free-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .offers { grid-template-columns: minmax(0, 1fr); }
  .wk-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding: 2px 24px 6px; scrollbar-width: none; }
  .wk-filters::-webkit-scrollbar { display: none; }
  .wk-f { flex: none; }
  .wk-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wk { grid-template-rows: none; grid-template-columns: 112px minmax(0, 1fr); border-radius: 16px; }
  .wk-cover { aspect-ratio: auto; min-height: 132px; }
  .wk-phone { width: 60%; margin-left: -30%; top: 12%; border-radius: 14px; padding: 3px; }
  .wk-phone img { border-radius: 11px; }
  .wk-web { left: 10%; right: -20%; top: 16%; }
  .g-free b { font-size: 36px; }
  .g-dash .g-bar { width: 10px; } .g-ds { grid-template-columns: repeat(3, 20px); gap: 6px; } .g-ds .g-sw { height: 20px; border-radius: 6px; } .g-ds .g-btn, .g-ds .g-in { height: 14px; }
  .wk-info { padding: 12px 14px; }
  .wk-t { font-size: 15px; line-height: 20px; }
  .wk-d { font-size: 13px; line-height: 18px; }
  .wk-tags .wk-go { display: none; }
  .dsl-sys button { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .wk.wk-in, .dsl-pipe li { animation: none; } }
.wk-logo { position: absolute; left: 18px; top: 16px; height: 22px; width: auto; max-width: 110px; object-fit: contain; object-position: left; }
@media (max-width: 640px) { .wk-logo { left: 10px; top: 10px; height: 14px; max-width: 70px; } .g-bo, .g-dash, .g-ds, .g-app { padding-top: 18px; } }
.wk-web img.fit { object-fit: contain; object-position: center 20%; padding: 6px; background: #fff; }
.proto [data-id="list"] > .p-body { position: relative; }
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: var(--s-200); left: var(--s-200); right: var(--s-200); transform: none; justify-content: space-between; }
}

/* ---------- En bref : liste éditoriale, texte seul ---------- */
.pf { max-width: 760px; margin: 64px 0 0; border-top: 1px solid var(--line); }
.pf-r { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pf-r dt { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.pf-r dd { margin: 0; font-size: 17px; line-height: 24px; color: var(--ink-2); text-wrap: pretty; }
.pf-r strong { font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums; }
@media (max-width: 560px) {
  .pf { margin-top: 44px; }
  .pf-r { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .pf-r dt { font-size: 14px; line-height: 20px; }
  .pf-r dd { font-size: 16px; line-height: 23px; }
}


/* ---------- UX : règles ui-ux-pro-max, sans changer la DA ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* contraste AA partout (4,5:1) */
:root { --muted: #636368; --b-wafa: #00843a; --b-yakeey: #0c7a6c; }
footer, footer a, footer .caption-2 { color: #a1a1a6; }
.stage-proto .proto-tools .btn.xr-btn { color: #5a3fd6; }
.story-steps button { color: var(--muted); }
.pm-n[style*="8e8e93"], .pm-dot[style*="8e8e93"] { --c: #6e6e73 !important; }
.dsl-pipe .t-s { color: #5a3fd6; } .dsl-pipe .t-c { color: #0b6b5e; }
.d-badge.ok { color: color-mix(in srgb, var(--d-ok) 72%, var(--d-ink)); }
.d-badge.warn { color: color-mix(in srgb, var(--d-warn) 72%, var(--d-ink)); }
.d-badge.bad { color: color-mix(in srgb, var(--d-bad) 72%, var(--d-ink)); }
.d-badge.info { color: color-mix(in srgb, var(--d-info) 72%, var(--d-ink)); }
.d-av { color: color-mix(in srgb, var(--d-act) 70%, var(--d-ink)); }
.d-alert span { color: color-mix(in srgb, var(--d-mute) 70%, var(--d-ink)); }
/* cibles d'au moins 24 px, 44 px au doigt */
.nav-brand { padding-block: 6px; }
.back { display: inline-flex; align-items: center; min-height: 32px; }
.dot { background-clip: content-box; padding: 8px; box-sizing: content-box; }
.dots { gap: 0; }
/* mouvement : rien ne boucle sans fin */
.try-dot { animation-iteration-count: 4; }
/* filtres : la collection se replie au lieu d'être coupée */
@media (max-width: 640px) {
  .wk-filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .wk-d { font-size: 14px; line-height: 20px; }
  .pg-h { font-size: 11px; } .pg-corner { font-size: 10px; }
  .chip-role, .chip-hex { font-size: 10px; }
}
.pg-h { font-size: 11px; }
