/* ============================================
   RSF TRAVAUX — shared styles
   Warm minimal aesthetic. Cream + espresso + terracotta.
   ============================================ */

:root {
  /* Palette — official RSF Travaux brand (deep navy + construction gold) */
  --bg: #fafafa;
  --bg-2: #f2ede2;
  --bg-3: #e6dcc4;
  --ink: #111e38;         /* deep navy */
  --ink-2: #0b132b;
  --muted: #94a3b8;       /* slate */
  --line: #d9cfb8;
  --accent: #c59b27;      /* construction gold */
  --accent-2: #a07f1f;
  --gold-light: #e5c158;
  --white: #ffffff;
  --navy: #0b132b;
  --navy-dark: #070d1e;
  --surface: #ffffff;

  /* Fonts — architectural serif + clean sans (per brand system) */
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(28,23,18,0.04);
  --shadow-md: 0 8px 30px rgba(28,23,18,0.08);
  --max: 1280px;
}

/* Dark mode — deep navy background, gold accent, cream text */
html[data-theme="dark"] {
  --bg: #0b132b;
  --bg-2: #111e38;
  --bg-3: #1a2a52;
  --ink: #fafafa;
  --ink-2: #e6dcc4;
  --muted: #94a3b8;
  --line: #1e2e58;
  --white: #111e38;
  --surface: #111e38;
  --navy: #0b132b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  text-transform: uppercase;
}
h1 { font-size: clamp(40px, 5.6vw, 84px); letter-spacing: 0.015em; }
h2 { font-size: clamp(30px, 3.8vw, 54px); letter-spacing: 0.02em; }
h3 { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: 0.06em; }
p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; position: relative; }
@media (max-width: 900px) {
  .wrap, .wrap-wide { padding: 0 28px; }
}
@media (max-width: 720px) {
  section { padding: 72px 0; }
  .wrap, .wrap-wide { padding: 0 24px; }
}
@media (max-width: 480px) {
  .wrap, .wrap-wide { padding: 0 20px; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.nav-scrolled {
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(17, 30, 56, 0.15);
}
.nav.nav-scrolled .nav-inner { min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
.nav.nav-scrolled .brand-mark { width: 38px; height: 38px; }
html[data-theme="dark"] .nav.nav-scrolled {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  position: relative;
  z-index: 101;
}

/* Brand & Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-mark {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
html[data-theme="dark"] .brand-mark {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.1;
  display: block;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--accent-2);
  margin-top: 3px;
  text-transform: uppercase;
}


/* =========================================================
   DESKTOP NAVIGATION — base styles (> 1080px)
   ========================================================= */

/* Hide mobile-only elements on desktop */
.nav-mobile-header,
.nav-mobile-eyebrow,
.nav-mobile-location,
.nav-mobile-lang,
.nav-mobile-bottom,
.nav-mobile-cta,
.nav-mobile-info,
.nav-mobile-tel,
.nav-mobile-city,
.link-num {
  display: none !important;
}

/* Desktop nav wrapper: centered flex row */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* Desktop nav list */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-links li {
  display: inline-flex;
  align-items: center;
}

/* Desktop nav link */
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 8px 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  border-radius: 0;
}
.nav-links a .link-title {
  display: inline !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { display: none; }
.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}
.nav-links a.active::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-moon { display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.nav-cta svg { width: 15px; height: 15px; }

/* Animated Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: var(--bg-2);
  border-color: var(--ink-2);
}
.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
  position: relative;
}
.nav-toggle-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}
.nav.nav-open .nav-toggle {
  background: var(--ink);
  border-color: var(--ink);
}
.nav.nav-open .nav-toggle .line {
  background: var(--bg);
}
.nav.nav-open .line-1 {
  transform: translateY(5.5px) rotate(45deg);
}
.nav.nav-open .line-2 {
  opacity: 0;
  transform: scaleX(0);
}
.nav.nav-open .line-3 {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Backdrop Overlay */
.nav-backdrop {
  display: none;
}

/* ==========================================================================
   MOBILE & TABLET NAVIGATION (< 1080px)
   ========================================================================== */
@media (max-width: 1080px) {
  body {
    padding-top: 64px;
  }

  .nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
  }

  /* When menu is open, remove backdrop-filter to prevent stacking context trapping */
  .nav.nav-open {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg) !important;
    z-index: 999999 !important;
  }

  .nav-inner {
    position: relative;
    z-index: 1000001 !important;
  }

  .nav-toggle {
    display: grid !important;
    place-items: center;
    cursor: pointer;
    touch-action: manipulation;
    z-index: 1000002 !important;
  }

  /* Show mobile-only elements inside mobile drawer */
  .nav-mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile-lang {
    display: flex !important;
  }
  .nav-actions .lang-switcher {
    display: none !important;
  }
  .nav-mobile-eyebrow {
    display: block !important;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
  }
  .nav-mobile-location {
    display: block !important;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .link-num {
    display: inline-block !important;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-right: 14px;
    font-weight: 600;
  }
  .nav-mobile-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 19, 43, 0.7);
    z-index: 999990 !important;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .nav.nav-open .nav-backdrop {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Full screen luxury mobile drawer */
  .nav-menu-wrapper {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: var(--bg) !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 76px 20px 36px !important;
    z-index: 1000000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    border: none;
  }
  .nav.nav-open .nav-menu-wrapper {
    display: flex !important;
    animation: mobileDrawerFade 0.25s ease forwards;
  }
  @keyframes mobileDrawerFade {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }



  /* Mobile nav links */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 8px 0;
    padding: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-radius: 8px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
  }
  .nav-links a .link-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-right: 14px;
    font-weight: 600;
  }
  .nav-links a .link-title {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-transform: uppercase;
    font-weight: 600;
    flex: 1;
  }
  .nav-links a::after {
    content: "→";
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    transition: transform 0.2s ease;
    opacity: 0.8;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    background: var(--bg-3);
    border-color: var(--accent);
    padding-left: 20px;
  }
  .nav-links a:hover::after {
    transform: translateX(4px);
  }
  .nav-links a.active {
    background: color-mix(in oklab, var(--accent) 15%, var(--bg-2));
    border-color: var(--accent);
    border-left: 4px solid var(--accent);
  }
  .nav-links a.active .link-title {
    color: var(--accent);
    font-weight: 700;
  }

  /* Architectural mobile menu bottom card */
  .nav-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: #0b132b;
    border: 1px solid var(--accent);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(197, 155, 39, 0.25);
    transition: all 0.25s ease;
  }
  .nav-mobile-cta svg {

    width: 18px;
    height: 18px;
  }
  .nav-mobile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .nav-mobile-tel {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.04em;
  }
  .nav-mobile-tel svg {
    color: var(--accent);
  }
  .nav-mobile-city {
    font-size: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
}

@media (max-width: 900px) {
  .nav-cta span { display: none; }
  .brand-sub { display: none; }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 10px 16px;
    gap: 8px;
    min-height: 60px;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    padding: 3px;
  }
  .brand-name {
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .nav-cta {
    padding: 8px 10px;
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
  }
  .nav-actions {
    gap: 6px;
  }
}

/* Prevent body scroll when mobile nav is open */
body.nav-locked {
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-2); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero v2 — Luxury Background Image Layout ---------- */
.hero-v2.hero-bg-layout {
  position: relative;
  background-image: url('assets/hero-living.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: calc(100dvh - 68px);
  display: flex;
  align-items: center;
  padding: 10px 0;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-v2.hero-bg-layout {
    background-image: url('assets/hero_phones.webp');
    background-position: center center;
    padding: 36px 0;
  }
}
@media (max-width: 480px) {
  .hero-v2.hero-bg-layout {
    padding: 24px 0 32px;
  }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(109, 114, 129, 0.35) );
  pointer-events: none;
  z-index: 1;
}
html[data-theme="dark"] .hero-bg-overlay {
  background: linear-gradient(110deg, rgba(7, 12, 28, 0.96) 0%, rgba(7, 12, 28, 0.88) 50%, rgba(7, 12, 28, 0.6) 100%);
}
.hero-bg-layout .hero-v2-inner {
  display: block;
  max-width: 1080px;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-bg-layout .hero-v2-copy {
  max-width: 960px;
}
.hero-bg-layout .hero-v2-copy > .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  background: rgba(11, 19, 43, 0.7);
  color: var(--gold-light);
  border-color: rgba(197, 155, 39, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
}
.hero-bg-layout .hero-v2-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.18;
  letter-spacing: 0.015em;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  text-wrap: balance;
}
.hero-bg-layout .hero-v2-title em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 500;
}
.hero-bg-layout .hero-v2-lead {
  font-size: clamp(14px, 1.05vw, 16px);
  color: rgba(255, 255, 255, 0.9);
  max-width: 64ch;
  line-height: 1.6;
  margin: 0 0 24px;
  font-family: var(--font-body);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.hero-bg-layout .hero-v2-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-bg-layout .hero-v2-ctas .btn-primary {
  background: var(--accent);
  color: #0b132b;
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.35);
}
.hero-bg-layout .hero-v2-ctas .btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.hero-bg-layout .hero-v2-ctas .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-bg-layout .hero-v2-ctas .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .hero-bg-layout .hero-v2-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-bg-layout .hero-v2-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}
.hero-bg-layout .hero-v2-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 480px;
}
.hero-bg-layout .fact { display: flex; flex-direction: column; gap: 4px; }
.hero-bg-layout .fact-n {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-bg-layout .fact-n em {
  color: var(--gold-light);
  font-style: normal;
  font-size: 0.6em;
  margin-left: 2px;
}
.hero-bg-layout .fact-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero-bg-layout .hero-v2-title {
    font-size: clamp(22px, 5.5vw, 30px);
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .hero-bg-layout .hero-v2-lead {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .hero-bg-layout .hero-v2-ctas {
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-bg-layout .hero-v2-facts {
    padding-top: 16px;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .hero-bg-layout .hero-v2-title {
    font-size: clamp(19px, 5.2vw, 24px);
  }
  .hero-bg-layout .hero-v2-lead {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .hero-bg-layout .hero-v2-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hero-bg-layout .fact-n {
    font-size: 18px;
  }
  .hero-bg-layout .fact-l {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
}


/* Right side — photo + floating badge */
.hero-v2-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
}
.hero-v2-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(17, 30, 56, 0.28);
}
.hero-v2-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.98);
}
.hero-v2-caption {
  position: absolute;
  left: 20px; bottom: 20px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: rgba(17, 30, 56, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-v2-caption .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero-v2-badge {
  position: absolute;
  left: -24px;
  bottom: 40px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.hero-v2-badge svg { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.hero-v2-badge span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-v2-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--bg);
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero-v2 { padding: 32px 0 64px; }
  .hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-v2-media {
    aspect-ratio: 4 / 3;
    max-height: 420px;
    order: -1;
  }
  .hero-v2-badge { left: 16px; bottom: 16px; padding: 12px 16px; }
  .hero-v2-badge svg { width: 22px; height: 22px; }
  .hero-v2-badge strong { font-size: 13px; }
  .hero-v2-copy > .eyebrow { margin-bottom: 20px; }
  .hero-v2-title { margin-bottom: 20px; }
  .hero-v2-lead { margin-bottom: 28px; }
  .hero-v2-ctas { margin-bottom: 32px; }
  .hero-v2-facts { padding-top: 24px; gap: 12px; }
}
@media (max-width: 480px) {
  .hero-v2 { padding: 24px 0 48px; }
  .hero-v2-title { font-size: 34px; }
  .hero-v2-lead { font-size: 15px; }
  .hero-v2-media { aspect-ratio: 3 / 4; max-height: none; }
  .hero-v2-badge {
    left: auto;
    right: 16px;
    bottom: 16px;
  }
  .hero-v2-badge span { font-size: 8px; }
  .hero-v2-badge strong { font-size: 11px; }
  .hero-v2-facts { grid-template-columns: 1fr 1fr; }
  .hero-v2-facts .fact:last-child { grid-column: span 2; padding-top: 12px; border-top: 1px solid var(--line); }
  .hero-v2-ctas .btn { flex: 1; justify-content: center; min-width: 0; }
}

/* ---------- À Propos de RSF Travaux Section ---------- */
.about-section {
  padding: 96px 0;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.2;
  margin: 14px 0 20px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.about-title em {
  font-style: normal;
  color: var(--accent);
}
.about-activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--accent) 32%, var(--line));
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 22px;
  line-height: 1.4;
}
.about-activity-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}
.about-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 14px;
}
.about-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 28px;
}
.about-highlights {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.about-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.about-pill svg {
  color: var(--accent);
  flex-shrink: 0;
}
.about-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Photo & Floating Card */
.about-media-col {
  position: relative;
}
.about-photo-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 56px -12px rgba(17, 30, 56, 0.22);
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--line);
}
.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-photo-wrapper:hover img {
  transform: scale(1.03);
}
.about-photo-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(11, 19, 43, 0.8);
  color: var(--gold-light);
  border: 1px solid rgba(197, 155, 39, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
}
.about-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 19, 43, 0.92);
  color: #ffffff !important;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid rgba(197, 155, 39, 0.5);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  transition: transform 0.3s ease;
}
.about-photo-wrapper:hover .about-floating-card {
  transform: translateY(-3px);
}
.about-floating-card .card-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-light);
  line-height: 1;
  font-weight: 600;
}
.about-floating-card .card-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .about-section { padding: 60px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrapper {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 480px) {
  .about-section { padding: 48px 0; }
  .about-title { font-size: 24px; }
  .about-activity-badge { font-size: 12.5px; padding: 7px 12px; }
  .about-lead { font-size: 15px; }
  .about-body { font-size: 14px; }
  .about-highlights { gap: 8px; }
  .about-pill { font-size: 11px; padding: 6px 12px; }
  .about-ctas { flex-direction: column; align-items: stretch; }
  .about-ctas .btn { width: 100%; justify-content: center; }
  .about-floating-card {
    bottom: 12px;
    left: 12px;
    padding: 10px 14px;
    gap: 10px;
  }
  .about-floating-card .card-num { font-size: 22px; }
  .about-floating-card .card-text { font-size: 8.5px; }
}

/* ---------- Floating Fixed WhatsApp Button ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff !important;
  text-decoration: none;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}
.floating-whatsapp svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
}
.floating-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}
.floating-whatsapp:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.floating-wa-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: waFloatPulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}
@keyframes waFloatPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
@media (max-width: 720px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 50%;
  }
  .floating-wa-text {
    display: none;
  }
  .floating-wa-pulse {
    border-radius: 50%;
  }
}

/* ---------- Project Lightbox Modal ---------- */
.projects-grid .project {
  cursor: pointer;
}
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}
.project-modal.active {
  opacity: 1;
  visibility: visible;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project-modal-dialog {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.active .project-modal-dialog {
  transform: scale(1) translateY(0);
}
.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 19, 43, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.project-modal-close:hover {
  background: rgba(11, 19, 43, 0.95);
  transform: scale(1.08);
}
.project-modal-img-wrap {
  width: 100%;
  max-height: 65vh;
  background: #0b132b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-modal-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}
.project-modal-footer {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.project-modal-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.project-modal-place {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}
@media (max-width: 600px) {
  .project-modal-dialog { max-height: 94vh; }
  .project-modal-img-wrap { max-height: 52vh; }
  .project-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .project-modal-footer .btn { justify-content: center; }
}

/* ---------- Section headers ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 72px;
  align-items: end;
}
.sec-head p { color: var(--muted); max-width: 52ch; margin-top: 24px; }
@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ---------- Services grid ---------- */
.services {
  background: var(--bg-2);
  padding-bottom: 76px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 40px 32px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service:hover {
  background: var(--bg);
  box-shadow: inset 0 3px 0 var(--accent);
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
}
.service-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklab, var(--line) 60%, transparent);
  padding: 3px 9px;
  border-radius: 4px;
}
.service h3 {
  font-size: 18.5px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.service h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.service:hover h3 a {
  color: var(--accent);
}
.service p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.25s ease, color 0.25s ease;
}
.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.service:hover .service-link {
  color: var(--ink);
  gap: 12px;
}
.service:hover .service-link svg {
  transform: translateX(4px);
}
.services-footer-cta {
  text-align: center;
  margin-top: 54px;
}
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 32px 20px 38px; }
}

/* ---------- Numbers strip ---------- */
.numbers {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1;
  color: var(--ink);
  display: block;
  letter-spacing: 0.01em;
}
.stat-num em { color: var(--accent); font-style: normal; font-size: 0.65em; margin-left: 2px; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  display: block;
  line-height: 1.35;
}
@media (max-width: 800px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; padding: 0 20px; }
  .stat-num { font-size: clamp(34px, 9vw, 52px); }
}
@media (max-width: 480px) {
  .numbers-grid { padding: 0 16px; gap: 28px 16px; }
  .stat-num { font-size: clamp(30px, 10vw, 44px); }
  .stat-label { font-size: 10px; margin-top: 10px; letter-spacing: 0.14em; }
}

/* ---------- Projects gallery ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover img { transform: scale(1.03); }
.project-meta {
  position: absolute;
  left: 20px; bottom: 20px;
  right: 20px;
  color: #ffffff !important;
  z-index: 2;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.72));
  z-index: 1;
  pointer-events: none;
}
.project-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.project-place {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.p-a { grid-column: span 7; aspect-ratio: 3/2; }
.p-b { grid-column: span 5; aspect-ratio: 3/2; }
.p-c { grid-column: span 4; aspect-ratio: 4/5; }
.p-d { grid-column: span 4; aspect-ratio: 4/5; }
.p-e { grid-column: span 4; aspect-ratio: 4/5; }
.p-f { grid-column: span 6; aspect-ratio: 3/2; }
.p-g { grid-column: span 6; aspect-ratio: 3/2; }
@media (max-width: 800px) {
  .projects-grid > * { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* ---------- Projects gallery load more ---------- */
.gallery-load-more-wrap {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 24px;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 36px;
  border-radius: 999px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--line, #e2d9cc);
  color: var(--ink, #0b132b);
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(11, 19, 43, 0.06);
}
.btn-load-more:hover {
  background: var(--ink, #0b132b);
  color: #ffffff;
  border-color: var(--ink, #0b132b);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 19, 43, 0.16);
}
.btn-load-more svg {
  transition: transform 0.3s ease;
}
.btn-load-more:hover svg {
  transform: translateY(3px);
}
.btn-load-more .load-more-count {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent, #c5a059);
  color: #0b132b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
html[data-theme="dark"] .btn-load-more {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
html[data-theme="dark"] .btn-load-more:hover {
  background: var(--accent, #c5a059);
  color: #0b132b;
  border-color: var(--accent, #c5a059);
}
html[lang="ar"] .btn-load-more {
  font-family: var(--font-ar, "Noto Kufi Arabic", "Almarai", sans-serif);
}

/* ---------- Testimonial pull ---------- */
.testimonial-pull {
  padding: 140px 0;
  background: var(--bg-3);
  text-align: center;
}
.testimonial-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 26ch;
  margin: 0 auto 40px;
  color: var(--ink);
  text-wrap: balance;
  text-transform: none;
}
.testimonial-quote::before,
.testimonial-quote::after { content: '"'; color: var(--accent); }
.testimonial-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Process steps (Méthode page) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.step-body h3 { font-size: 34px; margin-bottom: 12px; }
.step-body .eyebrow { margin-bottom: 16px; }
.step-body p { font-size: 16px; margin: 0; }
.step-detail {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.step-detail ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.step-detail li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
}
.step-detail li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 9px;
  background: var(--accent);
  flex-shrink: 0;
  border-radius: 50%;
}
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .step-detail { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}

/* ---------- Filter chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Logo strip (Références) ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-cell {
  aspect-ratio: 3/2;
  display: grid;
  place-items: center;
  place-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
  transition: color 0.3s;
}
.logo-cell:hover { color: var(--ink); }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonial cards ---------- */
.testis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testi {
  padding: 40px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.testi-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: 0;
  text-transform: none;
}
.testi-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.testi-name { font-weight: 500; font-size: 14px; }
.testi-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 800px) { .testis { grid-template-columns: 1fr; } }

/* ---------- FAQ ACCORDION ARCHITECTURAL DE PRESTIGE ---------- */
.faq,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
  margin: 36px auto 0;
  border-top: none !important;
}
.faq-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0 !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.faq-item:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.faq-item[open],
.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(197, 155, 39, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.faq-item[open]::before,
.faq-item.open::before {
  opacity: 1;
}
.faq-summary,
.faq-q {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  padding: 22px 28px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 16.5px !important;
  color: var(--ink) !important;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  list-style: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.45 !important;
  transition: color 0.2s ease;
}
.faq-summary::-webkit-details-marker,
.faq-summary::marker {
  display: none !important;
}
.faq-summary:hover,
.faq-item:hover .faq-q {
  color: var(--accent) !important;
}
.faq-icon {
  width: 36px !important;
  height: 36px !important;
  padding: 8px !important;
  border-radius: 50% !important;
  background: rgba(197, 155, 39, 0.08) !important;
  border: 1px solid rgba(197, 155, 39, 0.25) !important;
  color: var(--accent) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.faq-item[open] .faq-icon,
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--accent) !important;
  color: #0b132b !important;
  border-color: var(--accent) !important;
}
.faq-plus {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(197, 155, 39, 0.25) !important;
  background: rgba(197, 155, 39, 0.08) !important;
  color: var(--accent) !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}
.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: var(--accent) !important;
  color: #0b132b !important;
  border-color: var(--accent) !important;
}
.faq-body,
.faq-a {
  padding: 0 28px 24px 28px !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #475569;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px !important;
}
.faq-body p,
.faq-a p {
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info h3 { font-size: 28px; margin-bottom: 8px; }
.contact-info .row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:first-of-type { border-top: 1px solid var(--line); }
.contact-info .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.contact-info .value { font-size: 16px; color: var(--ink); }
.contact-info .value a { color: inherit; text-decoration: none; }
.contact-info .value a:hover { color: var(--accent); }

form.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Form status messages (contact page) */
.form-status {
  margin-top: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
}
.form-status.success,
.form-status.error {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}
.status-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  text-align: left;
}
.status-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in oklab, var(--accent) 15%, var(--bg));
  color: var(--accent-2);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
.status-icon-badge svg {
  width: 22px;
  height: 22px;
}
.form-status.success .status-card {
  background: color-mix(in oklab, #10b981 6%, var(--bg-2));
  border-color: color-mix(in oklab, #10b981 30%, var(--line));
}
.form-status.success .status-icon-badge {
  background: color-mix(in oklab, #10b981 15%, var(--bg));
  color: #059669;
  border-color: color-mix(in oklab, #10b981 40%, transparent);
}
.form-status.error .status-card {
  background: color-mix(in oklab, #ef4444 6%, var(--bg-2));
  border-color: color-mix(in oklab, #ef4444 30%, var(--line));
}
.form-status.error .status-icon-badge {
  background: color-mix(in oklab, #ef4444 15%, var(--bg));
  color: #dc2626;
  border-color: color-mix(in oklab, #ef4444 40%, transparent);
}
.status-body {
  flex: 1;
}
.status-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.status-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.status-text strong {
  color: var(--ink);
}
.status-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.status-wa-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--bg);
  transform: translateY(-1px);
}
.status-wa-btn svg {
  fill: currentColor;
}

/* Submit button loading state */
#rsf-submit:disabled { opacity: 0.75; cursor: wait; }
#rsf-submit .btn-spinner { width: 16px; height: 16px; }

.whatsapp-big {
  padding: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  text-decoration: none;
  transition: background 0.3s;
}
.whatsapp-big:hover { background: var(--accent-2); }
.whatsapp-big h4 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
}
.whatsapp-big span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.whatsapp-big svg { width: 48px; height: 48px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .wrap-wide {
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.85fr 2.3fr 1.15fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand-mark {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.footer-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.footer-brand .display {
  color: #ffffff;
  font-size: 28px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer-tagline {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.65;
  max-width: 36ch;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 600;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-services-subcol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-services-subcol a {
  font-size: 13px !important;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.76);
}
.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.footer a:hover {
  color: var(--accent-2);
  transform: translateX(3px);
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9) !important;
}
.footer-contact-link svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  color: var(--accent) !important;
  flex-shrink: 0 !important;
  display: inline-block;
}
.footer-city-tag {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
.socials {
  display: flex;
  gap: 24px;
}
.socials a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}
.socials a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Responsive Footer Layout (< 900px) */
@media (max-width: 900px) {
  .footer {
    padding: 60px 0 28px;
  }
  .footer .wrap-wide {
    padding: 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-bottom: 40px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-col-contact {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: 16px;
  }
  .socials {
    justify-content: center;
  }
}

/* Phone Screen Sizes Footer (< 600px) */
@media (max-width: 600px) {
  .footer {
    padding: 48px 0 24px;
  }
  .footer .wrap-wide {
    padding: 0 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
    padding-bottom: 32px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-brand-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }
  .footer-brand .display {
    font-size: 24px;
  }
  .footer-desc {
    font-size: 13px;
    max-width: 100%;
  }
  .footer h4 {
    margin-bottom: 14px;
    font-size: 10px;
  }
  .footer ul {
    gap: 10px;
  }
  .footer a {
    font-size: 13px;
  }
  .footer-col-contact {
    grid-column: span 2;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-contact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-bottom {
    padding-top: 20px;
    font-size: 10px;
  }
}

/* ---------- Marquee — Infinite Seamless Loop ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  direction: ltr !important; /* CRITICAL: Must be LTR container so layout origin is always left in both languages */
}
.marquee-track {
  display: flex !important;
  width: max-content !important;
  direction: ltr !important;
  will-change: transform;
}
.marquee-group {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  animation: marqueeLoop 65s linear infinite !important;
  will-change: transform;
}
.marquee:hover .marquee-group {
  animation-play-state: paused !important;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 13px;
}
@keyframes marqueeLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* RTL / Arabic Marquee — Infinite & Seamless */
html[dir="rtl"] .marquee,
html[dir="rtl"] .marquee-track,
html[dir="rtl"] .marquee-group {
  direction: ltr !important;
  text-align: left !important;
}
html[dir="rtl"] .marquee-item {
  font-family: 'El Messiri', 'Noto Kufi Arabic', serif !important;
  font-size: 18.5px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  direction: rtl !important;
  text-align: right !important;
  gap: 28px;
  padding: 0 28px;
}
html[dir="rtl"] .marquee-item::after {
  content: "✦";
  color: var(--accent);
  margin: 0;
}

/* ---------- Utilities ---------- */
.mono { font-family: var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.sr { position: absolute; left: -9999px; }

/* ---------- Contact map placeholder ---------- */
.map-section { padding-top: 80px; }
.map-placeholder {
  aspect-ratio: 21 / 9;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: repeating-linear-gradient(-45deg, var(--bg-2), var(--bg-2) 12px, var(--bg-3) 12px, var(--bg-3) 24px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 24px;
}
.map-content {
  text-align: center;
  max-width: 100%;
}
.map-content h3 {
  margin-top: 16px;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.04em;
}
.map-content p.mono { margin: 12px 0 20px; word-break: keep-all; }
.map-content .btn { margin-top: 4px; }
@media (max-width: 640px) {
  .map-section { padding-top: 40px; }
  .map-placeholder { aspect-ratio: auto; min-height: 240px; padding: 32px 20px; }
  .map-content p.mono { font-size: 10px; letter-spacing: 0.12em; }
}

/* ---------- Page hero h1 — used on contact/méthode/réalisations/références ---------- */
/* Tuned to be readable at 320px (min 26px), fluid 9vw, capped at 88px on wide screens */
main > section:first-of-type h1 {
  font-size: clamp(26px, 9vw, 88px);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
@media (min-width: 768px) { main > section:first-of-type h1 { font-size: clamp(40px, 8vw, 88px); } }
@media (min-width: 1200px) { main > section:first-of-type h1 { font-size: clamp(64px, 7vw, 96px); } }

/* Ensure inline page-hero paragraphs don't overflow */
main > section:first-of-type > .wrap-wide > div > p,
main > section:first-of-type > .wrap > div > p {
  max-width: 100%;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ---------- Services page: hero head ---------- */
.svc-hero-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.svc-hero-head h1 {
  font-size: clamp(28px, 3.6vw, 48px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}
html[dir="rtl"] .svc-hero-head h1 {
  font-size: clamp(24px, 2.8vw, 38px) !important;
  line-height: 1.4 !important;
  letter-spacing: normal;
}
@media (max-width: 820px) {
  .svc-hero-head { grid-template-columns: 1fr; gap: 24px; }
  .svc-hero-head p { padding-bottom: 0 !important; }
}

/* ---------- Services page: group header ---------- */
.svc-group-head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.svc-group-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 40px);
  color: var(--ink);
}

/* ---------- Services page: category cards ---------- */
.svc-hero {
  padding-top: 60px;
  padding-bottom: 40px;
  /* horizontal padding inherits from .wrap-wide */
}
@media (max-width: 720px) { .svc-hero { padding-top: 40px; padding-bottom: 24px; } }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0b132b;
  border: 1px solid var(--line);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}
@media (max-height: 820px) and (min-width: 900px) {
  .svc-card { min-height: 410px; }
  .svc-card .body { padding: 20px 20px 20px !important; }
}
.svc-card.is-hidden {
  display: none !important;
}
@keyframes svcCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.svc-card:not(.is-hidden) {
  animation: svcCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 19, 43, 0.22);
  border-color: var(--accent);
}
.svc-card .img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.svc-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover .img img {
  transform: scale(1.08);
}
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 19, 43, 0.15) 0%,
    rgba(11, 19, 43, 0.52) 36%,
    rgba(11, 19, 43, 0.92) 72%,
    rgba(11, 19, 43, 0.98) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.svc-card:hover::after {
  background: linear-gradient(180deg,
    rgba(11, 19, 43, 0.1) 0%,
    rgba(11, 19, 43, 0.46) 30%,
    rgba(11, 19, 43, 0.88) 68%,
    rgba(11, 19, 43, 0.98) 100%);
}
.svc-card .body {
  position: relative;
  z-index: 2;
  padding: 24px 22px 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}
.svc-card .num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.svc-card p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card .arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b132b;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}
.svc-card:hover .arrow {
  transform: scale(1.1) rotate(-45deg);
  background: #ffffff;
  color: var(--navy);
}
.svc-card .arrow svg { width: 18px; height: 18px; }
.svc-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  width: fit-content;
}
.svc-card:hover .svc-card-btn {
  background: var(--accent);
  color: #0b132b;
  border-color: var(--accent);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { aspect-ratio: 3/4; } }

/* =========================================================
   SERVICES FILTER TABS BAR (Excellence Architecture)
   ========================================================= */
.svc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.svc-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
}

.svc-filter-btn:hover {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.15);
}

.svc-filter-btn:active {
  transform: translateY(0);
}

.svc-filter-btn.active {
  background: var(--ink) !important;
  color: #ffffff !important;
  border-color: var(--ink) !important;
  box-shadow: 0 6px 18px rgba(17, 30, 56, 0.22);
  transform: translateY(-1px);
  font-weight: 600;
}

.svc-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 30, 56, 0.08);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.25s ease;
}

.svc-filter-btn:hover .svc-filter-count {
  background: rgba(197, 155, 39, 0.15);
  color: var(--accent);
}

.svc-filter-btn.active .svc-filter-count {
  background: var(--accent) !important;
  color: #ffffff !important;
}

/* Dark Mode: Filter Tabs */
html[data-theme="dark"] .svc-filter-bar {
  border-color: var(--line);
}

html[data-theme="dark"] .svc-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .svc-filter-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.2);
}

html[data-theme="dark"] .svc-filter-btn.active {
  background: var(--accent) !important;
  color: #0b132b !important;
  border-color: var(--accent) !important;
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

html[data-theme="dark"] .svc-filter-count {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .svc-filter-btn.active .svc-filter-count {
  background: #0b132b !important;
  color: #ffffff !important;
}

/* Mobile responsive for Filter Bar */
@media (max-width: 768px) {
  .svc-filter-bar {
    margin-top: 28px;
    padding-top: 18px;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .svc-filter-bar::-webkit-scrollbar {
    height: 4px;
  }
  .svc-filter-bar::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
  }
  .svc-filter-btn {
    padding: 8px 16px;
    font-size: 12.5px;
    flex-shrink: 0;
  }
  .svc-filter-count {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* Backward-compatible legacy .svc-filter */
.svc-filter {
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.svc-filter:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-filter svg { width: 14px; height: 14px; }

/* Footer brand mark */
.footer-brand-mark {
  width: 56px; height: 56px;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 20px;
  display: block;
}
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Client logo grid (Références) ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.client-cell {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  padding: auto ;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.client-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
html[data-theme="dark"] .client-cell {
  background: #ffffff;
  border-color: rgba(197, 155, 39, 0.4);
}
.client-logo {
  color: var(--ink);
  text-align: center;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s, opacity 0.3s;
}
.client-cell:hover .client-logo { filter: none; opacity: 1; }

/* Real logo images */
.client-logo-img {
  max-width: 78%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}
.client-cell:hover .client-logo-img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
/* Text-based client cards (fallback for clients without licensed logos) */
/* .client-cell.client-text {
  padding: 24px 20px;
} */
.client-txt {
  text-align: center;
  transition: transform 0.3s ease;
}
.client-cell:hover .client-txt { transform: translateY(-2px); }
.client-txt-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}
.client-txt-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
}
@media (max-width: 800px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .client-grid { grid-template-columns: 1fr; } .client-cell { aspect-ratio: 5/3; } }

/* Al Doha (الضحى) — sunrise mark + arabic word */
.ar-doha { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ar-doha-sun {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3px; height: 22px;
}
.ar-doha-sun span {
  display: block; width: 2px; background: var(--ink);
  border-radius: 2px;
}
.ar-doha-sun span:nth-child(1) { height: 8px; }
.ar-doha-sun span:nth-child(2) { height: 14px; }
.ar-doha-sun span:nth-child(3) { height: 20px; }
.ar-doha-sun span:nth-child(4) { height: 22px; }
.ar-doha-sun span:nth-child(5) { height: 20px; }
.ar-doha-sun span:nth-child(6) { height: 14px; }
.ar-doha-sun span:nth-child(7) { height: 8px; }
.ar-doha-word {
  font-family: "Amiri", "Cairo", "Traditional Arabic", serif;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 2px;
  border-top: 1px solid currentColor;
  padding-top: 4px;
}

/* G Chic Jean */
.chic-badge {
  border: 2px solid var(--ink);
  padding: 6px 12px 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
}
.chic-mono {
  font-family: "Cormorant Garamond", "Instrument Serif", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  font-weight: 500;
}
.chic-mono em {
  font-style: italic;
  font-size: 20px;
  margin-left: -6px;
}
.chic-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Orange telecom */
.orange-box {
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-block;
}
.orange-box sup { font-size: 10px; margin-left: 2px; }

/* Inwi telecom */
.inwi-box {
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: inline-block;
  font-style: italic;
  border-radius: 3px;
}

/* Al Omrane */
.omrane-icon { width: 44px; height: auto; margin: 0 auto 8px; display: block; color: var(--ink); }
.omrane-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.omrane-sub {
  font-family: "Amiri", "Cairo", serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Douja Promotion */
.douja-icon { width: 34px; margin: 0 auto 8px; display: block; color: var(--ink); }
.douja-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.douja-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Supplier pills */
.supplier-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.supplier-pill {
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  transition: all 0.2s;
}
.supplier-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Font pairing variants (tweak-controlled) */
/* Architectural: Cinzel + Plus Jakarta Sans (default, per brand system) */
html[data-font="architectural"] {
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Inter", Helvetica, sans-serif;
}
/* Editorial: Cormorant Garamond (softer serif) + Plus Jakarta */
html[data-font="editorial"] {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", Helvetica, sans-serif;
}
/* Classic: Trajan-style all caps + Work Sans */
html[data-font="classic"] {
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Work Sans", Helvetica, sans-serif;
}


/* =========================================
   MOBILE POLISH — targeted responsive fixes
   ========================================= */

/* Do NOT set overflow-x on <html> or <body> — it breaks position: sticky.
   We use overflow-x: clip only where safe (won't create a scroll container). */
html { overflow-x: clip; }
body { overflow-x: clip; }
/* Safety: keep viewport-tied children from ever exceeding their container. */
main, section, .footer, .nav { max-width: 100vw; }

/* Tablet (≤900px) */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .sec-head h2 { margin-top: 16px !important; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .step-detail { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .step-num { font-size: 40px; }
  .step-body h3 { font-size: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 28px 20px 32px; }
  .service-num { margin-bottom: 24px; }
  .numbers { padding: 25px 0; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .testimonial-pull { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 40px; }
  .footer-brand { grid-column: span 2; }
  .footer-col-services { grid-column: span 2; }
  .footer-brand .display { font-size: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Small tablet (≤720px) */
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .projects-grid { gap: 12px; }
  .projects-grid > * {
    grid-column: span 12 !important;
    aspect-ratio: 4/3 !important;
  }
  .project-name { font-size: 16px; }
  .project-meta { left: 16px; right: 16px; bottom: 16px; }
  .contact-grid { gap: 40px; }
  .whatsapp-big { padding: 28px; flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; }
  .whatsapp-big svg { width: 36px; height: 36px; }
  .whatsapp-big h4 { font-size: 22px; }
  .marquee-item { font-size: 17px; gap: 24px; padding: 0 24px; }
  .marquee-item::after { font-size: 12px; }
  .testimonial-quote { max-width: 20ch; }
  .testi { padding: 28px 24px; }
  .testi-quote { font-size: 18px; }
  .faq-q { font-size: 18px; gap: 16px; }
  .faq-plus { width: 28px; height: 28px; }
  .chips { gap: 6px; margin-bottom: 32px; }
  .chip { padding: 7px 14px; font-size: 12px; }
  .btn { padding: 14px 22px; font-size: 14px; }
}

/* Phone (≤480px) */
@media (max-width: 480px) {
  section { padding: 56px 0; }
  .wrap, .wrap-wide { padding: 0 16px; }
  h1 { font-size: clamp(32px, 8vw, 44px); letter-spacing: 0.01em; }
  h2 { font-size: clamp(24px, 6.5vw, 36px); }
  h3 { font-size: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.16em; }
  .eyebrow::before { width: 16px; }

  /* Section headers (h1 with clamp-huge values on individual pages) */
  main > section > .wrap-wide > div > h1,
  main > section:first-of-type h1 {
    font-size: clamp(34px, 9vw, 52px) !important;
    line-height: 1.05;
    letter-spacing: 0.01em;
  }

  /* Numbers */
  .stat-num { font-size: clamp(40px, 12vw, 56px); }
  .stat-label { font-size: 10px; margin-top: 10px; }
  .numbers-grid { gap: 28px 20px; }

  /* Services grid — 1 col */
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 20px 28px; border-right: 0; }
  .service:nth-child(odd) { border-right: 1px solid var(--line); }
  .service h3 { font-size: 16px; }

  /* Service card page */
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { aspect-ratio: 3/4; }
  .svc-card h3 { font-size: 16px; }
  .svc-card p { font-size: 12px; }
  .svc-card .body { left: 18px; right: 18px; bottom: 18px; }
  .svc-card .arrow { width: 34px; height: 34px; top: 14px; right: 14px; }
  .svc-filter { padding: 12px 18px; font-size: 10px; }
  .svc-group-head { margin-bottom: 24px; padding-bottom: 16px; }

  /* Methode steps */
  .step { padding: 32px 0; }
  .step-num { font-size: 36px; }
  .step-body h3 { font-size: 20px; }
  .step-detail li { font-size: 13px; }

  /* Projects */
  .project-name { font-size: 15px; letter-spacing: 0.03em; }
  .project-place { font-size: 10px; }

  /* Testimonial pull */
  .testimonial-pull { padding: 64px 0; }
  .testimonial-quote { font-size: 22px; max-width: 100%; }

  /* Testimonial cards */
  .testi { padding: 24px 20px; }
  .testi-quote { font-size: 17px; margin-bottom: 20px; }

  /* FAQ */
  .faq-q { font-size: 16px; }
  .faq-item.open .faq-a { max-height: 500px; }

  /* Contact form */
  .contact-info .row { padding: 16px 0; }
  .contact-info .value { font-size: 15px; }
  .field input, .field textarea, .field select { padding: 12px 14px; font-size: 14px; }
  .field label { font-size: 9px; }
  .whatsapp-big { padding: 24px; }
  .whatsapp-big h4 { font-size: 20px; }

  /* Client logo cards */
  .client-grid { grid-template-columns: 1fr; gap: 12px; }
  .client-cell { aspect-ratio: 5/3; padding: 24px 20px; }
  .supplier-strip { gap: 8px; }
  .supplier-pill { padding: 10px 16px; font-size: 10px; letter-spacing: 0.18em; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer-brand { grid-column: span 2; }
  .footer-col-contact { grid-column: span 2; }
  .footer h4 { margin-bottom: 12px; }
  .footer ul { gap: 8px; }
  .footer-brand-mark { width: 48px; height: 48px; }

  /* Marquee */
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 15px; gap: 20px; padding: 0 20px; letter-spacing: 0.06em; }
  .marquee-item::after { font-size: 10px; }

  /* CTAs stack full-width for tap targets */
  section .btn { min-height: 48px; }
}

/* Ultra-narrow (≤360px) — Samsung Galaxy Fold etc */
@media (max-width: 360px) {
  h1 { font-size: 28px !important; letter-spacing: 0; }
  .hero-v2-title { font-size: 26px; }
  .hero-v2-lead { font-size: 14px; }
  .brand-name { font-size: 12px; letter-spacing: 0.08em; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-cta { padding: 6px 10px; font-size: 11px; }
  .nav-cta svg { width: 12px; height: 12px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 14px; height: 14px; }
  .nav-actions { gap: 4px; }
  .nav-inner { padding: 10px 12px; }
  .wrap, .wrap-wide { padding: 0 12px; }
  .hero-v2-badge { padding: 10px 12px; gap: 8px; }
  .hero-v2-badge svg { width: 18px; height: 18px; }
  .hero-v2-badge span { font-size: 7px; }
  .hero-v2-badge strong { font-size: 10px; letter-spacing: 0.04em; }
  .fact-n { font-size: 24px; }
  .fact-l { font-size: 9px; letter-spacing: 0.12em; }
}


/* =========================================
   DARK MODE POLISH — full component pass
   ========================================= */
html[data-theme="dark"] {
  --bg: #0b132b;
  --bg-2: #111e38;
  --bg-3: #1a2a52;
  --ink: #fafafa;
  --ink-2: #e2d7bf;
  --muted: #94a3b8;
  --line: #253166;
  --white: #172246;
}

/* Nav — glassy translucent navy */
html[data-theme="dark"] .nav {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .nav-links a { color: var(--ink-2); }
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active { color: var(--ink); }
html[data-theme="dark"] .nav-cta {
  background: var(--accent);
  color: var(--bg-2);
  font-weight: 600;
}
html[data-theme="dark"] .nav-cta:hover { background: var(--gold-light); }
html[data-theme="dark"] .theme-toggle {
  border-color: var(--line);
  color: var(--ink-2);
}
html[data-theme="dark"] .theme-toggle:hover {
  background: var(--accent);
  color: var(--bg-2);
  border-color: var(--accent);
}
html[data-theme="dark"] .brand-mark {
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
}

/* Buttons */
html[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: var(--bg-2);
}
html[data-theme="dark"] .btn-primary:hover { background: var(--gold-light); }
html[data-theme="dark"] .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-2);
}
html[data-theme="dark"] .btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Hero */
html[data-theme="dark"] .hero-v2::before {
  background:
    radial-gradient(ellipse at 85% 20%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 15% 90%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%);
}
html[data-theme="dark"] .hero-v2-photo { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] .fact-n { color: var(--ink); }

/* Marquee */
html[data-theme="dark"] .marquee {
  background: var(--bg-2);
  border-color: var(--line);
}
html[data-theme="dark"] .marquee-item { color: var(--ink); }

/* About Section */
html[data-theme="dark"] .about-section { background: var(--bg); border-color: var(--line); }
html[data-theme="dark"] .about-title { color: var(--ink); }
html[data-theme="dark"] .about-activity-badge {
  background: color-mix(in oklab, var(--accent) 15%, var(--bg-2));
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  color: var(--ink);
}
html[data-theme="dark"] .about-lead { color: var(--ink); }
html[data-theme="dark"] .about-body { color: var(--muted); }
html[data-theme="dark"] .about-pill {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .about-pill:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, var(--bg-2));
}
html[data-theme="dark"] .about-photo-wrapper {
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.6);
  border-color: var(--line);
}
html[data-theme="dark"] .about-floating-card {
  background: rgba(7, 12, 28, 0.94);
  border-color: rgba(197, 155, 39, 0.55);
}

/* Services grid */
html[data-theme="dark"] .services { background: var(--bg-2); }
html[data-theme="dark"] .service { background: var(--bg-2); border-color: var(--line); }
html[data-theme="dark"] .service:hover { background: var(--bg-3); }
html[data-theme="dark"] .services-grid { border-color: var(--line); }
html[data-theme="dark"] .service h3 { color: var(--ink); }
html[data-theme="dark"] .service p { color: var(--ink-2); }

/* Service cards (Services page) */
html[data-theme="dark"] .svc-card {
  background: var(--bg-2);
  border-color: var(--line);
}

/* Projects gallery (Réalisations) — Pure white text on images in dark mode */
html[data-theme="dark"] .project-meta {
  color: #ffffff !important;
}
html[data-theme="dark"] .project-name {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
html[data-theme="dark"] .project-place {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
html[data-theme="dark"] .project::after {
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.78));
}

/* Numbers strip */
html[data-theme="dark"] .numbers { border-color: var(--line); }
html[data-theme="dark"] .stat-num { color: var(--ink); }

/* Testimonial pull */
html[data-theme="dark"] .testimonial-pull { background: var(--bg-2); }
html[data-theme="dark"] .testimonial-quote { color: var(--ink); }

/* Testimonial cards — MUCH lighter background so text is readable */
html[data-theme="dark"] .testi {
  background: var(--bg-2);
  border-color: var(--line);
}
html[data-theme="dark"] .testi-quote { color: var(--ink); }
html[data-theme="dark"] .testi-name { color: var(--ink); }
html[data-theme="dark"] .testi-role { color: var(--muted); }
html[data-theme="dark"] .testi-foot { border-top-color: var(--line); }
html[data-theme="dark"] .testi-avatar {
  background: var(--bg-3);
  color: var(--accent);
}

/* FAQ — Architectural Dark Mode de Prestige */
html[data-theme="dark"] .faq,
html[data-theme="dark"] .faq-list {
  border-top: none !important;
}
html[data-theme="dark"] .faq-item {
  background: #111e38 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
}
html[data-theme="dark"] .faq-item:hover {
  background: #14244a !important;
  border-color: rgba(197, 155, 39, 0.45) !important;
}
html[data-theme="dark"] .faq-item[open],
html[data-theme="dark"] .faq-item.open {
  background: #162852 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(197, 155, 39, 0.15) !important;
}
html[data-theme="dark"] .faq-summary,
html[data-theme="dark"] .faq-q {
  color: #ffffff !important;
}
html[data-theme="dark"] .faq-summary:hover,
html[data-theme="dark"] .faq-item:hover .faq-q {
  color: var(--gold-light) !important;
}
html[data-theme="dark"] .faq-icon {
  background: rgba(197, 155, 39, 0.16) !important;
  border-color: rgba(197, 155, 39, 0.35) !important;
  color: var(--gold-light) !important;
}
html[data-theme="dark"] .faq-item[open] .faq-icon,
html[data-theme="dark"] .faq-item.open .faq-icon {
  background: var(--accent) !important;
  color: #070d1e !important;
  border-color: var(--accent) !important;
}
html[data-theme="dark"] .faq-plus {
  background: rgba(197, 155, 39, 0.16) !important;
  border-color: rgba(197, 155, 39, 0.35) !important;
  color: var(--gold-light) !important;
}
html[data-theme="dark"] .faq-item.open .faq-plus {
  background: var(--accent) !important;
  color: #070d1e !important;
  border-color: var(--accent) !important;
}
html[data-theme="dark"] .faq-body,
html[data-theme="dark"] .faq-a {
  color: #cbd5e1 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Client cells — white cards on dark bg */
html[data-theme="dark"] .client-cell {
  background: var(--white);
  border-color: var(--line);
}
html[data-theme="dark"] .client-cell.client-text { background: var(--bg-2); }
html[data-theme="dark"] .client-txt-name { color: var(--ink); }
html[data-theme="dark"] .client-txt-sub { color: var(--muted); }

/* Supplier pills — wider spacing, single row on desktop */
html[data-theme="dark"] .supplier-pill {
  background: var(--bg-2);
  color: var(--ink-2);
  border-color: var(--line);
}
html[data-theme="dark"] .supplier-pill:hover {
  background: var(--accent);
  color: var(--bg-2);
  border-color: var(--accent);
}

/* Form inputs */
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus {
  border-color: var(--accent);
}
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder { color: var(--muted); }

/* Contact info rows */
html[data-theme="dark"] .contact-info .row { border-color: var(--line); }
html[data-theme="dark"] .contact-info .value { color: var(--ink); }
html[data-theme="dark"] .contact-info .value a:hover { color: var(--accent); }

/* WhatsApp big — keep gold accent visible */
html[data-theme="dark"] .whatsapp-big {
  background: var(--bg-3);
  border: 1px solid var(--accent);
}
html[data-theme="dark"] .whatsapp-big h4 { color: var(--ink); }
html[data-theme="dark"] .whatsapp-big span { color: var(--accent); }

/* Chips (filter) */
html[data-theme="dark"] .chip {
  border-color: var(--line);
  color: var(--ink-2);
}
html[data-theme="dark"] .chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
html[data-theme="dark"] .chip.active {
  background: var(--accent);
  color: var(--bg-2);
  border-color: var(--accent);
}

/* Steps (Méthode) */
html[data-theme="dark"] .steps { border-color: var(--line); }
html[data-theme="dark"] .step { border-color: var(--line); }
html[data-theme="dark"] .step-num { color: var(--accent); }
html[data-theme="dark"] .step-detail { border-color: var(--line); }
html[data-theme="dark"] .step-detail li { color: var(--ink-2); }

/* Section header hairlines */
html[data-theme="dark"] .svc-group-head { border-color: var(--line); }
html[data-theme="dark"] .hero-meta { border-color: var(--line); }
html[data-theme="dark"] .hero-v2-facts { border-color: var(--line); }

/* Footer stays dark navy (unchanged colors work well) but bump the border */
html[data-theme="dark"] .footer {
  background: #050b1e;
  border-top: 1px solid var(--line);
}

/* Form status messages */
html[data-theme="dark"] .form-status.success .status-card {
  background: color-mix(in oklab, #10b981 12%, var(--bg-2));
  border-color: color-mix(in oklab, #10b981 40%, var(--line));
}
html[data-theme="dark"] .form-status.error .status-card {
  background: color-mix(in oklab, #ef4444 12%, var(--bg-2));
  border-color: color-mix(in oklab, #ef4444 40%, var(--line));
}
html[data-theme="dark"] .status-wa-btn {
  background: var(--accent);
  color: var(--bg-2);
  border-color: var(--accent);
}
html[data-theme="dark"] .status-wa-btn:hover {
  background: var(--gold-light);
}

/* Map placeholder — inverse stripes */
html[data-theme="dark"] section [style*="repeating-linear-gradient"] {
  background:
    repeating-linear-gradient(
      -45deg,
      var(--bg-2),
      var(--bg-2) 12px,
      var(--bg-3) 12px,
      var(--bg-3) 24px
    ) !important;
  border-color: var(--line) !important;
}


/* =============================================================
   FINAL RESPONSIVE POLISH — mobile-first pass across all sizes
   Ensures NO horizontal overflow, tap targets ≥ 44px,
   sensible type scales, and clean stacking at every breakpoint.
   ============================================================= */

/* Universal safety net */
img, svg, video { max-width: 100%; height: auto; }
* { min-width: 0; }
.wrap-wide, .wrap { min-width: 0; }

/* --- Tablet portrait / large phone (≤820px) --- */
@media (max-width: 820px) {
  section { padding: 72px 0; }
  .wrap, .wrap-wide { padding: 0 20px; }

  /* Section headers */
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .sec-head p { max-width: 100%; margin-top: 12px; }

  /* Hero v2 */
  .hero-v2 { padding: 24px 0 56px; }
  .hero-v2-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-v2-title { font-size: clamp(32px, 6.5vw, 48px); }
  .hero-v2-media { aspect-ratio: 4/3; max-height: 380px; order: -1; }
  .hero-v2-facts { grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 100%; }
  .fact-n { font-size: clamp(24px, 6vw, 32px); }
  .fact-l { font-size: 9px; letter-spacing: 0.14em; }

  /* Services grid */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Method steps */
  .step { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .step-detail { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .step-num { font-size: 40px; }

  /* Numbers strip */
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }

  /* Client grid */
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .client-cell { padding: 20px 16px; }

  /* Supplier pills wrap */
  .supplier-strip { gap: 8px; }
  .supplier-pill { padding: 10px 16px; font-size: 10px; letter-spacing: 0.18em; }

  /* Testimonials */
  .testis { grid-template-columns: 1fr; gap: 16px; }
  .testi { padding: 28px 24px; }
  .testi-quote { font-size: 18px; }

  /* FAQ */
  .faq-q { font-size: 18px; gap: 16px; }
  .faq-plus { width: 30px; height: 30px; }

  /* Marquee */
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 17px; gap: 24px; padding: 0 24px; letter-spacing: 0.06em; }

  /* Chips */
  .chips { gap: 6px; margin-bottom: 28px; }
  .chip { padding: 8px 14px; font-size: 12px; }

  /* Buttons stay tap-friendly */
  .btn { padding: 14px 22px; font-size: 14px; min-height: 44px; }

  /* Projects grid — full width single col */
  .projects-grid { gap: 12px; }
  .projects-grid > * {
    grid-column: span 12 !important;
    aspect-ratio: 4/3 !important;
  }
  .project-name { font-size: 16px; }
  .project-meta { left: 16px; right: 16px; bottom: 16px; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .whatsapp-big { padding: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .whatsapp-big svg { width: 40px; height: 40px; }
  .whatsapp-big h4 { font-size: 22px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-brand { grid-column: span 2; }
  .footer-brand .display { font-size: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* --- Small phone (≤560px) --- */
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .wrap, .wrap-wide { padding: 0 16px; }

  /* Headings — reduce fluid ceilings */
  h1 { font-size: clamp(28px, 8vw, 40px) !important; letter-spacing: 0.01em; }
  h2 { font-size: clamp(22px, 6.4vw, 34px) !important; }
  h3 { font-size: 16px; letter-spacing: 0.04em; }
  .eyebrow { font-size: 10px; letter-spacing: 0.16em; }

  /* Hero */
  .hero-v2 { padding: 16px 0 48px; }
  .hero-v2-title { font-size: clamp(26px, 8vw, 34px); line-height: 1.1; }
  .hero-v2-lead { font-size: 14px; margin-bottom: 24px; }
  .hero-v2-ctas { gap: 8px; margin-bottom: 32px; flex-direction: column; align-items: stretch; }
  .hero-v2-ctas .btn { justify-content: center; width: 100%; }
  .hero-v2-media { aspect-ratio: 3/4; max-height: none; }
  .hero-v2-facts { grid-template-columns: 1fr 1fr; padding-top: 20px; }
  .hero-v2-facts .fact:nth-child(3) { grid-column: span 2; padding-top: 16px; border-top: 1px solid var(--line); }
  .hero-v2-caption { left: 14px; bottom: 14px; padding: 8px 12px; font-size: 10px; letter-spacing: 0.14em; }

  /* Services 1 col */
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 20px 28px; border-right: 0 !important; }
  .service-num { margin-bottom: 20px; }
  .service h3 { font-size: 15px; }
  .service p { font-size: 14px; }

  /* Service cards (services page) */
  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { aspect-ratio: 3/4; }
  .svc-card h3 { font-size: 16px; letter-spacing: 0.04em; }
  .svc-card p { font-size: 12px; }
  .svc-card .body { left: 18px; right: 18px; bottom: 18px; }
  .svc-card .arrow { width: 34px; height: 34px; top: 14px; right: 14px; }
  .svc-filter { padding: 12px 18px; font-size: 10px; }
  .svc-group-head { margin-bottom: 24px; padding-bottom: 16px; }
  .svc-group-head h2 { font-size: clamp(22px, 6vw, 32px) !important; }

  /* Method steps compressed */
  .step { padding: 28px 0; gap: 12px; }
  .step-num { font-size: 32px; }
  .step-body h3 { font-size: 20px; }
  .step-detail li { font-size: 13px; }

  /* Numbers */
  .numbers { padding: 10px 0; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat-num { font-size: clamp(36px, 12vw, 52px); }
  .stat-label { font-size: 10px; margin-top: 8px; }

  /* Testimonial pull */
  .testimonial-pull { padding: 56px 0; }
  .testimonial-quote { font-size: clamp(20px, 6vw, 26px); max-width: 100%; }

  /* Testimonial cards */
  .testi { padding: 22px 18px; }
  .testi-quote { font-size: 16px; margin-bottom: 18px; }
  .testi-foot { padding-top: 14px; gap: 10px; }
  .testi-avatar { width: 34px; height: 34px; font-size: 14px; }
  .testi-name { font-size: 13px; }
  .testi-role { font-size: 9px; }

  /* FAQ Mobile */
  .faq-summary,
  .faq-q {
    padding: 18px 20px !important;
    font-size: 15.5px !important;
    gap: 12px !important;
  }
  .faq-body,
  .faq-a {
    padding: 0 20px 20px 20px !important;
    padding-top: 14px !important;
    font-size: 14px !important;
  }
  .faq-icon,
  .faq-plus {
    width: 32px !important;
    height: 32px !important;
    padding: 7px !important;
    font-size: 16px !important;
  }

  /* Contact form */
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .field input, .field textarea, .field select { padding: 12px 14px; font-size: 15px; }
  .field label { font-size: 9px; letter-spacing: 0.16em; }
  .contact-info h3 { font-size: 22px; }
  .contact-info .row { padding: 14px 0; }
  .contact-info .label { font-size: 9px; }
  .contact-info .value { font-size: 14px; }
  .whatsapp-big { padding: 20px; }
  .whatsapp-big h4 { font-size: 18px; }
  .whatsapp-big span { font-size: 10px; }
  .whatsapp-big svg { width: 32px; height: 32px; }

  /* Client cards — 1 col on very small screens */
  .client-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .client-cell { aspect-ratio: 3/2; padding: 16px 12px; }
  .client-logo-img { max-width: 82%; max-height: 74%; }

  /* Supplier pills */
  .supplier-pill { padding: 9px 14px; font-size: 9px; letter-spacing: 0.16em; }

  /* Marquee */
  .marquee { padding: 14px 0; }
  .marquee-item { font-size: 14px; gap: 16px; padding: 0 16px; }
  .marquee-item::after { font-size: 9px; }

  /* Buttons */
  .btn { padding: 13px 20px; font-size: 13px; min-height: 46px; }

  /* Section heading eyebrows */
  .eyebrow::before { width: 16px; }

  /* Footer 1 col on mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: span 1; }
  .footer-col-contact { grid-column: span 1; }
  .footer-col-services { grid-column: span 1; }
  .footer-services-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer-brand .display { font-size: 22px; letter-spacing: 0.1em; }
  .footer h4 { margin-bottom: 12px; font-size: 9px; }
  .footer ul { gap: 8px; }
  .footer-brand-mark { width: 44px; height: 44px; margin-bottom: 16px; }
  .socials { flex-wrap: wrap; gap: 16px; justify-content: center; }

  /* Chips */
  .chips { gap: 6px; }
  .chip { padding: 7px 12px; font-size: 11px; letter-spacing: 0.02em; }

  /* Filter pill */
  .svc-filter { padding: 10px 16px; font-size: 10px; }

  /* Bottom-page CTA groups (inline flex containers) — stack full-width */
  section > .wrap > div[style*="inline-flex"],
  section .wrap-wide > div[style*="inline-flex"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  section > .wrap > div[style*="inline-flex"] .btn,
  section .wrap-wide > div[style*="inline-flex"] .btn {
    justify-content: center;
    width: 100%;
  }
}

/* --- Ultra-narrow (≤380px) --- */
@media (max-width: 380px) {
  .wrap, .wrap-wide { padding: 0 14px; }
  section { padding: 48px 0; }

  h1 { font-size: 26px !important; letter-spacing: 0; }
  h2 { font-size: 22px !important; }
  .hero-v2-title { font-size: 24px; }
  .hero-v2-lead { font-size: 13px; }

  /* Nav */
  .nav-inner { padding: 10px 14px; gap: 8px; min-height: 56px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 12px; letter-spacing: 0.1em; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 14px; height: 14px; }
  .nav-cta { padding: 6px 10px; font-size: 11px; }
  .nav-cta svg { width: 12px; height: 12px; }
  .nav-actions { gap: 4px; }

  /* Client grid 1 col */
  .client-grid { grid-template-columns: 1fr; }

  /* Fact stack */
  .hero-v2-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-v2-facts .fact:nth-child(3) { grid-column: span 1; padding-top: 12px; }
  .hero-v2-facts .fact:nth-child(2) { padding-top: 12px; border-top: 1px solid var(--line); }

  /* Numbers 1 col */
  .numbers-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .stat-label { justify-self: center; }
  .stat-num { font-size: 44px; }

  /* Steps very tight */
  .step-num { font-size: 28px; }
  .step-body h3 { font-size: 18px; }
  .step-body p { font-size: 14px; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .footer-brand .display { font-size: 20px; }

  /* Buttons full-width */
  .btn { width: 100%; justify-content: center; }
  .hero-v2-ctas { width: 100%; }
}

/* =============================================================
   PAGE 404 & MENTIONS LÉGALES
   ============================================================= */
.page-404-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}
.page-404-card {
  max-width: 640px;
  margin: 0 auto;
}
.code-404 {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 140px);
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(197, 155, 39, 0.2);
}

/* Legal Page Layout */
/* Legal Page Layout — Édition Institutionnelle & Sobriété */
.legal-header {
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(197, 155, 39, 0.08) 0%, var(--bg) 70%);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.legal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
/* ============================================================
   LEGAL PAGE — Clean Editorial Luxury Typography
   ============================================================ */
.legal-header {
  padding: 140px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  text-align: center;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: start;
  padding: 60px 0 100px;
}
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.legal-sidebar-title {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.legal-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.legal-nav-link:hover,
.legal-nav-link.active {
  color: var(--navy);
  background: var(--bg-2);
  font-weight: 600;
}
html[data-theme="dark"] .legal-nav-link:hover,
html[data-theme="dark"] .legal-nav-link.active {
  color: var(--gold-light);
}
.legal-nav-num {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
}
.legal-sidebar-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.legal-sidebar-cta p {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
}
.legal-card:hover {
  border-color: rgba(197, 155, 39, 0.4);
}
.legal-card-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.legal-sec-num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.legal-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[data-theme="dark"] .legal-card-title {
  color: var(--gold-light);
}
.legal-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.legal-card p:last-child {
  margin-bottom: 0;
}
.legal-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.legal-spec-table tr {
  border-bottom: 1px solid var(--line);
}
.legal-spec-table tr:last-child {
  border-bottom: none;
}
.legal-spec-table tr:nth-child(even) {
  background: var(--bg-2);
}
.legal-spec-label {
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  width: 38%;
  vertical-align: top;
}
.legal-spec-val {
  padding: 12px 18px;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
  vertical-align: top;
}
html[data-theme="dark"] .legal-spec-val {
  color: #f1f5f9;
}
.legal-highlight-box {
  background: rgba(197, 155, 39, 0.05);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.legal-highlight-box p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--navy);
  margin: 0;
}
html[data-theme="dark"] .legal-highlight-box p {
  color: #e2e8f0;
}
.legal-points-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.legal-point-row {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
}
.legal-point-title {
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
html[data-theme="dark"] .legal-point-title {
  color: var(--gold-light);
}
.legal-point-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-card {
    padding: 24px 20px;
  }
  .legal-spec-label {
    width: 45%;
  }
}

/* ============================================================
   BILINGUAL & LANGUAGE SWITCHER (FR | عربي)
   ============================================================ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 4px;
  gap: 2px;
  font-size: 12px;
  line-height: 1;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}
html[data-theme="dark"] .lang-switcher {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.lang-switcher-btn:hover {
  color: var(--navy);
}
html[data-theme="dark"] .lang-switcher-btn:hover {
  color: #ffffff;
}
.lang-switcher-btn.active {
  background: var(--accent);
  color: #0b132b !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.lang-switcher-divider {
  color: var(--line);
  font-size: 10px;
  -webkit-user-select: none;
  user-select: none;
}

/* Mobile drawer lang switcher */
.nav-mobile-lang {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}
.nav-mobile-lang .lang-switcher {
  padding: 3px 6px;
  gap: 4px;
}
.nav-mobile-lang .lang-switcher-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============================================================
   RTL SUPPORT (Arabic — العربية) — HAUTE ARCHITECTURAL LUXURY DESIGN SYSTEM
   Featuring El Messiri (Royal Display Titles), Noto Kufi Arabic (Architectural Lapidary Serifs),
   and Almarai (Ultra-Refined Minimalist Luxury Body by Boutros Calligraphy)
   ============================================================ */
html[dir="rtl"],
html[lang="ar"] {
  direction: rtl;
  text-align: right;
  --font-display: 'El Messiri', 'Noto Kufi Arabic', 'Amiri', serif;
  --font-body: 'Almarai', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Global Arabic text reset — Breathable, High-End Luxury Line-Height */
html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: var(--font-body) !important;
  line-height: 1.85;
  letter-spacing: normal !important;
  text-transform: none !important;
  word-spacing: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings & Display Titles in Majestic El Messiri & Architectural Noto Kufi */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .display,
html[dir="rtl"] .brand-name,
html[dir="rtl"] .font-display,
html[dir="rtl"] .modal-project-title,
html[dir="rtl"] .svc-type-title,
html[dir="rtl"] .svc-process-title,
html[dir="rtl"] .svc-pillar-title,
html[dir="rtl"] .modal-scope-title,
html[dir="rtl"] .svc-grand-cta h2,
html[dir="rtl"] .why-rsf-head h2,
html[dir="rtl"] .why-rsf-card h3,
html[dir="rtl"] .about-title,
html[dir="rtl"] .hero-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.4 !important;
}

html[dir="rtl"] h1 { font-size: clamp(26px, 3.8vw, 48px); font-weight: 700 !important; }
html[dir="rtl"] main > section:first-of-type h1 { font-size: clamp(26px, 3.2vw, 42px) !important; line-height: 1.35 !important; }
html[dir="rtl"] h2 { font-size: clamp(22px, 3.2vw, 42px); font-weight: 700 !important; }
html[dir="rtl"] h3 { font-size: clamp(17px, 1.8vw, 25px); font-weight: 600 !important; }

/* Interactive items, buttons, nav, chips, tabs in Crisp Almarai */
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .svc-filter,
html[dir="rtl"] .chip,
html[dir="rtl"] .tag,
html[dir="rtl"] .kicker,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .legal-sec-num,
html[dir="rtl"] .why-rsf-tag,
html[dir="rtl"] .modal-spec-label {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
}

/* Paragraphs, descriptions, inputs in Pure Architectural Almarai */
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] label,
html[dir="rtl"] .brand-sub,
html[dir="rtl"] .stat-sub,
html[dir="rtl"] .svc-hero-lead,
html[dir="rtl"] .svc-type-desc,
html[dir="rtl"] .svc-process-text,
html[dir="rtl"] .svc-pillar-text,
html[dir="rtl"] .faq-summary,
html[dir="rtl"] .faq-body,
html[dir="rtl"] .footer-desc,
html[dir="rtl"] .footer-tagline,
html[dir="rtl"] .footer-col h4,
html[dir="rtl"] .modal-scope-list li,
html[dir="rtl"] .svc-grand-cta-lead {
  font-family: var(--font-body) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Eyebrow in RTL: elegant gold dash before Arabic word */
html[dir="rtl"] .eyebrow::before {
  display: none !important;
}
html[dir="rtl"] .eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* ============================================================
   DESKTOP NAVIGATION (RTL) — BALANCED, CRISP & AIRY
   ============================================================ */
html[dir="rtl"] .nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  padding: 14px 36px !important;
}

/* Brand on the Right */
html[dir="rtl"] .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
html[dir="rtl"] .brand-name {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  color: var(--ink);
  line-height: 1.1;
  display: block;
}
html[dir="rtl"] .brand-sub {
  display: block;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  color: var(--accent);
  margin-top: 2px;
}

/* ============================================================
   DESKTOP NAVIGATION (RTL — العربية) (> 1080px)
   ============================================================ */
@media (min-width: 1081px) {
  html[dir="rtl"] .nav-menu-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    margin: 0 !important;
  }
  html[dir="rtl"] .nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html[dir="rtl"] .nav-links li {
    display: inline-flex !important;
    align-items: center !important;
  }
  html[dir="rtl"] .nav-links a {
    font-family: var(--font-display) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    color: var(--ink-2);
    padding: 8px 4px !important;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
  }
  html[dir="rtl"] .nav-links a:hover,
  html[dir="rtl"] .nav-links a.active {
    color: var(--accent) !important;
  }
  html[dir="rtl"] .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html[dir="rtl"] .nav-links a:hover::after,
  html[dir="rtl"] .nav-links a.active::after {
    transform: scaleX(1);
  }
}

/* ============================================================
   MOBILE & TABLET NAVIGATION IN ARABIC (RTL — للهواتف النقالة) (<= 1080px)
   ============================================================ */
@media (max-width: 1080px) {
  /* Top Bar in RTL */
  html[dir="rtl"] .nav-inner {
    padding: 10px 20px !important;
    gap: 12px !important;
    min-height: 64px !important;
  }
  html[dir="rtl"] .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  html[dir="rtl"] .brand-name {
    font-size: 16px !important;
    letter-spacing: normal !important;
  }
  html[dir="rtl"] .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  html[dir="rtl"] .nav-actions .lang-switcher {
    display: none !important;
  }

  /* Full Screen Mobile Drawer in RTL */
  html[dir="rtl"] .nav-menu-wrapper {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: var(--bg) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 76px 20px 36px !important;
    z-index: 1000000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    text-align: right !important;
    direction: rtl !important;
  }
  html[dir="rtl"] .nav.nav-open .nav-menu-wrapper {
    display: flex !important;
    animation: mobileDrawerFade 0.25s ease forwards;
  }

  /* Header inside Drawer */
  html[dir="rtl"] .nav-mobile-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
    gap: 4px !important;
    padding-bottom: 14px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--line) !important;
  }
  html[dir="rtl"] .nav-mobile-eyebrow {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--accent) !important;
    line-height: 1.4 !important;
  }
  html[dir="rtl"] .nav-mobile-location {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--muted) !important;
    line-height: 1.4 !important;
  }

  /* Language Switcher inside Drawer */
  html[dir="rtl"] .nav-mobile-lang {
    display: flex !important;
    justify-content: center !important;
    margin: 4px 0 14px !important;
  }
  html[dir="rtl"] .nav-mobile-lang .lang-switcher {
    direction: ltr !important;
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    padding: 3px 6px !important;
  }
  html[dir="rtl"] .nav-mobile-lang .lang-switcher-btn {
    font-family: var(--font-display) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 7px 18px !important;
  }

  /* Navigation Links List (Vertical Stack of Luxury Cards) */
  html[dir="rtl"] .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 6px 0 16px !important;
    padding: 0 !important;
  }
  html[dir="rtl"] .nav-links li {
    display: block !important;
    width: 100% !important;
  }
  html[dir="rtl"] .nav-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 18px !important;
    border-radius: 9px !important;
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-right: 1px solid var(--line) !important;
    border-left: 1px solid var(--line) !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
  }
  html[dir="rtl"] .nav-links a .link-num {
    display: inline-block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    margin-left: 14px !important;
    margin-right: 0 !important;
    letter-spacing: 0.05em !important;
    flex-shrink: 0 !important;
  }
  html[dir="rtl"] .nav-links a .link-title {
    font-family: var(--font-display) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--ink) !important;
    flex: 1 !important;
    text-align: right !important;
  }
  html[dir="rtl"] .nav-links a::after {
    content: "←" !important;
    font-family: var(--font-display) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    opacity: 0.75 !important;
    position: static !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    transform: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    flex-shrink: 0 !important;
  }
  html[dir="rtl"] .nav-links a:hover,
  html[dir="rtl"] .nav-links a:focus {
    background: var(--bg-3) !important;
    border-color: var(--accent) !important;
    padding-right: 22px !important;
    padding-left: 14px !important;
  }
  html[dir="rtl"] .nav-links a:hover::after,
  html[dir="rtl"] .nav-links a:focus::after {
    transform: translateX(-4px) !important;
    opacity: 1 !important;
  }
  html[dir="rtl"] .nav-links a.active {
    background: color-mix(in oklab, var(--accent) 14%, var(--bg-2)) !important;
    border-color: var(--accent) !important;
    border-right: 4px solid var(--accent) !important;
    border-left: 1px solid var(--accent) !important;
  }
  html[dir="rtl"] .nav-links a.active .link-title {
    color: var(--accent) !important;
    font-weight: 700 !important;
  }
  html[dir="rtl"] .nav-links a.active::after {
    opacity: 1 !important;
    color: var(--accent) !important;
  }

  /* Bottom Actions & Contacts in Drawer */
  html[dir="rtl"] .nav-mobile-bottom {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 6px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--line) !important;
  }
  html[dir="rtl"] .nav-mobile-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-family: var(--font-display) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    padding: 13px 20px !important;
    border-radius: 9px !important;
    background: var(--accent) !important;
    color: #0b132b !important;
    box-shadow: 0 4px 16px rgba(197, 155, 39, 0.28) !important;
    text-decoration: none !important;
  }
  html[dir="rtl"] .nav-mobile-cta svg {
    width: 20px !important;
    height: 20px !important;
    transform: none !important;
  }
  html[dir="rtl"] .nav-mobile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    text-align: center !important;
  }
  html[dir="rtl"] .nav-mobile-tel {
    direction: ltr !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  html[dir="rtl"] .nav-mobile-tel svg {
    color: var(--accent) !important;
    transform: none !important;
  }
  html[dir="rtl"] .nav-mobile-city {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--muted) !important;
    text-align: center !important;
  }
}

/* Extra Small Phone Screens (< 480px) */
@media (max-width: 480px) {
  html[dir="rtl"] .nav-inner {
    padding: 8px 14px !important;
    min-height: 58px !important;
  }
  html[dir="rtl"] .nav-menu-wrapper {
    padding: 70px 16px 28px !important;
  }
  html[dir="rtl"] .nav-links a {
    padding: 12px 14px !important;
  }
  html[dir="rtl"] .nav-links a .link-title {
    font-size: 15.5px !important;
  }
}

/* Nav Actions on the Left */
html[dir="rtl"] .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Language Switcher in RTL */
html[dir="rtl"] .lang-switcher {
  direction: ltr; /* keep FR | AR in clean toggle order */
}
html[dir="rtl"] .lang-switcher-btn {
  font-family: var(--font-body), sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

/* WhatsApp Nav CTA in RTL */
html[dir="rtl"] .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

/* ============================================================
   SERVICES CATALOG CARDS (RTL)
   ============================================================ */
html[dir="rtl"] .svc-card .num {
  font-family: var(--font-mono) !important;
  font-size: 12.5px !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
}
html[dir="rtl"] .svc-card h3 {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
html[dir="rtl"] .svc-card p {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  letter-spacing: normal !important;
}
html[dir="rtl"] .svc-card .arrow {
  right: auto !important;
  left: 18px !important;
}
html[dir="rtl"] .svc-card:hover .arrow {
  transform: scale(1.1) rotate(45deg);
}
html[dir="rtl"] .svc-card-btn {
  font-family: var(--font-display) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

/* Filter tabs in RTL */
html[dir="rtl"] .svc-filter-bar {
  direction: rtl;
  justify-content: flex-start;
  gap: 12px;
}
html[dir="rtl"] .svc-filter-btn {
  font-family: var(--font-display) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  gap: 10px;
}
html[dir="rtl"] .svc-filter-btn.active {
  font-weight: 600 !important;
}
html[dir="rtl"] .svc-filter-count {
  font-family: var(--font-mono) !important;
  font-size: 11px;
}

/* Invert directional arrows for RTL reading flow */
html[dir="rtl"] .btn svg:not(.floating-whatsapp svg):not(.nav-cta svg):not(.nav-mobile-cta svg):not(.footer-contact-link svg) {
  transform: scaleX(-1);
}

/* Floating WhatsApp button placed on the left in RTL */
html[dir="rtl"] .floating-whatsapp {
  right: auto !important;
  left: 24px !important;
}
@media (max-width: 720px) {
  html[dir="rtl"] .floating-whatsapp {
    left: 20px !important;
    right: auto !important;
  }
}
html[dir="rtl"] .floating-whatsapp svg {
  transform: none !important;
}

/* Footer alignment in RTL */
html[dir="rtl"] .footer-col {
  text-align: right;
}
html[dir="rtl"] .footer-contact-list li {
  justify-content: flex-start;
}
html[dir="rtl"] .footer-contact-link svg {
  margin-right: 0;
  margin-left: 8px;
  transform: none !important;
}

/* Contact form RTL */
html[dir="rtl"] .form-group label,
html[dir="rtl"] .form-radio-label,
html[dir="rtl"] .contact-info-item {
  text-align: right;
}

/* ============================================================
   MODALE PROJET ENRICHIE (RTL)
   ============================================================ */
html[dir="rtl"] .modal-project-badge {
  letter-spacing: normal !important;
}
html[dir="rtl"] .modal-spec-val {
  font-family: 'Cairo', sans-serif !important;
  font-size: 14px !important;
}
html[dir="rtl"] .modal-scope-list li svg {
  margin-left: 8px;
  margin-right: 0;
}



/* ============================================================
   MODALE DE RÉALISATIONS ENRICHIE — FICHE TECHNIQUE CHANTIER
   Photo panoramique plein format en haut, détails & fiche technique en bas
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.project-modal.active {
  display: flex !important;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project-modal-dialog {
  position: relative !important;
  z-index: 2 !important;
  max-width: 940px !important;
  width: 94% !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px solid var(--line, #d9cfb8) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55) !important;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.active .project-modal-dialog {
  transform: scale(1) translateY(0);
}
.project-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 30 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(11, 19, 43, 0.78) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  transition: background 0.2s, transform 0.2s !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.project-modal-close:hover {
  background: rgba(11, 19, 43, 0.95) !important;
  transform: scale(1.08) !important;
}
html[dir="rtl"] .project-modal-close {
  right: auto !important;
  left: 16px !important;
}

/* Modal Content Stack: Full Photo on TOP, Info on the BOTTOM */
.project-modal-content-split {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}
.project-modal-img-col {
  width: 100% !important;
  height: 50vh !important;
  min-height: 320px !important;
  max-height: 520px !important;
  background: #000000 !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.project-modal-img-col img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.project-modal-info-col {
  width: 100% !important;
  padding: 32px 36px 36px !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Badge & Header */
.modal-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #c59b27) !important;
  font-weight: 700;
  margin-bottom: 8px;
}
html[dir="rtl"] .modal-project-badge {
  letter-spacing: normal !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}
.modal-project-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px) !important;
  color: #0b132b !important;
  margin: 0 0 6px !important;
  line-height: 1.25;
}
html[dir="rtl"] .modal-project-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
}
.modal-project-place {
  font-size: 14px;
  color: #64748b !important;
  margin: 0 0 24px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
html[dir="rtl"] .modal-project-place {
  font-family: var(--font-body) !important;
}

/* Key Project Specs Grid - Full Width Dashboard Strip */
.modal-specs-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  background: #f8f6f0 !important;
  border: 1px solid #e2d9c8 !important;
  border-radius: 10px !important;
  padding: 18px 22px !important;
  margin-bottom: 26px !important;
}
.modal-spec-item {
  grid-column: auto !important;
  display: flex !important;
  flex-direction: column !important;
}
.modal-spec-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b !important;
  font-weight: 600;
  margin-bottom: 4px;
}
html[dir="rtl"] .modal-spec-label {
  letter-spacing: normal !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}
.modal-spec-val {
  font-size: 14px;
  color: #0b132b !important;
  font-weight: 700;
  line-height: 1.4;
}
html[dir="rtl"] .modal-spec-val {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* Scope of Work Section - 2-column checklist */
.modal-scope-title {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b132b !important;
  font-weight: 700;
  margin-bottom: 14px;
}
html[dir="rtl"] .modal-scope-title {
  letter-spacing: normal !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}
.modal-scope-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 28px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 10px 24px !important;
}
.modal-scope-list li {
  font-size: 13.5px !important;
  color: #1e293b !important;
  line-height: 1.55 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
html[dir="rtl"] .modal-scope-list li {
  font-family: var(--font-body) !important;
}
.modal-scope-list li svg {
  color: #10b981 !important;
  flex-shrink: 0;
  margin-top: 3px;
  width: 15px;
  height: 15px;
}

/* Modal Actions - Luxury WhatsApp Button */
.modal-actions {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.modal-actions .btn-primary {
  background: var(--accent, #c59b27) !important;
  color: #0b132b !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  font-size: 14.5px !important;
  border-radius: 8px !important;
  border-color: var(--accent, #c59b27) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3) !important;
  transition: all 0.2s ease !important;
}
.modal-actions .btn-primary:hover {
  background: #0b132b !important;
  color: #ffffff !important;
  border-color: #0b132b !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 19, 43, 0.3) !important;
}
html[dir="rtl"] .modal-actions .btn-primary {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}

/* Dark mode overrides for modal */
html[data-theme="dark"] .project-modal-dialog {
  background: #0b132b !important;
  border-color: #1e2e58 !important;
}
html[data-theme="dark"] .project-modal-info-col {
  background: #0b132b !important;
}
html[data-theme="dark"] .modal-project-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .modal-project-place {
  color: #94a3b8 !important;
  border-bottom-color: #1e2e58 !important;
}
html[data-theme="dark"] .modal-specs-strip {
  background: #111e38 !important;
  border-color: #1e2e58 !important;
}
html[data-theme="dark"] .modal-spec-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .modal-spec-val {
  color: #f8fafc !important;
}
html[data-theme="dark"] .modal-scope-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .modal-scope-list li {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .modal-actions {
  border-top-color: #1e2e58 !important;
}

/* Responsive Modal Layout */
@media (max-width: 860px) {
  .modal-specs-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 650px) {
  .project-modal-dialog {
    width: 96% !important;
    max-height: 94vh !important;
    border-radius: 10px !important;
  }
  .project-modal-img-col {
    height: 36vh !important;
    min-height: 220px !important;
  }
  .project-modal-info-col {
    padding: 20px 18px 24px !important;
  }
  .modal-specs-strip {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .modal-scope-list {
    grid-template-columns: 1fr !important;
  }
  .modal-actions {
    justify-content: stretch !important;
  }
  .modal-actions .btn-primary {
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ============================================================
   PAGES DE SERVICES DÉDIÉES — DESIGN ARCHITECTURAL HAUT DE GAMME
   ============================================================ */

/* Fil d'Ariane (Breadcrumb) */
.breadcrumb-bar {
  padding: 16px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  margin: 0;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb-sep {
  opacity: 0.4;
  font-size: 11px;
}
.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}
html[data-theme="dark"] .breadcrumb-current {
  color: var(--gold-light);
}

/* Service Hero Section */
.svc-detail-hero {
  padding: 64px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.svc-hero-content {
  display: flex;
  flex-direction: column;
}
.svc-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px) !important;
  line-height: 1.22 !important;
  letter-spacing: 0.02em !important;
  color: var(--ink);
  margin: 16px 0 20px !important;
  text-transform: uppercase;
}
html[dir="rtl"] .svc-detail-hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-weight: 700 !important;
}
.svc-hero-lead {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 28px;
}
html[dir="rtl"] .svc-hero-lead {
  font-family: var(--font-body) !important;
  font-size: 16.5px !important;
  line-height: 1.85 !important;
}
.svc-hero-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border: 2px solid rgba(197, 155, 39, 0.35);
  background: var(--bg-2);
  aspect-ratio: 4/3;
}
.svc-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-hero-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(11, 19, 43, 0.92);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 155, 39, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
html[dir="rtl"] .svc-hero-badge {
  right: auto;
  left: 16px;
}

/* Cards System — Grille des Types / Variantes */
.svc-types-section {
  padding: 80px 0;
}
.svc-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.svc-type-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.svc-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: rgba(197, 155, 39, 0.5);
}
.svc-type-img-box {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-2);
}
.svc-type-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.svc-type-card:hover .svc-type-img-box img {
  transform: scale(1.05);
}
.svc-type-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.svc-type-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
html[dir="rtl"] .svc-type-tag {
  letter-spacing: normal !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}
.svc-type-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}
html[dir="rtl"] .svc-type-title {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
}
.svc-type-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
html[dir="rtl"] .svc-type-desc {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}
.svc-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.svc-type-btn:hover {
  background: var(--accent);
  color: #0b132b;
  border-color: var(--accent);
}
html[dir="rtl"] .svc-type-btn {
  font-family: var(--font-display) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}


/* =========================================================
   SERVICE EXPLANATION PILLARS (Clean Work Breakdown)
   ========================================================= */
.svc-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-explain-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  position: relative;
}
.svc-explain-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(11, 19, 43, 0.08);
}
.svc-explain-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-explain-num::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.svc-explain-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}
.svc-explain-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.svc-explain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: auto;
}
.svc-explain-list li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.svc-explain-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .svc-explain-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .svc-explain-card {
    padding: 24px 20px;
  }
}
html[data-theme="dark"] .svc-explain-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .svc-explain-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
html[dir="rtl"] .svc-explain-num {
  flex-direction: row-reverse;
  font-family: var(--font-body) !important;
  letter-spacing: normal !important;
}
html[dir="rtl"] .svc-explain-card {
  text-align: right;
}
html[dir="rtl"] .svc-explain-list li {
  flex-direction: row;
}

/* Service Scope Overview Banner (Rich Technical Narrative) */
.svc-scope-overview {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.svc-scope-overview h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-scope-overview p {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px 0;
}
.svc-scope-overview p:last-child {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .svc-scope-overview {
    padding: 22px 20px;
    margin-bottom: 28px;
  }
}
html[dir="rtl"] .svc-scope-overview {
  border-left: 1px solid var(--line);
  border-right: 4px solid var(--accent);
  text-align: right;
}
html[data-theme="dark"] .svc-scope-overview {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--accent);
}
html[data-theme="dark"][dir="rtl"] .svc-scope-overview {
  border-right-color: var(--accent);
  border-left-color: rgba(255, 255, 255, 0.08);
}

/* Processus d'Exécution en 4 Étapes */
.svc-process-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.svc-process-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
}
.svc-process-num {
  font-family: var(--font-mono, monospace);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 16px;
}
.svc-process-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
html[dir="rtl"] .svc-process-title {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
.svc-process-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
html[dir="rtl"] .svc-process-text {
  font-family: var(--font-body) !important;
  line-height: 1.8 !important;
}

/* Piliers Techniques */
.svc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.svc-pillar-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
}
.svc-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.svc-pillar-icon svg {
  width: 22px;
  height: 22px;
}
.svc-pillar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
html[dir="rtl"] .svc-pillar-title {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.svc-pillar-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
html[dir="rtl"] .svc-pillar-text {
  font-family: 'Tajawal', sans-serif !important;
  line-height: 1.7 !important;
}

/* (Master FAQ Accordion styles are consolidated in section FAQ) */

/* ============================================================
   GRAND CALL-TO-ACTION FINAL — FOND NAVY GARANTI
   ============================================================ */
.svc-grand-cta {
  background: #0b132b !important;
  color: #ffffff !important;
  padding: 96px 0 !important;
  text-align: center !important;
  border-top: 1px solid rgba(197, 155, 39, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
}
.svc-grand-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 240px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.svc-grand-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.svc-grand-cta h2 {
  font-size: clamp(26px, 3.8vw, 42px) !important;
  color: #ffffff !important;
  margin: 18px 0 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
}
html[dir="rtl"] .svc-grand-cta h2 {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(24px, 3.4vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: normal !important;
}
.svc-grand-cta-lead {
  font-size: 17px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  line-height: 1.75 !important;
  margin-bottom: 38px !important;
}
html[dir="rtl"] .svc-grand-cta-lead {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}
.svc-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.svc-cta-buttons .btn-primary {
  background: var(--accent, #c59b27) !important;
  color: #0b132b !important;
  font-weight: 700 !important;
  border-color: var(--accent, #c59b27) !important;
}
.svc-cta-buttons .btn-primary:hover {
  background: #ffffff !important;
  color: #0b132b !important;
  border-color: #ffffff !important;
}
.svc-cta-buttons .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  backdrop-filter: blur(6px) !important;
  transition: all 0.25s ease !important;
}
.svc-cta-buttons .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .svc-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .svc-process-grid,
  .svc-pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .svc-process-grid,
  .svc-pillars-grid,
  .svc-types-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   TRANSITIONS FLUIDES & HARMONISATION DU MODE SOMBRE / CLAIR
   (Switch between Dark Mode and White/Light Mode)
   ============================================================ */

/* Transition soyeuse lors du basculement de thème */
html, body, .nav, .nav-inner, .footer,
.svc-type-card, .svc-process-card, .svc-pillar-card,
.faq-item, .project-modal-dialog, .project-modal-info-col,
.service, .testi, .client-cell, .supplier-pill, .chip,
.field input, .field textarea, .field select, .status-card,
.legal-card, .breadcrumb-bar, .modal-specs-strip {
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/* Overrides Mode Sombre pour les Composants de Services */
html[data-theme="dark"] .svc-detail-hero {
  background: var(--bg) !important;
  border-bottom-color: var(--line) !important;
}
html[data-theme="dark"] .svc-detail-hero h1 {
  color: var(--ink) !important;
}
html[data-theme="dark"] .svc-hero-lead {
  color: var(--ink-2) !important;
}
html[data-theme="dark"] .breadcrumb-bar {
  background: var(--bg-2) !important;
  border-bottom-color: var(--line) !important;
}
html[data-theme="dark"] .breadcrumb a {
  color: var(--muted) !important;
}
html[data-theme="dark"] .breadcrumb a:hover {
  color: var(--accent) !important;
}
html[data-theme="dark"] .breadcrumb-current {
  color: var(--gold-light) !important;
}

/* Grille des Variantes de Services en Mode Sombre */
html[data-theme="dark"] .svc-type-card {
  background: var(--bg-2) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .svc-type-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] .svc-type-title {
  color: var(--ink) !important;
}
html[data-theme="dark"] .svc-type-desc {
  color: var(--muted) !important;
}
html[data-theme="dark"] .svc-type-btn {
  background: var(--bg-3) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .svc-type-btn:hover {
  background: var(--accent) !important;
  color: #0b132b !important;
  border-color: var(--accent) !important;
}

/* Processus en 4 Étapes en Mode Sombre */
html[data-theme="dark"] .svc-process-section {
  background: #080f24 !important;
  border-top-color: var(--line) !important;
  border-bottom-color: var(--line) !important;
}
html[data-theme="dark"] .svc-process-card {
  background: var(--bg-2) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .svc-process-title {
  color: var(--ink) !important;
}
html[data-theme="dark"] .svc-process-text {
  color: var(--muted) !important;
}

/* 4 Piliers Techniques en Mode Sombre */
html[data-theme="dark"] .svc-pillar-card {
  background: var(--bg-2) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .svc-pillar-title {
  color: var(--ink) !important;
}
html[data-theme="dark"] .svc-pillar-text {
  color: var(--muted) !important;
}
html[data-theme="dark"] .svc-pillar-icon {
  background: rgba(197, 155, 39, 0.16) !important;
  color: var(--gold-light) !important;
}

/* (Dark mode FAQ styles are consolidated in master Dark Mode section) */

/* Tiroir Mobile en Mode Sombre (FR & AR) - Uniquement pour mobile (< 1080px) */
@media (max-width: 1080px) {
  html[data-theme="dark"] .nav-links a {
    background: var(--bg-2) !important;
    border-color: var(--line) !important;
  }
  html[data-theme="dark"] .nav-links a .link-title {
    color: var(--ink) !important;
  }
  html[data-theme="dark"] .nav-links a:hover,
  html[data-theme="dark"] .nav-links a:focus {
    background: var(--bg-3) !important;
    border-color: var(--accent) !important;
  }
  html[data-theme="dark"] .nav-links a.active {
    background: color-mix(in oklab, var(--accent) 18%, var(--bg-2)) !important;
    border-color: var(--accent) !important;
  }
}

/* Navigation Desktop (> 1080px) : Aucun fond carré sur les liens du menu (FR & AR, Clair & Sombre) */
@media (min-width: 1081px) {
  .nav-links a,
  html[data-theme="dark"] .nav-links a,
  html[dir="rtl"] .nav-links a,
  html[dir="rtl"][data-theme="dark"] .nav-links a {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 8px 2px !important;
  }
  .nav-links a:hover,
  html[data-theme="dark"] .nav-links a:hover,
  html[dir="rtl"] .nav-links a:hover,
  html[dir="rtl"][data-theme="dark"] .nav-links a:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--ink) !important;
  }
  .nav-links a.active,
  html[data-theme="dark"] .nav-links a.active,
  html[dir="rtl"] .nav-links a.active,
  html[dir="rtl"][data-theme="dark"] .nav-links a.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--ink) !important;
  }
}
html[data-theme="dark"] .nav-mobile-header {
  border-bottom-color: var(--line) !important;
}
html[data-theme="dark"] .nav-mobile-bottom {
  border-top-color: var(--line) !important;
}
html[data-theme="dark"] .nav-mobile-tel {
  color: var(--ink) !important;
}

/* =========================================================
   BACK TO TOP BUTTON (Bilingual FR / AR)
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 999997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--accent);
  color: #0b132b;
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.3);
}
.back-to-top:active {
  transform: translateY(0) scale(0.96);
}
html[dir="rtl"] .back-to-top {
  right: auto !important;
  left: 24px !important;
}
@media (max-width: 720px) {
  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  html[dir="rtl"] .back-to-top {
    left: 20px !important;
    right: auto !important;
  }
}
html[data-theme="dark"] .back-to-top {
  background: #111e38;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .back-to-top:hover {
  background: var(--accent);
  color: #0b132b;
  border-color: var(--accent);
}

/* =========================================================
   REASSURANCE STRIP (Contact Form Badges)
   ========================================================= */
.reassurance-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.reassurance-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.reassurance-item svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
html[data-theme="dark"] .reassurance-strip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
html[dir="rtl"] .reassurance-item {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 12.5px;
}

/* =========================================================
   WHY CHOOSE RSF TRAVAUX SECTION (Excellence & Rigueur)
   ========================================================= */
.why-rsf-section {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.why-rsf-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.why-rsf-head h2 {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 42px);
  margin: 18px 0 16px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.why-rsf-head p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.why-rsf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-rsf-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 32px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.why-rsf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.why-rsf-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(11, 19, 43, 0.12);
}

.why-rsf-card:hover::before {
  background: var(--accent);
}

.why-rsf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.why-rsf-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid rgba(197, 155, 39, 0.28);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: all 0.25s ease;
}

.why-rsf-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.why-rsf-card:hover .why-rsf-icon {
  background: var(--accent);
  color: #0b132b;
  transform: scale(1.06);
}

.why-rsf-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(197, 155, 39, 0.08);
  border-radius: 999px;
}

.why-rsf-card h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.why-rsf-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
  flex: 1;
}

.why-rsf-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}

.why-rsf-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Dark Mode: Why RSF */
html[data-theme="dark"] .why-rsf-card {
  background: #111e38;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .why-rsf-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

html[data-theme="dark"] .why-rsf-tag {
  color: var(--gold-light);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Why RSF */
@media (max-width: 960px) {
  .why-rsf-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .why-rsf-card {
    padding: 28px 24px;
  }
}

/* RTL / Arabic */
html[dir="rtl"] .why-rsf-head h2 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  line-height: 1.35;
}

html[dir="rtl"] .why-rsf-card h3 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 19px;
}

html[dir="rtl"] .why-rsf-tag {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-size: 12px;
}

/* RTL / Arabic Services Grid */
html[dir="rtl"] .services-grid {
  border-left: none;
  border-right: 1px solid var(--line);
}
html[dir="rtl"] .service {
  border-right: none;
  border-left: 1px solid var(--line);
  text-align: right;
}
html[dir="rtl"] .service:hover {
  box-shadow: inset 0 3px 0 var(--accent);
}
html[dir="rtl"] .service-top {
  flex-direction: row-reverse;
}
html[dir="rtl"] .service-cat {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  letter-spacing: normal !important;
  font-weight: 600;
}
html[dir="rtl"] .service-link {
  font-family: var(--font-body) !important;
  flex-direction: row-reverse;
}
html[dir="rtl"] .service:hover .service-link svg {
  transform: translateX(-4px);
}

/* RTL Footer Services Grid */
html[dir="rtl"] .footer-services-grid {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .footer-services-subcol a {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}
html[dir="rtl"] .footer a:hover {
  transform: translateX(-3px);
}



/* =========================================================
   BEFORE / AFTER COMPARISON SLIDER (LUXURY INTERACTIVE MULTI-SCENE)
   ========================================================= */
.ba-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}
.ba-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  max-width: 100%;
}
.ba-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}
.ba-tab:hover {
  color: var(--accent);
  background: rgba(197, 155, 39, 0.08);
}
.ba-tab.active {
  background: var(--ink, #0b132b) !important;
  color: #ffffff !important;
  border-color: var(--ink, #0b132b) !important;
  box-shadow: 0 4px 14px rgba(11, 19, 43, 0.2);
}
.ba-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.ba-tab.active .ba-tab-dot {
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--accent);
}
.ba-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 19, 43, 0.12);
  border: 1px solid var(--line);
  -webkit-user-select: none;
  user-select: none;
  cursor: ew-resize;
  background: #0b132b;
  touch-action: pan-y;
  direction: ltr !important;
  container-type: inline-size;
}
.ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  direction: ltr !important;
}
.ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid #ffffff;
  z-index: 2;
  box-shadow: 4px 0 16px rgba(0,0,0,0.35);
  direction: ltr !important;
}
.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ba-w, 100cqw);
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.ba-handle-line {
  flex-grow: 1;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}
.ba-handle-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b132b;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  border: 2px solid #ffffff;
}
.ba-handle-circle svg {
  width: 18px;
  height: 18px;
}
.ba-label {
  position: absolute;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
}
.ba-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ba-label-before {
  right: 20px;
  background: rgba(11, 19, 43, 0.85);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ba-label-before::before {
  background: #94a3b8;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}
.ba-label-after {
  left: 20px;
  background: rgba(11, 19, 43, 0.88);
  color: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.7);
}
.ba-label-after::before {
  background: #c5a059;
  box-shadow: 0 0 8px #c5a059;
}
html[lang="ar"] .ba-label {
  font-family: var(--font-ar, "Noto Kufi Arabic", "Almarai", sans-serif);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
}
.ba-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--line);
}
.ba-caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  background: rgba(197, 155, 39, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}
.ba-caption-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
html[dir="rtl"] .ba-caption-bar {
  text-align: right;
}
html[data-theme="dark"] .ba-tabs {
  background: rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .ba-tab:not(.active) {
  color: rgba(255, 255, 255, 0.8);
}
html[data-theme="dark"] .ba-tab.active {
  background: var(--accent);
  color: #0b132b;
}
html[data-theme="dark"] .ba-caption-bar {
  background: #0f182e;
}

/* ---------- Mobile Phone & Tablet Responsive (< 768px) ---------- */
@media (max-width: 768px) {
  .ba-tabs-wrapper {
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 6px 16px 14px !important;
    margin: 0 -16px 14px !important;
    width: calc(100% + 32px) !important;
    box-sizing: border-box !important;
  }
  .ba-tabs-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .ba-tabs {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }
  .ba-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: 999px !important;
    background: var(--bg-2, #f5efe6) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
  }
  .ba-tab:active {
    transform: scale(0.97) !important;
  }
  .ba-tab.active {
    background: var(--ink, #0b132b) !important;
    color: #ffffff !important;
    border-color: var(--ink, #0b132b) !important;
    box-shadow: 0 4px 14px rgba(11, 19, 43, 0.22) !important;
  }
  .ba-tab-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
    opacity: 0.5 !important;
    flex-shrink: 0 !important;
  }
  .ba-tab.active .ba-tab-dot {
    opacity: 1 !important;
    transform: scale(1.25) !important;
    box-shadow: 0 0 8px var(--accent) !important;
  }
  html[data-theme="dark"] .ba-tab {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  html[data-theme="dark"] .ba-tab.active {
    background: var(--accent) !important;
    color: #0b132b !important;
    border-color: var(--accent) !important;
  }
  html[data-theme="dark"] .ba-tab.active .ba-tab-dot {
    background: #0b132b !important;
    box-shadow: none !important;
  }

  .ba-container {
    aspect-ratio: 16 / 9 !important;
    max-height: 480px !important;
    border-radius: 12px !important;
    touch-action: pan-y !important;
    direction: ltr !important;
  }
  .ba-before, .ba-after {
    direction: ltr !important;
    pointer-events: none !important;
  }
  .ba-handle {
    width: 44px !important;
    margin-left: -22px !important;
    pointer-events: none !important;
  }
  .ba-handle-circle {
    width: 38px !important;
    height: 38px !important;
  }
  .ba-handle-circle svg {
    width: 16px !important;
    height: 16px !important;
  }
  .ba-label {
    top: 14px !important;
    bottom: auto !important;
    font-size: 9.5px !important;
    padding: 6px 12px 6px 9px !important;
    letter-spacing: 0.06em !important;
    gap: 6px !important;
    border-radius: 999px !important;
    pointer-events: none !important;
  }
  .ba-label::before {
    width: 6px !important;
    height: 6px !important;
  }
  .ba-label-before {
    right: 12px !important;
    left: auto !important;
  }
  .ba-label-after {
    left: 12px !important;
    right: auto !important;
  }
  html[lang="ar"] .ba-label {
    font-size: 10.5px !important;
  }
  .ba-caption-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }
  .ba-caption-badge {
    font-size: 10.5px !important;
    padding: 3px 8px !important;
  }
  .ba-caption-text {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
  }
}

html[dir="rtl"] .ba-tabs-wrapper {
  direction: rtl !important;
}
html[dir="rtl"] .ba-tabs {
  direction: rtl !important;
}
html[dir="rtl"] .ba-caption-bar {
  text-align: right !important;
  align-items: flex-start !important;
}

/* =========================================================
   CONTACT FILE UPLOAD & SUCCESS FEEDBACK
   ========================================================= */
.file-upload-box {
  margin-top: 6px;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--bg-soft, #f8f9fa);
  border: 1px dashed var(--line);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.file-upload-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(184, 142, 47, 0.05);
}
.form-success-banner {
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  align-items: center;
  gap: 12px;
}
html[data-theme="dark"] .form-success-banner {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

/* =========================================================
   FAQ ACCORDION COMPONENT
   ========================================================= */
.faq-sec {
  padding: 80px 0 90px;
}
.faq-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq-head .eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 16px;
}
.faq-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  text-transform: none;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 auto 16px auto;
  max-width: 26ch;
}
.faq-head p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 36px auto 0;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card, #ffffff);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: var(--accent);
}
.faq-q {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
html[dir="rtl"] .faq-q {
  text-align: right;
  font-family: var(--font-display);
  font-size: 16.5px;
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-a {
  display: none;
  padding: 0 22px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-item.active .faq-a {
  display: block;
}
html[data-theme="dark"] .faq-item {
  background: #0f182e;
}
