/* ==========================================================================
   Télécharger — /{lang}/download (download.html, body.dlx-page)
   ========================================================================== */
body.dlx-page {
  --dlx-text: #f5f4f1;
  --dlx-muted: rgba(245, 244, 241, 0.62);
  --dlx-faint: rgba(245, 244, 241, 0.4);
  --dlx-line: rgba(245, 244, 241, 0.09);
  --dlx-gold: #c6a66a;
  --dlx-gold-hi: #d4b984;
  --dlx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Bouton « Inscription » du header (tokens og-*) */
  --og-accent: #c6a66a;
  --og-accent-hover: #d4b984;
  --og-text: #ffffff;
  --og-muted: #9a9a9a;
  --og-border: rgba(255, 255, 255, 0.08);
  background: #050505 !important;
}
.dlx, .dlx * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
.dlx a { text-decoration: none; }
.dlx > section {
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  background: none;
}
.dlx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.dlx-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dlx-gold); }
.dlx-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--dlx-gold); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.18); }
.dlx-accent { color: var(--dlx-gold) !important; -webkit-text-fill-color: var(--dlx-gold) !important; background: none !important; }
.dlx-h2 {
  margin: 0 !important;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  color: var(--dlx-text) !important;
}

/* ---------------------------------------------------------------- Hero */
.dlx .dlx-hero {
  position: relative;
  overflow: hidden;
  padding: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 110px) 0 90px !important;
}
.dlx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 78% 45%, rgba(198, 166, 106, 0.16), transparent 70%),
    radial-gradient(rgba(245, 244, 241, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}
.dlx-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.dlx-title {
  margin: 0 0 20px !important;
  font-size: clamp(2.6rem, 6vw, 4.6rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  color: var(--dlx-text) !important;
}
.dlx-title .dlx-accent { display: inline-block; }
.dlx-lead { max-width: 520px; margin: 0 0 32px; font-size: 17px; line-height: 1.65; color: var(--dlx-muted); }

/* Boutons store */
.dlx-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.dlx-store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  height: 60px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: #f5f4f1;
  color: #0b0a08 !important;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s var(--dlx-ease), background 0.2s, box-shadow 0.2s;
}
.dlx-store:hover { transform: translateY(-2px); background: #ffffff; box-shadow: 0 22px 44px -20px rgba(198, 166, 106, 0.55); }
.dlx-store--android { background: #121211; color: var(--dlx-text) !important; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.16); }
.dlx-store--android:hover { background: #1a1a18; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.3); }
.dlx-store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.dlx-store-txt { display: grid; line-height: 1.1; text-align: left; }
.dlx-store-txt small { font-size: 11px; font-weight: 600; opacity: 0.7; }
.dlx-store-txt b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.dlx-store-tag { display: none; }
.dlx-store:focus-visible { outline: 2px solid var(--dlx-gold); outline-offset: 3px; }

/* Téléphone détecté : store mis en avant */
.dlx-store.is-recommended { box-shadow: 0 0 0 2px var(--dlx-gold), 0 18px 40px -18px rgba(198, 166, 106, 0.7); }
.dlx-store.is-recommended .dlx-store-tag {
  display: block;
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--dlx-gold);
  color: #0b0a08;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dlx-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; }
.dlx-meta li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--dlx-muted); }
.dlx-meta li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--dlx-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dlx-qr {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 12px 22px 12px 12px;
  border-radius: 20px;
  background: rgba(245, 244, 241, 0.03);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.08);
}
.dlx-qr img { display: block; width: 92px; height: 92px; border-radius: 12px; }
.dlx-qr-copy { display: grid; gap: 4px; max-width: 230px; }
.dlx-qr-copy b { font-size: 14.5px; font-weight: 700; color: var(--dlx-text); }
.dlx-qr-copy span { font-size: 12.5px; line-height: 1.5; color: var(--dlx-muted); }

/* Visuel téléphones */
.dlx-visual { position: relative; height: 600px; }
.dlx-glow { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 166, 106, 0.3), transparent); filter: blur(30px); }
.dlx-orbit { position: absolute; left: 50%; top: 50%; width: 480px; height: 480px; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.18); }
.dlx-orbit::after { content: ''; position: absolute; inset: 60px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.1); }
.dlx-phone { position: absolute; display: block; width: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75)); }
.dlx-phone--front { height: 560px; left: 50%; top: 50%; transform: translate(-62%, -50%) rotate(-4deg); z-index: 2; animation: dlxFloatA 7s ease-in-out infinite alternate; }
.dlx-phone--back { height: 480px; left: 50%; top: 50%; transform: translate(4%, -46%) rotate(7deg); z-index: 1; opacity: 0.85; animation: dlxFloatB 8s ease-in-out infinite alternate; }
@keyframes dlxFloatA { to { transform: translate(-62%, -52%) rotate(-3deg); } }
@keyframes dlxFloatB { to { transform: translate(4%, -44%) rotate(6deg); } }
.dlx-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(22, 21, 19, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.1), 0 20px 40px -18px rgba(0, 0, 0, 0.85);
  animation: dlxBob 5s ease-in-out infinite alternate;
}
.dlx-float > span:last-child { display: grid; line-height: 1.25; }
.dlx-float b { font-size: 13px; font-weight: 700; color: var(--dlx-text); }
.dlx-float small { font-size: 11.5px; font-weight: 600; color: #7fcf9a; }
.dlx-float-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--dlx-gold); color: #0b0a08; }
.dlx-float-ico svg { width: 18px; height: 18px; }
.dlx-float--1 { left: 2%; top: 22%; }
.dlx-float--2 { right: 0; bottom: 16%; animation-delay: -2.5s; }
@keyframes dlxBob { to { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Avantages */
.dlx .dlx-features { padding: 40px 0 120px !important; }
.dlx-head { max-width: 640px; margin-bottom: 44px; }
.dlx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dlx-card {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f0f0e, #0a0a09);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.07);
  transition: transform 0.25s var(--dlx-ease), box-shadow 0.25s;
}
.dlx-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.35), 0 24px 50px -30px rgba(198, 166, 106, 0.5); }
.dlx-card-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 15px; background: rgba(198, 166, 106, 0.12); color: var(--dlx-gold); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3); }
.dlx-card-ico svg { width: 23px; height: 23px; }
.dlx-card h3 { margin: 0 0 10px !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: -0.01em !important; text-transform: none !important; color: var(--dlx-text) !important; }
.dlx-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--dlx-muted); }

/* ---------------------------------------------------------------- Appel final */
.dlx .dlx-cta { padding: 0 0 110px !important; }
.dlx-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 52px;
  border-radius: 32px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(198, 166, 106, 0.22), transparent 60%),
    linear-gradient(180deg, #11110f, #0a0a09);
  box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.22);
}
.dlx-cta-copy p { margin: 12px 0 0; font-size: 15.5px; color: var(--dlx-muted); }
.dlx-stores--compact .dlx-store { min-width: 0; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .dlx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dlx .dlx-hero { padding: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 92px) 0 40px !important; }
  .dlx-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dlx-hero-copy { text-align: center; }
  .dlx-lead { margin-left: auto; margin-right: auto; font-size: 16px; }
  .dlx-stores { justify-content: center; }
  .dlx-meta { justify-content: center; }
  .dlx-qr { display: none; }
  .dlx-visual { height: 440px; order: 2; }
  .dlx-phone--front { height: 400px; }
  .dlx-phone--back { height: 340px; }
  .dlx-glow { width: 380px; height: 380px; }
  .dlx-orbit { width: 340px; height: 340px; }
  .dlx-orbit::after { inset: 44px; }
  .dlx-float--1 { left: 0; top: 18%; }
  .dlx-float--2 { right: 0; bottom: 10%; }
  .dlx .dlx-features { padding: 30px 0 72px !important; }
  .dlx-head { margin-bottom: 28px; text-align: center; margin-left: auto; margin-right: auto; }
  .dlx .dlx-cta { padding-bottom: 80px !important; }
  .dlx-cta-card { flex-direction: column; text-align: center; padding: 36px 24px; }
}
@media (max-width: 560px) {
  .dlx-wrap { padding: 0 16px; }
  .dlx-store { flex: 1 1 100%; justify-content: center; }
  .dlx-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dlx-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .dlx-card-ico { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
  .dlx-card h3 { margin-bottom: 6px !important; font-size: 16px !important; }
  .dlx-float { transform: scale(0.9); }
  .dlx-float--1 { left: -4px; }
  .dlx-float--2 { right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .dlx-phone, .dlx-float { animation: none !important; }
}
