:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #69768a;
  --line: #e4e9f0;
  --surface: #ffffff;
  --background: #f5f7fb;
  --blue: #2f62d5;
  --blue-soft: #eef4ff;
  --green: #15846a;
  --green-soft: #eaf8f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 0%, #e9f1ff 0, transparent 34rem), var(--background);
}

button, a { font: inherit; }

.shell {
  width: min(100% - 40px, 1060px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 24px;
  display: flex;
  flex-direction: column;
}

.topbar, .brand, .topbar-actions, .footer, .update-card, .update-actions { display: flex; align-items: center; }

.topbar { justify-content: space-between; }

.brand { gap: 12px; color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgb(19 32 51 / 15%);
}

.brand-mark svg { width: 27px; height: 27px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.version-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(255 255 255 / 78%);
  font-size: 12px;
  font-weight: 700;
}

.topbar-actions { gap: 10px; }
.install-button { padding: 7px 11px; border: 1px solid #c8d5eb; border-radius: 999px; color: var(--blue); background: var(--blue-soft); cursor: pointer; font-size: 12px; font-weight: 800; }
.install-button:hover, .install-button:focus-visible { background: #e2ebff; outline: none; }

.hero { max-width: 660px; margin: auto auto 42px; padding-top: 86px; text-align: center; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.hero h1 { margin: 13px 0 12px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.055em; line-height: 1; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

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

.app-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgb(42 60 92 / 7%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.app-card::after { content: ""; position: absolute; right: -45px; bottom: -65px; width: 170px; height: 170px; border-radius: 50%; opacity: .65; }
.app-card--quote::after { background: var(--blue-soft); }
.app-card--gestion::after { background: var(--green-soft); }
.app-card:hover, .app-card:focus-visible { transform: translateY(-4px); border-color: #b8c6dd; box-shadow: 0 18px 38px rgb(42 60 92 / 13%); outline: none; }
.app-card:focus-visible { box-shadow: 0 0 0 4px rgb(47 98 213 / 18%), 0 18px 38px rgb(42 60 92 / 13%); }

.app-icon { position: relative; z-index: 1; flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; }
.app-card--quote .app-icon { color: var(--blue); background: var(--blue-soft); }
.app-card--gestion .app-icon { color: var(--green); background: var(--green-soft); }
.app-icon svg { width: 30px; height: 30px; }
.app-copy { position: relative; z-index: 1; display: grid; gap: 7px; padding-top: 1px; }
.app-kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.app-copy strong { font-size: 22px; letter-spacing: -.035em; }
.app-copy span:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
.arrow { position: absolute; z-index: 1; right: 24px; bottom: 22px; font-size: 23px; font-weight: 700; }

.footer { justify-content: center; gap: 9px; margin-top: auto; padding-top: 74px; color: #8792a3; font-size: 12px; }
.footer-separator { color: #b5bdc9; }

.update-dialog { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgb(19 32 51 / 38%); }
.update-dialog[hidden] { display: none; }
.update-card { width: min(100%, 460px); gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgb(19 32 51 / 24%); }
.update-badge { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-size: 24px; }
.update-card h2 { margin: 0; font-size: 18px; }
.update-card p { margin: 6px 0 15px; color: var(--muted); font-size: 14px; }
.update-actions { gap: 9px; }
.button { padding: 9px 13px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 700; }
.button--primary { color: #fff; background: var(--blue); }
.button--quiet { color: var(--muted); background: #f5f7fb; }
.button:focus-visible { outline: 3px solid rgb(47 98 213 / 25%); outline-offset: 2px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 540px); padding-top: 18px; }
  .hero { margin-bottom: 26px; padding-top: 72px; }
  .hero h1 { font-size: 40px; }
  .apps { grid-template-columns: 1fr; }
  .app-card { min-height: 168px; padding: 24px; }
  .footer { padding-top: 48px; padding-bottom: 8px; }
  .install-button { max-width: 142px; text-align: left; }
}
