/* Page d'accueil / vitrine — layout de site marketing classique (nav + sections
   qui défilent), volontairement différent des écrans "carte centrée" de
   l'onboarding et des apps caisse/back-office : c'est la première impression
   du produit, pas un assistant ni un outil de travail. */

:root {
  --bg-page: #ffffff;
  --bg-alt: #F5F3FC;
  --border: #E2DEF6;

  --text-primary: #191335;
  --text-secondary: #6B6690;
  --text-inverse: #ffffff;

  --brand: #4F46E5;
  --brand-strong: #3B32B8;
  --brand-darker: #241D6B;
  --brand-soft: #E7E4FB;

  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(25, 19, 53, 0.06);
  --shadow-md: 0 10px 30px rgba(25, 19, 53, 0.10);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--brand);
}

.nav__links {
  display: flex;
  gap: 20px;
  margin-right: auto;
}

.nav__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-switcher__flag {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: .45;
  transition: all .12s ease;
}

.lang-switcher__flag:hover {
  opacity: .8;
}

.lang-switcher__flag.is-active {
  opacity: 1;
  border-color: var(--border);
  background: var(--bg-alt);
}

/* ---------- Buttons ---------- */

.btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-brand {
  background: var(--brand);
  color: var(--text-inverse);
}

.btn-brand:hover {
  background: var(--brand-strong);
}

.btn-ghost {
  background: var(--bg-alt);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15.5px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  color: var(--text-primary);
}

.hero p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-secondary);
}

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

.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Features ---------- */

.features {
  background: var(--bg-alt);
  padding: 72px 24px;
}

.features h2, .business-types h2, .pricing h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  max-width: 640px;
  margin: 0 auto;
}

.features__grid {
  max-width: 1080px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
}

.feature-card__icon {
  width: 30px;
  height: 30px;
  color: var(--brand);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------- Métiers ---------- */

.business-types {
  padding: 72px 24px;
  text-align: center;
}

.business-types__intro {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.business-types__grid {
  max-width: 780px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.business-type-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.business-type-card--highlight {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.business-type-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.business-type-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--bg-alt);
  padding: 72px 24px;
  text-align: center;
}

.pricing__grid {
  max-width: 500px;
  margin: 40px auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.pricing-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 20px;
  border: 2px solid transparent;
}

.pricing-card--highlight {
  border-color: var(--brand);
}

.pricing-card__name {
  font-weight: 800;
  font-size: 15px;
}

.pricing-card__price {
  margin-top: 10px;
  font-weight: 800;
  font-size: 28px;
  color: var(--brand);
}

.pricing-card__price span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-card__detail {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px;
  border-top: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--brand);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
}
