/* ==========================================================================
   BELENIS - SYSTÈME DE DESIGN CSS MODULAIRE
   ========================================================================== */

/* Animations et transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Classes d'animation */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Délais d'animation pour effet séquentiel */
.animation-delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animation-delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}

.animation-delay-600 {
  animation-delay: 0.6s;
  opacity: 0;
}

.animation-delay-800 {
  animation-delay: 0.8s;
  opacity: 0;
}

/* Utility: Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Variables CSS personnalisées - Système HSL moderne inspiré de belenis-build-brilliance */
:root {
  /* === CHARTE GRAPHIQUE BELENIS === */
  /* Couleurs officielles:
     - Jaune: #F5F2B8
     - Bleu grisé: #809DB1
     - Bleu marine: #2C4266
  */
  
  /* Palette HSL professionnelle */
  --background: 0 0% 100%;
  --foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 15%;
  
  /* Bleu marine primary (#2C4266) */
  --primary: 215 40% 29%;
  --primary-foreground: 0 0% 100%;
  
  /* Bleu grisé secondary (#809DB1) */
  --secondary: 203 23% 60%;
  --secondary-foreground: 215 25% 15%;
  --muted: 210 15% 96%;
  --muted-foreground: 215 15% 45%;
  
  /* Jaune clair (#F5F2B8) - pour logos et fonds */
  --accent: 56 73% 84%;
  --accent-foreground: 215 25% 15%;
  
  /* Jaune or (#dcb973 / hsl(42, 85%, 55%)) - pour textes et éléments sur fond clair */
  --accent-dark: 42 60% 55%;
  --accent-dark-foreground: 215 25% 15%;
  
  /* États et interactions */
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 215 50% 25%;
  --radius: 0.5rem;

  /* Couleurs complémentaires pour compatibilité */
  --color-primary: hsl(var(--primary));
  --color-accent: hsl(var(--accent));
  --color-accent-dark: hsl(var(--accent-dark));
  --color-secondary: hsl(var(--secondary));
  --color-background: hsl(210, 20%, 98%);
  --color-muted: hsl(var(--muted-foreground));
  --color-hover: hsl(42 60% 50%);
  --color-elegant-gray: hsl(210, 20%, 96%);
  --color-warm-white: hsl(210, 25%, 97%);

  /* Typographie moderne - Police plus élégante */
  --font-display: 'Lora', 'Georgia', serif;
  --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
  
  /* Espacement responsive */
  --section-padding: clamp(2rem, 5vw, 4rem) 0;
  --container-padding: 0 clamp(1rem, 3vw, 1.5rem);
  
  /* Ombres modernes avec profondeur */
  --shadow-elegant: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-elegant-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions fluides */
  --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Gradients modernes */
  --gradient-overlay: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(215 45% 35%) 50%, hsl(var(--accent) / 0.1) 100%);
  --gradient-card: linear-gradient(145deg, hsl(var(--background)) 0%, hsl(var(--secondary)) 100%);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
  font-family: var(--font-sans);
  background-color: #FFFFFF;
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.025em;
}

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

/* Animations modernes inspirées de belenis-build-brilliance */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Classes d'animation */
.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out;
}

.animate-slide-in-right {
  animation: slide-in-right 0.6s ease-out;
}

/* Styles pour les titres de section */
.section-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: hsl(215, 40%, 29%) !important;
  font-family: var(--font-display);
}

.section-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Badges de section - styles adaptatifs selon le fond */
.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

/* Badge pour fond sombre (ex: bg-primary) */
.section-badge--dark {
  background-color: rgba(255, 255, 255,animate-fade-in-up 0.15);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}

.section-badge--dark:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Badge pour fond clair (ex: bg-white ou bg-gray) */
.section-badge--light {
  background-color: hsla(var(--accent), 0.1);
  backdrop-filter: blur(10px);
  color: hsl(var(--accent));
  border-color: hsla(var(--accent), 0.2);
}

.section-badge--light:hover {
  background-color: hsla(var(--accent), 0.15);
  border-color: hsla(var(--accent), 0.3);
}

/* Badge pour fond neutre (style par défaut) */
.section-badge--neutral {
  background-color: hsla(var(--primary), 0.1);
  backdrop-filter: blur(10px);
  color: hsl(var(--primary));
  border-color: hsla(var(--primary), 0.2);
}

.section-badge--neutral:hover {
  background-color: hsla(var(--primary), 0.15);
  border-color: hsla(var(--primary), 0.3);
}

/* Délais d'animation pour effet séquentiel */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   COMPOSANTS UI
   ========================================================================== */

/* Boutons modernes inspirés de belenis-build-brilliance */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(215 50% 25%) 0%, hsl(215 50% 35%) 100%);
  color: #FFF !important;
  border-color: hsl(var(--primary));
  box-shadow: 0 4px 12px rgba(32, 58, 96, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(215 50% 35%) 0%, hsl(215 50% 45%) 100%);
  color: #FFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 58, 96, 0.3);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-accent {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
  box-shadow: 0 4px 12px rgba(220, 185, 115, 0.25);
}

.btn-accent:hover {
  background-color: hsl(42 85% 50%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 185, 115, 0.35);
}

.btn-outline {
  border-color: hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

/* Tailles de boutons */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Bouton avec icône */
.btn-icon {
  padding: 0.75rem;
  aspect-ratio: 1;
}

.btn-outline-light:hover {
  border-color: var(--color-accent);
  background-color: rgba(217, 120, 83, 0.1);
  color: white;
}

/* Cards */
.card {
  background-color: var(--color-warm-white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  border: 1px solid rgba(75, 85, 99, 0.1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant-lg);
}

.card-primary {
  background-color: var(--color-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.card-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(217, 120, 83, 0.1);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

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

.hero-section {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 5rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.05);
}

.section {
  padding: var(--section-padding);
}

.section-bg {
  background-color: var(--color-background);
  color: hsl(var(--foreground));
}

.section-elegant {
  background-color: var(--color-elegant-gray);
  color: hsl(var(--foreground));
}

/* Classes pour garantir un contraste optimal - Textes plus doux */
.text-readable {
  color: hsl(215 20% 25%) !important;
}

.text-readable-muted {
  color: hsl(215 15% 55%) !important;
}

.bg-safe-light {
  background-color: var(--color-background);
  color: hsl(var(--foreground));
}

.bg-safe-dark {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Assurer que le texte reste lisible sur les fonds clairs */
.section-bg .text-gray-700,
.section-elegant .text-gray-700,
.bg-white .text-gray-700 {
  color: hsl(var(--foreground)) !important;
}

.section-bg .text-gray-600,
.section-elegant .text-gray-600,
.bg-white .text-gray-600 {
  color: hsl(var(--muted-foreground)) !important;
}

/* Règles de sécurité pour tous les éléments sur fond blanc */
.bg-white {
  color: hsl(var(--foreground)) !important;
}

.bg-white * {
  color: inherit;
}

.bg-white .text-white {
  color: white !important;
}

.bg-white .text-primary {
  color: hsl(var(--primary)) !important;
}

.bg-white .text-accent {
  color: hsl(var(--primary)) !important;
}

/* Classes SVG pour garantir la visibilité */
.svg-visible {
  color: hsl(var(--primary)) !important;
}

.svg-success {
  color: hsl(142, 76%, 36%) !important; /* Vert visible */
}

.svg-info {
  color: hsl(var(--primary)) !important;
}

.svg-accent {
  color: hsl(221.2, 83.2%, 53.3%) !important;
}

/* Règles SVG par priorité de spécificité */

/* 1. SVG dans les conteneurs à fond dégradé - BLANC */
.bg-gradient-to-br svg,
[class*="bg-gradient"] svg,
.bg-primary svg {
  color: white !important;
}

/* 2. SVG dans les badges de section - COULEUR BADGE */
.section-badge svg {
  color: currentColor !important;
}

/* 3. SVG dans les sections avec fond clair - BLEU PRIMAIRE */
.section-bg svg:not(.bg-gradient-to-br svg):not(.section-badge svg),
.section-elegant svg:not(.bg-gradient-to-br svg):not(.section-badge svg),
.bg-white svg:not(.bg-gradient-to-br svg):not(.section-badge svg) {
  color: hsl(var(--primary)) !important;
}

/* 4. Couleurs d'accent spécifiques */
.section-bg .text-accent,
.section-elegant .text-accent,
.bg-white .text-accent {
  color: hsl(var(--accent)) !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  background-color: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-elegant);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(75, 85, 99, 0.1);
}

.nav-link {
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  inset: 0;
}

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--color-accent);
  width: 2rem;
  border-radius: 1rem;
}

/* ==========================================================================
   UTILITÉS
   ========================================================================== */

.text-gradient {
  background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.elegant-shadow {
  box-shadow: var(--shadow-elegant);
}

.elegant-shadow-lg {
  box-shadow: var(--shadow-elegant-lg);
}

.smooth-transition {
  transition: var(--transition-smooth);
}

.elegant-hover {
  transition: var(--transition-smooth);
}

.elegant-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant-lg);
}

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

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   SERVICES CARDS SPÉCIFIQUES
   ========================================================================== */

.service-card {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.service-card .icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-fast);
}

.service-card:hover .icon {
  background-color: var(--color-hover);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.service-card:hover h3 {
  color: var(--color-accent);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.service-list li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--color-accent);
  transform: translateX(0.25rem);
}

/* ==========================================================================
   STATISTIQUES
   ========================================================================== */

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

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.stat-label {
  color: rgba(156, 163, 175, 1);
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background-color: rgba(217, 120, 83, 0.15);
  border: 1px solid rgba(217, 120, 83, 0.25);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.badge-text {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* ==========================================================================
   FORMULAIRES
   ========================================================================== */

.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(217, 120, 83, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-checkbox {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  border-radius: 0.25rem;
}

/* ==========================================================================
   LAYOUT SPÉCIALISÉS
   ========================================================================== */

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-left {
  order: 1;
}

.content-right {
  order: 2;
}

/* Carousel amélioré */
.carousel-wrapper {
  position: relative;
}

.carousel-content {
  text-align: center;
  margin-bottom: 2rem;
}

.carousel-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.carousel-separator {
  width: 3rem;
  height: 1px;
  background-color: var(--color-accent);
  margin: 0 auto;
}

.carousel-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  transform: translateY(1rem);
  opacity: 0;
  transition: var(--transition-smooth);
}

.carousel-slide:hover .carousel-overlay {
  transform: translateY(0);
  opacity: 1;
}

.carousel-info {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 1rem;
  box-shadow: var(--shadow-elegant);
}

.carousel-project-title {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.carousel-project-details {
  font-size: 0.875rem;
  color: var(--color-muted);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   COMPOSANTS MODERNES INSPIRÉS DE BELENIS-BUILD-BRILLIANCE
   ========================================================================== */

/* Cartes modernes avec effets hover */
.modern-card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-card);
  position: relative;
}

.modern-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.modern-card-header {
  position: relative;
  height: 12rem;
  overflow: hidden;
  background: var(--gradient-card);
}

.modern-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition-smooth);
}

.modern-card:hover .modern-card-image {
  transform: scale(1.05);
}

.modern-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.8), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.modern-card:hover .modern-card-overlay {
  opacity: 1;
}

.modern-card-content {
  padding: 1.5rem;
}

.modern-card-content > * + * {
  margin-top: 1rem;
}

.modern-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.modern-card-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modern-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.modern-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.modern-card-link:hover {
  color: hsl(var(--accent));
  transform: translateX(2px);
}

.modern-card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.5rem;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-fast);
}

.modern-card:hover .modern-card-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Header moderne avec effet de scroll unifié pour tout le site */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #3a5a8a38;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo moderne sans carré bleu */
.logo-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon span {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(135deg, #fcfaad 0%, rgb(240, 239, 180) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(32, 58, 96, 0.1);
}

/* Style du logo quand le header a scrollé */
.modern-header.scrolled .logo-icon span {
  background: linear-gradient(135deg, #203a60 0%, #4a6a9a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation avec meilleure lisibilité */
.modern-nav-link {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modern-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  transform: translateY(-1px);
}

.modern-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Navigation quand le header a scrollé */
.modern-header.scrolled .modern-nav-link {
  color: #203a60;
  text-shadow: none;
}

.modern-header.scrolled .modern-nav-link:hover {
  background: rgba(74, 106, 154, 0.12);
  color: hsl(215, 45%, 35%);
}

.modern-header.scrolled .modern-nav-link.active {
  background: rgba(74, 106, 154, 0.12);
  color: hsl(215, 45%, 35%);
}

/* Bouton Contact dans le header */
.modern-header .btn-primary {
  background: linear-gradient(135deg, #203a60 0%, #4a6a9a 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(32, 58, 96, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header .btn-primary:hover {
  background: linear-gradient(135deg, #4a6a9a 0%, #203a60 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 58, 96, 0.35);
}

.modern-header.scrolled .btn-primary {
  background: linear-gradient(135deg, #203a60 0%, #4a6a9a 100%);
  box-shadow: 0 4px 12px rgba(32, 58, 96, 0.25);
}

/* Mobile menu improvements */
.modern-header #mobile-menu-btn {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 6px;
}

.modern-header.scrolled #mobile-menu-btn {
  color: #203a60;
  background: rgba(32, 58, 96, 0.1);
  border: 1px solid rgba(32, 58, 96, 0.2);
}

/* Menu mobile moderne */
.modern-header #mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
}

.modern-header #mobile-menu a {
  color: #203a60;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modern-header #mobile-menu a:hover {
  background: rgba(32, 58, 96, 0.1);
  color: #203a60;
}

.modern-header #mobile-menu a.bg-primary {
  background: linear-gradient(135deg, #203a60 0%, #4a6a9a 100%);
  color: white;
}

@media (max-width: 1024px) {
  .modern-header .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .modern-header nav {
    margin-right: 0;
  }
}

/* Sections Hero modernes */
.modern-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.modern-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: fade-in 2s ease-out;
}

.modern-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: hsl(var(--primary-foreground));
  max-width: 4xl;
  margin: 0 auto;
  padding: 0 1rem;
}

.modern-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--accent) / 0.15);
  border: 1px solid hsl(var(--accent) / 0.25);
  border-radius: 9999px;
  color: hsl(var(--accent));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.modern-hero-title {
  font-size: clamp(1.58rem, 4.4vw, 2.86rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white 20%, hsl(var(--accent)) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

.modern-hero-description {
  font-size: clamp(1.58rem, 3.2vw, 2.09rem);
  line-height: 1.6;
  color: hsl(var(--primary-foreground) / 0.9);
  max-width: 2xl;
  margin: 0 auto 2rem;
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

.modern-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fade-in-up 0.8s ease-out 0.8s both;
}

/* ------------------------------------------------------------------
   Split Hero avec background diagonal et slideshow d'images
   ------------------------------------------------------------------ */
.split-hero {
  position: relative;
  width: 100%;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

/* Fond avec dégradé élégant - au-dessus des images */
.split-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  background: linear-gradient(115deg, 
    #203a60 0%,
    #2c4a75 20%,
    #3a5a8a 40%,
    #4a6a9a 70%,
    rgba(32, 58, 96, 0.95) 100%
  );
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 2;
}

/* Images de background pour la partie droite - DERRIÈRE tout */
.split-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 5s;
  z-index: 1; /* Tout en arrière */
}

.split-hero-bg.active {
  opacity: 1; /* Image bien visible dans la partie non couverte */
}

/* Container pour le contenu texte - AU-DESSUS de tout */
.split-hero-content {
  position: relative;
  z-index: 10;
  width: 55%;
  padding: clamp(6rem, 6vw, 4rem) clamp(8rem, 6vw, 4rem) clamp(4rem, 4vw, 2rem);
  margin-left: clamp(8rem, 5vw, 6rem);
  color: hsl(0 0% 95%);
}

/* Amélioration de la lisibilité des textes */
.split-hero-content .hero-badge {
  background: linear-gradient(135deg, 
    rgba(220, 185, 115, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(220, 185, 115, 0.3);
  backdrop-filter: blur(12px);
  color: #dcb973;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.split-hero-content .hero-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  line-height: 1.1;
  color: hsl(0 0% 98%);
}

.split-hero-content .hero-desc {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 2rem 0;
  font-size: 1.1rem;
  font-weight: 400;
}

.split-hero-content .gradient-text {
  background: linear-gradient(135deg, 
    #dcb973 0%,
    #f4d03f 30%,
    #f7dc6f  60%,
    #dcb973 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  font-weight: 700;
}

/* Boutons élégants pour le hero */
.split-hero-content .btn-accent {
  background: linear-gradient(135deg, #dcb973 0%, #f4d03f 100%);
  color: #2c3e50;
  border: none;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(220, 185, 115, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-hero-content .btn-accent:hover {
  background: linear-gradient(135deg, #f4d03f 0%, #dcb973 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 185, 115, 0.4);
}

.split-hero-content .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(12px);
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-hero-content .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

/* Animation des carrés qui tournent */
.split-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3; /* Au-dessus du fond mais sous le contenu */
  background-image: 
    radial-gradient(2px 2px at 20% 30%, hsl(var(--accent)) 50%, transparent 50%),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 20%, hsl(var(--accent)) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 90% 80%, hsl(var(--accent)) 50%, transparent 50%);
  background-repeat: no-repeat;
  animation: floating-squares 20s infinite linear;
}

@keyframes floating-squares {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateY(-10px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
  }
}

/* Carrés animés individuels pour plus de dynamisme */
.rotating-squares {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #dcb973, #f4d03f);
  animation: elegant-float 12s infinite ease-in-out;
  opacity: 0.4;
  z-index: 3;
  border-radius: 2px;
  left:220px;
  top:230px;
}

.rotating-squares:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 16s;
}

.rotating-squares:nth-child(2) {
  top: 60%;
  left: 25%;
  animation-delay: -3s;
  animation-duration: 14s;
  transform: scale(0.7);
}

.rotating-squares:nth-child(3) {
  top: 40%;
  left: 45%;
  animation-delay: -6s;
  animation-duration: 18s;
  transform: scale(1.1);
}

.rotating-squares:nth-child(4) {
  top: 75%;
  left: 35%;
  animation-delay: -9s;
  animation-duration: 13s;
  transform: scale(0.5);
}

@keyframes elegant-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-8px) rotate(180deg);
    opacity: 0.4;  
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 0.7;
  }
}

/* Responsive : stack vertical on small screens */
@media (max-width: 900px) {
  .split-hero {
    min-height: 55vh;
  }
  
  .split-hero::before {
    width: 100%;
    background: linear-gradient(170deg, 
      #203a60 0%,
      #2c4a75 30%,
      #3a5a8a 60%,
      rgba(32, 58, 96, 0.98) 100%
    );
    clip-path: polygon(0 0, 100% 0, 100% 65%, 0 70%);
  }
  
  .split-hero-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding: 3.5rem 1rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .split-hero-content .hero-badge {
    background: rgba(32, 58, 96, 0.9) !important;
    border: 1px solid rgba(220, 185, 115, 0.5) !important;
    backdrop-filter: blur(16px);
  }
  
  .split-hero-content .hero-title {
    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.8) !important;
    background: rgba(32, 58, 96, 0.7);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(12px);
  }
  
  .split-hero-content .hero-desc {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8) !important;
    background: rgba(32, 58, 96, 0.7);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(12px);
  }
  
  .split-hero-bg {
    width: 100%;
    top: 65%;
    height: 35%;
    opacity: 0.3;
  }
}


/* Grid de services moderne */
.modern-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Indicateurs de progression/stats modernes */
.modern-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* Styles pour la page Innovation */
.accent-bright {
  --accent-bright: 42 90% 65%;
}

.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-accent {
  --tw-gradient-from: hsl(var(--accent));
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-accent-bright {
  --tw-gradient-to: hsl(42 90% 65%);
}

.from-blue-50\/30 {
  --tw-gradient-from: rgba(239, 246, 255, 0.3);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.to-accent\/5 {
  --tw-gradient-to: hsla(var(--accent), 0.05);
}

.via-transparent {
  --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to);
}

.via-accent-bright {
  --tw-gradient-stops: var(--tw-gradient-from), hsl(42 90% 65%), var(--tw-gradient-to);
}

.to-primary {
  --tw-gradient-to: hsl(var(--primary));
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-50 {
  opacity: 0.5;
}

.blur-xl {
  filter: blur(24px);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

.bg-white\/95 {
  background-color: rgba(255, 255, 255, 0.95);
}

.border-accent\/40 {
  border-color: hsla(var(--accent), 0.4);
}

.border-accent\/20 {
  border-color: hsla(var(--accent), 0.2);
}

.bg-accent\/10 {
  background-color: hsla(var(--accent), 0.1);
}

.bg-accent\/20 {
  background-color: hsla(var(--accent), 0.2);
}

.text-accent {
  color: hsl(var(--accent));
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-bold {
  font-weight: 700;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Amélioration des grids responsive */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\\:grid-cols-2 {
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.md\\:grid-cols-4 {
  @media (min-width: 768px) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lg\\:grid-cols-2 {
  @media (min-width: 1024px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Utilitaires de positionnement */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.-inset-1 {
  top: -0.25rem;
  right: -0.25rem;
  bottom: -0.25rem;
  left: -0.25rem;
}

/* Responsive spacing */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Amélioration des tailles d'icônes */
.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-20 {
  width: 5rem;
}

.h-20 {
  height: 5rem;
}

/* Couleurs de texte */
.text-gray-600 {
  color: #6b7280;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-500 {
  color: #9ca3af;
}

/* Flex utilities */
.flex-shrink-0 {
  flex-shrink: 0;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.leading-snug {
  line-height: 1.375;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Margin utilities */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Padding utilities */
.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

/* Text sizing */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

/* Border utilities */
.border-2 {
  border-width: 2px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-t {
  border-top-width: 1px;
}

/* Max width utilities */
.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

/* Background utilities */
.bg-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-white {
  background-color: #ffffff;
}

.modern-stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: var(--transition-fast);
}

.modern-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.modern-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--accent));
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.modern-stat-label {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* Classes utilitaires modernes */
.backdrop-blur {
  backdrop-filter: blur(10px);
}

.text-balance {
  text-wrap: balance;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent-dark)) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive pour les composants modernes */
@media (max-width: 768px) {
  .modern-services-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modern-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .modern-hero-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    margin-bottom: 0.75rem;
  }
  
  .modern-hero-description {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
  }
}

/* Images placeholder avec gradient moderne */
.placeholder-image {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  font-weight: 600;
}

.placeholder-image::before {
  content: '🏗️';
  font-size: 3rem;
  opacity: 0.8;
}

/* Carrousel miniature de réalisations */
.realisations-mini-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.realisations-mini-track {
  display: flex;
  gap: 12px;
  animation: scroll-mini-carousel 40s linear infinite;
  width: max-content;
}

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

.realisation-mini-item {
  flex: 0 0 200px;
  display: block;
}

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