/* ═══ Download page — refonte pro, même langage que la page infos ═════════
   Page mono-slide : fond parallaxe + voile sombre homogène (pas d'alternance)
   + lueurs d'ambiance. Rajdhani, cartes bordées or, gold/blue. */

html { background: var(--bg); }
body.page-download { background: transparent; }

.page-bg-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; height: 100lvh; z-index: -1;
  background-image: url('/images/background4.jpg');
  background-size: cover; background-position: center 25%;
  filter: blur(1px) saturate(1.06) contrast(1.02) brightness(0.7);
  pointer-events: none;
}

/* Voile sombre homogène + lueurs d'ambiance sur toute la page */
.dl-page {
  position: relative;
  padding-top: 64px;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  background: linear-gradient(180deg, rgba(6,8,14,0.90) 0%, rgba(6,8,14,0.82) 100%);
  --ink: #eef1f7; --sub: #b3bccb; --faint: #8a94a6;
}
.dl-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 12% 4%, rgba(201,147,58,0.13), transparent 60%),
    radial-gradient(55% 45% at 92% 96%, rgba(110,168,212,0.10), transparent 62%);
}
.dl-page > * { position: relative; z-index: 1; }
.dl-page p { line-height: 1.6; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.dl-hero { padding: 84px 0 34px; text-align: center; }
/* Emblème de téléchargement — écusson or lumineux au-dessus du titre. */
.dl-hero-logo {
  width: 98px; height: 98px; margin: 0 auto 22px;
  border-radius: 27px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt);
  background: linear-gradient(180deg, rgba(201,147,58,0.30) 0%, rgba(201,147,58,0.06) 100%);
  border: 1px solid rgba(201,147,58,0.5);
  box-shadow: 0 0 60px rgba(201,147,58,0.28), 0 14px 34px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
  animation: dlGlow 3.2s ease-in-out infinite;
}
.dl-hero-logo svg { width: 50px; height: 50px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.dl-hero-logo .dl-arrow { animation: dlBob 2.4s ease-in-out infinite; }
@keyframes dlGlow {
  0%,100% { box-shadow: 0 0 46px rgba(201,147,58,0.22), 0 14px 34px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.18); }
  50%     { box-shadow: 0 0 72px rgba(201,147,58,0.4),  0 14px 34px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.18); }
}
@keyframes dlBob { 0%,100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) {
  .dl-hero-logo, .dl-hero-logo .dl-arrow { animation: none; }
}
.dl-title {
  font-size: clamp(40px, 5.6vw, 62px);
  font-weight: 700; color: #fff; margin-top: 10px;
  letter-spacing: 0.01em; line-height: 1.03;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.dl-sub {
  font-size: 18px; color: var(--sub); font-weight: 500;
  margin: 16px auto 0; max-width: 560px;
}

/* ── Sections génériques ────────────────────────────────────────────── */
.dl-section { padding: 40px 0; }
.dl-section:last-of-type { padding-bottom: 84px; }
.dl-kicker {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--gold-lt);
  text-align: center; margin-bottom: 8px;
}
.dl-section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; color: #fff; text-align: center;
  margin-bottom: 30px; letter-spacing: 0.005em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

/* ── Carte client ───────────────────────────────────────────────────── */
.dl-client {
  position: relative;
  max-width: 720px; margin: 0 auto;
  /* Même effet que le bloc Discord (dégradé teinté + halo), mais ton or O-Ro. */
  background: linear-gradient(180deg, rgba(201,147,58,0.14) 0%, rgba(17,20,28,0.62) 100%);
  border: 1px solid rgba(201,147,58,0.38);
  border-radius: 20px;
  padding: 34px 34px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.42), 0 0 60px rgba(201,147,58,0.10), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 28px;
}
.dl-client-badge {
  position: absolute; top: -12px; left: 34px;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold-dk));
  color: #1a1206; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  box-shadow: 0 6px 16px rgba(201,147,58,0.35);
}
.dl-client-icon {
  flex: 0 0 auto;
  width: 74px; height: 74px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(201,147,58,0.22), rgba(201,147,58,0.08));
  border: 1px solid rgba(201,147,58,0.4);
  color: var(--gold-lt);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.dl-client-icon svg { width: 38px; height: 38px; }
.dl-client-body { flex: 1 1 auto; min-width: 0; }
.dl-client-title {
  font-size: 23px; font-weight: 700; color: #fff; letter-spacing: 0.01em;
}
.dl-client-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px;
}
.dl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--sub);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  padding: 5px 11px; border-radius: 8px;
}
.dl-chip svg { width: 13px; height: 13px; color: var(--gold-lt); }
.dl-client-note { font-size: 13.5px; color: var(--faint); margin-top: 10px; }
.dl-client-cta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 55%, var(--gold-dk) 100%);
  color: #1a1206; font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  padding: 15px 26px; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(201,147,58,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 38px rgba(201,147,58,0.42); }
.dl-btn svg { width: 18px; height: 18px; }
.dl-btn-size { text-align: center; font-size: 12px; color: var(--faint); }

/* Carte verrouillée */
.dl-client--locked { display: block; text-align: center; border-color: var(--border2); }
.dl-lock-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
  color: var(--gold-lt);
}
.dl-lock-icon svg { width: 28px; height: 28px; }
.dl-lock-main { font-size: 18px; font-weight: 700; color: #fff; }
.dl-lock-sub { font-size: 14px; color: var(--sub); margin: 10px auto 20px; max-width: 460px; font-weight: 500; }
.dl-lock-cta {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: rgba(201,147,58,0.12); border: 1px solid rgba(201,147,58,0.4);
  color: var(--gold-lt); font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: 11px; transition: background 0.18s, transform 0.18s;
}
.dl-lock-cta:hover { background: rgba(201,147,58,0.2); transform: translateY(-2px); }

/* ── Étapes d'installation ──────────────────────────────────────────── */
.dl-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step;
}
.dl-step {
  background: linear-gradient(180deg, rgba(30,34,45,0.72) 0%, rgba(17,20,28,0.76) 100%);
  border: 1px solid rgba(201,147,58,0.16);
  border-radius: 16px; padding: 24px 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.2s, transform 0.2s;
}
.dl-step:hover { border-color: rgba(201,147,58,0.42); transform: translateY(-4px); }
.dl-step-num {
  counter-increment: step;
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 15px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700;
  color: var(--gold-lt);
  background: linear-gradient(180deg, rgba(201,147,58,0.2), rgba(201,147,58,0.07));
  border: 1px solid rgba(201,147,58,0.38);
}
.dl-step-num::before { content: counter(step); }
.dl-step-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.dl-step-desc { font-size: 14px; font-weight: 500; color: var(--sub); line-height: 1.55; }

/* ── Config requise ─────────────────────────────────────────────────── */
.dl-reqs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 860px; margin: 0 auto;
}
.dl-req-col {
  background: linear-gradient(180deg, rgba(30,34,45,0.72) 0%, rgba(17,20,28,0.76) 100%);
  border: 1px solid rgba(201,147,58,0.16);
  border-radius: 16px; padding: 26px 26px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dl-req-col--reco { border-color: rgba(201,147,58,0.34); }
.dl-req-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
}
.dl-req-name {
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
}
.dl-req-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-lt); background: rgba(201,147,58,0.14);
  border: 1px solid rgba(201,147,58,0.3); padding: 3px 9px; border-radius: 20px;
}
.dl-req-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
}
.dl-req-row:last-child { border-bottom: none; }
.dl-req-key { color: var(--faint); font-weight: 600; }
.dl-req-val { color: var(--ink); font-weight: 600; text-align: right; }

/* ── Aide / Discord ─────────────────────────────────────────────────── */
.dl-help-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, rgba(88,101,242,0.10), rgba(17,20,28,0.6));
  border: 1px solid rgba(88,101,242,0.28);
  border-radius: 18px; padding: 34px 30px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.dl-help-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.dl-help-desc { font-size: 15px; color: var(--sub); font-weight: 500; max-width: 520px; margin: 0 auto 22px; }
.dl-help-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #5865f2; color: #fff; font-size: 15px; font-weight: 700;
  padding: 13px 26px; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(88,101,242,0.4);
  transition: transform 0.18s, filter 0.18s;
}
.dl-help-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dl-help-btn svg { width: 20px; height: 20px; }

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .dl-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .dl-client { flex-direction: column; text-align: center; align-items: center; }
  .dl-client-badge { left: 50%; transform: translateX(-50%); }
  .dl-client-meta { justify-content: center; }
  .dl-client-cta { width: 100%; }
}
@media (max-width: 560px) {
  .dl-steps { grid-template-columns: 1fr; }
  .dl-reqs { grid-template-columns: 1fr; }
  .dl-hero { padding-top: 74px; }
}
