/* Support RTL (Right-to-Left) pour l'arabe */

/* Direction globale */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Marges inversées */
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .me-4 { margin-right: 0 !important; margin-left: 1.5rem !important; }
[dir="rtl"] .me-5 { margin-right: 0 !important; margin-left: 3rem !important; }

[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .ms-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
[dir="rtl"] .ms-5 { margin-left: 0 !important; margin-right: 3rem !important; }

/* Padding inversé */
[dir="rtl"] .pe-1 { padding-right: 0 !important; padding-left: 0.25rem !important; }
[dir="rtl"] .pe-2 { padding-right: 0 !important; padding-left: 0.5rem !important; }
[dir="rtl"] .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }

[dir="rtl"] .ps-1 { padding-left: 0 !important; padding-right: 0.25rem !important; }
[dir="rtl"] .ps-2 { padding-left: 0 !important; padding-right: 0.5rem !important; }
[dir="rtl"] .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }

/* Alignement du texte */
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }

/* Navigation */
[dir="rtl"] .navbar-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
  left: auto !important;
  right: 0 !important;
}

[dir="rtl"] .navbar-brand {
  margin-left: auto;
  margin-right: 0;
}

/* Icônes inversées */
[dir="rtl"] .fa-arrow-right::before { content: "\f060"; }
[dir="rtl"] .fa-arrow-left::before { content: "\f061"; }
[dir="rtl"] .fa-chevron-right::before { content: "\f053"; }
[dir="rtl"] .fa-chevron-left::before { content: "\f054"; }

/* Formulaires */
[dir="rtl"] .form-check {
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .form-check-input {
  float: right;
  margin-left: 0;
  margin-right: -1.5rem;
}

/* Carousel */
[dir="rtl"] .carousel-control-prev {
  left: auto;
  right: 0;
}

[dir="rtl"] .carousel-control-next {
  right: auto;
  left: 0;
}

/* Footer */
[dir="rtl"] .footer-item {
  text-align: right;
}

/* Boutons */
[dir="rtl"] .btn .me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

