/* Socle commun des démos StudioGLSC. Chaque démo définit ses propres variables (--paper, --ink, --accent, polices). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* Bandeau « démo » : indique clairement que le site est un exemple fictif réalisé par StudioGLSC */
.dm-bar { background: #15181c; color: #e9ecef; font: 500 13px/1.3 "Inter Tight", system-ui, sans-serif; letter-spacing: .01em; }
.dm-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding: 9px 0; }
.dm-bar a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; }
.dm-bar a:hover { border-color: #fff; }
.dm-bar span { opacity: .8; }
.dm-bar b { font-weight: 600; opacity: 1; }

/* Titres animés (mots masqués qui glissent) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.sw > span { display: inline-block; }
.js-motion [data-split] .sw > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.js-motion [data-split].in .sw > span { transform: none; }

/* Apparitions */
.js-motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .1, 1), transform .9s cubic-bezier(.2, .7, .1, 1); transition-delay: var(--d, 0ms); }
.js-motion .rv.in { opacity: 1; transform: none; }
.js-motion .rv-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0ms); }
.js-motion .rv-clip.in { clip-path: inset(0); }
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 640px) { body { font-size: 16px; } .wrap { width: calc(100% - 32px); } }
