/* QodPOS — documentation. Marque : dégradé rouge → orange (icône et « POS »). */
:root {
  --brand-1: #FF3B2F;
  --brand-2: #FF6A00;
  --grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --bg: #fdfcfa;
  --surface: #ffffff;
  --sunken: #f6f1ec;
  --ink: #1d1612;
  --ink-soft: #4a403a;        /* jamais plus clair : lisible en plein soleil */
  --line: #e4dbd3;
  --link: #c2410c;
  --link-hover: #9a3412;
  --accent-soft: #fff1e8;
  --ui-bg: #fff1e8;
  --ui-ink: #7c2d12;
  --tip: #0f766e; --tip-bg: #ecfdf8;
  --note: #1d4ed8; --note-bg: #eff4ff;
  --warn: #b45309; --warn-bg: #fff7e0;
  --shadow: 0 1px 2px rgba(60,30,10,.06), 0 8px 24px rgba(60,30,10,.06);
  --radius: 14px;
  --top: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14100d; --surface: #1d1814; --sunken: #26201b; --ink: #f7f0ea; --ink-soft: #d8cbc0;
    --line: #3a312a; --link: #ff8a4c; --link-hover: #ffb084; --accent-soft: #2b1d14;
    --ui-bg: #2f2016; --ui-ink: #ffcfb0;
    --tip: #5eead4; --tip-bg: #0f2a27; --note: #93b4ff; --note-bg: #14203a; --warn: #fbbf24; --warn-bg: #2e2410;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #14100d; --surface: #1d1814; --sunken: #26201b; --ink: #f7f0ea; --ink-soft: #d8cbc0;
  --line: #3a312a; --link: #ff8a4c; --link-hover: #ffb084; --accent-soft: #2b1d14;
  --ui-bg: #2f2016; --ui-ink: #ffcfb0;
  --tip: #5eead4; --tip-bg: #0f2a27; --note: #93b4ff; --note-bg: #14203a; --warn: #fbbf24; --warn-bg: #2e2410;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img, video { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .9; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { display: block; height: 26px; width: auto; }
.logo-on-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-on-light { display: none !important; } :root:not([data-theme="light"]) .logo-on-dark { display: block !important; } }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
:root[data-theme="light"] .logo-on-light { display: block !important; }
:root[data-theme="light"] .logo-on-dark { display: none !important; }
.brand-docs { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--grad); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--brand-2); }
.menu-btn { display: none; }
.search { position: relative; flex: 1; min-width: 0; max-width: 520px; margin: 0 auto; }
.side-lang { display: none; }
.search input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: 0 14px; font: inherit;
}
.search input::placeholder { color: var(--ink-soft); }
.results {
  position: absolute; top: 52px; left: 0; right: 0; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a.on { background: var(--accent-soft); }
.results small { display: block; color: var(--ink-soft); }
.results .none { padding: 14px; color: var(--ink-soft); }
.lang { display: flex; gap: 4px; flex: none; }
.lang a { padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.lang a[aria-current] { background: var(--grad); color: #fff; }

/* mise en page */
.shell { display: grid; grid-template-columns: 290px minmax(0, 1fr) 230px; gap: 0; max-width: 1480px; margin: 0 auto; }
.sidebar {
  position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto;
  padding: 20px 16px 40px 20px; border-right: 1px solid var(--line);
}
.side-home { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.side-home.current, .sidebar a.current { background: var(--accent-soft); color: var(--link); }
.side-sec { margin: 2px 0; }
.side-sec summary { cursor: pointer; padding: 9px 10px; border-radius: 10px; font-weight: 700; list-style: none; }
.side-sec summary::-webkit-details-marker { display: none; }
.side-sec summary::after { content: "▾"; float: right; color: var(--ink-soft); }
.side-sec:not([open]) summary::after { content: "▸"; }
.side-sec summary:hover { background: var(--sunken); }
.side-sec ul { list-style: none; margin: 2px 0 8px 14px; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.sidebar a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sidebar a:hover { background: var(--sunken); }
.main { padding: 34px clamp(20px, 4vw, 56px) 80px; min-width: 0; max-width: 860px; width: 100%; }
.toc { position: sticky; top: var(--top); align-self: start; max-height: calc(100vh - var(--top)); overflow: auto; padding: 34px 20px 40px 8px; font-size: 14px; }
.toc-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--ink-soft); margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 4px 12px; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--link); }
.toc .l3 a { padding-left: 26px; }

/* contenu */
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.crumbs a { color: var(--ink-soft); }
.crumbs i { font-style: normal; margin: 0 4px; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 22px; max-width: 62ch; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.01em; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { max-width: 72ch; }
.prose .anchor { margin-left: 8px; opacity: 0; text-decoration: none; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: .6; }
.prose code { background: var(--sunken); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre { background: var(--sunken); padding: 14px 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--brand-2); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sunken); }
tr:last-child td { border-bottom: 0; }
/* libellé de l'application : « Réglages › Caisse » */
.ui { display: inline-block; background: var(--ui-bg); color: var(--ui-ink); padding: 1px 8px; border-radius: 7px; font-weight: 650; font-size: .94em; white-space: nowrap; }
.ui i { font-style: normal; margin: 0 5px; opacity: .8; }
/* pas à pas : numéros de la marque */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 4px 0 14px 48px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad);
}
ul { padding-left: 22px; }
li ul { margin-top: 6px; }
/* prérequis */
.needs { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand-2); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 8px; }
.needs-title { margin: 0 0 6px; font-weight: 800; }
.needs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-right: 4px; }
.badge-role { background: var(--accent-soft); color: var(--link); border: 1px solid color-mix(in srgb, var(--brand-2) 40%, transparent); }
.badge-module { background: var(--ink); color: var(--bg); }
/* encadrés */
.callout { margin: 18px 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid transparent; }
.callout > *:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 4px; }
.callout.tip { background: var(--tip-bg); border-color: color-mix(in srgb, var(--tip) 35%, transparent); } .callout.tip .callout-title { color: var(--tip); }
.callout.note { background: var(--note-bg); border-color: color-mix(in srgb, var(--note) 35%, transparent); } .callout.note .callout-title { color: var(--note); }
.callout.warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 45%, transparent); } .callout.warning .callout-title { color: var(--warn); }
.banner { background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn); border-radius: 12px; padding: 10px 14px; }
/* vidéo */
.video { margin: 22px 0; }
.video video, .video-ph { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); display: block; background: #120d0a; }
.video-ph {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,59,47,.55), transparent 48%),
    radial-gradient(circle at 85% 85%, rgba(255,106,0,.5), transparent 50%),
    #1a1210;
  box-shadow: var(--shadow);
}
.video-ph .play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; padding-left: 5px; background: var(--grad); box-shadow: 0 8px 30px rgba(255,59,47,.5); }
.video-ph .soon { font-weight: 700; letter-spacing: .02em; background: rgba(0,0,0,.45); padding: 4px 14px; border-radius: 999px; }
.video figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.video-meta { font-weight: 700; margin-left: 6px; }
.updated { color: var(--ink-soft); font-size: 14px; margin-top: 40px; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.pager a { display: block; flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 700; background: var(--surface); }
.pager a:hover { border-color: var(--brand-2); }
.pager small { display: block; color: var(--ink-soft); font-weight: 600; }
.pager .next { text-align: right; }

/* accueil */
.home .shell { grid-template-columns: 290px minmax(0, 1fr); }
.home .main { max-width: 1040px; }
.hero { padding: 30px 0 10px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 4px 12px; border-radius: 999px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 18ch; }
.block { margin: 44px 0; }
.block h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.sub { color: var(--ink-soft); margin: 0 0 18px; }
.role-grid, .cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.role-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.role-grid a, .cards a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.role-grid a:hover, .cards a:hover { transform: translateY(-2px); border-color: var(--brand-2); }
.role-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); }
.role-grid span:not(.role-ico), .cards span { color: var(--ink-soft); font-size: 15px; }
.role-grid small { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--link); }
.latest { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.latest li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.latest li:last-child { border-bottom: 0; }
.latest time { color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.footer { border-top: 1px solid var(--line); padding: 24px 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* tablette et mobile */
@media (max-width: 1180px) { .shell { grid-template-columns: 270px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .shell, .home .shell { display: block; }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: var(--top); bottom: 0; width: min(86vw, 330px); height: auto;
    background: var(--bg); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  .brand-docs { display: none; }
  .topbar { gap: 8px; padding: 0 12px; }
  .lang a { padding: 8px 8px; }
  .main { padding: 24px 16px 60px; }
}
@media (max-width: 600px) {
  .topbar .lang, .theme-btn { display: none; }
  .search input { padding: 0 10px; }
  .side-lang { display: flex; gap: 6px; margin-bottom: 12px; }
  .side-lang a { border: 1px solid var(--line); }
  .side-lang a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .side-lang a[aria-current] { border-color: transparent; background: var(--grad); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .sidebar, .toc, .pager, .footer, .video { display: none !important; } .shell { display: block; } body { background: #fff; color: #000; } }

/* ── accueil : héros avec démo animée ───────────────────────────────── */
.home .main { max-width: 1180px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding-top: 18px; }
.hero-split h1 { max-width: 15ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(255,80,30,.28); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(255,80,30,.36); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-2); }
.btn-light { background: #fff; color: #9a3412; }
.btn-light:hover { color: #7c2d12; }
.hero-note { margin: 0; color: var(--ink-soft); font-size: 14px; }
.hero-stats { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--link); }

.live-demo { margin: 0; position: relative; }
.live-demo::before { content: ""; position: absolute; inset: 30px -20px -20px; border-radius: 40px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,106,0,.20), transparent 70%); filter: blur(10px); }
.live-demo figcaption { min-height: 64px; margin-bottom: 12px; }
.ld-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--link); background: var(--accent-soft); border: 1px solid var(--line); }
.ld-kicker i { width: 7px; height: 7px; border-radius: 999px; background: var(--brand-2); animation: ld-live 1.6s ease-out infinite; }
.ld-caption { display: block; margin-top: 8px; font-weight: 800; font-size: 19px; color: var(--ink); }
.ld-caption.ld-in { animation: ld-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.ld-box { position: relative; width: 100%; }
.ld-device { position: absolute; left: 0; top: 0; width: 880px; height: 540px; transform-origin: 0 0; border-radius: 28px; padding: 12px;
  background: linear-gradient(160deg, #2a2a33, #111116); box-shadow: 0 30px 70px rgba(17,24,39,.28), 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans Arabic", sans-serif; line-height: 1.25; }
.ld-screen { position: relative; width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #f5f6f8; color: #111827; }
.ld-screen > div, .ld-layer > div, .ld-layer > span { position: absolute; }
.ld-layer { position: absolute; inset: 0; pointer-events: none; }
.ld-top { left: 0; right: 0; top: 0; height: 44px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.ld-top b { font-size: 17px; font-weight: 800; } .ld-top b span { color: #ff4a1a; }
.ld-top-r { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.ld-table { background: #2563eb; color: #fff; padding: 2px 10px; border-radius: 8px; } .ld-clock { color: #4b5563; }
.ld-cats { left: 16px; top: 54px; display: flex; gap: 8px; }
.ld-cats span { padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid #e5e7eb; color: #1f2937; }
.ld-cats span.on { background: #111827; color: #fff; border-color: #111827; }
.ld-tile { border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(17,24,39,.07); border: 2px solid transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; text-align: center; transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease; }
.ld-tile.ld-pressed { transform: scale(.93); border-color: #ff6a00; box-shadow: 0 0 0 6px rgba(255,106,0,.15); }
.ld-emo { font-size: 38px; line-height: 1; } .ld-name { font-size: 14px; font-weight: 700; padding: 0 4px; } .ld-price { font-size: 13px; font-weight: 700; color: #ff4a1a; }
.ld-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.ld-panel-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 0; }
.ld-panel-h b { font-size: 16px; font-weight: 800; } .ld-panel-h span { font-size: 13px; font-weight: 600; color: #4b5563; }
.ld-line { display: flex; align-items: flex-start; gap: 10px; padding: 0 16px; }
.ld-emo-s { font-size: 26px; line-height: 1; margin-top: 2px; }
.ld-l-mid { flex: 1; min-width: 0; } .ld-l-mid > div { display: flex; gap: 8px; align-items: center; }
.ld-qty { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 6px; background: #111827; color: #fff; font-size: 13px; font-weight: 700; }
.ld-l-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-note { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.ld-l-price { font-size: 14px; font-weight: 700; white-space: nowrap; margin-top: 2px; }
.ld-l-btn { width: 32px; height: 32px; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: -2px; }
.ld-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e5e7eb; padding-top: 8px; }
.ld-total span { font-size: 16px; font-weight: 700; color: #1f2937; } .ld-total b { font-size: 24px; font-weight: 800; color: #ff4a1a; }
.ld-pay { height: 52px; border-radius: 12px; color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg,#ff2d2d,#ff6a00); box-shadow: 0 10px 22px rgba(255,80,30,.3); }
.ld-press { animation: ld-tap .35s ease both; }
.ld-pop { z-index: 22; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 18px 44px rgba(17,24,39,.24), 0 0 0 1px rgba(17,24,39,.06); animation: ld-pop-in .3s cubic-bezier(.2,1.2,.4,1) both; }
.ld-pop p { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #4b5563; text-transform: uppercase; letter-spacing: .04em; }
.ld-pop-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ld-pop-g span { height: 40px; border-radius: 12px; border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.ld-pop-g span.on { background: #f59e0b; border-color: #f59e0b; color: #030712; }
.ld-sheet-bg { inset: 0; background: rgba(17,24,39,.42); z-index: 20; animation: ld-fade .3s ease both; }
.ld-sheet { z-index: 21; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.22); animation: ld-sheet-up .5s cubic-bezier(.2,.9,.3,1) both; padding: 18px 22px; }
.ld-s-h { display: flex; justify-content: space-between; align-items: center; } .ld-s-h b { font-size: 20px; font-weight: 800; } .ld-s-h .ld-s-t { font-size: 24px; color: #ff4a1a; }
.ld-s-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ld-s-tiles span { height: 80px; border-radius: 16px; border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.5; transition: all .2s ease; }
.ld-s-tiles span.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; transform: scale(.95); }
.ld-s-l { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #4b5563; }
.ld-s-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ld-s-q span { height: 38px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.ld-s-q span.on { background: #2563eb; color: #fff; }
.ld-s-ch { margin-top: 10px; height: 40px; border-radius: 12px; background: #f9fafb; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.ld-s-ch span { font-size: 14px; font-weight: 600; color: #374151; } .ld-s-ch b { font-size: 20px; font-weight: 800; color: #d1d5db; }
.ld-s-ch.on { background: #ecfdf5; } .ld-s-ch.on b { color: #047857; }
.ld-s-ok { margin-top: 8px; height: 40px; border-radius: 12px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ld-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ld-done b { font-size: 22px; font-weight: 800; animation: ld-rise .45s ease both; } .ld-done small { font-size: 15px; font-weight: 600; color: #047857; }
.ld-check { width: 92px; height: 92px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 48px; font-weight: 900; display: flex; align-items: center; justify-content: center; animation: ld-pop .55s cubic-bezier(.2,1.4,.4,1) both; }
.ld-printer { top: 16px; height: 28px; z-index: 24; border-radius: 16px; background: linear-gradient(180deg,#2b2b33,#15151a); }
.ld-printer i { position: absolute; left: 20px; right: 20px; top: 18px; height: 4px; border-radius: 999px; background: rgba(0,0,0,.8); }
.ld-receipt-wrap { top: 38px; height: 440px; overflow: hidden; z-index: 25; }
.ld-receipt { background: #fff; color: #111; font-family: ui-monospace, Menlo, monospace; padding: 20px 20px 24px; animation: ld-print 2s cubic-bezier(.3,.6,.3,1) both; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.ld-receipt hr { border: 0; border-top: 1px dashed #9ca3af; margin: 10px 0; }
.ld-r-c { text-align: center; } .ld-r-c b { display: block; font-size: 19px; } .ld-r-c small { font-size: 12px; }
.ld-r-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .ld-r-note { font-size: 11px; padding-left: 12px; }
.ld-r-tot { font-size: 16px; font-weight: 800; } .ld-r-s { font-size: 12px; margin-top: 2px; } .ld-r-thx { margin-top: 12px; font-size: 13px; }
.ld-toast { left: 20px; bottom: 20px; z-index: 26; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #059669; color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.ld-toast b { display: block; font-size: 16px; } .ld-toast small { font-size: 12px; color: #ecfdf5; } .ld-chef { font-size: 26px; }
.ld-fly { font-size: 52px; z-index: 30; animation: ld-fly .65s cubic-bezier(.5,0,.3,1) forwards; }
.ld-cursor { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; transition: transform .7s cubic-bezier(.22,.9,.3,1); filter: drop-shadow(0 5px 8px rgba(0,0,0,.35)); }
.ld-ripple { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 999px; border: 4px solid rgba(255,106,0,.9); animation: ld-ring .6s ease-out both; }
.ld-enter { animation: ld-line-in .45s cubic-bezier(.2,.8,.2,1) both; } .ld-enter-x { animation: ld-toast-in .55s cubic-bezier(.2,.9,.3,1) both; }
.ld-bump { animation: ld-bump .45s ease both; }
@keyframes ld-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes ld-line-in { from { opacity: 0; transform: translateX(26px) } to { opacity: 1; transform: none } }
@keyframes ld-bump { 0% { transform: scale(1) } 40% { transform: scale(1.35) } 100% { transform: scale(1) } }
@keyframes ld-tap { 0% { transform: scale(1) } 40% { transform: scale(.94) } 100% { transform: scale(1) } }
@keyframes ld-fly { from { transform: translate(0,0) scale(1); opacity: 1 } to { transform: translate(var(--tx), var(--ty)) scale(.35); opacity: .2 } }
@keyframes ld-ring { from { transform: scale(.4); opacity: 1 } to { transform: scale(1.6); opacity: 0 } }
@keyframes ld-sheet-up { from { transform: translateY(100%) } to { transform: none } }
@keyframes ld-pop-in { from { opacity: 0; transform: translateY(8px) scale(.94) } to { opacity: 1; transform: none } }
@keyframes ld-pop { 0% { opacity: 0; transform: scale(.4) } 60% { opacity: 1; transform: scale(1.08) } 100% { transform: scale(1) } }
@keyframes ld-print { from { transform: translateY(-100%) } to { transform: none } }
@keyframes ld-toast-in { from { opacity: 0; transform: translateX(-60px) } to { opacity: 1; transform: none } }
@keyframes ld-live { 0% { box-shadow: 0 0 0 0 rgba(255,106,0,.6) } 100% { box-shadow: 0 0 0 8px rgba(255,106,0,0) } }
@media (prefers-reduced-motion: reduce) { .live-demo *, .ld-kicker i { animation: none !important; transition: none !important; } }

/* pour bien démarrer */
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: q; }
.quick a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.quick a:hover { transform: translateY(-2px); border-color: var(--brand-2); color: var(--ink); }
.quick-n { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.quick a > span:not(.quick-n) { color: var(--ink-soft); font-size: 15px; }

/* bandeau final */
.cta-band { margin: 56px 0 10px; padding: 28px 30px; border-radius: 22px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(255,80,30,.25); }
.cta-band h2 { margin: 0 0 4px; font-size: 24px; } .cta-band p { margin: 0; opacity: .95; }

@media (max-width: 1100px) { .hero-split { grid-template-columns: 1fr; gap: 28px; } .hero-split h1 { max-width: none; } }
.hero-split h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; max-width: 20ch; }
.hero-split .lead { font-size: 17px; }
.hero-cta .btn { padding: 0 18px; font-size: 15px; }
