/* ===== Language Switcher (in nav) ===== */
/* ⚠️ TEMP : switcher masqué, site verrouillé en FR. Retirer "display:none" pour réactiver EN/AR. */
.lang-switcher { display: none !important; }
.lang-switcher.enabled {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .25rem .35rem;
  border-radius: 9999px;
  background: rgba(13, 31, 63, 0.04);
}
.lang-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  color: #5d6677;
  padding: .35rem .55rem;
  border: 0;
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all .2s ease;
  text-transform: uppercase;
}
.lang-btn:hover { color: #0d1f3f; }
.lang-btn.active {
  background: #0d1f3f;
  color: #fff;
}

/* ===== RTL Support (Arabic) ===== */
[dir="rtl"] body {
  font-family: 'Lato', 'Tajawal', 'Cairo', sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Montserrat', 'Tajawal', 'Cairo', sans-serif;
  letter-spacing: 0;
}

/* Mirror flex rows so left becomes right */
[dir="rtl"] .nav-row,
[dir="rtl"] .nav-actions,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .hero-ctas,
[dir="rtl"] .cta-row,
[dir="rtl"] .form-row,
[dir="rtl"] .form-actions,
[dir="rtl"] .about-actions,
[dir="rtl"] .histoire .cta {
  flex-direction: row-reverse;
}

/* Mirror grids that have asymmetric direction */
[dir="rtl"] .about .grid,
[dir="rtl"] .signature .grid,
[dir="rtl"] .histoire .grid,
[dir="rtl"] .contact-grid {
  direction: rtl;
}

/* Flip arrow icons */
[dir="rtl"] .arrow,
[dir="rtl"] .cta-pill .arrow-circle svg,
[dir="rtl"] .product-arrow,
[dir="rtl"] .arrow-ic {
  transform: scaleX(-1);
}
[dir="rtl"] .btn:hover .arrow {
  transform: scaleX(-1) translateX(3px);
}
[dir="rtl"] .cta-pill {
  padding: .35rem 1.1rem .35rem .35rem;
}

/* Marquee direction reverse for RTL */
[dir="rtl"] .marquee-track,
[dir="rtl"] .testi-track {
  animation-direction: reverse;
}

/* Form inputs RTL */
[dir="rtl"] .form-field input,
[dir="rtl"] .form-field select,
[dir="rtl"] .form-field textarea {
  text-align: right;
}
[dir="rtl"] .form-field select {
  background-position: left 1rem center;
  padding-right: 1rem;
  padding-left: 2.5rem;
}

/* Lightbox close button position flip */
[dir="rtl"] .lb-close {
  right: auto;
  left: 1.5rem;
}

/* WhatsApp float position flip */
[dir="rtl"] .wa-float,
[dir="rtl"] .float-buttons {
  right: auto;
  left: 1.5rem;
}

/* Filter pills mobile scroll on RTL — flip mask */
[dir="rtl"] .filter-pills {
  justify-content: flex-end;
}

/* Phone card RTL */
[dir="rtl"] .phone-card { flex-direction: row-reverse; }
[dir="rtl"] .info-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .testi-author { flex-direction: row-reverse; }

/* Bullet list RTL */
[dir="rtl"] .pillars li,
[dir="rtl"] .bullet-list li {
  flex-direction: row-reverse;
}

/* Section heads alignment for RTL — keep centered text */
[dir="rtl"] .section-head,
[dir="rtl"] .section-minihead,
[dir="rtl"] .partners-title,
[dir="rtl"] .intro-block {
  text-align: center;
}

/* About text alignment when RTL */
[dir="rtl"] .about p,
[dir="rtl"] .signature p,
[dir="rtl"] .histoire p,
[dir="rtl"] .reinvented p {
  text-align: right;
}

/* Page hero stays centered */
[dir="rtl"] .page-hero,
[dir="rtl"] .hero-content {
  text-align: center;
}

/* Mobile nav adjustments */
@media (max-width: 980px) {
  .lang-switcher { display: none; }
}

/* When RTL, mobile language switcher visible */
[dir="rtl"] .lang-switcher .lang-btn:not(.active) {
  /* keeps switcher consistent */
}
