@font-face { font-family: 'TikTok Sans'; font-weight: 500; src: url('/web/fonts/TikTokSans-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'TikTok Sans'; font-weight: 600; src: url('/web/fonts/TikTokSans-SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'TikTok Sans'; font-weight: 700; src: url('/web/fonts/TikTokSans-Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'TikTok Sans'; font-weight: 800; src: url('/web/fonts/TikTokSans-ExtraBold.ttf') format('truetype'); font-display: swap; }

/* Garitycs : l'interface reprend la police et le duo cyan / rose de TikTok, utilisés comme code de données
   (cyan = exploration / sans visage, rose = exploitation / avec personnage), sur un fond froid qui laisse les photos parler. */
:root {
  --paper: #ECEEF5; --panel: #FFFFFF; --ink: #171A33; --muted: #5F6586; --line: #D6D9E6;
  --cyan: #0BA8A3; --pink: #E3214F; --amber: #C98206; --green: #17955F;
  --bezel: #171A33; --shadow: 0 18px 40px -22px rgba(23, 26, 51, .45);
  --radius: 14px; font-family: 'TikTok Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--paper);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0E1020; --panel: #171A2D; --ink: #ECEEF8; --muted: #9CA1BF; --line: #2A2E47; --cyan: #25F4EE; --pink: #FE2C55; --amber: #F2B23A; --green: #3DD68C; --bezel: #000; --shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; margin-top: 1.2em; }
.pad { padding: 2rem; }
.muted, .quiet { color: var(--muted); }
.err { color: var(--pink); }
.warn { color: var(--amber); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- Coquille ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem; padding: .8rem clamp(1rem, 4vw, 3rem); background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; position: relative; }
.brand::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.tabs-main { display: flex; gap: .2rem; flex: 1; overflow-x: auto; }
.tabs-main a { text-decoration: none; padding: .45rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs-main a:hover { color: var(--ink); }
.tabs-main a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pilot { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; cursor: pointer; }
.pilot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.pilot.on { color: var(--ink); }
.pilot.on .dot { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.main { max-width: 1240px; margin: 0 auto; padding: 1.8rem clamp(1rem, 4vw, 3rem) 4rem; }
.main.wide { max-width: none; }

/* ---------- Aujourd'hui : la pellicule de téléphones ---------- */
.hero-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin-bottom: .2em; }
.hero-head p { color: var(--muted); max-width: 60ch; margin: 0 0 1.4rem; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 1.1rem; overflow-x: auto; padding: .4rem .2rem 1.6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.phone { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 0; }
.phone:disabled { cursor: default; opacity: 1; }
.phone .screen { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--bezel); border: 5px solid var(--bezel); box-shadow: var(--shadow); transition: transform .25s ease; }
.phone:not(:disabled):hover .screen { transform: translateY(-4px) rotate(-.6deg); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .blank { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--cyan) 22%, var(--bezel)), var(--bezel) 70%); }
.phone .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .18); }
.phone .progress::after { content: ''; display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.phone .caption { display: flex; flex-direction: column; gap: .1rem; padding: 0 .2rem; }
.phone .caption strong { font-size: 1rem; }
.phone .caption small { color: var(--muted); font-size: .82rem; }
.state { font-weight: 700; font-size: .85rem; }
.state.ready { color: var(--green); }
.state.work { color: var(--cyan); }
.state.alert { color: var(--pink); }
.state.idle { color: var(--muted); }
.mode { font-weight: 600; }
.mode.explore { color: var(--cyan) !important; }
.mode.exploit, .mode.optimise { color: var(--pink) !important; }
.phone .flag { position: absolute; top: 10px; right: 10px; background: var(--amber); color: #171A33; font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; }
.ring { width: 64px; height: 64px; }
.ring .track { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 3; }
.ring .val { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; }

.needs { border-left: 4px solid var(--amber); padding: .2rem 0 .2rem 1rem; margin: 0 0 2rem; }
.needs ul { margin: 0; padding-left: 1rem; }
.duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.duo .panel { margin: 0; }
.now { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.now li { display: grid; grid-template-columns: 54px 1fr auto; gap: .9rem; align-items: start; }
.now img { width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; }
.now b { display: block; }
.now span { color: var(--muted); font-size: .9rem; }
.now q { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted); quotes: none; border-left: 2px solid var(--cyan); padding-left: .6rem; max-height: 4.5em; overflow: hidden; }
.now time { color: var(--muted); font-size: .85rem; }
.pulse { width: 54px; aspect-ratio: 9 / 16; border-radius: 8px; background: linear-gradient(160deg, var(--cyan), var(--pink)); opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: breathe 2s ease-in-out infinite; } }
@keyframes breathe { 50% { opacity: .9; } }
.learn-top { margin: 0 0 .8rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.learn-top li { display: grid; grid-template-columns: 7rem 1fr auto; gap: .6rem; align-items: baseline; }
.learn-top span { color: var(--muted); font-size: .85rem; }
.learn-top em { font-style: normal; font-weight: 800; color: var(--pink); }

/* ---------- Graphiques ---------- */
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg text { fill: var(--muted); font: 600 11px 'TikTok Sans', sans-serif; }
.chart-svg .lab { fill: var(--ink); font-size: 12px; }
.chart-svg .ref { stroke: var(--line); stroke-dasharray: 4 4; }
.chart-svg .err { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.chart-svg .good { fill: var(--pink); }
.chart-svg .bad { fill: var(--muted); }
.chart-svg .mid { fill: var(--cyan); }
.chart-svg .line { fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.chart-svg .pt { fill: var(--pink); }
.c-with { fill: var(--pink); background: var(--pink); }
.c-faceless { fill: var(--cyan); background: var(--cyan); }
.legend { color: var(--muted); font-size: .85rem; display: flex; gap: 1rem; align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }
.lede { color: var(--muted); max-width: 70ch; }
.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.dims .panel { margin: 0; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: 14rem 1fr 2.5rem 9rem; gap: .7rem; align-items: center; }
.bars i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--pink)); width: var(--w); }
.bars em { color: var(--muted); font-style: normal; font-size: .85rem; }
@media (max-width: 700px) { .bars li { grid-template-columns: 1fr 2.5rem; } .bars i, .bars em { display: none; } }

/* ---------- Galerie ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
.tile { display: flex; flex-direction: column; gap: .5rem; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 0; }
.tile img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: var(--bezel); box-shadow: var(--shadow); }
.tile span { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile span b { display: block; color: var(--ink); }

/* ---------- Visionneuse ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 20, .82); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 2vh 2vw; }
.viewer-body { display: grid; grid-template-columns: auto minmax(260px, 380px); gap: 2rem; max-height: 96vh; align-items: center; }
.device { position: relative; height: min(88vh, 860px); aspect-ratio: 9 / 16; border-radius: 34px; border: 9px solid #000; background: #000; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.device-screen svg { width: 100%; height: 100%; display: block; }
.dots { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.dots button { flex: 1; height: 3px; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .35); padding: 0; cursor: pointer; }
.dots button.on { background: #fff; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 1.6rem; cursor: pointer; padding: 0; }
.nav:disabled { opacity: 0; }
.prev { left: 10px; } .next { right: 10px; }
.viewer-side { background: var(--panel); border-radius: var(--radius); padding: 1.4rem; max-height: 88vh; overflow: auto; }
.viewer-side .said { font-weight: 600; font-size: 1.05rem; }
.viewer-side .scene { color: var(--muted); font-size: .9rem; }
.viewer-actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
@media (max-width: 860px) { .viewer-body { grid-template-columns: 1fr; overflow: auto; } .device { height: 70vh; margin: 0 auto; } }

/* ---------- Atelier ---------- */
.tools { margin-bottom: 1.8rem; }
.tools > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.tools a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--panel); text-decoration: none; border: 1px solid transparent; }
.tools a:hover { border-color: var(--cyan); }
.tools a span { color: var(--muted); font-size: .88rem; }

/* ---------- Composants des pages d'outillage ---------- */
.card { background: var(--panel); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.card.app { text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.card.app:hover { border-color: var(--cyan); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.kpis div { background: var(--panel); border-radius: var(--radius); padding: .7rem; display: flex; flex-direction: column; }
.kpis b { font-size: 1.6rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: .5rem; }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: .5rem; min-width: 0; }
.field > span { font-size: .8rem; color: var(--muted); font-weight: 600; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=range]):not([type=color]), select, textarea { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; max-width: 100%; }
textarea { width: 100%; resize: vertical; }
button, .btn { background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: var(--pink); color: #fff; }
button.link { background: none; color: var(--ink); padding: 0 4px; text-decoration: underline; border-radius: 4px; }
button.sm, .sm { padding: 3px 10px; font-size: .8rem; }
.select select { border-radius: 999px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 99px; background: var(--line); font-weight: 700; }
.b-ready, .b-succeeded, .b-published, .b-confirmed, .b-online, .b-auto_publish_available, .b-connected, .b-planned, .b-exploitation { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.b-failed, .b-blocking, .b-conflict, .b-missing, .b-revoked, .b-high, .b-plan_invalid, .b-full_regeneration, .b-new_image_required { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); }
.b-waiting_for_agent, .b-warning, .b-in_review, .b-offline, .b-medium, .b-provided, .b-not_connected, .b-missing_credentials, .b-asset_reuse, .b-optimisation, .b-exploration { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); }
.chip { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; margin: 2px; font-size: .8rem; }
.toast { position: fixed; bottom: 1.2rem; right: 1.2rem; background: var(--ink); color: var(--paper); padding: .8rem 1.1rem; border-radius: 12px; max-width: 480px; z-index: 60; box-shadow: var(--shadow); }
.toast.err { background: var(--pink); color: #fff; }
.login { max-width: 340px; margin: 18vh auto; }
.spectra .spec { display: grid; grid-template-columns: 1fr 140px 3em 1.5em; gap: 6px; align-items: center; padding: 2px 0; }
pre.prompt { white-space: pre-wrap; background: var(--paper); padding: .8rem; border-radius: 10px; max-height: 340px; overflow: auto; font-size: .8rem; }
.errbox { border: 1px solid var(--pink); border-radius: 10px; padding: .6rem; margin-top: .5rem; }
dl dt { font-weight: 700; margin-top: .4rem; }
dl dd { margin: 0; }
.acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: .7rem; }
.tabs button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 4px 10px; }
.tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Éditeur */
.editor { display: flex; flex-direction: column; height: calc(100vh - 7rem); }
.ebar { display: flex; gap: .5rem; align-items: center; padding-bottom: .6rem; flex-wrap: wrap; }
.ebar .sp { flex: 1; }
.ecols { display: grid; grid-template-columns: 150px 1fr 380px; gap: 1rem; flex: 1; min-height: 0; }
.slides { overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.slides .col { display: flex; flex-direction: column; gap: 4px; }
.thumb { border: 2px solid transparent; border-radius: 10px; cursor: pointer; padding: 2px; }
.thumb.on { border-color: var(--pink); }
.mini svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.stage { overflow: auto; }
.canvas { position: relative; width: min(100%, 420px); margin: 0 auto 1rem; user-select: none; touch-action: none; }
.canvas .svg svg { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow); }
.hit { position: absolute; border: 1px dashed rgba(255, 255, 255, .35); cursor: move; }
.hit.on { border: 2px solid var(--cyan); }
.hit.over { border-color: var(--pink); background: rgba(227, 33, 79, .12); }
.handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--cyan); border-radius: 4px; cursor: nwse-resize; }
.ph-flag { position: absolute; left: 6px; right: 6px; bottom: 6px; background: var(--pink); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: .8rem; }
.inspector { overflow: auto; background: var(--panel); border-radius: var(--radius); padding: .9rem; }
img.pv { width: 60px; height: 106px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
img.pick { cursor: pointer; }
.sugg { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery.big figure { width: 180px; margin: 0; background: var(--panel); border-radius: 12px; padding: 6px; }
.gallery.big img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; }
.gallery.big figcaption { font-size: .75rem; color: var(--muted); }
.ph { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; margin-bottom: .6rem; background: var(--panel); }
.ph-missing, .ph-conflict { border-color: var(--pink); }
.versions li.on { font-weight: 700; }
ul.qc li.blocking { color: var(--pink); }
.prio-high { border-left: 4px solid var(--pink); }
.prio-medium { border-left: 4px solid var(--amber); }
.steps { display: flex; gap: 3px; margin-bottom: 3px; }
.steps span { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
@media (max-width: 900px) { .ecols { grid-template-columns: 1fr; } .editor { height: auto; } .topbar { gap: .8rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Habillage SaaS (31/10) : couleur, profondeur et mouvements discrets ---------- */
body { background:
  radial-gradient(60rem 26rem at 85% -6rem, color-mix(in srgb, var(--pink) 10%, transparent), transparent 70%),
  radial-gradient(50rem 24rem at 10% -8rem, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 70%),
  var(--paper) no-repeat; min-height: 100vh; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand::after { display: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative; overflow: hidden; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pink) 60%, transparent); }
.brand .mark::before, .brand .mark::after { content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%; top: 7.5px; }
.brand .mark::before { left: 4px; background: var(--cyan); mix-blend-mode: screen; }
.brand .mark::after { left: 10px; background: var(--pink); mix-blend-mode: screen; }
.tabs-main a { transition: background .15s, color .15s; }
.tabs-main a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tabs-main a[aria-current="page"] { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--ink) 70%, transparent); }

/* Indicateurs du jour */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.6rem; }
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { --k: var(--cyan); position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem 1rem; box-shadow: 0 1px 2px rgba(23, 26, 51, .04); }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--k); }
.kpi span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: .2rem; }
.kpi small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.kpi i { display: block; height: 6px; border-radius: 6px; margin-top: .6rem; background: color-mix(in srgb, var(--k) 15%, transparent); position: relative; overflow: hidden; }
.kpi i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 6px; background: var(--k); transition: width .6s ease; }
.k-green { --k: var(--green); } .k-cyan { --k: var(--cyan); } .k-pink { --k: var(--pink); } .k-amber { --k: var(--amber); }

/* Panneaux : profondeur légère et accent coloré au survol */
.panel { box-shadow: 0 1px 2px rgba(23, 26, 51, .04), 0 10px 30px -22px rgba(23, 26, 51, .35); transition: box-shadow .2s, border-color .2s; }
.panel:hover { border-color: color-mix(in srgb, var(--cyan) 35%, var(--line)); }
.panel > h2 { display: flex; align-items: center; gap: .5rem; }
.panel > h2::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--cyan), var(--pink)); flex: none; }

/* Téléphones : reflet coloré au survol */
.phone .screen { transition: transform .25s ease, box-shadow .25s ease; }
.phone:not(:disabled):hover .screen { box-shadow: 0 24px 46px -22px color-mix(in srgb, var(--pink) 55%, transparent), 0 0 0 2px color-mix(in srgb, var(--cyan) 45%, transparent); }

/* Boutons */
button, .btn { transition: transform .12s ease, box-shadow .2s ease, background .2s; }
button:not(:disabled):hover, .btn:hover { transform: translateY(-1px); }
button:not(.secondary):not(.pilot):not(:disabled):hover { box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ink) 70%, transparent); }

/* Entrée douce de chaque page */
@keyframes g-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.main > * { animation: g-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.main > *:nth-child(2) { animation-delay: .05s; } .main > *:nth-child(3) { animation-delay: .1s; } .main > *:nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) { .main > *, .kpi i::after { animation: none !important; transition: none !important; } }
