/* Vasla Studio — feuille commune à toutes les directions artistiques.
   Les couleurs, polices, rayons et ombres viennent des variables de src/themes.css ([data-theme] sur <html>).
   La vitrine reste neutre et laisse bouger les images des scripts : un seul mouvement continu par écran (la vidéo),
   le reste est déclenché (arrivée, défilement, survol) puis s'arrête.
   Animations réduites (réglage système) : « réduit, pas supprimé » — fondus et barres de progression gardés,
   3D, zooms, glissements et transitions d'image retirés (règles en fin de fichier). */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --ressort: cubic-bezier(.2, .9, .25, 1.2);
  --ressort: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85%, 1);
  --doux: cubic-bezier(.2, .7, .2, 1);
  interpolate-size: allow-keywords;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-title); font-weight: var(--title-weight); letter-spacing: var(--title-track); line-height: 1.06; margin: 0 0 .5em; color: var(--title); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 100; font-weight: 600; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
.eyebrow:has(> i)::before { display: none; }
.eyebrow i, .chip i, .now-lbl i, .buybar i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent2)); display: inline-block; flex: none; }
.muted { color: var(--muted); }
.hl-under { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 100% .38em; padding: 0 .06em; margin: 0 -.06em; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--btn-radius);
  font: 600 .98rem/1 var(--font-text); letter-spacing: .01em;
  color: var(--on-accent); background: var(--accent); border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-btn); }
.btn.ghost { color: var(--text); background: transparent; border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--text); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .lbl { display: inline-flex; align-items: center; gap: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* bouton d'achat pendant la préparation du paiement (panier, connexion Cfx.re) */
.btn.busy { cursor: progress; pointer-events: none; }
.btn.busy svg:not(.fl) { animation: tourne .8s linear infinite; }
.btn.busy .lbl, .btn.busy { opacity: .85; }
@keyframes tourne { to { rotate: 360deg; } }
svg.fl { transition: transform .25s var(--doux); }
.btn:hover svg.fl, .card:hover .more svg.fl { transform: translateX(4px); }
/* boutons magnétiques (souris seulement, piloté par app.js via --tx / --ty) */
.btn.mag { position: relative; translate: var(--tx, 0px) var(--ty, 0px); transition: translate .6s var(--ressort), transform .18s, box-shadow .18s, background .18s; }
.btn.mag::before { content: ""; position: absolute; inset: -14px; }
.btn.mag > .lbl { translate: calc(var(--tx, 0px) * .4) calc(var(--ty, 0px) * .4); transition: translate .6s var(--ressort); }

/* ---------------------------------------------------------------- bandeau langue */
.langbar { display: none; background: var(--surface2); border-bottom: 1px solid var(--line); font-size: .9rem; }
.langbar.on { display: block; }
.langbar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; }
.langbar button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; line-height: 1; min-width: 40px; min-height: 40px; display: grid; place-items: center; }

/* ---------------------------------------------------------------- en-tête */
.top { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); view-transition-name: entete; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font: 500 .95rem/1 var(--font-text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 7px 11px; font: 600 .76rem/1 var(--font-text); letter-spacing: .06em; color: var(--muted); }
.lang span { background: var(--surface2); color: var(--text); }
.nav .btn, .nav .btn:hover { color: var(--on-accent); min-height: 42px; padding: 0 18px; font-size: .9rem; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text); width: 44px; height: 42px; border-radius: 10px; cursor: pointer; }
.burger svg { width: 20px; height: 20px; margin: auto; }
.progress { position: fixed; top: 0; left: 0; z-index: 70; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent2), var(--accent-text)); pointer-events: none; }

/* ---------------------------------------------------------------- héros */
.hero, .phero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); }
.hero { padding: 80px 0 72px; }
.phero { padding: 40px 0 64px; }
.hero .grid, .phero .grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .sub { max-width: 42ch; font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: var(--blob1); top: -160px; right: 4%; }
.blob.b2 { width: 380px; height: 380px; background: var(--blob2); bottom: -180px; left: -120px; }
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.frame video, .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--doux), box-shadow .35s; }
/* titre : mots qui montent un par un, puis le surlignage se trace ; le cadre s'ouvre une seule fois */
.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em); transition: opacity .7s var(--doux), transform .8s var(--doux); transition-delay: calc(var(--i) * 70ms); }
.js .hero.go h1 .w { opacity: 1; transform: none; }
.js .hl-under { background-size: 0% .38em; transition: background-size .9s var(--doux) .7s; }
.js .go .hl-under { background-size: 100% .38em; }
@keyframes cadre-in { from { clip-path: inset(8% 8% 8% 8% round 28px); scale: .96; opacity: 0; } to { clip-path: inset(-80px round 0); } }
@keyframes fondu { from { opacity: 0; } }
.js .hero .frame { animation: cadre-in 1s var(--doux) .2s backwards; }
/* fiche : le texte arrive en cascade ; ni le titre ni l'image (ils viennent de la carte par la transition de page) */
.js .phero .hero-txt > :not(h1) { animation: monte .7s var(--doux) backwards; }
.js .phero .hero-txt > :nth-child(2) { animation-delay: .06s; } .js .phero .hero-txt > :nth-child(3) { animation-delay: .12s; }
.js .phero .hero-txt > :nth-child(4) { animation-delay: .18s; } .js .phero .hero-txt > :nth-child(5) { animation-delay: .24s; }
.js .phero .hero-txt > :nth-child(6) { animation-delay: .3s; }
@keyframes monte { from { opacity: 0; translate: 0 14px; } }

/* légende synchronisée de la vidéo d'accueil : le script à l'écran + barres façon stories */
.now { position: absolute; left: 16px; right: 70px; bottom: 16px; display: grid; gap: 10px; color: #fff; }
.now:hover { text-decoration: none; }
.now .bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.now .bars i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.now .bars b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.now .bars i.done b { transform: scaleX(1); }
.now-lbl { justify-self: start; display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: rgba(10,12,16,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 .86rem/1.2 var(--font-text); transition: background .2s; }
.now:hover .now-lbl { background: rgba(10,12,16,.88); }
.now-lbl span { font-weight: 400; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-lbl.swap b, .now-lbl.swap span { animation: nom-in .5s var(--doux) both; }
.now-lbl.swap span { animation-delay: .06s; }
@keyframes nom-in { from { opacity: 0; translate: 0 .55em; } }
.vtoggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10,12,16,.62); color: #fff; cursor: pointer; backdrop-filter: blur(6px); opacity: .85; transition: opacity .2s, background .2s; }
.vtoggle:hover, .vtoggle:focus-visible { opacity: 1; background: rgba(10,12,16,.85); }
.vtoggle svg { width: 16px; height: 16px; }
.vtoggle .i-play, .vtoggle.paused .i-pause { display: none; }
.vtoggle.paused .i-play { display: block; }

/* ---------------------------------------------------------------- sections */
.sect { padding: 104px 0; position: relative; }
.sect.alt { background: var(--bg2); }
.sect-head { margin-bottom: 40px; }
.sect-head h2 { margin: 0; max-width: 22ch; }
.sect-head .eyebrow { margin-bottom: 14px; }

/* cartes de script : image + aperçu vidéo, nom, prix, une ligne ; toute la carte est un lien */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.card { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--doux), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line2); }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: radial-gradient(380px circle at var(--mx) var(--my), var(--spot), transparent 42%); opacity: 0; transition: opacity .3s; }
.card:hover::after { opacity: 1; }
.card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--doux); }
.card:hover .media img { transform: scale(1.05); }
.card .media video.apercu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.card .media.vid video.apercu { opacity: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 600 .78rem/1 var(--font-text); background: rgba(10,12,16,.72); color: #fff; backdrop-filter: blur(6px); }
.card .genre { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card h3 a { color: inherit; display: inline-block; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.card h3 a:hover { text-decoration: none; }
.card .price { font: 700 1.08rem/1 var(--font-text); color: var(--title); white-space: nowrap; }
.card .line { color: var(--muted); margin-bottom: 18px; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem/1 var(--font-text); color: var(--title); }
.card .more svg { width: 18px; height: 18px; }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }

/* FAQ : titre à gauche, accordéon à droite ; une seule réponse ouverte, ouverture fluide */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid h2 { max-width: 12ch; }
.mail { font-weight: 600; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--line2); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 1.02rem/1.4 var(--font-text); color: var(--title); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: rotate .4s var(--ressort); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); margin: 0 0 20px; }
.faq details::details-content { opacity: 0; transition: opacity .3s, content-visibility .4s allow-discrete; }
.faq details[open]::details-content { opacity: 1; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--doux), opacity .3s, content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------------------------------------------------------------- fiche d'un script */
.back { display: flex; width: fit-content; align-items: center; gap: 8px; font: 500 .9rem/1 var(--font-text); color: var(--muted); margin-bottom: 26px; }
.back svg { width: 16px; height: 16px; transition: transform .25s var(--doux); }
.back:hover { color: var(--text); text-decoration: none; }
.back:hover svg { transform: translateX(-3px); }
.phero h1 { max-width: 14ch; width: fit-content; }
.phero .tagline { font-size: 1.18rem; color: var(--muted); max-width: 40ch; }
.buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.buy .amount { font: 700 2.2rem/1 var(--font-title); color: var(--title); }
.buy .amount small { display: block; font: 400 .74rem/1.5 var(--font-text); color: var(--muted); letter-spacing: .04em; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); flex: none; }
.frame.yt .boucle { opacity: 0; transition: opacity .6s; }
.frame.yt.vid .boucle { opacity: 1; }
.frame.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.watch { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; background: rgba(10,12,16,.72); color: #fff; font: 600 .92rem/1 var(--font-text); cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .25s var(--doux); }
.watch:hover { background: rgba(10,12,16,.9); transform: translateY(-2px); text-decoration: none; }
.watch .play { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent2); color: #121418; }
.watch .play svg { width: 15px; height: 15px; margin-left: 2px; }
.story { padding-block: 88px 72px; }
.story p { font-size: 1.12rem; color: var(--text2); }
.story p:first-child { font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.45 var(--font-title); color: var(--title); letter-spacing: -.01em; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 16 / 10; }
.gallery.big button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--doux); }
.gallery button:hover img { transform: scale(1.05); }
.features { display: grid; gap: 20px; }
.features.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature, .spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 12px; }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin-bottom: 9px; color: var(--text2); font-size: .95rem; line-height: 1.5; }
.ticks svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.spec.perf { background: var(--perf-bg); border-color: var(--perf-line); }
details.spec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.spec summary::-webkit-details-marker { display: none; }
details.spec summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: rotate .4s var(--ressort); margin-bottom: .5em; }
details.spec[open] summary::after { rotate: 45deg; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.mini { display: grid; grid-template-columns: 112px 1fr auto 18px; gap: 16px; align-items: center; padding: 10px 18px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .25s, box-shadow .25s, transform .3s var(--doux); }
.mini:hover { text-decoration: none; border-color: var(--line2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.mini img { width: 112px; height: 70px; object-fit: cover; border-radius: 10px; }
.mini b { display: block; font: 600 1.05rem/1.2 var(--font-title); color: var(--title); }
.mini .t span { font-size: .85rem; color: var(--muted); }
.mini .pr { font: 700 1rem/1 var(--font-text); color: var(--title); white-space: nowrap; }
.mini svg { width: 18px; height: 18px; color: var(--title); }
.mini:hover svg.fl { transform: translateX(4px); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); translate: 0 110%; transition: translate .5s var(--doux); }
.buybar.on { translate: 0 0; }
.buybar .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.buybar .nm { display: inline-flex; align-items: center; gap: 9px; font: 600 1.02rem/1 var(--font-title); color: var(--title); }
.buybar .pr { margin-left: auto; font: 700 1.05rem/1 var(--font-text); color: var(--title); }
.buybar .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.lightbox { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 1px solid #333; background: #000; color: #fff; border-radius: 12px; }
.lightbox::backdrop { background: rgba(3,4,6,.9); }
.lightbox[open] { animation: fondu .25s ease-out; }
.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #111; }
.lightbox .bar button { background: none; border: 1px solid #444; color: #fff; min-width: 44px; min-height: 40px; cursor: pointer; border-radius: 8px; font: 600 .85rem var(--font-text); padding: 0 12px; }

/* ---------------------------------------------------------------- texte long */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------------------------------------------------------------- pied */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg2); font-size: .94rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot img { height: 28px; width: auto; margin-bottom: 18px; }
.foot h4 { font: 600 .8rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a, .foot button.linklike { color: var(--text2); }
.foot a:hover, .foot button.linklike:hover { color: var(--title); }
.foot .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
body:has(.buybar) .foot { padding-bottom: 110px; }

/* ---------------------------------------------------------------- bandeau cookies */
.consent { position: fixed; z-index: 60; left: 50%; bottom: 16px; translate: -50% 0; width: min(680px, 100% - 32px); display: none; gap: 18px; align-items: center; padding: 16px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.consent.on { display: flex; animation: fondu .35s ease-out; }
.consent p { margin: 0; font-size: .9rem; color: var(--text2); }
.consent .btns { flex: none; gap: 10px; }
.consent .btn { min-height: 42px; padding: 0 18px; font-size: .88rem; }

/* ---------------------------------------------------------------- nouveauté (une seule, une seule fois) */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 55; width: min(370px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--text); opacity: 1; translate: 0 0; transition: opacity .35s, translate .7s var(--ressort); }
@starting-style { .toast { opacity: 0; translate: 0 28px; } }
.toast.out { opacity: 0; translate: -28px 0; transition-duration: .3s; }
.toast .corps { display: contents; color: inherit; text-decoration: none; }
.toast.sans-img { grid-template-columns: 1fr auto; }
.toast img { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; }
.toast small { display: flex; align-items: center; gap: 6px; font: 700 .68rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 5px; }
.toast small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); animation: pouls 1.6s ease-in-out 3; }
@keyframes pouls { 50% { opacity: .35; transform: scale(.7); } }
.toast b { display: block; font: 600 .94rem/1.2 var(--font-text); color: var(--title); }
.toast span { display: block; font-size: .84rem; line-height: 1.38; color: var(--muted); }
.toast button { align-self: start; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.15rem; line-height: 1; min-width: 40px; min-height: 40px; display: grid; place-items: center; margin: -8px -8px 0 0; }

/* ---------------------------------------------------------------- apparitions
   Le texte apparaît une fois (IntersectionObserver, classe .in) ; sans JavaScript tout reste visible.
   Les images se dévoilent au rythme du défilement là où le navigateur sait le faire (animation-timeline). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--doux), transform .7s var(--doux); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes devoile { from { opacity: .3; scale: 1.1; } }
@keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  .card .media img, .gallery img {
    animation: devoile linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  .progress { animation: lecture linear both; animation-timeline: scroll(root); }
}

/* ---------------------------------------------------------------- transition carte -> fiche (navigateurs qui la gèrent) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--doux); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------------------------------------------------------------- écrans étroits */
@media (max-width: 1020px) {
  .hero .grid, .phero .grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .features.n3 { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery.big button:first-child { grid-row: span 1; aspect-ratio: 16 / 10; grid-column: span 3; }
}
@media (max-width: 760px) {
  .burger { display: grid; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .lang { align-self: flex-start; margin-top: 14px; }
  .nav .btn { margin-top: 14px; }
  .hero { padding: 40px 0 48px; }
  .cards, .cards.two, .features.n2, .features.n3 { grid-template-columns: 1fr; }
  .sect { padding: 72px 0; }
  .story { padding-block: 64px 48px; }
  .foot .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery.big button:first-child { grid-column: span 2; }
  .gallery.c3 { grid-template-columns: 1fr 1fr; }
  .minis { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 88px 1fr auto 18px; gap: 12px; }
  .mini img { width: 88px; height: 55px; }
  .story p:first-child { font-size: 1.18rem; }
  .story p { font-size: 1.02rem; }
  .foot li { margin: 0; }
  .foot li a, .foot button.linklike, .foot p a, .mail, .consent a { display: inline-flex; align-items: center; min-height: 40px; }
  .back, .logo { min-height: 40px; }
  details.spec summary { min-height: 40px; }
  .langbar .wrap > span { display: none; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent .btns .btn { flex: 1; }
  .toasts { left: 50%; translate: -50% 0; bottom: 12px; }
  .blob { filter: blur(50px); }
  .now-lbl span { display: none; }
  .buybar .nm { display: none; }
  .buybar .pr { margin-left: 0; }
  .buybar .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- animations réduites : réduit, pas supprimé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .js .hero h1 .w { transform: none; }
  .frame.tilt { transform: none; }
  .js .hero .frame { animation-name: fondu; animation-duration: .6s; }
  .js .phero .hero-txt > :not(h1) { animation-name: fondu; }
  .card:hover, .watch:hover, .mini:hover { transform: none; }
  .card:hover .media img, .gallery button:hover img { transform: none; }
  .now-lbl.swap b, .now-lbl.swap span { animation-name: fondu; }
  .btn.mag > .lbl { translate: none; }
  .toast, .toast.out { translate: none; }
  @starting-style { .toast { translate: none; } }
  .buybar { transition: opacity .3s; translate: 0 0; opacity: 0; pointer-events: none; }
  .buybar.on { opacity: 1; pointer-events: auto; }
  @supports (animation-timeline: view()) {
    .card .media img, .gallery img { animation-name: devoile-doux; }
  }
  ::view-transition-group(*), ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}
@keyframes devoile-doux { from { opacity: .3; } }

/* Trois directions artistiques, à choisir par le propriétaire (contenu.THEME ou --theme a|b|c).
   A « Atelier clair » : fond papier chaud, encre noire, accents sarcelle et corail — rare sur le marché.
   B « Graphite »      : sombre neutre, un seul accent sarcelle mesuré, sans néon.
   C « Pop »           : bleu nuit, jaune soleil et bleu ciel, formes rondes — activités, détente. */

[data-theme="a"] {
  color-scheme: light;
  --bg: #f7f5f0; --bg2: #efece4; --surface: #ffffff; --surface2: #f2efe8;
  --line: #e3ded3; --line2: #cfc8ba;
  --text: #2a2d33; --text2: #3a3e46; --title: #121418; --muted: #5f646c; --link: #0a7269;
  --accent: #121418; --on-accent: #ffffff; --accent2: #ff6a3d; --accent-text: #0a7269; --eyebrow: #0a7269;
  --mark: rgba(255, 106, 61, .30);
  --font-title: "Sora", "Segoe UI", system-ui, sans-serif; --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title-weight: 700; --title-track: -.025em;
  --radius: 14px; --radius-lg: 20px; --btn-radius: 12px;
  --shadow-sm: 0 1px 2px rgba(18,20,24,.06), 0 6px 18px rgba(18,20,24,.04);
  --shadow-lg: 0 28px 60px -26px rgba(18,20,24,.30);
  --shadow-btn: 0 10px 22px -10px rgba(18,20,24,.45);
  --header-bg: rgba(247, 245, 240, .86);
  --hero-bg: radial-gradient(1100px 480px at 88% -10%, #e3f4f0 0%, transparent 62%), #f7f5f0;
  --tick: #ffffff; --tick-bg: #0b8f84;
  --perf-bg: #eaf6f3; --perf-line: #bfe3dd;
  --cta-bg: #121418; --cta-text: #ffffff; --cta-muted: #b9bec7; --cta-btn: #ff6a3d; --cta-btn-text: #121418;
  --blob1: #bfe8e1; --blob2: #ffd6c6; --spot: rgba(11, 143, 132, .12);
}

[data-theme="b"] {
  color-scheme: dark;
  --bg: #0e0f12; --bg2: #121418; --surface: #17191e; --surface2: #1e2127;
  --line: #262a31; --line2: #363b44;
  --text: #d8dce3; --text2: #c3c8d0; --title: #f4f6f9; --muted: #8b929e; --link: #7ee2d4;
  --accent: #4fd1c1; --on-accent: #06201d; --accent2: #ffb547; --accent-text: #6fe0d2; --eyebrow: #8b929e;
  --mark: rgba(79, 209, 193, .28);
  --font-title: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title-weight: 600; --title-track: -.02em;
  --radius: 12px; --radius-lg: 16px; --btn-radius: 10px;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03) inset;
  --shadow-lg: 0 30px 60px -30px rgba(0,0,0,.7);
  --shadow-btn: 0 10px 24px -12px rgba(79,209,193,.55);
  --header-bg: rgba(14, 15, 18, .84);
  --hero-bg: radial-gradient(900px 420px at 82% -8%, rgba(79,209,193,.10) 0%, transparent 62%), #0e0f12;
  --tick: #06201d; --tick-bg: #4fd1c1;
  --perf-bg: #142321; --perf-line: #244540;
  --cta-bg: linear-gradient(135deg, #17191e 0%, #18302c 100%); --cta-text: #ffffff; --cta-muted: #9aa3ae; --cta-btn: #4fd1c1; --cta-btn-text: #06201d;
  --blob1: rgba(79, 209, 193, .22); --blob2: rgba(255, 181, 71, .12); --spot: rgba(79, 209, 193, .10);
}

[data-theme="c"] {
  color-scheme: dark;
  --bg: #0f1220; --bg2: #13172b; --surface: #181c33; --surface2: #20264a;
  --line: #262c4f; --line2: #39416e;
  --text: #dde2f5; --text2: #c9cfea; --title: #ffffff; --muted: #959dc3; --link: #7cc8ff;
  --accent: #ffd43b; --on-accent: #1a1400; --accent2: #4cc3ff; --accent-text: #ffd43b; --eyebrow: #7cc8ff;
  --mark: rgba(76, 195, 255, .38);
  --font-title: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title-weight: 800; --title-track: -.03em;
  --radius: 18px; --radius-lg: 24px; --btn-radius: 999px;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.04) inset;
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.75);
  --shadow-btn: 0 12px 26px -12px rgba(255,212,59,.6);
  --header-bg: rgba(15, 18, 32, .86);
  --hero-bg: radial-gradient(760px 420px at 12% 0%, rgba(76,195,255,.16) 0%, transparent 62%), radial-gradient(700px 420px at 92% 18%, rgba(255,212,59,.10) 0%, transparent 60%), #0f1220;
  --tick: #1a1400; --tick-bg: #ffd43b;
  --perf-bg: #1c2246; --perf-line: #303a74;
  --cta-bg: linear-gradient(120deg, #2f8fff 0%, #7a5cff 100%); --cta-text: #ffffff; --cta-muted: rgba(255,255,255,.86); --cta-btn: #ffd43b; --cta-btn-text: #1a1400;
  --blob1: rgba(76, 195, 255, .30); --blob2: rgba(255, 212, 59, .18); --spot: rgba(255, 212, 59, .10);
}

/* pastilles par script (générées) */
.dot-neural-dive { --c: #5af0e1; }
.dot-cyborg-ped { --c: #ff4d6d; }
.dot-vertical-ad-beams { --c: #c05cff; }
@media (prefers-reduced-motion: no-preference) {
  .vt-neural-dive { view-transition-name: img-neural-dive; }
  .vtn-neural-dive { view-transition-name: nom-neural-dive; }
  .vt-cyborg-ped { view-transition-name: img-cyborg-ped; }
  .vtn-cyborg-ped { view-transition-name: nom-cyborg-ped; }
  .vt-vertical-ad-beams { view-transition-name: img-vertical-ad-beams; }
  .vtn-vertical-ad-beams { view-transition-name: nom-vertical-ad-beams; }
}
