/* static/economic/services/css/services.css */

/* ================================
   SHELL GÉNÉRAL
================================ */
.services-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================================
   TOPBAR
================================ */
.services-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #020617;
  color: #e5e7eb;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.7);
}

.services-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.services-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.services-brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

.services-brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.services-brand small {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* NAV */
.services-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.services-nav-link {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: #e5e7eb;
  border: 1px solid transparent;
  transition: all 0.18s ease-in-out;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.services-nav-link:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.5);
}

.services-nav-link.active {
  background: #22c55e;
  color: #02131c;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.9);
}

/* Topbar on scroll */
.services-topbar.is-scrolled {
  background: #020617;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.7);
}

/* ================================
   MAIN + FOOTER
================================ */
.services-main {
  flex: 1 0 auto;
}

.services-footer {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  background: #f9fafb;
}

/* ================================
   HERO CATALOGUE
================================ */
.services-hero {
  background: radial-gradient(circle at top left, #22c55e1f, transparent 55%),
              radial-gradient(circle at bottom right, #0ea5e91f, transparent 55%);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.11);
}

.services-hero-title {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.services-hero-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 38rem;
}

/* Card à droite du hero */
.services-hero-card {
  background: rgba(15, 23, 42, 0.97);
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.services-hero-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.services-hero-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

/* ================================
   CATEGORIES / FILTRES
================================ */
.services-categories {
  font-size: 0.8rem;
}

.services-categories .badge {
  cursor: pointer;
}

/* ================================
   CARTE SERVICE (LISTE)
================================ */
.service-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.95rem 0.95rem 0.85rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.service-card-body {
  flex: 1;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.service-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(59, 130, 246, 0.06);
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.service-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
}

.service-title {
  font-size: 0.95rem;
  margin: 0.25rem 0 0.3rem;
  line-height: 1.3;
}

.service-title a {
  text-decoration: none;
  color: #0f172a;
}

.service-title a:hover {
  color: #1d4ed8;
}

.service-excerpt {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.55rem;
}

.service-meta {
  font-size: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.service-card-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

/* ================================
   DÉTAIL SERVICE
================================ */
.service-detail-page {
  max-width: 1140px;
}

.service-detail-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.12);
}

.service-detail-header {
  margin-bottom: 0.75rem;
}

.service-detail-title {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.25rem;
  color: #0f172a;
}

.service-detail-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
}

.service-description {
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.6;
}

.service-description p {
  margin-bottom: 0.6rem;
}

/* Points clés */
.service-keypoints {
  border-top: 1px dashed rgba(148, 163, 184, 0.7);
  padding-top: 0.75rem;
}

.service-keypoints-list {
  font-size: 0.85rem;
  padding-left: 1.1rem;
  margin-bottom: 0;
}

/* SIDEBAR */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-pricing-card,
.service-packages-card {
  background: #020617;
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.service-price-lg {
  font-size: 1rem;
  font-weight: 700;
  color: #22c55e;
}

.service-packages-card h6 {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.service-package-item {
  font-size: 0.8rem;
}

.service-package-item .fw-semibold {
  color: #e5e7eb;
}

/* ================================
   FORMULAIRE DEMANDE SERVICE
================================ */
.service-request-page {
  max-width: 1140px;
}

.service-request-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.12);
}

.service-request-card .card-body {
  padding: 1.25rem 1.35rem;
}

.service-request-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-info-card,
.service-contact-card {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
  font-size: 0.83rem;
}

.service-steps {
  padding-left: 1.1rem;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 767.98px) {
  .services-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .services-hero {
    padding: 1.3rem 1.1rem;
  }

  .service-detail-card .card-body,
  .service-request-card .card-body {
    padding: 1.1rem 1.1rem;
  }
}
