/* Lexio landing — charte dark + vert néon */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --border: rgba(0, 230, 118, 0.15);
  --border-strong: rgba(0, 230, 118, 0.35);
  --green: #00e676;
  --green-dim: #00c853;
  --green-glow: rgba(0, 230, 118, 0.45);
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #6b7280;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #5effa8;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.logo-link:hover {
  color: var(--text);
  opacity: 0.9;
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-muted);
}

.lang-switch a:hover {
  color: var(--green);
}

.lang-active {
  color: var(--green);
}

.lang-sep {
  color: var(--text-dim);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--green);
}

.nav-desktop a.active {
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--green);
  color: #0a0a0a;
  box-shadow: 0 0 24px var(--green-glow);
}

.btn-primary:hover {
  background: #5effa8;
  color: #0a0a0a;
  transform: translateY(-1px);
  box-shadow: 0 0 32px var(--green-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 230, 118, 0.12), transparent 70%),
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--green);
  text-shadow: 0 0 40px var(--green-glow);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 230, 118, 0.1);
}

/* Dashboard mockup (fallback) */
.mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 230, 118, 0.08);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #111;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.mockup-sidebar {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border);
  background: #121212;
}

.mockup-nav-item {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mockup-nav-item.active {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
}

.mockup-main {
  padding: 1.25rem;
}

.mockup-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: #2a2a2a;
  margin-bottom: 0.5rem;
}

.mockup-line.short {
  width: 60%;
}

.mockup-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.06);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-card h3 {
  margin: 0 0 0.75rem;
  color: var(--green);
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.about-meta li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.about-meta strong {
  color: var(--text);
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(0, 230, 118, 0.04));
  border-top: 1px solid var(--border);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.06);
}

.contact-box h2 {
  margin: 0 0 0.5rem;
}

.contact-box p {
  margin: 0;
  color: var(--text-muted);
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--green);
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-content th {
  background: var(--bg-card);
  color: var(--text);
}

.legal-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: #080808;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28ch;
  margin: 0.75rem 0 0;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 2rem;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .nav-desktop,
  .header-actions .lang-switch {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile .lang-switch {
    display: flex;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
