:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;

  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;

  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;

  --primary: 203 83% 28%;
  --primary-foreground: 210 40% 98%;

  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;

  --accent: 24 95% 53%;
  --accent-foreground: 222.2 47.4% 11.2%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 203 83% 28%;

  --radius: 0.5rem;

  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;

  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;

  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;

  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;

  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;

  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;

  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;

  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }
}

.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(3, 105, 161, 0.05) 0%,
    rgba(249, 115, 22, 0.05) 100%
  );
  position: relative;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(254, 243, 199, 0.2) 0%,
    rgba(254, 243, 199, 0) 100%
  );
  z-index: 0;
}

.hero-gradient > div {
  position: relative;
  z-index: 1;
}

.service-hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(3, 105, 161, 0.08) 0%,
    rgba(249, 115, 22, 0.08) 100%
  );
  position: relative;
}

.service-hero-gradient::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, white);
}

.service-card {
  transition: all 0.3s ease;
  /* border: 2px solid #f97316;  <-- à retirer, utiliser la classe dédiée */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* border-color: #ea580c; <-- à retirer, utiliser la classe dédiée */
}

/* Bordure orange dédiée pour les cards */
.border-orange {
  border: 1px solid #f97316 !important;
}
.border-orange-hover:hover {
  border-color: #ea580c !important;
}

/* Improved typography for service content */
.service-content {
  color: #222;
  line-height: 1.9;
}

.service-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #004976;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 73, 118, 0.2);
}

.service-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #004976;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-content p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.service-content ul,
.service-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.service-content ul li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #0ea5e9;
  border-radius: 50%;
}

.service-content a {
  color: #0ea5e9;
  text-decoration: none;
  border-bottom: 1px dotted #0ea5e9;
  transition: all 0.2s;
}

.service-content a:hover {
  color: #0369a1;
  border-bottom-color: #0369a1;
}

.service-content blockquote {
  border-left: 4px solid #0ea5e9;
  padding-left: 1rem;
  font-style: italic;
  color: #4b5563;
  margin: 1.5rem 0;
}

/* Add responsive images */
.service-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Add table styling */
.service-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.service-content th {
  background-color: #f0f9ff;
  text-align: left;
  padding: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid #0ea5e9;
}

.service-content td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.service-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* For CSS-only animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Custom colors */
.bg-artisan-blue {
  background-color: #0369a1;
}

.bg-artisan-darkblue {
  background-color: #075985;
}

.bg-artisan-orange {
  background-color: #f97316;
}

.bg-artisan-beige {
  background-color: #fef3c7;
}

.bg-artisan-light {
  background-color: #f8fafc;
}

.text-artisan-blue {
  color: #0369a1;
}

.text-artisan-darkblue {
  color: #075985;
}

.text-artisan-orange {
  color: #f97316;
}

.text-artisan-gray {
  color: #1d1e20;
}

.hover\:bg-artisan-orange\/90:hover {
  background-color: rgba(249, 115, 22, 0.9);
}

.hover\:bg-artisan-blue\/90:hover {
  background-color: rgba(3, 105, 161, 0.9);
}

.hover\:text-artisan-blue:hover {
  color: #0369a1;
}

.hover\:text-artisan-darkblue:hover {
  color: #075985;
}

.hover\:text-artisan-orange:hover {
  color: #f97316;
}
