/* ================================================
   ALGERP WEBSITE - PREMIUM THEME WITH LIGHT/DARK MODE
   Modern SaaS Design - Professional & Trustworthy
   Version: 79.0 - Cache Purge
   ================================================ */

/* ================================================
   DARK THEME (Default)
   ================================================ */
:root,
[data-theme="dark"] {
  /* Couleurs Principales - BLEU */
  --primary-blue: #3B82F6;
  --blue-light: #60A5FA;
  --blue-dark: #2563EB;
  --blue-glow: rgba(59, 130, 246, 0.5);
  --blue-subtle: rgba(59, 130, 246, 0.1);
  
  /* Theme Colors */
  --bg-primary: #000000;
  --bg-secondary: #0A0A0F;
  --bg-tertiary: #12121A;
  --bg-card: rgba(18, 18, 26, 0.7);
  --bg-card-hover: rgba(25, 25, 35, 0.9);
  --bg-navbar: rgba(10, 10, 15, 0.85);
  --bg-navbar-scrolled: rgba(5, 5, 10, 0.95);
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-tertiary: #707080;
  --text-muted: #505060;
  
  /* Borders */
  --border-color: rgba(59, 130, 246, 0.15);
  --border-color-hover: rgba(59, 130, 246, 0.4);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--blue-glow);
  --shadow-glow-strong: 0 0 40px var(--blue-glow), 0 0 80px var(--blue-glow);
  
  /* Legacy support */
  --black: #000000;
  --dark-bg: #0F0F0F;
  --dark-card: rgba(20, 20, 20, 0.6);
  --dark-card-hover: rgba(30, 30, 30, 0.8);
  --gray-text: #A0A0A0;
  --white: #FFFFFF;
  --glow-blue: 0 0 20px var(--blue-glow);
  --glow-blue-strong: 0 0 40px var(--blue-glow), 0 0 80px var(--blue-glow);
}

/* ================================================
   LIGHT THEME
   ================================================ */
[data-theme="light"] {
  /* Couleurs Principales - BLEU (same) */
  --primary-blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-dark: #1D4ED8;
  --blue-glow: rgba(37, 99, 235, 0.3);
  --blue-subtle: rgba(37, 99, 235, 0.08);
  
  /* Theme Colors - Light */
  --bg-primary: #FAFBFC;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E8EDF3;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-navbar: rgba(255, 255, 255, 0.9);
  --bg-navbar-scrolled: rgba(255, 255, 255, 0.98);
  
  /* Text Colors - Light */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;
  
  /* Borders - Light */
  --border-color: rgba(37, 99, 235, 0.12);
  --border-color-hover: rgba(37, 99, 235, 0.3);
  
  /* Shadows - Light */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px var(--blue-glow);
  --shadow-glow-strong: 0 4px 30px var(--blue-glow);
  
  /* Legacy support - Light */
  --black: #0F172A;
  --dark-bg: #F1F5F9;
  --dark-card: rgba(255, 255, 255, 0.8);
  --dark-card-hover: rgba(255, 255, 255, 1);
  --gray-text: #64748B;
  --white: #FFFFFF;
  --glow-blue: 0 4px 20px var(--blue-glow);
  --glow-blue-strong: 0 4px 30px var(--blue-glow);
}

/* ================================================
   RESET & BASE
   ================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sora', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease, direction 0.3s ease;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================================
   THEME TOGGLE BUTTON
   ================================================ */

.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-toggle:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

.theme-toggle-icon {
  font-size: 12px;
  transition: all 0.3s ease;
  z-index: 1;
}

.theme-toggle-icon.sun {
  color: #FCD34D;
  opacity: 0.4;
}

.theme-toggle-icon.moon {
  color: var(--blue-light);
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.sun {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.moon {
  opacity: 0.4;
}

.theme-toggle-slider {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
  border-radius: 50%;
  left: 4px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .theme-toggle-slider {
  left: calc(100% - 24px);
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Smooth theme transitions for all elements */
.navbar,
.glass-card,
.stat-card,
.btn,
.section,
.mobile-menu,
input,
textarea,
select {
  transition: 
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    color 0.4s ease;
}

/* RTL base rules moved to comprehensive section below */

/* ================================================
   COMPREHENSIVE RTL (Arabic) SUPPORT
   ================================================ */

/* Global RTL - Keep content centered like French */
html[dir="rtl"] {
  direction: rtl;
}

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

/* Navbar RTL - Mirror layout */
html[dir="rtl"] .navbar-content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

/* Buttons RTL - Icon order */
html[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

/* Hero Section RTL - Keep centered */
html[dir="rtl"] .hero-content,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .hero-description {
  text-align: center;
}

html[dir="rtl"] .hero-badges,
html[dir="rtl"] .hero-actions {
  justify-content: center;
}

/* Section Headers - Keep centered */
html[dir="rtl"] .section-header,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle {
  text-align: center;
}

/* Cards RTL - Text right but card centered */
html[dir="rtl"] .glass-card {
  text-align: right;
}

html[dir="rtl"] .glass-card ul {
  padding: 0;
}

html[dir="rtl"] .glass-card li {
  flex-direction: row-reverse;
}

/* Grids - Keep normal flow, just RTL direction */
html[dir="rtl"] .grid-2,
html[dir="rtl"] .grid-3,
html[dir="rtl"] .grid-4 {
  direction: rtl;
}

/* Stats - Keep centered */
html[dir="rtl"] .stat-card,
html[dir="rtl"] .stats-grid {
  text-align: center;
}

/* Footer RTL */
html[dir="rtl"] footer {
  text-align: right;
}

html[dir="rtl"] footer ul {
  padding: 0;
}

/* Form Elements RTL */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

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

/* Testimonials RTL */
html[dir="rtl"] .testimonial-card,
html[dir="rtl"] .testimonial-content {
  text-align: right;
}

/* Marquee RTL - Keep LTR for animation */
html[dir="rtl"] .marquee-track {
  direction: ltr;
}

/* Mobile Menu RTL */
html[dir="rtl"] .mobile-menu {
  right: auto;
  left: 0;
  text-align: right;
}

/* Improved spacing for Arabic text */
html[dir="rtl"] * {
  letter-spacing: 0 !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  line-height: 1.5;
}

html[dir="rtl"] p {
  line-height: 1.8;
}

/* Background avec gradient subtil */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, var(--blue-subtle) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, var(--blue-subtle) 0%, transparent 50%),
    var(--bg-primary);
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s ease;
}

/* Subtle grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

[data-theme="light"] body::after {
  opacity: 0.15;
}

/* ================================================
   NAVIGATION
   ================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-navbar-scrolled);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 2rem;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: var(--glow-blue);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-links a.active {
  color: var(--primary-blue);
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  box-shadow: var(--shadow-glow);
  border-radius: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  filter: brightness(1.1);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--primary-blue);
  border: 2px solid var(--border-color-hover);
}

.btn-outline:hover {
  background: var(--blue-subtle);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

/* Light mode button adjustments */
[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

[data-theme="light"] .btn-outline {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-blue);
}

/* ================================================
   GLASS CARDS - Premium Design
   ================================================ */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Light mode card adjustments */
[data-theme="light"] .glass-card {
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Lighting Effects Background */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ================================================
   STAT CARDS
   ================================================ */

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="light"] .stat-card {
  box-shadow: var(--shadow-sm);
}

/* ================================================
   SECTIONS
   ================================================ */

.section {
  padding: 6rem 2rem;
  position: relative;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   GRID LAYOUTS
   ================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ================================================
   ADDITIONAL LIGHTING EFFECTS
   ================================================ */

/* Dot pattern background */
.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Input focus effects */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Link hover effects */
a {
  transition: all 0.3s ease;
}

/* Hover glow effect on buttons */
.btn:active {
  transform: scale(0.95);
}

/* Card pulse animation on hover */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.glass-card:hover::before {
  animation: pulse 2s ease-in-out infinite;
}

/* Selection color */
::selection {
  background: var(--primary-blue);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-blue);
  color: var(--white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-light);
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================================================
   SCROLLING MARQUEE BANNER
   ================================================ */

.marquee-section {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
  box-shadow: 0 0 10px var(--primary-blue);
  flex-shrink: 0;
}

.marquee-item:hover {
  color: var(--primary-blue);
}

/* Reverse direction marquee */
.marquee-track.reverse {
  animation-direction: reverse;
}

/* Light mode adjustments */
[data-theme="light"] .marquee-section {
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

/* ================================================
   STATS BANNER (Separator)
   ================================================ */

.stats-banner {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-banner-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-banner-item {
  text-align: center;
}

.stats-banner-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-banner-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-banner-grid {
    gap: 2rem;
  }
  
  .stats-banner-number {
    font-size: 2.5rem;
  }
  
  .stats-banner-label {
    font-size: 0.8rem;
  }
  
  .marquee-item {
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
  }
}

/* ================================================
   TESTIMONIALS ANIMATED SCROLL
   ================================================ */

.testimonials-scroll-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.testimonials-scroll-track {
  display: flex;
  gap: 2rem;
  animation: scroll-testimonials 20s linear infinite;
  width: fit-content;
  will-change: transform;
  padding: 1rem 0;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Custom scrollbar for webkit browsers */
.testimonials-scroll-track::-webkit-scrollbar {
  height: 8px;
}

.testimonials-scroll-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.testimonials-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 10px;
}

.testimonials-scroll-track::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Pause animation on hover */
.testimonials-scroll-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

/* ================================================
   FORMS
   ================================================ */

.contact-select option {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="light"] .contact-select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

/* Form inputs light mode */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-tertiary);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   ALGERIAN FLAG ANIMATED TEXT
   ================================================ */

.algerian-flag-text {
  background: linear-gradient(
    90deg,
    #006233 0%,      /* Green */
    #006233 20%,
    #FFFFFF 35%,     /* White */
    #FFFFFF 50%,
    #D21034 65%,     /* Red */
    #D21034 80%,
    #006233 100%     /* Back to Green for seamless loop */
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: algerian-flag-flow 4s ease-in-out infinite;
  font-weight: 900;
  text-shadow: 0 0 40px rgba(0, 98, 51, 0.3);
}

@keyframes algerian-flag-flow {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Alternative: Each letter animates separately (more dramatic) */
.algerian-flag-text-wave {
  display: inline-block;
}

.algerian-flag-text-wave span {
  display: inline-block;
  animation: flag-letter-color 3s ease-in-out infinite;
  font-weight: 900;
}

.algerian-flag-text-wave span:nth-child(1) { animation-delay: 0s; }
.algerian-flag-text-wave span:nth-child(2) { animation-delay: 0.1s; }
.algerian-flag-text-wave span:nth-child(3) { animation-delay: 0.2s; }
.algerian-flag-text-wave span:nth-child(4) { animation-delay: 0.3s; }
.algerian-flag-text-wave span:nth-child(5) { animation-delay: 0.4s; }
.algerian-flag-text-wave span:nth-child(6) { animation-delay: 0.5s; }
.algerian-flag-text-wave span:nth-child(7) { animation-delay: 0.6s; }
.algerian-flag-text-wave span:nth-child(8) { animation-delay: 0.7s; }
.algerian-flag-text-wave span:nth-child(9) { animation-delay: 0.8s; }
.algerian-flag-text-wave span:nth-child(10) { animation-delay: 0.9s; }
.algerian-flag-text-wave span:nth-child(11) { animation-delay: 1.0s; }

@keyframes flag-letter-color {
  0%, 100% {
    color: #006233; /* Green */
    text-shadow: 0 0 20px rgba(0, 98, 51, 0.5);
  }
  33% {
    color: #FFFFFF; /* White */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
  66% {
    color: #D21034; /* Red */
    text-shadow: 0 0 20px rgba(210, 16, 52, 0.5);
  }
}

/* Light mode adjustments for gradient text */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, var(--blue-dark), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode logo visibility */
[data-theme="light"] .logo img {
  filter: none;
}

/* Light mode text improvements */
[data-theme="light"] .hero-title {
  color: var(--text-primary);
}

[data-theme="light"] .section-title {
  color: var(--text-primary);
}

/* ================================================
   SECTIONS & GRIDS
   ================================================ */

.section {
  padding: 8rem 2rem;
  width: 100%;
  position: relative;
}

/* Inner content container for sections - centers content while background extends full */
.section > .section-header,
.section > .grid-2,
.section > .grid-3,
.section > .grid-4,
.section > div:not(.testimonials-scroll-container):not(.section-full-bg) {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width background sections */
.section-highlight {
  background: var(--blue-subtle);
}

[data-theme="light"] .section-highlight {
  background: rgba(37, 99, 235, 0.04);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-blue);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--blue-light);
  transform: scale(1.1);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-navbar-scrolled);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu.open {
  max-height: calc(100vh - 72px);
  opacity: 1;
  overflow-y: auto;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--blue-subtle);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  /* Fix padding-top pour éviter que le contenu soit caché sous la navbar */
  .hero {
    padding-top: 200px !important;
  }
  
  /* Fix pour toutes les sections (Nos Produits, Par Secteur, Tarifs, Téléchargements, Contact) */
  .section {
    padding-top: 200px !important;
  }
  
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  
  /* ================================================
     HYBRID APPROACH: Smart 2-column layout
     ================================================ */
  
  /* 2 COLUMNS for simple/compact content */
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  
  /* 1 COLUMN for rich content (default) */
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  
  /* EXCEPTION: Solutions grid stays in 1 column (too much content) */
  .grid-2.solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .solutions-grid .glass-card {
    padding: 2rem 1.5rem !important;
  }
  
  .solutions-grid .glass-card h3 {
    font-size: 1.25rem !important;
  }
  
  .solutions-grid .glass-card h4 {
    font-size: 0.9rem !important;
  }
  
  .solutions-grid .glass-card p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  .solutions-grid .glass-card ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem !important;
  }
  
  .solutions-grid .glass-card li {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  
  /* BUT: .grid-3 in 2 columns for better mobile UX (3x2 grid) */
  .grid-3 { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  /* EXCEPTION: Large content grids stay in 1 column */
  .grid-3.large-content-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .grid-3.large-content-grid .glass-card {
    padding: 2rem 1.5rem !important;
  }
  
  /* Compact .grid-3 cards */
  .grid-3 .glass-card {
    padding: 1.5rem 1rem !important;
  }
  
  .grid-3 .glass-card > div[style*="width: '70px'"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  .grid-3 .glass-card h3 {
    font-size: 1rem !important;
    margin: 0.75rem 0 0.5rem !important;
  }
  
  .grid-3 .glass-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  /* BUT: 2 COLUMNS for small feature items */
  .features-grid-compact {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  .feature-item-small {
    padding: 1rem;
    text-align: center;
  }
  
  .feature-item-small i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .feature-item-small h4 {
    font-size: 0.85rem;
    margin: 0;
  }
  
  .hero-actions { flex-direction: column; }
  
  /* Hide desktop navigation */
  .desktop-nav { display: none !important; }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle { display: block; }
  .mobile-menu { display: block; }
  
  /* Mobile navbar padding */
  .navbar { padding: 1rem; }
  
  /* Mobile sections padding */
  .section { padding: 4rem 1rem; }
  
  /* Hero mobile adjustments */
  .hero { padding: 6rem 1rem 4rem; }
  
  /* Button text adjustments for small screens */
  .btn-text { font-size: 0.85rem; }
  
  /* Compact cards for better density */
  .glass-card {
    padding: 1.25rem;
  }
  
  .glass-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .glass-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* ================================================
     FONCTIONNALITÉS PAGE - MOBILE
     ================================================ */
  
  /* Filter buttons mobile */
  .filter-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    min-width: auto;
  }
  
  /* Module cards mobile - KEEP 1 column for readability */
  .modules-grid {
    grid-template-columns: 1fr !important;
  }
  
  .module-card {
    padding: 1.25rem;
  }
  
  .module-card h3 {
    font-size: 1rem;
  }
  
  .module-card p {
    font-size: 0.85rem;
  }
  
  /* BUT: Module badges/icons can be 2 columns */
  .module-tags,
  .module-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Modal mobile */
  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 1rem;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-close {
    font-size: 1.75rem;
    padding: 0.5rem;
  }
  
  /* ================================================
     SOLUTIONS PAGE - MOBILE
     ================================================ */
  
  /* Solution cards mobile - KEEP 1 column for main cards */
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  
  .solution-card {
    padding: 1.5rem;
  }
  
  .solution-card h3 {
    font-size: 1.25rem;
  }
  
  .solution-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  /* BUT: Solution features list in 2 columns for better density */
  .solution-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .solution-features li {
    font-size: 0.75rem;
    padding: 0.3rem;
  }
  
  /* ================================================
     TARIFS PAGE - MOBILE
     ================================================ */
  
  /* Pricing cards mobile */
  .pricing-card {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .pricing-card h3 {
    font-size: 1.25rem;
  }
  
  .pricing-price {
    font-size: 2rem;
  }
  
  .pricing-period {
    font-size: 0.85rem;
  }
  
  .pricing-features li {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  
  /* Comparison table mobile - horizontal scroll */
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  
  .comparison-table {
    min-width: 600px;
    font-size: 0.75rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }
  
  /* Enterprise addon mobile */
  .enterprise-addon {
    padding: 1.5rem;
  }
  
  .enterprise-addon h3 {
    font-size: 1.25rem;
  }
  
  .enterprise-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* FAQ mobile */
  .faq-item {
    padding: 1rem;
  }
  
  .faq-item h4 {
    font-size: 1rem;
  }
  
  .faq-item p {
    font-size: 0.85rem;
  }
  
  /* ================================================
     TÉLÉCHARGEMENTS PAGE - MOBILE
     ================================================ */
  
  /* Download cards mobile */
  .download-card {
    padding: 1.5rem;
  }
  
  .download-card h3 {
    font-size: 1.1rem;
  }
  
  .download-icon {
    font-size: 2.5rem;
  }
  
  .download-card strong {
    font-size: 0.9rem;
  }
  
  .download-card p {
    font-size: 0.85rem;
  }
  
  .download-card h4 {
    font-size: 0.9rem;
  }
  
  .download-card li {
    font-size: 0.85rem;
  }
  
  /* Installation steps mobile */
  .install-step {
    padding: 1rem;
  }
  
  .install-step-number {
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
  }
  
  .install-step h4 {
    font-size: 1rem;
  }
  
  .install-step p {
    font-size: 0.85rem;
  }
  
  /* ================================================
     CONTACT PAGE - MOBILE
     ================================================ */
  
  /* Contact form mobile */
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper h3 {
    font-size: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  /* Contact info cards mobile */
  .contact-info-card {
    padding: 1.25rem;
  }
  
  .contact-info-card h4 {
    font-size: 1rem;
  }
  
  .contact-info-card p {
    font-size: 0.85rem;
  }
  
  .contact-icon {
    font-size: 1.75rem;
  }
  
  /* ================================================
     GENERAL MOBILE IMPROVEMENTS
     ================================================ */
  
  /* Cards spacing */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Reduce badge sizes */
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Improve button stacking */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Testimonials mobile - better spacing */
  .testimonial-card {
    min-width: 280px;
    padding: 1.25rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
  
  /* Stats mobile - better fit */
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Compact stats grid (500+ Entreprises, 2M+ Documents, etc.) - 2x2 grid */
  section .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  section .grid-4 .glass-card[style*="text-align: center"] {
    padding: 1.5rem 1rem !important;
  }
  
  section .grid-4 .glass-card i.fas {
    font-size: 2.5rem !important;
  }
  
  section .grid-4 .glass-card > div[style*="fontSize: '3rem'"] {
    font-size: 2rem !important;
  }
  
  section .grid-4 .glass-card > div[style*="fontSize: '1.2rem'"] {
    font-size: 0.9rem !important;
  }
  
  /* Features grid mobile */
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .feature-card p {
    font-size: 0.85rem;
  }
  
  /* ================================================
     SMART 2-COLUMN EXCEPTIONS FOR SMALL ITEMS
     ================================================ */
  
  /* Small compact items benefit from 2 columns */
  .badges-grid,
  .certifications-grid,
  .partners-logos,
  .small-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  
  /* Compact feature items style */
  .compact-feature {
    text-align: center;
    padding: 1rem;
  }
  
  .compact-feature i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .compact-feature h4 {
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-section p,
  .footer-section li {
    font-size: 0.85rem;
  }
  
  /* CTA section mobile */
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-section p {
    font-size: 0.9rem;
  }
}

/* ================================================
   BACK TO TOP BUTTON
   ================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-dark) 100%);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================================================
   SECTION DIVIDERS (Mobile Enhancement)
   ================================================ */

.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

.section:first-child::before {
  display: none;
}


/* ================================================
   EXTRA SMALL MOBILE (< 375px)
   ================================================ */

@media (max-width: 375px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .btn { font-size: 0.85rem; padding: 0.75rem 1rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .modal-content { padding: 1rem; }
  .pricing-price { font-size: 1.75rem; }
  
  /* Adjust back to top button for small screens */
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.1rem;
  }
}

/* ================================================
   RTL MOBILE RESPONSIVENESS (Arabic)
   ================================================ */

@media (max-width: 768px) {
  /* RTL Mobile Menu */
  html[dir="rtl"] .mobile-menu {
    left: 0;
    right: auto;
    text-align: right;
  }
  
  html[dir="rtl"] .mobile-menu-toggle {
    margin-left: 0;
    margin-right: auto;
  }
  
  /* RTL Navbar Mobile */
  html[dir="rtl"] .navbar-content {
    flex-direction: row-reverse;
  }
  
  html[dir="rtl"] .logo {
    order: 2;
  }
  
  /* RTL Hero Mobile - Keep centered */
  html[dir="rtl"] .hero-content,
  html[dir="rtl"] .hero-title,
  html[dir="rtl"] .hero-subtitle {
    text-align: center;
  }
  
  html[dir="rtl"] .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  html[dir="rtl"] .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* RTL Sections Mobile - Keep centered */
  html[dir="rtl"] .section-header,
  html[dir="rtl"] .section-title,
  html[dir="rtl"] .section-subtitle {
    text-align: center;
  }
  
  /* RTL Cards Mobile */
  html[dir="rtl"] .glass-card {
    text-align: right;
  }
  
  html[dir="rtl"] .glass-card li {
    flex-direction: row-reverse;
    text-align: right;
  }
  
  /* RTL Stats Banner Mobile */
  html[dir="rtl"] .stats-banner-grid {
    direction: rtl;
  }
  
  html[dir="rtl"] .stats-banner-item {
    text-align: center;
  }
  
  /* RTL Footer Mobile - Center on mobile */
  html[dir="rtl"] footer {
    text-align: center;
  }
  
  html[dir="rtl"] .footer-content {
    text-align: center;
  }
  
  html[dir="rtl"] .footer-section {
    text-align: center;
  }
  
  /* RTL Testimonials Mobile */
  html[dir="rtl"] .testimonial-card {
    text-align: right;
  }
  
  /* RTL Pricing Cards Mobile */
  html[dir="rtl"] .pricing-card,
  html[dir="rtl"] .glass-card {
    text-align: right;
  }
  
  /* RTL Download Cards Mobile */
  html[dir="rtl"] .download-card {
    text-align: right;
  }
  
  /* RTL Contact Form Mobile */
  html[dir="rtl"] .contact-form-wrapper {
    text-align: right;
  }
  
  html[dir="rtl"] input,
  html[dir="rtl"] textarea,
  html[dir="rtl"] select {
    text-align: right;
  }
  
  /* RTL Buttons Mobile */
  html[dir="rtl"] .btn {
    flex-direction: row-reverse;
  }
  
  /* RTL Back to Top - Left side for RTL */
  html[dir="rtl"] .back-to-top {
    right: auto;
    left: 1rem;
  }
  
  /* RTL Comparison Section Mobile */
  html[dir="rtl"] .comparison-section {
    direction: rtl;
  }
  
  /* RTL Solutions Grid Mobile */
  html[dir="rtl"] .solutions-grid {
    direction: rtl;
  }
  
  /* RTL Mobile Nav Links */
  html[dir="rtl"] .mobile-nav-links li {
    text-align: right;
  }
  
  html[dir="rtl"] .mobile-nav-links li a {
    justify-content: flex-end;
  }
}

/* RTL Extra Small Mobile */
@media (max-width: 375px) {
  html[dir="rtl"] .hero-title {
    font-size: 1.75rem;
  }
  
  html[dir="rtl"] .section-title {
    font-size: 1.5rem;
  }
  
  html[dir="rtl"] .btn {
    font-size: 0.8rem;
    padding: 0.7rem 0.9rem;
  }
}

/* ================================================
   COMPREHENSIVE MOBILE FIXES FOR ALL SECTIONS
   ================================================ */

@media (max-width: 768px) {
  /* ============ ACCUEIL PAGE ============ */
  
  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 120px 1rem 3rem !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    padding: 0 0.5rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  /* Stats Banner Mobile */
  .stats-banner {
    padding: 1.5rem 0.5rem;
  }
  
  .stats-banner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  
  .stats-banner-number {
    font-size: 2rem !important;
  }
  
  .stats-banner-label {
    font-size: 0.7rem !important;
  }
  
  /* Marquee Mobile */
  .marquee-section {
    padding: 0.75rem 0;
  }
  
  .marquee-item {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  /* Testimonials Mobile */
  .testimonials-scroll-container {
    padding: 1rem 0;
  }
  
  .testimonial-card {
    min-width: 280px !important;
    max-width: 280px !important;
    padding: 1.25rem !important;
  }
  
  .testimonial-card p {
    font-size: 0.85rem !important;
  }
  
  /* Features Grid Mobile */
  .grid-3 .glass-card {
    padding: 1.5rem 1rem !important;
  }
  
  .grid-3 .glass-card h3 {
    font-size: 1.1rem !important;
  }
  
  .grid-3 .glass-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  /* Comparison Scoreboard Mobile */
  .section [style*="gridTemplateColumns: '1fr auto 1fr'"],
  .section [style*="gridTemplateColumns: '1fr 120px 1fr'"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }
  
  /* ============ NOS PRODUITS PAGE ============ */
  
  .solutions-grid {
    grid-template-columns: 1fr !important;
  }
  
  .solutions-grid .glass-card {
    padding: 1.5rem !important;
  }
  
  /* ============ PAR SECTEUR PAGE ============ */
  
  .par-secteur-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* ============ TARIFS PAGE ============ */
  
  /* Pricing Toggle Mobile */
  .pricing-toggle-wrapper {
    flex-direction: column !important;
    gap: 0.5rem;
  }
  
  /* Pricing Cards Mobile */
  .pricing-cards-grid {
    grid-template-columns: 1fr !important;
  }
  
  .glass-card[style*="transform: scale"] {
    transform: none !important;
  }
  
  /* Pricing Mode Info Box */
  .pricing-mode-info {
    padding: 1rem !important;
    margin: 1rem 0 !important;
  }
  
  /* ============ TELECHARGEMENTS PAGE ============ */
  
  .download-cards-grid {
    grid-template-columns: 1fr !important;
  }
  
  .download-card {
    padding: 1.5rem !important;
  }
  
  .download-card h3 {
    font-size: 1.1rem !important;
  }
  
  /* ============ CONTACT PAGE ============ */
  
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }
  
  .contact-form-wrapper input,
  .contact-form-wrapper textarea,
  .contact-form-wrapper select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* ============ FOOTER ============ */
  
  footer {
    padding: 2rem 1rem !important;
  }
  
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ================================================
   COMPARISON SCOREBOARD MOBILE SPECIFIC
   ================================================ */

@media (max-width: 600px) {
  /* Scoreboard Header */
  .section [style*="gridTemplateColumns"] > div[style*="fontSize: '2.5rem'"] {
    font-size: 1.5rem !important;
  }
  
  /* VS Circle */
  .section [style*="width: '80px'"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Score Numbers */
  .section [style*="fontSize: '5rem'"] {
    font-size: 3rem !important;
  }
  
  /* Match Rows - Stack vertically */
  .section [style*="gridTemplateColumns: '1fr 120px 1fr'"] {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    padding: 0.75rem !important;
  }
  
  .section [style*="gridTemplateColumns: '1fr 120px 1fr'"] > div {
    justify-content: center !important;
    padding: 0.5rem !important;
    flex-direction: column !important;
  }
  
  /* Winner Banner */
  .section [style*="background: 'linear-gradient(135deg, #10B981"] {
    padding: 1rem !important;
  }
  
  .section [style*="background: 'linear-gradient(135deg, #10B981"] span {
    font-size: 1rem !important;
  }
  
  .section [style*="background: 'linear-gradient(135deg, #10B981"] i {
    font-size: 1.25rem !important;
  }
}

