/* ============================================
   SXM Success Training - Design V2
   Palette Cyan Électrique + Effets Modernes
   ============================================ */

:root {
  --bg-primary: #050a0f;
  --bg-secondary: #0a1118;
  --glass: rgba(109,231,255,0.03);
  --glass-border: rgba(109,231,255,0.12);
  --glass-hover: rgba(109,231,255,0.08);
  --cyan-bright: #6DE7FF;
  --cyan-vivid: #24DBFF;
  --cyan-pale: #B6F3FF;
  --gradient-electric: linear-gradient(135deg, #6DE7FF 0%, #24DBFF 50%, #B6F3FF 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.4);
  --neon-glow: 0 0 20px rgba(109,231,255,0.5), 0 0 40px rgba(109,231,255,0.3);
  --shadow-electric: 0 0 30px rgba(109,231,255,0.15), 0 0 60px rgba(36,219,255,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--cyan-bright); text-decoration: none; transition: all 0.3s; }
a:hover { text-decoration: underline; text-shadow: 0 0 10px rgba(109,231,255,0.5); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(109,231,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(109,231,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(109,231,255,0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(36,219,255,0.1) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
  animation-delay: -10s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(182,243,255,0.08) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-20px, 20px) scale(1.05); opacity: 0.8; }
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(109,231,255,0.01) 2px, rgba(109,231,255,0.01) 4px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(5,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(109,231,255,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(109,231,255,0.3));
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 5;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--gradient-electric);
  color: #050a0f;
  box-shadow: 0 4px 20px rgba(109,231,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(109,231,255,0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--cyan-bright);
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-icon { width: 18px; height: 18px; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--cyan-bright); }

/* Cards avec animations - POINTER-EVENTS NONE sur pseudo-éléments */
.card,
.panel,
.sidebar-card,
.service-feature {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before,
.panel::before,
.sidebar-card::before,
.service-feature::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: var(--gradient-electric);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover,
.panel:hover,
.sidebar-card:hover,
.service-feature:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-electric);
}

.card:hover::before,
.panel:hover::before,
.sidebar-card:hover::before,
.service-feature:hover::before {
  opacity: 1;
}

/* Contenu des cards au-dessus du pseudo-élément */
.card > *,
.panel > *,
.sidebar-card > *,
.service-feature > * {
  position: relative;
  z-index: 1;
}

/* Service Hero */
.service-hero {
  position: relative;
  padding: 140px 0 80px;
  z-index: 2;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.service-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.service-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-electric);
}

/* Service Content */
.service-content {
  position: relative;
  padding: 80px 0;
  z-index: 2;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}

.service-main h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
  color: var(--cyan-vivid) !important;
  text-shadow: 0 0 20px rgba(36,219,255,0.4);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.service-main h2:first-child { margin-top: 0; }

.service-main h3 {
  font-size: 1.1rem;
  margin: 28px 0 12px;
  color: var(--cyan-vivid);
  text-shadow: 0 0 15px rgba(36,219,255,0.4);
}

.service-main p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.service-main a {
  color: var(--cyan-bright);
  text-shadow: 0 0 10px rgba(109,231,255,0.3);
  position: relative;
  z-index: 5;
}

/* Feature Box */
.service-feature {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.service-feature h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--cyan-pale) !important;
}

.service-feature p { margin-bottom: 0; font-size: 0.9rem; }

/* Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 10;
}

.sidebar-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--cyan-pale);
}

.sidebar-card ul { 
  list-style: none;
  position: relative;
  z-index: 5;
}

.sidebar-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all 0.3s;
  position: relative;
  z-index: 5;
}

.sidebar-links a:hover {
  color: var(--cyan-bright);
  text-shadow: 0 0 10px rgba(109,231,255,0.5);
}

/* CTA Box */
.service-cta {
  background: linear-gradient(135deg, rgba(109,231,255,0.08) 0%, rgba(36,219,255,0.05) 100%) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px;
  padding: 36px;
  margin-top: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: var(--gradient-electric);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.service-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.service-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.service-cta .btn-whatsapp {
  position: relative;
  z-index: 5;
}

/* Footer */
.footer {
  position: relative;
  padding: 48px 0 32px;
  border-top: 1px solid var(--glass-border);
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--cyan-bright); }

/* Legal Pages */
.legal-content {
  position: relative;
  padding: 140px 0 80px;
  z-index: 2;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  background: var(--gradient-electric);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  color: var(--cyan-vivid);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
}

.legal-content ul li::before {
  content: '→';
  color: var(--cyan-bright);
  margin-right: 10px;
}

/* Contact Page */
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(109,231,255,0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-hero-image { order: -1; }
  .service-grid { grid-template-columns: 1fr; }
  .service-sidebar { order: -1; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .service-hero { padding: 120px 0 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { padding: 0 20px; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .service-cta { padding: 24px; }
}
