/* Fluvia : site, espace compte et administration. Même palette que les applis. */
:root {
  --base: #07080b; --panel: #101218; --raised: #1a1d26; --hover: #262a36; --line: rgba(255, 255, 255, 0.09);
  --ink: #f5f6fa; --soft: #c9cedb; --muted: #8f97a8; --accent: #ff8038; --gold: #ffb347; --ok: #58d68d; --warn: #ffb347;
  --brand: linear-gradient(120deg, #ff8038 0%, #ff9a40 45%, #ffb347 100%);
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hidden { display: none !important; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 8, 11, 0.72); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; background: url("/assets/logo.svg") center / contain no-repeat; flex: none; box-shadow: 0 6px 22px rgba(255, 90, 78, 0.45); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a:not(.button) { text-decoration: none; padding: 8px 13px; border-radius: 10px; color: var(--muted); font-size: 0.95rem; transition: color 0.15s, background 0.15s; }
.nav a:not(.button):hover, .nav a.on { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* Boutons et champs */
button, .button {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--ink);
  padding: 11px 20px; border-radius: 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background 0.15s, transform 0.12s, box-shadow 0.2s, border-color 0.15s; white-space: nowrap;
}
button:hover, .button:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.16); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary, .button.primary { background: #fff; color: #0a0b0f; border-color: #fff; }
button.primary:hover, .button.primary:hover { background: #e9ebf2; }
button.accent, .button.accent { background: var(--brand); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(255, 90, 78, 0.32); }
button.accent:hover, .button.accent:hover { box-shadow: 0 14px 40px rgba(255, 90, 78, 0.48); transform: translateY(-1px); }
button.ghost { background: transparent; }
button.danger { color: #ff8a80; }
button.tiny { padding: 6px 12px; font-size: 0.85rem; border-radius: 9px; }
.button.big, button.big { padding: 15px 26px; font-size: 1.05rem; border-radius: 14px; }
button:focus-visible, .button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input, select { font: inherit; color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; transition: border-color 0.15s; }
input:focus { border-color: rgba(255, 179, 71, 0.6); outline: none; }
input::placeholder { color: #5d6575; }
input.code { font-size: 1.7rem; letter-spacing: 0.42em; text-align: center; font-weight: 700; font-family: var(--display); }

/* Cartes, étiquettes, messages */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.narrow { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(700px 420px at 50% 0%, rgba(255, 90, 78, 0.16), transparent 70%); }
.narrow .card { width: 100%; max-width: 460px; }
.narrow h1 { font-size: 2rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); white-space: nowrap; }
.tag.on { background: rgba(88, 214, 141, 0.13); color: var(--ok); }
.tag.off { background: rgba(255, 90, 78, 0.14); color: #ff8a80; }
.tag.warn { background: rgba(255, 179, 71, 0.15); color: var(--warn); }
.notice { border-radius: 12px; padding: 13px 16px; font-size: 0.93rem; background: var(--raised); }
.notice.error { background: rgba(255, 90, 78, 0.12); color: #ffb0a9; border: 1px solid rgba(255, 90, 78, 0.25); }
.notice.good { background: rgba(88, 214, 141, 0.1); color: #9fe9bd; border: 1px solid rgba(88, 214, 141, 0.22); }

/* ===== Accueil ===== */
.hero { position: relative; padding: 76px 0 0; text-align: center; }
.aurora { position: absolute; inset: -140px 0 auto; height: 900px; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.34; }
.aurora::before { width: 620px; height: 420px; left: 50%; top: 40px; margin-left: -560px; background: #ff8038; }
.aurora::after { width: 560px; height: 400px; left: 50%; top: 110px; margin-left: 60px; background: #7a4bff; opacity: 0.24; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 0.88rem; color: var(--soft); }
.pill b { background: var(--brand); color: #fff; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.hero h1 { margin: 26px auto 0; max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--soft); max-width: 56ch; margin: 24px auto 0; }
.hero .cta { justify-content: center; margin-top: 34px; }
.hero .fine { margin-top: 18px; color: var(--muted); font-size: 0.93rem; }
.hero .fine strong { color: var(--ink); }

/* Maquette de l'appli */
.stage { position: relative; margin: 64px auto 0; max-width: 1040px; perspective: 1800px; }
.window { position: relative; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0b0d12; overflow: hidden; text-align: left;
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 -20px 120px rgba(255, 90, 78, 0.16); transform: rotateX(7deg); transform-origin: 50% 0; }
.w-bar { display: flex; align-items: center; gap: 18px; padding: 14px 20px; position: absolute; inset: 0 0 auto; z-index: 2; }
.w-bar .dot { width: 22px; height: 22px; border-radius: 7px; background: var(--brand); }
.w-bar span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.w-bar span.on { color: #fff; box-shadow: 0 2px 0 var(--accent); padding-bottom: 3px; }
.w-bar .search { margin-left: auto; width: 150px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); }
.w-bar .avatar { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, #58d6c8, #3b7bff); }
.w-hero { height: 330px; position: relative; background:
  linear-gradient(90deg, rgba(11, 13, 18, 0.96) 0%, rgba(11, 13, 18, 0.55) 42%, transparent 72%),
  linear-gradient(0deg, #0b0d12 0%, transparent 46%),
  radial-gradient(420px 300px at 76% 34%, #ffb347 0%, transparent 62%),
  radial-gradient(520px 380px at 58% 70%, #c0392b 0%, transparent 66%),
  linear-gradient(135deg, #2a1640, #10263f 60%, #0b0d12); }
.w-copy { position: absolute; left: 34px; bottom: 44px; width: 46%; }
.w-copy .kicker { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; background: var(--accent); padding: 3px 8px; border-radius: 5px; }
.w-copy .t1 { height: 30px; width: 88%; border-radius: 8px; background: #fff; margin-top: 14px; }
.w-copy .t2, .w-copy .t3 { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.4); margin-top: 14px; width: 96%; }
.w-copy .t3 { width: 70%; margin-top: 8px; }
.w-copy .btns { display: flex; gap: 10px; margin-top: 20px; }
.w-copy .btns i { height: 32px; width: 104px; border-radius: 9px; background: #fff; }
.w-copy .btns i + i { background: rgba(255, 255, 255, 0.18); width: 122px; }
.w-rail { padding: 6px 34px 0; }
.w-rail .label { height: 11px; width: 170px; border-radius: 6px; background: rgba(255, 255, 255, 0.75); margin-bottom: 14px; }
.posters { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; padding-bottom: 34px; }
.posters b { aspect-ratio: 2 / 3; border-radius: 10px; position: relative; overflow: hidden; }
.posters b::after { content: ""; position: absolute; inset: auto 10% 10% 10%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); }
.g1 { background: linear-gradient(160deg, #ff7a59, #6d1f4f); } .g2 { background: linear-gradient(160deg, #3fd0c9, #123a63); }
.g3 { background: linear-gradient(160deg, #ffcf5c, #b3401e); } .g4 { background: linear-gradient(160deg, #8f7bff, #1f1b52); }
.g5 { background: linear-gradient(160deg, #5ee08a, #0e4b46); } .g6 { background: linear-gradient(160deg, #ff5a8a, #3a1050); }
.g7 { background: linear-gradient(160deg, #6fb7ff, #1b2a6b); } .g8 { background: linear-gradient(160deg, #f4a261, #5a2a1a); }
.phone { position: absolute; right: -18px; bottom: -34px; width: 196px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.16); background: #0b0d12; padding: 9px; text-align: left;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 60px rgba(122, 75, 255, 0.22); transform: rotate(4deg); z-index: 3; }
.phone .screen { border-radius: 22px; overflow: hidden; background: #0b0d12; }
.phone .p-hero { height: 190px; background: linear-gradient(0deg, #0b0d12 4%, transparent 60%), radial-gradient(160px 130px at 70% 30%, #58d6c8, transparent 70%), linear-gradient(140deg, #3b2a8a, #14306b); position: relative; }
.phone .p-hero::after { content: ""; position: absolute; left: 14px; bottom: 16px; width: 62%; height: 15px; border-radius: 5px; background: #fff; }
.phone .p-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px; }
.phone .p-rail b { aspect-ratio: 2 / 3; border-radius: 7px; }
.phone .p-nav { display: flex; justify-content: space-around; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.phone .p-nav i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, 0.28); }
.phone .p-nav i:first-child { background: var(--accent); }
.fade-floor { height: 150px; margin-top: -150px; position: relative; z-index: 4; background: linear-gradient(0deg, var(--base) 12%, transparent); pointer-events: none; }

/* Plateformes */
.platforms { padding: 64px 0 8px; position: relative; z-index: 5; }
.platforms .row { justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 0.92rem; color: var(--soft); }
.chip svg { width: 17px; height: 17px; fill: currentColor; opacity: 0.85; }
.chip.soon { color: var(--muted); border-style: dashed; }
.chip.soon em { font-style: normal; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }

section.block { padding: 110px 0 0; }
.head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.head p { color: var(--soft); font-size: 1.1rem; margin-top: 18px; }
.head .eyebrow { display: block; margin-bottom: 14px; }

/* Grille de fonctions */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)); padding: 26px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; transition: border-color 0.25s, transform 0.25s; }
.tile:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
.tile.wide { grid-column: span 3; }
.tile.xl { grid-column: span 4; }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.tile .art { margin-top: auto; padding-top: 26px; }
.tile::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: var(--glow, #ff5a4e); filter: blur(80px); opacity: 0.2; pointer-events: none; }
/* Reprise */
.resume { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.resume div { border-radius: 12px; overflow: hidden; background: var(--raised); }
.resume b { display: block; aspect-ratio: 16 / 10; }
.resume i { display: block; height: 4px; background: rgba(255, 255, 255, 0.14); }
.resume i::after { content: ""; display: block; height: 100%; width: var(--w, 40%); background: var(--accent); }
/* Guide */
.guide { display: flex; flex-direction: column; gap: 8px; }
.guide div { display: grid; grid-template-columns: 44px repeat(12, 1fr); gap: 6px; align-items: center; }
.guide span { height: 30px; border-radius: 8px; background: var(--raised); grid-column: span 1; }
.guide em { height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.guide em.now { background: linear-gradient(90deg, rgba(255, 90, 78, 0.55), rgba(255, 179, 71, 0.3)); border: 1px solid rgba(255, 138, 78, 0.6); }
/* Épisode suivant */
.nextep { display: flex; align-items: center; gap: 12px; }
.nextep .fill { flex: 1; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; }
.nextep .fill::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, 0.92); animation: fill 4.5s ease-in-out infinite; }
.nextep .fill span { position: relative; mix-blend-mode: difference; }
.nextep .x { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; color: var(--muted); }
@keyframes fill { 0% { width: 0; } 80%, 100% { width: 100%; } }
/* Profils */
.faces { display: flex; gap: 14px; align-items: flex-end; }
.faces i { width: 58px; height: 58px; border-radius: 17px; display: block; }
.faces i:nth-child(1) { background: linear-gradient(135deg, #ff8a4e, #ff5a8a); } .faces i:nth-child(2) { background: linear-gradient(135deg, #58d6c8, #3b7bff); }
.faces i:nth-child(3) { background: linear-gradient(135deg, #b78bff, #5b3bd6); }
.faces .lock { width: 58px; height: 58px; border-radius: 17px; border: 1px dashed rgba(255, 255, 255, 0.25); display: grid; place-items: center; }
.faces .lock svg { width: 22px; height: 22px; fill: var(--gold); }
/* Synchronisation */
.syncart { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.syncart .dev { border: 1px solid rgba(255, 255, 255, 0.16); background: #0b0d12; border-radius: 10px; }
.syncart .dev.pc { width: 31%; aspect-ratio: 16 / 10; } .syncart .dev.tab { width: 22%; aspect-ratio: 4 / 3; } .syncart .dev.tel { width: 11%; aspect-ratio: 9 / 18; border-radius: 9px; }
.syncart .dev b { display: block; height: 100%; border-radius: 9px; opacity: 0.9; }
.syncart .link { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 179, 71, 0.9) 0 6px, transparent 6px 12px); position: relative; }
.syncart .link::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: #14161c; border: 1px solid rgba(255, 179, 71, 0.6); }
.syncart .link svg { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; fill: var(--gold); z-index: 1; }
/* Replay */
.replay { display: flex; flex-direction: column; gap: 9px; }
.replay div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 0.9rem; }
.replay time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.replay span { flex: 1; color: var(--soft); }
.replay i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); position: relative; flex: none; }
.replay i::after { content: ""; position: absolute; left: 11px; top: 8px; border-left: 8px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Étapes et prix */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { border-radius: 20px; border: 1px solid var(--line); padding: 26px; background: rgba(255, 255, 255, 0.025); counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 179, 71, 0.14); color: var(--gold); font-weight: 700; font-family: var(--display); margin-bottom: 18px; }
.step p { color: var(--muted); margin-top: 8px; }
.pricing { position: relative; max-width: 560px; margin: 0 auto; }
.pricing::before { content: ""; position: absolute; inset: -2px; border-radius: 28px; background: var(--brand); filter: blur(34px); opacity: 0.35; }
.price-card { position: relative; border-radius: 26px; padding: 40px; background: linear-gradient(180deg, #171a22, #0e1015); border: 1px solid rgba(255, 255, 255, 0.14); text-align: center; }
.price-card .amount { font-family: var(--display); font-size: clamp(3.6rem, 9vw, 5.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: 18px; }
.price-card .per { color: var(--muted); margin-top: 10px; }
ul.checks { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 13px; text-align: left; }
ul.checks li { padding-left: 34px; position: relative; color: var(--soft); }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(88, 214, 141, 0.14); }
ul.checks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price-card .button { width: 100%; }

/* Questions */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.025); padding: 0 22px; transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.045); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--soft); padding: 0 0 20px; max-width: 64ch; }

/* Appel final et pied de page */
.closing { margin: 110px 0 0; }
.closing .box { border-radius: 30px; padding: clamp(40px, 7vw, 76px) 28px; text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(600px 300px at 20% 0%, rgba(255, 90, 78, 0.34), transparent 70%), radial-gradient(520px 300px at 85% 100%, rgba(122, 75, 255, 0.3), transparent 70%), #0f1117; }
.closing p { color: var(--soft); font-size: 1.1rem; margin: 16px auto 30px; max-width: 46ch; }
footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 34px 0 52px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { max-width: 62ch; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

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

/* ===== Espace compte ===== */
.page { padding-top: 40px; padding-bottom: 80px; }
.app { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
.side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.side .who { padding: 4px 12px 18px; }
.side .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side button { justify-content: flex-start; background: transparent; border-color: transparent; color: var(--muted); padding: 11px 14px; font-weight: 600; }
.side button svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.side button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.side button.on { color: var(--ink); background: rgba(255, 255, 255, 0.08); border-color: var(--line); }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; width: 100%; }
.view > h2 { font-size: 2rem; }
.view > .lede { color: var(--muted); margin: 8px 0 26px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { border-radius: var(--radius); border: 1px solid var(--line); padding: 20px 22px; background: rgba(255, 255, 255, 0.03); }
.kpi .value { font-family: var(--display); font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.kpi.hot { background: linear-gradient(140deg, rgba(255, 90, 78, 0.2), rgba(255, 179, 71, 0.08)); border-color: rgba(255, 138, 78, 0.35); }
.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.device { border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 14px; }
.device .icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); display: grid; place-items: center; flex: none; }
.device .icon svg { width: 22px; height: 22px; fill: var(--soft); }
.device.on .icon { background: rgba(88, 214, 141, 0.13); }
.device.on .icon svg { fill: var(--ok); }
.device strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.stepper button { border: 0; border-radius: 0; padding: 11px 16px; background: transparent; font-size: 1.1rem; }
.stepper span { min-width: 44px; text-align: center; font-weight: 700; font-family: var(--display); font-size: 1.1rem; }
.zone { border-color: rgba(255, 90, 78, 0.28); }

/* ===== Administration ===== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .value { font-size: 2rem; font-weight: 700; font-family: var(--display); line-height: 1.2; letter-spacing: -0.02em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.item:first-child { border-top: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { background: transparent; border-color: transparent; color: var(--muted); }
.tabs button.on { background: #fff; color: #0a0b0f; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 12px 10px 0; white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(255, 255, 255, 0.03); }
.scroll { overflow-x: auto; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.9em; background: var(--raised); padding: 2px 8px; border-radius: 7px; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.xl { grid-column: span 2; min-height: 0; }
  .app { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side .who, .side hr { display: none; }
  .side button { white-space: nowrap; }
  .posters { grid-template-columns: repeat(6, 1fr); }
  .posters b:nth-child(n + 7) { display: none; }
}
@media (max-width: 720px) {
  .nav a.wide { display: none; }
  .hero { padding-top: 48px; }
  section.block { padding-top: 78px; }
  .steps, .tiles, .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .window { transform: none; border-radius: 14px; }
  .w-hero { height: 220px; }
  .w-bar span:not(.on), .w-bar .search { display: none; }
  .w-copy { left: 18px; bottom: 26px; width: 62%; }
  .w-rail { padding: 4px 18px 0; }
  .posters { grid-template-columns: repeat(4, 1fr); gap: 8px; padding-bottom: 20px; }
  .posters b:nth-child(n + 5) { display: none; }
  .phone { width: 122px; right: -6px; bottom: -22px; border-radius: 22px; padding: 6px; }
  .phone .p-hero { height: 110px; }
  .phone .screen { border-radius: 17px; }
  .price-card { padding: 30px 22px; }
  footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nextep .fill::before { animation: none; width: 62%; }
  .tile:hover, button.accent:hover, .button.accent:hover { transform: none; }
}

/* Retouches : rien ne déborde sur téléphone */
.pill b { white-space: nowrap; }
.side { min-width: 0; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
button.accent.grow { white-space: nowrap; flex: 1 1 210px; }
