/* Helvia : page d'accueil (/helvia), centrée sur Helvia Studio. Même univers que les démos : IBM Plex Sans, indigo, cartes blanches, fond gris clair. */
@font-face { font-family: "IBM Plex Sans"; src: url("/site/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/site/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/site/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/site/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --brand: #4f46e5; --brand-dark: #4338ca; --brand-soft: #eef2ff; --brand-line: #c7d2fe;
  --hot: #f97316; --amber: #f59e0b; --ok: #16a34a; --late: #dc2626; --sky: #0ea5e9;
  --text: #0f172a; --muted: #64748b; --line: #e2e8f0; --card: #fff; --bg: #f4f5f8;
  --shadow: 0 6px 18px rgba(15, 23, 42, .06); --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "IBM Plex Sans", Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-size: .88em; background: #f1f5f9; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Barre du haut (celle des démos) */
.topbar { position: sticky; top: 0; z-index: 20; height: 58px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; }
.logo small { font-weight: 500; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; margin-left: 14px; }
.tab { padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tab:hover { background: #f1f5f9; color: var(--text); }
.tab.on { background: var(--brand-soft); color: var(--brand); }
.topbar .sp { flex: 1; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.btn:hover { border-color: var(--brand-line); box-shadow: 0 8px 20px rgba(79, 70, 229, .14); transform: translateY(-1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn:focus-visible, .tab:focus-visible, .logo:focus-visible, .demo-shot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* Petits éléments repris des démos */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.badge { display: inline-block; background: var(--hot); color: #fff; border-radius: 9px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.badge.late { background: var(--late); }
.badge.ok { background: var(--ok); }
.eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 0 0 10px; }
.room-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 6px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.room-chip i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; background: var(--brand); }

/* Haut de page */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 620px; background: radial-gradient(closest-side, rgba(79, 70, 229, .10), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.025em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 17.5px; color: #334155; margin: 0 0 26px; max-width: 34em; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 22px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); font-weight: 500; }
.hero .facts b { display: block; color: var(--text); font-size: 20px; letter-spacing: -.01em; }

.stage { position: relative; }
.frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.frame .bar span { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.frame .bar small { margin-left: 10px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.frame img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }
.stage .back { position: absolute; width: 62%; right: -6%; top: -26px; transform: rotate(2.5deg); opacity: .96; }
.stage .front { position: relative; width: 92%; margin-top: 54px; }
.float { position: absolute; z-index: 2; animation: bob 5s ease-in-out infinite; }
.float.kpi { background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; box-shadow: var(--shadow); min-width: 150px; }
.float.kpi span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.float.kpi b { display: block; font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
.float.kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.float.kpi b.red { color: var(--late); }
.float.tag { background: var(--text); color: #fff; font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 7px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.float.tag::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--text); border-bottom: 0; }
.float.tag.hot { background: var(--hot); } .float.tag.hot::after { border-top-color: var(--hot); }
.float.tag.ok { background: var(--ok); } .float.tag.ok::after { border-top-color: var(--ok); }
.f1 { left: -22px; bottom: 34%; }
.f2 { right: -10px; bottom: -18px; animation-delay: -2.4s; }
.f3 { left: 30%; top: 30px; animation-delay: -1.2s; }
.f4 { right: 12%; top: 46%; animation-delay: -3.4s; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Sections */
section { padding: 72px 0; }
.head { max-width: 720px; margin-bottom: 36px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }
.head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.head p { margin: 0; color: #475569; font-size: 16px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Les deux démos */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.demo:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-line); transform: translateY(-2px); }
.demo-shot { position: relative; display: block; background: #e9ebf1; border-bottom: 1px solid var(--line); overflow: hidden; }
.demo-shot img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; transition: transform .5s; }
.demo:hover .demo-shot img { transform: scale(1.025); }
.demo-shot .open { position: absolute; right: 14px; bottom: 14px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.demo:hover .demo-shot .open, .demo-shot:focus-visible .open { opacity: 1; transform: none; }
.demo-shot .num { position: absolute; left: 14px; top: 14px; }
.demo-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.demo-title { display: flex; align-items: center; gap: 12px; }
.demo-title i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 18px; color: #fff; background: var(--brand); flex: none; }
.demo-title h3 { margin: 0; font-size: 21px; letter-spacing: -.01em; line-height: 1.2; }
.demo-title small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.demo-body > p { margin: 0; color: #334155; font-size: 15px; }
.lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.types li { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; font-size: 13.5px; }
.types li i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 13px; background: var(--c, var(--brand-soft)); color: #fff; }
.types li b { display: block; font-size: 13.5px; }
.types li span { color: var(--muted); font-size: 12.5px; }
.people { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; background: var(--c, var(--sky)); border: 2px solid #fff; margin-left: -7px; }
.avatars .avatar:first-child { margin-left: 0; }
.people small { color: var(--muted); font-size: 12.5px; }
.demo-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.demo-foot .url { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* Comment ça marche */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.step { display: flex; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step h3 { margin: 2px 0 3px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.shot-pair { position: relative; padding-bottom: 12%; }
.shot-pair .frame:last-child { position: absolute; width: 70%; right: -4%; bottom: 0; }
.shot-pair .frame:first-child { width: 86%; }

/* Démo / K2 en direct */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mode { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.mode.live { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(79, 70, 229, .08), var(--shadow); }
.mode header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mode h3 { margin: 0; font-size: 19px; }
.mode .pill.demo .dot { background: #94a3b8; box-shadow: none; }
.mode > p { margin: 0 0 16px; color: #475569; font-size: 15px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 6px; background: #ecfdf5; color: var(--ok); display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.mode.live .ticks li::before { background: var(--brand-soft); color: var(--brand); }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.flow span { padding: 6px 10px; border-radius: 9px; background: #f8fafc; border: 1px solid var(--line); }
.flow span.k2 { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.flow b { color: var(--muted); font-weight: 500; }

/* Helvia Studio : les quatre étapes, en rangées texte + capture alternées */
.btn.big { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.ghost-link { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost-link:hover { color: var(--text); background: #f1f5f9; box-shadow: none; transform: none; }
.muted { color: var(--muted); font-size: 13.5px; }
.features { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 52px; align-items: center; }
.feature.flip .feature-txt { order: 2; }
.feature-txt h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.015em; line-height: 1.2; margin: 14px 0 10px; }
.feature-txt > p { margin: 0 0 18px; color: #475569; font-size: 16px; }
.num-badge { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; box-shadow: 0 8px 18px rgba(79, 70, 229, .28); }
.feature .frame { transition: transform .3s, box-shadow .3s; }
.feature .frame:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(15, 23, 42, .18); }
.studio-cta { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; }

/* Modèles */
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tpl { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tpl:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow-lg); }
.tpl:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tpl img { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; background: #e9ebf1; border-bottom: 1px solid var(--line); }
.tpl b { padding: 12px 14px 2px; font-size: 14.5px; }
.tpl small { padding: 0 14px 14px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* Objets et vie de la scène */
.sections { margin: 0 0 26px; }
.sections .room-chip i { background: var(--brand-soft); font-size: 12px; }
.sections .room-chip em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.life ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.life li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.life b { display: block; font-size: 19px; letter-spacing: -.01em; color: var(--brand); }
.life span { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* Dans K2 */
.inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.inside .mode { padding: 22px; }
.inside .mode > p { margin: 0; font-size: 14px; }
.inside h3 { font-size: 16.5px; }
.ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 16px; flex: none; }
.flow.big { justify-content: center; margin-top: 28px; padding-top: 0; border-top: 0; font-size: 13.5px; }

/* Appel final */
.final { text-align: center; }
.final .box { background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #0ea5e9); color: #fff; border-radius: 22px; padding: 52px 28px; box-shadow: 0 30px 70px rgba(79, 70, 229, .28); position: relative; overflow: hidden; }
.final .box::after { content: "◆"; position: absolute; right: -30px; bottom: -80px; font-size: 300px; line-height: 1; opacity: .07; }
.final h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin: 0 0 10px; }
.final p { margin: 0 auto 26px; max-width: 36em; opacity: .9; font-size: 16px; }
.final .cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.final .btn { border-color: rgba(255, 255, 255, .35); }
.final .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.final .btn.ghost:hover { background: rgba(255, 255, 255, .2); }

footer { padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
footer .logo { font-size: 14px; color: var(--text); }
footer .logo i { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer .sp { flex: 1; }
footer .legal { flex-basis: 100%; margin: 0; font-size: 12px; }

/* Écrans moyens et petits */
@media (max-width: 980px) {
  .hero .wrap, .how { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 40px; }
  .stage { max-width: 640px; }
  .demos, .modes { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .feature-txt { order: 0; }
  .features { gap: 52px; }
  .tpl-grid, .inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tabs { display: none; }
  .topbar .btn .long { display: none; }
  section { padding: 52px 0; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .stage .back { display: none; }
  .stage .front { width: 100%; margin-top: 10px; }
  .f1 { bottom: auto; }
  .f3, .f4 { display: none; }
  .hero .facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.3; }
  .hero .facts b { font-size: 18px; }
  .float.kpi { min-width: 0; padding: 7px 10px; border-radius: 10px; }
  .float.kpi span { font-size: 9.5px; }
  .float.kpi b { font-size: 17px; }
  .float.kpi em { font-size: 10px; }
  .f1 { top: 16px; left: -6px; }
  .f2 { right: -6px; bottom: -14px; }
  .demo-body { padding: 18px; }
  .demo-shot .open { opacity: 1; transform: none; }
  .demo-foot .url { margin-left: 0; flex-basis: 100%; }
  .shot-pair { padding-bottom: 0; }
  .shot-pair .frame:first-child { width: 100%; }
  .shot-pair .frame:last-child { position: relative; width: 100%; right: 0; margin-top: 14px; }
  .mode { padding: 20px; }
  .topbar .ghost-link { display: none; }
  .tpl-grid { gap: 12px; }
  .tpl b { padding: 10px 11px 2px; font-size: 13.5px; }
  .tpl small { padding: 0 11px 11px; font-size: 11.5px; }
  .inside { grid-template-columns: 1fr; }
  .life ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow.big { justify-content: flex-start; }
  .final .box { padding: 38px 20px; border-radius: 18px; }
}
