/* ══════════════════════════════════════
   PAGE COMMENT ÇA MARCHE — ccm.css
══════════════════════════════════════ */

/* ── Hero ── */
.ccm-hero {
  position: relative;
  background: var(--white);
  padding: 140px 10vw 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.ccm-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.ccm-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.ccm-hero__back {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 32px;
  transition: color .2s;
  letter-spacing: 0.04em;
}
.ccm-hero__back:hover { color: var(--black); }

.ccm-hero .eyebrow { color: var(--gray); margin-bottom: 20px; }

.ccm-hero__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--black);
  margin-bottom: 24px;
}
.ccm-hero__title em {
  font-style: italic;
  color: rgba(128,0,32,0.5);
}

.ccm-hero__sub {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 56px;
}

.ccm-hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.ccm-hero__stat-val {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--black);
}

.ccm-hero__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Étapes ── */
.ccm-steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10vw;
}

.ccm-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.ccm-step:last-child { border-bottom: none; }

.ccm-step--reverse {
  direction: rtl;
}
.ccm-step--reverse > * { direction: ltr; }

/* Colonne illustration */
.ccm-step__illus-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 24px;
  aspect-ratio: 1;
  overflow: hidden;
}

.ccm-step__bg-num {
  position: absolute;
  font-size: 160px;
  font-weight: 900;
  color: rgba(128,0,32,0.06);
  letter-spacing: -0.06em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.ccm-step__illus-wrap img {
  width: 55%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Colonne texte */
.ccm-step__text-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ccm-step__num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #800020;
}

.ccm-step__title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.1;
}

.ccm-step__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
}
.ccm-step__desc strong { color: var(--black); font-weight: 700; }

.ccm-step__tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(128,0,32,0.05);
  border-left: 3px solid #800020;
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  margin-top: 4px;
  color: #800020;
}
.ccm-step__tip p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.ccm-step__tip svg { flex-shrink: 0; margin-top: 1px; }

.ccm-step__cta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #800020;
  border-bottom: 1px solid rgba(128,0,32,0.3);
  padding-bottom: 2px;
  margin-top: 4px;
  align-self: flex-start;
  transition: border-color .2s, color .2s;
}
.ccm-step__cta:hover { border-color: #800020; }

/* ── FAQ ── */
.ccm-faq {
  background: var(--black);
  padding: 96px 10vw;
}

.ccm-faq__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.ccm-faq__head { position: sticky; top: 120px; }

.ccm-faq__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 12px;
  line-height: 1.1;
}

.ccm-faq__list { display: flex; flex-direction: column; }

.ccm-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ccm-faq__item summary {
  padding: 22px 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
}
.ccm-faq__item summary::-webkit-details-marker { display: none; }
.ccm-faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: transform .25s, color .2s;
}
.ccm-faq__item[open] summary { color: #fff; }
.ccm-faq__item[open] summary::after { transform: rotate(45deg); color: #800020; }
.ccm-faq__item summary:hover { color: #fff; }

.ccm-faq__item p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  padding-bottom: 22px;
  max-width: 520px;
}

/* ── CTA final ── */
.ccm-cta {
  padding: 120px 10vw;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.ccm-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.ccm-cta__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
}

.ccm-cta__sub {
  font-size: 15px;
  color: var(--gray);
  margin-top: 10px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ccm-faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .ccm-faq__head { position: static; }
}

@media (max-width: 768px) {
  .ccm-hero { padding: 120px 24px 60px; }
  .ccm-hero__stats { gap: 24px; }

  .ccm-steps { padding: 0 24px; }
  .ccm-step {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 0;
    direction: ltr;
  }
  .ccm-step--reverse { direction: ltr; }
  .ccm-step__illus-wrap { aspect-ratio: 4/3; }

  .ccm-faq { padding: 64px 24px; }
  .ccm-cta { padding: 64px 24px; }
  .ccm-cta__inner { flex-direction: column; align-items: flex-start; }
}
