/* ============================================================
   COURS PREMIUM — Systeme.io + IA : Tunnels Haut de Gamme
   Version: 1.0 — 2026-03-19
   ============================================================ */

/* === VARIABLES & BASE === */
.csio-course {
  --csio-bg: #0a0a0f;
  --csio-bg-card: rgba(255,255,255,0.03);
  --csio-bg-card-hover: rgba(255,255,255,0.06);
  --csio-accent: #7c3aed;
  --csio-accent-2: #a855f7;
  --csio-gold: #f59e0b;
  --csio-gold-light: #fbbf24;
  --csio-green: #10b981;
  --csio-blue: #3b82f6;
  --csio-pink: #ec4899;
  --csio-text: #e2e8f0;
  --csio-text-muted: #94a3b8;
  --csio-border: rgba(255,255,255,0.08);
  --csio-radius: 16px;
  --csio-radius-sm: 10px;
  --csio-shadow: 0 4px 24px rgba(0,0,0,0.3);
  --csio-glow: 0 0 40px rgba(124,58,237,0.15);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--csio-text);
  line-height: 1.7;
  overflow-x: hidden;
}

.csio-course *, .csio-course *::before, .csio-course *::after {
  box-sizing: border-box;
}

/* === HERO === */
.csio-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse at 30% 20%, rgba(124,58,237,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(168,85,247,0.1) 0%, transparent 50%),
              var(--csio-bg);
  overflow: hidden;
}

.csio-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(124,58,237,0.03) 60deg, transparent 120deg, rgba(168,85,247,0.02) 180deg, transparent 240deg, rgba(245,158,11,0.02) 300deg, transparent 360deg);
  animation: csio-rotate 40s linear infinite;
  pointer-events: none;
}

@keyframes csio-rotate {
  to { transform: rotate(360deg); }
}

.csio-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.csio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--csio-accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.csio-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #fff 0%, var(--csio-accent-2) 50%, var(--csio-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.csio-hero .csio-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--csio-text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.csio-hero-value {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--csio-gold-light);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 48px;
}

/* === NAV STICKY === */
.csio-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--csio-border);
  padding: 0 24px;
}

.csio-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.csio-nav-inner::-webkit-scrollbar { display: none; }

.csio-nav-link {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--csio-text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
  cursor: pointer;
}

.csio-nav-link:hover, .csio-nav-link.active {
  color: var(--csio-accent-2);
  border-bottom-color: var(--csio-accent);
}

/* === SECTIONS === */
.csio-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.csio-section-alt {
  background: rgba(124,58,237,0.03);
  border-top: 1px solid var(--csio-border);
  border-bottom: 1px solid var(--csio-border);
}

.csio-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.csio-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--csio-accent), var(--csio-accent-2));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.csio-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}

.csio-section-header p {
  font-size: 16px;
  color: var(--csio-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* === CARDS === */
.csio-card {
  background: var(--csio-bg-card);
  border: 1px solid var(--csio-border);
  border-radius: var(--csio-radius);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.csio-card:hover {
  background: var(--csio-bg-card-hover);
  border-color: rgba(124,58,237,0.2);
  box-shadow: var(--csio-glow);
}

.csio-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.csio-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.csio-card p {
  font-size: 14px;
  color: var(--csio-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* === GRID === */
.csio-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

@media (max-width: 768px) {
  .csio-grid-2, .csio-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* === STEP CARDS (processus guidé) === */
.csio-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.csio-steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--csio-accent), var(--csio-accent-2), var(--csio-gold));
  border-radius: 2px;
}

.csio-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-left: 8px;
}

.csio-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--csio-bg);
  border: 2px solid var(--csio-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--csio-accent-2);
  z-index: 2;
}

.csio-step-content {
  flex: 1;
  background: var(--csio-bg-card);
  border: 1px solid var(--csio-border);
  border-radius: var(--csio-radius);
  padding: 28px;
}

.csio-step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.csio-step-content p {
  font-size: 14px;
  color: var(--csio-text-muted);
  margin: 0 0 12px;
  line-height: 1.7;
}

/* === CODE BLOCKS === */
.csio-code-block {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--csio-radius-sm);
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  color: #c9d1d9;
  margin: 16px 0;
}

.csio-code-block .csio-comment { color: #8b949e; }
.csio-code-block .csio-keyword { color: #ff7b72; }
.csio-code-block .csio-string { color: #a5d6ff; }
.csio-code-block .csio-tag { color: #7ee787; }

/* === COMPARAISON IA === */
.csio-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .csio-compare { grid-template-columns: 1fr; }
}

.csio-compare-card {
  border-radius: var(--csio-radius);
  padding: 32px;
  border: 1px solid var(--csio-border);
}

.csio-compare-card.csio-starter {
  background: rgba(59,130,246,0.05);
  border-color: rgba(59,130,246,0.2);
}

.csio-compare-card.csio-pro {
  background: rgba(124,58,237,0.05);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 0 60px rgba(124,58,237,0.1);
}

.csio-compare-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}

.csio-compare-card .csio-price {
  font-size: 14px;
  margin-bottom: 20px;
}

.csio-compare-card.csio-starter .csio-price { color: var(--csio-blue); }
.csio-compare-card.csio-pro .csio-price { color: var(--csio-accent-2); }

.csio-compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.csio-compare-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--csio-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.csio-compare-card li::before {
  content: '✓';
  color: var(--csio-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* === TIPS / CALLOUTS === */
.csio-tip {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--csio-radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.csio-tip-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.csio-tip-text {
  font-size: 14px;
  color: var(--csio-text);
  line-height: 1.7;
}

.csio-tip-text strong { color: var(--csio-green); }

.csio-warning {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
}

.csio-warning .csio-tip-text strong { color: var(--csio-gold); }

/* === WORKFLOW DIAGRAM === */
.csio-workflow {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}

.csio-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  min-width: 120px;
}

.csio-workflow-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--csio-bg-card);
  border: 2px solid var(--csio-border);
}

.csio-workflow-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--csio-text-muted);
  text-align: center;
}

.csio-workflow-arrow {
  font-size: 24px;
  color: var(--csio-accent);
  margin: 0 -4px;
}

@media (max-width: 600px) {
  .csio-workflow { flex-direction: column; }
  .csio-workflow-arrow { transform: rotate(90deg); }
}

/* === MODULE CARDS (programme) === */
.csio-module {
  background: var(--csio-bg-card);
  border: 1px solid var(--csio-border);
  border-radius: var(--csio-radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.csio-module:hover { border-color: rgba(124,58,237,0.3); }

.csio-module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
}

.csio-module-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--csio-accent), var(--csio-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.csio-module-title {
  flex: 1;
}

.csio-module-title h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #fff;
}

.csio-module-title span {
  font-size: 12px;
  color: var(--csio-text-muted);
}

.csio-module-toggle {
  font-size: 18px;
  color: var(--csio-text-muted);
  transition: transform 0.3s;
}

.csio-module.open .csio-module-toggle { transform: rotate(180deg); }

.csio-module-body {
  display: none;
  padding: 0 28px 24px;
  border-top: 1px solid var(--csio-border);
}

.csio-module.open .csio-module-body { display: block; padding-top: 20px; }

.csio-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--csio-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.csio-lesson:last-child { border-bottom: none; }

.csio-lesson-icon { font-size: 16px; flex-shrink: 0; }
.csio-lesson-duration {
  margin-left: auto;
  font-size: 12px;
  color: var(--csio-text-muted);
  opacity: 0.7;
}

/* === FEATURE HIGHLIGHT === */
.csio-highlight {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 48px 0;
}

.csio-highlight-reverse { flex-direction: row-reverse; }

@media (max-width: 768px) {
  .csio-highlight, .csio-highlight-reverse { flex-direction: column; gap: 24px; }
}

.csio-highlight-visual {
  flex: 1;
  border-radius: var(--csio-radius);
  overflow: hidden;
  border: 1px solid var(--csio-border);
  background: var(--csio-bg-card);
  padding: 24px;
}

.csio-highlight-text {
  flex: 1;
}

.csio-highlight-text h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}

.csio-highlight-text p {
  font-size: 15px;
  color: var(--csio-text-muted);
  line-height: 1.8;
  margin: 0 0 16px;
}

/* === CTA BUTTON === */
.csio-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--csio-accent), var(--csio-accent-2));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.csio-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

.csio-cta-gold {
  background: linear-gradient(135deg, var(--csio-gold), #d97706);
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}

.csio-cta-gold:hover {
  box-shadow: 0 8px 30px rgba(245,158,11,0.4);
}

/* === CHECKLIST === */
.csio-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.csio-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--csio-text);
  line-height: 1.6;
}

.csio-checklist li::before {
  content: '✓';
  color: var(--csio-green);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === FAQ ACCORDION === */
.csio-faq-item {
  background: var(--csio-bg-card);
  border: 1px solid var(--csio-border);
  border-radius: var(--csio-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.csio-faq-q {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.csio-faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--csio-accent-2);
  transition: transform 0.3s;
}

.csio-faq-item.open .csio-faq-q::after {
  content: '−';
}

.csio-faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--csio-text-muted);
  line-height: 1.8;
}

.csio-faq-item.open .csio-faq-a { display: block; }

/* === TESTIMONIALS === */
.csio-testimonial {
  background: var(--csio-bg-card);
  border: 1px solid var(--csio-border);
  border-radius: var(--csio-radius);
  padding: 28px;
  position: relative;
}

.csio-testimonial::before {
  content: '"';
  font-size: 64px;
  color: var(--csio-accent);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.csio-testimonial p {
  font-size: 14px;
  color: var(--csio-text);
  line-height: 1.8;
  margin: 0 0 16px;
  font-style: italic;
  padding-left: 20px;
}

.csio-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
}

.csio-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--csio-accent), var(--csio-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.csio-testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.csio-testimonial-role {
  font-size: 12px;
  color: var(--csio-text-muted);
}

/* === PRICING === */
.csio-pricing {
  text-align: center;
  margin: 48px 0;
}

.csio-pricing-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--csio-bg-card);
  border: 2px solid var(--csio-accent);
  border-radius: var(--csio-radius);
  padding: 48px 40px;
  position: relative;
  box-shadow: var(--csio-glow);
}

.csio-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--csio-gold), #d97706);
  color: #000;
  padding: 6px 24px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.csio-pricing-old {
  font-size: 18px;
  color: var(--csio-text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.csio-pricing-amount {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.csio-pricing-period {
  font-size: 14px;
  color: var(--csio-text-muted);
  margin-bottom: 32px;
}

.csio-pricing-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.csio-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--csio-text);
  line-height: 1.5;
}

.csio-pricing-features li::before {
  content: '✓';
  color: var(--csio-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* === FOOTER === */
.csio-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--csio-border);
  color: var(--csio-text-muted);
  font-size: 13px;
}

/* === INLINE LABEL === */
.csio-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.csio-label-green { background: rgba(16,185,129,0.15); color: var(--csio-green); }
.csio-label-gold { background: rgba(245,158,11,0.15); color: var(--csio-gold); }
.csio-label-purple { background: rgba(124,58,237,0.15); color: var(--csio-accent-2); }
.csio-label-blue { background: rgba(59,130,246,0.15); color: var(--csio-blue); }
.csio-label-pink { background: rgba(236,72,153,0.15); color: var(--csio-pink); }

/* === SCREENSHOT PLACEHOLDER === */
.csio-screenshot {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(168,85,247,0.04));
  border: 1px dashed rgba(124,58,237,0.3);
  border-radius: var(--csio-radius-sm);
  padding: 40px 24px;
  text-align: center;
  color: var(--csio-text-muted);
  font-size: 13px;
}

/* === EMOJI-STAT ROW === */
.csio-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.csio-stat {
  text-align: center;
}

.csio-stat-num {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.csio-stat-label {
  font-size: 13px;
  color: var(--csio-text-muted);
}

/* === SCROLL PROGRESS BAR === */
.csio-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--csio-accent), var(--csio-gold));
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* === ANIMATIONS === */
.csio-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.csio-fade-in.csio-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .csio-section { padding: 48px 16px; }
  .csio-card { padding: 24px 20px; }
  .csio-step { gap: 16px; }
  .csio-steps::before { left: 28px; }
  .csio-pricing-card { padding: 32px 24px; }
  .csio-pricing-amount { font-size: 40px; }
  .csio-stats { gap: 24px; }
}
