/* 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. */

/* --- Polices (sous-ensemble latin uniquement, copié depuis @fontsource) -------- */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/ibm-plex-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-400.woff2') format('woff2');
}

: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);
}

.btn--block {
  width: 100%;
}

/* --- 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 h3 .badge {
  margin-left: 6px;
  vertical-align: middle;
}

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

/* --- Titres de section -------------------------------------------------------- */

.section {
  padding: 40px 0;
}

.section__title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* --- Profils -------------------------------------------------------------------- */

.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

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

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

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

/* --- Vitrine (texte + maquette téléphone) --------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase__text h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

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

.showcase__text p:last-child {
  margin-bottom: 0;
}

.showcase__media {
  display: flex;
  justify-content: center;
}

/* Maquette de téléphone, décorative (aria-hidden). Aucune image : CSS/HTML pur. */

.phone {
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.phone__screen {
  background: var(--bg);
  border-radius: 18px;
  padding: 16px;
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.phone__dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.phone__dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.phone__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.phone__card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.phone__cmd {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.phone__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone__btn {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text);
}

.phone__btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}

/* --- Badges ----------------------------------------------------------------- */

.badge,
.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;
}

/* --- Bande de réassurance ----------------------------------------------------- */

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.trust li:not(:last-child)::after {
  content: '·';
  margin-left: 16px;
  color: var(--border);
}

/* --- 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 {
  margin-bottom: 12px;
}

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

.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;
}

/* --- Bloc de code copiable (page /linux) -------------------------------------- */

.code {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 52px 16px 16px;
  margin: 20px 0;
  overflow-x: auto;
}

.code code {
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
}

.code__copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

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

.steps {
  padding-left: 20px;
}

.steps li {
  margin-bottom: 8px;
}

/* --- 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: 760px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase__media {
    order: -1;
  }
}

@media (max-width: 480px) {
  .nav__links {
    gap: 12px;
    font-size: 14px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .section {
    padding: 32px 0;
  }
  .trust li:not(:last-child)::after {
    margin-left: 8px;
  }
}
