/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #11161f;
  --bg-card:   #171e29;
  --bg-deep:   #0c111a;
  --border:    rgba(255,255,255,0.08);
  --accent:    #63b3ed;
  --accent2:   #805ad5;
  --text-1:    #f7f9fc;
  --text-2:    #a0aec0;
  --text-3:    #4a5568;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius:    12px;
  --radius-lg: 20px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0a0e15;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* État « Bientôt disponible » — assez clair pour ressortir sur le fond sombre */
.btn-disabled {
  background: rgba(255,255,255,0.08) !important;
  color: var(--text-1) !important;
  border: 1px dashed rgba(255,255,255,0.28) !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}
.btn-disabled:hover { transform: none; }
.btn-lg { font-size: 17px; padding: 16px 36px; border-radius: 14px; }
.btn-full { width: 100%; }

.btn-nav {
  background: var(--accent);
  color: #0a0e15;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 10px;
  transition: opacity 0.15s;
}
.btn-nav:hover { opacity: 0.85; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.nav-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section commons ───────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 60px;
  color: var(--text-1);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: 100px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,179,237,0.12) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-title {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-1);
}
.accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 70px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

/* Bouton de téléchargement principal (icône + 2 lignes) */
.btn-download {
  gap: 14px;
  padding: 14px 30px;
  text-align: left;
}
.btn-download .dl-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.btn-download .dl-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.btn-download .dl-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.btn-download .dl-text-main { font-size: 16px; font-weight: 700; }
.btn-download .dl-text-sub  { font-size: 12px; font-weight: 600; opacity: 0.65; }

/* Standard macOS : bouton de téléchargement blanc */
.btn-download.is-mac {
  background: #ffffff;
  color: #14181f;
}
.btn-download.is-mac:hover { opacity: 0.92; }

/* Liens « autres versions » sous le bouton principal */
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}
.hero-platforms-label { color: var(--text-3); }
.plat-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.plat-link svg { width: 14px; height: 14px; display: block; }
.plat-link:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}
.hero-note {
  font-size: 13px;
  color: var(--text-2);
}

/* ── Mockup window ─────────────────────────────────────────────────────────── */
.hero-mockup {
  width: 100%;
  max-width: 760px;
}
.mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.mockup-titlebar {
  background: #1a2030;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup-dot.red    { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green  { background: #28c840; }
.mockup-titlebar-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-left: 6px;
}
.mockup-body {
  display: flex;
  height: 240px;
}
.mockup-sidebar {
  width: 72px;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
}
.mockup-month {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
}
.mockup-month.active { background: rgba(99,179,237,0.15); color: var(--accent); }
.mockup-month.has-bg { color: var(--text-2); }
.mockup-content {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: center;
}
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.mockup-card {
  height: 60px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.mockup-card.active-card { border-color: var(--accent); background: rgba(99,179,237,0.08); }
.mockup-card.has-img { background: linear-gradient(135deg, #1a2535, #0d1520); }
.mockup-card.accent-card { background: linear-gradient(135deg, #1e2a45, #172040); border-color: rgba(128,90,213,0.4); }

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,179,237,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-1);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.how { background: var(--bg); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: rgba(99,179,237,0.2);
  margin-bottom: 20px;
  line-height: 1;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-1);
}
.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.step-arrow {
  font-size: 24px;
  color: var(--text-3);
  align-self: center;
  flex-shrink: 0;
  margin-top: -20px;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing .section-title { margin-bottom: 40px; text-align: center; }
.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(99,179,237,0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(99,179,237,0.08);
}
.pricing-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(99,179,237,0.12);
  color: var(--accent);
  border: 1px solid rgba(99,179,237,0.25);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-1);
}
.price-currency {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 12px;
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 32px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 15px;
  color: var(--text-2);
}
.pricing-secure {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 16px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}
.footer-icon { width: 24px; height: 24px; border-radius: 5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

/* ── Maintenance overlay ───────────────────────────────────────────────────── */
#maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.maintenance-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.maintenance-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.maintenance-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.maintenance-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
}
.maintenance-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mockup-body { height: 180px; }
  .mockup-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .steps { flex-direction: column; }
  .pricing-card { padding: 32px 24px; }
  .price-amount { font-size: 54px; }
  .nav-name { display: none; }
}
