/* NeoPOS : site vitrine. Même identité que le logiciel : bleu profond, verre, Montserrat. */
@font-face { font-family: "Montserrat"; src: url("montserrat.woff") format("woff"); font-weight: 400 800; font-display: swap; }
:root {
  --deep: #021b45; --bg: #062a66; --blue: #0a6fe0; --sky: #9fd0ff; --ink: #06224f;
  --glass: rgba(255, 255, 255, .09); --glass-2: rgba(255, 255, 255, .15); --line: rgba(255, 255, 255, .2); --muted: rgba(255, 255, 255, .74);
  --ok: #3ce6a8; --warn: #ffcf66; --bad: #ff8fa0; --r: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--deep); scroll-behavior: smooth; }
body { margin: 0; font: 500 17px/1.55 "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #fff; overflow-x: hidden;
  background: radial-gradient(1100px 620px at 78% -8%, rgba(60, 160, 251, .5), transparent 62%), radial-gradient(900px 600px at -10% 12%, rgba(10, 111, 224, .55), transparent 60%), linear-gradient(180deg, var(--bg), var(--deep) 900px) no-repeat, var(--deep); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(36px, 4.5vw, 58px); }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 14px; } .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 62ch; margin-top: 14px; }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(2, 27, 69, .66); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top nav a { white-space: nowrap; text-decoration: none; color: var(--muted); padding: 6px 0; }
.top nav a:hover, .top nav a.on { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); color: #fff; font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .22); }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn.white:hover { background: #e9f3ff; }
.btn.navy { background: var(--deep); border-color: var(--deep); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: var(--glass-2); border: 1px solid var(--line); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.warn { background: var(--warn); border-color: var(--warn); color: #3b2a00; }
.pill.ok { background: var(--ok); border-color: var(--ok); color: #06240f; }
.pill.bad { background: #fff; border-color: #fff; color: #9b1c2e; }
.card { border-radius: var(--r); background: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05) 70%); border: 1px solid var(--line); padding: 24px; }

/* Accueil : le logiciel en vrai */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stage { position: relative; padding: 0 0 84px 0; }
.stage .screen { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(0, 8, 30, .95); overflow: hidden; background: var(--deep); }
.stage .screen.a { margin-right: 9%; }
.stage .screen.b { position: absolute; left: -22px; bottom: 0; width: 45%; }
.stage .paper { position: absolute; right: 0; bottom: 14px; width: 19%; height: 62%; overflow: hidden; background: #fff; border-radius: 3px; transform: rotate(3deg); box-shadow: 0 30px 50px -22px rgba(0, 8, 30, .9); }
.stage .paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(transparent, #fff); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 46px; border-top: 1px solid var(--line); }
.facts div { padding: 18px 18px 0 0; }
.facts b { display: block; font-size: 17px; }
.facts span { font-size: 14.5px; color: var(--muted); }

/* Aperçus */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(2, 27, 69, .5); border: 1px solid var(--line); margin-top: 26px; flex-wrap: wrap; }
.tabs button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.shot { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--glass); cursor: zoom-in; text-align: left; color: #fff; font: inherit; }
.shot .pic { display: block; overflow: hidden; aspect-ratio: 16 / 10; padding: 0; }
.shot .pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shot.zoom .pic img { object-position: center; transform: scale(1.9); }
.shot.tall .pic img { object-fit: contain; object-position: center; background: #bebebe; }
.shot span { display: block; padding: 12px 14px; font-size: 14.5px; font-weight: 600; }
.shot { display: flex; flex-direction: column; }
.shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot:first-child .pic { flex: 1; aspect-ratio: auto; min-height: 0; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(1, 12, 32, .92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.viewer img { max-height: 86vh; border-radius: 12px; box-shadow: 0 40px 80px -30px #000; }
.viewer p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-weight: 600; }

/* Fonctions */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 30px; }
.feat { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.feat h3 { font-size: 18px; }
.feat p { color: var(--muted); font-size: 15.5px; }

/* Avancement */
.road { margin-top: 30px; display: grid; gap: 10px; }
.road .row { display: grid; grid-template-columns: 118px 1fr; gap: 18px; align-items: start; padding: 16px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.road .row p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.road .row.avenir { background: none; border-style: dashed; }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; align-items: stretch; }
.offer { display: flex; flex-direction: column; gap: 14px; }
.offer.featured { background: #fff; color: var(--ink); border-color: #fff; }
.offer.featured .muted { color: #3f5a86; }
.offer .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.offer .price.tbd { font-size: 17px; font-weight: 700; }
.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; flex: 1; }
.offer li { padding-left: 24px; position: relative; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); opacity: .8; }
.offer .btn { width: 100%; }
.offer.featured .btn { background: var(--deep); border-color: var(--deep); color: #fff; }
.offer.featured .btn.ghost { background: none; color: var(--ink); border-color: rgba(6, 34, 79, .3); }

/* Formulaires */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; }
textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.notice { padding: 12px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; background: var(--glass-2); border: 1px solid var(--line); }
.notice.warn { background: var(--warn); border-color: var(--warn); color: #3b2a00; }
.notice.ok { background: var(--ok); border-color: var(--ok); color: #06240f; }
.notice.bad { background: #fff; border-color: #fff; color: #9b1c2e; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Questions */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

/* Espaces client et admin */
.page { padding: 40px 0 70px; }
.page h1 { font-size: clamp(30px, 3.6vw, 44px); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.kpi b { display: block; white-space: nowrap; font-size: 30px; letter-spacing: -.03em; margin-top: 6px; }
.kpi.hot { background: #fff; color: var(--ink); border-color: #fff; } .kpi.hot .muted { color: #3f5a86; }
.tablebox { margin-top: 16px; padding: 8px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 12px; white-space: nowrap; }
td:first-child { min-width: 150px; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: rgba(255, 255, 255, .06); }
.pos { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.pos .stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 12px; grid-column: 1 / -1; }
.pos .stats b { display: block; font-size: 22px; letter-spacing: -.02em; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 20px 40px -16px #000; max-width: calc(100vw - 32px); }
.demo-bar { background: var(--warn); color: #3b2a00; font-size: 14px; font-weight: 700; padding: 8px 0; }
.demo-bar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.demo-bar .btn { background: #3b2a00; border-color: #3b2a00; color: #fff; }
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(1, 12, 32, .7); display: grid; place-items: center; padding: 16px; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(160deg, #1552a8, #0a3b86); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .stage { margin-top: 8px; }
  .shots { grid-template-columns: repeat(2, 1fr); } .shot:first-child { grid-row: auto; } .shot:first-child .pic { flex: none; aspect-ratio: 16 / 10; }
  .feats, .offers, .grid2 { grid-template-columns: 1fr; } .feat { grid-template-columns: 1fr; gap: 6px; }
  .facts, .kpis { grid-template-columns: repeat(2, 1fr); }
  .top nav a:not(.keep) { display: none; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; } .shot:first-child { grid-column: auto; }
  .form { grid-template-columns: 1fr; } .road .row { grid-template-columns: 1fr; gap: 8px; }
  .stage .screen.b { left: -8px; } .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 16px; } .kpi b { font-size: 21px; }
  .top .wrap { gap: 12px; } .top nav { gap: 14px; font-size: 14px; } .page .logo span, .top .logo.short span { display: none; }
  .tabs button { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
