/*
 * RTL overrides pour l'hébreu
 * Chargé automatiquement par WordPress quand la langue du site est RTL
 */

/* Direction globale */
body {
    direction: rtl;
    text-align: right;
}

/* Header */
.header-inner {
    flex-direction: row-reverse;
}

.header-actions {
    flex-direction: row-reverse;
}

/* Hero search */
.hero-search-bar form {
    flex-direction: row-reverse;
}

.hero-search-bar input {
    border-radius: 0 8px 8px 0;
    text-align: right;
}

.hero-search-bar button {
    border-radius: 8px 0 0 8px;
}

/* Services carousel */
.services-carousel {
    flex-direction: row-reverse;
}

/* Cards grids */
.qp-card-top {
    flex-direction: row-reverse;
}

.qp-card-cta {
    flex-direction: row-reverse;
}

.card-pro-cta {
    flex-direction: row-reverse;
}

/* Entreprise hero */
.ent-hero-card {
    flex-direction: row-reverse;
}

.ent-hero-badges {
    flex-direction: row-reverse;
}

.ent-hero-cta {
    flex-direction: row-reverse;
}

.ent-info-item {
    flex-direction: row-reverse;
}

/* Sidebar */
.ent-layout {
    flex-direction: row-reverse;
}

/* Breadcrumb */
.almaweb-breadcrumb {
    flex-direction: row-reverse;
}

.almaweb-breadcrumb li::before {
    content: "\\";
}

/* Footer */
.footer-inner {
    direction: rtl;
}

.footer-cols {
    flex-direction: row-reverse;
}

/* Navigation prev/next article — inverser les flèches */
.single-nav {
    flex-direction: row-reverse;
}

.single-nav-prev .single-nav-label::before {
    content: "→ ";
}

.single-nav-next .single-nav-label::after {
    content: " ←";
}

/* Search card */
.search-card {
    flex-direction: row-reverse;
}

.search-card-badges {
    flex-direction: row-reverse;
}

.search-card-actions {
    flex-direction: row-reverse;
}

/* QP hero */
.qp-hero-inner {
    flex-direction: row-reverse;
}

/* Services bar */
.qp-services-bar-inner {
    flex-direction: row-reverse;
}

.qp-services-tags {
    flex-direction: row-reverse;
}

/* Voir aussi */
.qp-voir-aussi-link {
    flex-direction: row-reverse;
}

/* Hero location badge */
.qp-hero-location-badge {
    flex-direction: row-reverse;
}

/* Actu cards */
.actus-grid {
    direction: rtl;
}

/* border-left → border-right */
.ent-review-form,
.qp-hero-intro,
blockquote {
    border-left: none;
    border-right: 4px solid var(--gc-primary);
    padding-left: 0;
    padding-right: 16px;
}

/* Pagination SVG arrows — inverser prev/next */
.posts-pagination .prev svg {
    transform: scaleX(-1);
}

.posts-pagination .next svg {
    transform: scaleX(-1);
}
