/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

:root {
  --bg: #ffffff;
  --text: #111;
  --primary: #9b84f7;
  --card-bg: #f5f5f5;
  --border: #ddd;
  --hover: #eeeeee;
}
[data-theme="dark"] {
  --bg: #0b0b0f;
  --text: #dcdcdc;
  --primary: #9b84f7;
  --card-bg: #13131a;
  --border: #222;
  --hover: #1a1a22;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 0;
}

/* HEADER */
.topbar {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary);
}
.main-nav a {
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--primary);
}
.actions {
  display: flex;
  gap: 0.5rem;
}
.actions button, .actions select {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}

/* ACTU */
.actu {
  background-color: rgba(120, 11, 208, 0.59);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

/* TOP LINKS */
.top-links {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.top-links .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
}
.top-links a {
  transition: color 0.2s ease;
}
.top-links a:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 4rem 0;
  background: linear-gradient(to right, var(--card-bg), var(--bg));
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn:hover {
  background-color: #7b6adc;
}

/* SECTIONS */
section {
  padding: 4rem 0;
}
section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.text-left, .text-right {
  text-align: left;
}
.img-right img, .img-left img {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* PRICING */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  padding: 2rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card span {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 1rem;
}

/* FOOTER */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text);
  padding: 0.25rem 0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
}
.footer-bottom a {
  color: var(--primary);
  margin: 0 0.25rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero .container,
  section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .top-links .container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .main-nav {
    display: none;
  }
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
  }
  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9999;
    font-size: 0.9rem;
  }
  .toast.show {
    opacity: 1;
  }
  .downloads {
    padding: 60px 20px;
    background-color: var(--bg-light, #f9f9f9);
    text-align: center;
  }

  .download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }

  .app-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.2s ease;
  }

  .app-card:hover {
    transform: translateY(-4px);
  }

  .app-logo {
    max-width: 60px;
    margin-bottom: 15px;
  }

  .app-info h3 {
    margin: 10px 0 5px;
    font-size: 1.4em;
  }

  .app-info p {
    margin: 5px 0;
  }

  .compat {
    font-size: 0.9em;
    color: #666;
  }

  .btn-download {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .btn-download:hover {
    background-color: #0056b3;
  }
}
