/* Vitrine SOGO Gestion — palette reprise de l'écran de connexion de la caisse */
:root {
  --ink: #12151a;        /* fond */
  --ink-2: #1a1e25;      /* panneaux */
  --ink-3: #20252d;
  --line: #2b313b;
  --amber: #e8a33d;      /* accent unique */
  --amber-soft: rgba(232, 163, 61, .14);
  --ivory: #f0ede4;      /* texte */
  --muted: #8b909b;
  --danger: #e5604f;
  --ok: #6fbf8e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); transition: background .25s; }
.nav.scrolled { background: rgba(18, 21, 26, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--amber); }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { text-decoration: none; font-family: var(--display); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); opacity: .78; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 820px) { .nav-links { display: none; } .nav { gap: 12px; } .brand { margin-right: auto; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 26px; border: 2px solid var(--ivory); background: transparent; color: var(--ivory); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn:hover { background: var(--ivory); color: var(--ink); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--ivory); border-color: var(--ivory); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- Sections plein écran ---------- */
.panel { position: relative; min-height: 100vh; display: grid; align-items: end; padding: 120px var(--gutter) 72px; overflow: hidden; }
.panel h1, .panel h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95; margin: 0 0 18px; letter-spacing: .01em; }
.panel h1 { font-size: clamp(44px, 6.8vw, 104px); max-width: 12ch; overflow-wrap: anywhere; }
.panel h2 { font-size: clamp(36px, 5.2vw, 76px); max-width: 14ch; overflow-wrap: anywhere; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ivory); max-width: 46ch; margin: 0 0 30px; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Héros */
.hero { align-items: center; background: radial-gradient(ellipse 70% 60% at 72% 46%, #232a35 0%, var(--ink) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; width: 100%; }
.free-line { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 34px; padding: 0; list-style: none; font-family: var(--display); font-size: 21px; letter-spacing: .04em; }
.free-line li { display: flex; align-items: center; gap: 9px; }
.free-line li::before { content: ""; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 110px; } }

/* ---------- Terminal de caisse (aperçu dessiné en HTML) ---------- */
.terminal { position: relative; aspect-ratio: 16 / 10.5; background: #0d1014; border: 1px solid #39404b; border-radius: 14px; padding: 10px; box-shadow: 0 50px 120px rgba(0, 0, 0, .65); }
.terminal::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 30%; height: 26px; transform: translateX(-50%); background: linear-gradient(#2a3039, #15191f); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.screen { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: #f3f2ee; color: #1b1f26; display: grid; grid-template-columns: 1fr 34%; font-size: clamp(8px, .8vw, 11px); }
.screen img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-main { padding: 3.2% 3%; display: flex; flex-direction: column; gap: 3%; min-width: 0; }
.s-bar { display: flex; gap: 4%; align-items: center; }
.s-bar b { font-weight: 700; font-size: 1.15em; }
.s-search { flex: 1; height: 2.2em; border-radius: 5px; background: #fff; border: 1px solid #dcd9d1; }
.s-grid { flex: 1; display: grid; gap: 2.4%; grid-auto-rows: 1fr; }
.s-tile { border-radius: 6px; background: #fff; border: 1px solid #e2dfd7; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; overflow: hidden; }
.s-tile em { font-style: normal; font-weight: 700; color: #1b1f26; }
.s-tile.cat { background: #1b1f26; color: #f0ede4; border-color: #1b1f26; }
.s-tile.cat em { color: var(--amber); }
.s-tile.busy { background: #fbe9cc; border-color: var(--amber); }
.s-side { background: #1b1f26; color: #f0ede4; padding: 8% 7%; display: flex; flex-direction: column; gap: 4%; }
.s-line { display: flex; justify-content: space-between; border-bottom: 1px dashed #3a414c; padding-bottom: 3%; }
.s-total { margin-top: auto; font-family: var(--display); font-size: 2.3em; font-weight: 700; display: flex; justify-content: space-between; }
.s-pay { background: var(--amber); color: #1b1f26; text-align: center; font-weight: 700; padding: 6% 0; border-radius: 5px; letter-spacing: .05em; }
.s-scale { border-radius: 6px; background: #1b1f26; color: #6fbf8e; font-family: var(--display); font-size: 2.6em; text-align: right; padding: 3% 5%; }
.s-slot { display: flex; gap: 3%; align-items: center; background: #fff; border: 1px solid #e2dfd7; border-left: 4px solid var(--amber); border-radius: 5px; padding: 2.4% 3%; }
.s-slot.free { border-left-color: #c9c5bb; color: #8b909b; }
.stamp { position: absolute; top: 4%; right: 36%; transform: rotate(-8deg); border: 2px solid var(--danger); color: var(--danger); font-family: var(--display); font-weight: 700; letter-spacing: .12em; padding: .2em .7em; font-size: 1.3em; background: rgba(243, 242, 238, .8); }

/* ---------- Lanceur de démo ---------- */
.launcher { align-items: center; background: var(--ink-2); border-top: 1px solid var(--line); }
.launcher-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; width: 100%; align-items: center; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 28px; padding: 0; list-style: none; }
.mode { text-align: left; width: 100%; padding: 16px 16px 14px; background: transparent; color: var(--ivory); border: 1px solid var(--line); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.mode strong { display: block; font-family: var(--display); font-size: 22px; letter-spacing: .03em; text-transform: uppercase; }
.mode span { display: block; color: var(--muted); font-size: 15px; line-height: 1.35; }
.mode:hover { border-color: var(--muted); }
.mode[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); }
.mode[aria-pressed="true"] strong { color: var(--amber); }
.guarantees { list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.guarantees li { padding-left: 22px; position: relative; }
.guarantees li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border: 2px solid var(--amber); border-radius: 50%; }
.notice { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.notice.err { border-left-color: var(--danger); background: rgba(229, 96, 79, .12); }
@media (max-width: 980px) { .launcher-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Fonctions (sections alternées façon fiche produit) ---------- */
.feature { align-items: center; border-top: 1px solid var(--line); min-height: 88vh; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; width: 100%; }
.feature:nth-of-type(even) .feature-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feature:nth-of-type(even) .feature-copy { order: 2; }
.points { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.points li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ivory); }
.shot-frame { aspect-ratio: 16 / 10; background: var(--ink-3); border: 1px solid var(--line); position: relative; overflow: hidden; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) { .feature-grid, .feature:nth-of-type(even) .feature-grid { grid-template-columns: 1fr; } .feature:nth-of-type(even) .feature-copy { order: 0; } .feature { min-height: auto; } }

/* Mini-écrans des fonctions */
.mock { position: absolute; inset: 0; padding: 5%; display: grid; gap: 3%; font-size: clamp(10px, 1vw, 13px); color: var(--ivory); align-content: start; }
.mock .row { display: grid; grid-template-columns: 2.4fr 1fr 1fr; gap: 3%; padding: 2.4% 3%; background: var(--ink-2); border: 1px solid var(--line); }
.mock .row.head { background: transparent; border: 0; color: var(--muted); }
.mock .tag { color: var(--amber); }
.mock .low { color: var(--danger); }

/* ---------- Tarif ---------- */
.pricing { align-items: center; border-top: 1px solid var(--line); background: var(--ink-2); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; width: 100%; align-items: center; }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(120px, 20vw, 260px); line-height: .8; margin: 0; color: var(--ivory); }
.price small { font-size: .22em; color: var(--muted); letter-spacing: .04em; margin-left: .2em; }
.specs { width: 100%; border-collapse: collapse; font-size: 17px; }
.specs th, .specs td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; font-weight: 500; color: var(--muted); padding-right: 16px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { min-height: auto; align-items: start; border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--display); font-size: 24px; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--amber); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }

footer { padding: 40px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- Formulaires (espace pro, admin) ---------- */
.page { min-height: 100vh; padding: 120px var(--gutter) 60px; }
.page h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 6vw, 72px); line-height: .95; margin: 0 0 14px; }
.page h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 30px; margin: 40px 0 14px; letter-spacing: .02em; }
.wrap { max-width: 980px; margin: 0 auto; }
.tabs { display: flex; gap: 0; margin: 28px 0 30px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); font-family: var(--display); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; padding: 12px 22px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ivory); border-bottom-color: var(--amber); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form .full { grid-column: 1 / -1; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form legend { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; color: var(--amber); }
.field label { display: block; font-size: 15px; margin-bottom: 6px; }
.field label .opt { color: var(--muted); }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--ink-2); border: 1px solid var(--line); color: var(--ivory); font: inherit; border-radius: 0; }
.field input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 1px var(--amber); }
.field.bad input { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 14px; margin-top: 5px; min-height: 0; }
.field .hint { color: var(--muted); font-size: 14px; margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok::before { content: "● "; }
@media (max-width: 680px) { .form, .form fieldset { grid-template-columns: 1fr; } }

.status { display: inline-block; padding: 4px 12px; border: 1px solid currentColor; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.status.pending { color: var(--amber); }
.status.validated { color: var(--ok); }
.status.rejected { color: var(--danger); }
.list { border-top: 1px solid var(--line); }
.item { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item h3 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: .02em; }
.item p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); padding: 18px 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ivory); color: var(--ink); padding: 12px 20px; z-index: 50; max-width: calc(100% - 32px); }

/* Espace pro : utilisateurs et accès */
.select { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--ink-2); border: 1px solid var(--line); color: var(--ivory); font: inherit; }
.access { display: inline-block; margin-top: 6px; font-size: 15px; }
.access.locked { color: var(--danger); }
.access.wait { color: var(--amber); }
.access.ok { color: var(--ok); }
.user-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.user-row .who b { font-weight: 600; }
.user-row .who span { display: block; color: var(--muted); font-size: 14px; }
.user-row.off .who { opacity: .55; }
@media (max-width: 760px) { .user-row { grid-template-columns: 1fr; } }
#users-panel { scroll-margin-top: 96px; }
