/* ============================================
   JCSM Premium Design System
   ============================================ */

/* === CSS Variables === */
:root {
  /* Colors - Unified Blue-600 (#2563EB) */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-secondary: #2563EB;
  --color-accent: #2563EB;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Neutrals - WCAG AA Compliant Contrast */
  --color-black: #000000;
  --color-gray-900: #111111;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563; /* 7:1 contrast on white */
  --color-gray-500: #6b7280; /* 4.6:1 - use for large text only */
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-white: #ffffff;
  --color-bg: #FAFAFA;

  /* Accessible text colors */
  --color-text-primary: #111827;   /* 16:1 contrast */
  --color-text-secondary: #374151; /* 10:1 contrast */
  --color-text-muted: #4b5563;     /* 7:1 contrast */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.1));

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
  --shadow-glow-purple: 0 0 40px rgba(37, 99, 235, 0.1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --font-size-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --font-size-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --font-size-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --font-size-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --font-size-2xl: clamp(1.4rem, 1.2rem + 1vw, 1.5rem);
  --font-size-3xl: clamp(1.6rem, 1.4rem + 1vw, 1.875rem);
  --font-size-4xl: clamp(2rem, 1.5rem + 2.5vw, 2.25rem);
  --font-size-5xl: clamp(2.5rem, 2rem + 2.5vw, 3rem);
  --font-size-6xl: clamp(3rem, 2.5rem + 2.5vw, 3.75rem);
  --font-size-7xl: clamp(3.5rem, 3rem + 2.5vw, 4.5rem);

  /* 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;

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

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
}

/* === Base Styles === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

/* Fade animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Blur animations */
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Pulse glow */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.5), 0 0 60px rgba(37, 99, 235, 0.3);
  }
}

/* Floating animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Rotate gradient */
@keyframes rotateGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Text reveal */
@keyframes textReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Line draw */
@keyframes drawLine {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

/* Base reveal class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

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

/* Stagger children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-stagger.active>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.active>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger.active>*:nth-child(3) {
  transition-delay: 0.15s;
}

.reveal-stagger.active>*:nth-child(4) {
  transition-delay: 0.2s;
}

.reveal-stagger.active>*:nth-child(5) {
  transition-delay: 0.25s;
}

.reveal-stagger.active>*:nth-child(6) {
  transition-delay: 0.3s;
}

.reveal-stagger.active>*:nth-child(7) {
  transition-delay: 0.35s;
}

.reveal-stagger.active>*:nth-child(8) {
  transition-delay: 0.4s;
}

.reveal-stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Direction variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-back);
}

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

/* ============================================
   PREMIUM COMPONENTS
   ============================================ */

/* Gradient text with animation */
.gradient-text-animated {
  background: linear-gradient(135deg,
      var(--color-primary) 0%,
      var(--color-secondary) 25%,
      var(--color-accent) 50%,
      var(--color-secondary) 75%,
      var(--color-primary) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rotateGradient 5s ease 1 forwards;
}

/* Premium button with ripple */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-xl);
  background: var(--gradient-dark);
  color: var(--color-white);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease-out-expo);
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    var(--shadow-xl),
    0 0 30px rgba(0, 112, 243, 0.2);
}

.btn-premium:active {
  transform: translateY(-1px) scale(1.01);
}

/* Ripple container */
.ripple-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

/* Premium card hover */
.card-premium {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  transition:
    transform var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow) var(--ease-out-expo),
    border-color var(--duration-normal) ease;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
  pointer-events: none;
}

.card-premium::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(15px);
  transition: opacity var(--duration-slow) var(--ease-out-expo);
}

.card-premium:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.card-premium:hover::before {
  opacity: 0.5;
}

.card-premium:hover::after {
  opacity: 0.3;
}

/* Magnetic button effect container */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

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

/* Container with responsive padding */
.container-responsive {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

@media (max-width: 640px) {
  .container-responsive {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Extra small screens (< 400px) */
@media (max-width: 400px) {

  /* Stack CTA buttons vertically */
  .hero-buttons,
  .flex.flex-wrap.gap-2,
  .flex.flex-wrap.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .hero-buttons a,
  .hero-buttons button {
    width: 100% !important;
    text-align: center !important;
  }

  /* Reduce hero title size */
  h1 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  /* Center badges on mobile */
  .inline-flex {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Small screens (< 640px) */
@media (max-width: 640px) {

  /* Mobile sections - using broad selectors */
  section {
    min-height: auto !important;
  }

  /* Improve button touch targets */
  .btn-primary,
  .btn-secondary,
  .btn-premium {
    min-height: 48px !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  /* Better spacing for section titles */
  .text-5xl,
  .text-6xl {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }

  .text-4xl {
    font-size: 1.5rem !important;
  }

  /* Grid fixes for cards - single column on mobile */
  section .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Reduce card padding on mobile */
  .p-8 {
    padding: 1.25rem !important;
  }

  .p-10 {
    padding: 1.5rem !important;
  }

  /* Smaller section padding */
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Stats numbers smaller on mobile */
  .text-6xl {
    font-size: 2.5rem !important;
  }

  /* Better logo marquee on mobile */
  .logo-item {
    min-width: 140px !important;
    padding: 0.75rem 1rem !important;
  }

  .logo-item img {
    height: 2.5rem !important;
  }
}

/* Tablet adjustments (768px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {

  /* Two column grids on tablet */
  #services .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Better button group spacing */
  .flex.flex-wrap.gap-2,
  .flex.flex-wrap.gap-3 {
    gap: 1rem !important;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better contrast for gray text - WCAG AA compliant */
.text-gray-500 {
  color: #525252 !important;
  /* Contrast ratio 7:1 on white */
}

.text-gray-600 {
  color: #374151 !important;
  /* Contrast ratio 8.5:1 on white */
}

.text-gray-400 {
  color: #6b7280 !important;
  /* Contrast ratio 4.6:1 on white - passes AA for large text */
}

/* Ensure focus is visible on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary) !important;
  outline-offset: 3px !important;
}

/* Skip to content link improvements */
.skip-link {
  transition: top 0.2s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000 !important;
    border: 2px solid #000 !important;
  }

  .btn-secondary {
    border-width: 2px !important;
  }

  .card-hover,
  .card-premium {
    border-width: 2px !important;
  }
}

/* Reduced motion support - comprehensive */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .section-appear,
  .card-hover,
  .btn-primary,
  .btn-secondary {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .logo-marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .particle,
  .morph-blob,
  .cursor-glow {
    display: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Hardware acceleration for animations */
.card-hover,
.btn-primary,
.btn-premium,
.image-hover {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Lazy image placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

img[loading="lazy"].loaded {
  background: none;
}

/* ============================================
   CURSOR EFFECTS (Desktop only)
   ============================================ */

@media (min-width: 1024px) and (hover: hover) {
  .cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  body:hover .cursor-glow {
    opacity: 1;
  }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-400) var(--color-gray-100);
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(90deg,
      var(--color-gray-200) 25%,
      var(--color-gray-100) 50%,
      var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   LANDING PAGE STYLES (Extracted from index.html)
   ============================================ */
/* Amélioration des contrastes pour accessibilité WCAG AA */
.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

/* Empêcher tout débordement horizontal */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

main,
section,
article,
header,
footer,
nav,
div {
  max-width: 100%;
  box-sizing: border-box;
}

section {
  overflow-x: hidden;
  width: 100%;
}

/* S'assurer que tous les conteneurs sont centrés */
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl,
.max-w-xl {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 640px) {

  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl,
  .max-w-3xl,
  .max-w-2xl,
  .max-w-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Optimisation images pour mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .section-appear img {
    display: block !important;
  }

  /* Ajustement padding sections sur mobile */
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Espacement réduit entre éléments sur mobile */
  .grid {
    gap: 1.5rem;
  }
}

.preloader {
  position: fixed;
  inset: 0;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.glass-nav {
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gradient-text {
  background: #1D4ED8;
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  position: relative;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Effet de brillance sur le gradient text */
.gradient-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Compteur animé */
.counter {
  display: inline-block;
}

/* Boutons primaires - Bleu corporate */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #1D4ED8;
  color: #fff;
}

.btn-primary:hover {
  background: #1E40AF;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(29, 78, 216, 0.4);
}

/* Animation subtile au scroll - contenu visible immédiatement */
.section-appear {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation uniquement pour les éléments sous le fold */
.section-appear[data-animate] {
  opacity: 0;
  transform: translateY(24px);
}

.section-appear.visible {
  opacity: 1;
  transform: none;
}

/* Simple hover effect on cards */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Particules premium animées en arrière-plan */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #1D4ED8;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
  will-change: transform, opacity;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(100px, -100px) scale(1.2);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50px, -200px) scale(0.8);
    opacity: 0.6;
  }

  75% {
    transform: translate(-150px, -50px) scale(1.1);
    opacity: 0.7;
  }
}


/* ============================================
   PREMIUM POLISH (Scrollbar, Transitions)
   ============================================ */

/* 1. Custom Scrollbar (Premium Feel) */
/* ============================================
   PREMIUM "SITE DE FOU" STYLES
   ============================================ */

/* Luxe Scrollbar - Unified */

/* 2. Card Gradient Border & Glow */
.card-gradient-border {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  z-index: 1;
}

.card-gradient-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: #1D4ED8;
  background-size: 200% 200%;
  border-radius: 1.1rem;
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  animation: gradientMove 3s ease infinite;
}

.card-gradient-border:hover::before {
  opacity: 1;
  filter: blur(8px);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 3. Footer Links Magic */
footer a:not(.btn-primary) {
  position: relative;
  transition: color 0.3s ease;
}

footer a:not(.btn-primary):hover {
  color: #2563EB;
  padding-left: 4px;
}

/* Page Transitions (Smooth Fade In) */
body {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* 3. Smooth Anchor Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Color - Unified (see earlier definition) */

/* ============================================
   GLOBAL UTILITIES (Scroll Top, Skip Link)
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10001;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #2563EB;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
}

.scroll-top svg {
  margin: 0 auto;
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #1D4ED8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }

  .scroll-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   NAVIGATION - Mobile Menu & Glass Nav
   ============================================ */

/* Glass Navigation */
.glass-nav {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Button - Hidden on desktop by default */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  right: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Active Navigation Link */
.nav-link-active {
  position: relative;
  color: #2563EB !important;
  font-weight: 700;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1D4ED8;
  border-radius: 2px;
}

/* Navigation link hover underline */
nav a:not(.btn-primary):not(.nav-link-active) {
  position: relative;
}

nav a:not(.btn-primary):not(.nav-link-active)::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1D4ED8;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

nav a:not(.btn-primary):not(.nav-link-active):hover::after {
  width: 80%;
}

/* Skip Link - See earlier definition */

/* Button Styles */
.btn-secondary {
  border: 1.5px solid #E5E7EB;
  color: #1F2937;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  border-color: #111;
  background: #111;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

/* Text accent */
.gradient-text {
  color: #1D4ED8;
}

/* Parallax Image */
.parallax-image {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Image Hover Effect */
.image-hover {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
}

/* 5. Alive UI Styles */
.pulse-active {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ============================================
   ULTRA PREMIUM WOW EFFECTS 2025
   ============================================ */

/* Animated Gradient Background for sections */
.gradient-bg-animated {
  background: #1D4ED8;
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glowing Border Animation */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: #1D4ED8;
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(15px);
}

.glow-border:hover::before {
  opacity: 0.7;
  animation: glowRotate 4s linear 1 forwards;
}

@keyframes glowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Premium Shine Effect on Cards */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}

.shine-effect:hover::after {
  transform: rotate(45deg) translateX(100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ultra Glass Effect */
.ultra-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 80px rgba(255, 255, 255, 0.1);
}

/* Neon Glow Text */
.neon-text {
  text-shadow:
    0 0 10px rgba(37, 99, 235, 0.5),
    0 0 20px rgba(37, 99, 235, 0.3),
    0 0 40px rgba(37, 99, 235, 0.2);
}

/* Morphing Background Blob */
.morph-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.08));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphBlob 8s ease-in-out infinite;
  filter: blur(60px);
  pointer-events: none;
}

@keyframes morphBlob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
    transform: rotate(180deg) scale(1.1);
  }
  75% {
    border-radius: 40% 30% 60% 50% / 60% 50% 30% 40%;
  }
}

/* Liquid Button Effect */
.btn-liquid {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-liquid::before {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-liquid:hover::before {
  width: 400px;
  height: 400px;
}

/* Floating Animation for Icons */
.float-icon {
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Premium Card with Inner Shadow */
.card-inner-glow {
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.1),
    inset 0 -80px 80px -80px rgba(37, 99, 235, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner-glow:hover {
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.2),
    inset 0 -80px 80px -80px rgba(37, 99, 235, 0.1);
}

/* Stagger Animation for Lists */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-reveal.visible > *:nth-child(1) { animation: staggerIn 0.6s 0.1s forwards; }
.stagger-reveal.visible > *:nth-child(2) { animation: staggerIn 0.6s 0.2s forwards; }
.stagger-reveal.visible > *:nth-child(3) { animation: staggerIn 0.6s 0.3s forwards; }
.stagger-reveal.visible > *:nth-child(4) { animation: staggerIn 0.6s 0.4s forwards; }
.stagger-reveal.visible > *:nth-child(5) { animation: staggerIn 0.6s 0.5s forwards; }
.stagger-reveal.visible > *:nth-child(6) { animation: staggerIn 0.6s 0.6s forwards; }
.stagger-reveal.visible > *:nth-child(7) { animation: staggerIn 0.6s 0.7s forwards; }
.stagger-reveal.visible > *:nth-child(8) { animation: staggerIn 0.6s 0.8s forwards; }

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

/* Pulsing Dot Indicator */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

/* Text Gradient Animation */
.text-gradient-animate {
  background: linear-gradient(
    90deg,
    #2563EB,
    #1D4ED8,
    #3B82F6,
    #2563EB
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
  to {
    background-position: 200% center;
  }
}

/* Hover Lift with Reflection */
.lift-reflection {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift-reflection::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
  filter: blur(10px);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift-reflection:hover {
  transform: translateY(-15px);
}

.lift-reflection:hover::after {
  bottom: -30px;
  opacity: 0.5;
  filter: blur(15px);
}

/* Spotlight Effect on Hover */
.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--color-primary);
  white-space: nowrap;
  animation:
    typing 3.5s steps(40, end),
    blinkCursor 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--color-primary); }
}

/* Noise Texture Overlay */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Animated Underline */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1D4ED8;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.animated-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Icon Bounce on Hover */
.icon-bounce:hover svg,
.icon-bounce:hover .icon {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

/* Premium Focus Ring */
.focus-ring:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.3),
    0 0 20px rgba(37, 99, 235, 0.2);
}

/* Scroll Snap for Sections */
@media (min-width: 1024px) {
  .scroll-snap-container {
    scroll-snap-type: y proximity;
  }

  .scroll-snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* Enhanced Stats Counter Glow */
.counter-glow {
  text-shadow:
    0 0 30px rgba(37, 99, 235, 0.3),
    0 0 60px rgba(37, 99, 235, 0.2);
}

/* Border Beam Animation */
.border-beam {
  position: relative;
  overflow: hidden;
}

.border-beam::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    #2563EB 50%,
    transparent 60%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderBeam 3s linear infinite;
  border-radius: inherit;
}

@keyframes borderBeam {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Service Step Arrow Enhancement */
.service-step {
  position: relative;
}

.service-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(37, 99, 235, 0.02) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

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

/* ============================================
   ENHANCED FAQ STYLES
   ============================================ */

details summary {
  cursor: pointer;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary svg {
  transform: rotate(45deg);
}

details summary svg {
  transition: transform 0.2s ease-out;
}

/* Better focus states for details */
details summary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

/* ============================================
   ENHANCED FORM STYLES
   ============================================ */

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #111 !important;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Contain paint for performance */
.card-hover,
.card-premium {
  contain: layout style;
}

/* GPU acceleration hints */
.logo-marquee-track,
.parallax-image,
#hero-image {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ============================================
   HERO IMAGE - Clean style for transparent PNGs
   ============================================ */

.hero-image-container {
  position: relative;
  overflow: visible;
}

.hero-image-container img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-image-container:hover img {
  transform: scale(1.02) translateY(-4px);
}

/* For transparent PNG hero images */
#hero-image {
  background: transparent !important;
  box-shadow: none !important;
}

/* ============================================
   ENHANCED MOBILE EXPERIENCE
   ============================================ */

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    button,
    a.inline-flex {
        min-height: 48px;
        min-width: 48px;
    }

    /* Better mobile menu spacing */
    .mobile-menu a {
        padding: 16px 20px;
        font-size: 1.1rem;
    }

    /* Improved form inputs on mobile */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 14px 16px;
    }

    /* Better card spacing on mobile */
    .card-hover,
    .card-premium {
        padding: 20px;
        margin-bottom: 16px;
    }

    /* Hero section mobile optimization */
    section:first-of-type {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* Reduce hero title on very small screens */
    section:first-of-type h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    section:first-of-type h1 {
        font-size: 1.5rem;
    }

    .text-5xl,
    .text-6xl {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   TOAST NOTIFICATIONS STYLING
   ============================================ */

.toast-notification {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   IMPROVED LOADING STATES
   ============================================ */

.btn-primary.loading,
.btn-secondary.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   BETTER FOCUS INDICATORS
   ============================================ */

/* High visibility focus for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Card focus state */
.card-hover:focus-visible,
.card-premium:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
    transform: translateY(-4px);
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS (WCAG AA)
   ============================================ */

/* Amélioration contraste texte gris */
.text-gray-600,
p.text-gray-600,
span.text-gray-600,
li.text-gray-600 {
    color: #4b5563 !important; /* 7:1 contrast ratio */
}

.text-gray-500 {
    color: #6b7280 !important; /* Use only for large text (18px+) */
}

/* Labels de formulaire */
label,
.label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Checkbox et radio plus grands pour mobile */
input[type="checkbox"],
input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }
}

/* Skip link visible au focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    z-index: 10001;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

/* Liens avec indicateur visuel */
a:not(.btn-primary):not(.btn-secondary):not(.nav-link) {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:not(.btn-primary):not(.btn-secondary):hover {
    text-decoration: underline;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Optimiser le rendu */
.card-hover,
.card-premium,
.btn-primary,
.btn-secondary {
    will-change: transform;
    transform: translateZ(0);
}

/* Réduire les animations sur mobile pour économiser batterie */
@media (max-width: 768px) {
    .particles-bg {
        display: none;
    }

    .card-hover:hover,
    .card-premium:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }

    /* Désactiver parallax sur mobile */
    [data-parallax] {
        transform: none !important;
    }
}

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

    .section-appear {
        opacity: 1 !important;
        transform: none !important;
    }

    .particles-bg,
    .cursor-glow {
        display: none !important;
    }
}

/* ============================================
   DARK MODE (Désactivé - mode clair forcé)
   ============================================ */

/* ============================================
   LOGOS TRANSPARENCE (fond blanc invisible)
   ============================================ */
.logo-item {
    background: transparent !important;
}

.logo-item img {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

nav img[src*="logo"],
.preloader img[src*="logo"],
footer img[src*="logo"] {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

/* ============================================
   FORM IMPROVEMENTS
   ============================================ */

/* Inputs plus accessibles */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 12px 16px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Placeholder plus visible */
::placeholder {
    color: var(--color-gray-400);
    opacity: 1;
}

/* Error states */
.input-error {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.input-success {
    border-color: var(--color-success) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

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

/* Screen reader 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;
}

/* Visible on focus (for skip links) */
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   Brand Logos
   ============================================ */
.brand-logo {
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   END OF STYLES
   ============================================ */