/* Page services — listing inspirée structure premium */

.services-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(
    135deg,
    rgba(30, 95, 232, 0.12) 0%,
    rgba(123, 63, 228, 0.08) 45%,
    rgba(255, 90, 54, 0.05) 100%
  );
  padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .services-hero {
    padding: 3.5rem 3rem;
  }
}

.services-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 1rem;
}

.services-hero__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg, #fafafa);
  max-width: 22ch;
}

.services-hero__title span {
  background: linear-gradient(135deg, #1e5fe8, #7b3fe4, #ff5a36);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-hero__intro {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-muted, #a1a1aa);
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.services-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width: 480px) {
  .services-hero__btn {
    padding: 0.9375rem 2.25rem;
  }
}
.services-hero__btn--primary {
  color: #fff;
  transform: translateZ(0);
}
.services-hero__btn--primary:hover {
  transform: scale(1.02);
}
.services-hero__btn--secondary {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--fg-muted, #a1a1aa);
}
.services-hero__btn--secondary:hover {
  color: var(--fg, #fafafa);
  border-color: rgba(123, 63, 228, 0.45);
}

.services-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.services-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(8, 8, 12, 0.55);
  font-size: 0.75rem;
  color: var(--fg-muted, #a1a1aa);
}

.services-section {
  margin-top: 4rem;
}

.services-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.services-section__num {
  font-family: var(--font-display, inherit);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #1e5fe8, #7b3fe4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}

.services-section__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg, #fafafa);
}

.services-section__subtitle {
  width: 100%;
  max-width: 48ch;
  font-size: 1rem;
  color: var(--fg-muted, #a1a1aa);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .services-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg-card, #0e0e14);
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.services-card:hover {
  border-color: rgba(123, 63, 228, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.services-card--featured {
  border-color: rgba(123, 63, 228, 0.35);
  background: linear-gradient(
    145deg,
    rgba(123, 63, 228, 0.08) 0%,
    rgba(8, 8, 12, 0.95) 55%
  );
}

.services-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1e5fe8, #7b3fe4);
  color: #fff;
}

.services-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.625rem;
  background: linear-gradient(
    135deg,
    rgba(30, 95, 232, 0.14),
    rgba(123, 63, 228, 0.1)
  );
  border: 1px solid rgba(123, 63, 228, 0.22);
  color: #a78bfa;
}

.services-card__title {
  font-family: var(--font-display, inherit);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg, #fafafa);
  line-height: 1.3;
  padding-right: 4rem;
}

.services-card__desc {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--fg-muted, #a1a1aa);
  line-height: 1.65;
  flex: 1;
}

.services-card__features {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.services-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--fg-muted, #a1a1aa);
  line-height: 1.45;
}

.services-card__features li::before {
  content: "✓";
  flex-shrink: 0;
  color: #7b3fe4;
  font-weight: 700;
}

.services-card__cta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a78bfa;
  transition: color 0.2s;
}

.services-card:hover .services-card__cta {
  color: #c4b5fd;
}

/* Cartes statiques (pages détail service) */
.services-card--static {
  cursor: default;
}
.services-card--static:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(123, 63, 228, 0.25);
}
.services-card--static .services-card__title {
  padding-right: 0;
  padding-top: 0.25rem;
}
.service-detail__num {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7b3fe4;
  opacity: 0.85;
}

/* Panneaux hero — automation & ERP */
.service-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 1.25rem 1.25rem 0.75rem;
}
.service-flow__node {
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.6875rem;
  color: #a1a1aa;
  white-space: nowrap;
}
.service-flow__node--trigger {
  border-color: rgba(255, 90, 54, 0.35);
  color: #fdba74;
}
.service-flow__node--active {
  border-color: rgba(123, 63, 228, 0.45);
  background: rgba(123, 63, 228, 0.12);
  color: #c4b5fd;
}
.service-flow__arrow {
  font-size: 0.75rem;
  color: #52525b;
}

.service-erp {
  padding: 1rem 1.25rem 0.5rem;
}
.service-erp__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.service-erp__row:last-of-type {
  border-bottom: none;
}
.service-erp__label {
  font-size: 0.75rem;
  color: #71717a;
}
.service-erp__value {
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  font-weight: 700;
  color: #fafafa;
}
.service-erp__value--warn {
  color: #fdba74;
}
.service-erp__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.service-erp__modules span {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

/* Livrables page détail */
.service-detail-deliverables {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(
    145deg,
    rgba(30, 95, 232, 0.06) 0%,
    rgba(8, 8, 12, 0.95) 60%
  );
}
.service-detail-deliverables__title {
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.service-detail-deliverables__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .service-detail-deliverables__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.service-detail-deliverables__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--fg-muted, #a1a1aa);
  line-height: 1.5;
}
.service-detail-deliverables__list li::before {
  content: "→";
  flex-shrink: 0;
  color: #7b3fe4;
  font-weight: 700;
}

.services-quote {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg-card, #0e0e14);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--fg-muted, #a1a1aa);
  line-height: 1.65;
}

.services-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg, #fafafa);
}

.services-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .services-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Hero split + panneau analytics */
.services-hero--split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .services-hero--split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 3.5rem;
  }
  .services-hero__title {
    max-width: none;
  }
}

.services-hero__panel {
  display: none;
}
@media (min-width: 1024px) {
  .services-hero__panel {
    display: block;
  }
}

.services-panel {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 12, 0.85);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.services-panel__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(22, 22, 31, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.services-panel__bar span:nth-child(1) { width: 10px; height: 10px; border-radius: 50%; background: #ff5a36; }
.services-panel__bar span:nth-child(2) { width: 10px; height: 10px; border-radius: 50%; background: #d633a8; }
.services-panel__bar span:nth-child(3) { width: 10px; height: 10px; border-radius: 50%; background: #7b3fe4; }
.services-panel__url {
  margin-left: 0.75rem;
  font-size: 0.6875rem;
  color: #71717a;
}

.services-panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.25rem 0;
}
.services-panel__metric {
  padding: 0.65rem 0.75rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.services-panel__label {
  display: block;
  font-size: 0.625rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.services-panel__value {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fafafa;
}
.services-panel__delta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.625rem;
  color: #86efac;
}
.services-panel__delta--ok {
  color: #93c5fd;
}

.services-panel__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 5rem;
  padding: 1rem 1.25rem;
}
.services-panel__bar-col {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(123, 63, 228, 0.25);
  min-height: 12%;
}
.services-panel__bar-col--active {
  background: linear-gradient(180deg, #7b3fe4, #1e5fe8);
}

.services-panel__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}
.services-panel__pill {
  font-size: 0.625rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}
.services-panel__pill--ok {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Témoignages avec stat */
.services-quote p {
  margin: 0;
  font-style: italic;
  line-height: 1.65;
}
.services-quote--stat .services-quote__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.services-quote__footer cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg, #fafafa);
}
.services-quote__stat {
  font-size: 0.8125rem;
  color: var(--fg-muted, #a1a1aa);
}
.services-quote__stat strong {
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
  color: #a78bfa;
  margin-right: 0.25rem;
}

/* FAQ */
.services-faq {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg-card, #0e0e14);
}
.services-faq__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.services-faq__grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.services-faq__item {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 12, 0.5);
  padding: 0.25rem 1rem;
}
.services-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 0;
  list-style: none;
}
.services-faq__item summary::-webkit-details-marker {
  display: none;
}
.services-faq__item p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted, #a1a1aa);
  line-height: 1.65;
}
.services-faq__item a {
  color: #a78bfa;
  text-decoration: underline;
}

/* Liens internes */
.services-related {
  margin-top: 3rem;
}
.services-related__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle, #71717a);
  margin-bottom: 1rem;
}
.services-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.services-related__links a {
  font-size: 0.9375rem;
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.2s;
}
.services-related__links a:hover {
  color: #c4b5fd;
}

.services-cta-trust {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fg-subtle, #71717a);
}

.services-seo-lead {
  margin-top: 3rem;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted, #a1a1aa);
}
.services-seo-lead a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 1280px) {
  .services-grid--3:has(a:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
