:root {
  --bg: #000000;
  --surface: #0a0c10;
  --surface-2: #12151c;
  --surface-3: #181c26;
  --text: #f5f7fa;
  --muted: #9ca3af;
  --faint: #6b7280;
  --line: #1f2430;
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #3b9eff;
  --accent-bright: #60b4ff;
  --accent-hover: #79c0ff;
  --accent-glow: rgba(59, 158, 255, 0.35);
  --header-h: 72px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

html[lang="en"] .fr,
body.lang-en .fr { display: none !important; }

html[lang="fr"] .en,
body.lang-fr .en { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
}

.site-header--home {
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.page-home .site-header--home.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.brand:hover { color: var(--text); }

.site-nav {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-full {
  height: clamp(56px, 12vw, 88px);
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.site-nav--center {
  margin-left: auto;
  margin-right: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.header-cta { display: none; }

.btn-sm {
  padding: .5rem .95rem;
  font-size: 13px;
}

.home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 158, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(59, 158, 255, 0.05), transparent 45%);
}

.home-main {
  position: relative;
  z-index: 1;
}

.hero-home {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.hero-home-copy {
  padding-top: 1rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero-home h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 0;
}

.hero-home-visual {
  position: relative;
}

.preview-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 24px 80px rgba(0,0,0,.55),
    0 0 60px rgba(59, 158, 255, 0.08);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}

.preview-chrome span:nth-child(-n+3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3140;
}

.preview-chrome span:nth-child(1) { background: #ff5f57; }
.preview-chrome span:nth-child(2) { background: #febc2e; }
.preview-chrome span:nth-child(3) { background: #28c840; }

.preview-title {
  margin-left: .5rem;
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
}

.preview-shot {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.preview-caption {
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin-top: .75rem;
}

.home-flow {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 12, 16, 0.6);
}

.home-flow-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
  gap: .15rem;
}

.flow-step strong {
  font-size: 14px;
  font-weight: 600;
}

.flow-step span:last-child {
  font-size: 12px;
  color: var(--faint);
}

.flow-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  border: 1px solid rgba(59, 158, 255, 0.35);
  background: rgba(59, 158, 255, 0.08);
  margin-bottom: .35rem;
}

.flow-arrow {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  flex-shrink: 0;
}

.home-features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.home-features-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -.03em;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.home-card:hover {
  border-color: rgba(59, 158, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.home-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.2);
  color: var(--accent-bright);
  margin-bottom: 1rem;
}

.home-card-icon svg { display: block; }

.home-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.home-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.home-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
}

.home-card-link:hover { color: var(--accent-hover); }

.lang-pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-pill button {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: .3rem .55rem;
  cursor: pointer;
}

.lang-pill button.on {
  background: var(--surface-2);
  color: var(--text);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .72rem 1.15rem;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #020617;
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #020617;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline,
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--line);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: #3a4256;
}

.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
}

.feature h2 {
  font-size: 1rem;
  margin-bottom: .45rem;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 1.25rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: .35rem;
  max-width: 22rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover { color: var(--text); }

.footer-meta {
  width: 100%;
  padding-top: 1.25rem;
  margin-top: .5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}

.legal-page .legal-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 .65rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 14px;
  margin: .5rem 0;
}

.legal-page ul { padding-left: 1.2rem; }

.legal-page address {
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: .75rem 0 1rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: .55rem .65rem;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-page th {
  background: var(--surface);
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  z-index: 100;
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: .85rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
  .site-nav--center { margin-left: 0; margin-right: 0; }
  .site-header--home .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-header--home .header-tools { margin-left: 0; justify-self: end; }
  .site-header--home .brand { justify-self: start; }
  .site-header--home .site-nav--center { justify-self: center; }
}

@media (max-width: 960px) {
  .hero-home {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
  }
  .hero-home-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-home .hero-actions { justify-content: center; }
  .home-features-grid { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 3rem; }
  .hero-home .hero-actions .btn { flex: 1 1 calc(50% - .6rem); min-width: 140px; }
}
