/* ==========================================================================
   Service DevOps & Cloud AWS - Component Styling
   Réutilise et étend le design system du Service SAP avec éléments d'autorité
   ========================================================================== */

.devops-services-section {
  position: relative;
  padding: 100px 0;
  background: #ffffff;
  color: #000000;
  overflow: hidden;
}

#services-devops-placeholder {
  scroll-margin-top: 90px;
}

.devops-services-section .sap-services-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.devops-services-section .sap-services-header .sap-section-title {
  color: #330cb3;
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.devops-badge-wrapper {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.devops-power-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51, 12, 179, 0.08);
  border: 1px solid rgba(51, 12, 179, 0.2);
  color: #330cb3;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
}

.power-dot {
  width: 8px;
  height: 8px;
  background: #330cb3;
  border-radius: 50%;
  box-shadow: 0 0 10px #330cb3;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   ROI & Key Impact Metrics Bar
   ========================================================================== */

.devops-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 10px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(51, 12, 179, 0.04) 0%, rgba(26, 10, 62, 0.02) 100%);
  border: 1px solid rgba(51, 12, 179, 0.15);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(51, 12, 179, 0.04);
}

.devops-kpi-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid rgba(51, 12, 179, 0.1);
  transition: transform 0.3s ease;
}

.devops-kpi-item:last-child {
  border-right: none;
}

.devops-kpi-item:hover {
  transform: translateY(-4px);
}

.kpi-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #330cb3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.kpi-icon {
  font-size: 1.3rem;
}

.kpi-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #192231;
  margin-bottom: 2px;
}

.kpi-sub {
  font-size: 0.78rem;
  color: #6b7280;
}

/* ==========================================================================
   Cards & Tech Tags
   ========================================================================== */

.devops-service-card {
  background: #ffffff;
  border: 1px solid rgba(51, 12, 179, 0.15);
  border-radius: 24px;
  padding: 40px 30px 35px;
  text-align: center;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.05);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-number-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #330cb3;
  background: rgba(51, 12, 179, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(51, 12, 179, 0.15);
}

.devops-service-card:hover {
  border-color: rgba(51, 12, 179, 0.4);
  box-shadow: 0 20px 40px rgba(51, 12, 179, 0.15);
}

.devops-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 22px;
  position: relative;
  z-index: 2;
}

.devops-tags-center {
  margin: 20px auto;
  max-width: 700px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #330cb3;
  background: rgba(51, 12, 179, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(51, 12, 179, 0.12);
  transition: all 0.2s ease;
}

.devops-service-card:hover .tech-tag {
  background: rgba(51, 12, 179, 0.1);
  border-color: rgba(51, 12, 179, 0.25);
}

/* ==========================================================================
   Excellence & Well-Architected Section
   ========================================================================== */

.devops-excellence-section {
  margin-top: 60px;
  margin-left: 40px;
  margin-right: 40px;
  padding: 45px 40px;
  background: #f8f9fa;
  border: 1px solid rgba(51, 12, 179, 0.2);
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.08);
  border-radius: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.devops-excellence-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #330cb3, transparent);
}

.excellence-badge-top {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #330cb3;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

.devops-framework-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 25px auto 15px;
}

.devops-framework-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(51, 12, 179, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: #1a0a3e;
  box-shadow: 0 4px 15px rgba(51, 12, 179, 0.06);
  text-align: center;
}

.pillar-svg-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* ==========================================================================
   INNOVATIONS HUB (5 OUT-OF-THE-BOX MODULES)
   ========================================================================== */

.devops-innovations-container {
  margin-top: 80px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.devops-innovation-card {
  background: #ffffff;
  border: 1px solid rgba(51, 12, 179, 0.15);
  border-radius: 24px;
  padding: 45px 40px;
  box-shadow: 0 12px 35px rgba(51, 12, 179, 0.06);
  position: relative;
  overflow: hidden;
}

.innovation-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 35px;
}

.innovation-pill {
  display: inline-block;
  background: rgba(51, 12, 179, 0.08);
  color: #330cb3;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.innovation-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a0a3e;
  margin-bottom: 10px;
}

.innovation-subtitle {
  font-size: 1rem;
  color: #6b7280;
}

/* 1. Before / After Toggle */
.comparison-toggle-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
}

.comparison-tab-btn {
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(51, 12, 179, 0.2);
  background: #f8fafc;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comparison-tab-btn.active {
  background: #330cb3;
  color: #ffffff;
  border-color: #330cb3;
  box-shadow: 0 8px 20px rgba(51, 12, 179, 0.25);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.comp-item {
  padding: 25px;
  border-radius: 16px;
  border: 1px solid;
  transition: transform 0.3s ease;
}

.comp-item:hover {
  transform: translateY(-4px);
}

.comp-negative {
  background: #fff5f5;
  border-color: rgba(239, 68, 68, 0.2);
}

.comp-negative h4 {
  color: #dc2626;
  font-size: 1.15rem;
  margin: 10px 0 8px;
}

.comp-negative p {
  color: #7f1d1d;
  font-size: 0.92rem;
  line-height: 1.6;
}

.comp-positive {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.25);
}

.comp-positive h4 {
  color: #16a34a;
  font-size: 1.15rem;
  margin: 10px 0 8px;
}

.comp-positive p {
  color: #14532d;
  font-size: 0.92rem;
  line-height: 1.6;
}

.comp-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.comp-icon-negative {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.comp-icon-positive {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.comp-svg-icon {
  width: 26px;
  height: 26px;
  display: block;
}

/* 2. ROI Calculator */
.roi-calculator-box {
  max-width: 900px;
  margin: 0 auto;
}

.roi-slider-group {
  background: #f8fafc;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(51, 12, 179, 0.12);
  margin-bottom: 30px;
}

.roi-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a0a3e;
  margin-bottom: 15px;
}

.roi-current-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #330cb3;
}

.roi-range-input {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  accent-color: #330cb3;
}

.roi-range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 10px;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.roi-result-card {
  background: #f8fafc;
  border: 1px solid rgba(51, 12, 179, 0.12);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
}

.roi-result-card.roi-card-featured {
  background: linear-gradient(135deg, rgba(51, 12, 179, 0.08) 0%, rgba(26, 10, 62, 0.04) 100%);
  border-color: rgba(51, 12, 179, 0.3);
  box-shadow: 0 8px 25px rgba(51, 12, 179, 0.08);
}

.roi-res-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #330cb3;
  margin-bottom: 6px;
}

.roi-res-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a0a3e;
  margin-bottom: 4px;
}

.roi-res-sub {
  font-size: 0.78rem;
  color: #6b7280;
}

.roi-cta-row {
  text-align: center;
}

.roi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #330cb3;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(51, 12, 179, 0.25);
}

.roi-cta-btn:hover {
  background: #25088a;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(51, 12, 179, 0.35);
}

/* 3. Live Terminal */
.terminal-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
}

.term-btn {
  background: #f8fafc;
  border: 1px solid rgba(51, 12, 179, 0.2);
  color: #1a0a3e;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.term-btn:hover,
.term-btn.active {
  background: #1a0a3e;
  color: #38bdf8;
  border-color: #38bdf8;
}

.terminal-window {
  background: #0f172a;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Courier New", Courier, monospace;
}

.terminal-topbar {
  background: #1e293b;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-left: 20px;
}

.terminal-body {
  padding: 24px;
  color: #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.7;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.term-green { color: #4ade80; }
.term-cyan { color: #38bdf8; }
.term-yellow { color: #fde047; }
.term-purple { color: #c084fc; }
.term-gray { color: #64748b; }

/* 4. Roadmap */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.roadmap-step {
  background: #f8fafc;
  border: 1px solid rgba(51, 12, 179, 0.12);
  border-radius: 20px;
  padding: 30px 22px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.roadmap-step:hover {
  transform: translateY(-8px);
  border-color: #330cb3;
  box-shadow: 0 15px 35px rgba(51, 12, 179, 0.12);
  background: #ffffff;
}

.roadmap-step .step-badge {
  display: inline-block;
  background: #330cb3;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  align-self: center !important;
  margin: 0 auto 15px auto !important;
  text-align: center;
}

.roadmap-step .roadmap-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(51, 12, 179, 0.08);
  border: 1px solid rgba(51, 12, 179, 0.18);
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-self: center !important;
  margin: 0 auto 15px auto !important;
  transition: all 0.3s ease;
}

.roadmap-step:hover .roadmap-icon-box {
  background: #330cb3;
  transform: scale(1.08);
}

.roadmap-svg-icon {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

.roadmap-step:hover .roadmap-svg-icon {
  filter: brightness(0) invert(1);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a0a3e;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 15px;
}

.step-deliverable {
  font-size: 0.78rem;
  color: #330cb3;
  background: rgba(51, 12, 179, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: auto;
  border-left: 3px solid #330cb3;
}

/* 5. Cloud Maturity Quiz */
.quiz-container {
  max-width: 750px;
  margin: 0 auto;
}

.quiz-question-block {
  background: #f8fafc;
  border: 1px solid rgba(51, 12, 179, 0.15);
  border-radius: 20px;
  padding: 35px 30px;
}

.quiz-q-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a0a3e;
  margin-bottom: 25px;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt-btn {
  background: #ffffff;
  border: 1px solid rgba(51, 12, 179, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt-btn:hover {
  background: #330cb3;
  color: #ffffff;
  border-color: #330cb3;
  transform: translateX(6px);
}

.quiz-result-block {
  background: linear-gradient(135deg, rgba(51, 12, 179, 0.06) 0%, rgba(26, 10, 62, 0.03) 100%);
  border: 1px solid rgba(51, 12, 179, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
}

.quiz-score-badge {
  display: inline-block;
  background: #330cb3;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.quiz-res-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a0a3e;
  margin-bottom: 15px;
}

.quiz-res-advice {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 30px;
}

.quiz-cta-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-cta-btn {
  background: #330cb3;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.quiz-cta-btn:hover {
  background: #240880;
  transform: scale(1.05);
}

.quiz-retry-btn {
  background: transparent;
  border: 1px solid rgba(51, 12, 179, 0.3);
  color: #330cb3;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-retry-btn:hover {
  background: rgba(51, 12, 179, 0.08);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .devops-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .devops-kpi-item:nth-child(2) {
    border-right: none;
  }
  .devops-services-section .sap-services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .devops-excellence-section,
  .devops-innovations-container {
    margin-left: 20px;
    margin-right: 20px;
    padding: 0 10px;
  }
  .comparison-grid,
  .roi-results-grid,
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .devops-kpi-bar {
    grid-template-columns: 1fr;
  }
  .devops-kpi-item {
    border-right: none;
    border-bottom: 1px solid rgba(51, 12, 179, 0.1);
    padding-bottom: 15px;
  }
  .devops-kpi-item:last-child {
    border-bottom: none;
  }
  .devops-framework-badge {
    border-radius: 16px;
    text-align: left;
  }
  .devops-innovation-card {
    padding: 30px 20px;
  }
}
