/* La vitrine d'Ardoze : un seul écran, sans défilement. La marque et les
   couleurs sont celles de l'app (design/brand/ardoze et omnibrid_design dans
   Omnibrid) : l'ardoise, la craie, le turquoise de ce qui est vivant, le
   safran de ce qui attend. Titres en Bricolage, texte en DM Sans. */

@font-face { font-family: "Bricolage"; src: url("/fonts/Bricolage-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #172024;
  --ink-2: #223035;
  --ink-3: #34444a;
  --chalk: #f6f3ec;
  --chalk-dim: #a9b4b6;
  --paper: #f5f2ec;
  --surface: #ffffff;
  --line: #e6e0d5;
  --line-strong: #d5cdbf;
  --muted: #6b665e;
  --pos: #10a3a8;
  --pos-dark: #0a7378;
  --pos-soft: #ddf2f1;
  --amber: #e9a229;
  --amber-soft: #fcf0d5;
  --amber-ink: #7a4d06;
  --title: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 16px/1.5 "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── L'écran ─────────────────────────────────────────────────────────── */

.page {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  /* Une lueur de craie, comme une ardoise mal effacée. */
  background:
    radial-gradient(ellipse 60% 50% at 78% 60%, rgba(16, 163, 168, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(246, 243, 236, 0.05), transparent 70%),
    var(--ink);
}

.bar, .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 56px);
}

.bar { height: clamp(64px, 10vh, 88px); }

.logo img { height: 30px; width: auto; display: block; }

.bar nav { display: flex; align-items: center; gap: 16px; }

.langs { display: flex; gap: 2px; }
.langs a, .langs span {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk-dim);
}
.langs a:hover { color: var(--chalk); }
.langs span { background: var(--ink-3); color: var(--chalk); }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--pos); color: #fff; }
.btn-primary:hover { background: var(--pos-dark); }
.btn-ghost { border-color: var(--ink-3); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk-dim); }
.bar .btn { padding: 8px 14px; font-size: 15px; }

.stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 0 clamp(16px, 4vw, 56px);
}

.pitch { max-width: 30rem; }

h1 {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(38px, min(5vw, 8vh), 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h1 em { font-style: normal; color: var(--pos); }

.lead {
  font-size: clamp(16px, 2.2vh, 19px);
  color: var(--chalk-dim);
  margin: 0 0 32px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.foot {
  height: 52px;
  font-size: 13px;
  color: var(--chalk-dim);
}
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--chalk); }

/* ── L'interface, en miniature ───────────────────────────────────────────
   Un plan de salle : des tables, leur état, une addition. Assez pour
   reconnaître l'app, pas assez pour en faire le tour. */

.screen { min-width: 0; }

.window {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 220px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(246, 243, 236, 0.08);
  font-size: 13px;
  user-select: none;
}

.side {
  background: #1b2327;
  color: var(--chalk);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 18px;
  font-family: var(--title);
  font-size: 19px;
}
.side-logo svg { width: 22px; height: 22px; }

.side small {
  padding: 12px 10px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--chalk-dim);
}

.side span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.side span svg { width: 16px; height: 16px; flex: none; }
.side span.on { background: var(--chalk); color: var(--ink); }

.main { padding: 22px; min-width: 0; }

.main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.main-head b { display: block; font-family: var(--title); font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.main-head i { font-style: normal; color: var(--muted); }
.main-head .new { background: var(--ink); color: var(--chalk); padding: 8px 12px; border-radius: 10px; font-weight: 600; }

.tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tables .t:nth-child(n+10) { display: none; }

.t {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.t b { font-family: var(--title); font-size: 20px; }
.t.sel { background: var(--pos-soft); border-color: var(--pos); }
.t.free { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--muted); }

.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live { background: var(--pos-soft); color: var(--pos-dark); }
.chip.wait { background: var(--amber-soft); color: var(--amber-ink); }
.chip.wait::before { background: var(--amber); }
.chip.done { background: #ece8e0; color: var(--muted); }

.ticket {
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}
.ticket header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); }
.ticket header b { font-family: var(--title); font-size: 19px; }
.ticket header i { font-style: normal; color: var(--muted); }
.ticket ul { list-style: none; margin: 0; padding: 8px 0; }
.ticket li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ticket li small { display: block; color: var(--amber-ink); font-size: 11px; }
.ticket .total { display: flex; justify-content: space-between; border-top: 1px dashed var(--line-strong); padding-top: 12px; font-weight: 600; font-size: 15px; }
.ticket .pay { margin-top: 14px; background: var(--pos); color: #fff; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; }

/* ── Écrans plus petits ──────────────────────────────────────────────── */

@media (max-width: 1399px) {
  .window { grid-template-columns: 164px minmax(0, 1fr); }
  .ticket { display: none; }
}

@media (max-width: 1100px) {
  .window { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
}

@media (max-width: 820px) {
  .bar { height: 64px; padding: 0 20px; }
  .logo img { height: 26px; }
  .bar .btn { display: none; }
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 3.5vh, 32px);
    padding: clamp(4px, 2vh, 20px) 20px 0;
  }
  .pitch { max-width: none; }
  h1 { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.05; margin-bottom: 12px; }
  .lead { font-size: 16px; margin-bottom: 22px; }
  /* Deux boutons de même largeur, côte à côte. */
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions .btn { justify-content: center; padding: 13px 10px; font-size: 15px; }
  /* L'interface flotte et s'efface vers le bas : on la devine, sans bord coupé net. */
  .screen {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 96%);
  }
  .window { grid-template-columns: 1fr; border-radius: 18px; box-shadow: 0 0 0 1px rgba(246, 243, 236, 0.08); height: 100%; }
  .tables .t:nth-child(n+10) { display: flex; }
  .side { display: none; }
  .main { padding: 16px; }
  .main-head { margin-bottom: 12px; }
  .main-head b { font-size: 21px; }
  .tables { gap: 8px; }
  .t { min-height: 78px; padding: 10px; border-radius: 12px; }
  .t b { font-size: 18px; }
  .foot { height: 44px; justify-content: center; padding: 0 20px; }
  .foot nav { display: none; }
}

@media (max-width: 380px) {
  .chip { padding: 2px 6px; font-size: 10px; }
  .chip::before { display: none; }
}

@media (max-height: 560px) and (min-width: 821px) {
  .lead { margin-bottom: 20px; }
  h1 { margin-bottom: 12px; }
}

/* Page introuvable. */
.lost { display: grid; place-items: center; text-align: center; padding: 0 16px; }
.lost h1 { font-size: clamp(32px, 6vw, 52px); }
