/* ==========================================================================
   DIGITAL SECURITY SERVICE — STYLES PRINCIPAUX
   Identité : Dark Cyber & IA Premium
   Domaine : digital-service-security.online
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-primary: #050814;
  --bg-secondary: #0a0f24;
  --bg-tertiary: #0f1738;
  --bg-glass: rgba(10, 15, 36, 0.75);
  --bg-glass-hover: rgba(15, 23, 56, 0.9);
  
  --accent-blue: #0066ff;
  --accent-blue-glow: rgba(0, 102, 255, 0.35);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-blue: rgba(0, 102, 255, 0.3);
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(0, 102, 255, 0.25);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Canvas Background */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Glassmorphism & Cyber Card Effects */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-card);
  transform: translateY(-4px);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card-static {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.6);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-cyber-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-cyber-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  border-color: var(--accent-cyan);
}

/* Gradient Texts */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-blue-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-tech {
  background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Interactive Defense Chain */
.defense-chain-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
  gap: 0.5rem;
}

.defense-node {
  flex: 1;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.defense-node.active, .defense-node:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 102, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
}

.defense-arrow {
  color: var(--accent-cyan);
  font-weight: bold;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrow-flow 2s infinite;
}

@keyframes arrow-flow {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* Radar & Tech Visualizer */
.radar-grid {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 440px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle-1 {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  animation: spin-slow 40s linear infinite;
}

.radar-circle-2 {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.radar-circle-3 {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 240, 255, 0.2) 360deg);
  animation: radar-sweep 6s linear infinite;
  pointer-events: none;
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating Tech Badges */
.floating-node {
  position: absolute;
  padding: 0.5rem 0.85rem;
  background: rgba(10, 15, 36, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 3;
}

.floating-node:hover {
  transform: scale(1.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Timeline */
.timeline-step {
  position: relative;
  padding-left: 3rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 2.2rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(0, 102, 255, 0.15) 100%);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Sticky Mobile Bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
}

/* Modal Styling */
.dss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 15, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dss-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dss-modal-content {
  background: #0a0f24;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.2);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dss-modal-overlay.active .dss-modal-content {
  transform: scale(1);
}

/* Form Styles */
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(15, 23, 56, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(15, 23, 56, 0.95);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dim);
}

.form-select option {
  background-color: #0a0f24;
  color: #ffffff;
}

/* Toast Notifications */
.dss-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  background: #0d1536;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.35);
  padding: 1rem 1.4rem;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.92rem;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dss-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-glass);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s ease;
}

.faq-header:hover {
  color: var(--accent-cyan);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-content {
  max-height: 600px;
  padding-bottom: 1.5rem;
  transition: max-height 0.35s ease-in-out;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 420px;
  background: rgba(10, 15, 36, 0.95);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2);
  z-index: 90;
  transform: translateY(150px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* Animations helper */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
}
