/* CriloCom — Catalogue formations V25.0 (scopé .fc-*). Tokens V24 + tri + compteur + accessibilité. */
.fc-root {
  --fc-bg: var(--c-bg, #ffffff);
  --fc-text: var(--c-text, #111827);
  --fc-muted: var(--c-text-muted, #6b7280);
  --fc-border: var(--c-border, #e5e7eb);
  --fc-card: var(--c-card-bg, #ffffff);
  --fc-card-hover: var(--c-card-hover-bg, #fafafa);
  --fc-btn: var(--c-btn-bg, #111827);
  --fc-btn-text: var(--c-btn-text, #ffffff);
  --fc-accent: var(--accent, var(--c-black, #0f172a));
  --fc-radius: var(--radius-md, 12px);
  --fc-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,.07));
  --fc-font: var(--font-body, Inter, system-ui, sans-serif);
  box-sizing: border-box;
  color: var(--fc-text);
  font-family: var(--fc-font);
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 48px;
  min-height: 2800px; /* anti-CLS avant hydratation async */
}
#fc-root {
  min-height: 2800px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
/* LCP précoce : titre visible dès le CSS, avant fetch JSON */
#fc-root[aria-busy='true'] > p,
#fc-root:not([data-fc-booted='true']) > p {
  font-size: 0;
  line-height: 0;
  color: transparent;
  position: relative;
  min-height: 3rem;
  margin: 24px 0 16px;
}
#fc-root[aria-busy='true'] > p::before,
#fc-root:not([data-fc-booted='true']) > p::before {
  content: 'Catalogue des formations';
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main, var(--c-text, #E8EAED));
  display: block;
}
.fc-root *, .fc-root *::before, .fc-root *::after { box-sizing: border-box; }

/* Mode sombre autonome Material Design 3 (2026) */
[data-theme='dark'] .fc-root,
[data-theme='dark'] #fc-root {
  --fc-bg: var(--c-bg, #121212);
  --fc-text: var(--c-text, #e8eaed);
  --fc-muted: var(--c-text-muted, #9aa0a6);
  --fc-border: var(--c-border, #3c4043);
  --fc-card: var(--c-card-bg, #1e1e1e);
  --fc-card-hover: var(--c-card-hover-bg, #282828);
  --fc-btn: var(--c-btn-bg, #e8eaed);
  --fc-btn-text: var(--c-btn-text, #121212);
  --fc-accent: var(--accent, #ffffff);
  color: var(--fc-text);
}

/* Focus visible — accessibilité WCAG 2.4.7 */
.fc-root :focus-visible {
  outline: 2px solid var(--fc-accent);
  outline-offset: 2px;
}

/* Skip link */
.fc-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--fc-btn);
  color: var(--fc-btn-text);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
  outline: 2px solid transparent;
}
.fc-skip-link:focus {
  left: 8px;
  outline: 2px solid var(--fc-accent);
  outline-offset: 2px;
}

.fc-hero { margin-bottom: 28px; }
.fc-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin: 0 0 8px;
}
.fc-hero h1, .fc-hero h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--fc-text);
  font-weight: 750;
}
.fc-hero p { margin: 0; color: var(--fc-muted); max-width: 48rem; line-height: 1.55; }

/* Thématiques (intention → filtre catalogue) */
.fc-themes { margin: 0 0 28px; }
.fc-themes-lead {
  margin: 0 0 14px;
  color: var(--fc-muted);
  font-size: 0.98rem;
}
.fc-themes-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.fc-themes-title-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-theme-tabs-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fc-theme-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.fc-theme-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--fc-card);
  border: 1px solid var(--fc-border);
  border-radius: 9999px;
  color: var(--fc-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.fc-theme-tab:hover {
  background: var(--fc-card-hover);
  color: var(--fc-text);
  border-color: var(--fc-muted);
  transform: translateY(-1px);
}
.fc-theme-tab.is-active {
  background: var(--c-primary, var(--fc-btn));
  color: var(--c-primary-foreground, var(--fc-btn-text));
  border-color: var(--c-primary, var(--fc-btn));
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.fc-theme-count {
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 500;
}

/* Toolbar — recherche + filtres + tri */
.fc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.fc-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fc-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.fc-search-icon {
  position: absolute;
  left: 14px;
  color: var(--fc-muted);
  pointer-events: none;
}
.fc-search {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  background: var(--fc-card);
  color: var(--fc-text);
  font: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fc-search:focus {
  border-color: var(--fc-text);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
[data-theme="dark"] .fc-search:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

/* Sort selector */
.fc-sort {
  appearance: auto;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  background: var(--fc-card);
  color: var(--fc-text);
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 12px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filter controls secondary */
.fc-filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fc-filter-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fc-muted);
  margin-right: 4px;
}
.fc-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-chip {
  appearance: none;
  border: 1px solid var(--fc-border);
  background: var(--fc-card);
  color: var(--fc-text);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 550;
  cursor: pointer;
  min-height: 36px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}
.fc-chip:hover {
  background: var(--fc-card-hover);
  border-color: var(--fc-muted);
}
.fc-chip[aria-checked="true"] {
  background: var(--fc-btn);
  color: var(--fc-btn-text);
  border-color: var(--fc-btn);
}
[data-theme="dark"] .fc-chip[aria-checked="true"],
[data-theme="dark"] .fc-view-btn[aria-pressed="true"] {
  background: #E8EAED;
  color: #121212;
  border-color: #E8EAED;
}

/* Meta / compteur */
.fc-meta {
  font-size: 0.875rem;
  color: var(--fc-muted);
  margin: 0 0 16px;
  min-height: 1.25em;
}

/* Highlight search terms */
.fc-highlight {
  background: rgba(255, 200, 0, 0.35);
  border-radius: 2px;
  padding: 0 1px;
}
[data-theme="dark"] .fc-highlight { background: rgba(255, 200, 0, 0.25); }

/* Grid */
.fc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .fc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card */
.fc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--fc-card);
  border: 1px solid var(--fc-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
  min-width: 0;
  min-height: 230px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.fc-card:hover {
  background: var(--fc-card-hover);
  transform: translateY(-3px);
  border-color: var(--fc-muted);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.08), 0 4px 12px -2px rgba(0,0,0,0.04);
}
[data-theme="dark"] .fc-card {
  background: #1E1E1E;
  border-color: #3C4043;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
[data-theme="dark"] .fc-card:hover {
  background: #252525;
  border-color: #5F6368;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.fc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.fc-card-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--fc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  transition: transform 0.2s ease;
}
.fc-card:hover .fc-card-logo-wrap {
  transform: scale(1.06);
}
[data-theme="dark"] .fc-card-logo-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3C4043;
}
.fc-card-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.fc-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Badges Monochrome Google MD3 */
.fc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.05);
  color: var(--fc-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .fc-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #E8EAED;
  border-color: rgba(255, 255, 255, 0.12);
}
.fc-ref-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fc-muted);
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  padding: 2px 7px;
  background: transparent;
}
.fc-badge-qualiopi {
  background: rgba(22, 101, 52, 0.08);
  color: #15803d;
  border-color: rgba(22, 101, 52, 0.2);
}
[data-theme="dark"] .fc-badge-qualiopi {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.fc-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.fc-card-title {
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--fc-text);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--fc-muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.fc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--fc-border);
  margin-top: auto;
  gap: 8px;
}
.fc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fc-muted);
  flex-wrap: wrap;
}

/* Indicateur de niveau sonore / progression horizontale (5 segments discrets) */
.fc-level-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.fc-level-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
}
.fc-level-bar {
  display: inline-block;
  width: 9px;
  height: 3.5px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.fc-level-bar.is-active {
  background-color: #111827;
}
[data-theme="dark"] .fc-level-bar {
  background-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .fc-level-bar.is-active {
  background-color: #E8EAED;
}
.fc-card:hover .fc-level-bar.is-active {
  transform: scaleY(1.25);
}
.fc-level-text {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fc-muted);
}
[data-theme="dark"] .fc-level-text {
  color: #9AA0A6;
}

.fc-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fc-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.fc-card:hover .fc-card-cta {
  transform: translateX(3px);
  color: var(--fc-accent);
}

/* Vues liste / tableau */
.fc-views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-view-btn {
  appearance: none;
  border: 1px solid var(--fc-border);
  background: var(--fc-card);
  color: var(--fc-text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-view-btn svg {
  width: 16px;
  height: 16px;
}
.fc-view-btn:hover {
  background: var(--fc-card-hover);
  border-color: var(--fc-muted);
}
.fc-view-btn[aria-pressed="true"] {
  background: var(--fc-btn);
  color: var(--fc-btn-text);
  border-color: var(--fc-btn);
}
.fc-list { display: flex; flex-direction: column; gap: 8px; }
.fc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 48px;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
  background: var(--fc-card);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fc-row:hover {
  background: var(--fc-card-hover);
  border-color: var(--fc-muted);
}
.fc-row-logo, .fc-table-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.fc-row-title {
  font-weight: 600;
  flex: 1;
}
.fc-row-meta {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--fc-muted);
  white-space: nowrap;
}
.fc-row-arrow {
  color: var(--fc-muted);
  font-size: 1.1rem;
}
.fc-table-wrap { overflow-x: auto; }
.fc-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.92rem; }
.fc-table th, .fc-table td { overflow-wrap: break-word; word-break: break-word; }
.fc-table th:nth-child(1), .fc-table td:nth-child(1) { width: 55%; }
.fc-table th:nth-child(2), .fc-table td:nth-child(2) { width: 25%; }
.fc-table th:nth-child(3), .fc-table td:nth-child(3) { width: 20%; }
.fc-table th, .fc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fc-border); }
.fc-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fc-muted); }
.fc-table td img { margin-right: 8px; }
.fc-tr { cursor: pointer; }
.fc-tr:hover td { background: var(--fc-card-hover); }

/* Bandeau outils Google (données formations.json → tool.iconUrl) */
.fc-tools-marquee {
  overflow: hidden;
  margin-top: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fc-tools-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: fc-marquee 40s linear infinite;
}
.fc-tools-marquee:hover .fc-tools-track,
.fc-tools-marquee:focus-within .fc-tools-track {
  animation-play-state: paused;
}
.fc-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--fc-border, var(--c-border, #e5e7eb));
  border-radius: 999px;
  background: var(--fc-card, var(--c-card-bg, #fff));
  color: inherit;
  white-space: nowrap;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}
.fc-tool-chip:hover,
.fc-tool-chip:focus-visible {
  border-color: var(--fc-accent, var(--accent, #0f172a));
}
.fc-tool-chip img { display: block; width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
@keyframes fc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fc-tools-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* Score badge on card */
.fc-score {
  font-size: 0.7rem;
  color: var(--fc-muted);
  opacity: 0.6;
  margin-left: auto;
}

.fc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  flex: 0 1 auto;
  touch-action: manipulation;
}
.fc-btn-primary { background: var(--fc-btn); color: var(--fc-btn-text); }
.fc-btn-ghost {
  background: transparent;
  color: var(--fc-text);
  border-color: var(--fc-border);
}
.fc-btn:hover { filter: brightness(1.05); }

.fc-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--fc-muted);
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius);
}

.fc-fiche { max-width: 100%; scroll-margin-top: 100px; }
#fc-main { scroll-margin-top: 90px; }
.fc-fiche-2col { max-width: 1200px; margin: 0 auto; }
.fc-fiche-topbar { margin-bottom: 12px; }
.fc-fiche-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 960px) {
  .fc-fiche-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
  }
  .fc-fiche-sidebar {
    position: sticky;
    top: 90px;
  }
}
.fc-sidebar-card {
  background: var(--fc-card);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--fc-shadow);
}
.fc-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 0.9rem;
  color: var(--fc-text);
}
.fc-meta-item { line-height: 1.4; }
.fc-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-sidebar-actions .fc-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.fc-btn-pdf,
.fc-btn-print {
  background: var(--fc-card);
  color: var(--fc-text) !important;
  font-weight: 600;
  border: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fc-btn-pdf:hover,
.fc-btn-pdf:focus-visible,
.fc-btn-print:hover,
.fc-btn-print:focus-visible {
  background: var(--fc-card-hover);
  border-color: var(--fc-accent);
  color: var(--fc-text) !important;
}
.fc-sidebar-qualiopi {
  font-size: 0.85rem;
  line-height: 1.5;
}
.fc-sidebar-qualiopi h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--fc-accent, #0f172a);
}
.fc-sidebar-qualiopi p {
  margin: 0 0 8px;
}
.fc-qualiopi-stats {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--fc-border);
  font-size: 0.8rem;
  color: var(--fc-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-fiche-header { margin-bottom: 24px; }
.fc-fiche-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.fc-fiche-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--fc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}
[data-theme="dark"] .fc-fiche-logo-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3C4043;
}
.fc-fiche-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.fc-fiche-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.fc-fiche-lead {
  font-size: 1.05rem;
  color: var(--fc-muted);
  line-height: 1.6;
  margin: 12px 0 16px;
}
.fc-fiche-related {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--fc-border);
}
.fc-fiche-related h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.fc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fc-card);
  border: 1px solid var(--fc-border);
  border-radius: 9999px;
  color: var(--fc-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.fc-back:hover {
  background: var(--fc-card-hover);
  border-color: var(--fc-muted);
  transform: translateX(-2px);
}
[data-theme="dark"] .fc-back {
  background: #1E1E1E;
  border-color: #3C4043;
}
.fc-fiche header { margin-bottom: 20px; }
.fc-fiche h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
}
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; color: var(--fc-muted); font-size: 0.9rem; }
.fc-section { margin: 22px 0; }
.fc-section h2, .fc-section h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.fc-section p, .fc-section li { color: var(--fc-text); line-height: 1.65; }
.fc-section ul { margin: 0; padding-left: 1.15rem; }
.fc-mod {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 14px 16px;
  margin: 0 0 10px;
  background: var(--fc-card);
}
.fc-mod h4 { margin: 0 0 4px; font-size: 1rem; }
.fc-mod .fc-sub { margin: 0 0 8px; color: var(--fc-muted); font-size: 0.85rem; }
.fc-mod p { margin: 0 0 8px; font-size: 0.95rem; }

/* Accordéon Modules V26 */
.fc-mod.fc-mod-accordion {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fc-mod.fc-mod-accordion[open] {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fc-mod-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  touch-action: manipulation;
}
.fc-mod-summary::-webkit-details-marker {
  display: none;
}
.fc-mod-summary::marker {
  content: none;
  display: none;
}
.fc-mod-header-text {
  flex: 1;
  min-width: 0;
}
.fc-mod-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fc-text);
}
@media (max-width: 768px) {
  .fc-mod-word { display: none; }
}
@media print {
  .fc-mod-word { display: inline; }
}
.fc-mod-summary .fc-sub {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.88rem;
}
.fc-mod-chevron {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--fc-muted);
  transition: transform 0.2s ease;
  margin-left: 12px;
}
.fc-mod-accordion[open] .fc-mod-chevron {
  transform: rotate(180deg);
}
.fc-mod-content {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--fc-border);
  font-size: 0.95rem;
  line-height: 1.65;
}
.fc-mod-activity {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--fc-btn);
  border-radius: 4px;
}
[data-theme="dark"] .fc-mod-activity {
  background: rgba(255, 255, 255, 0.08);
}

.fc-error { color: #b91c1c; padding: 16px; }

/* Print — A4 optimized */
@media print {
  .fc-root {
    padding: 0;
    max-width: 100%;
  }
  .fc-toolbar, .fc-filters, .fc-search-row, .fc-actions, .fc-back, .fc-hero, .fc-meta {
    display: none !important;
  }
  .fc-fiche {
    max-width: 100%;
    padding: 0;
  }
  .fc-fiche h2 { font-size: 1.5rem; }
  .fc-mod {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  .fc-mod-accordion,
  .fc-mod-accordion[open] {
    display: block !important;
  }
  .fc-mod-accordion > .fc-mod-content {
    display: block !important;
  }
  .fc-mod-chevron {
    display: none;
  }
  .fc-section { page-break-inside: avoid; }
  .fc-badge { border: 1px solid #ccc; }
}

/* Mobile 375px */
@media (max-width: 375px) {
  .fc-root { padding: 0 0 32px; overflow-x: hidden; width: 100%; }
  .fc-card, .fc-mod { padding: 14px; }
  .fc-btn { width: 100%; min-height: 48px; }
  .fc-sort { width: 100%; min-height: 48px; }
  .fc-search-row { flex-direction: column; }
  .fc-filter-btn { min-height: 48px; }
  .fc-chip { min-height: 44px; }
  .fc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fc-table { font-size: 0.85rem; }
  .fc-table th, .fc-table td { padding: 8px 8px; }
  .fc-table th:nth-child(1), .fc-table td:nth-child(1) { width: 62%; }
  .fc-table th:nth-child(2), .fc-table td:nth-child(2) { width: 24%; }
  .fc-table th:nth-child(3), .fc-table td:nth-child(3) { width: 14%; }
}

/* Screen-reader only */
.fc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Copied feedback */
.fc-copied {
  display: inline-block;
  padding: 4px 10px;
  background: #166534;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
  animation: fc-fade 2s forwards;
}
@keyframes fc-fade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ── V25: Reduced motion (WCAG 2.3.3) ── */
@media (prefers-reduced-motion: reduce) {
  .fc-copied {
    animation: none;
  }
  .fc-root *, .fc-root *::before, .fc-root *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── V25: High contrast (WCAG 1.4.6) ── */
@media (prefers-contrast: high) {
  .fc-chip {
    border: 2px solid var(--fc-text);
  }
  .fc-chip[aria-checked="true"] {
    outline: 2px solid var(--fc-btn-text);
    outline-offset: -4px;
  }
  .fc-card {
    border: 2px solid var(--fc-text);
  }
  .fc-mod {
    border: 2px solid var(--fc-text);
  }
  .fc-btn {
    border: 2px solid currentColor;
  }
  .fc-badge {
    border: 1px solid currentColor;
  }
}

/* ── V25: Forced colors (Windows High Contrast) ── */
@media (forced-colors: active) {
  .fc-chip[aria-checked="true"] {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
  .fc-btn-primary {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
  .fc-badge {
    border: 1px solid ButtonText;
  }
}

/* ── V25: Format d'Impression Programme A4 Qualiopi ── */
@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 12mm 16mm 12mm;
  }
  body, html {
    background: #fff !important;
    color: #111827 !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
  }
  /* Masquer tout l'environnement du site Blogger et les contrôles interactifs */
  header, footer, nav, .site-header, .site-footer, .header-inner, .footer-grid, #footer-bottom,
  .promo-banner, .site-banner, .banner, .announcement-banner,
  .fc-hero, .fc-tools-marquee, .fc-themes, .fc-toolbar, .fc-skip-link, .fc-back,
  .fc-sidebar-actions, .fc-fiche-topbar, .fc-mod-chevron, .fc-fiche-related {
    display: none !important;
  }
  /* Structure globale de la fiche */
  .fc-root, .fc-fiche, .fc-fiche-2col {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .fc-fiche-layout {
    display: block !important;
  }
  .fc-fiche-main {
    width: 100% !important;
    max-width: 100% !important;
  }
  .fc-fiche-header {
    border-bottom: 2px solid #0284c7 !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
  }
  .fc-fiche-brand-row {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }
  .fc-fiche-badges {
    margin-bottom: 6px !important;
  }
  .fc-badge {
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    background: #f1f5f9 !important;
    font-size: 8pt !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
  }
  .fc-ref-badge {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #94a3b8 !important;
    font-weight: 700 !important;
  }
  .fc-badge-qualiopi {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
    font-weight: 700 !important;
  }
  .fc-fiche-header h2 {
    font-size: 16pt !important;
    color: #0f172a !important;
    margin: 4px 0 0 !important;
    line-height: 1.25 !important;
  }
  .fc-fiche-lead {
    font-size: 10pt !important;
    color: #334155 !important;
    margin: 10px 0 0 !important;
  }
  /* Métadonnées et cadre Qualiopi réintégrés proprement */
  .fc-fiche-sidebar {
    position: static !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    page-break-inside: avoid !important;
  }
  .fc-sidebar-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
  }
  .fc-meta-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 16px !important;
    margin: 8px 0 0 !important;
    font-size: 9pt !important;
  }
  .fc-sidebar-qualiopi {
    font-size: 8.5pt !important;
    color: #334155 !important;
  }
  .fc-sidebar-qualiopi h4 {
    color: #0284c7 !important;
    font-size: 10pt !important;
    margin: 0 0 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }
  .fc-sidebar-qualiopi p {
    margin: 0 0 4px !important;
  }
  .fc-qualiopi-stats {
    display: flex !important;
    gap: 20px !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px dashed #cbd5e1 !important;
  }
  /* Sections et déroulé pédagogique */
  .fc-section {
    margin-top: 16px !important;
    page-break-inside: avoid !important;
  }
  .fc-section h3 {
    font-size: 12pt !important;
    color: #0284c7 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 4px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }
  .fc-bullets {
    margin: 0 0 12px !important;
    padding-left: 18px !important;
  }
  .fc-bullets li {
    font-size: 9.5pt !important;
    margin-bottom: 4px !important;
    color: #1e293b !important;
  }
  /* Forcer tous les accordéons <details> à être ouverts à l'impression */
  .fc-mod {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    page-break-inside: avoid !important;
  }
  .fc-mod details, .fc-mod[open] {
    display: block !important;
  }
  .fc-mod summary {
    cursor: default !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px 12px !important;
  }
  .fc-mod-content {
    display: block !important;
    padding: 8px 12px !important;
  }
  .fc-mod-title {
    font-size: 10pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
  .fc-sub {
    font-size: 8.5pt !important;
    color: #64748b !important;
  }
  .fc-mod-activity {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    margin-top: 6px !important;
    font-size: 8.5pt !important;
    color: #166534 !important;
  }
}

/* ── V25: Financement OPCO & Actions Fiche ── */
.fc-sidebar-finance {
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--fc-card, #ffffff);
  border: 1px solid var(--fc-border, #e2e8f0);
}
.fc-sidebar-finance h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--fc-accent, var(--c-primary, #0f172a));
}
.fc-related-pitch {
  margin: 0 0 15px;
  color: var(--fc-muted, #64748b);
  font-size: 0.9rem;
}
@media print {
  .fc-sidebar-finance { display: none !important; }
}

/* ── V25: Contrôles de filtres et accordéons ── */
.fc-clear-filters {
  background: none;
  border: 1px solid var(--fc-border, #cbd5e1);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--fc-text, #334155);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.fc-clear-filters:hover {
  background: var(--fc-hover, rgba(0,0,0,0.04));
  border-color: var(--fc-accent, #0f172a);
}
.fc-btn-toggle-all {
  background: none;
  border: 1px solid var(--fc-border, #cbd5e1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  margin-bottom: 12px;
  color: var(--fc-text, #334155);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.fc-btn-toggle-all:hover {
  background: var(--fc-hover, rgba(0,0,0,0.04));
}

/* ── V25: Surbrillance de recherche (A11y bimodal) ── */
mark.fc-highlight {
  background-color: #fef08a;
  color: #1e293b;
  border-radius: 2px;
  padding: 0 2px;
}
[data-theme='dark'] mark.fc-highlight {
  background-color: #854d0e;
  color: #fef08a;
}
/* ── Cart (Devis Express) ── */
.fc-cart-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface, var(--fc-card));
  border: 1px solid var(--c-primary, var(--fc-border));
  border-radius: 999px;
  padding: 8px 12px 8px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.fc-cart-info {
  color: var(--text-main, var(--fc-text));
  font-weight: 500;
  font-size: 0.95rem;
}
.fc-cart-count {
  background: var(--c-primary, var(--fc-btn));
  color: var(--c-primary-foreground, var(--fc-btn-text));
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 8px;
}
.fc-cart-checkout {
  background: var(--c-primary, var(--fc-btn));
  color: var(--c-primary-foreground, var(--fc-btn-text));
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.fc-cart-checkout:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}
.fc-add-cart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface, var(--fc-card));
  border: 1px solid var(--border-color, var(--fc-border));
  color: var(--text-muted, var(--fc-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.fc-add-cart-btn:hover {
  border-color: var(--c-primary, var(--fc-btn));
  color: var(--c-primary, var(--fc-accent));
}
.fc-add-cart-btn[aria-pressed="true"] {
  background: var(--c-primary, var(--fc-btn));
  border-color: var(--c-primary, var(--fc-btn));
  color: var(--c-primary-foreground, var(--fc-btn-text));
}
.fc-add-cart-btn[aria-pressed="true"] svg {
  transform: rotate(45deg);
}
