/* Savoira — fiche produit (cours + parcours) : styles du gabarit unique.
   Charge après site-chrome.css + accueil-v2.css + ccm-v2.css.
   Nouveaux composants documentés ici : carte d'achat, carte projet,
   carte formateur/mentor, barre d'achat mobile. */

/* ---------- Hero deux colonnes ---------- */
.fp-hero { padding: 72px 0 0; }
.fp-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.fp-chips { display: flex; gap: 8px; margin-top: 24px; }
.fp-hero .h1 { margin-top: 16px; }
.fp-objective {
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.fp-objective .lbl { color: var(--muted); }
.fp-objective .val { color: var(--pine); }
.fp-desc { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.fp-meta { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-meta .star { color: var(--star); }
.fp-meta .sep { color: var(--line); }

/* ---------- Carte d'achat (composant central) ---------- */
.buy-card {
  position: sticky; top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.buy-price { font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.02em; }
.buy-price .per3 { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.buy-once { margin-top: 6px; }
.buy-card .btn { width: 100%; margin-top: 20px; }
.buy-card .btn + .btn { margin-top: 10px; }
.buy-includes { list-style: none; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.buy-includes li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; }
.buy-includes .cr-check { flex: none; margin-top: 3px; }
.buy-pay { margin-top: 18px; color: var(--muted); }

/* ---------- Sections ---------- */
.fp-section { padding: 96px 0 0; }
.fp-section:last-of-type { padding-bottom: 112px; }
.fp-section .section-head .h2 { margin-top: 16px; }

/* Acquis */
.fp-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 40px; max-width: 880px; }
.fp-outcomes li { display: flex; align-items: flex-start; gap: 10px; list-style: none; }
.fp-outcomes .cr-check { flex: none; margin-top: 4px; }

/* Programme : modules en accordéons repliés */
.fp-prog-total { margin-top: 12px; }
.fp-modules { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.md-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.md-q {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 20px;
  background: transparent; border: 0; border-radius: 12px;
  font-family: var(--sans); text-align: left; cursor: pointer;
  color: var(--ink);
}
.md-label {
  flex: none;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.md-title { font-size: 17px; font-weight: 600; line-height: 24px; }
.md-q .fq-x { margin-left: auto; }
.md-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease; }
.md-a > div { overflow: hidden; }
.md-item.open .md-a { grid-template-rows: 1fr; }
.md-lessons { list-style: none; padding: 4px 20px 16px; display: flex; flex-direction: column; }
.md-lessons li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 22px;
}
.md-lessons li:first-child { border-top: 0; }
.md-lessons .dur { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.md-lessons .chip { flex: none; }
.md-lessons a { color: var(--pine); font-weight: 500; }
.md-lessons a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Parcours : cours en séquence numérotée */
.fp-courses { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.seq-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.seq-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.seq-num {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--pine);
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--moss);
  display: flex; align-items: center; justify-content: center;
}
.seq-body .h3 { font-size: 19px; line-height: 26px; }
.seq-body p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 22px; }
.seq-body .caption { margin-top: 6px; color: var(--muted); }
.seq-price { font-size: 19px; font-weight: 600; white-space: nowrap; }
.fp-sep-note { margin-top: 20px; color: var(--muted); }

/* Projets */
.fp-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pj-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.pj-card .h3 { font-size: 19px; line-height: 26px; }
.pj-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 23px; }
.pj-deliv {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.pj-deliv b { color: var(--pine); font-weight: 500; }

/* Formateur / mentor */
.fp-person {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; margin-top: 40px; max-width: 720px;
}
.fp-avatar {
  flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--moss); color: var(--pine);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
}
.fp-person .name { font-size: 19px; font-weight: 600; }
.fp-person .role { margin-top: 2px; color: var(--muted); font-size: 14px; }
.fp-person .bio { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 24px; max-width: 48ch; }
.fp-person .link-tertiary { margin-top: 14px; font-size: 15px; }
.fp-mentor-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fp-mentor-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--muted); }
.fp-mentor-list .cr-check { flex: none; margin-top: 3px; }

/* Certificat — le moment sombre unique de la fiche */
.fp-cert-panel {
  background: var(--pine);
  border-radius: 24px;
  padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  color: var(--cream);
  margin-top: 40px;
}
.fp-cert-panel .eyebrow { color: var(--moss); }
.fp-cert-panel .h2 { color: var(--cream); margin-top: 16px; }
.fp-cert-checks { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.fp-cert-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--cream-72); }
.fp-cert-checks svg { flex: none; margin-top: 5px; color: var(--moss); }
.fp-cert-shot { background: var(--white); border-radius: 16px; overflow: hidden; }

/* Cross-sell */
.fp-cross { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; max-width: 880px; }
.fp-cross-note { margin-top: 20px; color: var(--muted); }

/* FAQ extrait : réutilise .fq-* (ccm-v2.css) */
.fp-faq { margin-top: 40px; max-width: 880px; }
.fp-faq .fq-more { margin-top: 20px; }

/* CTA final */
.fp-final { text-align: center; padding: 112px 0; }
.fp-final .h2 { margin-top: 16px; }
.fp-final .price-line { margin-top: 12px; color: var(--muted); }
.fp-final .btn { margin-top: 28px; }

/* Barre d'achat mobile */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none;
  align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(16, 22, 19, .06);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.buy-bar.visible { transform: none; }
.buy-bar .bb-price { font-size: 22px; font-weight: 600; }
.buy-bar .bb-once { font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .fp-hero-grid { grid-template-columns: 1fr 340px; gap: 40px; }
  .fp-projects { grid-template-columns: 1fr; max-width: 620px; }
  .fp-cert-panel { grid-template-columns: 1fr; gap: 40px; }
  .fp-cross { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .fp-hero { padding-top: 48px; }
  .fp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .buy-card { position: static; }
  .fp-section { padding-top: 64px; }
  .fp-outcomes { grid-template-columns: 1fr; }
  .fp-cert-panel { padding: 40px 28px; }
  .fp-final { padding: 64px 0; }
  .buy-bar { display: flex; }
  .seq-card { grid-template-columns: auto 1fr; }
  .seq-price { grid-column: 2; justify-self: start; }
}
