/* Jetons repris à l'identique de packages/web/src/index.css : même identité visuelle que l'app,
   volontairement dupliqués ici plutôt que partagés par un outil de build (site statique, sans
   étape de build). Si les jetons de l'app changent, reporter le changement ici à la main. */
:root {
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #ebe9e3;
  --border: #ddd9d1;
  --text: #1f1e1d;
  --muted: #6b675f;
  --accent: #c96442;
  --accent-hover: #b5583a;
  --accent-soft: #f5e4dc;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(31 30 29 / 0.06), 0 4px 16px rgb(31 30 29 / 0.06);
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1d1a;
    --surface: #2a2925;
    --surface-2: #34332e;
    --border: #403e38;
    --text: #eceae3;
    --muted: #a5a199;
    --accent: #d97757;
    --accent-hover: #e48a6c;
    --accent-soft: #3d2b24;
    --on-accent: #1a120e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

code,
pre {
  font-family: var(--font-mono);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation ---------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.nav__links a {
  color: var(--text);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--accent);
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, transform 150ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Héro ------------------------------------------------------------------ */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* --- Fonctionnalités -------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* --- Tarif ------------------------------------------------------------------ */

.pricing {
  padding: 48px 0 64px;
}

.pricing__card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pricing__amount {
  font-size: 44px;
  font-weight: 600;
  margin: 8px 0 0;
}

.pricing__amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing__badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pricing__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  text-align: left;
  font-size: 14.5px;
  color: var(--muted);
}

.pricing__list li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.pricing__list li:first-child {
  border-top: none;
}

/* --- Pied de page ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer a:hover {
  color: var(--accent);
}

/* --- Pages légales ------------------------------------------------------------ */

.legal {
  padding: 48px 0 64px;
  max-width: 720px;
}

.legal h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.legal__updated {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.legal__notice {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--text);
}

.legal ul {
  padding-left: 20px;
}

/* --- 404 ---------------------------------------------------------------------- */

.notfound {
  padding: 96px 0;
  text-align: center;
}

.notfound h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.notfound p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* --- Accessibilité / responsive ------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .nav__links {
    gap: 12px;
    font-size: 14px;
  }
  .hero {
    padding: 48px 0 40px;
  }
}
