/* ==================================================
   RTL GLOBAL
================================================== */

html[dir="rtl"] {
  direction: rtl;
  unicode-bidi: embed;
}

/* ==================================================
   TEXTE & ALIGNEMENTS
================================================== */

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  text-align: right;
}



/* ==================================================
   HEADER / HERO
================================================== */

html[dir="rtl"] .hero-wrapper {
  text-align: right;
}

html[dir="rtl"] .hero-section-content .intro-text p {
  text-align: right;
}

/* Bouton CTA */
html[dir="rtl"] .btn-cta {
  direction: rtl;
}

html[dir="rtl"] .btn-cta i {
  margin-left: 0;
  margin-right: 8px;
  transform: rotate(180deg);
}

html[dir="rtl"] .hero-section-content {
   background-image: url(../images/bg-header-rtl.jpg) !important;
}


/* ==================================================
   MENU DESKTOP
================================================== */

/* html[dir="rtl"] .main-nav > ul {
  display: flex;
  flex-direction: row-reverse;
} */

html[dir="rtl"] .main-nav {
  text-align: left;
}

html[dir="rtl"] .main-nav > ul li a {
  margin-right: 0;
  margin-left: 20px;
}

/* Dropdown */
html[dir="rtl"] .submenu {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .has-submenu i {
  margin-left: 0;
  margin-right: 6px;
}

/* ==================================================
   TOP BAR
================================================== */
html[dir="rtl"] .top-menu-info li:nth-child(1) {
    margin-right: 0px;
}

html[dir="rtl"] .top-menu-info .right {
  text-align: left;
}

/* ==================================================
   SECTION CLINIQUE
================================================== */

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

html[dir="rtl"] .clinic-content {
  text-align: right;
}

/* ==================================================
   MOBILE MENU
================================================== */

html[dir="rtl"] .menu-mobile-body {
  transform: translateX(100%);
}

html[dir="rtl"] .menu-mobile-body.is-open {
  transform: translateX(0);
}

html[dir="rtl"] .menu-mobile-body a i {
  right: auto;
  left: 0;
}

html[dir="rtl"] .submenu-mobile {
  padding-left: 0;
  padding-right: 40px;
}

.mobile-hamburger-wrapper {
    text-align: end;
}

/* ==================================================
   RESPONSVE
================================================== */


  .hero-section-content .intro-text h1, .hero-wrapper {
    text-align: start;
  } 


  /* ===============================
   RTL – WHY CHOOSE US
================================ */

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

html[dir="rtl"] .why-shape {
  left: auto;
  right: 0;
  transform: translateX(58px);
}

html[dir="rtl"] .why-content-flex::before {
  background: linear-gradient(
    to left,
    rgba(31, 45, 125, 0.99),
    rgba(31, 45, 125, 0.90),
    rgba(31, 45, 125, 0.80)
  );
}

html[dir="rtl"] .why-content {
  text-align: right;
  padding-left: 0;
  padding-right: 30px;
}

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

html[dir="rtl"] .feature span {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .why-intro,
html[dir="rtl"] .why-content h2{
  text-align: start;

}


/* ===============================
   SPECIALTIES — RTL
================================ */

html[dir="rtl"] .specialties-section {
  direction: rtl;
}

/* Header */
html[dir="rtl"] .specialties-header {
  text-align: right;
}

html[dir="rtl"] .specialties-header h2,
html[dir="rtl"] .specialties-header p {
  text-align: right;
}

/* Carousel RTL */
html[dir="rtl"] .specialties-carousel {
  /* direction: rtl; */
}

html[dir="rtl"] .specialties-carousel {
    /* direction: rtl; */
}

html[dir="rtl"] .testimonials-carousel {
   /* direction: rtl; */
}


/* Item */
html[dir="rtl"] .specialty-item {
  text-align: right;
}

/* Overlay texte */
html[dir="rtl"] .specialty-overlay {
  text-align: right;
  align-items: flex-end;
}

/* TITRE & TEXTE */
html[dir="rtl"] .specialty-overlay h3,
html[dir="rtl"] .specialty-overlay p {
  text-align: right;
}

/* Gradient inversé (important visuellement) */
html[dir="rtl"] .specialty-overlay {
  background: linear-gradient(
    to top,
    rgba(111, 189, 216, 0.95),
    rgba(111, 189, 216, 0.55),
    rgba(111, 189, 216, 0.15)
  );
}

/* Supprimer effet miroir indésirable */
html[dir="rtl"] .specialty-item img {
  transform: none;
}

/* Hover OK RTL */
html[dir="rtl"] .specialty-item:hover img {
  transform: scale(1.05);
}

html[dir="rtl"] .specialty-overlay h3,
html[dir="rtl"] .specialty-overlay p {
  width: 100%;
  text-align: right;
}

/* ===============================
   RTL – PLAN DU SITE
================================ */

.footer-col-rtl {
  direction: rtl;
  text-align: right;
}

/* Liens */
html[dir="rtl"] .footer-links a {
  justify-content: flex-start;
  gap: 10px;
}

/* Icône flèche */
html[dir="rtl"]  .arrow {
  color: #6fbdd8;
  font-size: 18px;
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

/* Hover RTL (inverse du LTR) */
html[dir="rtl"] a:hover .arrow {
  transform: translateX(-6px);
}

html[dir="rtl"] .footer-col:nth-child(2) {
    padding-right: 80px;
}

html[dir="rtl"] .copyright-line {
  direction: ltr;          /* 🔒 bloque l’ordre logique */
  unicode-bidi: isolate;   /* 🔒 empêche les inversions */
  text-align: center;      /* reste centré visuellement */
}

/*RESPENSIVE*/
@media (max-width: 992px) {
  html[dir="rtl"] .footer-col:nth-child(2) {
      padding-right: 0px;
  }
}


/* ===============================
   RTL – GUTENBRG
================================ */

html[dir="rtl"] .entry-content .wp-block-button a::after {

    display: inline-block;
    transform: rotate(180deg);
    margin-right: 10px;
    margin-left: 0;

}

html[dir="rtl"] .team-section h3 {
  text-align: center;
}

html[dir="rtl"] .team-card p{
  text-align: center;
}

html[dir="rtl"] .testimonials-subtitle{
  margin: 10px 0;
}

html[lang="ar"] .footer-links a::before {
    transform: translateY(-50%) rotate(180deg);
}

html[lang="ar"] .footer-contact a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

html[lang="ar"] .footer-bottom p {

    direction: rtl;

    text-align: center;

}

html[lang="ar"] .top-menu-info .phone-number{
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}


html[dir="rtl"] .main-nav .sub-menu {
  left: 0 !important;
  right: initial;
  text-align: left;
}

html[dir="rtl"] .menu-item-has-children > a::after {
    right: auto;
    right: 0;
}

html[dir="rtl"] .menu-mobile-body .menu-item-has-children > a {
    position: relative;
    padding-left: 30px;
}

html[dir="rtl"] .menu-mobile-body .menu-item-has-children > a::after {
    left: 0;
    right: auto;
}


