/* Site de formation, pages sheets : classes fv-* propres à ces écrans ; couleurs et mesures par les variables de training-tokens.css. */

/* ---------- Page de fiche : héros, corps, bandeau ---------- */
.fv-sheet-page { min-width: 0; }
.fv-sheet-page .fv-hero { padding-bottom: 0; }
.fv-hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.fv-hero__top .mud-button-root { min-height: var(--size-tap); color: var(--ink-inverse); }
.fv-hero__top .mud-button-root:hover { background: var(--ink-inverse-muted); color: var(--surface-inverse); }
.fv-sheet-page .fv-hero__grid { grid-template-columns: minmax(0, 1fr); }
.fv-sheet-page .fv-hero__title { overflow-wrap: anywhere; }
.fv-sheet-page .fv-hero__meta { list-style: none; }
.fv-sheet-body { display: grid; gap: var(--space-6); width: 100%; margin: 0; padding: var(--space-6) var(--space-3) var(--space-8); min-width: 0; }
.fv-band { background: var(--surface-sunken); }
.fv-band .fv-sheet-body { padding-top: var(--space-4); }
.fv-sheet-heading { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); }
.fv-sheet-intro { max-width: var(--size-reading); margin-top: var(--space-2); color: var(--ink-muted); }
.fv-section { display: grid; gap: var(--space-4); min-width: 0; }
.fv-sheet-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.fv-sheet-layout--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.fv-sheet-main { display: grid; gap: var(--space-6); min-width: 0; }
.fv-sheet-aside { display: grid; gap: var(--space-3); padding: var(--space-5); min-width: 0; }
.fv-sheet-aside img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.fv-sheet-aside .fv-sheet-heading { font-size: 18px; }
.fv-sheet-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.fv-training .fv-sheet .fv-facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fv-training .fv-facts dd { font-size: 16px; font-weight: 500; line-height: 1.5; }
.fv-sheet-state { padding: var(--space-4); }

/* ---------- Particularités et pastilles de lecture ---------- */
.fv-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Fil d'Ariane : lisible sur le héros marine comme sur la page claire ---------- */
.fv-training .fv-crumbs a { color: var(--primary-ink); }
.fv-training .fv-crumbs a:hover { color: var(--accent-hover); }
.fv-training .fv-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.fv-training .fv-hero .fv-crumbs a { color: var(--ink-inverse-muted); }
.fv-training .fv-hero .fv-crumbs a:hover { color: var(--ink-inverse); }
.fv-training .fv-hero .fv-crumbs [aria-current="page"] { color: var(--ink-inverse); }
.fv-crumbs ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Texte de lecture ---------- */
.fv-prose { max-width: var(--size-reading); font-size: 17px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.fv-prose > * + * { margin-top: var(--space-3); }
.fv-training .fv-prose ul { list-style: disc; padding-left: 1.4em; }
.fv-training .fv-prose ol { list-style: decimal; padding-left: 1.4em; }
.fv-prose li + li { margin-top: var(--space-1); }
.fv-prose h3, .fv-prose h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.fv-prose strong, .fv-prose b { font-weight: 600; }
.fv-callout .fv-prose { font-size: 16px; line-height: 1.65; }

/* ---------- Encadrés ---------- */
.fv-callout { min-width: 0; max-width: calc(var(--size-reading) + 44px + var(--space-4) + var(--space-5) * 2); }
.fv-callout__body { min-width: 0; }
.fv-callout__icon .fv-icon { width: 24px; height: 24px; }
.fv-callout--pitch .fv-callout__title { color: var(--primary-ink); }
.fv-training h2.fv-callout__title, .fv-training h3.fv-callout__title { font-size: 13px; }
.fv-callout__list { display: grid; gap: var(--space-2); }
.fv-callout__list li { position: relative; padding-left: var(--space-4); line-height: 1.6; }
.fv-callout__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }

/* ---------- Diagnostic rapide ---------- */
.fv-diagnostic { display: grid; gap: var(--space-4); }
.fv-diagnostic__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); counter-reset: fv-diag; }
.fv-diagnostic__list--pairs { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fv-diagnostic__step { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5); counter-increment: fv-diag; }
.fv-diagnostic__step::before { content: counter(fv-diag); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 15px; }
.fv-diagnostic__label { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--primary-ink); }
.fv-diagnostic__text { color: var(--ink); line-height: 1.65; }

/* ---------- Blocs de contenu ---------- */
.fv-blocks { display: grid; gap: var(--space-5); min-width: 0; }
.fv-blocks__heading { margin-top: var(--space-3); }
.fv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.fv-block-card { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5); min-width: 0; }
.fv-block-card__title { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--primary-ink); }
.fv-block-card .fv-prose { font-size: 16px; line-height: 1.65; }
.fv-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.fv-gallery--single { grid-template-columns: minmax(0, 1fr); }
.fv-figure { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-3); min-width: 0; }
.fv-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.fv-figure figcaption { font-size: 14px; color: var(--ink-muted); }
.fv-table { overflow: hidden; }
.fv-training .fv-table .mud-table-root { background: transparent; }
.fv-training .fv-table th { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.fv-training .fv-table td, .fv-training .fv-table th { font-size: 15px; border-bottom-color: var(--border); }
.fv-training .fv-table tbody tr:hover td { background: var(--accent-soft); }
.fv-map { display: grid; gap: var(--space-2); }
.fv-map__title { font-size: 18px; font-weight: 600; line-height: 1.3; }

/* ---------- Onglets de fiche ---------- */
.fv-sheet-tabs { min-width: 0; }
.fv-training .fv-sheet-tabs .mud-tabs { background: transparent; }
.fv-training .fv-sheet-tabs .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--border); }
.fv-training .fv-sheet-tabs .mud-tab { min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--ink-muted); text-transform: none; font-weight: 600; letter-spacing: 0; opacity: 1; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.fv-training .fv-sheet-tabs .mud-tab:hover { color: var(--ink); background: var(--surface-raised); }
.fv-training .fv-sheet-tabs .mud-tab.mud-tab-active { color: var(--accent-ink); background: transparent; }
.fv-training .fv-sheet-tabs .mud-tab .mud-typography { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: inherit; }
.fv-training .fv-sheet-tabs .mud-tab-slider { height: 3px; border-radius: var(--radius-pill); background-color: var(--primary); }
.fv-training .fv-sheet-tabs .mud-tab:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.fv-training .fv-sheet-tabs .mud-tabs-scroll-button { min-width: var(--size-tap); min-height: var(--size-tap); color: var(--ink); }
.fv-sheet-tabs__panel { padding-top: var(--space-5); }

/* ---------- Itinéraire ---------- */
.fv-stops { display: flex; flex-wrap: wrap; gap: var(--space-2); counter-reset: fv-stop; }
.fv-stops li { counter-increment: fv-stop; min-height: 36px; padding: 0 var(--space-4) 0 var(--space-2); background: var(--surface-raised); border: 1px solid var(--border-strong); font-size: 14px; font-weight: 500; }
.fv-stops li::before { content: counter(fv-stop); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 700; }
.fv-days { display: grid; gap: var(--space-4); }
.fv-days li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding-bottom: var(--space-4); }
.fv-days li:not(:last-child)::after { content: ""; position: absolute; top: 36px; bottom: 0; left: 35px; border-left: 2px dashed var(--border-strong); }
.fv-days__label { justify-self: start; position: relative; z-index: 1; }
.fv-days__label .fv-badge { background: var(--primary); color: var(--on-primary); }
.fv-days li:not(:has(.fv-days__label)) { grid-template-columns: minmax(0, 1fr); }
.fv-days li:not(:has(.fv-days__label))::after { display: none; }

/* ---------- Pied de fiche du guide ---------- */
.fv-sheet-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.fv-sheet-nav .fv-btn { height: auto; min-height: var(--size-tap-lg); padding-top: var(--space-2); padding-bottom: var(--space-2); text-align: left; white-space: normal; max-width: 100%; }
.fv-sheet-nav .fv-btn--primary { margin-left: auto; }
.fv-page .fv-sheet-nav a.fv-btn--primary, .fv-page .fv-sheet-nav a.fv-btn--primary:hover { color: var(--on-primary); text-decoration: none; }
.fv-page .fv-sheet-nav a.fv-btn--secondary, .fv-page .fv-sheet-nav a.fv-btn--secondary:hover { color: var(--ink); text-decoration: none; }

/* ---------- Gamme Filovent ---------- */
.fv-offer-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); padding: var(--space-5); }
.fv-offer-figures li { display: grid; gap: var(--space-1); align-content: start; padding-left: var(--space-4); border-left: 3px solid var(--accent); }
.fv-offer-figures li:first-child { border-left-color: var(--primary); }
.fv-offer-figures__value { font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--primary-ink); }
.fv-offer-figures__label { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.fv-offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.fv-offer { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5); min-width: 0; }
.fv-offer__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.fv-offer__body { color: var(--ink-muted); line-height: 1.65; }
.fv-offer--pitch { background: var(--primary-soft); border-color: transparent; }
.fv-offer--pitch .fv-offer__title { color: var(--primary-ink); }
.fv-offer--pitch .fv-offer__body { color: var(--ink); }

/* ---------- Petit écran ---------- */
@media (max-width: 1000px) {
  .fv-sheet-layout--aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .fv-sheet-body { padding: var(--space-5) var(--space-3) var(--space-7); gap: var(--space-5); }
  .fv-sheet-heading { font-size: 20px; }
  .fv-prose { font-size: 16px; }
  .fv-callout { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-4); }
  .fv-days li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .fv-days li::after { display: none; }
  .fv-sheet-nav .fv-btn { width: 100%; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .fv-training .fv-sheet-tabs .mud-tab, .fv-training .fv-sheet-tabs .mud-tab-slider { transition-duration: 0.01ms !important; }
}
