/* Valfrost : page de présentation du projet */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url(fonts/inter-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Morpheus"; src: url(art/fonts/morpheus.ttf) format("truetype"); font-display: swap; }

:root {
  --bg: #04060b; --bg-2: #070b14; --panel: rgba(13, 19, 32, .62); --panel-solid: #0b111d;
  --ink: #eef2f9; --ink-2: #aab5c7; --ink-3: #6f7b8f;
  --line: rgba(170, 200, 240, .11); --line-2: rgba(170, 200, 240, .2);
  --ice: #9bdcff; --ice-2: #52b6ff; --ice-glow: rgba(82, 182, 255, .35); --gold: #f0cd78;
  --radius: 18px; --radius-sm: 12px;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.03em; line-height: 1.04; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Boutons ------------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--body);
  color: #04121f; background: linear-gradient(180deg, #d9f2ff, #8fd3ff 55%, #5bb8f5); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 30px -8px var(--ice-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 16px 40px -8px rgba(82, 182, 255, .55); }
.btn svg { width: 18px; height: 18px; }
.btn > svg:first-child { fill: currentColor; stroke: none; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line-2) inset; backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(170, 200, 240, .35) inset; }
.btn-ghost > svg:first-child { fill: none; stroke: currentColor; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* --- Barre du haut --------------------------------------------------------------------------------------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.bar.solid { background: rgba(5, 8, 14, .72); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; height: 72px; width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 26px/1 "Morpheus", serif; letter-spacing: .02em; color: var(--gold); }
.mark { width: 28px; height: 28px; flex: none; stroke: var(--ice); stroke-width: 1.6; filter: drop-shadow(0 0 8px rgba(82, 182, 255, .55)); }
.mark-xl { width: 76px; height: 76px; margin: 0 auto 28px; stroke-width: 1.2; filter: drop-shadow(0 0 22px rgba(82, 182, 255, .6)); display: block; }
.brand span { background: linear-gradient(180deg, #fff6cf, var(--gold) 50%, #c48b1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.links > a:not(.btn) { color: var(--ink-2); transition: color .2s; }
.links > a:not(.btn):hover { color: var(--ink); }
.links .btn + .btn { margin-left: -10px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 8px 10px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line) inset; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary, .lang summary:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; display: grid; padding: 6px; border-radius: 14px; background: rgba(10, 15, 26, .96); box-shadow: 0 0 0 1px var(--line-2) inset, 0 24px 50px rgba(0, 0, 0, .6); backdrop-filter: blur(16px); }
.lang-list a { padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.lang-list a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.lang-list a.on { color: var(--ice); }
.menu-check, .menu-btn { display: none; }

/* --- En-têtes de section ------------------------------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); margin-bottom: 18px; }
.head h2 { font-size: clamp(34px, 4.6vw, 60px); background: linear-gradient(180deg, #fff, #c9d6ea); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; margin-top: 20px; max-width: 640px; }
.head.center .lead { margin-inline: auto; }

/* --- Héros ------------------------------------------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url(art/hero-wide.jpg) center 30% / cover no-repeat; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 6, 11, .96) 0%, rgba(4, 6, 11, .82) 42%, rgba(4, 6, 11, .45) 100%), linear-gradient(0deg, var(--bg) 2%, transparent 40%), linear-gradient(180deg, rgba(4, 6, 11, .6), transparent 25%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.a1 { width: 55vw; height: 40vw; left: -10vw; top: -14vw; background: radial-gradient(closest-side, rgba(70, 160, 255, .55), transparent); }
.a2 { width: 45vw; height: 35vw; right: -8vw; bottom: -10vw; background: radial-gradient(closest-side, rgba(120, 220, 255, .35), transparent); animation-duration: 24s; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero .kicker { padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(82, 182, 255, .08); box-shadow: 0 0 0 1px rgba(155, 220, 255, .18) inset; letter-spacing: .1em; font-size: 11.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5cf29a; box-shadow: 0 0 0 4px rgba(92, 242, 154, .15), 0 0 12px #5cf29a; }
.hero h1 { font-size: clamp(42px, 5.6vw, 86px); letter-spacing: -.045em; line-height: .98; }
.hero h1 span { display: block; }
.ice { background: linear-gradient(100deg, #e9f7ff 0%, var(--ice) 35%, #4fb3ff 70%, #c6ecff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; padding-bottom: .08em; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero .lead { font-size: clamp(16px, 1.3vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.actions.center { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-3); font-size: 14px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; }
.chips li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(155, 220, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239bdcff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* composition : launcher, navigateur, téléphone */
.hero-stage { perspective: 1600px; }
.stage { position: relative; aspect-ratio: 1 / .82; transform: rotateY(-12deg) rotateX(5deg); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.win { position: absolute; border-radius: 14px; overflow: hidden; background: #0a0f19; box-shadow: 0 0 0 1px rgba(170, 200, 240, .16), 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -20px var(--ice-glow); }
.win img { width: 100%; height: auto; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: linear-gradient(180deg, #151c2b, #0f1522); border-bottom: 1px solid rgba(170, 200, 240, .08); font: 500 11px/1 var(--body); color: var(--ink-3); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3346; }
.win-bar span { margin-left: 10px; }
.win-bar.url span { margin: 0 auto; padding: 5px 18px; border-radius: 999px; background: rgba(255, 255, 255, .05); transform: translateX(-20px); }
.win-launcher { width: 70%; left: 0; top: 2%; transform: translateZ(-60px); opacity: .85; }
.win-browser { width: 82%; right: 0; top: 24%; transform: translateZ(30px); }
.phone { position: relative; border-radius: 34px; padding: 9px; background: linear-gradient(145deg, #2b3446, #0d121c 40%, #1c2433); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -20px rgba(0, 0, 0, .85); }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #05070b; border-radius: 99px; z-index: 2; }
.phone-screen { border-radius: 26px; overflow: hidden; aspect-ratio: 390 / 844; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-hero { position: absolute; width: 27%; left: 6%; bottom: -4%; transform: translateZ(90px); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--ink-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue span { width: 22px; height: 34px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--line-2) inset; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ice); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* --- Film ------------------------------------------------------------------------------------------------ */
.film::before { content: ""; position: absolute; left: 50%; top: 30%; width: 80vw; height: 50vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(82, 182, 255, .14), transparent); pointer-events: none; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 120px -40px var(--ice-glow); }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; border: 0; cursor: pointer; color: var(--ink);
  background: radial-gradient(circle at center, rgba(4, 6, 11, .1), rgba(4, 6, 11, .55)); transition: opacity .4s; font: inherit; }
.play-btn .ring { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset; transition: transform .35s var(--ease), background .35s; }
.play-btn .ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(155, 220, 255, .35); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play-btn svg { width: 34px; height: 34px; fill: #fff; stroke: none; margin-left: 5px; }
.play-btn:hover .ring { transform: scale(1.06); background: rgba(155, 220, 255, .22); }
.play-txt { display: grid; text-align: left; gap: 4px; }
.play-txt b { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.play-txt small { color: var(--ink-2); font-size: 13px; }
.player.playing .play-btn { opacity: 0; pointer-events: none; }

/* --- Architecture ----------------------------------------------------------------------------------------- */
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(60px, 8vw, 110px); counter-reset: none; position: relative; }
.layer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.layer:nth-child(even) .layer-media { order: 2; }
.layer-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .85); background: #0a0f19; transform: translateZ(0); }
.layer-media img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.layer:hover .layer-media img { transform: scale(1.03); }
.num { font: 600 13px/1 var(--mono); color: var(--ice); letter-spacing: .1em; display: inline-flex; align-items: center; gap: 12px; }
.num::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--ice), transparent); }
.layer h3 { font-size: clamp(28px, 3vw, 40px); margin: 18px 0 16px; }
.layer p { color: var(--ink-2); font-size: 17px; }
.term { margin: 0; padding: 26px 28px; min-height: 100%; aspect-ratio: 16 / 10; font: 400 clamp(11px, 1.05vw, 14px)/1.85 var(--mono); color: #7fd3ff; white-space: pre-wrap; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, rgba(82, 182, 255, .1), transparent), #060a12; }
.term b { color: #e9f6ff; font-weight: 600; }
.term i { font-style: normal; color: #5cf29a; }
.caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: var(--ice); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- Chiffres ----------------------------------------------------------------------------------------------- */
.numbers { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(82, 182, 255, .04), transparent); }
.nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.n { padding: 44px 18px; text-align: center; }
.n + .n { border-left: 1px solid var(--line); }
.n b { display: block; font: 600 clamp(28px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #9fb8d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.n span { display: block; margin-top: 12px; color: var(--ink-3); font-size: 13.5px; }

/* --- Grille des fonctions du site --------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(20, 28, 45, .7), rgba(10, 15, 25, .9)); box-shadow: 0 0 0 1px var(--line) inset;
  transition: box-shadow .35s, transform .35s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--line-2) inset, 0 30px 60px -30px rgba(0, 0, 0, .8); transform: translateY(-3px); }
.card.wide { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.card-media { position: relative; flex: 1; min-height: 170px; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 15, 25, 1) 0%, rgba(10, 15, 25, 0) 45%); }
.card-copy { position: relative; padding: 0 26px 26px; margin-top: -30px; }
.card h3 { font-size: 21px; letter-spacing: -.02em; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.langs { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 30px 20px 50px; }
.langs span { font: 600 22px/1 var(--display); padding: 14px 18px; border-radius: 14px; color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line-2) inset; }
.langs span:first-child { color: #04121f; background: linear-gradient(180deg, #d9f2ff, #8fd3ff); }
.langs::after { display: none; }

/* --- Administration --------------------------------------------------------------------------------------- */
.tabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.tab-list { display: grid; gap: 10px; }
.tab { position: relative; text-align: left; border: 0; cursor: pointer; padding: 20px 22px 20px 26px; border-radius: 14px; background: transparent; color: var(--ink-3); font: inherit; overflow: hidden; transition: background .3s, color .3s; }
.tab b { display: block; font: 600 18px/1.3 var(--display); color: var(--ink-2); letter-spacing: -.01em; transition: color .3s; }
.tab span:not(.bar-fill) { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.tab:hover b { color: var(--ink); }
.tab.on { background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink-2); }
.tab.on b { color: var(--ink); }
.tab.on span:not(.bar-fill) { max-height: 200px; opacity: 1; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.bar-fill::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
.tab.on .bar-fill::after { animation: fill var(--tab-time, 7s) linear forwards; }
.tabs.paused .tab.on .bar-fill::after { animation: none; height: 100%; }
@keyframes fill { to { height: 100%; } }
.tab-view { position: relative; }
.tab-view .panel { display: none; }
.tab-view .panel.on { display: block; animation: panel .6s var(--ease); }
@keyframes panel { from { opacity: 0; transform: scale(1.015); } }

/* --- Jeu ------------------------------------------------------------------------------------------------- */
.play .head { margin-bottom: 44px; }
.cinema-frame { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 60px 140px -40px rgba(0, 0, 0, .95), 0 0 140px -50px var(--ice-glow); }
.cinema-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.on img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -1%); } }
.slide figcaption { position: absolute; left: 28px; bottom: 24px; padding: 9px 16px; border-radius: 999px; font: 600 14px/1 var(--body); background: rgba(4, 6, 11, .55); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.cinema-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .45; background: #000; aspect-ratio: 16 / 9; transition: opacity .3s, box-shadow .3s; box-shadow: 0 0 0 1px var(--line) inset; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .8; }
.thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--ice); }
.points { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; padding-top: 18px; border-top: 1px solid var(--line); }
.points svg { flex: none; width: 20px; height: 20px; color: var(--ice); margin-top: 2px; }

/* --- Mobile ---------------------------------------------------------------------------------------------- */
.mobile { overflow: hidden; }
.mobile-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.phones { position: relative; height: clamp(480px, 52vw, 700px); }
.phones .phone { position: absolute; width: clamp(180px, 19vw, 270px); will-change: transform; }
.p-left { left: 2%; top: 12%; transform: rotate(-6deg); }
.p-mid { left: 50%; top: 0; margin-left: calc(clamp(180px, 19vw, 270px) / -2); z-index: 2; }
.p-right { right: 2%; top: 16%; transform: rotate(6deg); }
.mobile::before { content: ""; position: absolute; right: -10vw; top: 10%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(82, 182, 255, .14), transparent); pointer-events: none; }

/* --- Technique -------------------------------------------------------------------------------------------- */
.specs-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--ink-3); font-size: 14px; }
.specs dd { margin: 0; color: var(--ink); font-size: 16px; }

/* --- Offre ------------------------------------------------------------------------------------------------ */
.pack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pack-item { padding: 30px 26px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(20, 28, 45, .6), rgba(10, 15, 25, .6)); box-shadow: 0 0 0 1px var(--line) inset; }
.pack-item svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--ice); background: rgba(82, 182, 255, .1); box-shadow: 0 0 0 1px rgba(155, 220, 255, .2) inset; stroke-width: 1.8; }
.pack-item h3 { font-size: 19px; margin: 22px 0 8px; letter-spacing: -.015em; }
.pack-item p { color: var(--ink-2); font-size: 15px; }

/* --- Appel final ------------------------------------------------------------------------------------------ */
.final { position: relative; padding: clamp(100px, 14vw, 180px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; background: url(art/icecrown.jpg) center / cover; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 50% 50%, rgba(4, 6, 11, .55), rgba(4, 6, 11, .96)), linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.final-in img { margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); }
.final h2 { font-size: clamp(36px, 5.2vw, 70px); max-width: 860px; margin-inline: auto; }
.final .lead { margin-inline: auto; }

/* --- Pied --------------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--ink-3); font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.foot .brand { font-size: 22px; }
.foot-in > a:not(.brand) { color: var(--ink-2); }
.foot-in > a:not(.brand):hover { color: var(--ink); }
.foot p { flex-basis: 100%; max-width: 820px; line-height: 1.6; }

/* --- Apparition au défilement ------------------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- Langues sans les polices latines ----------------------------------------------------------------------- */
.lang-zh h1, .lang-zh h2, .lang-zh h3 { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.lang-ru .hero h1 { font-size: clamp(40px, 5.6vw, 82px); }

/* --- Écrans moyens et petits -------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .links { gap: 16px; }
  .links > a:not(.btn):nth-child(n+6):nth-child(-n+7) { display: none; }
}
@media (max-width: 1020px) {
  .menu-btn { display: block; width: 44px; height: 44px; margin-left: auto; position: relative; cursor: pointer; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2) inset; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); content: ""; transition: transform .25s, top .25s, background .25s; }
  .menu-btn span { top: 21px; } .menu-btn span::before { left: 0; right: 0; top: -6px; } .menu-btn span::after { left: 0; right: 0; top: 6px; }
  .menu-check { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .menu-check:focus-visible + .menu-btn { outline: 2px solid var(--ice); outline-offset: 2px; }
  .menu-check:checked + .menu-btn span { background: transparent; }
  .menu-check:checked + .menu-btn span::before { top: 0; transform: rotate(45deg); }
  .menu-check:checked + .menu-btn span::after { top: 0; transform: rotate(-45deg); }
  .links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(5, 8, 14, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .links > a:not(.btn), .links > a:not(.btn):nth-child(n+6):nth-child(-n+7) { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .links .btn { margin-top: 14px; height: 48px; }
  .links .btn + .btn { margin-left: 0; margin-top: 10px; }
  .lang { padding: 14px 0 4px; }
  .lang-list { position: static; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: none; box-shadow: none; }
  .lang-list a { box-shadow: 0 0 0 1px var(--line-2) inset; }
  .menu-check:checked ~ .links { display: flex; }
  body:has(.menu-check:checked) { overflow: hidden; }
  .bar:has(.menu-check:checked) { background: rgba(5, 8, 14, .97); }

  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 640px; width: 100%; margin: 10px auto 0; }
  .stage { transform: rotateY(-6deg) rotateX(4deg); }
  .layer, .layer:nth-child(even) { grid-template-columns: 1fr; }
  .layer:nth-child(even) .layer-media { order: 0; }
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .n:nth-child(4) { border-left: 0; }
  .n:nth-child(n+4) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.tall { grid-row: span 1; }
  .card.tall .card-media { min-height: 320px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-grid, .specs-grid { grid-template-columns: 1fr; }
  .pack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-in { height: 64px; }
  .links { top: 64px; max-height: calc(100dvh - 64px); }
  .brand { font-size: 23px; }
  .brand img { width: 44px; }
  .hero { min-height: auto; padding: 100px 0 70px; }
  .actions .btn { flex: 1 1 100%; }
  .chips { flex-direction: column; gap: 10px; }
  .scroll-cue { display: none; }
  .stage { transform: none; }
  .win-bar { height: 22px; font-size: 9px; }
  .win-bar i { width: 7px; height: 7px; }
  .phone { border-radius: 24px; padding: 6px; }
  .phone-screen { border-radius: 19px; }
  .phone::before { top: 11px; height: 12px; }
  .play-btn { flex-direction: column; gap: 12px; }
  .play-btn .ring { width: 70px; height: 70px; }
  .play-btn svg { width: 26px; height: 26px; }
  .play-txt { text-align: center; }
  .play-txt b { font-size: 16px; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n { padding: 30px 10px; }
  .n + .n { border-left: 0; }
  .n:nth-child(even) { border-left: 1px solid var(--line); }
  .n:nth-child(n+3) { border-top: 1px solid var(--line); }
  .n:last-child { grid-column: span 2; border-left: 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card.wide { grid-column: span 1; }
  .card-media, .card.tall .card-media { min-height: 220px; }
  .tab-list { grid-template-columns: 1fr; }
  .cinema-frame { width: 100%; border-radius: 0; }
  .cinema-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .slide figcaption { left: 14px; bottom: 12px; font-size: 12px; padding: 7px 12px; }
  .points { grid-template-columns: 1fr; gap: 0; }
  .points li { padding: 14px 0; }
  .phones { height: 125vw; }
  .phones .phone { width: 44vw; }
  .p-mid { margin-left: -22vw; }
  .p-left { left: -4%; }
  .p-right { right: -4%; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .pack { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
