/* ── COMMENT ÇA MARCHE PAGE ──────────────────────────────────────────────── */

/* Hero */
.page-hero { text-align: center; padding: 4rem 2rem 3rem; max-width: 680px; margin: 0 auto; }

/* Video */
.ccm-video-ph {
  background-color: var(--navy-mid);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  aspect-ratio: 16/7;
  max-width: 860px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color .3s, transform .4s;
  position: relative;
  overflow: hidden;
}

.ccm-video-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,38,56,.5) 0%, rgba(7,38,56,.3) 50%, rgba(7,38,56,.6) 100%);
  transition: opacity .3s;
  border-radius: inherit;
}

.ccm-video-ph:hover { border-color: rgba(245,166,35,.5); transform: scale(1.005); }
.ccm-video-ph:hover::before { opacity: .7; }
.ccm-video-ph:hover .play-btn { transform: scale(1.12); box-shadow: 0 0 0 20px rgba(245,166,35,.18), 0 8px 32px rgba(245,166,35,.3); }
.ccm-video-ph p { position: relative; z-index: 1; font-size: .82rem; color: rgba(232,238,242,.8); }
.ccm-video-label {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1;
  font-size: .7rem; font-weight: 700;
  background: rgba(7,38,56,.6); backdrop-filter: blur(8px);
  color: var(--amber); padding: .3rem .75rem; border-radius: 6px;
  border: 1px solid rgba(245,166,35,.25);
}
.play-btn {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(245,166,35,.92);
  backdrop-filter: blur(8px);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px rgba(245,166,35,.15), 0 4px 24px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .2s;
}

/* Tabs */
.tabs-wrap { text-align: center; margin: 0 0 3rem; }
.tabs {
  display: inline-flex; gap: .4rem;
  background: rgba(13,58,82,.5);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50px; padding: .3rem;
}
.tab {
  padding: .55rem 1.4rem; border-radius: 50px;
  font-size: .85rem; font-weight: 700;
  cursor: pointer; border: none;
  background: transparent; color: var(--muted);
  transition: all .2s; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: .4rem;
}
.tab.active { background: var(--amber); color: var(--navy); }
.tab:hover:not(.active) { color: var(--white); }
.panel { display: none; }
.panel.active { display: block; }

/* Parcours timeline */
.parcours { max-width: 860px; margin: 0 auto; position: relative; padding: 0 1.5rem 3rem; }
.parcours-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), rgba(245,166,35,.1));
  transform: translateX(-50%); z-index: 0;
}
.step-row {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 1rem; align-items: center;
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.step-row.right .step-content { grid-column: 3; }
.step-row.right .step-empty  { grid-column: 1; }
.step-content {
  background: rgba(13,58,82,.55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 1.4rem 1.6rem;
  transition: border-color .3s;
}
.step-content:hover { border-color: rgba(245,166,35,.3); }
.step-content h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--white); }
.step-content p  { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.step-tag { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); margin-bottom: .4rem; }
.step-ico { display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; color: var(--amber); }
.step-node {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  font-family: Georgia, serif; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; box-shadow: 0 0 0 6px rgba(245,166,35,.15);
}

/* Inline testimonial */
.inline-test {
  background: rgba(13,58,82,.4);
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  padding: 1.4rem 1.6rem;
  max-width: 680px; margin: 0 auto 4rem;
}
.inline-test blockquote { font-size: .9rem; color: var(--light); line-height: 1.7; font-style: italic; margin-bottom: .8rem; }
.inline-test .stars { color: var(--amber); font-size: .85rem; margin-bottom: .5rem; }
.inline-test .author { display: flex; align-items: center; gap: .7rem; }
.inline-test .avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(245,166,35,.15); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: var(--amber); flex-shrink: 0; }
.inline-test .name { font-size: .82rem; font-weight: 700; color: var(--white); }
.inline-test .role { font-size: .72rem; color: var(--muted); }

/* Steps détaillés (version gestionnaire) */
.detail-step {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-bottom: 5rem;
}
.detail-step-num {
  font-family: Georgia, serif; font-size: 5rem;
  color: rgba(245,166,35,.1); font-weight: 700; line-height: 1; margin-bottom: 1rem;
}
.detail-step-card {
  background: rgba(13,58,82,.45);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 2.5rem; text-align: center;
}
.detail-step-value {
  font-family: Georgia, serif; font-size: 1.8rem;
  font-weight: 700; color: var(--amber); margin-top: .5rem;
}
.detail-step-checklist { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.detail-step-checklist li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--light); }

/* Dedicated FAQ */
.ccm-faq-wrap { max-width: 720px; margin: 0 auto 4rem; display: flex; flex-direction: column; gap: .8rem; }
.ccm-faq-item { background: rgba(13,58,82,.35); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; }
.ccm-faq-q {
  width: 100%; background: none; border: none;
  color: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 600;
  padding: 1.1rem 1.4rem; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.ccm-faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--amber); }
.ccm-faq-item.open .ccm-faq-q svg { transform: rotate(180deg); }
.ccm-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1.4rem; font-size: .85rem; color: var(--muted); line-height: 1.7;
}
.ccm-faq-item.open .ccm-faq-a { max-height: 300px; padding: .2rem 1.4rem 1.2rem; }

/* Light mode */
[data-theme="light"] .step-content { background: #ffffff !important; border-color: rgba(7,38,56,.1) !important; }
[data-theme="light"] .detail-step-card { background: #ffffff !important; border-color: rgba(7,38,56,.1) !important; }
[data-theme="light"] .inline-test { background: rgba(7,38,56,.04) !important; }
[data-theme="light"] .ccm-faq-item { background: #ffffff !important; border-color: rgba(7,38,56,.08) !important; }
[data-theme="light"] .ccm-faq-a { color: var(--text-muted) !important; }
[data-theme="light"] .tabs { background: rgba(7,38,56,.06) !important; }
[data-theme="light"] .ccm-video-ph { background: linear-gradient(135deg,#e2eaf2,#dde8f0) !important; }

/* Responsive */
@media (max-width: 700px) {
  .parcours-line { display: none; }
  .step-row { grid-template-columns: 44px 1fr; gap: .8rem; }
  .step-row.right .step-content { grid-column: 2; }
  .step-row .step-empty,
  .step-row.right .step-empty { display: none; }
  .step-node { margin: 0; }
  .step-content { grid-column: 2; }
  .detail-step { grid-template-columns: 1fr; gap: 2rem; }
  .detail-step-card { order: -1 !important; }
}