/* ============================================================
   LSPDFR — Landing page
   Palette bleue inspirée du logo (fond nuit, accent #2f6bff)
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-alt: #0e1826;
  --bg-card: #111e30;
  --border: #1d2c44;
  --text: #e8eef7;
  --text-muted: #9fb0c7;
  --accent: #2f6bff;
  --accent-soft: #4d84ff;
  --accent-glow: rgba(47, 107, 255, 0.35);
  --radius: 14px;
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  font-size: 0.92em;
  color: var(--accent-soft);
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.container-narrow { width: min(780px, 92%); }

.accent { color: var(--accent-soft); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; font-style: italic; }

p { color: var(--text-muted); }
p + p { margin-top: 0.9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  padding: 0.8rem 1.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1e4fd6);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 12px 38px var(--accent-glow); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.2rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; }

.brand-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 4rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(47, 107, 255, 0.22), transparent),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 107, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.35);
  color: var(--accent-soft);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero-sub {
  max-width: 680px;
  margin: 1.4rem auto 0;
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero-cta.center { justify-content: center; }

.server-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  color: var(--text);
  font-family: Consolas, monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.server-ip:hover { border-color: var(--accent); }
.ip-label { color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; }
.copy-hint { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-body); }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  list-style: none;
  margin-top: 3.2rem;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fff;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-kicker {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
  align-items: start;
}

.checklist {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.15em; height: 1.15em;
  border-radius: 50%;
  background: var(--accent);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}

/* ---------- Cartes atouts ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 107, 255, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.3);
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { font-size: 0.95rem; }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}

.why-item {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.07), transparent 60%);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
}
.why-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.why-item p { font-size: 0.95rem; }

/* ---------- Rejoindre ---------- */
.join-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}
.join-grid .hero-cta { justify-content: flex-start; }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.1rem;
  width: 2.9rem; height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.35);
  color: var(--accent-soft);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.4rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent-soft);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; font-size: 0.97rem; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(47, 107, 255, 0.18), transparent),
    var(--bg);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 0 1.8rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.3rem; }
.footer-links { list-style: none; display: flex; gap: 1.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }

.footer-legal { padding-top: 1.4rem; text-align: center; }
.footer-legal p { font-size: 0.82rem; color: #6b7c95; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .split, .why-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem 2.2rem; }
}
