/* Page Télécharger — Clefkey */

.dl-body {
  --dl-ink: #f5f5f5;
  --dl-muted: rgba(255, 255, 255, 0.72);
  --dl-line: rgba(255, 255, 255, 0.12);
  --dl-surface: rgba(255, 255, 255, 0.035);
  --dl-surface-strong: rgba(255, 255, 255, 0.06);
  --dl-bg: #0a0a0a;
  --dl-bg-mid: #101018;
  --dl-display: 'Space Grotesk', var(--font-display, system-ui, sans-serif);
  --dl-sans: 'Plus Jakarta Sans', var(--font-display, system-ui, sans-serif);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dl-bg);
  color: var(--dl-ink);
  font-family: var(--dl-sans);
}

[data-theme="light"] .dl-body {
  --dl-ink: #0f172a;
  --dl-muted: rgba(15, 23, 42, 0.72);
  --dl-line: rgba(15, 23, 42, 0.1);
  --dl-surface: #ffffff;
  --dl-surface-strong: #eef2ff;
  --dl-bg: #f4f6fb;
  --dl-bg-mid: #e8eefc;
}

.dl-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) clamp(1.25rem, 4vw, 2.5rem) 0.85rem;
  background: color-mix(in srgb, var(--dl-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dl-back {
  color: var(--dl-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.dl-back:hover {
  color: var(--dl-ink);
}

/* Hero : texte gauche / logo fixe droite */
.dl-hero {
  position: relative;
  min-height: 34rem;
  padding: clamp(2.75rem, 7vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.75rem, 6vh, 3.75rem);
  overflow: hidden;
  box-sizing: border-box;
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 82% 28%, rgba(47, 95, 240, 0.24), transparent 60%),
    radial-gradient(ellipse 45% 35% at 10% 18%, rgba(47, 95, 240, 0.1), transparent 55%),
    linear-gradient(165deg, var(--dl-bg) 0%, var(--dl-bg-mid) 55%, var(--dl-bg) 100%);
  pointer-events: none;
}

[data-theme="light"] .dl-hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 82% 28%, rgba(47, 95, 240, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 35% at 10% 18%, rgba(47, 95, 240, 0.08), transparent 55%),
    linear-gradient(165deg, #f4f6fb 0%, #e4ecfb 50%, #f4f6fb 100%);
}

.dl-hero-pixels {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Logo agrandi en fond, ancré à droite */
.dl-hero-logo-bg {
  position: absolute;
  right: clamp(0.5rem, 4vw, 3.5rem);
  top: 50%;
  z-index: 1;
  width: 480px;
  height: 480px;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.dl-hero-chevalier {
  display: block;
  width: 480px;
  height: 480px;
  object-fit: contain;
  object-position: right center;
  opacity: 0.55;
}

[data-theme="light"] .dl-hero-chevalier {
  opacity: 0.4;
}

.dl-hero-copy {
  position: relative;
  z-index: 2;
  width: min(38rem, 100%);
  margin: 0 auto 0 0;
  max-width: min(38rem, calc(100% - 2rem));
  padding-top: 0.15rem;
}

.dl-brand-word {
  margin: 0 0 0.65rem;
  font-family: var(--dl-display);
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--accent, #2f5ff0);
}

.dl-headline {
  margin: 0 0 0.85rem;
  font-family: var(--dl-display);
  font-size: clamp(1.4rem, 3.2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--dl-ink);
}

.dl-lead {
  margin: 0 0 1.4rem;
  max-width: 32rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  color: var(--dl-muted);
}

.dl-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.dl-hero-actions .dl-btn {
  flex: 0 1 auto;
  min-height: 2.85rem;
  padding: 0.75rem 1.15rem;
  white-space: nowrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-sizing: border-box;
}

.dl-btn-primary {
  background: var(--accent, #2f5ff0);
  color: #ffffff;
}

.dl-btn-primary:hover {
  background: var(--accent-hover, #254ed6);
}

.dl-btn-primary.is-suggested {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2f5ff0) 55%, transparent);
}

.dl-btn-outline {
  background: transparent;
  border-color: var(--dl-line);
  color: var(--dl-ink);
}

.dl-btn-outline:hover,
.dl-btn-outline.is-suggested {
  border-color: var(--accent, #2f5ff0);
  color: var(--accent, #2f5ff0);
}

.dl-section {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--dl-line);
  scroll-margin-top: 4rem;
}

.dl-section-features {
  background: linear-gradient(180deg, rgba(47, 95, 240, 0.08) 0%, transparent 42%);
}

.dl-section-trust {
  padding-bottom: calc(clamp(4rem, 10vh, 6.5rem) + env(safe-area-inset-bottom, 0px));
}

.dl-section-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0;
  text-align: left;
}

.dl-section-title,
.dl-section-lead,
.dl-kicker {
  text-align: left;
}

.dl-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--dl-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #2f5ff0);
}

.dl-section-title {
  margin: 0;
  font-family: var(--dl-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--dl-ink);
}

.dl-section-title-accent {
  color: var(--accent, #2f5ff0);
}

.dl-section-lead {
  max-width: 42rem;
  margin: 1.1rem 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  color: var(--dl-muted);
}

.dl-feature-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
}

.dl-feature-list li {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid rgba(47, 95, 240, 0.55);
}

.dl-feature-list strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--dl-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dl-ink);
}

.dl-feature-list span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dl-muted);
}

.dl-docs-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.dl-docs-list a:hover strong {
  color: var(--accent, #2f5ff0);
}

@media (max-width: 720px) {
  .dl-feature-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dl-hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dl-hero-actions .dl-btn {
    flex: 0 0 auto;
    width: auto;
  }
}

@media (max-width: 900px) {
  .dl-hero-logo-bg,
  .dl-hero-chevalier {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 640px) {
  .dl-hero-logo-bg,
  .dl-hero-chevalier {
    width: 300px;
    height: 300px;
    opacity: 0.35;
  }
}
