/* Formations — guides pratiques : complète assets/css/boutique.css (mêmes grille, couvertures et fiche détaillée) ; voir pages/formations.php. */

/* ---- barre latérale : domaines ---- */
.sidebar-formations .shop-opt::before { background: var(--dom, var(--classe-accent, var(--color-primary))); }
.sidebar-formations .shop-opt .fm-emoji { display: inline-block; width: 1.4em; text-align: center; font-style: normal; }
.sidebar-formations .shop-opt em { font-size: 0.72rem; }
.sidebar-formations .shop-opt.is-soon { opacity: 0.55; }
.sidebar-formations .shop-opt.is-soon em { font-style: italic; opacity: 0.8; }
.sidebar-formations .shop-opt.is-empty:not(.is-soon) { opacity: 0.4; }
.sidebar-formations .shop-opt:has(input:checked) { box-shadow: inset 3px 0 0 var(--dom, var(--color-primary)); }

/* ---- en-tête ---- */
.fm-free-note { color: #14532d; background: #e7f6ec; border-color: #b6dfc4; }

/* ---- couverture : le titre et la marque sont un peu plus petits que sur les manuels (titres plus longs) ---- */
.fm-cover .sc-brand { font-size: 5.1cqw; letter-spacing: 0.1em; }
.fm-cover .sc-title { font-size: 8.4cqw; }
.fm-cover .sc-art.sc-glyph { font-size: 25cqw; }

/* ---- cartes ---- */
.fm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.5rem; }
.fm-price.is-free { color: #14532d; }
.fm-price small { font-size: 0.78rem; font-weight: 500; color: var(--color-text-muted); }
.fm-dom { align-self: flex-start; margin-top: 0.35rem; padding: 0.08rem 0.55rem; font-size: 0.72rem; font-weight: 700; line-height: 1.5; border-radius: 999px; color: var(--dom); background: color-mix(in srgb, var(--dom) 11%, #fff); border: 1px solid color-mix(in srgb, var(--dom) 28%, #fff); }

/* ---- fiche ---- */
.fm-sub { margin: 0 0 0.7rem; font-size: 1.02rem; color: var(--color-text-muted); }
.sd-chips li.fm-chip-free { background: #dcf3e4; color: #14532d; }
.sd-chips li.fm-chip-price { background: #fff3d6; color: #7a4b00; font-weight: 700; }
.fm-buy .sd-price { color: #14532d; }
.fm-chapters { counter-reset: fmc; }
.fm-chapters li { padding-left: 2.1rem; }
.fm-chapters li::before { content: counter(fmc) "."; counter-increment: fmc; left: 0; width: 1.7rem; text-align: right; color: var(--color-primary-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.fm-note { margin: 1.4rem 0 0; padding: 0.7rem 0.9rem; font-size: 0.9rem; line-height: 1.5; color: #7a4d00; background: var(--color-accent-light); border: 1px solid #ecd9a6; border-radius: var(--radius-md); }
.fm-share { margin: 1.4rem 0 0; }
.fm-more { margin-top: 1.5rem; }

@media (max-width: 560px) {
  .fm-sub { font-size: 0.86rem; margin-bottom: 0.45rem; }
  .fm-chapters li { padding-left: 1.9rem; }
}
