/* ========================================
   SAGE SERVICE CARDS - Style terminal cyber
   Préfixe: sgc-
   ======================================== */

/* Grille 2 colonnes */
.sgc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Carte */
.sgc-card {
  position: relative;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.sgc-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
}

/* ---- Header terminal ---- */
.sgc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.sgc-code {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--sgc-accent, #00e5ff);
  opacity: 0.7;
}

.sgc-signal {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.sgc-signal-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  transition: background 0.3s;
}

.sgc-signal-bar:nth-child(1) { height: 6px; }
.sgc-signal-bar:nth-child(2) { height: 9px; }
.sgc-signal-bar:nth-child(3) { height: 12px; }
.sgc-signal-bar:nth-child(4) { height: 15px; }

.sgc-card:hover .sgc-signal-bar {
  background: var(--sgc-accent, #00e5ff);
  transition-delay: calc(var(--bar-i, 0) * 0.08s);
}
.sgc-card:hover .sgc-signal-bar:nth-child(1) { --bar-i: 0; }
.sgc-card:hover .sgc-signal-bar:nth-child(2) { --bar-i: 1; }
.sgc-card:hover .sgc-signal-bar:nth-child(3) { --bar-i: 2; }
.sgc-card:hover .sgc-signal-bar:nth-child(4) { --bar-i: 3; }

.sgc-active {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sgc-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.sgc-active-text {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: #22c55e;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* ---- Body ---- */
.sgc-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- Icône carrée ---- */
.sgc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sgc-accent, #00e5ff) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--sgc-accent, #00e5ff) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--sgc-accent, #00e5ff);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.sgc-card:hover .sgc-icon {
  border-color: var(--sgc-accent, #00e5ff);
  box-shadow: 0 0 20px color-mix(in srgb, var(--sgc-accent, #00e5ff) 25%, transparent);
}

.sgc-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* ---- Titre ---- */
.sgc-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.2;
}

/* ---- Tag ---- */
.sgc-tag {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sgc-accent, #00e5ff);
  opacity: 0.6;
  margin-bottom: 14px;
}

/* ---- Description ---- */
.sgc-desc {
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

/* ---- Features liste à puces ---- */
.sgc-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sgc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.sgc-features li:last-child {
  border-bottom: none;
}

.sgc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sgc-accent, #00e5ff);
  flex-shrink: 0;
}

/* ---- Accent colors ---- */
.sgc-card--cyan   { --sgc-accent: #00e5ff; }
.sgc-card--violet { --sgc-accent: #8b5cf6; }
.sgc-card--teal   { --sgc-accent: #06b6d4; }
.sgc-card--green  { --sgc-accent: #22c55e; }
.sgc-card--orange { --sgc-accent: #f59e0b; }
.sgc-card--pink   { --sgc-accent: #ec4899; }

/* ---- Scroll reveal ---- */
.sgc-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sgc-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sgc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }

  .sgc-title {
    font-size: 18px;
  }

  .sgc-body {
    padding: 20px 20px 24px;
  }
}
