/* style.css - Charte Graphique, Design System Premium, Dropdown Menu & Mobile Menu Responsive */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Nuancier de couleurs */
  --bg-primary: #0a1120;
  --bg-secondary: #101a30;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --color-primary: #ffffff;
  --color-secondary: #94a3b8;
  
  /* HSL Tailored Colors */
  --blue-tech: hsl(205, 90%, 50%);
  --blue-glow: rgba(14, 165, 233, 0.15);
  --gold-accent: hsl(42, 60%, 55%);
  --gold-glow: rgba(212, 163, 89, 0.2);
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #071124; /* Fallback solide pour Safari/iOS */
  color: var(--color-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(rgba(14, 165, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, #0d1e3d 0%, #071124 100%);
  background-size: 32px 32px, 32px 32px, auto;
  pointer-events: none;
  z-index: -10;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-secondary);
}

/* Conteneur principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* En-tête (Header) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background: rgba(10, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header .header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Menu principal & Dropdowns (Desktop) */
nav ul.main-menu {
  display: flex;
  list-style: none;
  gap: 18px;
}

nav ul.main-menu > li {
  position: relative;
}

nav ul.main-menu > li > a {
  text-decoration: none;
  color: var(--color-secondary);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  padding: 12px 0;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

nav ul.main-menu > li > a:hover {
  color: var(--color-primary);
}

nav ul.main-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-tech);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav ul.main-menu > li > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Bouton hamburger mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hamburger active animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sous-menus (Desktop) */
.has-submenu .arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.has-submenu:hover .arrow {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(16, 26, 48, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  min-width: 280px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-secondary);
  font-size: 13.5px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: var(--transition-fast);
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--blue-tech);
  padding-left: 26px;
}

.header-cta .btn-demo {
  text-decoration: none;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--blue-tech);
  padding: 9px 18px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 12px var(--blue-glow);
}

.header-cta .btn-demo:hover {
  background: var(--blue-tech);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

.nav-mobile-cta {
  display: none;
}

/* Section Héro (Hero Section) */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--blue-tech) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue-tech) 0%, #0284c7 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  display: inline-block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  padding: 15px 30px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Illustration SVG du Héro */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0px 10px 30px rgba(14, 165, 233, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Section Services */
.services-section {
  padding: 100px 0;
  background: transparent;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  color: var(--blue-tech);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 16px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  width: calc(100% + 60px);
  height: 180px;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin: -30px -30px 24px -30px; /* Offset card padding */
  position: relative;
  display: block;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.blue-sidebar-badge {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  background: rgba(14, 80, 189, 0.8); /* Elegant brand blue */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition-smooth);
  border-top-left-radius: 14px;
}

.blue-sidebar-badge .hamburger-icon {
  color: #ffffff;
  font-size: 18px;
}

.service-card:hover .blue-sidebar-badge {
  background: var(--blue-tech);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none; /* Allows click events to pass through to underlying elements */
}

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

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 10px 30px rgba(10, 17, 32, 0.5), 0 0 20px var(--blue-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-tech);
  transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
  background: var(--blue-tech);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.service-card-link {
  display: block;
  text-decoration: none;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
  transition: var(--transition-fast);
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-card h3 a:hover,
.service-card:hover h3 a {
  color: var(--blue-tech);
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 0;
}

.read-more-btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 600;
  color: #ef4444; /* Bright red matching the screenshot link color */
  text-decoration: none;
  margin-top: auto; /* Push link to the bottom of the card */
  padding-top: 15px;
  transition: var(--transition-fast);
  text-align: left;
  width: fit-content;
}

.read-more-btn:hover {
  color: #f87171;
  text-decoration: underline;
}

/* Spotlight Section (iCare Software) */
.spotlight-section {
  padding: 120px 0;
  background: radial-gradient(circle at 10% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 55%);
}

.spotlight-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.spotlight-content {
  text-align: left;
}

.spotlight-content h2 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight-content h2 span {
  background: linear-gradient(135deg, var(--blue-tech) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight-content p {
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 36px;
  color: var(--color-secondary);
  max-width: 600px;
}

.spotlight-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.spotlight-interactive {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.spotlight-ring-link {
  display: block;
  text-decoration: none;
}

.spotlight-ring-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0px 8px 30px rgba(14, 165, 233, 0.15));
  animation: float-ring 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-ring-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0px 12px 40px rgba(14, 165, 233, 0.3));
}

@keyframes float-ring {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.spotlight-interactive::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background: linear-gradient(135deg, var(--blue-tech), transparent, var(--gold-accent));
  border-radius: 20px;
  z-index: -1;
  opacity: 0.2;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.window-title {
  font-size: 11px;
  color: var(--color-secondary);
  font-family: var(--font-title);
  letter-spacing: 0.1em;
}

.window-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-status {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.feature-bar {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  transition: var(--transition-fast);
}

.feature-bar:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateX(4px);
}

.feature-bar svg {
  color: var(--blue-tech);
}

/* Certifications Section (Tableau d'Agréments EASA) */
.certifications-section {
  padding: 80px 0;
  background: transparent;
  color: var(--color-primary); /* White text for contrast in this dark section */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-card {
  background: #ffffff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}

.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #cbd5e1;
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cert-item h4 {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.certs-footer {
  margin-top: 10px;
}

.certs-link {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-tech); /* High-tech blue matching design system */
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

.certs-link:hover {
  color: #2563eb;
  transform: translateY(-1px);
}

/* Section Partners (They have experienced our services) */
.partners-section {
  padding: 60px 0;
  background: transparent;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partners-header h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.partners-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  max-width: 1200px;
  margin: 15px auto 30px auto;
}

.partners-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.partners-logos-viewport {
  width: 100%;
  max-width: 896px; /* Fits exactly 5 cards (160px wide) + gaps (24px) */
  overflow: hidden;
  position: relative;
}

.partners-logos {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px 0;
}

.partner-logo-card {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px; /* Square cards */
  height: 160px; /* Square cards */
  border: 3px solid #ffffff; /* Outer white border */
  box-shadow: inset 0 0 0 2px #1c52a3, 0 4px 15px rgba(0, 0, 0, 0.2); /* Inner blue border and shadow */
  transition: var(--transition-smooth);
  flex-shrink: 0; /* Prevent squishing in the flex layout */
}

.partner-logo-card img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.partner-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 2px var(--blue-tech), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Pied de Page (Footer) */
footer {
  background: #080c14;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col.about p {
  font-size: 14px;
  margin-top: 20px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  text-decoration: none;
  color: var(--color-secondary);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--blue-tech);
  padding-left: 4px;
}

.footer-col.contact ul {
  list-style: none;
}

.footer-col.contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-secondary);
}

.footer-col.contact ul li svg {
  color: var(--blue-tech);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.footer-bottom p {
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--blue-tech);
  color: #ffffff;
  border-color: var(--blue-tech);
  transform: translateY(-2px);
}

/* Media Queries Responsive */
@media (max-width: 1200px) {
  nav ul.main-menu {
    gap: 10px;
  }
  nav ul.main-menu > li > a {
    font-size: 13px;
  }
}

/* Responsive pour tablette et mobile */
@media (max-width: 991px) {
  header {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 70px;
    width: auto;
    border-radius: 35px;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1060;
    padding: 0 20px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
  }

  .header-wrap {
    width: 100%;
    padding: 0;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex; /* Affiche le bouton hamburger */
    z-index: 1070; /* Toujours visible au-dessus du menu */
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 10, 18, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    padding: 100px 20px 60px 20px;
    overflow-y: auto;
  }

  nav.active {
    opacity: 1;
    visibility: visible;
  }

  nav ul.main-menu {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 5px;
  }

  nav ul.main-menu::-webkit-scrollbar {
    width: 4px;
  }
  nav ul.main-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
  }

  nav ul.main-menu > li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  nav.active ul.main-menu > li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Effet Stagger pour l'apparition des items du menu */
  nav.active ul.main-menu > li:nth-child(1) { transition-delay: 0.2s; }
  nav.active ul.main-menu > li:nth-child(2) { transition-delay: 0.25s; }
  nav.active ul.main-menu > li:nth-child(3) { transition-delay: 0.3s; }
  nav.active ul.main-menu > li:nth-child(4) { transition-delay: 0.35s; }
  nav.active ul.main-menu > li:nth-child(5) { transition-delay: 0.4s; }
  nav.active ul.main-menu > li:nth-child(6) { transition-delay: 0.45s; }
  nav.active ul.main-menu > li:nth-child(7) { transition-delay: 0.5s; }
  nav.active ul.main-menu > li:nth-child(8) { transition-delay: 0.55s; }

  nav ul.main-menu > li > a {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    transition: var(--transition-fast);
  }

  nav ul.main-menu > li > a:hover {
    color: var(--blue-tech);
  }

  /* Sous-menus imbriqués et pliables en mobile */
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: none;
    padding: 12px 20px;
    margin-top: 8px;
    display: none; /* Cache par défaut, toggle via JS */
    flex-direction: column;
    gap: 12px !important;
    min-width: 250px;
    text-align: left;
  }

  .submenu.active {
    display: flex;
  }

  .submenu li a {
    padding: 4px 0;
    font-size: 15px;
    color: var(--color-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
  }

  .submenu li a:hover {
    color: #ffffff;
    padding-left: 4px;
  }

  .header-cta {
    display: none; /* Cache le bouton de droite dans le header mobile */
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 0;
    margin-bottom: 24px;
    width: 80%;
    max-width: 280px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.15s;
  }

  nav.active .nav-mobile-cta {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-mobile-cta .btn-demo {
    display: block;
    text-align: center;
    background: var(--blue-tech);
    color: #ffffff;
    border: 1px solid var(--blue-tech);
    padding: 12px 20px;
    border-radius: 30px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  }

  .nav-mobile-cta .btn-demo:hover {
    background: #0284c7;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
  }
}

@media (max-width: 1024px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .spotlight-content {
    text-align: center;
  }
  .spotlight-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .spotlight-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Language Selector styling */
.header-right-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-selector {
  position: relative;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.flag-icon {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
}
.lang-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.lang-selector.active .lang-arrow {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0d1e3d; /* Dark background matching the header colors */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 0;
  min-width: 130px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown li {
  margin: 0;
}
.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

/* Mobile Language Selector */
.mobile-lang-selector {
  display: none;
  justify-content: center;
  gap: 15px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 80%;
  max-width: 280px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.5s;
}
.mobile-lang-item {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.mobile-lang-item.active {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

@media only screen and (max-width: 991px) {
  .mobile-lang-selector {
    display: flex;
  }
  nav.active .mobile-lang-selector {
    opacity: 1;
    transform: translateY(0);
  }
  .lang-selector {
    display: none; /* Hide header dropdown switcher on mobile */
  }
}

/* SVG Network Rotation Animations */
.spin-clockwise {
  transform-origin: 250px 200px;
  animation: rotate-cw 40s linear infinite;
}
.spin-counter {
  transform-origin: 250px 200px;
  animation: rotate-ccw 55s linear infinite;
}
@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotate-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Pulse Animation for Nodes */
.node-pulse {
  animation: pulse-node 4s ease-in-out infinite alternate;
}
@keyframes pulse-node {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* Premium Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 26, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(14, 165, 233, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top-btn:hover {
  background: var(--blue-tech);
  border-color: var(--blue-tech);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
  transform: translateY(-4px);
}
.scroll-to-top-btn:active {
  transform: translateY(-1px);
}
.scroll-to-top-btn svg {
  transition: transform 0.3s ease;
}
.scroll-to-top-btn:hover svg {
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

