/* Variables CSS avec palette gris-jaune dominante */
:root {
  /* Palette principale - Gris et Jaune dominants */
  --primary-color: #d4a574; /* Jaune/Orange doré */
  --primary-dark: #b8935f; /* Version plus foncée du doré */
  --secondary-color: #4a5568; /* Gris anthracite */
  --secondary-dark: #2d3748; /* Gris très foncé */
  --accent-color: #f6ad55; /* Orange accent */
  --accent-light: #fed7aa; /* Orange clair */

  /* Couleurs de texte */
  --text-dark: #2d3748; /* Gris foncé pour le texte principal */
  --text_light: #718096; /* Gris moyen pour le texte secondaire */
  --text-muted: #a0aec0; /* Gris clair pour le texte discret */

  /* Couleurs de fond */
  --bg-primary: #ffffff; /* Blanc pur */
  --bg-secondary: #f7fafc; /* Gris très clair */
  --bg-tertiary: #edf2f7; /* Gris clair */
  --bg-dark: #2d3748; /* Fond sombre */

  /* Couleurs d'état - Minimiser le bleu */
  --success-color: #48bb78; /* Vert pour succès */
  --warning-color: var(--accent-color); /* Orange pour avertissement */
  --error-color: #f56565; /* Rouge pour erreur */
  --info-color: var(--secondary-color); /* Gris au lieu de bleu pour info */

  /* Ombres */
  --shadow-light: 0 1px 3px 0 rgba(45, 55, 72, 0.1);
  --shadow-medium: 0 4px 6px -1px rgba(45, 55, 72, 0.1);
  --shadow-heavy: 0 20px 25px -5px rgba(45, 55, 72, 0.1);
  --shadow-colored: 0 10px 25px -5px rgba(212, 165, 116, 0.3);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  position: relative;
}

.loading-circle {
  animation: loading-spin 2s linear infinite;
  stroke: var(--primary-color);
}

.loading-text {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  animation: fade-in 1s ease 0.5s forwards;
}

@keyframes loading-spin {
  0% {
    stroke-dashoffset: 283;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -283;
  }
}

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

/* Navigation Styles */
#main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Magnetic Button Effect */
.magnetic-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.magnetic-btn::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.5s;
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 30px;
  justify-content: space-around;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 2rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

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

.mobile-menu-cta {
  margin-top: 2rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--secondary-dark); /* Couleur unie au lieu de gradient */
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25px 25px, rgba(212, 165, 116, 0.1) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(212, 165, 116, 0.1) 2px, transparent 0);
  background-size: 100px 100px;
}

.hero-floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: rgba(212, 165, 116, 0.2);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

/* Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

/* Product Cards avec nouvelle palette */
.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.product-card:hover {
  box-shadow: var(--shadow-colored);
  transform: translateY(-10px) !important;
}

/* Service Cards avec couleurs de la palette */
.service-card-primary {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.2) 100%);
  border: 2px solid rgba(212, 165, 116, 0.3);
}

.service-card-primary:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-colored);
}

.service-card-secondary {
  background: linear-gradient(135deg, rgba(74, 85, 104, 0.1) 0%, rgba(74, 85, 104, 0.2) 100%);
  border: 2px solid rgba(74, 85, 104, 0.3);
}

.service-card-secondary:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 10px 25px -5px rgba(74, 85, 104, 0.3);
}

.service-card-accent {
  background: linear-gradient(135deg, rgba(246, 173, 85, 0.1) 0%, rgba(246, 173, 85, 0.2) 100%);
  border: 2px solid rgba(246, 173, 85, 0.3);
}

.service-card-accent:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px -5px rgba(246, 173, 85, 0.3);
}

.service-card-neutral {
  background: linear-gradient(135deg, rgba(160, 174, 192, 0.1) 0%, rgba(160, 174, 192, 0.2) 100%);
  border: 2px solid rgba(160, 174, 192, 0.3);
}

.service-card-neutral:hover {
  border-color: var(--text-muted);
  box-shadow: 0 10px 25px -5px rgba(160, 174, 192, 0.3);
}

/* Flip Card Effect */
.flip-card {
  perspective: 1000px;
  width: 100%;
  height: 300px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

/* Animations CORRIGÉES */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

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

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

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

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

/* Parallax */
.parallax-element {
  will-change: transform;
}

/* Morphing SVG */
.morphing-icon {
  transition: all 0.3s ease;
}

.morphing-icon:hover {
  transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }

  .floating-element {
    display: none;
  }

  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}

/* Utilities avec nouvelle palette */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.shadow-glow-primary {
  box-shadow: var(--shadow-colored);
}

.border-gradient-primary {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--primary-color), var(--primary-dark)) border-box;
}

.border-gradient-secondary {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) border-box;
}

/* Animation pour les éléments flottants */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Améliorations pour les cartes */
.service-card,
.stat-item {
  transition: all 0.3s ease;
  will-change: transform;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.service-card:hover,
.stat-item:hover {
  transform: translateY(-10px) scale(1.02) !important;
}

/* Sections */
.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* Effets de survol pour les icônes */
.icon-hover {
  transition: all 0.3s ease;
}

.icon-hover:hover {
  transform: scale(1.1) rotate(5deg);
}

/* CORRECTIONS SPÉCIFIQUES POUR LES PRODUITS */
.products-grid .product-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* Correction pour les éléments avec data-aos */
[data-aos] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Correction pour les éléments hero */
.hero-title,
.hero-subtitle,
.hero-stats {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Correction pour les filtres */
.category-filter {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.category-filter.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  color: white !important;
  border-color: var(--primary-dark) !important;
}

/* Correction pour les éléments révélés */
.reveal-text {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Correction pour les particules */
.particle {
  opacity: 0.3 !important;
}

/* Correction pour les barres de progression */
.progress-bar {
  opacity: 1 !important;
}

/* Correction pour les éléments de comparaison */
.comparison-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .service-card,
  .product-card {
    padding: 1.5rem;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .floating-element {
    display: none;
  }
}

/* Classes utilitaires pour forcer la visibilité */
.force-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.no-animation {
  animation: none !important;
  transition: none !important;
}

/* Couleurs spécifiques pour les statistiques */
.stat-primary {
  color: var(--primary-color);
}

.stat-secondary {
  color: var(--secondary-color);
}

.stat-accent {
  color: var(--accent-color);
}

.stat-success {
  color: var(--success-color);
}

/* Boutons CTA avec nouvelle palette */
.cta-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-colored);
}

.cta-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.cta-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* =================================
   STYLES POUR LA PAGE SERVICE DETAIL
   ================================= */

/* Hero Section du service */
.service-hero {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 50%, var(--secondary-dark) 100%);
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(246, 173, 85, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 2;
}

.service-hero-visual {
  position: relative;
  z-index: 2;
}

.service-hero-visual::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 2rem;
  opacity: 0.1;
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.2;
  }
}

/* Badge catégorie animé */
.service-hero .inline-flex {
  animation: slideInDown 0.8s ease-out;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
  transition: all 0.3s ease;
}

.service-hero .inline-flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

/* Titre principal avec effet typewriter */
.service-hero h1 {
  animation: slideInLeft 1s ease-out 0.2s both;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.service-hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  animation: expandWidth 1.5s ease-out 1s both;
}

@keyframes expandWidth {
  0% {
    width: 0;
  }
  100% {
    width: 100px;
  }
}

/* Description avec animation */
.service-hero p {
  animation: slideInLeft 1s ease-out 0.4s both;
}

/* Statistiques avec compteurs animés */
.service-hero .grid > div {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out calc(0.6s + var(--delay, 0s)) both;
}

.service-hero .grid > div:nth-child(1) {
  --delay: 0s;
}
.service-hero .grid > div:nth-child(2) {
  --delay: 0.1s;
}
.service-hero .grid > div:nth-child(3) {
  --delay: 0.2s;
}
.service-hero .grid > div:nth-child(4) {
  --delay: 0.3s;
}

.service-hero .grid > div:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Boutons d'action avec effets magnétiques */
.service-hero .flex a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideInUp 1s ease-out 0.8s both;
}

.service-hero .flex a::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.5s ease;
}

.service-hero .flex a:hover::before {
  left: 100%;
}

.service-hero .flex a:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Image du service avec effets */
.service-hero img,
.service-hero .w-full.h-96 {
  transition: all 0.5s ease;
  animation: zoomIn 1s ease-out 0.6s both;
}

.service-hero img:hover,
.service-hero .w-full.h-96:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Tags flottants */
.service-hero .absolute.bottom-4 span {
  animation: float 3s ease-in-out infinite;
  animation-delay: calc(var(--index, 0) * 0.2s);
}

/* =================================
   SECTIONS DE CONTENU
   ================================= */

/* Section Fonctionnalités */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
  border-color: var(--primary-color);
}

.feature-card .w-12 {
  transition: all 0.3s ease;
}

.feature-card:hover .w-12 {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Section Processus avec timeline animée */
.relative .absolute.left-1\/2 {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.relative .space-y-12 > div {
  animation: slideInFromSide 0.8s ease-out both;
  animation-delay: calc(var(--step, 0) * 0.2s);
}

.relative .space-y-12 > div:nth-child(1) {
  --step: 0;
}
.relative .space-y-12 > div:nth-child(2) {
  --step: 1;
}
.relative .space-y-12 > div:nth-child(3) {
  --step: 2;
}
.relative .space-y-12 > div:nth-child(4) {
  --step: 3;
}

@keyframes slideInFromSide {
  0% {
    opacity: 0;
    transform: translateX(var(--direction, 50px));
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.relative .bg-white.rounded-xl {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.relative .bg-white.rounded-xl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(246, 173, 85, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.relative .bg-white.rounded-xl:hover::before {
  opacity: 1;
}

.relative .bg-white.rounded-xl:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Numéros d'étapes avec animation */
.relative .absolute.-right-4,
.relative .absolute.-left-4 {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  animation: bounceIn 0.6s ease-out both;
  animation-delay: calc(var(--step, 0) * 0.3s);
}

.relative .absolute.-right-4:hover,
.relative .absolute.-left-4:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section Statistiques avec compteurs */
.stat-item {
  animation: countUp 2s ease-out both;
  animation-delay: calc(var(--index, 0) * 0.2s);
}

.stat-item .text-5xl {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Cartes d'avis avec effets */
.review-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(246, 173, 85, 0.05) 100%);
  border-radius: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

/* Étoiles avec animation */
.review-card .flex.text-yellow-400 i {
  animation: starTwinkle 2s ease-in-out infinite;
  animation-delay: calc(var(--star, 0) * 0.1s);
}

@keyframes starTwinkle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Services liés avec effets de carte */
.related-service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.related-service-card::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 ease;
}

.related-service-card:hover::before {
  left: 100%;
}

.related-service-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.related-service-card .h-48 {
  transition: all 0.3s ease;
}

.related-service-card:hover .h-48 {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.related-service-card .h-48 i {
  transition: all 0.3s ease;
}

.related-service-card:hover .h-48 i {
  transform: scale(1.1) rotate(5deg);
}

/* Formulaire d'avis avec style moderne */
.max-w-2xl form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(212, 165, 116, 0.2);
  transition: all 0.3s ease;
}

.max-w-2xl form:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.1);
}

/* Système de notation interactif */
.rating-star {
  transition: all 0.2s ease;
  cursor: pointer;
}

.rating-star:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(246, 173, 85, 0.6));
}

/* CTA Final avec animation */
.py-20.bg-gray-800 {
  position: relative;
  overflow: hidden;
}

.py-20.bg-gray-800::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Breadcrumb avec style */
nav ol {
  animation: slideInDown 0.6s ease-out;
}

nav ol li a {
  transition: all 0.2s ease;
  position: relative;
}

nav ol li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav ol li a:hover::after {
  width: 100%;
}

/* Animations d'entrée */
@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive pour les animations */
@media (max-width: 768px) {
  .service-hero h1 {
    font-size: 2rem;
  }

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

  .feature-card,
  .review-card,
  .related-service-card {
    transform: none !important;
  }

  .feature-card:hover,
  .review-card:hover,
  .related-service-card:hover {
    transform: translateY(-5px) !important;
  }
}

/* Effets de particules flottantes */
.service-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(246, 173, 85, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(212, 165, 116, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: float 20s linear infinite;
  pointer-events: none;
}

/* Amélioration des transitions globales */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll smooth pour les ancres */
html {
  scroll-behavior: smooth;
}

/* Focus states améliorés */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* =================================
   MODAL DE DÉTAILS SERVICE
   ================================= */

/* Overlay du modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Container du modal */
.modal-container {
  background: white;
  border-radius: 1.5rem;
  max-width: 4xl;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Header du modal */
.modal-header {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem;
  overflow: hidden;
}

.modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(246, 173, 85, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.modal-header-content {
  position: relative;
  z-index: 2;
}

/* Bouton de fermeture */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Badge catégorie dans le modal */
.modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--secondary-dark);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: slideInDown 0.6s ease-out 0.2s both;
}

/* Titre du modal */
.modal-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

/* Description du modal */
.modal-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.6s both;
}

/* Stats rapides dans le header */
.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.modal-stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.modal-stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.modal-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Corps du modal */
.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

/* Sections du contenu */
.modal-section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--section-delay, 0) * 0.1s);
}

.modal-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-title::before {
  content: "";
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Galerie d'images */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.modal-gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.modal-gallery-item:hover img {
  transform: scale(1.1);
}

.modal-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212, 165, 116, 0.8), rgba(246, 173, 85, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-gallery-item:hover .modal-gallery-overlay {
  opacity: 1;
}

.modal-gallery-overlay i {
  font-size: 2rem;
  color: white;
}

/* Liste de fonctionnalités */
.modal-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(246, 173, 85, 0.05) 100%);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.modal-feature-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(212, 165, 116, 0.15);
}

.modal-feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.modal-feature-item:hover .modal-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.modal-feature-content h4 {
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.modal-feature-content p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Timeline du processus */
.modal-timeline {
  position: relative;
  padding-left: 2rem;
}

.modal-timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  border-radius: 1px;
}

.modal-timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.modal-timeline-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.modal-timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 165, 116, 0.2);
  transition: all 0.3s ease;
}

.modal-timeline-content:hover {
  transform: translateX(10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(212, 165, 116, 0.15);
}

.modal-timeline-title {
  font-weight: 600;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.modal-timeline-description {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Footer du modal */
.modal-footer {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-action-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modal-action-btn::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.5s ease;
}

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

.modal-action-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.modal-action-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 165, 116, 0.4);
}

.modal-action-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.modal-action-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Animations d'entrée pour les sections */
@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive pour le modal */
@media (max-width: 768px) {
  .modal-container {
    margin: 1rem;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 2rem;
  }

  .modal-body {
    padding: 1.5rem;
    max-height: 50vh;
  }

  .modal-footer {
    padding: 1.5rem;
    flex-direction: column;
  }

  .modal-action-btn {
    min-width: auto;
  }

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

  .modal-features-list {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }
}

/* Animation de fermeture */
.modal-overlay.closing {
  opacity: 0;
}

.modal-overlay.closing .modal-container {
  transform: scale(0.9) translateY(20px);
}

/* Effet de focus pour l'accessibilité */
.modal-container:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

/* Loader pour le contenu du modal */
.modal-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.modal-loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(212, 165, 116, 0.2);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Effet de particules dans le header */
.modal-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(246, 173, 85, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 75px 75px;
  animation: float 15s linear infinite;
  pointer-events: none;
}
