/* Page de téléchargement de l'app de bureau (cachée : liée nulle part, noindex). v3 du 10/10 : Mac + Windows,
   fenêtre de l'app avec capture réelle, installation en onglets illustrés, bandeau final. */
.dl-page { overflow-x: clip; }
.dl-hero { position: relative; padding: 70px 0 0; text-align: center; }
.dl-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); opacity: .7; pointer-events: none; }
.dl-hero::after { content: ''; position: absolute; left: 50%; top: -240px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(108,71,255,.24), transparent), radial-gradient(closest-side at 80% 40%, rgba(240,70,143,.12), transparent); pointer-events: none; }
.dl-hero > * { position: relative; z-index: 1; }
.dl-appicon { width: 112px; height: 112px; margin: 0 auto 22px; display: block; filter: drop-shadow(0 18px 40px rgba(108,71,255,.55)); animation: dl-float 6s ease-in-out infinite; }
.dl-hero h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.05em; font-weight: 680; margin: 18px auto 18px; max-width: 900px; }
.dl-hero h1 span { background: linear-gradient(90deg, #b9a6ff, #f0468f 55%, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-lead { font-size: clamp(16px, 1.9vw, 19.5px); color: var(--text-2); line-height: 1.55; max-width: 620px; margin: 0 auto; }
.dl-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.dl-btn { height: 56px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.dl-btn .icon { width: 20px; height: 20px; }
.dl-btn.is-soon { opacity: .5; cursor: default; pointer-events: none; }
.dl-subs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.dl-subs a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.dl-notdesk { display: none; margin: 18px auto 0; max-width: 520px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; color: var(--text-2); }
.dl-notdesk.on { display: block; }
.dl-notdesk a { color: var(--accent-text); }

/* Fenêtre de l'app (style Mac, ou Windows si le visiteur est sous Windows) */
.dl-stage { position: relative; max-width: 1320px; margin: 64px auto 0; padding: 0 20px; perspective: 2200px; }
.dl-stage::before { content: ''; position: absolute; left: 8%; right: 8%; top: 12%; bottom: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,92,255,.42), transparent 75%); filter: blur(30px); }
.dl-win { position: relative; border-radius: 14px; overflow: hidden; background: #0d0b17; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4); transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; transition: transform 1.2s var(--ease); }
.dl-stage.in .dl-win { transform: none; }
.dl-bar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; background: #1b1830; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12.5px; color: #b2acd2; }
.dl-title { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 560; }
.dl-dots { display: flex; gap: 8px; } .dl-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .dl-dots i:nth-child(2) { background: #febc2e; } .dl-dots i:nth-child(3) { background: #28c840; }
.dl-wctl { display: none; margin-left: auto; gap: 0; } .dl-wctl i { width: 44px; height: 38px; display: grid; place-items: center; color: #b2acd2; font-style: normal; font-size: 14px; }
.os-win .dl-dots { display: none; } .os-win .dl-wctl { display: flex; } .os-win .dl-bar { padding-right: 0; } .os-win .dl-title { position: static; transform: none; padding-left: 4px; }
.dl-win img { display: block; width: 100%; height: auto; }
.dl-toast { position: absolute; z-index: 2; top: 54px; right: 34px; display: flex; gap: 12px; align-items: center; width: 320px; padding: 12px 14px; border-radius: 16px; text-align: left; background: rgba(40,36,64,.82); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); opacity: 0; transform: translateX(30px); transition: opacity .6s var(--ease) 1.4s, transform .6s var(--ease) 1.4s; }
.dl-stage.in .dl-toast { opacity: 1; transform: none; }
.dl-toast img { width: 38px; height: 38px; flex: none; }
.dl-toast b { display: block; font-size: 13.5px; color: #fff; } .dl-toast small { display: block; font-size: 12.5px; color: #c9c3e6; line-height: 1.35; }
.dl-toast em { margin-left: auto; align-self: flex-start; font-style: normal; font-size: 11px; color: #9d97bd; }

/* Sections */
.dl-section { padding: 110px 0 0; }
.dl-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.dl-head h2 { font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -.04em; line-height: 1.08; font-weight: 650; }
.dl-head p { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.dl-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin: 0 auto 26px; }
.dl-tabs-wrap { text-align: center; }
.dl-tabs button { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 560; cursor: pointer; }
.dl-tabs button.on { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(108,71,255,.8); }
.dl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-steps[hidden] { display: none; }
.dl-step { display: flex; flex-direction: column; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.dl-vis { position: relative; height: 170px; border-radius: 16px; background: radial-gradient(80% 90% at 50% 0%, rgba(124,92,255,.18), transparent 70%), var(--bg-sunken); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.dl-step h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.02em; margin: 18px 4px 6px; }
.dl-step h3 b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; }
.dl-step p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; margin: 0 4px 6px; }
.dl-step p b { color: var(--text); font-weight: 600; }
/* 1. téléchargement */
.dl-file { width: 78%; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: center; text-align: left; }
.dl-file img { grid-row: span 2; width: 34px; height: 34px; }
.dl-file b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-file i { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.dl-file i::after { content: ''; display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c5cff, #c062ff); transform-origin: left; animation: dl-load 3.2s var(--ease) infinite; }
@keyframes dl-load { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
/* 2. Mac : glisser dans Applications */
.dl-drag { display: flex; align-items: center; gap: 22px; }
.dl-drag img { position: relative; z-index: 1; width: 64px; height: 64px; animation: dl-drag 3.6s var(--ease) infinite; }
.dl-arrow { width: 54px; height: 2px; background: repeating-linear-gradient(90deg, var(--text-3) 0 6px, transparent 6px 11px); position: relative; }
.dl-arrow::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--text-3); border-right: 0; }
.dl-folder { position: relative; width: 66px; height: 52px; border-radius: 6px 8px 8px 8px; background: linear-gradient(#66b6ff, #2f86f6); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.dl-folder::before { content: ''; position: absolute; left: 0; top: -7px; width: 28px; height: 10px; border-radius: 5px 5px 0 0; background: #4fa3fb; }
.dl-folder::after { content: 'A'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px/1 var(--font); color: rgba(255,255,255,.85); }
@keyframes dl-drag { 0% { transform: none; opacity: 0; } 8%, 35% { transform: none; opacity: 1; } 72% { transform: translateX(150px) scale(.5); opacity: 1; } 82%, 100% { transform: translateX(150px) scale(.4); opacity: 0; } }
/* 3. Mac : le Dock */
.dl-dock { display: flex; align-items: flex-end; gap: 9px; padding: 9px 11px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.dl-dock i { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.12); }
.dl-dock span { position: relative; } .dl-dock span img { display: block; width: 46px; height: 46px; margin: -8px -3px 0; animation: dl-bounce 2.6s ease-in-out infinite; }
.dl-dock span::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.75); }
@keyframes dl-bounce { 0%, 40%, 100% { transform: none; } 10% { transform: translateY(-16px); } 20% { transform: none; } 30% { transform: translateY(-8px); } }
/* 2. Windows : installateur */
.dl-setup { width: 82%; border-radius: 10px; overflow: hidden; background: #f3f3f6; color: #1b1830; text-align: left; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.dl-setup header { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; background: #e6e5ee; font-size: 11.5px; font-weight: 560; }
.dl-setup header img { width: 16px; height: 16px; }
.dl-setup div { padding: 14px 14px 16px; font-size: 12.5px; }
.dl-setup i { display: block; margin-top: 10px; height: 8px; border-radius: 2px; background: #d9d7e4; overflow: hidden; }
.dl-setup i::after { content: ''; display: block; height: 100%; background: #2f86f6; transform-origin: left; animation: dl-load 3.2s var(--ease) infinite; }
/* 3. Windows : menu Démarrer */
.dl-start { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 22px; border-radius: 12px; background: rgba(40,36,64,.75); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #e6e2ff; }
.dl-start img { width: 52px; height: 52px; animation: dl-pop 2.6s ease-in-out infinite; }
@keyframes dl-pop { 0%, 60%, 100% { transform: none; } 20% { transform: scale(1.1); } }
.dl-first { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); background: color-mix(in srgb, var(--warning) 7%, transparent); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.dl-first .icon { width: 20px; height: 20px; color: var(--warning); margin-top: 2px; flex: none; }
.dl-first b { color: var(--text); }
.dl-first[hidden] { display: none; }
.dl-first-ok { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 7%, transparent); }
.dl-first-ok .icon { color: var(--success); }

/* Fenêtre « Quel Mac as-tu ? » : puce Apple (recommandée) ou Intel, puis confirmation du téléchargement */
.dl-choose { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--bg); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.75); }
.dl-choose::backdrop { background: rgba(6,5,14,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dl-choose[open] { animation: dl-pop-in .28s var(--ease); }
@keyframes dl-pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dl-choose-in { position: relative; padding: 34px 30px 28px; text-align: center; }
.dl-choose-in[hidden] { display: none; }
.dl-choose h2 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.035em; font-weight: 660; }
.dl-choose-lead { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.dl-choose-lead b { color: var(--text); }
.dl-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text-3); cursor: pointer; }
.dl-x:hover { background: var(--surface-hover); color: var(--text); }
.dl-x .icon { width: 18px; height: 18px; }
.dl-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.dl-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px 18px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.dl-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.dl-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl-chip-badge { height: 22px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; margin-bottom: 8px; }
.dl-chip[data-chip="arm64"] .dl-chip-badge, .dl-chip.is-mine .dl-chip-badge { background: var(--accent-soft); color: var(--accent-text); }
.dl-chip[data-chip="arm64"], .dl-chip.is-mine { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: radial-gradient(90% 80% at 50% 0%, rgba(124,92,255,.16), transparent 70%), var(--surface); }
.dl-chips:has(.is-mine) .dl-chip:not(.is-mine) { border-color: var(--border-strong); background: var(--surface); }
.dl-chips:has(.is-mine) .dl-chip:not(.is-mine) .dl-chip-badge { background: var(--surface-2); color: var(--text-3); }
.dl-chip-name { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.dl-chip-sub { font-size: 14px; color: var(--text-2); }
.dl-chip-years { font-size: 12.5px; color: var(--text-3); }
.dl-chip-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 40px; padding: 0 16px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600; }
.dl-chip-go .icon { width: 16px; height: 16px; }
.dl-how { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--bg-sunken); border: 1px solid var(--border); text-align: left; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.dl-how b { color: var(--text); }
.dl-how .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }
.dl-done-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 18px; background: var(--success-soft); color: var(--success); }
.dl-done-ico .icon { width: 30px; height: 30px; }
.dl-retry { font-size: 13.5px; margin-top: 16px; }
.dl-retry a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.dl-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl-feat { padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); }
.dl-feat > span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.dl-feat .icon { width: 22px; height: 22px; }
.dl-feat h3 { font-size: 17px; margin: 16px 0 6px; letter-spacing: -.015em; }
.dl-feat p { font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.dl-final { position: relative; overflow: hidden; margin: 110px auto 90px; max-width: 1160px; padding: 70px 30px; border-radius: 30px; text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(124,92,255,.38), transparent 70%), #0c0a18; border: 1px solid rgba(200,190,255,.12); }
.dl-final > img { display: block; width: 84px; height: 84px; margin: 0 auto 18px; }
.dl-final h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; font-weight: 660; line-height: 1.08; }
.dl-final p { color: var(--text-2); margin-top: 10px; font-size: 16px; }
@keyframes dl-float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .dl-steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .dl-feats { grid-template-columns: 1fr 1fr; }
  .dl-toast { right: 16px; top: 46px; width: 270px; }
}
@media (max-width: 560px) {
  .dl-hero { padding-top: 36px; }
  .dl-appicon { width: 88px; height: 88px; }
  .dl-ctas .btn { width: 100%; }
  .dl-stage { margin-top: 40px; padding: 0 12px; }
  .dl-bar { height: 26px; } .dl-dots i { width: 8px; height: 8px; } .dl-dots { gap: 5px; } .dl-title { font-size: 10.5px; }
  .dl-toast { display: none; }
  .dl-section { padding-top: 80px; }
  .dl-feats { grid-template-columns: 1fr; }
  .dl-choose-in { padding: 30px 18px 20px; }
  .dl-chips { grid-template-columns: 1fr; }
  .dl-chip { padding: 16px 14px 14px; }
  .dl-final { margin: 80px 12px 60px; padding: 50px 18px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-appicon, .dl-file i::after, .dl-setup i::after, .dl-drag img, .dl-dock span img, .dl-start img { animation: none; }
  .dl-win { transform: none; } .dl-choose[open] { animation: none; } .dl-toast { opacity: 1; transform: none; }
}
