/* ==========================================================================
   DESCUSTOMS - DESIGN SYSTEM & BOOTSTRAP OVERRIDES (PREMIUM UI/UX 2026)
   Strict Graphic Charter Respect & Flawless Cross-Platform Layout
   ========================================================================== */

/* --- 1. Brand Tokens & Bootstrap Theme Variables --- */
:root, [data-bs-theme="dark"] {
  /* Brand Charter Primary Colors */
  --dc-mint: #00E19B;      /* Digital, Web & Innovation */
  --dc-pink: #FE007A;      /* Impact, Publicité & Energy */
  --dc-purple: #A463FF;    /* Créativité, Branding & 3D */
  --dc-gold: #FFB600;      /* Agencement, Enseignes & Craft */

  /* Alpha Glows */
  --dc-mint-glow: rgba(0, 225, 155, 0.25);
  --dc-pink-glow: rgba(254, 0, 122, 0.25);
  --dc-purple-glow: rgba(164, 99, 255, 0.25);
  --dc-gold-glow: rgba(255, 182, 0, 0.25);

  /* Deep Dark Space Grayscale */
  --bg-darkest: #060709;
  --bg-primary: #0A0C10;
  --bg-secondary: #0F121A;
  --bg-card: rgba(16, 21, 30, 0.75);
  --bg-card-hover: rgba(22, 29, 42, 0.9);

  /* Override Bootstrap Theme Variables */
  --bs-body-bg: #060709;
  --bs-body-color: #FFFFFF;
  --bs-primary: #00E19B;
  --bs-primary-rgb: 0, 225, 155;
  --bs-border-color: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;

  /* Spacers */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base Body */
body {
  font-family: var(--font-main);
  background-color: var(--bg-darkest);
  color: #FFFFFF;
  overflow-x: hidden;
  position: relative;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

/* Utilities */
.text-mint { color: var(--dc-mint) !important; }
.text-pink { color: var(--dc-pink) !important; }
.text-purple { color: var(--dc-purple) !important; }
.text-gold { color: var(--dc-gold) !important; }

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  mix-blend-mode: screen;
}

.ambient-orb.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--dc-mint);
  top: -150px;
  left: -100px;
  animation: floatOrb 22s infinite ease-in-out alternate;
}

.ambient-orb.orb-2 {
  width: 550px;
  height: 550px;
  background: var(--dc-pink);
  top: 25%;
  right: -150px;
  animation: floatOrb 25s infinite ease-in-out alternate-reverse;
}

.ambient-orb.orb-3 {
  width: 500px;
  height: 500px;
  background: var(--dc-purple);
  bottom: 15%;
  left: -120px;
  animation: floatOrb 20s infinite ease-in-out alternate;
}

.ambient-orb.orb-4 {
  width: 450px;
  height: 450px;
  background: var(--dc-gold);
  bottom: -100px;
  right: 10%;
  animation: floatOrb 28s infinite ease-in-out alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Gradients */
.gradient-charter-text {
  background: linear-gradient(90deg, var(--dc-mint) 0%, var(--dc-pink) 35%, var(--dc-purple) 70%, var(--dc-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #A463FF 60%, #00E19B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bs-border-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dc-mint);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.section-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dc-mint);
  box-shadow: 0 0 10px var(--dc-mint);
}

/* ==========================================================================
   2. NAVBAR & HEADER (FLAWLESS RESPONSIVE ARCHITECTURE)
   ========================================================================== */
.header-fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.main-navbar {
  background: rgba(8, 10, 14, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 14px;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  white-space: nowrap;
}

.nav-link-custom {
  color: #94A3B8 !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
  white-space: nowrap !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #FFFFFF !important;
}

/* Dropdown Menu Desktop */
.nav-item.dropdown {
  position: relative !important;
}

.dropdown-chevron-icon {
  transition: transform 0.2s ease;
  width: 12px !important;
  height: 12px !important;
}

.nav-item.dropdown:hover .dropdown-chevron-icon {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-menu-custom {
  background: rgba(10, 14, 22, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 225, 155, 0.08) !important;
  padding: 10px !important;
  min-width: 360px !important;
  backdrop-filter: blur(24px);
  margin-top: 8px !important;
  position: relative;
}

.dropdown-menu-custom::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* 2-Column Mega-Menu for 10 Services */
.dropdown-menu-services {
  min-width: 680px !important;
  max-width: 720px !important;
  padding: 12px 14px !important;
}

/* Compact Menu for Cities */
.dropdown-menu-cities {
  min-width: 260px !important;
  max-width: 300px !important;
  padding: 8px 10px !important;
}

.dropdown-grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
}

@media (max-width: 1199.98px) {
  .dropdown-menu-services {
    min-width: 100% !important;
  }
  .dropdown-grid-services {
    grid-template-columns: 1fr;
  }
}

.dropdown-item-custom {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm);
  color: #CBD5E1 !important;
  transition: all 0.2s ease;
  white-space: normal !important;
  text-decoration: none;
}

.dropdown-item-custom:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  transform: translateX(4px);
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #F8FAFC;
  display: block;
  line-height: 1.3;
}

.dropdown-item-custom:hover .dropdown-item-title {
  color: var(--dc-mint);
}

.dropdown-item-subtitle {
  font-size: 0.76rem;
  color: #94A3B8;
  display: block;
  margin-top: 2px;
  line-height: 1.2;
}

/* Bulletproof Global Icon Rules */
svg.icon-svg,
.icon-svg svg,
.icon-svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.icon-box-real {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
}

.icon-box-real svg,
.icon-box-real .icon-svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.dropdown-item-custom:hover .icon-box-real {
  background: rgba(0, 225, 155, 0.15);
  border-color: var(--dc-mint);
}

/* Constrain Button and Header SVGs */
.btn-whatsapp-custom svg,
.btn-primary-custom svg,
.btn-secondary-custom svg,
.header-phone-pill svg,
.charter-float-badge svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
}

/* Header Action Buttons (Never Wrap!) */
.header-phone-pill {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.header-phone-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--dc-mint);
}

.btn-glow-quad {
  background: #11141B;
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 10px 22px !important;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease;
}

.btn-glow-quad::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dc-mint), var(--dc-pink), var(--dc-purple), var(--dc-gold));
  z-index: -1;
}

.btn-glow-quad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254, 0, 122, 0.35);
}

.mobile-nav-toggler {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-nav-toggler:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Bootstrap Offcanvas Mobile Drawer Customization */
.offcanvas.offcanvas-custom {
  background: #0A0D14 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: min(380px, 88vw) !important;
  z-index: 1055 !important;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px;
}

.offcanvas-body {
  padding: 24px;
}

.offcanvas-link {
  transition: all 0.2s ease;
}

.offcanvas-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ==========================================================================
   3. BUTTONS (Respecting Brand Charter)
   ========================================================================== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--dc-mint) 0%, #00b87c 100%);
  color: #060709 !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 26px;
  box-shadow: 0 4px 20px rgba(0, 225, 155, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 225, 155, 0.55);
  filter: brightness(1.08);
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-whatsapp-custom {
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-whatsapp-custom:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   4. HERO & 3D INTERACTIVE CARD
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 135px;
  padding-bottom: 90px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 24px;
}

.charter-squares-mini {
  display: grid;
  grid-template-columns: 8px 8px;
  grid-template-rows: 8px 8px;
  gap: 3px;
}

.charter-squares-mini span:nth-child(1) { background: var(--dc-mint); border-radius: 2px; }
.charter-squares-mini span:nth-child(2) { background: var(--dc-pink); border-radius: 2px; }
.charter-squares-mini span:nth-child(3) { background: var(--dc-purple); border-radius: 2px; }
.charter-squares-mini span:nth-child(4) { background: var(--dc-gold); border-radius: 2px; }

.hero-card-3d {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(22, 27, 38, 0.85) 0%, rgba(10, 13, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 225, 155, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(24px);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  margin-inline: auto;
}

.hero-card-3d:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 100px rgba(254, 0, 122, 0.2);
}

.hero-logo-large {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
  animation: logoBreath 6s infinite ease-in-out;
}

@keyframes logoBreath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 20px 40px rgba(0, 225, 155, 0.35)); }
}

.charter-float-badge {
  position: absolute;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(14, 18, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.charter-float-badge.badge-top-left { top: -10px; left: -20px; border-left: 3px solid var(--dc-mint); }
.charter-float-badge.badge-top-right { top: 30px; right: -25px; border-right: 3px solid var(--dc-pink); }
.charter-float-badge.badge-bottom-left { bottom: 20px; left: -25px; border-left: 3px solid var(--dc-purple); }
.charter-float-badge.badge-bottom-right { bottom: -15px; right: -15px; border-right: 3px solid var(--dc-gold); }

@media (max-width: 991px) {
  .charter-float-badge { display: none; }
}

/* Metric Items */
.metric-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.8rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   5. CARDS & BENTO STYLES
   ========================================================================== */
.card-custom {
  background: var(--bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-custom:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

.charter-card {
  position: relative;
  overflow: hidden;
}

.charter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color, var(--dc-mint));
}

.charter-card.mint { --accent-color: var(--dc-mint); }
.charter-card.pink { --accent-color: var(--dc-pink); }
.charter-card.purple { --accent-color: var(--dc-purple); }
.charter-card.gold { --accent-color: var(--dc-gold); }

.charter-card .icon-box-real {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 14px !important;
}

.charter-card .icon-box-real svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
}

/* Portfolio Cards */
.portfolio-card-custom {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.portfolio-card-custom:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.portfolio-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #11141E;
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card-custom:hover .portfolio-thumb {
  transform: scale(1.08);
}

.portfolio-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* City Cards */
.city-card-custom {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.3s ease;
}

.city-card-custom:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: inherit;
}

.city-badge-custom {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 225, 155, 0.1);
  border: 1px solid rgba(0, 225, 155, 0.25);
  color: var(--dc-mint);
  text-transform: uppercase;
}

.city-badge-custom.international {
  background: rgba(164, 99, 255, 0.1);
  border-color: rgba(164, 99, 255, 0.25);
  color: var(--dc-purple);
}

/* Subpage Hero */
.subpage-hero {
  padding-top: 135px;
  padding-bottom: 70px;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, rgba(16, 20, 28, 0.6) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 20px;
  padding: 0;
}

.breadcrumb-nav a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--dc-mint);
}

/* Simulator Box */
.simulator-box {
  background: linear-gradient(145deg, rgba(16, 21, 30, 0.9) 0%, rgba(10, 13, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 48px);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.simulator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dc-mint), var(--dc-pink), var(--dc-purple), var(--dc-gold));
}

.sim-option-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
}

.sim-option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.sim-option-card.selected {
  border-color: var(--dc-mint);
  background: rgba(0, 225, 155, 0.08);
  box-shadow: 0 0 20px rgba(0, 225, 155, 0.2);
}

.sim-result-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin-top: 32px;
}

.sim-price-range {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dc-mint);
  margin-block: 8px;
}

.sim-price-badge {
  display: inline-block;
  background: rgba(0, 225, 155, 0.12);
  color: var(--dc-mint);
  border: 1px solid rgba(0, 225, 155, 0.28);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.badge-mint-custom {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 225, 155, 0.12);
  color: var(--dc-mint);
  border: 1px solid rgba(0, 225, 155, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sim-tax-note {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 10px;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-pill-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-pill-btn svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
}

.whatsapp-pill-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 38px rgba(37, 211, 102, 0.7);
}

.whatsapp-tooltip {
  background: rgba(15, 20, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 576px) {
  .whatsapp-tooltip { display: none; }
}

/* Floating Translation Switcher (Bottom Left) */
.floating-lang-widget {
  position: fixed !important;
  bottom: 28px !important;
  left: 28px !important;
  right: auto !important;
  z-index: 1050 !important;
}

.floating-lang-btn {
  background: rgba(12, 17, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 10px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.floating-lang-btn::after {
  display: none !important;
}

.floating-lang-btn:hover,
.floating-lang-btn:focus,
.floating-lang-widget.show .floating-lang-btn {
  background: rgba(18, 26, 38, 0.98);
  border-color: rgba(0, 225, 155, 0.6);
  color: #00E19B;
  box-shadow: 0 12px 36px rgba(0, 225, 155, 0.3), 0 0 14px rgba(0, 225, 155, 0.2);
  transform: translateY(-2px);
}

.floating-lang-icon {
  color: var(--dc-mint);
  display: flex;
  align-items: center;
}

.floating-lang-menu {
  background: rgba(10, 14, 22, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8) !important;
  min-width: 200px !important;
  padding: 6px !important;
  margin-bottom: 12px !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.floating-lang-menu-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.floating-lang-menu .lang-select-item {
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.15s ease;
  width: 100%;
}

.floating-lang-menu .lang-select-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.floating-lang-menu .lang-select-item.active {
  background: rgba(0, 225, 155, 0.15);
  color: #00E19B;
  font-weight: 700;
}

.floating-lang-menu .lang-check {
  display: none;
  font-size: 0.9rem;
}

.floating-lang-menu .lang-select-item.active .lang-check {
  display: inline-block;
  color: #00E19B;
}

@media (max-width: 576px) {
  .floating-lang-widget {
    bottom: 20px !important;
    left: 16px !important;
    right: auto !important;
  }
  .floating-whatsapp {
    bottom: 20px !important;
    right: 16px !important;
    left: auto !important;
  }
  .floating-lang-btn {
    padding: 8px 13px;
    font-size: 0.82rem;
  }
  .whatsapp-pill-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-pill-btn svg {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }
}

/* Footer */
.site-footer {
  background: #040507;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--dc-mint);
}

/* ==========================================================================
   10. LANGUAGE SWITCHER & MULTILINGUAL (FR / EN / AR)
   ========================================================================== */
.lang-switch-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-switch-btn::after {
  display: none !important;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 225, 155, 0.4);
  color: #fff;
}

.lang-dropdown-menu {
  background: rgba(10, 14, 22, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8) !important;
  min-width: 170px !important;
  padding: 6px !important;
}

.lang-select-item {
  color: #94A3B8;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 8px 12px;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: inherit;
  display: flex;
  align-items: center;
}

.lang-select-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lang-select-item.active {
  background: rgba(0, 225, 155, 0.12);
  color: var(--dc-mint);
  font-weight: 700;
}

.lang-btn-mobile {
  color: #94A3B8;
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.15s ease;
}

.lang-btn-mobile.active {
  background: var(--dc-mint);
  color: #060709;
  font-weight: 700;
}

/* ==========================================================================
   11. RTL ARABIC MODE ENHANCEMENTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  text-align: right;
}

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-3,
html[dir="rtl"] .display-4,
html[dir="rtl"] .display-5 {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700;
  letter-spacing: normal !important;
}

html[dir="rtl"] .text-start {
  text-align: right !important;
}

html[dir="rtl"] .text-end {
  text-align: left !important;
}

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

html[dir="rtl"] .dropdown-chevron-icon {
  margin-right: 6px;
  margin-left: 0;
}


html[dir="rtl"] .floating-lang-widget {
  left: 28px !important;
  right: auto !important;
}

html[dir="rtl"] .floating-whatsapp {
  right: 28px !important;
  left: auto !important;
}

@media (max-width: 576px) {
  html[dir="rtl"] .floating-lang-widget {
    left: 16px !important;
    right: auto !important;
  }
  html[dir="rtl"] .floating-whatsapp {
    right: 16px !important;
    left: auto !important;
  }
}

html[dir="rtl"] .metric-num,
html[dir="rtl"] .sim-price-range,
html[dir="rtl"] .header-phone-pill {
  direction: ltr;
  display: inline-flex;
}

/* ==========================================================================
   12. BLOG & EDITORIAL SYSTEM (SEO & Conversion Focused)
   ========================================================================== */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 225, 155, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 225, 155, 0.12);
}

.blog-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0d14;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.05);
}

.blog-category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(6, 7, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[dir="rtl"] .blog-category-pill {
  left: auto;
  right: 14px;
}

.blog-featured-card {
  background: linear-gradient(135deg, rgba(16, 21, 30, 0.95) 0%, rgba(13, 16, 23, 0.98) 100%);
  border: 1px solid rgba(0, 225, 155, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 225, 155, 0.08);
}

.blog-article-hero {
  padding-top: 130px;
  padding-bottom: 50px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 225, 155, 0.08) 0%, transparent 65%), #060709;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #D1D5DB;
}

.blog-article-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 100px;
}

.blog-article-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dc-mint);
  margin-top: 1.8rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 100px;
}

.blog-article-content p {
  margin-bottom: 1.3rem;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.4rem;
}

html[dir="rtl"] .blog-article-content ul,
html[dir="rtl"] .blog-article-content ol {
  padding-left: 0;
  padding-right: 1.4rem;
}

.blog-article-content li {
  margin-bottom: 0.5rem;
}

.blog-toc-box {
  background: rgba(16, 21, 30, 0.7);
  border: 1px solid rgba(0, 225, 155, 0.25);
  border-radius: 16px;
  padding: 22px;
  margin: 2rem 0;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-list li {
  margin-bottom: 0.6rem;
}

.blog-toc-list a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-toc-list a:hover {
  color: var(--dc-mint);
  transform: translateX(4px);
}

html[dir="rtl"] .blog-toc-list a:hover {
  transform: translateX(-4px);
}

.blog-callout {
  background: rgba(0, 225, 155, 0.05);
  border-left: 4px solid var(--dc-mint);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 2rem 0;
}

html[dir="rtl"] .blog-callout {
  border-left: none;
  border-right: 4px solid var(--dc-mint);
  border-radius: 12px 0 0 12px;
}

.blog-callout-gold {
  background: rgba(255, 184, 0, 0.06);
  border-color: var(--dc-gold);
}

.blog-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
  background: rgba(13, 16, 23, 0.6);
}

.blog-price-table th {
  background: rgba(16, 21, 30, 0.95);
  color: #FFFFFF;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-price-table td {
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #D1D5DB;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-price-table tr:last-child td {
  border-bottom: none;
}

.blog-price-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.blog-author-card {
  background: var(--bg-card);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.blog-faq-card {
  background: rgba(16, 21, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 1rem;
}

.blog-faq-card h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}



/* --- Advanced Blog SEO & UX Additions --- */
.reading-progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--dc-mint), var(--dc-purple));
  z-index: 9999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

.blog-search-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.blog-search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 50px;
  padding: 10px 20px 10px 42px;
  width: 100%;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.blog-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--dc-mint);
  outline: none;
  box-shadow: 0 0 15px rgba(0, 225, 155, 0.25);
  color: #FFFFFF;
}

.blog-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dc-mint);
  pointer-events: none;
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--dc-mint);
  color: #0A0D14 !important;
  border-color: var(--dc-mint);
}

/* --- Portfolio Interactive Filter & Responsive Enhancements --- */
.portfolio-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--dc-mint);
  color: #0A0D14 !important;
  border-color: var(--dc-mint);
  box-shadow: 0 0 15px rgba(0, 225, 155, 0.25);
}

.portfolio-card-custom {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card-custom:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 225, 155, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-thumb-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card-custom:hover .portfolio-thumb {
  transform: scale(1.05);
}

/* RTL Support Polish for Portfolio & Badges */
[dir="rtl"] .portfolio-filter-btn,
[dir="rtl"] .portfolio-category-badge {
  font-family: 'Cairo', sans-serif;
}
