/* Variables CSS */
:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border-light: #e5e5e5;
  --accent-green: #00c853;
  --accent-red: #ff3b30;
  --accent-blue: #2196f3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  font-family: "Segoe UI", "Arial", "Tahoma", sans-serif;
}

body[dir="rtl"] .logo-arabe {
  margin-left: 0;
  margin-right: 8px;
}

body[dir="rtl"] nav {
  flex-direction: row-reverse;
}

body[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

body[dir="rtl"] .lang-selector {
  flex-direction: row-reverse;
}

body[dir="rtl"] .faq-question {
  flex-direction: row-reverse;
}

body[dir="rtl"] .download-btn {
  flex-direction: row-reverse;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--primary-white);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.logo-arabe {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-left: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Sélecteur de langue */
.lang-selector {
  display: flex;
  gap: 4px;
  background: var(--border-light);
  border-radius: 8px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--primary-white);
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--primary-black);
  color: var(--primary-white);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
  letter-spacing: 0.5px;
  flex: 1;
  text-align: center;
}

.btn-primary {
  background: var(--primary-black);
  color: var(--primary-white);
  border-color: var(--primary-black);
}

.btn-primary:hover {
  background: var(--text-primary);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary-white);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-light);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(
    to bottom,
    var(--primary-black) 0%,
    var(--primary-black) 20px,
    var(--primary-white) 20px
  );
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-cta .btn {
  width: 100%;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--primary-white);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: var(--primary-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-black);
  color: var(--primary-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-white);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Download Section */
.download {
  padding: 100px 0;
  background: var(--primary-black);
  color: var(--primary-white);
  text-align: center;
}

.download h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.download p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  opacity: 0.8;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--primary-white);
  color: var(--primary-black);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--primary-white);
}

.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-black);
}

/* Footer */
footer {
  background: var(--primary-white);
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  nav {
    display: none;
  }

  .hero {
    padding: 100px 0 60px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 24px;
  }

  .download {
    padding: 60px 0;
  }

  .download h2 {
    font-size: 32px;
  }
}

@media (min-width: 769px) {
  .hero-cta {
    flex-direction: row;
    max-width: 500px;
  }

  nav {
    display: flex;
  }
}
