SPB Git

Repository Public

kit.css 17.0 KB 155 lines css

1/*2 * SP CLIP scene kit — système de design des animations HTML (injecté dans chaque scène par src/media/htmlscene.ts).3 * Identité : fond #0b0c0f, accent or #e8c27a, texte #f2f3f5 ; palettes d'illustration harmonisées pour fond sombre.4 * Unité fluide : 1u = 1 % du petit côté de la trame (10,8 px en 1080p). Variables de format posées par le moteur :5 * --w --h --d (durée) --safe-x --safe-y --safe-w --safe-h --safe-r --safe-b --wm-x --wm-y --wm-w --wm-h.6 */7@font-face { font-family: "Inter"; font-weight: 400; src: url(fonts/Inter-Regular.ttf) format("truetype"); font-display: block; }8@font-face { font-family: "Inter"; font-weight: 500; src: url(fonts/Inter-Medium.ttf) format("truetype"); font-display: block; }9@font-face { font-family: "Inter"; font-weight: 600; src: url(fonts/Inter-SemiBold.ttf) format("truetype"); font-display: block; }10@font-face { font-family: "Inter"; font-weight: 700 900; src: url(fonts/Inter-Bold.ttf) format("truetype"); font-display: block; }11@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; src: url(fonts/InstrumentSerif-Regular.ttf) format("truetype"); font-display: block; }12@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; src: url(fonts/InstrumentSerif-Italic.ttf) format("truetype"); font-display: block; }1314:root {15  --u: calc(min(var(--w), var(--h)) / 100);16  /* identité */17  --bg: #0b0c0f; --ink-1: #12141a; --ink-2: #1a1d26; --ink-3: #252a36; --ink-4: #343b4b;18  --text: #f2f3f5; --soft: #cdd2db; --muted: #9aa0ab; --dim: #6c7482;19  --gold: #e8c27a; --gold-hi: #f8e6bd; --gold-lo: #b9833a;20  /* palettes d'illustration : teinte, -hi (lumière), -lo (ombre) */21  --teal: #3fc1b0; --teal-hi: #8ee9da; --teal-lo: #1f8f86;22  --blue: #5b8def; --blue-hi: #9dbcff; --blue-lo: #3a5fc4;23  --violet: #9b7bea; --violet-hi: #c9b3ff; --violet-lo: #6a49c2;24  --coral: #f0736a; --coral-hi: #ffab9c; --coral-lo: #cf4c4c;25  --rose: #e86a9a; --rose-hi: #ffa6c6; --rose-lo: #c9447c;26  --green: #6fcf7c; --green-hi: #a9eead; --green-lo: #3c9a5c;27  --amber: #f4a850; --amber-hi: #ffd08a; --amber-lo: #e07f2e;28  --sky: #6cc5f0; --sky-hi: #b3e6ff; --sky-lo: #3f93c9;29  --cream: #f4ead8; --cream-lo: #d9cdb4; --steel: #8497b5; --steel-lo: #566784;30  --skin-1: #f3c9a2; --skin-2: #e0a878; --skin-3: #b9794f; --skin-4: #7d4f33;31  /* typographie */32  --serif: "Instrument Serif", Georgia, serif; --sans: "Inter", system-ui, sans-serif;33  /* courbes */34  --e-out: cubic-bezier(.16, 1, .3, 1); --e-inout: cubic-bezier(.65, 0, .35, 1); --e-back: cubic-bezier(.34, 1.56, .64, 1); --e-in: cubic-bezier(.7, 0, .84, 0);35}36*, *::before, *::after { box-sizing: border-box; }37html, body { margin: 0; padding: 0; width: var(--w); height: var(--h); overflow: hidden; background: var(--bg); }38body { font-family: var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; font-kerning: normal; }39#sk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }40.sk-stage { position: relative; width: var(--w); height: var(--h); overflow: hidden; background: var(--bg); isolation: isolate; font-size: calc(3.4 * var(--u)); line-height: 1.25; }41.sk-stage svg { overflow: visible; }42.sk-stage svg text { font-family: var(--sans); fill: var(--text); }4344/* ── décor : .scene[data-bg] ─────────────────────────────────────────────── */45.scene { position: absolute; inset: 0; overflow: hidden; --g1: rgba(232, 194, 122, .22); --g2: rgba(86, 122, 184, .26); --base-a: #1d2130; --base-b: #0b0c0f; background: linear-gradient(168deg, var(--base-a), var(--base-b) 82%); }46.scene::before { content: ""; position: absolute; inset: -20%; pointer-events: none; z-index: 0;47  background: radial-gradient(42% 46% at 26% 28%, var(--g1), transparent 70%), radial-gradient(48% 50% at 78% 76%, var(--g2), transparent 72%);48  animation: sk-bg-drift 18s ease-in-out infinite alternate; }49.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 90; mix-blend-mode: overlay; opacity: .42;50  background-image: radial-gradient(120% 120% at 50% 45%, transparent 58%, rgba(0, 0, 0, .5) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }51.scene > * { position: relative; z-index: 1; }52.scene > .sk-layer, .scene > svg.sk-art, .scene > .sk-safe { position: absolute; }53@keyframes sk-bg-drift { from { transform: translate(-2.5%, -1.5%) scale(1); } to { transform: translate(2.5%, 2%) scale(1.08); } }54.scene { --d1: #262b3b; --d2: #1b1f2c; --d3: #11131b; --dl: #f8e6bd; }55.scene[data-bg="night"] { --base-a: #1d2130; --base-b: #0b0c0f; --g1: rgba(232, 194, 122, .22); --g2: rgba(86, 122, 184, .26); --d1: #262b3b; --d2: #1b1f2c; --d3: #11131b; }56.scene[data-bg="ocean"] { --base-a: #10405a; --base-b: #081621; --g1: rgba(63, 193, 176, .32); --g2: rgba(91, 141, 239, .28); --d1: #185670; --d2: #10394d; --d3: #0a2331; }57.scene[data-bg="lagoon"] { --base-a: #0f6a6c; --base-b: #06262b; --g1: rgba(142, 233, 218, .3); --g2: rgba(108, 197, 240, .24); --d1: #17807f; --d2: #0e5558; --d3: #083438; }58.scene[data-bg="plum"] { --base-a: #3a2466; --base-b: #130b26; --g1: rgba(155, 123, 234, .38); --g2: rgba(232, 106, 154, .26); --d1: #4d3486; --d2: #33215e; --d3: #1e123a; }59.scene[data-bg="ember"] { --base-a: #5a2420; --base-b: #1a0c0c; --g1: rgba(240, 115, 106, .34); --g2: rgba(244, 168, 80, .26); --d1: #76332c; --d2: #4f231e; --d3: #2e1411; }60.scene[data-bg="forest"] { --base-a: #14493a; --base-b: #071712; --g1: rgba(111, 207, 124, .28); --g2: rgba(63, 193, 176, .26); --d1: #1d6450; --d2: #134536; --d3: #0a2a20; }61.scene[data-bg="royal"] { --base-a: #1f43a0; --base-b: #0a1436; --g1: rgba(108, 197, 240, .34); --g2: rgba(155, 123, 234, .3); --d1: #2d5ac2; --d2: #1d3f8e; --d3: #112457; }62.scene[data-bg="sky"] { --base-a: #2a74c4; --base-b: #10336a; --g1: rgba(179, 230, 255, .34); --g2: rgba(91, 141, 239, .3); --d1: #3b8ad8; --d2: #2562ac; --d3: #163f7a; }63.scene[data-bg="gold"] { --base-a: #54401a; --base-b: #171108; --g1: rgba(232, 194, 122, .4); --g2: rgba(244, 168, 80, .2); --d1: #735a26; --d2: #4c3a17; --d3: #2d220d; }64.scene[data-bg="dusk"] { background: linear-gradient(180deg, #131a44 0%, #3a2466 42%, #8a3a62 74%, #e0764a 100%); --g1: rgba(155, 123, 234, .24); --g2: rgba(244, 168, 80, .34); --d1: #55306e; --d2: #361f52; --d3: #1e1236; }65.scene[data-bg="dawn"] { background: linear-gradient(180deg, #17336e 0%, #3f6fb8 48%, #f0a26a 86%, #ffd08a 100%); --g1: rgba(255, 208, 138, .3); --g2: rgba(108, 197, 240, .26); --d1: #31508f; --d2: #223a6e; --d3: #14254b; }66svg.sk-decor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }6768/* ── calques et mise en page ─────────────────────────────────────────────── */69.sk-layer { position: absolute; inset: 0; }70svg.sk-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }71.sk-safe { position: absolute; left: var(--safe-x); top: var(--safe-y); width: var(--safe-w); height: var(--safe-h); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: calc(2.4 * var(--u)); }72.sk-safe.top { justify-content: flex-start; } .sk-safe.bottom { justify-content: flex-end; } .sk-safe.left { align-items: flex-start; text-align: left; } .sk-safe.right { align-items: flex-end; text-align: right; }73.sk-safe.between { justify-content: space-between; }74.sk-row { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: calc(3 * var(--u)); }75.sk-col { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); }76.sk-split { display: grid; grid-template-columns: 1fr 1fr; gap: calc(5 * var(--u)); align-items: center; width: 100%; height: 100%; }77.r-tall .sk-split, .r-square .sk-split { grid-template-columns: 1fr; grid-template-rows: auto auto; }78.sk-box { position: absolute; }                 /* à placer avec left/top/width en px ou % */79.wide-only, .tall-only, .square-only { display: none !important; }80.r-wide .wide-only, .r-tall .tall-only, .r-square .square-only { display: revert !important; }8182/* ── typographie HTML ────────────────────────────────────────────────────── */83.sk-title { font-family: var(--serif); font-weight: 400; font-size: calc(10.5 * var(--u)); line-height: 1.02; letter-spacing: -.012em; margin: 0; text-wrap: balance; }84.sk-title.xl { font-size: calc(14 * var(--u)); } .sk-title.sm { font-size: calc(7.6 * var(--u)); }85.sk-h { font-family: var(--sans); font-weight: 700; font-size: calc(6.2 * var(--u)); line-height: 1.08; letter-spacing: -.022em; margin: 0; text-wrap: balance; }86.sk-h.sm { font-size: calc(4.6 * var(--u)); }87.sk-kicker { font-weight: 600; font-size: calc(2.7 * var(--u)); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; }88.sk-text { font-weight: 500; font-size: calc(3.7 * var(--u)); line-height: 1.3; color: var(--soft); margin: 0; text-wrap: balance; max-width: 28em; }89.sk-big { font-weight: 700; font-size: calc(19 * var(--u)); line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 0; }90.sk-big.md { font-size: calc(12 * var(--u)); }91.sk-num { font-variant-numeric: tabular-nums; }92.sk-label { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: calc(3 * var(--u)); line-height: 1; padding: .55em 1em; border-radius: 99em; background: rgba(255, 255, 255, .08); border: calc(.18 * var(--u)) solid rgba(255, 255, 255, .16); color: var(--text); white-space: nowrap; }93.sk-label.gold { background: rgba(232, 194, 122, .16); border-color: rgba(232, 194, 122, .5); color: var(--gold-hi); }94.sk-label.solid { background: var(--gold); border-color: var(--gold); color: #1a1408; }95.sk-card { background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); border: calc(.18 * var(--u)) solid rgba(255, 255, 255, .13); border-radius: calc(2.6 * var(--u)); padding: calc(3 * var(--u)) calc(3.6 * var(--u)); box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, .35); }96.sk-rule { width: calc(12 * var(--u)); height: calc(.5 * var(--u)); border-radius: 99em; background: var(--gold); }97em, .hl { font-style: normal; color: var(--gold); }98.sk-title em, .sk-title .hl { font-style: italic; }99.gold-text { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }100.c-gold { color: var(--gold); } .c-teal { color: var(--teal); } .c-blue { color: var(--blue); } .c-violet { color: var(--violet); } .c-coral { color: var(--coral); } .c-rose { color: var(--rose); }101.c-green { color: var(--green); } .c-amber { color: var(--amber); } .c-sky { color: var(--sky); } .c-soft { color: var(--soft); } .c-muted { color: var(--muted); } .c-text { color: var(--text); }102.sk-mark { background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 92% / 100% .14em; padding-bottom: .04em; }103104/* ── typographie SVG (unités = pixels de la trame) ───────────────────────── */105.sk-stage svg text.t-title { font-family: var(--serif); font-size: calc(10 * var(--u)); letter-spacing: -.01em; }106.sk-stage svg text.t-h { font-weight: 700; font-size: calc(5.6 * var(--u)); letter-spacing: -.02em; }107.sk-stage svg text.t-label { font-weight: 600; font-size: calc(3.4 * var(--u)); }108.sk-stage svg text.t-small { font-weight: 500; font-size: calc(2.9 * var(--u)); fill: var(--soft); }109.sk-stage svg text.t-num { font-weight: 700; font-size: calc(9 * var(--u)); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }110.sk-stage svg text.t-kicker { font-weight: 600; font-size: calc(2.7 * var(--u)); letter-spacing: .2em; text-transform: uppercase; fill: var(--gold); }111.sk-stage svg text.mid, .sk-stage svg .mid text { text-anchor: middle; } .sk-stage svg text.end { text-anchor: end; }112113/* ── couleurs SVG : f-* (fond), s-* (trait) ──────────────────────────────── */114.f-none { fill: none; } .s-none { stroke: none; }115.f-bg { fill: var(--bg); } .f-ink1 { fill: var(--ink-1); } .f-ink2 { fill: var(--ink-2); } .f-ink3 { fill: var(--ink-3); } .f-ink4 { fill: var(--ink-4); }116.f-text { fill: var(--text); } .f-soft { fill: var(--soft); } .f-muted { fill: var(--muted); } .f-cream { fill: var(--cream); } .f-steel { fill: var(--steel); }117.f-gold { fill: var(--gold); } .f-gold-hi { fill: var(--gold-hi); } .f-gold-lo { fill: var(--gold-lo); }118.f-teal { fill: var(--teal); } .f-teal-hi { fill: var(--teal-hi); } .f-teal-lo { fill: var(--teal-lo); }119.f-blue { fill: var(--blue); } .f-blue-hi { fill: var(--blue-hi); } .f-blue-lo { fill: var(--blue-lo); }120.f-violet { fill: var(--violet); } .f-violet-hi { fill: var(--violet-hi); } .f-violet-lo { fill: var(--violet-lo); }121.f-coral { fill: var(--coral); } .f-coral-hi { fill: var(--coral-hi); } .f-coral-lo { fill: var(--coral-lo); }122.f-rose { fill: var(--rose); } .f-rose-hi { fill: var(--rose-hi); } .f-rose-lo { fill: var(--rose-lo); }123.f-green { fill: var(--green); } .f-green-hi { fill: var(--green-hi); } .f-green-lo { fill: var(--green-lo); }124.f-amber { fill: var(--amber); } .f-amber-hi { fill: var(--amber-hi); } .f-amber-lo { fill: var(--amber-lo); }125.f-sky { fill: var(--sky); } .f-sky-hi { fill: var(--sky-hi); } .f-sky-lo { fill: var(--sky-lo); }126.s-text { stroke: var(--text); } .s-soft { stroke: var(--soft); } .s-muted { stroke: var(--muted); } .s-ink3 { stroke: var(--ink-3); } .s-ink4 { stroke: var(--ink-4); } .s-steel { stroke: var(--steel); }127.s-gold { stroke: var(--gold); } .s-teal { stroke: var(--teal); } .s-blue { stroke: var(--blue); } .s-violet { stroke: var(--violet); } .s-coral { stroke: var(--coral); } .s-rose { stroke: var(--rose); }128.s-green { stroke: var(--green); } .s-amber { stroke: var(--amber); } .s-sky { stroke: var(--sky); } .s-cream { stroke: var(--cream); }129/* trait d'illustration : arrondi, sans fond */130.line { fill: none; stroke-width: calc(.7 * var(--u)); stroke-linecap: round; stroke-linejoin: round; }131.line.thin { stroke-width: calc(.35 * var(--u)); } .line.bold { stroke-width: calc(1.1 * var(--u)); }132.dashed { stroke-dasharray: calc(1.6 * var(--u)) calc(1.6 * var(--u)); }133.shadow { filter: url(#f-shadow); } .shadow-sm { filter: url(#f-shadow-sm); } .glow { filter: url(#f-glow); }134/* habillage par variables des symboles : <use class="k-teal"> */135.k-gold { --a: var(--gold); --b: var(--gold-lo); } .k-teal { --a: var(--teal); --b: var(--teal-lo); } .k-blue { --a: var(--blue); --b: var(--blue-lo); }136.k-violet { --a: var(--violet); --b: var(--violet-lo); } .k-coral { --a: var(--coral); --b: var(--coral-lo); } .k-rose { --a: var(--rose); --b: var(--rose-lo); }137.k-green { --a: var(--green); --b: var(--green-lo); } .k-amber { --a: var(--amber); --b: var(--amber-lo); } .k-sky { --a: var(--sky); --b: var(--sky-lo); }138.k-steel { --a: var(--steel); --b: var(--steel-lo); } .k-cream { --a: var(--cream); --b: var(--cream-lo); } .k-ink { --a: var(--ink-4); --b: var(--ink-2); }139.skin-1 { --skin: var(--skin-1); } .skin-2 { --skin: var(--skin-2); } .skin-3 { --skin: var(--skin-3); } .skin-4 { --skin: var(--skin-4); }140141/* ── mécanique des animations (posée par kit.js) ─────────────────────────── */142.sk-w { transform-box: fill-box; transform-origin: center; }                    /* enveloppe SVG : pivot au centre de la forme */143.sk-w[data-origin="bottom"], :not(svg *)[data-origin="bottom"] { transform-origin: 50% 100%; } .sk-w[data-origin="top"], :not(svg *)[data-origin="top"] { transform-origin: 50% 0; }144.sk-w[data-origin="left"], :not(svg *)[data-origin="left"] { transform-origin: 0 50%; } .sk-w[data-origin="right"], :not(svg *)[data-origin="right"] { transform-origin: 100% 50%; }145.sk-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .12em .04em .16em; margin: -.12em -.04em -.16em; }146.sk-word > span { display: inline-block; }147[data-camera] { transform-origin: 0 0; transform-box: view-box; }148149/* ── décors générés (SK.decor) ───────────────────────────────────────────── */150@keyframes sk-mote { from { transform: translate(0, 0); } to { transform: translate(calc(3 * var(--u)), calc(-22 * var(--u))); } }151@keyframes sk-rot { to { transform: rotate(360deg); } }152@keyframes sk-grid { from { transform: translateY(var(--hz)); opacity: 0; } 12% { opacity: .75; } to { transform: translateY(calc(var(--hz) + var(--gh))); opacity: .75; } }153.sk-gridline { animation-timing-function: cubic-bezier(.6, 0, .9, .4) !important; }154@keyframes sk-twinkle { from { opacity: var(--o, .6); } to { opacity: calc(var(--o, .6) * .3); } }155
Files main
Menu

Theme