.ps-lang-switcher {
  position: fixed;
  inset-block-start: 88px;
  inset-inline-start: 16px;
  z-index: 2147483000;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.ps-lang-switcher button,
.ps-lang-switcher a {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font: 800 13px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ps-lang-switcher button.is-active,
.ps-lang-switcher a.is-active {
  background: #2563eb;
  color: #fff;
}

html[data-theme='dark'] .ps-lang-switcher,
[data-theme='dark'] .ps-lang-switcher {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(17, 24, 39, 0.92);
}

html[data-theme='dark'] .ps-lang-switcher button,
[data-theme='dark'] .ps-lang-switcher button,
html[data-theme='dark'] .ps-lang-switcher a,
[data-theme='dark'] .ps-lang-switcher a {
  color: #e5e7eb;
}

body.ps-lang-fr {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.ps-lang-fr .text-right {
  text-align: left !important;
}

body.ps-lang-fr .right-0 {
  right: auto !important;
  left: 0 !important;
}

#lang-toggle {
  display: none !important;
}

img {
  max-width: 100%;
}

header a,
header button,
.category-card,
.btn-primary,
.btn-accent,
a[class*="rounded"],
button[class*="rounded"] {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

a[class*="rounded"]:hover,
button[class*="rounded"]:hover,
.btn-primary:hover,
.btn-accent:hover {
  transform: translateY(-1px);
}

.category-card {
  min-height: 150px;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.category-card:hover {
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

input,
select,
textarea {
  max-width: 100%;
}

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

html[dir="ltr"] body,
body.ps-fr-page {
  text-align: left;
  direction: ltr;
}

html[dir="rtl"] .text-center,
html[dir="ltr"] .text-center,
body.ps-fr-page .text-center {
  text-align: center !important;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
  direction: rtl;
}

html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea,
body.ps-fr-page input,
body.ps-fr-page select,
body.ps-fr-page textarea {
  text-align: left;
  direction: ltr;
}

.ps-order-clickable {
  cursor: pointer;
}

.ps-order-clickable img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ps-order-clickable:hover img {
  transform: scale(1.015);
  filter: saturate(1.05);
}

.plan-card,
.service-box {
  overflow-wrap: anywhere;
}

html[dir="rtl"] .plan-card,
html[dir="rtl"] .service-box {
  text-align: right;
}

html[dir="ltr"] .plan-card,
html[dir="ltr"] .service-box,
body.ps-fr-page .plan-card,
body.ps-fr-page .service-box {
  text-align: left;
}

.plan-card h3,
.plan-card h4,
.service-box h3,
.service-box h4 {
  line-height: 1.25;
}

.plan-card p,
.service-box p {
  line-height: 1.6;
  font-weight: 500;
}

.plan-card ul,
.service-box ul {
  line-height: 1.65;
}

body.ps-fr-page .plan-card ul,
body.ps-fr-page .service-box ul {
  text-align: left !important;
  padding-left: 0;
}

html[dir="rtl"] .plan-card ul,
html[dir="rtl"] .service-box ul {
  text-align: right !important;
  padding-right: 0;
}

.plan-card img,
.service-box img {
  cursor: pointer;
}

@media (max-width: 768px) {
  .ps-lang-switcher {
    inset-block-start: 76px;
    inset-block-end: auto;
    inset-inline-start: 12px;
  }

  section {
    padding-block: 2.75rem;
  }

  h1,
  h2 {
    overflow-wrap: anywhere;
  }
}

body.ps-fr-page {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.ps-fr-page h1,
body.ps-fr-page h2,
body.ps-fr-page h3 {
  line-height: 1.12;
  text-wrap: balance;
}

body.ps-fr-page h1 + p,
body.ps-fr-page h2 + p,
body.ps-fr-page h3 + p {
  max-width: 760px;
  margin-inline: auto;
  line-height: 1.75;
  text-wrap: pretty;
}

body.ps-fr-page section > div > h1,
body.ps-fr-page section > div > h2 {
  margin-bottom: 0.85rem;
}

body.ps-fr-page section > div > h3 {
  margin-bottom: 1rem;
}

body.ps-fr-page .category-card {
  gap: 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

body.ps-fr-page .category-card p {
  font-weight: 500;
  line-height: 1.55;
  max-width: 22ch;
}

body.ps-fr-page .feature h4,
body.ps-fr-page .stat-label {
  font-weight: 800;
  line-height: 1.25;
}

body.ps-fr-page .feature p,
body.ps-fr-page .stat-desc {
  line-height: 1.6;
}

body.ps-fr-page nav,
body.ps-fr-page header {
  letter-spacing: 0;
}

body.ps-fr-page main .whitespace-nowrap,
body.ps-fr-page section .whitespace-nowrap {
  white-space: normal !important;
}

body.ps-fr-page header .whitespace-nowrap,
body.ps-fr-page header a,
body.ps-fr-page header button,
body.ps-fr-page header span,
body.ps-fr-page [role="menu"] a,
body.ps-fr-page #mobileMenu a,
body.ps-fr-page #mobileServicesBtn span {
  white-space: nowrap !important;
}

/* Global activation link and night mode */
.ps-theme-toggle,
.ps-activation-link {
  position: fixed;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ps-theme-toggle {
  inset-inline-end: 1rem;
  bottom: 1rem;
  padding: 0.72rem 1rem;
  background: #111827;
  color: #ffffff;
}

.ps-activation-link {
  inset-inline-start: 1rem;
  bottom: 1rem;
  padding: 0.72rem 1.05rem;
  background: #f97316;
  color: #ffffff;
}

.ps-theme-toggle:hover,
.ps-activation-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
}

html[data-theme="dark"],
html.dark {
  color-scheme: dark;
  background: #0f172a;
}

html[data-theme="dark"] body,
html.dark body,
body.ps-dark-mode {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] header,
html[data-theme="dark"] footer,
html[data-theme="dark"] section,
html[data-theme="dark"] main,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-orange-50,
html.dark header,
html.dark footer,
html.dark section,
html.dark main,
html.dark .bg-white,
html.dark .bg-gray-50,
html.dark .bg-gray-100,
html.dark .bg-blue-50,
html.dark .bg-orange-50 {
  background-color: #111827 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-blue-700,
html[data-theme="dark"] .text-green-700,
html.dark .text-gray-500,
html.dark .text-gray-600,
html.dark .text-gray-700,
html.dark .text-gray-800,
html.dark .text-blue-700,
html.dark .text-green-700 {
  color: #d1d5db !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #0b1220 !important;
  color: #f9fafb !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .categoryBtn,
html.dark .categoryBtn {
  background-color: #1f2937 !important;
  color: #f9fafb !important;
  border: 1px solid #334155;
}

html[data-theme="dark"] #previewModal > div,
html.dark #previewModal > div {
  background-color: #111827 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .ps-theme-toggle,
html.dark .ps-theme-toggle {
  background: #f9fafb;
  color: #111827;
}

@media (max-width: 640px) {
  .ps-theme-toggle,
  .ps-activation-link {
    min-height: 38px;
    padding: 0.62rem 0.82rem;
    font-size: 0.84rem;
  }
}
