html, body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
  direction: ltr;
}

body.rtl {
  direction: rtl;
  font-family: "Open Sans", "Cairo", -apple-system, BlinkMacSystemFont,
    sans-serif;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: #e53e3e;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 10px 0;
}

.nav-links a:hover {
  color: #e53e3e;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-button {
  background: #e53e3e;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

/* Sélecteur de langue */
.language-selector {
  position: relative;
}

.language-btn {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  color: #333333;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-btn:hover {
  background: #edf2f7;
  border-color: #e53e3e;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.language-option:hover {
  background: #f7fafc;
  color: #e53e3e;
}

.language-option.active {
  color: #e53e3e;
  background: #fed7d7;
}

/* Hero Section */
.hero {
  padding: 140px 5% 100px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: #1a202c;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-primary {
  background: #e53e3e;
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #c53030;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #e53e3e;
  padding: 16px 32px;
  border: 2px solid #e53e3e;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e53e3e;
  color: white;
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #1a202c;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #e53e3e;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #e53e3e;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
}

.feature-card p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 16px;
}

/* Stats Section */
.stats-section {
  background: #f7fafc;
  border-radius: 16px;
  padding: 80px 40px;
  margin: 100px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #e53e3e;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: #e53e3e;
  color: white;
  padding: 100px 5%;
  text-align: center;
  /*margin: 100px 0;*/
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-white {
  background: white;
  color: #e53e3e;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-white:hover {
  background: #f7fafc;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: #1a202c;
  color: white;
  padding: 80px 5% 40px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: #e53e3e;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-section p {
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-section a {
  color: #a0aec0;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-section a:hover {
  color: #e53e3e;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #2d3748;
  color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }


}

/* Animations subtiles */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation délai pour les cartes */
.feature-card:nth-child(1) {
  transition-delay: 0.1s;
}
.feature-card:nth-child(2) {
  transition-delay: 0.2s;
}
.feature-card:nth-child(3) {
  transition-delay: 0.3s;
}
.feature-card:nth-child(4) {
  transition-delay: 0.4s;
}
.feature-card:nth-child(5) {
  transition-delay: 0.5s;
}
.feature-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Animation du logo */
.logo {
  font-size: 32px;
  font-weight: 900;
  color: #e53e3e;
  letter-spacing: -1px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 2px 10px rgba(229, 62, 62, 0.3);
}

/* Animation des statistiques */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #e53e3e;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
  color: #c53030;
}

/* Animation du hero */
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: #1a202c;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -2px;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.9s forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation des icônes */
.feature-icon {
  width: 60px;
  height: 60px;
  background: #e53e3e;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: #c53030;
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

/* Animation du header au scroll */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.header.scrolled {
  padding: 15px 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Screenshots Section */
.screenshots {
  text-align: center;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.screenshot-card {
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card img {
  width: 100%;
  border-radius: 15px;
}

.screenshot-card:hover {
  transform: translateY(-5px);
}

/* Animation pulse pour les boutons CTA */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary:focus,
.cta-button:focus {
  animation: pulse 0.6s ease-in-out;
}

/* États de focus pour l'accessibilité */
.cta-button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-white:focus {
  outline: 2px solid #e53e3e;
  outline-offset: 2px;
}
