/* Vitrine Deep Square — ardoise + bleu acier (comme l'app) avec l'accent orangé du logo. Aucun style en ligne. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg-top: #2a313d; --bg-bot: #12161c;
  --text: #e6e9ee; --muted: #9aa3b0; --acc: #426f9e; --acc-2: #6892c0; --hot: #d8704e; --hot-2: #ef9370;
  --line: rgba(185, 198, 216, .14); --glass: rgba(40, 47, 59, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 400 1rem/1.6 var(--font); background: linear-gradient(180deg, var(--bg-top), var(--bg-bot)) fixed; min-height: 100vh; -webkit-font-smoothing: antialiased; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img { max-width: 100%; height: auto; }
a { color: #86aee0; text-underline-offset: 3px; text-decoration-color: rgba(134, 174, 224, .4); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--hot-2); outline-offset: 3px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px max(16px, calc((100vw - 1100px) / 2)); background: rgba(24, 29, 38, .58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: max(12px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .16em; font-size: .9rem; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: var(--hot-2); }

.btn { display: inline-block; padding: 14px 26px; border-radius: 6px; font-weight: 600; color: #fff; text-decoration: none; background: linear-gradient(180deg, #4d7fb3, #386494); box-shadow: 0 8px 24px rgba(56, 100, 148, .42), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(56, 100, 148, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.link { color: #86aee0; font-weight: 500; }

.hero { max-width: 1100px; margin: 0 auto; padding: 48px 20px 40px; display: grid; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 4px; font: 500 .72rem var(--font); letter-spacing: .16em; text-transform: uppercase; color: #c8d4e4; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.badge .dot { width: 7px; height: 7px; background: var(--hot); transform: rotate(45deg); box-shadow: 0 0 10px rgba(216, 112, 78, .8); animation: breathe 2.6s ease-in-out infinite; }
h1 { margin: 0; font-size: clamp(2.3rem, 7.5vw, 4rem); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--hot-2), #f6b79c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 22px 0 0; max-width: 34em; font-size: 1.12rem; color: #c3ccd8; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.cta-center { justify-content: center; }
.note { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }

/* Téléphone de démonstration */
.hero-demo { display: grid; place-items: center; }
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 15.6; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #1b2029, #0a0d12); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(185, 198, 216, .22), inset 0 0 0 2px #0a0d12; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 14px 8px 12px; background: linear-gradient(180deg, #232a36, #0d1117); }
.steps { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 4px; }
.step-label { font: 600 .6rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: #c8d4e4; transition: opacity .25s; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(154, 163, 176, .35); transition: background .3s, box-shadow .3s; }
.dots i.on { background: var(--hot); box-shadow: 0 0 8px rgba(216, 112, 78, .75); }

.stage { display: flex; gap: 6px; align-items: stretch; }
.evalbar { position: relative; flex: 0 0 11px; border-radius: 3px; overflow: hidden; background: #0c0f14; box-shadow: inset 0 0 0 1px rgba(185, 198, 216, .2); }
.evalbar .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(180deg, #f2f5f8, #c7d0da); transition: height 1s cubic-bezier(.3, 1, .4, 1); }
.evalbar span { position: absolute; left: 50%; top: 4px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 600 .5rem var(--mono); color: #1a1f27; opacity: 0; transition: opacity .3s; }
.evalbar.show span { opacity: 1; }
.board-wrap { position: relative; flex: 1; }
.board { position: relative; width: 100%; aspect-ratio: 1; display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr); background: #12161c; box-shadow: 0 0 0 1px rgba(185, 198, 216, .18); }
.board .sq { position: relative; }
.board .sq.l { background: rgba(222, 227, 230, .9); }
.board .sq.d { background: rgba(120, 138, 148, .55); }
.board .sq.last { box-shadow: inset 0 0 0 100px rgba(104, 146, 192, .45); }
.board .sq.blunder { box-shadow: inset 0 0 0 100px rgba(216, 112, 78, .55); animation: pulse 1s ease-in-out infinite; }
.board .sq.hint { box-shadow: inset 0 0 0 3px var(--hot), inset 0 0 14px rgba(216, 112, 78, .55); }
.board .pc { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; will-change: transform; transition: opacity .3s; }
.board .pc img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.board .pc.gone { opacity: 0; }

.chip { position: absolute; left: 50%; bottom: -16px; display: flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 999px; background: rgba(46, 56, 72, .92); box-shadow: inset 0 0 0 1px rgba(185, 198, 216, .28), 0 6px 16px rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, 6px) scale(.94); transition: opacity .22s, transform .3s cubic-bezier(.34, 1.4, .64, 1); white-space: nowrap; }
.chip[data-tone="bad"] { background: rgba(120, 52, 34, .92); box-shadow: inset 0 0 0 1px rgba(239, 147, 112, .5), 0 6px 16px rgba(0, 0, 0, .35); }
.chip[data-tone="ok"] { background: rgba(34, 92, 76, .92); box-shadow: inset 0 0 0 1px rgba(120, 220, 190, .5), 0 6px 16px rgba(0, 0, 0, .35); }
.chip.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.chip img { width: 20px; height: 20px; object-fit: contain; }
.chip b { font: 600 .78rem var(--mono); }

.panel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 11px 12px; border-radius: 6px; background: rgba(50, 58, 72, .62); box-shadow: inset 0 0 0 1px var(--line); transition: background .35s, box-shadow .35s; }
.panel[data-tone="bad"] { background: rgba(92, 46, 34, .6); box-shadow: inset 0 0 0 1px rgba(239, 147, 112, .4); }
.panel[data-tone="ok"] { background: rgba(32, 78, 66, .6); box-shadow: inset 0 0 0 1px rgba(120, 220, 190, .4); }
.p-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: opacity .25s; }
.p-text b { font-size: .8rem; }
.p-text span { font-size: .66rem; line-height: 1.35; color: #b9c3d1; }
.panel.swap .p-text { opacity: 0; }
.p-ico { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1.5px rgba(185, 198, 216, .3); }
.p-ico svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s cubic-bezier(.34, 1.4, .64, 1); }
.p-ico[data-ico="scan"] .i-scan, .p-ico[data-ico="ok"] .i-ok, .p-ico[data-ico="bad"] .i-bad { opacity: 1; transform: scale(1); }
.p-ico[data-ico="scan"] { color: #8fb7e6; }
.p-ico[data-ico="ok"] { color: #7fe0c0; box-shadow: inset 0 0 0 1.5px rgba(120, 220, 190, .7), 0 0 14px rgba(120, 220, 190, .35); }
.p-ico[data-ico="bad"] { color: var(--hot-2); box-shadow: inset 0 0 0 1.5px rgba(239, 147, 112, .8), 0 0 14px rgba(216, 112, 78, .4); }

/* Sections */
.block { max-width: 1100px; margin: 0 auto; padding: 64px 20px; }
.block h2 { margin: 0; text-align: center; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.sub { max-width: 38em; margin: 14px auto 0; text-align: center; color: #b4bfcd; }
.cards { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 16px; }
.card { padding: 22px; border-radius: 8px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .18); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(239, 147, 112, .35), 0 16px 36px rgba(0, 0, 0, .28); }
.card h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: #b4bfcd; font-size: .95rem; }
.card b { color: var(--text); }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; color: var(--hot-2); background: rgba(216, 112, 78, .14); box-shadow: inset 0 0 0 1px rgba(239, 147, 112, .3); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pills { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li { padding: 7px 14px; border-radius: 4px; font-size: .85rem; color: #c3ccd8; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }

.gallery { margin: 36px -20px 0; padding: 4px 20px 18px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 min(250px, 70vw); margin: 0; scroll-snap-align: center; }
.frame { padding: 7px; border-radius: 34px; background: linear-gradient(160deg, #1b2029, #0a0d12); box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(185, 198, 216, .2); }
.frame img { display: block; width: 100%; border-radius: 27px; }
.gallery figcaption { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--muted); }

.beta-card { max-width: 640px; margin: 0 auto; padding: 38px 26px; text-align: center; border-radius: 10px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .3); }
.beta-card img { border-radius: 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.beta-card h2 { margin-top: 18px; }
.beta-card p { margin: 12px 0 0; color: #b4bfcd; }

.foot { padding: 36px 20px max(36px, env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); color: #b4bfcd; }
.foot p { margin: 6px 0; }
.foot .small { font-size: .8rem; color: var(--muted); max-width: 52em; margin-left: auto; margin-right: auto; }

@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding-top: 72px; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { margin: 40px 0 0; padding: 4px 0 18px; justify-content: center; overflow: visible; }
  .gallery figure { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Vidéo d'ambiance derrière le haut de page : assombrie, le texte garde la priorité */
.hero-wrap { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #12161c; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: brightness(.62) saturate(.9); opacity: 0; transition: opacity 1.2s ease; }
.hero-bg video.ready { opacity: 1; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: url('../video/hero-poster.jpg') 60% 50% / cover no-repeat; filter: brightness(.62) saturate(.9); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 22, 28, .94) 0%, rgba(18, 22, 28, .78) 42%, rgba(18, 22, 28, .4) 100%),
    linear-gradient(180deg, rgba(18, 22, 28, .35) 0%, rgba(18, 22, 28, 0) 30%, rgba(18, 22, 28, 0) 62%, #12161c 100%); }
@media (max-width: 899px) { .hero-bg::after { background: linear-gradient(180deg, rgba(18, 22, 28, .82) 0%, rgba(18, 22, 28, .7) 55%, #12161c 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg video { display: none; } }
