/* Page Services — alignée sur la page Réalisations */

.svc-page {
  padding-bottom: 70px;
}

.svc-hero {
  background: transparent;
  padding: 0;
  color: inherit;
}

.svc-hero .page-header-box h1 {
  margin-bottom: 0;
}

/* Navigation catégories */
.svc-nav {
  margin-bottom: 32px;
  padding-bottom: 12px;
}

.svc-nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.svc-nav-inner::-webkit-scrollbar {
  display: none;
}

.svc-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.svc-nav-btn i {
  font-size: 0.75rem;
  color: #6b7280;
}

.svc-nav-btn:hover,
.svc-nav-btn.active {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.svc-nav-btn:hover i,
.svc-nav-btn.active i {
  color: #fff;
}

/* Sections catégories */
.svc-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

@media (max-width: 991px) {
  .svc-section {
    scroll-margin-top: 88px;
  }

  .svc-section:nth-child(even) .svc-section-header {
    justify-content: flex-start;
  }

  .svc-section:nth-child(even) .svc-section-title {
    flex-direction: row;
    text-align: left;
  }

  .svc-nav {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .svc-nav-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .svc-nav-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .svc-section-header {
    margin-top: 32px;
    margin-bottom: 28px;
  }

  .svc-section-title h2 {
    font-size: 1.15rem;
  }
}

.svc-section-header {
  margin-bottom: 50px;
  margin-top: 50px;
}

.svc-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 520px;
}

.svc-section:nth-child(odd) .svc-section-header {
  display: flex;
  justify-content: flex-start;
}

.svc-section:nth-child(odd) .svc-section-title {
  text-align: left;
}

.svc-section:nth-child(even) .svc-section-header {
  display: flex;
  justify-content: flex-end;
}

.svc-section:nth-child(even) .svc-section-title {
  flex-direction: row-reverse;
  text-align: right;
}

.svc-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #374151, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.svc-section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}

.svc-section-title p {
  font-size: 0.85rem;
  color: #171818;
  margin: 0;
}

/* Grille de cartes */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Slider catégories (dev, sysadmin) */
.svc-slider-wrap {
  position: relative;
  padding: 0 44px 36px;
}

.svc-slider {
  overflow: hidden;
}

.svc-slider .swiper-slide {
  height: auto;
  display: flex;
}

.svc-slider .svc-card {
  width: 100%;
}

.svc-slider-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svc-slider-btn:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.svc-slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.svc-slider-prev {
  left: 0;
}

.svc-slider-next {
  right: 0;
}

.svc-slider-pagination {
  bottom: 0 !important;
}

.svc-slider-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
}

.svc-slider-pagination .swiper-pagination-bullet-active {
  background: #1f2937;
}

@media (max-width: 575px) {
  .svc-slider-wrap {
    padding-left: 36px;
    padding-right: 36px;
  }

  .svc-slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

/* Carte service */
.svc-card {
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  height: 100%;
}

.svc-card:hover {
  transform: translateY(-3px);
}

.svc-card-visual {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, #f3f4f6 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, #eef2f7 0%, transparent 40%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-bottom: 1px dashed #e5e7eb;
}

.svc-card-visual::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.85);
}

.svc-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#d1d5db 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  opacity: 0.35;
}

.svc-card-visual i {
  position: relative;
  z-index: 1;
  font-size: 2.75rem;
  color: #374151;
}

.svc-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ffffff;
}

.svc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-image img {
  transform: scale(1.04);
}

.svc-card-icon-wrap {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.svc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #4b5563;
}

.svc-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.3;
}

.svc-card-body p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #171818;
  margin: 0;
  flex: 1;
}

.svc-card-footer {
  padding: 0 16px 16px;
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1c1c1c;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.svc-card-link:hover {
  gap: 10px;
  color: #1c1c1c;
}

/* CTA bas de page — fond page Services, sans bordure */
.svc-cta {
  background: url('../images/background.png') repeat top;
  border: none;
  box-shadow: none;
  padding: 56px 24px 72px;
  text-align: center;
  margin-top: 8px;
}

.svc-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1b1237;
  margin-bottom: 14px;
  line-height: 1.2;
}

.svc-cta p {
  font-size: 1rem;
  line-height: 1.6;
  color: #171818 !important;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.svc-cta-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  padding: 15px 42px;
  border-radius: 100px;
  background: #f85446;
  border: none;
  color: #fff;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.svc-cta-btn:hover,
.svc-cta-btn:focus {
  background: #e04a3d;
  border: none;
  color: #fff;
  box-shadow: none;
  outline: none;
}
