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

/* === CSS Variables === */
:root {
  /* Colors */
  --color-primary: #0070F3;
  --color-primary-dark: #0051b3;
  --color-secondary: #7928CA;
  --color-accent: #FF0080;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Neutrals */
  --color-black: #000000;
  --color-gray-900: #111111;
  --color-gray-800: #1a1a1a;
  --color-gray-700: #333333;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-white: #ffffff;
  --color-bg: #FAFAFA;

  /* 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(0, 112, 243, 0.15), rgba(121, 40, 202, 0.15));

  /* 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(0, 112, 243, 0.15);
  --shadow-glow-purple: 0 0 40px rgba(121, 40, 202, 0.15);

  /* 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(0, 112, 243, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 112, 243, 0.5), 0 0 60px rgba(121, 40, 202, 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 infinite;
}

/* 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 */
.text-gray-500 {
  color: #525252 !important;
  /* Improved contrast */
}

.text-gray-600 {
  color: #404040 !important;
  /* Improved contrast */
}

/* 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 */
@media (prefers-reduced-motion: reduce) {

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

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .section-appear {
    opacity: 1 !important;
    transform: none !important;
    filter: none !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(0, 112, 243, 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: linear-gradient(135deg, #0070F3 0%, #7928CA 50%, #0070F3 100%);
  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;
}

/* Effet de lumière premium sur les boutons */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
}

.btn-primary::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;
}

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

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Animation premium au scroll avec effet de profondeur */
.section-appear {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
  filter: blur(3px);
}

.section-appear.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Glow effect premium sur les cartes au hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  filter: blur(12px);
}

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

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 30px rgba(59, 130, 246, 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: linear-gradient(135deg, #0070F3, #7928CA);
  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
   ============================================ */

/* 1. Luxe Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #FAFAFA;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  border-radius: 5px;
  border: 2px solid #FAFAFA;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
}

/* 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: linear-gradient(45deg, #0070F3, #7928CA, #FF0080);
  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: #0070F3;
  padding-left: 4px;
}

/* 4. Text Selection */
::selection {
  background: #0070F3;
  /* Brand Blue */
  color: white;
}


/* 2. 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;
}

/* 4. Selection Color (Brand Identity) */
::selection {
  background-color: rgba(59, 130, 246, 0.2);
  /* Blue-500 with opacity */
  color: inherit;
}

/* ============================================
   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: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  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(0, 0, 0, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
  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: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-6px) scale(1.05);
}

@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: #0070F3 !important;
  font-weight: 700;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0070F3, #7928CA);
  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: linear-gradient(90deg, #0070F3, #7928CA);
  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 for Accessibility */
.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;
}

/* Button Styles */
.btn-primary {
  background: #000;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

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

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  border: 1.5px solid #E5E5E5;
  color: #000;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card Hover Effects */
.card-hover {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  will-change: transform, box-shadow;
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px -16px rgba(0, 0, 0, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0070F3 0%, #7928CA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 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(0, 112, 243, 0.3);
}

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