/* =================================================================
   Yanbrico — STYLES BILINGUES FR / AR
   Thème : Teal élégant + Ambre
   ================================================================= */
:root {
    --brand: #0F766E;
    --brand-dark: #115E59;
    --brand-light: #14B8A6;
    --brand-soft: #CCFBF1;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-soft: #FEF3C7;
    --dark: #0F172A;
    --gray: #F1F5F9;
    --gray-warm: #F8FAFC;
    --border: #E2E8F0;
    --text: #1E293B;
    --muted: #64748B;
    --danger: #EF4444;
    --success: #10B981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: 'Cairo', 'Tajawal', Tahoma, sans-serif; }

a { transition: all .25s; }

/* ==================== NAVBAR ==================== */
.mb-navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    padding: 12px 0;
}
.mb-navbar .navbar-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.mb-navbar .navbar-brand img {
    height: 42px; width: auto; border-radius: 8px;
    object-fit: contain;
}
.mb-navbar .brand-text {
    font-size: 22px; font-weight: 800;
    color: var(--dark); letter-spacing: -.5px;
    line-height: 1;
}
.mb-navbar .brand-text .dot { color: var(--accent); }
.mb-navbar .nav-link {
    color: var(--text); font-weight: 500; font-size: 14px;
    padding: 8px 14px !important; border-radius: 8px;
    text-decoration: none;
}
.mb-navbar .nav-link:hover { background: var(--gray); color: var(--brand); }
.mb-navbar .btn-lang {
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand-light);
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 600; font-size: 13px;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.mb-navbar .btn-lang:hover { background: var(--brand); color: white; }
.mb-navbar .btn-register {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600; font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(245,158,11,.3);
}
.mb-navbar .btn-register:hover { background: var(--accent-dark); transform: translateY(-1px); color: white; }

/* ==================== HERO ==================== */
.mb-hero {
    background: linear-gradient(135deg, #0F172A 0%, #0F766E 100%);
    color: white;
    padding: 90px 0 140px;
    position: relative; overflow: hidden;
}
.mb-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(20,184,166,.35) 0, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(245,158,11,.20) 0, transparent 45%);
    pointer-events: none;
}
.mb-hero .container { position: relative; z-index: 2; }
.mb-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 18px; border-radius: 30px;
    font-size: 12px; font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
}
.mb-hero .eyebrow i { color: var(--accent); }
.mb-hero h1 {
    font-size: 3.4rem; font-weight: 800;
    line-height: 1.1; letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.mb-hero h1 .highlight {
    color: var(--accent);
    position: relative;
}
.mb-hero p.lead {
    font-size: 1.15rem; opacity: .9;
    max-width: 620px; margin-bottom: 40px;
}
.hero-badges {
    display: flex; gap: 30px; flex-wrap: wrap;
}
.hero-badges .hb {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
}
.hero-badges .hb i {
    font-size: 20px; color: var(--accent);
    background: rgba(245,158,11,.15);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

/* ==================== SEARCH ==================== */
.mb-search-wrap {
    max-width: 1120px;
    margin: -90px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.mb-search {
    background: white;
    border-radius: 24px;
    padding: 12px;
    box-shadow:
        0 20px 50px rgba(15,23,42,.12),
        0 4px 12px rgba(15,23,42,.06);
    border: 1px solid var(--border);
}
.mb-search .row { margin: 0; }
.mb-search .field {
    padding: 14px 20px;
    border-right: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
html[dir="rtl"] .mb-search .field { border-right: none; border-left: 1px solid var(--border); }
.mb-search .field:last-child { border: none; }
.mb-search .field-icon {
    width: 42px; height: 42px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.mb-search .field-content { flex: 1; min-width: 0; }
.mb-search .field-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--muted); margin-bottom: 2px;
    display: block;
}
.mb-search select,
.mb-search input {
    border: none; outline: none;
    font-size: 14px; font-weight: 600;
    color: var(--text); background: transparent;
    width: 100%; padding: 0;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
}
.mb-search .btn-search {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 30px;
    font-weight: 700; font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
    height: 100%;
    transition: all .2s;
}
.mb-search .btn-search:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15,118,110,.25);
}

/* ==================== SECTIONS ==================== */
.mb-section { padding: 85px 0; }
.section-header { margin-bottom: 45px; }
.section-header.text-center { text-align: center; }
.section-header .eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    color: var(--brand);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: var(--brand-soft);
    border-radius: 20px;
}
.section-header h2 {
    font-size: 2.2rem; font-weight: 800;
    color: var(--dark); letter-spacing: -1px;
    margin-bottom: 12px; line-height: 1.2;
}
.section-header p {
    color: var(--muted); font-size: 15px;
    max-width: 600px; margin: 0 auto;
}

/* ==================== SECTEUR CARDS ==================== */
.secteur-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 14px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: block; height: 100%;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.secteur-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .3s;
}
.secteur-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15,23,42,.08);
    border-color: var(--brand-light);
    color: var(--brand);
    text-decoration: none;
}
.secteur-card:hover::after { transform: scaleX(1); }
.secteur-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px; color: white;
    transition: transform .3s;
    box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.secteur-card:hover .secteur-icon { transform: scale(1.08) rotate(-4deg); }
.secteur-name {
    font-weight: 700; font-size: 13px;
    line-height: 1.3;
    transition: color .3s;
}

/* ==================== PRO CARDS ==================== */
.pro-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    height: 100%;
    display: flex; flex-direction: column;
    position: relative;
}
.pro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(15,23,42,.1);
    border-color: var(--brand-light);
}
.pro-card .badge-premium {
    position: absolute; top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 6px 14px; border-radius: 20px;
    font-size: 10px; font-weight: 800;
    letter-spacing: .5px;
    z-index: 3;
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 4px 12px rgba(245,158,11,.4);
}
html[dir="rtl"] .pro-card .badge-premium { right: auto; left: 16px; }
.pro-card .avatar-zone {
    height: 120px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.pro-card .avatar-zone::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%);
}
.pro-card .avatar-zone i {
    font-size: 48px; color: rgba(255,255,255,.95);
    position: relative; z-index: 1;
}
.pro-card .card-body-pro {
    padding: 20px; flex: 1; display: flex; flex-direction: column;
}
.pro-card .pro-name {
    font-size: 16px; font-weight: 700;
    margin-bottom: 4px; color: var(--dark);
}
.pro-card .pro-cat {
    font-size: 12px; color: var(--brand);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.pro-card .pro-loc {
    font-size: 13px; color: var(--muted);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.pro-card .pro-loc i { color: var(--danger); }
.pro-card .stars {
    color: var(--accent); font-size: 12px;
    margin-bottom: 14px;
    display: flex; align-items: center;
}
.pro-card .stars .count {
    color: var(--muted); font-size: 11px;
    margin-inline-start: 6px;
}
.pro-card .card-footer-pro {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.pro-card .price {
    font-size: 15px; font-weight: 800;
    color: var(--brand);
}
.pro-card .price small {
    font-weight: 500; color: var(--muted);
    font-size: 11px;
}
.pro-card .btn-view {
    background: var(--brand);
    color: white;
    padding: 8px 18px; border-radius: 24px;
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.pro-card .btn-view:hover {
    background: var(--brand-dark);
    color: white;
    transform: scale(1.05);
}

/* ==================== STEPS ==================== */
.step-card {
    text-align: center;
    padding: 35px 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    height: 100%;
    transition: all .3s;
    position: relative;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15,23,42,.08);
    border-color: var(--brand-light);
}
.step-num {
    width: 70px; height: 70px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: white;
    margin: 0 auto 22px;
    position: relative;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
}
.step-card h5 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 10px; color: var(--dark);
}
.step-card p {
    font-size: 13px; color: var(--muted);
    line-height: 1.6;
}

/* ==================== CTA BAND ==================== */
.cta-band {
    background: linear-gradient(135deg, var(--dark) 0%, var(--brand) 100%);
    border-radius: 28px;
    padding: 55px 40px;
    color: white;
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute; top: -60%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,.25) 0, transparent 65%);
    border-radius: 50%;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 {
    font-size: 2rem; font-weight: 800;
    margin-bottom: 8px; letter-spacing: -.8px;
}
.cta-band p { font-size: 15px; opacity: .9; margin: 0; }
.cta-band .btn-cta {
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all .25s;
    box-shadow: 0 12px 25px rgba(245,158,11,.35);
}
.cta-band .btn-cta:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
}

/* ==================== AD ZONES ==================== */
.ad-zone {
    background: var(--gray-warm);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    color: var(--muted); font-size: 13px;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.ad-zone:hover { border-color: var(--accent); color: var(--accent-dark); }
.ad-zone .ad-label {
    position: absolute; top: 10px; right: 12px;
    font-size: 9px; text-transform: uppercase;
    letter-spacing: 1px; color: #cbd5e1;
    font-weight: 700;
}
html[dir="rtl"] .ad-zone .ad-label { right: auto; left: 12px; }
.ad-zone i.fa-google { color: #4285f4; }

/* ==================== FOOTER ==================== */
.mb-footer {
    background: var(--dark);
    color: #94A3B8;
    padding: 70px 0 25px;
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}
.mb-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}
.mb-footer h5 {
    color: white; font-size: 15px;
    font-weight: 700; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 1px;
}
.mb-footer .brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.mb-footer .brand img {
    height: 44px; width: auto; border-radius: 10px;
    background: white; padding: 4px;
}
.mb-footer .brand-text {
    font-size: 22px; font-weight: 800;
    color: white; letter-spacing: -.5px;
}
.mb-footer .brand-text .dot { color: var(--accent); }
.mb-footer p, .mb-footer li a {
    color: #94A3B8; font-size: 13.5px;
    line-height: 1.9; text-decoration: none;
    transition: color .2s;
}
.mb-footer ul { padding: 0; }
.mb-footer li { list-style: none; }
.mb-footer li a:hover { color: var(--accent); }
.mb-footer .social-links {
    display: flex; gap: 12px; margin-top: 20px;
}
.mb-footer .social-links a {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    color: #94A3B8; transition: all .25s;
}
.mb-footer .social-links a:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-3px);
}
.mb-footer .bottom-bar {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 50px; padding-top: 25px;
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 15px;
    font-size: 12.5px;
}
.mb-footer .bottom-bar a { color: #94A3B8; text-decoration: none; }
.mb-footer .bottom-bar a:hover { color: var(--accent); }

/* ==================== FORMULAIRE PRO ==================== */
.pro-form-wrapper {
    max-width: 920px;
    margin: 40px auto;
    padding: 0 20px;
}
.pro-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15,23,42,.08);
    overflow: hidden;
}
.pro-form-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--brand) 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pro-form-header::before {
    content: '';
    position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,.25) 0, transparent 60%);
    border-radius: 50%;
}
.pro-form-header > * { position: relative; z-index: 1; }
.pro-form-header .icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: rgba(245,158,11,.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--accent);
    margin-bottom: 20px;
    border: 1px solid rgba(245,158,11,.3);
}
.pro-form-header h1 {
    font-size: 28px; font-weight: 800;
    margin-bottom: 10px; letter-spacing: -.8px;
}
.pro-form-header p { font-size: 14.5px; opacity: .85; }
.pro-form-body { padding: 45px 40px; }

/* Steps indicator */
.form-steps {
    display: flex; justify-content: space-between;
    margin-bottom: 45px;
    position: relative;
}
.form-steps::before {
    content: '';
    position: absolute; top: 22px;
    left: 45px; right: 45px;
    height: 2px; background: var(--border);
    z-index: 1;
}
.form-steps .step {
    position: relative; z-index: 2;
    text-align: center; flex: 1;
    background: white; padding: 0 10px;
}
.form-steps .step-num {
    width: 44px; height: 44px; border-radius: 14px;
    background: white;
    border: 2px solid var(--border);
    color: var(--muted);
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    transition: all .3s;
}
.form-steps .step.active .step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 10px 20px rgba(15,118,110,.3);
}
.form-steps .step-label {
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.form-steps .step.active .step-label { color: var(--brand); }

.pro-form-section {
    background: var(--gray-warm);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 25px;
}
.pro-form-section h4 {
    font-size: 15px; font-weight: 700;
    margin-bottom: 22px;
    color: var(--dark);
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.pro-form-section h4 i {
    color: var(--brand);
    background: var(--brand-soft);
    width: 30px; height: 30px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.pro-form-section .form-label {
    font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
    display: block;
}
.pro-form-section .form-label .req {
    color: var(--danger);
    margin-inline-start: 3px;
    font-weight: 700;
}
.pro-form-section .form-control,
.pro-form-section .form-select {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 11px 15px;
    font-size: 14px;
    transition: all .2s;
    background: white;
    width: 100%;
}
.pro-form-section .form-control:focus,
.pro-form-section .form-select:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}
.pro-form-section textarea.form-control { min-height: 110px; resize: vertical; }
.pro-form-section .form-check-input {
    width: 18px; height: 18px;
    margin-top: 2px;
    cursor: pointer;
}
.pro-form-section .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.pro-form-section .form-check-label {
    font-size: 13.5px;
    cursor: pointer;
    margin-inline-start: 8px;
}
.pro-form-section .file-upload {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    background: white;
}
.pro-form-section .file-upload:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.pro-form-section .file-upload i {
    font-size: 32px; color: var(--brand);
    margin-bottom: 10px; display: block;
}
.pro-form-section .file-upload small {
    color: var(--muted); display: block;
    font-size: 11.5px; margin-top: 4px;
}

.btn-submit-pro {
    background: var(--brand);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700; font-size: 16px;
    width: 100%;
    transition: all .25s;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(15,118,110,.25);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit-pro:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15,118,110,.35);
}

.alert-mb {
    padding: 16px 22px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex; align-items: center; gap: 12px;
    font-weight: 500;
}
.alert-success-mb { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--success); }
.alert-danger-mb { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }
html[dir="rtl"] .alert-success-mb,
html[dir="rtl"] .alert-danger-mb { border-left: none; border-right: 4px solid currentColor; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .mb-navbar .d-lg-flex { display: none !important; }
    .mb-hero h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
    .mb-hero { padding: 60px 0 120px; }
    .mb-hero h1 { font-size: 2rem; letter-spacing: -.8px; }
    .mb-search-wrap { margin-top: -80px; }
    .mb-search .field { border-right: none; border-bottom: 1px solid var(--border); }
    .mb-search .btn-search { height: auto; padding: 16px; margin-top: 8px; }
    .section-header h2 { font-size: 1.6rem; }
    .hero-badges { gap: 15px; }
    .pro-form-body { padding: 25px 20px; }
    .pro-form-header { padding: 35px 25px; }
    .form-steps .step-label { display: none; }
    .form-steps::before { left: 20px; right: 20px; }
    .cta-band { padding: 35px 25px; }
    .cta-band h3 { font-size: 1.5rem; }
}

/* =================================================================
   MENU FRONT UNIFIÉ — Ordre LTR préservé même en mode RTL (arabe)
   ================================================================= */

.mb-navbar .mb-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Conteneur des liens du menu principal */
.mb-navbar .mb-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    direction: ltr !important; /* 🔒 Force l'ordre gauche → droite même en arabe */
}

.mb-navbar .mb-nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 9px 15px !important;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}
.mb-navbar .mb-nav-links .nav-link i {
    font-size: 13px;
    opacity: .7;
}
.mb-navbar .mb-nav-links .nav-link:hover {
    background: var(--gray);
    color: var(--brand);
}
.mb-navbar .mb-nav-links .nav-link:hover i { opacity: 1; }
.mb-navbar .mb-nav-links .nav-link.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
}
.mb-navbar .mb-nav-links .nav-link.active i { opacity: 1; color: var(--brand); }

/* Actions à droite */
.mb-navbar .mb-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr !important; /* 🔒 Actions dans l'ordre logique */
}
.mb-navbar .nav-link-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px !important;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
}
.mb-navbar .nav-link-login:hover { background: var(--gray); color: var(--brand); }

/* Bouton mobile */
.mb-navbar .btn-menu-mobile {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--dark);
}
.mb-navbar .btn-menu-mobile:hover { background: var(--gray); }

/* Responsive : cacher les liens sur mobile */
@media (max-width: 991px) {
    .mb-navbar .mb-nav-links { display: none !important; }
    .mb-navbar .mb-nav-actions .nav-link-login { display: none; }
    .mb-navbar .btn-menu-mobile { display: inline-flex !important; }
}

@media (max-width: 480px) {
    .mb-navbar .brand-text { display: none; }
    .mb-navbar .btn-register span { display: none; }
    .mb-navbar .btn-register { padding: 10px 14px; }
}

/* Fix RTL : on garde l'ordre visuel LTR dans la navbar,
   mais les textes arabes restent bien affichés */
html[dir="rtl"] .mb-navbar .mb-nav-links .nav-link,
html[dir="rtl"] .mb-navbar .mb-nav-actions {
    /* Rien : le contenu texte arabe s'affiche correctement même en LTR */
}

/* Sous-menu mobile : RTL normal */
html[dir="rtl"] #mobileMenuFront .nav-link {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] #mobileMenuFront .nav-link i {
    margin-left: 8px;
    margin-right: 0;
}

