.hero {
    overflow: hidden;
}

.hero h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-success {
    background-color: #0086be;
    border-color: #0086be;
}

.btn-success:hover {
    background-color: #047857;
    border-color: #047857;
}

.text-success {
    color: #0086be !important;
}

/* Nouveaux styles */
.bg-success-light {
    background-color: rgba(5, 150, 105, 0.1);
}

.bg-warning-light {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-secondary-light {
    background-color: rgba(107, 114, 128, 0.1);
}

.text-warning {
    color: #f59e0b !important;
}

.text-secondary {
    color: #6b7280 !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Logo & Navigation */
.sitenames {
    margin-bottom: 0;
    line-height: 1.2;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

/* Bandeau formation en cours */
.bg-success {
    background-color: #0086be !important;
}

/* ========== STYLES RTL POUR L'ARABE ========== */

/* Styles généraux RTL */
[dir="rtl"] {
    text-align: right;
}

/* Police arabe */
[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Open Sans', sans-serif;
}

/* Header RTL - Corrections spécifiques */
[dir="rtl"] .header .logo {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .header .logo img {
    margin-left: 11px !important;
    margin-right: 0 !important;
}

/* Navigation RTL - Corrections importantes */
[dir="rtl"] .navmenu ul {
    text-align: right;
    direction: rtl;
    justify-content: flex-end;
}

[dir="rtl"] .navmenu a,
[dir="rtl"] .navmenu a:focus {
    padding: 18px 15px;
}

[dir="rtl"] .navmenu a i,
[dir="rtl"] .navmenu a:focus i {
    margin-left: 0 !important;
    margin-right: 5px !important;
}

[dir="rtl"] .navmenu li:last-child a {
    padding-left: 0 !important;
    padding-right: 15px !important;
}

/* Dropdown RTL - Corrections positioning */
[dir="rtl"] .navmenu .dropdown ul {
    right: 14px !important;
    left: auto !important;
}

[dir="rtl"] .navmenu .dropdown:hover>ul {
    right: 14px !important;
    left: auto !important;
}

[dir="rtl"] .navmenu .dropdown .dropdown ul {
    right: 100% !important;
    left: auto !important;
}

[dir="rtl"] .navmenu .dropdown .dropdown:hover>ul {
    right: 100% !important;
    left: auto !important;
}

/* Mobile navigation RTL */
[dir="rtl"] .mobile-nav-toggle {
    right: auto !important;
    left: 10px !important;
    margin-right: 0 !important;
    margin-left: 10px !important;
}

[dir="rtl"] .mobile-nav-active .mobile-nav-toggle {
    right: auto !important;
    left: 15px !important;
}

/* Mobile menu RTL corrections */
[dir="rtl"] .navmenu a i,
[dir="rtl"] .navmenu a:focus i {
    margin-left: 0 !important;
    margin-right: 5px !important;
}

/* Footer RTL */
[dir="rtl"] .footer .logo img {
    margin-left: 11px !important;
    margin-right: 0 !important;
}

[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-contact {
    text-align: right;
}

[dir="rtl"] .footer-contact p i {
    margin-left: 5px !important;
    margin-right: 0 !important;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

[dir="rtl"] .social-links a {
    margin-right: 5px !important;
}

[dir="rtl"] .social-links a:first-child {
    margin-left: 0 !important;
}

/* Corrections pour Bootstrap en RTL */
[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

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

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-center {
    text-align: center !important;
}

/* Responsive RTL */
@media (max-width: 1199px) {
    [dir="rtl"] .navmenu {
        padding: 0;
        z-index: 9997;
    }

    [dir="rtl"] .navmenu ul {
        text-align: right;
        right: 20px !important;
        left: 20px !important;
    }

    [dir="rtl"] .navmenu a,
    [dir="rtl"] .navmenu a:focus {
        padding: 10px 20px;
    }
}

/* Footer responsive RTL */
@media (max-width: 768px) {

    [dir="rtl"] .footer-brand,
    [dir="rtl"] .footer-links,
    [dir="rtl"] .footer-contact {
        text-align: center !important;
    }

    [dir="rtl"] .social-links {
        justify-content: center !important;
    }
}

/* Corrections supplémentaires pour éviter les conflits CSS */
[dir="rtl"] .container,
[dir="rtl"] .container-fluid {
    direction: rtl;
}

[dir="rtl"] .d-flex {
    direction: rtl;
}

/* Fix pour les icônes Bootstrap */
[dir="rtl"] .bi {
    direction: ltr;
    display: inline-block;
}
