/* ============================================================
   AlcalSpark, Services Page Styles
   ============================================================ */

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.services-hero { background: transparent; }
.ph-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
}
.ph-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.ph-content h1 {
  margin: 14px 0 20px;
  font-size: clamp(3.5rem, 8vw, 7rem);
}
.ph-desc {
  max-width: 520px;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  margin-bottom: 32px;
}
.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--g50);
}
.ph-breadcrumb a { color: var(--gold); transition: color 0.3s; }
.ph-breadcrumb a:hover { color: var(--gold-light); }

/* ── Services List ──────────────────────────────────────────── */
.services-list { background: transparent; }

.service-row { padding: 80px 0; position: relative; }
.service-row.reverse .sr-body { flex-direction: row-reverse; }

.sr-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.sr-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: rgba(56, 81, 68, 0.1);
  line-height: 1;
  min-width: 80px;
}

.sr-body {
  display: flex;
  align-items: center;
  gap: 80px;
}
.sr-info { flex: 1; }
.sr-info h2 { margin-bottom: 20px; }
.sr-info p  { max-width: 460px; }

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(248, 245, 242, 0.88);
}
.service-features li::before {
  content: '✦';
  color: rgba(248, 245, 242, 0.5);
  font-size: 0.55rem;
  flex-shrink: 0;
}
/* Service rows are on the cream body background — override to dark text */
.service-row .service-features li {
  color: var(--g80);
}
.service-row .service-features li::before {
  color: var(--g40);
}

.service-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
}

/* ── Visuals / Mockups ─────────────────────────────────────── */
.sr-visual { flex: 1; display: flex; justify-content: center; }

.sv-mockup {
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  background: var(--black-soft);
  overflow: hidden;
  transition: box-shadow 0.5s, border-color 0.5s, transform 0.5s var(--ease-out-expo);
}
.sv-mockup:hover {
  box-shadow: 0 20px 60px rgba(26, 38, 32, 0.45), 0 0 44px rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px) rotate(-0.3deg);
}

/* Browser mockup */
.web-mockup { padding-bottom: 20px; }
.sv-browser-bar {
  background: rgba(248, 245, 242, 0.04);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.sv-dots { display: flex; gap: 6px; }
.sv-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(201, 168, 76, 0.3);
}
.sv-url {
  flex: 1;
  background: rgba(248, 245, 242, 0.05);
  border-radius: 3px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(248, 245, 242, 0.3);
}
.sv-screen { padding: 16px; }
.sv-nav-mock {
  height: 28px;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 3px;
  margin-bottom: 12px;
}
.sv-hero-mock {
  height: 80px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(38, 58, 48, 0.1));
  border-radius: 3px;
  margin-bottom: 12px;
}
.sv-cards-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sv-cards-mock div {
  height: 50px;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 3px;
}

/* UI/Phone mockup */
.ui-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: transparent;
  border: none;
}
.ui-phone {
  width: 140px;
  background: var(--black-soft);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  overflow: hidden;
  padding-top: 20px;
}
.ui-notch {
  width: 50px; height: 6px;
  background: rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  margin: 0 auto 12px;
}
.ui-screen { padding: 0 10px 16px; }
.ui-header {
  height: 24px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 3px;
  margin-bottom: 8px;
  opacity: 0.4;
}
.ui-card {
  height: 50px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 4px;
  margin-bottom: 6px;
}
.ui-rows { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ui-rows div {
  height: 10px;
  background: rgba(248, 245, 242, 0.08);
  border-radius: 2px;
}
.ui-cta-mock {
  height: 24px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  opacity: 0.6;
}
.ui-elements {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ui-el-1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--c70);
  opacity: 0.7;
  line-height: 1;
}
.ui-el-2 {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ui-el-3 { display: flex; gap: 8px; }
.ui-el-3 span {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.ui-el-3 span:first-child { background: rgba(201, 168, 76, 0.5); }

/* Brand mockup */
.brand-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 44px;
}
.brand-logo-preview {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-colors {
  display: flex;
  gap: 10px;
}
.brand-colors div {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: transform 0.3s var(--ease-spring);
}
.brand-colors div:hover { transform: scale(1.2); }
.brand-typo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(248, 245, 242, 0.72);
}

/* SEO mockup */
.seo-mockup { padding: 28px; }
.seo-chart { position: relative; margin-bottom: 20px; }
.seo-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}
.seo-bars div {
  flex: 1;
  background: linear-gradient(to top, var(--gold-dark), var(--gold));
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.seo-bars div:last-child { opacity: 1; }
.seo-line {
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
  margin-top: 8px;
}
.seo-kpis { display: flex; gap: 16px; }
.seo-kpi {
  flex: 1;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 4px;
  padding: 14px;
  text-align: center;
}
.seo-kpi span:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c90);
}
.seo-kpi span:last-child {
  display: block;
  font-size: 0.7rem;
  color: rgba(248, 245, 242, 0.4);
  margin-top: 4px;
}

/* SaaS/Dashboard mockup */
.saas-mockup { padding-bottom: 0; }

.saas-layout {
  display: flex;
  height: 190px;
}

.saas-sidebar {
  width: 36px;
  background: rgba(248, 245, 242, 0.02);
  border-right: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 10px;
  flex-shrink: 0;
}
.saas-sidebar-dot {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(248, 245, 242, 0.12);
}
.saas-sidebar-dot.active { background: rgba(201, 168, 76, 0.65); }

.saas-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.saas-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.saas-metric {
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 3px;
  padding: 7px 8px;
}
.saas-metric-val {
  height: 7px;
  background: rgba(201, 168, 76, 0.45);
  border-radius: 1px;
  margin-bottom: 4px;
}
.saas-metric-lbl {
  height: 3px;
  width: 75%;
  background: rgba(248, 245, 242, 0.08);
  border-radius: 1px;
}

.saas-chart-area {
  flex: 1;
  background: rgba(201, 168, 76, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 3px;
  padding: 8px 8px 0;
  overflow: hidden;
}
.saas-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}
.saas-chart-bars span {
  flex: 1;
  background: linear-gradient(to top, rgba(56, 81, 68, 0.55), rgba(201, 168, 76, 0.28));
  border-radius: 1px 1px 0 0;
  transition: opacity 0.3s;
}
.saas-chart-bars span:last-child { background: linear-gradient(to top, rgba(56, 81, 68, 0.8), rgba(201, 168, 76, 0.5)); }
.saas-mockup:hover .saas-chart-bars span { opacity: 0.7; }
.saas-mockup:hover .saas-chart-bars span:last-child { opacity: 1; }

.saas-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.saas-table-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.saas-table-row span:nth-child(1) {
  flex: 2;
  height: 5px;
  background: rgba(248, 245, 242, 0.07);
  border-radius: 1px;
}
.saas-table-row span:nth-child(2) {
  flex: 1;
  height: 5px;
  background: rgba(248, 245, 242, 0.05);
  border-radius: 1px;
}
.saas-badge {
  width: 24px;
  height: 5px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

/* Two small cards */
.services-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 60px;
}
.service-small-card { position: relative; padding: 44px; }
.ssc-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
  color: var(--cream);
}
.ssc-num {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(248, 245, 242, 0.14);
  line-height: 1;
}
.service-small-card h3 { margin-bottom: 14px; }

/* ── Systèmes intelligents ──────────────────────────────────── */
.si-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}
.si-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 35% 40% at 100% 100%, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.si-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.si-card {
  --mx: 50%; --my: 50%; --sg: 0;
  position: relative;
  padding: 44px 36px 52px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
.si-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(212, 168, 67, calc(0.055 * var(--sg))), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.si-card > * { position: relative; z-index: 1; }
.si-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.si-card:hover {
  border-color: rgba(201, 168, 76, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 14px 48px rgba(26, 38, 32, 0.4), 0 0 30px rgba(201, 168, 76, 0.05);
}
.si-card:hover::after { opacity: 1; }

.si-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--c20);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  margin-bottom: 24px;
  transition: border-color 0.3s, background 0.3s;
}
.si-card:hover .si-icon {
  border-color: var(--c40);
  background: var(--c08);
}

.si-num {
  position: absolute;
  bottom: 16px; right: 22px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(248, 245, 242, 0.12);
  line-height: 1;
  user-select: none;
}

.si-card h3 {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 14px;
  line-height: 1.4;
  transition: color 0.3s;
}
.si-card:hover h3 { color: var(--c90); }
.si-card > p {
  font-size: 0.88rem;
  color: rgba(248, 245, 242, 0.85);
  line-height: 1.8;
}

.si-cta {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}
.si-cta-desc {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--g70);
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .si-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .si-card { padding: 36px 28px 48px; }
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { background: transparent; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card { padding: 44px 40px; position: relative; }
.pricing-card.featured {
  border-color: transparent;
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(26, 38, 32, 0.5), 0 0 60px rgba(201, 168, 76, 0.1);
}
.pc-featured-label {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 20px;
  white-space: nowrap;
}
.pc-badge {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c70);
  margin-bottom: 20px;
}
.pc-price { margin-bottom: 24px; }
.pc-from {
  display: block;
  font-size: 0.78rem;
  color: rgba(248, 245, 242, 0.65);
  margin-bottom: 6px;
}
.pc-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--off-white);
  line-height: 1;
}
.pc-currency {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  margin-left: 4px;
}
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(248, 245, 242, 0.88);
}
.pc-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* ── Tags / compétences ────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--g20);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--g70);
  transition: border-color 0.25s, color 0.25s;
}
.tag:hover {
  border-color: var(--g40);
  color: var(--green);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sr-body { gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 768px) {
  .sr-body { flex-direction: column !important; gap: 40px; }
  .sv-mockup { max-width: 100%; }
  .services-two-col { grid-template-columns: 1fr; }
}
