/* Styles pour le sélecteur de langue */
.language-switch {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.language-switch a {
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.language-switch a:hover {
  color: #f39c12;
}

.language-switch a.active {
  color: #f39c12;
  font-weight: 700;
}

/* Styles pour la direction RTL (arabe) */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Roboto', sans-serif;
  text-align: right;
}

html[dir="rtl"] .header-container,
html[dir="rtl"] .nav-container,
html[dir="rtl"] .footer-container {
  direction: rtl;
}

html[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

html[dir="rtl"] .logo-text {
  margin-right: 15px;
  margin-left: 0;
  text-align: right;
}

html[dir="rtl"] .nav-list {
  padding-right: 0;
}

html[dir="rtl"] .card-container {
  direction: rtl;
}

html[dir="rtl"] .footer-links {
  padding-right: 0;
}

html[dir="rtl"] .team-content,
html[dir="rtl"] .project-content,
html[dir="rtl"] .content-with-image {
  direction: rtl;
}

html[dir="rtl"] main ul {
  margin-right: 1.5rem;
  margin-left: 0;
}

/* Ajustements pour les formulaires en RTL */
html[dir="rtl"] .form-group label {
  text-align: right;
}

html[dir="rtl"] .contact-container {
  direction: rtl;
}

/* Ajustements pour les tableaux en RTL */
html[dir="rtl"] table {
  direction: rtl;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}

/* Ajustements pour les filtres de publication en RTL */
html[dir="rtl"] .filter-container {
  direction: rtl;
}

html[dir="rtl"] .filter-group {
  margin-left: 1rem;
  margin-right: 0;
}
