:root {
    --primary-color: #e30613;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --text-color: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    direction: rtl;
    overflow-x: hidden;
   direction: ltr; /* Rétablir le flux gauche-droite */
  text-align: left; /* Alignement général du texte */
}

/* Corriger les propriétés spécifiques RTL */
.hero-title::after, .section-title::after {
  left: 0; /* Au lieu de right: 0 */
}

.nav-link::after {
  left: 0; /* Au lieu de right: 0 */
}

/* Ajuster les marges et paddings */
.me-4 { margin-right: 1.5rem !important; } /* Conserver la logique LTR */
.ms-auto { margin-left: auto !important; }
  /* Header */
  header {
    background: linear-gradient(135deg, var(--primary-color), #b30000);
    color: var(--light-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
  }
  
  .hero-logo {
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 3.5rem;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
  }
  
  .hero-logo:hover {
    transform: rotate(15deg) scale(1.1);
  }
  
  .hero-title {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50%;
    height: 3px;
    background: var(--accent-color);
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
  }
  
  .btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-primary-custom:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
  }
  
  .btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #ff2d20);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
  }
  
  .btn-primary-custom:hover::before {
    opacity: 1;
  }
  
  /* Navigation */
/* Navigation */
.navbar {
  transition: var(--transition);
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menu déroulant profil */
.profile-dropdown {
  position: relative;
}

.profile-dropdown .dropdown-toggle {
  transition: var(--transition);
  border: none;
  padding: 0;
}

.profile-dropdown .dropdown-toggle:hover {
  opacity: 0.8;
}

.profile-dropdown .dropdown-menu {
  min-width: 220px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 12px;
}

.profile-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.profile-dropdown .dropdown-item:hover {
  background: var(--primary-light);
  padding-left: 1.75rem;
}

/* Responsive */
@media (max-width: 992px) {
  .profile-dropdown .dropdown-menu {
      position: absolute;
      right: 15px;
      left: auto;
  }
  
  .profile-dropdown .dropdown-toggle {
      font-size: 1.5rem;
  }
}
  .navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
  }
  
  .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    color: var(--dark-color) !important;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-link:hover::after {
    width: 100%;
    left: 0;
  }
  
  /* Sections */
  section {
    padding: 80px 0;
    position: relative;
  }
  
  .section-title {
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  .feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
  }
  
  .feature-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--light-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .feature-card:hover .feature-icon {
    transform: scale(1.2);
  }
  
  /* Pricing */
  .pricing-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .pricing-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
  }
  
  .price {
    font-size: 2.5rem;
    font-weight: 700;
  }
  
  .price-period {
    font-size: 1rem;
    opacity: 0.8;
  }
  
  .pricing-features {
    padding: 0;
    list-style: none;
  }
  
  .pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .pricing-features li:last-child {
    border-bottom: none;
  }
  
  /* Form */
  .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: var(--transition);
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(227, 6, 19, 0.25);
  }
  
  /* Testimonials */
  .testimonial-card {
    background: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    margin: 20px 0;
  }
  
  .testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: rgba(227, 6, 19, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
  }
  
  .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
  }
  
  /* Footer */
  footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
    position: relative;
  }
  
  .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 20px;
    display: inline-block;
  }
  
  .footer-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    color: var(--light-color);
    padding-right: 5px;
  }
  
  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    margin-left: 10px;
    transition: var(--transition);
  }
  
  .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
  }
  
  /* Animations */
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }
  
  .floating {
    animation: float 3s ease-in-out infinite;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    header {
      padding: 80px 0;
    }
    
    .hero-logo {
      width: 90px;
      height: 90px;
      font-size: 2.5rem;
    }
    
    section {
      padding: 60px 0;
    }
    
    .section-title::after {
      right: 50%;
      transform: translateX(50%);
    }
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    body {
      background-color: #121212;
      color: #f1f1f1;
    }
    
    .feature-card, .testimonial-card, .pricing-card {
      background-color: #1e1e1e;
      color: #f1f1f1;
    }
    
    .form-control {
      background-color: #2d2d2d;
      border-color: #444;
      color: #f1f1f1;
    }
  }
  /* Profil utilisateur */
.profile-dropdown .dropdown-toggle::after {
  display: none;
}

.profile-dropdown .dropdown-menu {
  min-width: 220px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 12px;
}

.profile-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
}

.profile-dropdown .dropdown-item:hover {
  background: var(--primary-light);
  padding-left: 1.75rem;
}