/**
 * COMMENT CA MARCHE - STYLES
 * Page explicative avec timeline visuelle
 */

/* ===== HERO SECTION ===== */
.ccm-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 10rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.ccm-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 80%, rgba(187, 134, 252, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ccm-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.ccm-hero .hero-emoji {
  font-size: clamp(3rem, 6vw, 4rem);
  margin-bottom: 1rem;
  display: block;
}

.ccm-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-light), var(--gray-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ccm-hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.ccm-hero .lead strong {
  color: var(--accent-gold);
}

/* ===== SECTIONS DE CONTENU ===== */
.ccm-section {
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.ccm-section p {
  font-size: 1.1rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ccm-section .intro-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.ccm-section .intro-box p {
  margin-bottom: 0.8rem;
}

.ccm-section .intro-box p:last-child {
  margin-bottom: 0;
}

/* ===== TIMELINE VISUELLE ===== */
.timeline-section {
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.timeline-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}

/* Ligne verticale de la timeline */
.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--accent-gold),
    var(--accent-purple),
    var(--accent-cyan),
    var(--accent-green),
    var(--accent-orange)
  );
  border-radius: 3px;
}

/* Chaque etape de la timeline */
.timeline-step {
  position: relative;
  padding: 2rem 0 3rem;
  padding-left: 2.5rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Icone/cercle de l'etape */
.timeline-icon {
  position: absolute;
  left: -30px;
  top: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--bg-dark);
  border: 3px solid var(--step-color);
  box-shadow: 0 0 20px var(--step-glow);
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-step:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--step-glow);
}

/* Couleurs par etape */
.timeline-step.step-1 {
  --step-color: #FFD700;
  --step-glow: rgba(255, 215, 0, 0.4);
}

.timeline-step.step-2 {
  --step-color: #BB86FC;
  --step-glow: rgba(187, 134, 252, 0.4);
}

.timeline-step.step-3 {
  --step-color: #00D9FF;
  --step-glow: rgba(0, 217, 255, 0.4);
}

.timeline-step.step-4 {
  --step-color: #00FF7F;
  --step-glow: rgba(0, 255, 127, 0.4);
}

.timeline-step.step-5 {
  --step-color: #FF6B35;
  --step-glow: rgba(255, 107, 53, 0.4);
}

/* Contenu de l'etape */
.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--step-color);
  border-radius: 0 16px 16px 0;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-content {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--step-color);
  transform: translateX(5px);
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--step-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-content .step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.timeline-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-light);
  font-size: 0.95rem;
}

.timeline-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--step-color);
  border-radius: 50%;
}

.timeline-content .highlight {
  border-left: 3px solid var(--accent-gold);
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

/* ===== BLOC REVENUS ===== */
.revenus-block {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 800px;
  margin: 3rem auto;
}

.revenus-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.revenus-block p {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.revenus-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.revenus-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.revenus-step:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateX(5px);
}

.revenus-step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.revenus-step span {
  color: var(--gray-light);
}

.revenus-block .revenus-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
  color: var(--gray);
}

/* ===== BLOC SUPPORT ===== */
.support-block {
  background: rgba(187, 134, 252, 0.05);
  border: 1px solid rgba(187, 134, 252, 0.2);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 800px;
  margin: 3rem auto;
}

.support-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-block p {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.support-item-icon {
  font-size: 1.5rem;
}

.support-item span {
  color: var(--gray-light);
  font-size: 0.95rem;
}

.support-block .support-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.1);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
}

/* ===== APERCU ZONE MEMBRE ===== */
.preview-section {
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.preview-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.preview-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.preview-section .section-subtitle {
  color: var(--gray);
}

.preview-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  filter: blur(3px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.preview-container:hover .preview-grid {
  filter: blur(2px);
  opacity: 0.8;
}

.preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.preview-card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.preview-card h4 {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.preview-card p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Overlay cadenas */
.preview-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(13, 17, 23, 0.95);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 2rem 3rem;
  text-align: center;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.preview-overlay .lock-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.preview-overlay h3 {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.preview-overlay p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* ===== CTA FINAL ===== */
.ccm-cta {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  text-align: center;
  position: relative;
}

.ccm-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
}

.btn-cta-primary {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.cta-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ccm-hero {
    min-height: 40vh;
    padding: 8rem 1.5rem 3rem;
  }

  .timeline {
    padding-left: 50px;
  }

  .timeline::before {
    left: 25px;
  }

  .timeline-icon {
    left: -25px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .timeline-step {
    padding-left: 1.5rem;
  }

  .timeline-content {
    padding: 1.2rem 1.5rem;
  }

  .revenus-block,
  .support-block {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }

  .preview-overlay {
    padding: 1.5rem 2rem;
  }

  .preview-grid {
    gap: 1rem;
  }
}
