:root {
  --ink: #15131a;
  --muted: #6a6470;
  --line: rgba(21, 19, 26, 0.10);
  --line-2: rgba(21, 19, 26, 0.06);
  --paper: #efeae0;
  --panel: #ffffff;
  --soft: #f5f1e8;
  --accent: #bd4f1c;
  --accent-2: #a43d2b;
  --gold: #b58422;
  --green: #2e7d46;
  --blue: #4a5d7e;
  --shadow: 0 1px 2px rgba(21, 19, 26, 0.05);
  --shadow-lift: 0 24px 60px rgba(21, 19, 26, 0.08);
  /* Souveraineté : "Marianne"/"Spectral" si auto-hébergées, sinon stack système — aucun CDN. */
  --font-display: "Spectral", "Marianne", Georgia, "Times New Roman", serif;
  --font-body: "Marianne", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: rgba(239, 234, 224, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 10px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
  padding: 0;
  border: none;
  background: transparent;
}

.nav a {
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  background: none;
  border-bottom-color: var(--accent);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  min-height: calc(100vh - 80px);
  padding: 120px 0 80px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions,
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-muted,
.btn:disabled {
  color: var(--muted);
  background: var(--soft);
  cursor: not-allowed;
  transform: none;
}

.system-panel,
.notice,
.app-card,
.store-list,
.desk-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 760px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat-strip div {
  text-align: center;
}

.stat-strip strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.stat-strip span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.notice {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 18px 22px;
  box-shadow: none;
}

.notice p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line-2);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  gap: 16px;
  min-height: 188px;
  padding: 22px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.app-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-lift);
}

.app-card-primary {
  grid-column: span 2;
  border-color: rgba(189, 79, 28, 0.35);
}

.app-card.private {
  opacity: 0.72;
}

.app-icon {
  display: grid;
  flex: 0 0 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
}

.app-card-primary .app-icon {
  background: var(--accent);
}

.private .app-icon {
  background: var(--ink);
}

.app-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.app-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.app-card p {
  color: var(--muted);
  line-height: 1.5;
}

.app-actions {
  margin-top: auto;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag-live {
  color: #fff;
  background: var(--accent);
}

.tag-free {
  color: #fff;
  background: var(--green);
}

.tag-lab {
  color: #fff;
  background: var(--blue);
}

.tag-private,
.tag-wait {
  color: #fff;
  background: var(--accent-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.split p {
  color: var(--muted);
  line-height: 1.6;
}

.store-list {
  padding: 10px;
  box-shadow: none;
}

.store-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line-2);
}

.store-list div:last-child {
  border-bottom: 0;
}

.store-list span {
  color: var(--muted);
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.desk-card {
  padding: 26px;
  box-shadow: none;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 10px;
  color: var(--ink);
}

.check-list.muted li {
  color: var(--muted);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 32px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
}

.footer-legal {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .topbar,
  .notice,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  .split,
  .desk-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 48px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card-primary {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  main,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .app-card {
    flex-direction: column;
  }

  .app-title-row,
  .store-list div {
    align-items: flex-start;
    flex-direction: column;
  }
}
