/* Boutique ASAP : clair, pleine largeur, une seule couleur d'accent. Pas de dégradés, pas de lueurs. Pages rendues par le serveur. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-latin-wght-normal.woff2) format('woff2'); }

:root {
  --bg: #ffffff; --alt: #f5f6f8; --stage: #eceff4; --line: #e2e5ec; --line2: #cfd4de;
  --text: #12151c; --muted: #5d6475; --accent: #2457ff; --accent-d: #1a43d1; --ok: #0a7d4f; --warm: #ff7a1a;
  --radius: 12px; --pad: clamp(16px, 3vw, 56px); --bar: 64px;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 14px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 Rubik, system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---- barre ---- */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 22px; padding: 0 var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand b { color: var(--accent); }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: #fff; font-weight: 800; font-size: 16px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--alt); }
.nav em { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.sbox { flex: 1; max-width: 480px; margin-left: auto; }
.sbox input { width: 100%; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--alt); color: var(--text); font: inherit; font-size: 15px; }
.sbox input:focus { outline: 0; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.15); }
.out { color: var(--muted); font-size: 14px; white-space: nowrap; }
.out:hover { color: var(--text); }

.wrap { width: 100%; padding: 0 var(--pad) 72px; }
.wrap.narrow { max-width: 760px; margin: 0 auto; padding-top: 40px; }
.muted { color: var(--muted); }
h2 { letter-spacing: -0.01em; }

/* ---- accueil ---- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 56px 0 40px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.hero2 h1 { margin: 0 0 16px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
.hero2 .lead { margin: 0 0 22px; color: var(--muted); font-size: 19px; max-width: 52ch; }
.checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stage { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; background: var(--stage); border: 1px solid var(--line); }
.hero-stage > img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.hero-stage canvas { position: absolute; inset: 0; }
.stage-cap { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.stage-cap span { color: var(--accent); font-weight: 600; }

/* ---- bandeau d'arguments ---- */
.trust { list-style: none; margin: 8px 0 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li { display: flex; flex-direction: column; gap: 2px; }
.trust strong { font-size: 17px; }
.trust span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---- types ---- */
.cats { margin-top: 40px; }
.cats h2, .sect, .shelf-head h2, .how h2, .faq h2 { margin: 0 0 16px; font-size: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
a.pill { display: inline-flex; gap: 8px; align-items: center; padding: 9px 18px; border: 1px solid var(--line2); border-radius: 999px; font-weight: 500; transition: border-color 0.12s, background 0.12s; }
a.pill em { font-style: normal; color: var(--muted); font-size: 13px; }
a.pill:hover { border-color: var(--text); background: var(--alt); }

/* ---- étagères ---- */
.shelf, .recent, .favs { margin-top: 44px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; }
.shelf-head a { color: var(--accent); font-size: 15px; font-weight: 500; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 290px); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }

/* ---- catalogue ---- */
.catalogue { margin-top: 56px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.side { position: sticky; top: calc(var(--bar) + 18px); max-height: calc(100vh - var(--bar) - 36px); overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.drawer > summary { list-style: none; cursor: pointer; }
.fg { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fg:first-of-type { padding-top: 0; }
.fg > summary { cursor: pointer; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; list-style: none; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fg > summary::-webkit-details-marker { display: none; }
.fg > summary::after { content: '+'; color: var(--muted); font-size: 18px; font-weight: 400; }
.fg[open] > summary::after { content: '–'; }
.fg ul { list-style: none; margin: 6px 0 0; padding: 0; }
.fg li a { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; color: var(--text); }
.fg li a::before { content: ''; width: 16px; height: 16px; border: 1.5px solid var(--line2); border-radius: 4px; background: #fff center / 12px no-repeat; transition: border-color 0.12s, background-color 0.12s; }
.fg li a:hover::before { border-color: var(--text); }
.fg li a[aria-current='true']::before { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fg li a[aria-current='true'] .lab { font-weight: 600; }
.fg em { font-style: normal; font-size: 13px; color: var(--muted); }
.clear { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--accent); font-weight: 500; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sortf label { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sortf select { background: #fff; color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fchip { border: 1px solid var(--text); border-radius: 999px; padding: 3px 13px; font-size: 14px; font-weight: 500; }
.fchip:hover { background: var(--alt); }

/* ---- cartes ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.grid.mini { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--text); box-shadow: 0 6px 0 var(--text); transform: translateY(-3px); }
.cover { display: block; }
.thumb { position: relative; aspect-ratio: 16 / 10; background: var(--stage); overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s; }
.thumb video.on { opacity: 1; }
.badge { position: absolute; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--text); }
.badge.kind { left: 10px; top: 10px; }
.badge.new { left: 10px; bottom: 10px; background: var(--warm); border-color: var(--warm); color: #fff; }
.badge.d3 { right: 10px; bottom: 10px; background: var(--text); border-color: var(--text); color: #fff; }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #b3b9c6; cursor: pointer; font-size: 16px; display: grid; place-items: center; transition: transform 0.12s, color 0.12s; z-index: 2; }
.fav:hover { transform: scale(1.1); color: #e0334f; }
.fav[aria-pressed='true'] { color: #e0334f; border-color: #e0334f; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.body p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--muted); font-size: 13px; min-height: 1.2em; flex: 1; }
.foot2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.aitag { font-size: 12px; padding: 1px 9px; border-radius: 6px; background: var(--alt); color: var(--muted); }
.price { font-weight: 800; color: var(--text); font-size: 18px; }
.price.free { color: var(--ok); }
.price.soon { color: var(--muted); font-weight: 600; font-size: 15px; }
.was { color: var(--muted); font-weight: 400; margin-right: 4px; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }
.empty.big { padding: 100px 0; }
.empty.big h2 { color: var(--text); margin: 0 0 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-size: 15px; color: var(--muted); }
.pager a { color: var(--accent); font-weight: 500; }

/* ---- boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; text-align: center; transition: background 0.12s, border-color 0.12s; }
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn.big { padding: 15px 28px; font-size: 17px; }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { background: var(--alt); border-color: var(--text); }
.buy .btn.big { width: 100%; }

/* ---- comment ça marche, FAQ ---- */
.how { margin-top: 72px; padding: 48px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); max-width: 40ch; }
.faq { padding: 8px 0 24px; max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }

/* ---- liste d'attente ---- */
.alert { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: 16px; background: var(--alt); border: 1px solid var(--line); }
.alert h2 { margin: 0 0 6px; font-size: 30px; }
.alert p { margin: 0; color: var(--muted); }
.wl { display: grid; grid-template-columns: 1fr auto; gap: 10px; position: relative; }
.wl input[type='email'] { height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--text); font: inherit; min-width: 0; }
.wl input[type='email']:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.15); }
.wl .btn { height: 48px; white-space: nowrap; }
.wl-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.wl-msg.ok { color: var(--ok); font-weight: 600; }
.wl-msg.err { color: #c8283d; }
.wl-priv { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.wl.done input, .wl.done .btn, .wl.done .wl-priv { display: none; }

/* ---- fiche produit ---- */
.crumb { padding: 20px 0 12px; font-size: 14px; color: var(--muted); }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.prod { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr); gap: 44px; align-items: start; }
.stage { position: relative; background: var(--stage); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.stage > img, .stage > video { width: 100%; height: 100%; object-fit: cover; }
.stage canvas { position: absolute; inset: 0; }
.stage .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.stage.full { position: fixed; inset: 0; z-index: 60; border-radius: 0; aspect-ratio: auto; border: 0; }
.cz { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 3; }
.cz > * { pointer-events: auto; }
.cz-box { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; max-width: 100%; }
.cz-box > b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.sw { display: flex; gap: 8px; flex-wrap: wrap; }
.sw button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line2); cursor: pointer; padding: 0; transition: transform 0.1s; }
.sw button:hover { transform: scale(1.15); }
.sw button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--text); }
.pills button { border: 1px solid var(--line2); background: #fff; color: var(--text); border-radius: 8px; padding: 4px 12px; font-size: 14px; cursor: pointer; margin: 0 6px 0 0; }
.pills button:hover { background: var(--alt); }
.pills button[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: #fff; }
.cz-foot { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; pointer-events: none; z-index: 3; }
.cz-foot .hint { color: var(--muted); font-size: 13px; background: #ffffffd9; padding: 2px 8px; border-radius: 6px; }
.cz-foot .pills { pointer-events: auto; display: flex; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.th { flex: 0 0 auto; width: 110px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--stage); cursor: pointer; position: relative; }
.th[aria-current='true'] { border-color: var(--text); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th .mk { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px #0008; }
.buycol { position: sticky; top: calc(var(--bar) + 18px); }
.buycol h1 { margin: 0 0 6px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.02em; }
.tagline { color: var(--muted); margin: 0 0 18px; }
.buy { border: 2px solid var(--text); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.buy .price { display: block; font-size: 30px; margin-bottom: 12px; }
.buy .price.soon { font-size: 16px; }
.buy small { display: block; color: var(--muted); margin-top: 8px; font-size: 13px; text-align: center; }
.buy #alerte-fiche { margin-top: 6px; }
.wl-h { display: block; margin-bottom: 8px; font-size: 16px; }
.buy .note { margin-top: 10px; }
.buy .wl { grid-template-columns: 1fr; }
.gets { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.gets li { position: relative; padding-left: 28px; }
.gets li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.gets strong { font-size: 15px; font-weight: 600; }
.gets small { color: var(--muted); font-size: 14px; margin-left: 6px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; margin: 0 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 13px; border: 1px solid var(--line2); border-radius: 6px; padding: 2px 10px; color: var(--muted); }
.tags a:hover { color: var(--text); border-color: var(--text); }
.sh { font-size: 14px; margin: 22px 0 8px; color: var(--muted); font-weight: 600; }
.mini { display: block; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; margin-bottom: 6px; font-weight: 500; }
.mini:hover { border-color: var(--text); background: var(--alt); }
.desc h2, .rel h2, .integ h2 { font-size: 24px; margin: 36px 0 12px; }
.desc p { color: #2d3340; max-width: 72ch; font-size: 17px; }
.inc { padding-left: 20px; color: #2d3340; font-size: 17px; }
.files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: ui-monospace, Consolas, monospace; max-height: 340px; overflow-y: auto; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.files em { font-style: normal; color: var(--muted); white-space: nowrap; }
.integ { margin-top: 12px; }
.eng { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; padding: 0 16px; }
.eng summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.eng summary::-webkit-details-marker { display: none; }
.eng summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.eng[open] summary::after { content: '–'; }
.eng ol { margin: 0 0 12px; padding-left: 22px; color: #2d3340; }
.eng li { margin-bottom: 4px; }
.code { position: relative; margin: 0 0 16px; }
.code pre { margin: 0; padding: 16px; background: #12151c; color: #e8ebf3; border-radius: 10px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.code .btn { position: absolute; right: 10px; top: 10px; }
.rel { margin-top: 56px; }
.stickybuy { display: none; }
.foot { border-top: 1px solid var(--line); padding: 28px var(--pad); text-align: center; color: var(--muted); font-size: 14px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- écrans moyens et petits ---- */
@media (max-width: 1100px) {
  .hero2 { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .alert { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .drawer[open] .sidebody { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
  .prod { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .buycol { position: static; }
  .stickybuy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line2); }
  .stickybuy div { display: flex; flex-direction: column; min-width: 0; }
  .stickybuy strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product .foot { padding-bottom: 90px; }
}
@media (min-width: 901px) { .drawer .sidebody { display: block !important; } .drawer > summary { display: none !important; } }
@media (max-width: 560px) {
  .out { display: none; }
  .hero2 h1 { font-size: 40px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .body { padding: 10px 12px 12px; } .body h3 { font-size: 15px; } .body p { display: none; }
  .wl { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .row { grid-auto-columns: 78%; }
  .stage { aspect-ratio: 4 / 5; }
  .cz-box .pills { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cz { gap: 6px; } .cz-foot .hint { display: none; } .cz-foot { justify-content: flex-end; }
  .alert { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } html { scroll-behavior: auto; } }

/* ---- accueil marketing : bandeau, chips, mise en avant, étagères ---- */
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 18px 0 0; padding: 12px 18px; background: var(--text); color: #fff; border-radius: 12px; font-weight: 500; }
.promo .wl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.promo .wl input[type='email'] { height: 40px; width: 280px; max-width: 70vw; border-color: transparent; }
.promo .wl .btn { height: 40px; background: #fff; color: var(--text); border-color: #fff; }
.promo .wl .btn:hover { background: var(--stage); }
.promo .wl-priv, .promo .hp { display: none; }
.promo .wl-msg { margin: 0; color: #9be7c4; }
.promo .wl-msg.err { color: #ffb3bd; }
.topchips { margin: 20px 0 4px; }
.spot { margin-top: 26px; }
.spot-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr; }
.spot.n1 .spot-grid { grid-template-columns: 1fr; }
.spot.n2 .spot-grid { grid-template-columns: 1fr 1fr; }
.spot.n3 .spot-grid .card:first-child { grid-row: span 2; }
.spot.n3 .card:first-child .body h3 { font-size: 26px; }
.spot.n3 .card:first-child .body p { font-size: 17px; -webkit-line-clamp: 3; }
.shelf { margin-top: 48px; }
.about-hero { padding: 56px 0 28px; max-width: 920px; }
.about-hero h1 { margin: 0 0 16px; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.about-hero .lead { margin: 0 0 22px; color: var(--muted); font-size: 19px; max-width: 60ch; }
@media (max-width: 900px) { .spot-grid, .spot.n2 .spot-grid { grid-template-columns: 1fr; } .spot.n3 .spot-grid .card:first-child { grid-row: auto; } .promo .wl { width: 100%; } .promo .wl input[type='email'] { flex: 1; width: auto; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spot.n3 .card:first-child .thumb { aspect-ratio: auto; flex: 1; min-height: 280px; } .spot.n3 .card:first-child .thumb img { position: absolute; inset: 0; } @media (max-width: 900px) { .spot.n3 .card:first-child .thumb { aspect-ratio: 16 / 10; flex: none; min-height: 0; } }

/* ---- compte, studio, éditeur ---- */
.acc-link { font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 10px; white-space: nowrap; }
.acc-link:hover { border-color: var(--text); background: var(--alt); }
.claim { display: grid; gap: 10px; }
.claim .btn { width: 100%; }
.claim-owned { margin: 0; font-weight: 700; color: var(--ok); }
.claim-owned::before { content: '✓ '; }
.acc h1 { margin: 0 0 6px; font-size: 34px; }
.acc-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.acc-form { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.acc-form h2 { margin: 0; font-size: 22px; }
.acc-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.acc-form input { height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; font: inherit; font-weight: 400; }
.acc-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.15); }
.acc-msg { margin: 0; min-height: 1.2em; color: #c8283d; font-size: 14px; }
.lib-head h1 { margin: 24px 0 4px; font-size: 34px; }
.lib-item { margin-top: 24px; }
.lib-top { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.lib-top img { width: 160px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--stage); }
.lib-top h2 { margin: 0; font-size: 22px; }
.lib-top p { margin: 0; }
.lib-top .btn { margin-left: auto; }
.lib-item .files li { align-items: center; }
.lib-item .files .acts { display: flex; gap: 6px; }
.ed-wrap { padding-bottom: 40px; }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ed-stage { position: relative; aspect-ratio: 16 / 11; background: var(--stage); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ed-stage canvas { position: absolute; inset: 0; }
.ed-stage .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.ed-panel { display: grid; gap: 8px; }
.ed-panel h3 { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ed-field { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.ed-field select { height: 42px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.ed-sliders { display: grid; gap: 6px; }
.ed-sliders label { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; font-size: 14px; }
.ed-sliders output { font-size: 12px; color: var(--muted); text-align: right; }
.ed-sliders input[type='range'] { width: 100%; accent-color: var(--accent); }
.ed-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ed-row .btn[aria-pressed='true'] { background: var(--text); color: #fff; border-color: var(--text); }
.ed-save { display: flex; gap: 8px; }
.ed-save input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: inherit; }
.vlist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.vlist li { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vlist .vopen { flex: 1; text-align: left; background: #fff; border: 0; padding: 8px 12px; cursor: pointer; font-weight: 500; }
.vlist .vopen:hover { background: var(--alt); }
.vlist .vdel { border: 0; border-left: 1px solid var(--line); background: #fff; width: 38px; cursor: pointer; font-size: 18px; color: var(--muted); }
.vlist .vdel:hover { color: #c8283d; }
.ed-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--ok); }
.ed-dl { display: grid; gap: 8px; margin-top: 8px; }
.ed-lock { font-size: 13px; }
@media (max-width: 900px) { .ed { grid-template-columns: minmax(0, 1fr); } .acc-forms { grid-template-columns: 1fr; } .lib-top .btn { margin-left: 0; } .acc-link { padding: 6px 10px; font-size: 14px; } }
.spot-grid { grid-template-columns: repeat(3, 1fr); } .spot.n2 .spot-grid { grid-template-columns: 1fr 1fr; } .spot.n1 .spot-grid { grid-template-columns: 1fr; } .spot.n3 .spot-grid .card:first-child { grid-row: auto; } .spot.n3 .card:first-child .thumb { aspect-ratio: 16 / 10; flex: none; min-height: 0; } .spot.n3 .card:first-child .body h3 { font-size: 18px; } .spot.n3 .card:first-child .body p { font-size: 15px; -webkit-line-clamp: 2; }

/* ---- navigation latérale (thèmes + filtres), sur toute la page ---- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 18px; }
.content { min-width: 0; }
.shell .catalogue { margin-top: 48px; }
.side-all { display: block; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line2); border-radius: 10px; font-weight: 700; }
.side-all:hover { border-color: var(--text); }
.side-all[aria-current='true'] { background: var(--text); color: #fff; border-color: var(--text); }
.fg.themes li a { font-weight: 500; }
.fg li.soon, .fg li.off { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; color: #9aa1b0; cursor: default; }
.fg li.soon::before, .fg li.off::before { content: ''; width: 16px; height: 16px; border: 1.5px dashed var(--line2); border-radius: 4px; }
.fg li.soon em { font-size: 12px; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* ---- contenu du pack : miniatures de toutes les pièces ---- */
.pieces h2 { margin-bottom: 4px; }
.pieces-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.pieces-bar .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.pieces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.piece { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: default; }
[data-pickable] .piece { cursor: pointer; }
.piece img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--stage); }
.piece span { display: block; padding: 6px 8px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piece input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.piece:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.piece.have::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--ok); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; }
.claim-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- Mon studio : espace de travail (bibliothèque | visionneuse | outils) ---- */
.studio .foot { display: none; }
.studio main { display: flex; }
.ws { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; width: 100%; height: calc(100vh - var(--bar)); min-height: 560px; }
.ws-lib { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--alt); }
.ws-lib-head { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.ws-lib-head input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; }
.ws-packs { overflow-y: auto; padding: 10px; display: grid; gap: 10px; align-content: start; }
.pk { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pk > summary { cursor: pointer; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; list-style: none; }
.pk > summary::-webkit-details-marker { display: none; }
.pk > summary em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted); }
.pk-zip { display: block; padding: 0 12px 8px; font-size: 13px; color: var(--accent); font-weight: 500; }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 8px 10px; }
.wp { padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--stage); cursor: pointer; overflow: hidden; display: block; text-align: center; }
.wp:hover { border-color: var(--line2); }
.wp[aria-pressed='true'] { border-color: var(--accent); }
.wp img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.wp span { display: block; font-size: 11px; padding: 2px 3px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ws-bar { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ws-bar strong { font-size: 18px; }
.ws-stage { position: relative; flex: 1; min-height: 0; background: var(--stage); }
.ws-stage canvas { position: absolute; inset: 0; }
.ws-stage.picking canvas { cursor: crosshair; }
.ws-stage .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.ws-panel { overflow-y: auto; border-left: 1px solid var(--line); padding: 8px 14px 24px; background: #fff; }
.ws-sec { border-bottom: 1px solid var(--line); padding: 4px 0; }
.ws-sec > summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; }
.ws-sec > summary::-webkit-details-marker { display: none; }
.ws-sec > summary::after { content: '+'; color: var(--muted); }
.ws-sec[open] > summary::after { content: '–'; }
.ws-sec-body { display: grid; gap: 10px; padding-bottom: 12px; }
.ws-sec h4 { margin: 4px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ws .small { font-size: 13px; margin: 0; }
.ws .pad { padding: 8px; }
.pk-sw { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line2); vertical-align: middle; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.ed-inline { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; font-size: 14px; }
.ed-inline input[type='color'] { width: 100%; height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 2px; background: #fff; }
.ed-inline input[type='range'] { width: 100%; accent-color: var(--accent); }
.replist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.replist li { display: flex; align-items: center; gap: 8px; }
.replist .vdel { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; width: 28px; height: 28px; background: #fff; cursor: pointer; }
.ws-over { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; text-align: center; z-index: 5; }
.ws-over h2 { margin: 0 0 6px; }
.ws-over > div { max-width: 420px; padding: 24px; }
.ws .btn[aria-pressed='true'] { background: var(--text); color: #fff; border-color: var(--text); }
@media (max-width: 1100px) { .ws { grid-template-columns: 240px minmax(0, 1fr) 320px; } }
@media (max-width: 860px) {
  .ws { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ws-lib { border-right: 0; border-bottom: 1px solid var(--line); max-height: 280px; }
  .ws-main { height: 60vh; }
  .ws-panel { border-left: 0; }
}

.dlcount { margin: -6px 0 10px; font-size: 14px; color: var(--muted); font-weight: 500; }
.dlcount::before { content: '⬇ '; }

/* objets à l'unité */
.card[data-kind="item"] .thumb img { object-fit: contain; }
.itemsband { margin: 28px 0; padding: 28px; border: 1px solid var(--line, #e3e6ee); border-radius: 18px; background: #fff; display: grid; gap: 22px; }
.itemsband h2 { font-size: clamp(22px, 3vw, 32px); margin: 6px 0 8px; }
.itemsband p { color: #4a5160; max-width: 62ch; margin: 0 0 14px; }
.ib-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.ib-form input[type="search"] { flex: 1 1 220px; min-height: 48px; padding: 0 16px; font-size: 17px; border: 2px solid #cfd5e3; border-radius: 12px; }
.ib-form input[type="search"]:focus { border-color: #4a63e7; outline: none; }
.ib-try { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ib-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; }
.ib-row .card .body p { display: none; }
.pill { display: inline-block; border: 1px solid var(--line2); background: #fff; color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; }
.pill:hover { border-color: #4a63e7; color: #4a63e7; }
.card[data-kind="item"] .body p, .card[data-kind="item"] .badge.new { display: none; }
.card[data-kind="item"] .thumb { background: linear-gradient(#f7f8fc, #e7eaf3); }

/* téléchargement gratuit : étape publicitaire */
.dlmodal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 28, 0.55); display: grid; place-items: center; padding: 16px; }
.dlcard { position: relative; background: #fff; border-radius: 18px; max-width: 520px; width: 100%; padding: 28px 24px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); display: grid; gap: 14px; }
.dlcard h2 { margin: 0; font-size: 22px; padding-right: 32px; }
.dlclose { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #555; }
.adslot:empty { display: none; }
.adslot { min-height: 100px; }
.dlwait { margin: 0; font-weight: 600; color: #4a63e7; }
.dlstudio { background: var(--alt, #f5f6f8); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.dlstudio p { margin: 0; color: #4a5160; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: #14161d; color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 280px; font-size: 14px; }
.consent a { color: #9db0ff; }
.consent .btn.ghost { color: #fff; border-color: #555; }
.consent .btn.ghost { background: transparent; color: #fff; border-color: #6b7280; }

/* ---- studio v3 : barre d'outils, onglets, parties, dimensions ---- */
.ws-main { position: relative; }
.ws-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.tb { display: inline-grid; place-items: center; min-width: 32px; height: 34px; padding: 0 5px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.tb:hover:not(:disabled) { background: var(--alt); border-color: var(--line2); }
.tb[aria-pressed='true'] { background: var(--text); color: #fff; }
.tb:disabled { opacity: 0.35; cursor: default; }
.tb.wide { font-size: 14px; font-weight: 600; padding: 0 12px; border-color: var(--line2); }
.tb.wide[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); }
.tb-i { pointer-events: none; }
.sep { width: 1px; height: 22px; background: var(--line2); margin: 0 2px; }
.ws-stage { overflow: hidden; touch-action: none; }
.ws-stage .ws-status { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); font-size: 13px; color: var(--text); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.ws-main > .ws-status { display: none; }
.tabs { display: flex; gap: 2px; margin: 8px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs { scrollbar-width: none; }
.tabs button { flex: 1 1 auto; padding: 9px 6px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected='true'] { color: var(--accent); border-bottom-color: var(--accent); }
.tabbody { display: grid; gap: 14px; padding: 10px 0 8px; align-content: start; }
.ws-sec2 { display: grid; gap: 9px; }
.ws-sec2 > h4, .adv h4 { margin: 2px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.adv { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; }
.adv > summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 0; }
.adv[open] > summary { margin-bottom: 8px; }
.rr { display: grid; grid-template-columns: 112px 1fr 46px; gap: 8px; align-items: center; font-size: 14px; }
.rr output { font-size: 12px; color: var(--muted); text-align: right; }
.rr input[type='range'] { width: 100%; accent-color: var(--accent); }
.outl { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow-y: auto; background: #fff; }
.outl li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.outl li:hover { background: var(--alt); }
.outl li[aria-selected='true'] { background: #e7edff; outline: 1px solid var(--accent); }
.outl li.off .ol-name { color: var(--muted); text-decoration: line-through; }
.outl .ol-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outl em { font-style: normal; font-size: 12px; color: var(--muted); }
.eye { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 15px; color: var(--accent); }
.eye[aria-pressed='false'] { color: var(--muted); }
.eye:hover { background: var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line2); cursor: pointer; padding: 0; }
.swatches button:hover { transform: scale(1.12); }
.pals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pal { height: 28px; border-radius: 8px; border: 1px solid var(--line2); cursor: pointer; padding: 0; }
.pal:hover { box-shadow: 0 0 0 2px var(--accent); }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dim { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.dim em { font-style: normal; }
.nb, .ws-panel input[type='text'], .ws-panel select { height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: #fff; color: var(--text); min-width: 0; width: 100%; }
.ws-panel .ed-inline select { width: 100%; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.ax { width: 18px; font-size: 13px; }
.warn { background: #fff7e6; border: 1px solid #f3d9a0; color: #7a4d00; border-radius: 10px; padding: 8px 10px; margin: 0; }
.small { font-size: 13px; }
.pad { padding: 12px 4px; }
.ed-msg[data-kind='err'] { color: #c0262d; }
.ws .btn.small[disabled] { opacity: 0.5; cursor: wait; }
.ws-help { border: 1px solid var(--line2); border-radius: 16px; padding: 22px 26px; max-width: 520px; width: calc(100% - 32px); }
.ws-help::backdrop { background: rgba(18, 21, 28, 0.45); }
.ws-help h2 { margin: 0 0 6px; }
.ws-help table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.ws-help td { padding: 5px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ws-help td:first-child { width: 42%; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--alt); font: 600 12px/1.5 system-ui, sans-serif; text-align: center; }
.ws:fullscreen { height: 100vh; background: #fff; }
@media (max-width: 860px) {
  .ws-tools { overflow-x: auto; flex-wrap: nowrap; }
  .tb { flex: 0 0 auto; min-width: 40px; height: 40px; }
  .ws-main { height: 62vh; }
  .ws-panel { max-height: none; }
  .ws-stage .ws-status { font-size: 12px; }
  .dims { grid-template-columns: 1fr 1fr 1fr; }
}
.fmore { margin-top: 4px; }
.fmore > summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 0; list-style: none; }
.fmore > summary::-webkit-details-marker { display: none; }
.fmore > summary:hover { color: var(--ink, inherit); text-decoration: underline; }

/* studio : croix de retrait de l'inventaire */
.wp-wrap { position: relative; }
.wp-wrap .wp { width: 100%; }
.wp-x { position: absolute; top: 3px; right: 3px; min-width: 22px; height: 22px; padding: 0 6px; border: 0; border-radius: 11px; background: rgba(20,24,34,.72); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.wp-wrap:hover .wp-x, .wp-x:focus-visible, .wp-x.ask { opacity: 1; }
.wp-x.ask { background: #c62828; font-size: 11px; }
.pk > summary { position: relative; }
.pk > summary .wp-x { position: static; margin-left: 6px; opacity: .55; }
.pk > summary:hover .wp-x, .pk > summary .wp-x.ask { opacity: 1; }
@media (hover: none) { .wp-x { opacity: .85; } }
.content.busy { opacity: .55; transition: opacity .15s; pointer-events: none; }
/* onglets Packs / Objets et barre d'univers (thèmes) au-dessus de la liste */
.kindtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.kindtabs a { padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; }
.kindtabs a em, .tchip em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 4px; }
.kindtabs a:hover, .tchip:hover { border-color: var(--text); }
.kindtabs a[aria-current='true'] { background: var(--text); color: #fff; border-color: var(--text); }
.kindtabs a[aria-current='true'] em { color: #cfd4df; }
.themebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.tb-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-right: 4px; }
.tchip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #f7f8fb; }
.tchip[aria-current='true'] { background: #1f3dff; border-color: #1f3dff; color: #fff; }
.tchip[aria-current='true'] em { color: #dbe3ff; }
@media (max-width: 700px) { .kindtabs, .themebar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .kindtabs a, .tchip { white-space: nowrap; } }

/* =====================================================================================================================
   v3 : accueil vivant, recherche instantanée, cartes en 3D, fiches objets. Mêmes variables que le reste (une seule couleur d'accent).
   ===================================================================================================================== */
:root { --shadow: 0 18px 50px rgba(18, 21, 28, 0.14); --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---- chargement : un squelette qui respire derrière chaque miniature, remplacé quand l'image arrive ---- */
.thumb, .uthumbs img, .sthumbs img, .h3-picks img { background: linear-gradient(100deg, #eceff4 30%, #f7f8fb 50%, #eceff4 70%) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .thumb, .uthumbs img, .sthumbs img, .h3-picks img { animation: none; } }

/* ---- recherche instantanée ---- */
.sbox { position: relative; }
.sbox .sk { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; font: 500 12px/1 Rubik, sans-serif; color: var(--muted); background: #fff; pointer-events: none; }
.sbox input:focus ~ .sk, .sbox input:not(:placeholder-shown) ~ .sk { display: none; }
.sbox .sgo { display: none; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: #fff; border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; max-height: min(70vh, 560px); overflow-y: auto; min-width: min(420px, 92vw); text-align: left; }
.sg-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sg-x { border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; text-transform: none; letter-spacing: 0; padding: 2px 6px; border-radius: 6px; }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; min-height: 52px; }
.sg-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #eef0f6; flex: none; }
.sg-ic { width: 44px; text-align: center; color: var(--muted); font-size: 18px; flex: none; }
.sg-t { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-s { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sg-row:hover, .sg-row.act, .sg-pill.act { background: #eef2ff; }
.sg-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 8px; }
.sg-pill { padding: 6px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; background: #fff; }
.sg-pill:hover, .sg-pill.act { border-color: var(--accent); color: var(--accent); }
.sg-did { margin: 4px 10px 2px; padding: 8px 12px; border-radius: 10px; background: #fff6e8; color: #8a4b00; font-size: 14px; }
.sg-none { padding: 14px 12px; color: var(--muted); }
.sg-all { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---- héros ---- */
.home3 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px) 0 28px; }
.home3 h1 { margin: 0 0 14px; font-size: clamp(36px, 5vw, 66px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.home3 .lead { margin: 0 0 22px; color: var(--muted); font-size: 18px; max-width: 54ch; }
.h3-search { max-width: 560px; margin-left: 0; flex: none; }
.h3-search input { height: 56px; border-radius: 14px; padding: 0 64px 0 20px; font-size: 17px; background: #fff; border: 2px solid var(--text); }
.h3-search input:focus { border-color: var(--accent); }
.h3-search .sgo { display: grid; place-items: center; position: absolute; right: 7px; top: 7px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 22px; cursor: pointer; }
.h3-search .sgo:hover { background: var(--accent-d); }
.h3-search .sk { right: 62px; }
.h3-try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 26px; color: var(--muted); font-size: 14px; }
.h3-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.h3-stats li { display: flex; flex-direction: column; }
.h3-stats b { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.h3-stats span { font-size: 13px; color: var(--muted); }
.h3-stage { position: relative; aspect-ratio: 16 / 12; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #fff 0%, #e9edf6 70%); border: 1px solid var(--line); }
.h3-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.6s; }
.h3-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
.h3-canvas.on { opacity: 1; }
.h3-canvas canvas { cursor: grab; }
.h3-badge { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; z-index: 2; }
.h3-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.h3-cap strong { font-size: 17px; }
.h3-cap span { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.h3-picks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.h3-picks button { padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 8 / 5; transition: border-color 0.15s, transform 0.15s var(--ease); }
.h3-picks button:hover { transform: translateY(-2px); border-color: var(--line2); }
.h3-picks button[aria-pressed="true"] { border-color: var(--accent); }
.h3-picks img { width: 100%; height: 100%; object-fit: contain; }

/* ---- univers et séries ---- */
.sec-head { margin: 36px 0 16px; }
.sec-head h2 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; }
.sec-head p { margin: 0; color: var(--muted); }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; }
.ucard { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s; }
.ucard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--u); }
.ucard:hover { transform: translateY(-4px); border-color: var(--u); box-shadow: 0 12px 28px -12px var(--u); }
.uthumbs { display: flex; height: 74px; margin: 6px 0 10px; }
.uthumbs img { width: 33.3%; height: 100%; object-fit: contain; border-radius: 10px; margin-left: -14px; background-color: color-mix(in srgb, var(--u) 12%, #fff); border: 2px solid #fff; transition: transform 0.2s var(--ease); }
.uthumbs img:first-child { margin-left: 0; }
.ucard:hover .uthumbs img:nth-child(1) { transform: translateY(-4px) rotate(-3deg); } .ucard:hover .uthumbs img:nth-child(3) { transform: translateY(-4px) rotate(3deg); }
.ucard strong { font-size: 17px; } .ucard em { font-style: normal; color: var(--muted); font-size: 13px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.scard { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s; }
.scard:hover { transform: translateY(-3px); border-color: var(--text); box-shadow: 0 6px 0 var(--text); }
.sthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.sthumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; }
.scard strong { font-size: 16px; } .scard em { font-style: normal; color: var(--muted); font-size: 13px; }

/* ---- cartes : 3D au survol, badge « dans votre studio » ---- */
.hv3 { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s; pointer-events: none; background: linear-gradient(#f7f8fc, #e7eaf3); }
.hv3.on { opacity: 1; }
.hv3 canvas { width: 100% !important; height: 100% !important; }
.card.hv3-load .thumb::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge.own { position: absolute; left: 10px; bottom: 10px; top: auto; right: auto; background: var(--ok); color: #fff; z-index: 3; }

/* ---- fiche objet ---- */
.devrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.devrow .btn:first-child:not(.small) { flex: 1 1 100%; }
.devrow .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.series-rel { margin-bottom: 8px; }
.empty.nomatch { text-align: center; padding: 36px 16px; }
.empty.nomatch .did { font-size: 18px; } .empty.nomatch .did a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.empty.nomatch .ib-try { justify-content: center; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }

@media (max-width: 1000px) { .home3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .home3 { padding-top: 16px; } .home3 .lead { font-size: 16px; }
  .h3-search input { height: 52px; } .h3-stats { gap: 6px 22px; } .h3-stats b { font-size: 22px; }
  .h3-picks { grid-template-columns: repeat(3, 1fr); } .h3-cap strong { font-size: 15px; }
  .wgrid { grid-template-columns: repeat(2, 1fr); } .sgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .sthumbs { grid-template-columns: repeat(2, 1fr); }
  .sug { position: fixed; left: 8px; right: 8px; top: 64px; min-width: 0; max-height: 72vh; }
  .sbox .sk { display: none; }
}
.sg-s { max-width: 36%; overflow: hidden; text-overflow: ellipsis; } .sg-t { min-width: 40%; }

/* studio : barre de modes (Objet · Scène · Animer · Sons · Générer · Interface) et mode Animer */
.modebar { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.modebar button { appearance: none; border: 0; background: none; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted, #667); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; border-radius: 8px 8px 0 0; }
.modebar button:hover { background: var(--stage); color: var(--text, #111); }
.modebar button[aria-selected='true'] { color: var(--accent); border-bottom-color: var(--accent); }
.modebar button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.is-anim .tb-tool { display: none; }
.a-target { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 0 0 4px; }
.tl { position: relative; margin: 6px 0 2px; }
.tl input[type='range'] { width: 100%; margin: 0; }
.tl-keys { position: relative; height: 18px; margin: 2px 8px 0; }
.tl-key { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; padding: 0; border: 0; background: #ffb000; transform: rotate(45deg); border-radius: 2px; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.tl-key:hover, .tl-key:focus-visible { background: #ff7a00; outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-bar { align-items: center; flex-wrap: wrap; }
.tl-bar .btn { min-width: 34px; }
.tl-time { font-variant-numeric: tabular-nums; font-size: 12px; margin-left: auto; color: var(--muted, #667); }
.tl-play[aria-pressed='true'] { background: var(--accent); color: #fff; }
.mode-anim select, .mode-anim input[type='text'], .mode-anim input[type='number'] { max-width: 100%; }
@media (max-width: 760px) { .modebar button { padding: 8px 10px; } }
.sbox input[type=search] { padding-right: 44px; }
.thumb .badge { z-index: 4; } .hv3 { z-index: 1; }
@media (max-width: 640px) {
  .spot .spot-grid, .spot.n2 .spot-grid, .spot.n3 .spot-grid { grid-template-columns: 1fr !important; }
  .bar .sbox { min-width: 0; flex: 1 1 0; } .bar .sbox input { padding-left: 12px; }
  .bar { gap: 10px; } .bar .out { display: none; }
}
@media (max-width: 640px) {
  .brand { font-size: 0; gap: 0; } .brand .logo { font-size: 16px; }
  body:has(.home3) .bar .sbox { display: none; } body:has(.home3) .brand { font-size: 19px; gap: 10px; }
  .bar .acc-link { margin-left: auto; }
}
/* le squelette de chargement reste fixe (une animation infinie sur des centaines de vignettes coûte du processeur pour rien) */
.thumb, .uthumbs img, .sthumbs img, .h3-picks img { animation: none; background-position: 0 0; }

.engrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.engrow .eng-t { font-size: 13px; color: var(--muted); margin-right: 2px; }

.space-link { font-weight: 600; font-size: 15px; white-space: nowrap; }
.space-link:hover { color: var(--accent); }
@media (max-width: 640px) { .space-link { display: none; } }

/* en-tête : une seule ligne, quelle que soit la largeur (les liens secondaires disparaissent d'abord) */
.bar { gap: 16px; }
.nav { display: flex; gap: 16px; min-width: 0; flex-wrap: nowrap; }
.nav a, .space-link, .acc-link, .out { white-space: nowrap; }
.bar .sbox { min-width: 160px; }
@media (max-width: 1500px) { .bar .out { display: none; } }
@media (max-width: 1400px) { .nav a[href$="kind=bundle#catalogue"] { display: none; } }
@media (max-width: 1250px) { .nav a[href$="/assistant"], .nav a[href$="/developers"] { display: none; } }
@media (max-width: 1100px) { .nav a[href$="/about"] { display: none; } .space-link { display: none; } }
/* en-tête connecté : le nom d'utilisateur peut être long ; rien ne doit déborder ni passer sous la recherche */
.nav { flex: 0 1 auto; overflow: hidden; }
.bar > .brand, .bar > .acc-link, .bar > .space-link { flex: none; }
.acc-link { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1350px) { .nav a[href$="/about"], .space-link { display: none; } }
@media (max-width: 640px) { .acc-link { max-width: 40vw; padding-left: 10px; padding-right: 10px; } .bar { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 640px) {
  .bar .sbox { min-width: 0; }
  .acc-link { display: block; max-width: 36vw; line-height: 1.2; padding-top: 9px; padding-bottom: 9px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .consent { max-width: calc(100vw - 16px); box-sizing: border-box; } .consent p { min-width: 0; flex: 1 1 100%; }
}

/* studio : animations prêtes en un clic, volet « Avancé », barre de modes en pastilles */
.modebar { gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.modebar button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; background: #fff; color: var(--text, #111); }
.modebar button:hover { border-color: var(--accent); background: #fff; }
.modebar button[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.a-apply { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 13px; }
.a-apply select { width: 100%; }
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.a-pre { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text, #111); }
.a-pre:hover { border-color: var(--accent); background: var(--stage); }
.a-pre:active { transform: translateY(1px); }
.a-pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a-ic { font-size: 22px; line-height: 1.1; color: var(--accent); }
.a-adv { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px 10px; }
.a-adv > summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 13px; list-style: none; }
.a-adv > summary::before { content: '▸ '; color: var(--accent); }
.a-adv[open] > summary::before { content: '▾ '; }
.tl-play { min-width: 110px; }

/* studio sur telephone : le modèle d'abord, puis les réglages, puis la bibliothèque (réduite) */
@media (max-width: 860px) {
  .ws-main { order: 1; }
  .ws-panel { order: 2; }
  .ws-lib { order: 3; max-height: 200px; border-top: 1px solid var(--line); border-bottom: 0; }
}

.a-groups { display: grid; gap: 4px; margin: 0 0 6px; }
.a-group h5 { margin: 8px 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #667); font-weight: 600; }
.a-group .a-grid { margin: 0 0 4px; }

/* animations : pastilles de clips sur la fiche, badge « Animé » sur les cartes, onglet de filtre, boutons moteur dans le bloc de téléchargement */
.bl { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.bl .badge { position: static; }
.badge.anim { background: #fff4d6; border-color: #e8c35a; color: #6b4a00; }
.animtab { border-color: #e8c35a !important; }
.kindtabs a.animtab[aria-current='true'] { background: #6b4a00; border-color: #6b4a00 !important; color: #fff; }
.animbox { margin: 14px 0 6px; }
.animbox .sh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.animbox .tip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line2); font-size: 12px; font-weight: 700; color: var(--muted); cursor: help; }
.apills { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.apills li { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line2); background: #fff; }
.apills li.part { background: #fff4d6; border-color: #e8c35a; color: #6b4a00; }
.animbox .muted { margin: 0 0 6px; font-size: 14px; }
.animbox .note { color: var(--muted); font-size: 12.5px; }
.buy .engrow { display: block; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.buy .engrow .eng-t { display: block; font-size: 14px; color: var(--text); margin: 0 0 8px; }
.buy .engbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.buy .engbtns .btn { padding-left: 8px; padding-right: 8px; justify-content: center; }
.buy .engrow .note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: left; }

/* ---- studio : refonte UX (éditeur à plein écran, sans défilement de page ; grille de 8 px) ---- */
.studio .k-foot { display: none; }
.ws { --lw: 248px; --pw: 344px; grid-template-columns: var(--lw) minmax(0, 1fr) var(--pw); min-height: 520px; }
.ws-bar { align-items: center; gap: 16px; padding: 8px 16px; flex-wrap: wrap; }
.ws-bar strong { font-size: 16px; }
.ws-guide { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 0; }
.ws-guide li + li::before { content: '→'; color: var(--muted); margin-right: 8px; }
.ws-guide li { display: flex; align-items: center; }
.gd { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gd:hover { border-color: var(--accent); }
.gd-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--alt); color: var(--text); font-size: 12px; }
.gd.now { border-color: var(--accent); color: var(--accent); }
.gd.now .gd-n { background: var(--accent); color: #fff; }
.gd.done { color: var(--text); }
.gd.done .gd-n { background: var(--ok, #1a9b57); color: #fff; }
.ws-hint { pointer-events: none; }
.ws-hint[hidden] { display: none; }
.ws-hint p { margin: 0; padding: 16px 24px; background: #fff; border: 1px dashed var(--line2); border-radius: 12px; color: var(--text); font-weight: 600; }
.ws-dock { display: grid; gap: 8px; padding: 8px 16px 12px; border-top: 1px solid var(--line); background: #fff; }
.ws-dock[hidden] { display: none; }
.dock-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dock-row .btn { flex: 0 0 auto; }
.dock-gap { flex: 1 1 8px; }
.ws-dock .ed-inline { display: flex; flex: 0 0 auto; }
.ws-dock .ed-inline > span { display: none; }
.ws-dock .ed-inline select { width: 160px; }
.ws-dock .tl input[type='range'] { width: 100%; accent-color: var(--accent); }
.dock-empty, .dock-legend { margin: 0; }
.ws-panel { padding: 8px 16px 16px; }
.a-pane { display: grid; gap: 16px; padding-top: 16px; align-content: start; }
.a-top { display: grid; gap: 8px; }
.a-objrow { display: flex; align-items: center; gap: 8px; }
.a-objrow .ed-inline { flex: 1; grid-template-columns: auto 1fr; }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-two .ed-inline, .a-fld { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 13px; }
.a-pre { flex-direction: row; justify-content: center; gap: 8px; padding: 8px 4px; min-height: 40px; }
.a-ic { font-size: 18px; }
.a-help { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.a-help h4 { margin: 0; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); }
.a-help p { margin: 0; }
.a-ex summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--accent); }
.a-ex ol { margin: 8px 0 0; padding-left: 24px; display: grid; gap: 4px; }
.ex-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-row .btn { flex: 1 1 auto; justify-content: center; }
.ex-size { flex: 0 0 128px; }
.ex-what { margin: 0; padding-top: 8px; }
.ws-more { border-top: 1px solid var(--line); padding: 8px 0; }
.ws-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; }
.ws-more > summary::before { content: '▸ '; color: var(--accent); }
.ws-more[open] > summary::before { content: '▾ '; }
.ws-more > :not(summary) { margin-top: 8px; }
@media (max-width: 1100px) { .ws { --lw: 216px; --pw: 320px; } .ws-guide .gd span:last-child { display: none; } .gd { padding: 0 4px; } }
@media (max-width: 760px) { .ws-guide { margin: 0; } .ws-guide .gd span:last-child { display: inline; } .ws-dock { padding: 8px 12px; } }
.ws-ck { appearance: none; margin: auto 12px 8px; align-self: flex-start; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.tl-keys[hidden] { display: none; }
.ws-lib-head { flex-wrap: wrap; }
.ws-lib-head input { flex: 1 1 100%; }
.ws-lib-head .btn { flex: 1 1 100%; justify-content: center; }
.ex-row .btn { flex: 1 1 calc(50% - 4px); min-width: 0; line-height: 1.2; }
.ex-row .btn.big-one, .ex-row > .btn:only-child { flex-basis: 100%; }
.ex-row .ex-size { flex: 0 0 128px; }
.ws-panel .ed-inline { grid-template-columns: auto 1fr; }
.ws-dock .tl-bar { flex-wrap: nowrap; }
.ws-dock .ed-inline select { width: 128px; }
.ws-dock .tl-bar .btn { padding-left: 10px; padding-right: 10px; }

/* sons : cartes avec bouton d'écoute, fiche (variantes), pack, « Sons associés », bande d'accueil */
.card.snd .thumb { background: linear-gradient(160deg, #1b2236, #2a3550); }
.card.snd .thumb img { object-fit: contain; padding: 10px 14px; }
.card.snd .stretch { position: absolute; inset: 0; z-index: 1; }
.card.snd .badge { z-index: 4; }
.aplay { position: relative; z-index: 3; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--text); background: #fff; color: var(--text); cursor: pointer; display: inline-grid; place-items: center; padding: 0; box-shadow: 0 3px 0 var(--text); transition: transform 0.12s; }
.aplay::before { content: ''; width: 0; height: 0; border-left: 14px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.aplay[aria-pressed='true']::before { width: 14px; height: 14px; border: 0; margin: 0; background: currentColor; border-radius: 2px; }
.aplay[aria-pressed='true'] { background: var(--text); color: #fff; box-shadow: none; transform: translateY(2px); }
.aplay:hover { transform: translateY(-1px); }
.aplay:focus-visible { outline: 3px solid #2f5bff; outline-offset: 2px; }
.card.snd .thumb > .aplay { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.card.snd.playing { border-color: var(--text); box-shadow: 0 6px 0 var(--text); }
.card.snd.playing .thumb img { animation: sndpulse 1s ease-in-out infinite alternate; }
@keyframes sndpulse { from { opacity: 0.75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card.snd.playing .thumb img { animation: none; } }
.snd-stage { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.snd-hero { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; background: linear-gradient(160deg, #1b2236, #2a3550); border-radius: 10px; padding: 12px; box-sizing: border-box; margin-bottom: 14px; }
.snd-stage .sh, .snd-links h2 { margin: 6px 0 10px; }
.snd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.snd-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex-wrap: wrap; }
.snd-row .wave { width: 120px; height: 36px; object-fit: contain; background: #1b2236; border-radius: 6px; flex: none; }
.snd-row .v-n { flex: 1 1 140px; font-weight: 600; min-width: 0; }
.snd-row .v-n .lp { font-style: normal; font-size: 12px; font-weight: 600; background: #fff4d6; border: 1px solid #e8c35a; color: #6b4a00; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.snd-row .v-d { color: var(--muted); font-size: 14px; }
.snd-row .v-dl { display: flex; gap: 6px; margin-left: auto; }
.snd-sum { margin: 0 0 8px; color: var(--muted); }
.snd-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.snd-cats .pill em { font-style: normal; color: var(--muted); margin-left: 4px; }
.snd-links { margin: 22px 0; }
.sndband { margin: 28px 0; }
.sndband .shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sndband .shelf-head h2 { margin: 0; }
.sndband > .muted { margin: 4px 0 12px; }
@media (max-width: 560px) { .snd-row .wave { display: none; } .snd-row .v-dl { margin-left: 0; width: 100%; } }

/* shaders : liste des effets avec lien d'essai, statut de test */
.inc .inc-cat { font-style: normal; font-size: 12px; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.inc .inc-live { font-size: 13px; font-weight: 600; margin-left: 8px; white-space: nowrap; }
.integ .note-test { background: #fff4d6; border: 1px solid #e8c35a; color: #4d3600; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.tested { margin: 14px 0; }
.tested .test-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tested .test-list li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; }
.tested .test-list li.ok { background: #eaf8ef; border-color: #9ad4ae; }
.tested .test-list li.no { background: #fff4d6; border-color: #e8c35a; }
.tested .note-test { background: none; border: 0; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* studio : colonnes redimensionnables, « Agrandir la vue », panneau Sons lisible sur le fond clair de la boutique */
.ws-split { position: absolute; top: 0; bottom: 0; width: 8px; margin-left: -4px; z-index: 6; cursor: col-resize; touch-action: none; background: transparent; }
.ws-split.l { left: var(--lw); }
.ws-split.r { left: auto; margin-left: 0; margin-right: -4px; right: var(--pw); }
.ws-split:hover, .ws-split.drag, .ws-split:focus-visible { background: var(--accent); opacity: 0.35; outline: 0; }
.ws.is-wide { --lw: 0px; --pw: 0px; }
.ws.is-wide .ws-lib, .ws.is-wide .ws-panel { visibility: hidden; overflow: hidden; border: 0; padding: 0; }
.ws.is-wide .ws-split { display: none; }
.ws-lib, .ws-panel, .ws-main { min-height: 0; }
.ws-panel { overflow-y: auto; overscroll-behavior: contain; }
.ws-packs { overflow-y: auto; min-height: 0; }
@media (max-width: 860px) { .ws-split { display: none; } .tb[data-wide] { display: none; } }
.mode-sound { --panel2: #fff; --line: #cfd4de; color: var(--text); }
.mode-sound .snd-q, .mode-sound .snd-b { background: #fff; color: var(--text); border-color: var(--line2); }
.mode-sound .snd-q::placeholder { color: var(--muted); opacity: 1; }
.mode-sound .snd-cats button, .mode-sound .snd-vars button, .mode-sound .snd-list button { color: var(--text); }
.mode-sound .snd-cats button[aria-pressed='true'], .mode-sound .snd-vars button[aria-pressed='true'], .mode-sound .snd-b.go { background: var(--accent); color: #fff; border-color: transparent; }
.mode-sound .snd-list button[aria-pressed='true'] { background: #e6efff; color: var(--text); }
.mode-sound .snd-b:hover:not([disabled]) { border-color: var(--accent); }
.mode-sound .snd label.snd-sl span:first-child, .mode-sound .snd-hint, .mode-sound .snd-st { opacity: 1; color: var(--muted); }
@media (max-width: 860px) { .ws-dock .tl-bar { flex-wrap: wrap; } .dock-gap { display: none; } }

/* studio : un pied visible sous l'éditeur (on sent qu'on est au bout de l'écran) et des barres de défilement fines, sans flèches trompeuses */
@media (min-width: 861px) { .ws { height: calc(100vh - var(--bar) - 14px); margin-bottom: 14px; border-bottom: 1px solid var(--line); box-sizing: border-box; } }
.ws-lib, .ws-packs, [data-ws-panel], .ws-panel { scrollbar-width: thin; scrollbar-gutter: stable; }
[data-ws-panel] { padding-bottom: 14px; }
@media (max-width: 860px) { .ws { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; } .ws-split { display: none; } }

.nav a[aria-current='page'] { color: var(--text); background: var(--alt); font-weight: 600; }
