/*
 * Site MICA — mêmes jetons que l'app (packages/ui/src/tokens.ts) :
 * crème, sauge profond, pêche et terracotta en accents rares, argile pour les bords.
 */
:root {
  --cream: #fdf8f3;
  --sage: #1e2d24;
  --sage-pressed: #2e4236;
  --peach: #f4a582;
  --terracotta: #c97a5b;
  --clay: #c7d0c3;

  --surface: #fffdfa;
  --surface-muted: #eef1ea;
  --surface-warm: #fce9df;
  --text: var(--sage);
  --text-muted: #55635a;
  --on-sage: var(--cream);
  --on-sage-muted: #c7d0c3;
  --border: #e3e1d8;

  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 6px 18px rgba(30, 45, 36, 0.06);

  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --content: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 16px;
  background: var(--sage);
  color: var(--on-sage);
  border-radius: 999px;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 16px;
}

/* ------------------------------------------------------------------ En-tête */

.top {
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav-link:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ Sections */

.hero,
.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) var(--gutter);
}

/* Assez d'air pour respirer, sans repousser la suite trop loin sur grand écran. */
.hero {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(56px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-symbol {
  margin-bottom: 8px;
}

.overline {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.signature {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  color: var(--text-muted);
}

.lead {
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--text-muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.button.primary {
  background: var(--sage);
  color: var(--on-sage);
}

.button.primary:hover {
  background: var(--sage-pressed);
}

.button.quiet {
  color: var(--text);
}

.button.quiet:hover {
  background: var(--surface-muted);
}

.button.on-dark {
  background: var(--cream);
  color: var(--sage);
}

.button.on-dark:hover {
  background: var(--surface-warm);
}

/* Bandeau calme : une surface à peine plus claire, arrondie, jamais un bloc de « dashboard ». */
.band {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band > .narrow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.narrow p {
  max-width: 38em;
  color: var(--text-muted);
}

.narrow .emphasis {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  color: var(--text);
}

/* ------------------------------------------------------------------ Comment ça marche */

.section > h2 {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps p {
  color: var(--text-muted);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
}

.example {
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.said {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.4;
}

.understood {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.understood-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Le repère plein de « J'ai compris » dans l'app : un point, jamais un caractère. */
.marks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marks li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.marks li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage);
  transform: translateY(-2px);
}

.noted {
  font-family: var(--serif);
  font-size: 1.25rem;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------------ Univers */

.universes {
  margin: 12px 0 0;
  display: grid;
  gap: 0;
}

.universes > div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.universes > div:last-child {
  border-bottom: 1px solid var(--border);
}

/* Un repère pêche devant chaque univers : on lit des places, pas des colonnes de tableau. */
.universes dt {
  font-family: var(--serif);
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.universes dt::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--peach);
}

.universes dd {
  margin: 0;
  color: var(--text-muted);
  align-self: center;
}

/* ------------------------------------------------------------------ Philosophie */

.philosophy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.philosophy .quote {
  max-width: 20em;
  margin-bottom: 0;
}

.philosophy p {
  max-width: 36em;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ Invitation finale */

/* Le seul fond sauge de la page, comme la carte centrale « Je dois penser à… » de l'app. */
.final {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 10vw, 120px);
}

.final-inner {
  background: var(--sage);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.final h2 {
  max-width: 16em;
  color: var(--on-sage);
}

.final .gesture {
  color: var(--on-sage-muted);
}

.final .button {
  margin-top: 8px;
}

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

.footer {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-name {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  margin-top: 8px;
}

.footer-promise {
  color: var(--text-muted);
  font-family: var(--serif);
}

/* ------------------------------------------------------------------ Petits écrans */

@media (max-width: 560px) {
  .actions {
    width: 100%;
  }
  .actions .button {
    width: 100%;
  }
  .universes > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
