/* ============================================================
   JUDDEV CORPORATION - Global Styles
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   GOOGLE TRANSLATE — Masquer toute l'interface par défaut
   On utilise nos propres boutons FR/EN à la place
   ============================================================ */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget-icon,
.goog-logo-link,
.goog-logo-link img,
#goog-gt-tt,
.goog-te-menu-frame {
  display: none !important;
}
body {
  top: 0 !important;
}
.goog-te-gadget {
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  font-size: 0 !important;
}
.goog-te-gadget span {
  display: none !important;
}
/* Désactiver le surlignage Google sur le texte traduit */
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
font[style*='vertical-align'] {
  vertical-align: inherit !important;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0d1526;
  --bg-card: #111827;
  --bg-card-hover: #141e2f;
  --accent-blue: #0066ff;
  --accent-blue-hover: #0052cc;
  --accent-light: #1a7aff;
  --accent-cyan: #00d4ff;
  --accent-glow: rgba(0, 102, 255, 0.3);
  --gradient-primary: linear-gradient(135deg, #0066ff, #00d4ff);
  --gradient-dark: linear-gradient(135deg, #0a0e1a, #0d1526);
  --gradient-card: linear-gradient(145deg, #111827, #0d1526);
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: rgba(0, 102, 255, 0.2);
  --border-glow: rgba(0, 102, 255, 0.5);

  /* Typography */
  --font-primary: 'Raleway', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-blue: 0 0 30px rgba(0, 102, 255, 0.3);
  --shadow-blue-lg: 0 0 60px rgba(0, 102, 255, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navbar */
  --navbar-height: 80px;
}

/* ============================================================
   RESET & NORMALIZE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.loader-logo span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.25rem;
  text-align: center;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(0, 102, 255, 0.15);
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-cyan);
  animation: loaderSpin 1s linear infinite;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 0 2rem;
}

#navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* Light mode: slightly smaller logo */
html.light-mode .navbar-logo-img {
  width: 68px;
  height: 68px;
}

.navbar-logo:hover {
  opacity: 0.85;
}

.navbar-logo span {
  font-weight: 300;
  font-size: 0.6em;
  letter-spacing: 0.15em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: rgba(0, 102, 255, 0.1);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.navbar-cta {
  flex-shrink: 0;
}

.btn-devis-nav {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white !important;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.btn-devis-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.navbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.navbar-mobile {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

.navbar-mobile.open {
  display: flex;
}

.navbar-mobile a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.navbar-mobile a:hover,
.navbar-mobile a.active {
  color: var(--text-primary);
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--border-color);
}

.navbar-mobile .btn-devis-nav {
  text-align: center;
  margin-top: 0.5rem;
}

.navbar-mobile {
  overflow-y: auto;
  max-height: calc(100vh - var(--navbar-height));
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.75rem 0 0.5rem;
  opacity: 0.5;
}

.mobile-nav-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mobile-nav-info a,
.mobile-nav-info .mobile-nav-loc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.mobile-nav-info a:hover {
  color: var(--accent-primary);
  background: rgba(0, 102, 255, 0.07);
  border-color: var(--border-color);
}

.mobile-nav-info .mobile-nav-loc {
  cursor: default;
  opacity: 0.8;
}

.mobile-nav-info i {
  width: 14px;
  text-align: center;
  color: var(--accent-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.mobile-nav-social {
  display: flex;
  gap: 0.6rem;
  padding: 0.25rem 1rem 0.5rem;
}

.navbar-mobile .mobile-nav-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0;
  flex-shrink: 0;
}

.navbar-mobile .mobile-nav-social a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

html.light-mode .mobile-nav-info a,
html.light-mode .mobile-nav-info .mobile-nav-loc {
  color: #475569;
}

html.light-mode .mobile-nav-info a:hover {
  color: #0052cc;
  background: rgba(0, 82, 204, 0.07);
  border-color: rgba(0, 82, 204, 0.2);
}

html.light-mode .navbar-mobile .mobile-nav-social a {
  background: rgba(0, 82, 204, 0.08);
  border-color: rgba(0, 82, 204, 0.2);
  color: #475569;
}

html.light-mode .navbar-mobile .mobile-nav-social a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.mobile-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-spring);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.55);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.btn-blue-outline {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent-blue);
}

.btn-blue-outline:hover {
  background: rgba(0, 102, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: var(--spacing-4xl) 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-cyan);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  padding-top: var(--navbar-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 102, 255, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 102, 255, 0.3);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 212, 255, 0.2);
  bottom: -50px;
  left: 10%;
  animation-delay: 3s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(26, 122, 255, 0.25);
  top: 30%;
  left: 40%;
  animation-delay: 5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-cyan);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 1s both;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 1s ease 0.5s both;
  position: relative;
}

.hero-device-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
}

.hero-device-wrap::before {
  content: '';
  position: absolute;
  inset: 5% 10%;
  background: radial-gradient(ellipse at center, rgba(0, 50, 200, 0.7) 0%, rgba(0, 102, 255, 0.35) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-device-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(0, 60, 200, 0.8)) drop-shadow(0 20px 40px rgba(0, 102, 255, 0.5));
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-mockup-screen {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 102, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.mockup-topbar {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28ca41; }

.mockup-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  margin: 0 0.5rem;
}

.mockup-content {
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-header-bar {
  height: 8px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 60%;
}

.mockup-text-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

.mockup-line:nth-child(1) { width: 90%; }
.mockup-line:nth-child(2) { width: 75%; }
.mockup-line:nth-child(3) { width: 85%; }

.mockup-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mockup-card-mini {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.mockup-card-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.mockup-card-mini-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 3px;
}

.mockup-card-mini-line:last-child { width: 60%; }

.hero-floating-badge {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-floating-badge-1 {
  bottom: -20px;
  left: -20px;
  animation: floatBadge 4s ease-in-out infinite;
}

.hero-floating-badge-2 {
  top: 10px;
  right: -20px;
  animation: floatBadge 4s ease-in-out infinite 2s;
}

.badge-icon {
  font-size: 1.25rem;
}

/* ============================================================
   TECH TICKER
   ============================================================ */
.tech-ticker-section {
  padding: 5rem 0;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tech-ticker-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tech-ticker-header h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
}

.tech-ticker-header span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ticker-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 2;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.ticker-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.ticker-track-right {
  animation: tickerRight 30s linear infinite;
}

.ticker-track-left {
  animation: tickerLeft 30s linear infinite;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.tech-pill:hover {
  border-color: var(--accent-blue);
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.25);
  transform: translateY(-2px);
}

.tech-pill .tech-icon {
  font-size: 1.25rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
}

/* Google Translate injects <font> elements at any depth inside grids.
   display:contents makes them layout-transparent so the real card <a>/<div>
   stays the grid/flex item and keeps its 1fr column width. */
.grid-2 font, .grid-3 font, .grid-4 font,
.service-card font, .realisation-card font, .blog-card font {
  display: contents;
}

/* Service Cards
   <a class="service-card"> stays a full-height flex item even when GT wraps it in <font>
   doesn't break the flex layout — the inner .service-card-body holds flex. */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  cursor: pointer;
  height: 100%;
  box-sizing: border-box;
  width: 100%;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.15);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  transition: all var(--transition-base);
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
  transform: scale(1.05);
}

.service-card-icon i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--accent-cyan);
  font-weight: 500;
  width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  overflow: hidden;
}

.service-card > div {
  width: 100%;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: gap var(--transition-base);
  margin-top: auto;
  width: fit-content;
  flex-shrink: 0;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

.service-card:hover .service-card-link {
  gap: 0.75rem;
}

.service-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin: -2rem -2rem 0.5rem;
  background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(0,212,255,0.08));
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.6rem;
  overflow: hidden;
}

.service-card-tags span {
  padding: 0.2rem 0.6rem;
  background: rgba(0,102,255,0.08);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--accent-light);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card .category-tag {
  margin-bottom: 0;
  max-width: calc(100% - 84px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

/* Portfolio/Realisation Cards
   display:flex flex-direction:column lets action buttons (Visiter/YouTube)
   appear below the image instead of being hidden under the absolute img layer. */
.realisation-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.realisation-card:hover {
  border-color: rgba(0, 102, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.25);
  transform: translateY(-6px);
}

/* Image container — carries the aspect-ratio and is the positioning context
   for the hover overlay (.realisation-card-body). */
.realisation-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}

.realisation-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.realisation-card:hover .realisation-card-img img {
  transform: scale(1.1);
}

.realisation-card-overlay {
  display: none;
}

/* Info overlay — positioned inside .realisation-card-img so it only covers the image,
   never the action buttons that live below in the flex column. */
.realisation-card-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.realisation-card:hover .realisation-card-body {
  opacity: 1;
  transform: translateY(0);
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 102, 255, 0.25);
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.realisation-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.realisation-card-desc {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog Cards */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blog-card-category {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card-date {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
}

.blog-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color var(--transition-base);
}

.blog-card:hover .blog-card-title {
  color: var(--accent-light);
}

.blog-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.blog-card-link {
  margin-left: auto;
  color: var(--accent-light);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: gap var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ============================================================
   HERO PAGE (inner pages)
   ============================================================ */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
  background: var(--bg-primary);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.92), rgba(13, 21, 38, 0.85));
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb-sep {
  color: var(--text-dim);
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

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

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

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 1rem;
}

.footer-logo span {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.footer-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '›';
  color: var(--accent-blue);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--accent-blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--accent-light);
}

/* ============================================================
   DEVIS MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 102, 255, 0.2);
  animation: scaleIn 0.3s ease;
  transform-origin: center;
}

.modal.open .modal-box {
  animation: scaleIn 0.3s ease forwards;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff5050;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.modal-submit {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.4);
}

/* ============================================================
   SECTION SPECIFIC STYLES
   ============================================================ */

/* Partners Section */
.partners-section {
  background: var(--bg-secondary);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.partner-logo {
  width: 220px;
  height: 130px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: partnerReveal 0.6s ease forwards;
  position: relative;
}

.partner-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  filter: blur(12px);
  transform: scale(0.8);
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }
.partner-logo:nth-child(5) { animation-delay: 0.5s; }
.partner-logo:nth-child(6) { animation-delay: 0.6s; }

@keyframes partnerReveal {
  to { opacity: 1; transform: translateY(0); }
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.3) opacity(0.7);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.partner-logo:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.08);
}

.partner-logo:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.25), inset 0 0 20px rgba(0, 102, 255, 0.05);
  transform: translateY(-6px) scale(1.04);
}

.partner-logo:hover::after {
  opacity: 0.15;
}

/* Info Cards */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all var(--transition-base);
}

.info-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.1);
}

.info-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.info-card:hover .info-card-icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
}

.info-card-icon i {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-card-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Value Cards */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.15);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition-base);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
}

.value-icon i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.value-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Team Cards */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.25);
}

.team-card-inner {
  position: relative;
  z-index: 1;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(0, 102, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.3);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: var(--font-size-sm);
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.team-tag {
  padding: 0.2rem 0.65rem;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.team-social-link:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%);
  border-top: 1px solid rgba(0, 102, 255, 0.2);
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FILTER DROPDOWN WRAPPER
   ============================================================ */
.filter-dropdown-wrapper {
  margin-bottom: 2.5rem;
  position: relative;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: left;
}

.filter-toggle-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-light);
}

.filter-toggle-btn .filter-active-label {
  display: none;
  margin-left: 0.25rem;
  padding: 0.1rem 0.6rem;
  background: rgba(0, 102, 255, 0.15);
  color: var(--accent-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.filter-toggle-btn.has-active .filter-active-label {
  display: inline;
}

.filter-toggle-chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.filter-toggle-btn[aria-expanded="true"] .filter-toggle-chevron {
  transform: rotate(180deg);
}

.filter-panel {
  display: none;
  margin-top: 0.5rem;
  animation: filterPanelIn 0.2s ease;
}

.filter-panel.open {
  display: block;
}

@keyframes filterPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* When inside a dropdown wrapper, the inner .filter-bar loses its bottom margin */
.filter-dropdown-wrapper .filter-bar {
  margin-bottom: 0;
}

/* Filter Buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-light);
}

/* ============================================================
   FILTER BAR (realisations page)
   ============================================================ */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.filter-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  white-space: nowrap;
  min-width: 100px;
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Keep legacy class name for backward compat */
.filter-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.filter-dropdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-select {
  padding: 0.72rem 2.4rem 0.72rem 1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.filter-select:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  background: var(--bg-card);
}

.filter-select:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: var(--bg-card);
}

.filter-count-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  align-self: flex-end;
  padding-bottom: 0.8rem;
  white-space: nowrap;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.85rem;
  height: fit-content;
  align-self: flex-end;
  margin-bottom: 0.15rem;
}

.filter-reset-btn {
  padding: 0.72rem 1.1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #f87171;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-end;
  white-space: nowrap;
}

.filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: translateY(-1px);
}

/* Light mode filter overrides */
html.light-mode .filter-toggle-btn {
  background: #ffffff;
  border-color: rgba(0, 82, 204, 0.2);
  color: #1e293b;
}
html.light-mode .filter-toggle-btn:hover {
  border-color: #0052cc;
  color: #0052cc;
}

html.light-mode .filter-bar {
  background: #ffffff;
  border-color: rgba(0, 82, 204, 0.18);
  box-shadow: 0 2px 12px rgba(0, 82, 204, 0.07);
}

html.light-mode .filter-bar-label {
  color: #0052cc;
}

html.light-mode .filter-btn {
  background: #f0f4ff;
  border-color: rgba(0, 82, 204, 0.2);
  color: #334155;
}

html.light-mode .filter-btn:hover,
html.light-mode .filter-btn.active {
  background: rgba(0, 82, 204, 0.12);
  border-color: #0052cc;
  color: #0052cc;
}

html.light-mode .filter-count-badge {
  color: #0052cc;
  background: rgba(0, 82, 204, 0.08);
  border-color: rgba(0, 82, 204, 0.2);
}

html.light-mode .filter-reset-btn {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

html.light-mode .filter-reset-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

@media (max-width: 600px) {
  .filter-bar {
    padding: 1rem;
  }
  .filter-bar-label {
    min-width: unset;
    width: 100%;
  }
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 0;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-light);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--accent-light);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.process-step-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tech Stack Pills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--accent-light);
  font-weight: 500;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.feature-item i {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-base);
  margin-bottom: 2rem;
}

.back-btn:hover {
  color: var(--accent-light);
  gap: 0.75rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
}

/* Highlight Cards */
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-base);
}

.highlight-card:hover {
  border-color: rgba(0, 102, 255, 0.35);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ============================================================
   BLOG CAROUSEL
   ============================================================ */
.carousel {
  position: relative;
  overflow: hidden;
  height: 70vh;
  min-height: 450px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 4rem;
  z-index: 2;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 700px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.4);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 3;
  font-size: 1.25rem;
}

.carousel-nav:hover {
  background: rgba(0, 102, 255, 0.4);
  border-color: var(--accent-blue);
}

.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-dot.active {
  background: var(--accent-blue);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-map {
  width: 100%;
  height: 250px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  text-align: center;
  color: var(--text-dim);
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.social-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.social-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.15);
}

.social-link-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  margin: 0 auto 1rem;
  transition: all var(--transition-base);
}

.social-link-icon i {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-link-card:hover .social-link-icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
  transform: scale(1.1);
}

.social-link-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.social-link-handle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================================
   FORMATION CARDS
   ============================================================ */
.formation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.formation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.formation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.15);
}

.formation-card:hover::before {
  transform: scaleX(1);
}

.formation-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-base);
}

.formation-card:hover .formation-icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
}

.formation-icon i {
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.formation-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.formation-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.formation-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.badge-duration {
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-light);
}

.badge-level {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
}

.formation-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.formation-program {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.formation-program-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.formation-program-item::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.formation-price {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.formation-price span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-dim);
}

/* ============================================================
   PAGINATION BAR (services homepage + blog)
   ============================================================ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.page-btn:hover:not(:disabled) {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.4);
  color: #60a5fa;
  transform: translateY(-1px);
}
.page-btn.active {
  background: linear-gradient(135deg, #0052cc, #0099cc);
  border-color: #0066ff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
html.light-mode .page-btn {
  background: #ffffff;
  border-color: rgba(0, 82, 204, 0.18);
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html.light-mode .page-btn:hover:not(:disabled) {
  background: rgba(0, 82, 204, 0.08);
  border-color: rgba(0, 82, 204, 0.35);
  color: #0052cc;
}
html.light-mode .page-btn.active {
  background: linear-gradient(135deg, #0052cc, #0099cc);
  color: #fff;
}

/* ============================================================
   PDF EMBED (article detail — PDF source)
   ============================================================ */
.pdf-embed-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pdf-embed-frame {
  width: 100%;
  min-height: 80vh;
  border: none;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  display: block;
}
.pdf-embed-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.article-content h2 {
  font-size: var(--font-size-2xl);
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: var(--font-size-xl);
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

.article-content p {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.article-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content ul li {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.article-content h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.article-content code {
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: var(--accent-cyan);
}

.article-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
}

.article-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content ol li {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.article-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--accent-cyan);
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content iframe,
.article-content embed,
.article-content object,
.article-content table {
  max-width: 100%;
}

.article-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content td,
.article-content th {
  border: 1px solid var(--border-color);
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.article-content > *:first-child {
  margin-top: 0;
}

.pdf-article-frame {
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
}

.pdf-embed-viewer {
  display: block;
  padding: 0;
}

.pdf-embed-viewer.open {
  display: block;
}

.pdf-embed-viewer iframe {
  width: 100%;
  height: min(88vh, 1200px);
  min-height: 42rem;
  border: none;
  background: #fff;
}

.pdf-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.sidebar-widget-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.recent-article-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all var(--transition-base);
}

.recent-article-item:last-child {
  border-bottom: none;
}

.recent-article-item:hover .recent-article-title {
  color: var(--accent-light);
}

.recent-article-thumb {
  width: 60px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.recent-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-article-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color var(--transition-base);
}

.recent-article-date {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   DETAIL PROJECT
   ============================================================ */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 2rem);
}

.project-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.project-info-header {
  padding: 1.5rem;
  background: var(--gradient-primary);
}

.project-info-header h3 {
  color: white;
  font-size: var(--font-size-lg);
}

.project-info-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.project-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-info-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-info-value {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* ============================================================
   REALISATION DETAIL CAROUSEL
   ============================================================ */
.rcarousel-shell {
  position: relative;
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  padding: clamp(0.7rem, 2vw, 1.25rem);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 212, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 92%, rgba(0, 102, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl), 0 24px 90px rgba(0, 102, 255, 0.16);
}

.rcarousel {
  position: relative;
  min-height: clamp(420px, 58vw, 720px);
  border-radius: clamp(1rem, 2.5vw, 1.6rem);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(4, 9, 22, 0.96), rgba(10, 22, 45, 0.92));
  isolation: isolate;
}

.rcarousel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
  pointer-events: none;
  z-index: -1;
}

.rcarousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(2rem) scale(0.985);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  pointer-events: none;
}

.rcarousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.device-frame {
  position: relative;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.42));
}

.device-frame.is-desktop {
  width: min(100%, 1040px);
}

.device-frame.is-mobile {
  width: min(74vw, 380px);
}

.device-screen {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050914;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.device-frame.is-desktop .device-screen {
  aspect-ratio: 16 / 9;
  border-radius: 0 0 1rem 1rem;
}

.device-frame.is-mobile .device-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 2.2rem;
  border: 10px solid rgba(8, 13, 27, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.device-screen img,
.rlightbox-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050914;
}

.browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(180deg, #17233b, #101827);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 0;
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c840; }

.browser-bar strong {
  margin-left: auto;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #050914;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}

.device-badge {
  position: absolute;
  top: clamp(0.7rem, 2vw, 1rem);
  left: clamp(0.7rem, 2vw, 1rem);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.78);
  border: 1px solid rgba(0, 212, 255, 0.28);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.zoom-cue {
  position: absolute;
  right: clamp(0.7rem, 2vw, 1rem);
  bottom: clamp(0.7rem, 2vw, 1rem);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.78);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.device-frame:hover .zoom-cue,
.device-frame:focus-visible .zoom-cue {
  opacity: 1;
  transform: translateY(0);
}

.rcarousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 8, 23, 0.68);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 10;
  backdrop-filter: blur(14px);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.rcarousel-arrow:hover {
  background: rgba(0,102,255,0.78);
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-50%) scale(1.05);
}

.rcarousel-prev { left: clamp(0.7rem, 2vw, 1.5rem); }
.rcarousel-next { right: clamp(0.7rem, 2vw, 1.5rem); }

.rcarousel-dots {
  position: absolute;
  bottom: clamp(0.85rem, 2vw, 1.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 8, 23, 0.58);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
}

.rcarousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.36);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}

.rcarousel-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--gradient-primary);
  transform: none;
}

.rlightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rlightbox.open {
  opacity: 1;
  visibility: visible;
}

.rlightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 10%, rgba(0, 102, 255, 0.24), transparent 32%),
    rgba(1, 6, 18, 0.92);
  backdrop-filter: blur(18px);
}

.rlightbox-panel {
  position: relative;
  width: min(96vw, 1280px);
  height: min(92vh, 860px);
  display: grid;
  place-items: center;
  animation: lightboxIn 0.28s ease both;
}

.rlightbox-panel.is-mobile {
  width: min(96vw, 560px);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rlightbox-frame {
  max-width: 100%;
  max-height: 82vh;
  margin: 0;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.5));
}

.rlightbox-frame.is-desktop {
  width: min(100%, 1180px);
}

.rlightbox-frame.is-desktop img {
  aspect-ratio: 16 / 9;
  border-radius: 0 0 1rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 0;
}

.rlightbox-frame.is-mobile {
  width: min(72vw, 390px);
  position: relative;
}

.rlightbox-frame.is-mobile img {
  aspect-ratio: 9 / 19.5;
  border: 12px solid #060b17;
  border-radius: 2.4rem;
}

.rlightbox-close,
.rlightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: white;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.rlightbox-close {
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.rlightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.rlightbox-prev { left: 0; }
.rlightbox-next { right: 0; }

.rlightbox-topline {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  z-index: 3;
}

.rlightbox-topline span,
.rlightbox-topline strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
}

.rlightbox-dots {
  position: absolute;
  bottom: 0;
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
}

.rlightbox-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.38);
  cursor: pointer;
}

.rlightbox-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: var(--gradient-primary);
}

@media (max-width: 768px) {
  .rcarousel { min-height: clamp(420px, 112vw, 620px); }
  .rcarousel-slide { padding: 1rem 0.65rem 3.8rem; }
  .device-frame.is-desktop { width: 100%; }
  .device-frame.is-mobile { width: min(78vw, 330px); }
  .rcarousel-arrow { width: 42px; height: 42px; }
  .zoom-cue { opacity: 1; transform: none; }
  .rlightbox-nav { width: 44px; height: 44px; }
  .rlightbox-prev { left: 0.25rem; }
  .rlightbox-next { right: 0.25rem; }
  .rlightbox-topline { top: 0.25rem; left: 0.25rem; }
  .rlightbox-close { top: 0.25rem; right: 0.25rem; }
}

/* ============================================================
   SCROLL ANIMATIONS (controlled by JS IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.show {
  transform: translateX(0);
}

.notification.success { border-left: 4px solid #00c77a; }
.notification.error { border-left: 4px solid #ff5050; }

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-title {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.notification-msg {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

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

/* Large Desktop */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --navbar-height: 70px; }

  .navbar-links { display: none; }
  .navbar-hamburger { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual { display: none; }

  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

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

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }

  .social-links-grid { grid-template-columns: repeat(2, 1fr); }

  .carousel-content { padding: 2rem; }
  .carousel-title { font-size: 1.75rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --spacing-4xl: 4rem; }

  .container { padding: 0 1rem; }
  .container-wide { padding: 0 1rem; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 1.5rem; }

  .process-steps { grid-template-columns: 1fr; }

  .social-links-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .modal-box { padding: 1.75rem; }

  .carousel { height: 55vh; }
  .carousel-content { padding: 1.5rem; }
  .carousel-nav { display: none; }

  .image-gallery { grid-template-columns: 1fr; }
  .gallery-main { grid-column: auto; }
}

/* Prevent horizontal overflow on all screen sizes */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .hero-title { font-size: 1.4rem; }
  .section-title { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .modal-box { padding: 1.25rem; }
  .filter-bar { gap: 0.5rem; }
  .tech-pill { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
  .navbar-container { padding: 0 0.75rem; gap: 0.5rem; }
  .navbar-logo { font-size: 0.85rem; gap: 0.35rem; }
  .navbar-logo-img { width: 40px; height: 40px; }
  .navbar-controls { gap: 0.35rem; }
  .lang-btn { padding: 0.3rem 0.5rem; font-size: 0.7rem; }
  .theme-toggle-btn { width: 32px; height: 32px; font-size: 0.8rem; }
  .page-hero-title { font-size: clamp(1.2rem, 5vw, 1.8rem) !important; }
  .article-content { padding: 1rem !important; }
}

/* Extra small phones (≤375px) */
@media (max-width: 375px) {
  :root { --navbar-height: 60px; }
  .hero-title { font-size: 1.2rem; }
  .section-title { font-size: 1.25rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .hero-stat-number { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .navbar-logo-img { width: 36px; height: 36px; }
  .navbar-logo span { display: none; }
  .container { padding: 0 0.75rem; }
  .modal-box { margin: 0.5rem !important; padding: 1rem !important; }
  .section { padding: 3rem 0; }
  .btn-lg { padding: 0.7rem 1.4rem; font-size: 0.875rem; }
}

/* Touch devices: show realisation card body always slightly */
@media (hover: none) {
  .realisation-card-body {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  }
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
html.light-mode {
  --bg-primary: #f0f4ff;
  --bg-secondary: #e8eeff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f8ff;
  --accent-blue: #0052cc;
  --accent-blue-hover: #003d99;
  --accent-light: #0066ff;
  --accent-cyan: #0099cc;
  --accent-glow: rgba(0, 82, 204, 0.2);
  --gradient-primary: linear-gradient(135deg, #0052cc, #0099cc);
  --gradient-dark: linear-gradient(135deg, #e8eeff, #f0f4ff);
  --gradient-card: linear-gradient(145deg, #ffffff, #f0f4ff);
  --text-primary: #0a0e1a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --border-color: rgba(0, 82, 204, 0.15);
  --border-glow: rgba(0, 82, 204, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-blue: 0 0 30px rgba(0, 82, 204, 0.15);
  --shadow-blue-lg: 0 0 60px rgba(0, 82, 204, 0.2);
}

html.light-mode #navbar {
  background: rgba(240, 244, 255, 0.92);
}

html.light-mode #navbar.scrolled {
  background: rgba(240, 244, 255, 0.97);
  border-bottom-color: rgba(0, 82, 204, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html.light-mode .hero {
  background: linear-gradient(160deg, #e8eeff 0%, #f0f4ff 60%, #e0ecff 100%);
}

/* ============================================================
   HERO IMAGE - FULL HEIGHT
   ============================================================ */
.hero-visual {
  align-self: stretch;
}

.hero-device-wrap {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero-device-wrap img {
  width: 100%;
  height: 70vh;
  object-fit: contain;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(0, 102, 255, 0.4);
}

.faq-item.open {
  border-color: rgba(0, 102, 255, 0.5);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent-blue);
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.9rem;
}

.faq-answer p strong {
  color: var(--accent-cyan);
}

@media (max-width: 600px) {
  .faq-grid { grid-template-columns: 1fr; }
}

html.light-mode .faq-item {
  background: #ffffff;
}
html.light-mode .faq-question {
  color: #1a1a2e;
}
html.light-mode .faq-answer p {
  color: #4a5568;
}

html.light-mode .hero-grid {
  background-image:
    linear-gradient(rgba(0,82,204,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,82,204,0.06) 1px, transparent 1px);
}

html.light-mode .hero-gradient {
  background: radial-gradient(ellipse at center, rgba(0,82,204,0.08) 0%, transparent 70%);
}

html.light-mode .hero-orb-1 {
  background: radial-gradient(circle, rgba(0,82,204,0.15) 0%, transparent 70%);
}
html.light-mode .hero-orb-2 {
  background: radial-gradient(circle, rgba(0,153,204,0.12) 0%, transparent 70%);
}
html.light-mode .hero-orb-3 {
  background: radial-gradient(circle, rgba(0,82,204,0.1) 0%, transparent 70%);
}

html.light-mode .section {
  background: var(--bg-primary);
}

html.light-mode .section:nth-child(even),
html.light-mode .section-alt {
  background: var(--bg-secondary);
}

html.light-mode footer {
  background: #f0f4ff;
  border-top-color: rgba(0,82,204,0.15);
}

html.light-mode footer,
html.light-mode footer * {
  color: inherit;
}

html.light-mode .footer-col-title {
  color: #1e293b;
}

html.light-mode .footer-desc,
html.light-mode .footer-links a,
html.light-mode .footer-contact-item {
  color: #475569;
}

html.light-mode .footer-links a:hover {
  color: var(--accent-blue);
}

html.light-mode .footer-bottom {
  border-top-color: rgba(0,82,204,0.15);
}

html.light-mode .footer-copyright,
html.light-mode .footer-bottom-links a {
  color: #64748b;
}

html.light-mode .footer-social a {
  background: rgba(0,82,204,0.08);
  border-color: rgba(0,82,204,0.15);
  color: #475569;
}

html.light-mode .footer-logo span {
  -webkit-text-fill-color: #64748b;
  color: #64748b;
}

html.light-mode .cta-section {
  background: linear-gradient(135deg, #0052cc, #0099cc);
}

html.light-mode .loader-logo,
html.light-mode .navbar-logo {
  -webkit-text-fill-color: transparent;
}

/* Les deux logos utilisent la même taille — aucune surcharge par mode */

html.light-mode .form-input {
  background: #f8faff;
  border-color: rgba(0,82,204,0.2);
  color: var(--text-primary);
}

html.light-mode .form-input:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
}

html.light-mode .modal-box {
  background: #ffffff;
}

/* Mobile nav light mode */
html.light-mode .navbar-mobile {
  background: rgba(240, 244, 255, 0.98);
  border-bottom-color: rgba(0, 82, 204, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

html.light-mode .navbar-mobile a {
  color: #475569;
}

html.light-mode .navbar-mobile a:hover,
html.light-mode .navbar-mobile a.active {
  color: #1e293b;
  background: rgba(0, 82, 204, 0.1);
  border-color: rgba(0, 82, 204, 0.2);
}

html.light-mode .mobile-nav-controls {
  border-top-color: rgba(0, 82, 204, 0.15);
}

/* Page hero light mode */
html.light-mode .page-hero-overlay {
  background: linear-gradient(135deg, rgba(240, 244, 255, 0.82), rgba(200, 220, 255, 0.72));
}

html.light-mode .page-hero-title {
  color: #0f172a;
  text-shadow: 0 2px 8px rgba(255,255,255,0.5);
}

html.light-mode .page-hero-subtitle {
  color: #334155;
  text-shadow: 0 1px 4px rgba(255,255,255,0.4);
}

html.light-mode .breadcrumb a,
html.light-mode .breadcrumb span,
html.light-mode .breadcrumb-sep {
  color: #475569;
}

html.light-mode .breadcrumb a:hover {
  color: var(--accent-blue);
}

/* Section & card light mode */
html.light-mode .service-card,
html.light-mode .realisation-card,
html.light-mode .blog-card,
html.light-mode .formation-card,
html.light-mode .highlight-card,
html.light-mode .info-card {
  background: #ffffff;
  border-color: rgba(0, 82, 204, 0.12);
}

html.light-mode .service-card:hover,
html.light-mode .realisation-card:hover {
  border-color: rgba(0, 82, 204, 0.35);
}

html.light-mode .service-card-title {
  color: #0f172a;
}

html.light-mode .service-card-desc {
  color: #475569;
}

/* Realisation card body — always on dark gradient overlay, keep all text bright */
html.light-mode .realisation-card-body {
  --accent-cyan:  #00d4ff;
  --accent-light: rgba(0, 212, 255, 0.95);
  --text-dim:     rgba(255, 255, 255, 0.65);
}

html.light-mode .realisation-card-title {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

html.light-mode .realisation-card-desc {
  color: rgba(255, 255, 255, 0.85);
}

html.light-mode .service-card-subtitle {
  color: #64748b;
}

/* Hamburger button light mode */
html.light-mode .navbar-hamburger {
  background: rgba(240, 244, 255, 0.9);
  border-color: rgba(0, 82, 204, 0.3);
}

html.light-mode .navbar-hamburger span {
  background: #1e293b;
}

/* Navbar controls (theme toggle + lang switcher) */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.9rem;
}

.theme-toggle-btn:hover {
  background: rgba(0, 102, 255, 0.2);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lang-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
  background: none;
  border: none;
  font-family: var(--font-primary);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 102, 255, 0.1);
}

.lang-btn.lang-active {
  background: var(--accent-blue);
  color: #ffffff;
}

html.light-mode .lang-btn.lang-active {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Footer logo image */
.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 0;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  border: none;
  background: none;
}


/* ============================================================
   TECH ICON BOX (inside tech pills)
   ============================================================ */
.tech-pill .tech-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.08));
  border: 1px solid rgba(0,102,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.tech-pill:hover .tech-icon-box {
  background: linear-gradient(135deg, rgba(0,102,255,0.3), rgba(0,212,255,0.15));
  border-color: rgba(0,212,255,0.5);
}

.tech-pill .tech-icon-box i {
  font-size: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   REALISATIONS SLIDER
   ============================================================ */
.realisations-slider-wrap {
  position: relative;
  overflow: hidden;
}

.realisations-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
}

.realisations-slider::-webkit-scrollbar {
  display: none;
}

.realisations-slider .realisation-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  scroll-snap-align: start;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
}

.slider-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  box-shadow: 0 0 20px rgba(0,102,255,0.4);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--accent-blue);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .realisations-slider .realisation-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .realisations-slider .realisation-card {
    flex: 0 0 85%;
  }
}

/* ============================================================
   CTA HIGHLIGHT SPAN
   ============================================================ */
.cta-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light-mode .cta-highlight {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #001166;
  color: #001166;
  font-weight: 900;
}

html.light-mode .cta-section .cta-title {
  color: #ffffff;
}

html.light-mode .cta-section .cta-subtitle {
  color: rgba(255,255,255,0.85);
}

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

/* Responsive navbar fixes */
@media (max-width: 1024px) {
  .navbar-cta { display: none !important; }
  .navbar-controls { display: none !important; }

  .navbar-hamburger {
    display: flex !important;
    flex-shrink: 0;
    z-index: 1010;
    position: relative;
    background: rgba(10, 14, 26, 0.85);
    border: 1px solid rgba(0, 102, 255, 0.5);
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
  }

  .navbar-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
  }
}

/* Hero section: prevent overflow and content cutoff on small screens */
@media (max-width: 1024px) {
  .hero {
    overflow: hidden;
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
  }
  .hero-content {
    padding: 0 1rem;
    gap: 2rem;
  }
  .hero-title {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    word-break: break-word;
  }
  .hero-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-stat-item {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); display: grid; gap: 0.75rem; }
  .hero-stat-item { text-align: center; }
}

/* Partners grid: 2 per row on mobile */
@media (max-width: 600px) {
  .partners-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .partner-logo {
    width: 100%;
    height: 100px;
  }
}

/* Services intro characteristics: 2 per row on tablet, 1 on mobile */
.services-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 480px) {
  .services-intro-grid { grid-template-columns: 1fr; }
}

/* Contact form fields grid: responsive */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-section-grid {
  min-width: 0;
}

.contact-info-column,
.contact-form-column {
  min-width: 0;
}

.contact-form-panel {
  min-width: 0;
}

.contact-info-stack .info-card {
  min-width: 0;
}

.contact-info-stack .info-card a,
.contact-info-stack .info-card-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}

/* Navbar logo: stack text on mobile */
@media (max-width: 480px) {
  .navbar-logo {
    font-size: 1.1rem;
    flex-direction: row;
    align-items: center;
  }
  .navbar-logo span {
    display: block;
    font-size: 0.55em;
  }
}

/* Detail pages responsive: grid-2 stacks on tablet/mobile */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Prevent horizontal overflow site-wide */
body {
  overflow-x: hidden;
}
.hero, .section, .container, .container-wide {
  max-width: 100vw;
  box-sizing: border-box;
}

/* ============================================================
   DETAIL PAGES — RESPONSIVE GRIDS (highlights, comment form)
   ============================================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.comment-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .comment-form-fields {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 1.25rem !important;
  }
  .article-layout {
    gap: 1.5rem;
  }
  .project-layout {
    gap: 1.5rem;
  }
  .pdf-embed-viewer iframe {
    min-height: 26rem;
    height: 78vh;
  }
  .pdf-embed-frame {
    min-height: 60vh;
  }
  .pdf-embed-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 1rem !important;
  }
  .article-content h1 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }
  .article-content h2 {
    font-size: clamp(1.1rem, 6vw, 1.45rem);
  }
  .article-content h3 {
    font-size: clamp(1rem, 5vw, 1.2rem);
  }
  .article-content p,
  .article-content ul li,
  .article-content ol li {
    font-size: 0.95rem;
    line-height: 1.75;
  }
  .contact-section-grid {
    gap: 2rem !important;
  }
  .contact-form-panel {
    padding: 1.25rem !important;
    border-radius: var(--radius-xl);
  }
  .contact-map {
    height: 210px;
    margin-top: 1.25rem;
  }
  .map-placeholder i {
    font-size: 2.2rem;
  }
  .social-links-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .social-link-card {
    padding: 1.25rem;
  }
  .info-card {
    padding: 1rem;
    align-items: flex-start;
  }
  .info-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }
  .contact-form-grid {
    gap: 0.9rem;
  }
  .form-input,
  .btn,
  .btn-lg {
    max-width: 100%;
  }
  .pdf-embed-viewer iframe {
    min-height: 22rem;
    height: 72vh;
  }
}

@media (max-width: 375px) {
  .contact-form-panel {
    padding: 1rem !important;
  }
  .contact-map {
    height: 180px;
  }
  .social-link-card {
    padding: 1rem;
  }
  .social-link-icon {
    width: 52px;
    height: 52px;
  }
  .social-link-icon i {
    font-size: 1.2rem;
  }
  .social-link-name {
    font-size: 0.95rem;
  }
  .social-link-handle {
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }
  .pdf-embed-viewer iframe {
    min-height: 18rem;
    height: 68vh;
  }
}

/* ============================================================
   NAVBAR — DROPDOWN MENUS
   ============================================================ */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-arrow {
  font-size: 0.6em;
  opacity: 0.65;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 102, 255, 0.06);
  z-index: 9999;
}

/* Transparent bridge fills the gap so mouse can travel to dropdown without losing hover */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.55rem 0.875rem !important;
  border-radius: 0.55rem !important;
  color: var(--text-secondary) !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s;
}

.nav-dropdown a:hover {
  background: rgba(0, 102, 255, 0.1) !important;
  color: var(--accent-blue) !important;
}

.nav-dropdown a i {
  font-size: 0.78em;
  width: 14px;
  opacity: 0.65;
  flex-shrink: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.35rem 0.5rem;
}

html.light-mode .nav-dropdown {
  background: #ffffff;
  border-color: rgba(0, 82, 204, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 82, 204, 0.08);
}

/* Hide dropdown on mobile (handled differently) */
@media (max-width: 1024px) {
  .nav-item .nav-dropdown { display: none; }
  .nav-arrow { display: none; }
}

/* ============================================================
   NAVBAR — LOGO & HAMBURGER RESPONSIVE FIX
   ============================================================ */

/* Navbar logo text wrapper: JUDDEV above CORPORATION */
.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  overflow: hidden;
  min-width: 0;
}
.navbar-logo-text span {
  display: block;
}

/* Mobile navbar: logo + hamburger always fit in one row */
@media (max-width: 1024px) {
  #navbar {
    padding: 0;
    overflow: hidden;
  }
  .navbar-container {
    width: 100%;
    padding: 0 1.75rem;
    gap: 0;
    box-sizing: border-box;
  }
  .navbar-logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 60px);
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
  }
  .navbar-logo-text {
    flex: 1 1 0;
    min-width: 0;
  }
  .navbar-logo-img {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
  }
  .navbar-hamburger {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1.25rem;
  }
  .navbar-logo {
    font-size: 0.95rem;
    gap: 0.35rem;
  }
  .navbar-logo-img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 360px) {
  .navbar-container {
    padding: 0 1rem;
  }
  .navbar-logo {
    font-size: 0.85rem;
  }
  .navbar-logo-img {
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   RESPONSIVE FIX — CONTENT OVERFLOW (contact, realisations,
   service-detail and all inner pages)
   ============================================================ */

/* Grid children: min-width:0 prevents content from escaping */
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Sections must never cause horizontal scroll */
.section, .page-hero, footer {
  overflow-x: hidden;
}

/* Tech badges & tags: wrap properly */
.tech-stack, .tags-cloud, .filter-btn-group {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Contact page: ensure form card & info column don't overflow */
@media (max-width: 768px) {
  /* Override inline gap on grid-2 used in contact/service pages */
  .section .grid-2 {
    gap: 2rem !important;
  }
  .reveal-right > div,
  .reveal-left > div {
    padding: 1.5rem !important;
  }
  .info-card {
    gap: 0.75rem;
  }
  .contact-map {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .section .grid-2 {
    gap: 1.5rem !important;
  }
  /* Service detail feature list overflow fix */
  .feature-list {
    gap: 0.5rem;
  }
  .feature-item {
    font-size: 0.875rem;
    padding: 0.6rem 0.75rem;
  }
  /* Tech badges smaller on tiny screens */
  .tech-badge, .tech-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
  /* Realisations filter: ensure full-width */
  .filter-dropdown-wrapper {
    max-width: 100%;
  }
  .filter-toggle-btn {
    width: 100%;
    font-size: 0.875rem;
  }
  /* Article page pagination buttons */
  #article-page-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }
  #article-page-nav .btn {
    min-width: unset !important;
    flex: 1;
  }
}

/* Realisation stats overflow fix */
.realisations-stats {
  overflow-x: hidden;
}
@media (max-width: 600px) {
  .realisations-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Service detail section: image must not overflow */
#service-detail-content img {
  max-width: 100%;
  height: auto;
}
#service-detail-content .grid-2 {
  overflow-x: hidden;
}

/* ============================================================
   STATS RESPONSIVE 2×2
   ============================================================ */
.stats-responsive-2x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 600px) {
  .stats-responsive-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Google Translate font fix — GT wraps grid items in <font>, make them layout-transparent */
.grid-2 > font, .grid-3 > font, .grid-4 > font,
#services-grid > font, #services-full-grid > font,
#realisations-grid > font {
  display: contents;
}
.service-card font, .realisation-card font, .blog-card font {
  display: contents;
}

/* ============================================================
   SERVICES GRID - HOME PAGE & SERVICES PAGE
   Desktop: 3 cols | Tablet: 2 cols | Mobile: 1 col
   ============================================================ */
#services-grid,
#services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

#services-grid > *,
#services-full-grid > *,
.service-card {
  min-width: 0;
}

#services-grid .service-card,
#services-full-grid .service-card,
.service-card.reveal {
  height: 100%;
}

@media (max-width: 1024px) {
  #services-grid,
  #services-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  #services-grid,
  #services-full-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
  }

  .service-card-icon {
    width: 60px;
    height: 60px;
    font-size: 2.1rem;
  }
}

/* Visually hidden - accessible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

#whatsapp-float i {
  font-size: 1.85rem;
  color: #fff;
  line-height: 1;
}

#whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a2e;
  border-right: none;
}

#whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}

@media (max-width: 600px) {
  #whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .wa-tooltip { display: none; }
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.tem-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 3.5rem;
}
.tem-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}
.tem-card {
  flex: 0 0 calc(33.333% - 1.334rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tem-card:hover {
  border-color: var(--accent-primary, #0066ff);
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.1);
}
.tem-stars { color: #f4c542; font-size: 1.1rem; letter-spacing: 2px; }
.tem-quote { color: var(--text-secondary); line-height: 1.8; font-style: italic; flex: 1; }
.tem-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.tem-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; font-size: 1rem; }
.tem-name { font-weight: 700; color: var(--text-primary); font-size: 0.9rem; }
.tem-role { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }
.tem-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  font-size: 0.9rem;
}
.tem-arrow:hover { background: var(--gradient-primary); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(0,102,255,0.3); }
.tem-prev { left: -0.25rem; }
.tem-next { right: -0.25rem; }
.tem-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tem-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
  padding: 0;
}
.tem-dot.active {
  background: var(--accent-primary, #0066ff);
  width: 22px;
}
@media (max-width: 960px) {
  .tem-card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 580px) {
  .tem-card { flex: 0 0 100%; }
  .tem-arrow { display: none; }
  .tem-carousel { padding-bottom: 2.5rem; }
}

/* ============================================================
   SERVICE CARDS — NEW DESIGN (svc-card)
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 102, 255, 0.14);
  border-color: rgba(0, 102, 255, 0.35);
}

.svc-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,102,255,0.08) 0%, rgba(0,212,255,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.svc-card-thumb-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.svc-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  gap: 0.5rem;
  flex: 1;
}

.svc-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.35;
  margin: 0;
  width: 100%;
}

.svc-card-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
  width: 100%;
}

.svc-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0.25rem 0 0;
  width: 100%;
  overflow: hidden;
  max-height: calc(1.65em * 3);
}

.svc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: gap 0.2s ease;
  white-space: nowrap;
}

.svc-card:hover .svc-card-cta {
  gap: 0.75rem;
}

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

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE DETAIL — RÉALISATIONS LIÉES MINI-GRID
   Desktop: 3 cols | Tablet: 2 | Mobile: 1
   ============================================================ */
.srv-real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 1024px) {
  .srv-real-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .srv-real-grid { grid-template-columns: 1fr !important; }
}
/* Card dans la grille : image plus compacte */
.srv-real-grid > a {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: transform .25s, box-shadow .25s;
}
.srv-real-grid > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.srv-real-grid-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.srv-real-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.srv-real-grid-body {
  padding: .7rem .85rem .8rem;
}
.srv-real-grid-body h4 {
  color: var(--text-primary);
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srv-real-grid-body p {
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.5;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srv-real-grid-body span {
  color: var(--accent-blue);
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ============================================================
   SERVICE DETAIL — image intro : au-dessus du texte sur mobile
   ============================================================ */
@media (max-width: 1024px) {
  #service-detail-content .reveal-right {
    order: -1;
    position: static !important;
  }
}

/* ============================================================
   POURQUOI JUDDEV — raison-cards
   ============================================================ */
.raison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.raison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,102,255,.35);
}
.raison-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg,rgba(0,102,255,.15),rgba(0,212,255,.15));
  border: 1px solid rgba(0,102,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.raison-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .5rem;
}
.raison-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   NOS TECHNOLOGIES — section animée
   ============================================================ */
.tech-orbit-section {
  position: relative;
  overflow: hidden;
}
.tech-orbit-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,102,255,.08), transparent);
  pointer-events: none;
}
.tech-marquee-wrap {
  overflow: hidden;
  margin-top: 3rem;
  position: relative;
}
.tech-marquee-wrap::before,
.tech-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.tech-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}
.tech-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}
.tech-marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.tech-marquee:hover { animation-play-state: paused; }
.tech-marquee-row2 {
  animation-direction: reverse;
  animation-duration: 22s;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
  user-select: none;
}
.tech-pill:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 18px rgba(0,102,255,.2);
  transform: translateY(-2px);
}
.tech-pill i, .tech-pill span.emoji {
  font-size: 1.1rem;
}
.tech-pill-accent  { border-color: rgba(0,102,255,.3);  color: #60a5fa; }
.tech-pill-cyan    { border-color: rgba(0,212,255,.3);  color: #34d399; }
.tech-pill-purple  { border-color: rgba(139,92,246,.3); color: #a78bfa; }
.tech-pill-orange  { border-color: rgba(251,146,60,.3); color: #fb923c; }
.tech-pill-pink    { border-color: rgba(244,114,182,.3);color: #f472b6; }

/* Floating tech icons ring */
.tech-ring-container {
  position: relative;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  margin: 0 auto;
}
.tech-ring-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%,-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 40px rgba(0,102,255,.4);
  z-index: 2;
}
.tech-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(0,102,255,.18);
  animation: orbit-spin linear infinite;
}
.tech-orbit-1 { animation-duration: 14s; }
.tech-orbit-2 { inset: 14%; animation-duration: 20s; animation-direction: reverse; }
.tech-orbit-3 { inset: 28%; animation-duration: 30s; }
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.tech-orbit-dot {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .25s;
}
.tech-orbit-dot:hover { transform: translateX(-50%) scale(1.2); }

@media (max-width: 768px) {
  .tech-ring-container { width: min(320px,85vw); height: min(320px,85vw); }
  .tech-ring-center { width: 70px; height: 70px; font-size: 1.4rem; }
  .tech-orbit-dot { width: 36px; height: 36px; font-size: 1rem; top: -18px; }
}
@media (max-width: 480px) {
  .tech-marquee { gap: .6rem; }
  .tech-pill { font-size: .8rem; padding: .5rem 1rem; }
}
