/* Modern SaaS-style CSS for Circuits Page */
:root {
    --primary-color: #d97706;
    --accent-color: #f59e0b;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --warning: #ea580c;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  }
  
 
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
 
  .bg-decoration {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(96px);
    pointer-events: none;
  }
  
  .bg-decoration-top {
    top: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.05);
  }
  
  .bg-decoration-bottom {
    bottom: 0;
    left: 0;
    background: rgba(249, 115, 22, 0.05);
  }
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
  }
  
  .circuits-section {
    position: relative;
    padding: 30px 0 40px;
  }
  
  .section-header {
    text-align: center;
    margin: 0 auto 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin: 0 auto 24px;
    font-size: 14px;
    font-weight: 500;
    max-width: fit-content;
    color: #b45309;
    letter-spacing: 0.5px;
  }
  
  .badge-dot {
    width: 8px;
    height: 8px;
    background: #d97706;
    transition: all 0.3s ease;
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 4px rgba(217, 119, 6, 0);
    }
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
  }
  
  .title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(to right, rgb(30, 41, 59), rgb(71, 85, 105));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  
  .description {
    color: rgb(71, 85, 105);
    max-width: 768px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
  }
  
  /* Main Content */
  .main-content {
    padding: 60px 0 100px;
  }
  
  /* Alert Styles */
  .alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
  }
  
  .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #f59e0b;
  }
  
  .alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .alert-content h4 {
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
  }
  
  .empty-state-icon i {
    font-size: 2rem;
    color: var(--gray-400);
  }
  
  .empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
  }
  
  .empty-state-description {
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.6;
  }
  
  .empty-state-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
/* Circuits Grid */
.circuits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    padding: 0 15px;
    padding: 0 20px;
  }
  
  .circuit-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .circuit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
  
  .circuit-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
  }
  
  .circuit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .circuit-card:hover .circuit-image {
    transform: scale(1.05);
  }
  
  .circuit-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    gap: 8px;
  }
  
  .circuit-image-placeholder i {
    font-size: 2rem;
  }
  
  .circuit-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .duration-badge {
    background: rgba(3, 21, 41, 0.9);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
  }
  
  .type-badge {
    background: var(--accent-color);
    transition: all 0.3s ease;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
  }
  .type-badge:hover {
    background: var(--primary-color);
    color: var(--white);
  }
  
  .circuit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 21, 41, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .circuit-card:hover .circuit-overlay {
    opacity: 1;
  }
  
  .view-btn {
    background: var(--accent-color);
    transition: all 0.3s ease;
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }
  
  .view-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
  }
  
.circuit-content {
  padding: 24px;
}

.circuit-header {
  margin-bottom: 16px;
}

.circuit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.circuit-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 14px;
}

.circuit-location i {
  color: var(--accent-color);
}

.circuit-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.circuit-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.feature-item i {
  color: var(--accent-color);
  width: 16px;
  font-size: 12px;
}

.circuit-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  width: 100%;
}

  
  .circuit-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .price-label {
    font-size: 12px;
    color: var(--gray-500);
  }
  
  .price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  
  .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .price-unit {
    font-size: 14px;
    color: var(--gray-500);
  }
  
  /* Center alignment utility */
.text-center {
  text-align: center;
  width: 100%;
}

.button-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 14px;
    justify-content: center;
  }
  
  .btn-primary {
    background: var(--accent-color);
    transition: all 0.3s ease;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    min-width: 160px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
  }
  
  .btn-primary .btn-text,
  .btn-primary span {
    position: relative;
    z-index: 2;
    color: var(--white);
    transition: color 0.3s ease;
    pointer-events: none; /* Empêche les événements de souris sur le texte */
  }
  
  /* Style spécifique pour le bouton de demande de devis */
  .devis-btn {
    position: relative;
    overflow: hidden;
  }
  
  .devis-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
  }
  
  .devis-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .devis-btn span,
  .devis-btn i {
    position: relative;
    z-index: 2;
    color: var(--white);
    transition: color 0.3s ease;
  }
  
  .btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
  }
  
  /* Load More Section */
  .load-more-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
  }
  
  .load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .load-more-btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
  }
  
  .load-more-btn:hover i {
    transform: translateX(3px);
  }
  
  .load-more-btn {
    padding: 16px 32px;
    font-size: 16px;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  @keyframes float {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .circuit-card {
      max-width: 100%;
    }
  }
  
  @media (max-width: 1024px) {
    .filter-sidebar {
      display: none;
    }
    
    .circuits-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .circuits-grid {
      grid-template-columns: 1fr;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .section-header {
      margin-bottom: 40px;
    }
    
    .title {
      font-size: 1.8rem;
    }
    
    .description {
      font-size: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .circuit-card {
      margin: 0 10px;
      width: calc(100% - 20px);
    }
    
    .circuit-features {
      grid-template-columns: 1fr 1fr;
    }
    
    .badge {
      padding: 6px 12px;
      font-size: 12px;
    }
    
    .title {
      font-size: 1.6rem;
    }
  }