/* My Desktop Tab — site promotionnel */

:root {
  --bg: #0d0b16;
  --bg-elev: #17142a;
  --bg-card: #1c1830;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f1fb;
  --text-muted: #a9a3c4;
  --brand: #8f7bff;
  --brand-strong: #6b46e5;
  --accent: #0a84ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--brand-strong);
  color: #fff;
  border-radius: 8px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 22, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--text-muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}

.lang-switch a {
  padding: 4px 10px;
  color: var(--text-muted);
}

.lang-switch a:hover {
  text-decoration: none;
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: var(--brand-strong);
  color: #fff;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(107, 70, 229, 0.8);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d8bff, #7552f0);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn.is-soon {
  opacity: 0.55;
  pointer-events: none;
}

.btn .soon {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 64px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(255, 110, 90, 0.35), transparent 70%),
    radial-gradient(40% 35% at 80% 25%, rgba(0, 190, 220, 0.3), transparent 70%),
    radial-gradient(45% 40% at 50% 60%, rgba(143, 123, 255, 0.45), transparent 70%);
  filter: blur(40px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 820px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(90deg, #ffb199, var(--brand) 50%, #5fd4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.browser-frame {
  margin: 56px auto 0;
  max-width: 1040px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.browser-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-bar i:nth-child(2) {
  background: #febc2e;
}

.browser-bar i:nth-child(3) {
  background: #28c840;
}

.browser-bar .url {
  margin-left: 12px;
  flex: 1;
  max-width: 420px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Fonctionnalités ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.feature {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(143, 123, 255, 0.4);
  transform: translateY(-2px);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(143, 123, 255, 0.15);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Mises en avant (texte + capture) ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 56px;
}

.showcase + .showcase {
  margin-top: 96px;
}

.showcase.reverse {
  grid-template-columns: 1.3fr 1fr;
}

.showcase.reverse .showcase-text {
  order: 2;
}

.showcase-text h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.showcase-text p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.showcase-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase-text li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 15px;
}

.showcase-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.shot {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
}

/* ---------- Confidentialité ---------- */

.privacy {
  background: linear-gradient(180deg, transparent, rgba(143, 123, 255, 0.07), transparent);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.privacy-item {
  padding: 26px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.privacy-item .big {
  font-size: 34px;
  margin-bottom: 8px;
}

.privacy-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.privacy-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.privacy-details {
  max-width: 760px;
  margin: 36px auto 0;
  font-size: 15px;
  color: var(--text-muted);
}

.privacy-details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Appel final ---------- */

.cta {
  text-align: center;
}

.cta-box {
  padding: 56px 24px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(255, 110, 90, 0.25), transparent 70%),
    radial-gradient(60% 80% at 80% 100%, rgba(0, 190, 220, 0.2), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
}

.cta-box img {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.cta-box p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--text-muted);
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--text-muted);
}

/* ---------- Visionneuse ---------- */

.lightbox {
  max-width: min(1280px, 94vw);
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(5, 4, 10, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-height: 88vh;
  width: auto;
  border-radius: var(--radius-sm);
}

.lightbox button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- Apparition au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .showcase,
  .showcase.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase.reverse .showcase-text {
    order: 0;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .store-buttons .btn {
    width: 100%;
  }

  .browser-bar .url {
    display: none;
  }
}

.privacy-link {
  margin: 20px 0 0;
  text-align: center;
  font-size: 15px;
}

/* ---------- Page politique de confidentialité ---------- */

.policy {
  max-width: 760px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.policy h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.policy .updated {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.policy .lede {
  margin: 0 0 24px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.badge {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(143, 123, 255, 0.15);
  border: 1px solid rgba(143, 123, 255, 0.3);
  border-radius: 999px;
}

.policy section {
  padding: 0;
  margin-bottom: 40px;
}

.policy h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.policy h2 .n {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.policy p,
.policy li {
  color: var(--text);
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.policy li {
  margin-bottom: 8px;
}

.policy .soft {
  color: var(--text-muted);
}

.policy code {
  padding: 1px 6px;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.policy .card {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.policy .card > :last-child {
  margin-bottom: 0;
}

.policy .contact {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
