@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #FBF6EF;
  --ciel: #4DA3FF;
  --navy: #031157;
  --taupe: #5E554A;
  --sable: #F1E6D6;
  --abricot: #FFD9A8;
  --brun: #7A4A0B;
  /* Rôles des couleurs : le thème sombre ne change que ces lignes. */
  --bg: var(--creme);
  --text: var(--navy);
  --muted: var(--taupe);
  --card: var(--sable);
  --field: var(--creme);
  --line: var(--navy);
  --ring: rgba(94, 85, 74, .45);
  --btn-bg: var(--navy);
  --btn-text: var(--creme);
  --btn-edge: #010733;
  --night: var(--navy);
  /* Tuile « de nuit » (le moment OFF, la lune) : navy sur le clair, plus claire que sa carte en sombre. */
  --night-tile: var(--navy);
  color-scheme: light;
  --pad: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Thème sombre : la nuit de la charte, le crème devient le texte. */
:root[data-theme="sombre"] {
  --bg: #020B3D;
  --text: var(--creme);
  --muted: rgba(251, 246, 239, .68);
  --card: #0C1C66;
  --field: #16287D;
  --line: var(--creme);
  --ring: rgba(251, 246, 239, .35);
  --night-tile: #22399E;
  --btn-bg: var(--creme);
  --btn-text: var(--navy);
  --btn-edge: #C4B49C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.45 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#app { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; }

h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2, p { margin: 0; }
.lead { color: var(--muted); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ciel); outline-offset: 3px; }

.screen { min-height: 100dvh; padding: calc(var(--safe-top) + 16px) var(--pad) calc(var(--safe-bottom) + 28px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-text);
  font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 0 var(--btn-edge);
  transition: transform .08s ease, box-shadow .08s ease, opacity .15s ease;
}
/* Boutons en relief : ils s'enfoncent sous le doigt. */
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn[disabled] { opacity: .35; cursor: default; }
.btn[disabled]:active { transform: none; box-shadow: 0 4px 0 var(--btn-edge); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 var(--ring); }
.btn-ghost:active { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 var(--ring); }
.btn-small { width: auto; min-height: 44px; padding: 0 22px; }
.link { min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.icon { width: 24px; height: 24px; flex: none; }

/* Barre de progression. */
.bar { height: 12px; overflow: hidden; border-radius: 999px; background: var(--field); }
.bar span { display: block; height: 100%; min-width: 12px; border-radius: inherit; background: var(--ciel); transition: width .6s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.brand { display: inline-flex; align-items: center; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; font-feature-settings: 'cv11'; }
/* Le logo MonoLabs : le M a la hauteur des capitales du nom, comme sur l'écran de lancement. */
.brand-mark { width: 1.87em; height: .726em; overflow: visible; }
.brand-name { padding-left: .06em; }

.promo-badge { background: var(--abricot); color: var(--brun); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.demo-pill {
  position: fixed; z-index: 10; bottom: calc(var(--safe-bottom) + 10px); left: 12px;
  background: var(--abricot); color: var(--brun); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .cloud, .meteor { display: none; }
}
