/* Fibre Herd — shared site chrome (nav, footer, content pages) */
:root {
  --fh-green: #6A9440;
  --fh-green-dark: #6fa000;
  --fh-green-soft: #eef6d6;
  --fh-grey: #484844;
  --fh-muted: #6b7160;
  --fh-line: #e2e6dc;
  --fh-bg: #f7f6f1;
  --fh-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --fh-card: #ffffff;
  --fh-banner: #2c3318;
  --fh-radius: 12px;
  --fh-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fh-header-h: auto;
  --fh-logo-display: 120px;
  /* Layout wide (Bertrand 2026-09-24): use more horizontal space on large screens */
  --fh-content-max: 1320px;
  --fh-content-wide: 1400px;
  --fh-chrome-max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Keep sticky header working: overflow-x:hidden on html/body breaks position:sticky */
html {
  overflow-x: clip;
  scroll-padding-top: 1rem;
}

body.fh-site {
  margin: 0;
  font-family: var(--fh-font);
  color: var(--fh-grey);
  background: var(--fh-bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

body.fh-site a { color: var(--fh-green-dark); }
body.fh-site a:hover { color: var(--fh-green); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Top banner */
.fh-banner {
  display: none; /* removed from ops vitrine */
  background: var(--fh-banner);
  color: #f3f7e8;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}
.fh-banner strong { color: var(--fh-green); }

/* Header / nav */
.fh-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  background: #6A9440;
  background-color: #6A9440;
  border-bottom: none;
  box-shadow: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Compact sticky: stronger shadow + slim bar once scrolled.
   Class .is-scrolled toggled by assets/fh-header.js (hysteresis ~72/32). */
.fh-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(26, 34, 8, 0.16);
  border-bottom-color: transparent;
  background: #6A9440;
  background-color: #6A9440;
}

.fh-header-inner {
  max-width: var(--fh-chrome-max, 1400px);
  margin: 0 auto;
  padding: 0.65rem 1.25rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  flex-wrap: wrap;
  position: relative;
  transition: padding 0.28s ease, min-height 0.28s ease, gap 0.28s ease;
}

.fh-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.85rem;
  flex-wrap: wrap;
  text-decoration: none;
  color: #f7f6f1;
  flex: 0 0 100%;
  width: 100%;
  order: -1;
  max-height: 160px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, max-height 0.32s ease, margin 0.28s ease,
              padding 0.28s ease, visibility 0.28s ease, flex-basis 0.28s ease;
}
.fh-brand img,
.fh-brand picture img {
  width: var(--fh-logo-display, 120px);
  height: var(--fh-logo-display, 120px);
  max-width: min(52vw, 220px);
  object-fit: contain;
  display: block;
  transition: width 0.28s ease, height 0.28s ease, opacity 0.28s ease, max-width 0.28s ease;
}

/* --- Compact scrolled: logo collapses; nav + Connexion stay (LN-style slim bar) --- */
.fh-header.is-scrolled .fh-brand {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  flex-basis: 0;
  width: 0;
  overflow: hidden;
}
.fh-header.is-scrolled .fh-brand img,
.fh-header.is-scrolled .fh-brand picture img {
  width: 0;
  height: 0;
  max-width: 0;
  opacity: 0;
}
.fh-header.is-scrolled .fh-header-inner {
  padding-top: 0.4rem;
  padding-bottom: 0.35rem;
  gap: 0.25rem 0.5rem;
  min-height: 2.75rem;
}
.fh-header.is-scrolled .fh-header-account {
  top: 0.4rem;
}
.fh-header.is-scrolled .fh-nav {
  flex: 1 1 auto;
  /* Leave room for absolute Connexion pill on the right */
  padding-right: 8.5rem;
}
@media (max-width: 900px) {
  .fh-header.is-scrolled .fh-nav {
    padding-right: 0; /* mobile: Connexion is top-right, nav is full-width drawer */
  }
}
/* Seal wordmark is replaced by the animal strip; show Fibre Herd in cream. */
.fh-header a.fh-brand,
.fh-header a.fh-brand:hover,
.fh-header a.fh-brand:focus-visible { color: #f7f6f1; }
.fh-brand .fh-brand-text { display: flex; align-items: center; }
.fh-brand .fh-brand-name {
  font-weight: 800;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
  color: #f7f6f1;
  line-height: 1;
}
.fh-brand .fh-brand-tag {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.fh-brand img.fh-mark-animaux {
  width: auto;
  height: 64px;
  max-width: min(72vw, 520px);
  object-fit: contain;
}
.fh-header.is-scrolled .fh-brand img.fh-mark-animaux {
  width: 0;
  height: 0;
  max-width: 0;
}

.fh-nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--fh-line);
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fh-grey);
  cursor: pointer;
}
.fh-nav-toggle:focus-visible {
  outline: 2px solid var(--fh-green);
  outline-offset: 2px;
}

.fh-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-left: 0;
  flex: 1 1 100%;
  flex-wrap: wrap;
}

.fh-nav > li,
.fh-nav-list > li {
  list-style: none;
  position: relative;
}
.fh-nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.fh-nav-link,
.fh-nav-list > li > a,
.fh-nav-list > li > button.fh-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c2c28;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.fh-nav-list > li > a:hover,
.fh-nav-list > li > button.fh-nav-btn:hover,
.fh-nav-list > li > a:focus-visible,
.fh-nav-list > li > button.fh-nav-btn:focus-visible {
  background: var(--fh-green-soft);
  color: #3d4a12;
  outline: none;
}
.fh-nav-list > li > a[aria-current="page"],
.fh-nav-list > li > a.active {
  color: #3d4a12;
  font-weight: 600;
  background: var(--fh-green-soft);
}
.fh-nav-btn .fh-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.15s;
}

/* Dropdowns — open on hover AND focus-within (keyboard) */
.fh-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(72,72,68,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
  z-index: 120;
}
.fh-has-sub:hover > .fh-dropdown,
.fh-has-sub:focus-within > .fh-dropdown,
.fh-has-sub.open > .fh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fh-has-sub:hover > .fh-nav-btn .fh-caret,
.fh-has-sub:focus-within > .fh-nav-btn .fh-caret,
.fh-has-sub.open > .fh-nav-btn .fh-caret {
  transform: rotate(180deg);
}
.fh-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  color: var(--fh-grey);
  text-decoration: none;
  font-size: 0.88rem;
}
.fh-dropdown a:hover,
.fh-dropdown a:focus-visible {
  background: var(--fh-green-soft);
  color: #3d4a12;
  outline: none;
}
.fh-dropdown a[aria-current="page"] {
  font-weight: 600;
  background: var(--fh-green-soft);
}
.fh-dropdown .fh-ext::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.65;
}

.fh-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--fh-muted);
  flex-shrink: 0;
  margin-left: 0.35rem;
  position: relative;
}
.fh-lang-wrap select,
.fh-lang-wrap .fh-lang-native {
  /* kept for a11y / no-JS; hidden once custom UI mounts */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.fh-lang-wrap:not([data-fh-lang-ui="1"]) select {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  font: inherit;
  font-size: 0.8rem;
  color: var(--fh-grey);
  background: #fff;
  border: 1px solid var(--fh-line);
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  max-width: 11rem;
  cursor: pointer;
}
.fh-lang-globe-hide { display: none !important; }
.fh-lang-picker { position: relative; }
.fh-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fh-grey);
  background: #fff;
  border: 1px solid var(--fh-line);
  border-radius: 8px;
  padding: 0.28rem 0.55rem 0.28rem 0.45rem;
  cursor: pointer;
  line-height: 1.2;
  max-width: 14rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.fh-lang-btn:hover {
  border-color: var(--fh-green);
  background: var(--fh-green-soft);
}
.fh-lang-btn:focus-visible {
  outline: 2px solid var(--fh-green);
  outline-offset: 1px;
  border-color: var(--fh-green);
}
.fh-lang-wrap.is-open .fh-lang-btn {
  border-color: var(--fh-green);
  background: var(--fh-green-soft);
}
.fh-lang-flag {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}
.fh-lang-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fh-lang-caret {
  font-size: 0.7rem;
  color: var(--fh-muted);
  margin-left: 0.05rem;
}
.fh-lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 80;
  min-width: 12.5rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(44, 51, 24, 0.12);
}
.fh-lang-menu[hidden] { display: none !important; }
.fh-lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--fh-grey);
  font-size: 0.82rem;
}
.fh-lang-menu li:hover,
.fh-lang-menu li:focus-visible {
  background: var(--fh-green-soft);
  color: #3d4a12;
  outline: none;
}
.fh-lang-menu li.is-active {
  font-weight: 600;
  background: var(--fh-green-soft);
}
.fh-lang-menu .fh-lang-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile nav */
@media (max-width: 900px) {
  :root { --fh-logo-display: 104px; }
  .fh-header-inner {
    padding-top: 3.15rem; /* clear row for Menu (left) + Connexion (right) */
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }
  .fh-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
    position: absolute;
    top: 0.55rem;
    left: 1rem; /* opposite corner from Connexion — no overlap with logo */
    right: auto;
    z-index: 6;
  }
  .fh-header-account {
    top: 0.55rem;
    right: 1rem;
    margin-left: 0;
  }
  /* Mobile compact: Menu + Connexion stay; logo collapses for slim bar */
  .fh-header.is-scrolled .fh-header-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.45rem;
    min-height: 3rem;
  }
  .fh-header.is-scrolled .fh-nav-toggle {
    top: 0.45rem;
  }
  .fh-header.is-scrolled .fh-header-account {
    top: 0.45rem;
  }
  .fh-header.is-scrolled .fh-header-inner.nav-open {
    min-height: 0;
  }
  .fh-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    order: 10;
    padding: 0.35rem 0 0.6rem;
    border-top: 1px solid var(--fh-line);
  }
  .fh-header-inner.nav-open .fh-nav { display: block; }
  .fh-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .fh-nav-list > li > a,
  .fh-nav-list > li > button.fh-nav-btn {
    width: 100%;
    justify-content: space-between;
  }
  .fh-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0.35rem 0.85rem;
    display: none;
    background: transparent;
  }
  .fh-has-sub.open > .fh-dropdown { display: block; }
  .fh-has-sub:hover > .fh-dropdown { display: none; }
  .fh-has-sub.open:hover > .fh-dropdown,
  .fh-has-sub.open > .fh-dropdown { display: block; }
  .fh-lang-wrap {
    margin-left: 0;
    width: 100%;
    padding: 0.5rem 0.7rem 0;
  }
  .fh-lang-wrap:not([data-fh-lang-ui="1"]) select { max-width: none; width: 100%; }
  .fh-lang-picker { width: 100%; }
  .fh-lang-btn { width: 100%; max-width: none; justify-content: flex-start; }
  .fh-lang-menu {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }
}

/* Main content */
.fh-main {
  flex: 1;
  max-width: var(--fh-content-max, 1320px);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.fh-main.wide { max-width: var(--fh-content-wide, 1400px); }

.fh-pill {
  display: inline-block;
  background: var(--fh-green-soft);
  color: #3d4a12;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.fh-main h1, .fh-main h2, .fh-main h3 {
  font-family: var(--fh-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fh-main h1 { margin: 0 0 0.5rem; font-size: 1.75rem; color: var(--fh-grey); }
.fh-main h2 { margin: 1.6rem 0 0.55rem; font-size: 1.2rem; }
.fh-proofs { display: grid; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.fh-proofs h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.fh-fiche-preview { display: grid; grid-template-columns: 148px 1fr; gap: 1.1rem; align-items: start; }
.fh-fiche-preview .fh-seal { width: 140px; height: 140px; object-fit: contain; display: block; background: transparent; }
.fh-secnav { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 .85rem; }
.fh-secnav span { font-family: var(--fh-font); font-size: .82rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--fh-line); background: #fff; }
.fh-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 0; }
.fh-hero-actions .fh-text-link { font-weight: 650; }
.fh-mkt-card__media img, .fh-mkt-detail-v2__media img.fh-seal { width: 100%; height: 100%; object-fit: contain; background: var(--fh-bg); }
.fh-mkt-first { margin: .35rem 0 0; }
@media (max-width: 900px) {
  .fh-fiche-preview { grid-template-columns: 1fr; }
}
/* Homepage « Aperçu fiche » with photo (Lily, 2026-10-05) */
.fh-fiche-photo { display: block; margin: 0; }
.fh-fiche-photo img { display: block; width: 100%; height: auto; border-radius: var(--fh-radius); background: var(--fh-bg); }
.fh-fiche-data { min-width: 0; }
.fh-fiche-meta, .fh-fiche-breeder { margin: 0; }
.fh-fiche-breeder { color: var(--fh-muted); font-size: .95rem; margin-top: .15rem; }
.fh-fiche-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .5rem; margin: .9rem 0 0; }
.fh-fiche-metrics > div { border: 1px solid var(--fh-line); border-radius: 10px; padding: .45rem .65rem; background: #fff; }
.fh-fiche-metrics dt { font-size: .78rem; color: var(--fh-muted); margin: 0; }
.fh-fiche-metrics dd { margin: .1rem 0 0; font-weight: 700; font-size: 1.05rem; color: var(--fh-grey); white-space: nowrap; }
.fh-fiche-hist { margin: 1rem 0 0; max-width: 34rem; }
.fh-fiche-hist figcaption { font-size: .85rem; color: var(--fh-muted); margin: 0 0 .3rem; }
.fh-hist { display: block; width: 100%; height: auto; font-family: var(--fh-font); font-size: 11.5px; fill: var(--fh-muted); }
.fh-hist rect { fill: #6A9440; }
.fh-hist .fh-hist-axis { stroke: var(--fh-grey); stroke-width: 1; }
.fh-hist .fh-hist-grid { stroke: var(--fh-line); stroke-width: 1; }
.fh-hist .fh-hist-unit { fill: var(--fh-grey); font-weight: 600; }
.fh-fiche-source { margin: .6rem 0 0; font-size: .85rem; color: var(--fh-muted); }
.fh-fiche-preview--photo { grid-template-columns: 1fr; }
.fh-fiche-preview--photo .fh-fiche-photo { max-width: 22rem; }
@media (min-width: 680px) {
  .fh-fiche-preview.fh-fiche-preview--photo { grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); gap: 1.5rem; }
  .fh-fiche-preview--photo .fh-fiche-photo { max-width: none; }
}
@media (min-width: 901px) {
  .fh-proofs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fh-main h3 { margin: 1.2rem 0 0.4rem; font-size: 1.05rem; }
.fh-lead { font-size: 1.05rem; margin: 0 0 1.25rem; color: var(--fh-muted); }
.fh-muted { color: var(--fh-muted); font-size: 0.92rem; }

.fh-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
}
@media (min-width: 1100px) {
  .fh-main.wide .fh-card,
  .fh-main .fh-grid.cols-2 > .fh-card {
    padding: 1.25rem 1.35rem;
  }
}
.fh-card h2:first-child { margin-top: 0; }

.fh-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .fh-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
  .fh-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 901px) {
  .fh-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1100px) {
  .fh-grid.cols-2 { gap: 1.6rem; }
}

a.fh-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.fh-card-link:hover {
  border-color: var(--fh-green);
  box-shadow: 0 6px 20px rgba(72,72,68,0.08);
  color: inherit;
}
a.fh-card-link img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef1e8;
  margin-bottom: 0.75rem;
  display: block;
}
@media (min-width: 720px) {
  a.fh-card-link img { height: 200px; }
}
@media (min-width: 1100px) {
  /* Homepage preview cadres — larger on wide monitors */
  a.fh-card-link img { height: 260px; }
}
a.fh-card-link strong { display: block; margin-bottom: 0.25rem; }

.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.fh-btn-primary {
  background: var(--fh-green);
  color: #1a2208 !important;
}
.fh-btn-primary:hover { background: var(--fh-green-dark); color: #fff !important; }
.fh-btn-ghost {
  background: #fff;
  border-color: var(--fh-line);
  color: var(--fh-grey) !important;
}
.fh-btn-ghost:hover { border-color: var(--fh-green); }

.fh-list { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.fh-list li { margin: 0.3rem 0; }

.fh-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f3efe4;
  color: #7a6230;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Legal / prose */
.fh-prose {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  padding: 1.25rem 1.4rem 1.75rem;
}
.fh-prose > :first-child { margin-top: 0; }
.fh-prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #fff8e8;
  border-left: 4px solid #e0b84a;
  color: #5a4a20;
  border-radius: 0 8px 8px 0;
}
.fh-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
}
.fh-prose th, .fh-prose td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--fh-line);
  vertical-align: top;
}
.fh-prose th { color: var(--fh-muted); font-weight: 600; font-size: 0.8rem; }
.fh-prose hr {
  border: 0;
  border-top: 1px solid var(--fh-line);
  margin: 1.4rem 0;
}
.fh-prose code {
  font-size: 0.88em;
  background: #eef1e8;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.fh-draft-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Footer — professional multi-column (2026-09-24 footer1) */
.fh-footer {
  background: var(--fh-card);
  border-top: 1px solid var(--fh-line);
  padding: 2.25rem 1.25rem 1.5rem;
  color: var(--fh-muted);
  font-size: 0.88rem;
  margin-top: auto;
}
.fh-footer-inner {
  max-width: var(--fh-chrome-max, 1400px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
}
.fh-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  align-items: start;
  text-align: left;
}
.fh-footer-col {
  min-width: 0;
}
.fh-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fh-grey);
}
.fh-footer-brand {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--fh-grey);
}
.fh-footer-brand strong { font-weight: 800; }
.fh-footer-desc {
  margin: 0 0 0.75rem;
  line-height: 1.45;
  max-width: 22rem;
}
.fh-footer-ext {
  margin: 0;
  font-size: 0.84rem;
}
.fh-footer-sep {
  margin: 0 0.35rem;
  color: var(--fh-line);
}
.fh-footer a {
  color: var(--fh-muted);
  text-decoration: none;
}
.fh-footer a:hover { color: var(--fh-green-dark); }
.fh-footer a[aria-current="page"] {
  color: var(--fh-green-dark);
  font-weight: 600;
}
.fh-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fh-footer-nav a {
  display: inline-block;
  padding: 0.15rem 0;
  min-height: 1.5rem;
  line-height: 1.35;
}
.fh-footer-bottom {
  border-top: 1px solid var(--fh-line);
  padding-top: 1.1rem;
  text-align: center;
}
.fh-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--fh-muted);
}
/* Mobile / tablet: stacked, still centered within chrome */
@media (max-width: 960px) {
  .fh-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.5rem;
  }
}
@media (max-width: 560px) {
  .fh-footer {
    padding: 1.75rem 1rem 1.35rem;
    text-align: center;
  }
  .fh-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    justify-items: center;
    text-align: center;
  }
  .fh-footer-desc { max-width: 18rem; margin-left: auto; margin-right: auto; }
  .fh-footer-nav {
    align-items: center;
  }
  .fh-footer-nav a {
    padding: 0.35rem 0.25rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


/* Contact form stub */
.fh-form label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.85rem 0 0.3rem; }
.fh-form input, .fh-form textarea, .fh-form select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--fh-line);
  border-radius: 8px;
  background: #fff;
  color: var(--fh-grey);
}
.fh-form input:focus, .fh-form textarea:focus, .fh-form select:focus {
  outline: 2px solid var(--fh-green);
  outline-offset: 1px;
  border-color: var(--fh-green);
}
.fh-form textarea { min-height: 120px; resize: vertical; }
.fh-form .fh-form-note { font-size: 0.82rem; color: var(--fh-muted); margin-top: 0.75rem; }

/* Pricing cards */
.fh-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fh-grey);
  margin: 0.35rem 0;
}
.fh-price small { font-size: 0.85rem; font-weight: 500; color: var(--fh-muted); }

/* —— FAQ page —— */
.fh-faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.fh-faq-toc a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--fh-line);
  background: #fff;
  text-decoration: none;
  color: var(--fh-grey);
  font-size: 0.85rem;
  font-weight: 600;
}
.fh-faq-toc a:hover {
  border-color: var(--fh-green);
  background: var(--fh-green-soft);
  color: var(--fh-grey);
}
.fh-faq-section {
  margin: 1.5rem 0 0.5rem;
}
.fh-faq-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--fh-grey);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--fh-green);
}
.fh-faq details {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  margin-bottom: 0.55rem;
  overflow: hidden;
}
.fh-faq details[open] {
  box-shadow: 0 1px 0 rgba(72, 72, 68, 0.04);
}
.fh-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--fh-grey);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fh-faq summary::-webkit-details-marker { display: none; }
.fh-faq summary::before {
  content: "▸";
  color: var(--fh-green-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fh-faq details[open] summary::before { content: "▾"; }
.fh-faq summary:hover { background: var(--fh-green-soft); }
.fh-faq .fh-faq-a {
  padding: 0 1rem 1rem 1.85rem;
  color: var(--fh-muted);
  font-size: 0.95rem;
}
.fh-faq .fh-faq-a p { margin: 0 0 0.55rem; }
.fh-faq .fh-faq-a p:last-child { margin-bottom: 0; }
.fh-faq-note {
  font-size: 0.85rem;
  color: var(--fh-muted);
  margin-top: 1.25rem;
}

/* Auth / account forms */
.fh-main-narrow { max-width: 920px; } /* intentional: forms / legal stay readable */
/* Desktop and tablet only. Phone stays on the caps above (site mobile nav is max-width: 900px).
   Same wide measure as the public homepage (.fh-main.wide) and the header (--fh-chrome-max). */
@media (min-width: 901px) {
  .fh-main,
  .fh-main-narrow,
  main.wrap {
    max-width: var(--fh-content-wide, 1400px);
  }
  /* marketplace.css loads after site.css and caps .fh-mkt-detail at 1100px */
  main.fh-main.fh-mkt-detail,
  main.fh-main .fh-mkt-detail {
    max-width: var(--fh-content-wide, 1400px);
  }
}
.fh-auth-card { max-width: 420px; }
.fh-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500 !important;
  margin-top: 1rem !important;
}
.fh-check input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.fh-alert {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.fh-alert-success {
  background: var(--fh-green-soft);
  border: 1px solid #c5df7a;
  color: #3d4a12;
}
.fh-alert-error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #842029;
}
.fh-dl {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0;
}
.fh-dl dt { color: var(--fh-muted); font-size: 0.85rem; }
.fh-dl dd { margin: 0; font-weight: 600; }
.fh-nav-auth {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}

/* —— Account type (Particulier / Société) —— */
.fh-auth-card-wide { max-width: 520px; }
.fh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .fh-form-row { grid-template-columns: 1fr; }
}
.fh-customer-type {
  border: 0;
  margin: 0 0 0.5rem;
  padding: 0;
}
.fh-customer-type legend {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.85rem 0 0.45rem;
  padding: 0;
}
.fh-customer-type__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fh-customer-type__btn {
  flex: 1 1 140px;
  cursor: pointer;
  margin: 0 !important;
  font-weight: 600 !important;
  display: block !important;
}
.fh-customer-type__btn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fh-customer-type__btn span {
  display: block;
  text-align: center;
  border: 2px solid var(--fh-line);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--fh-grey);
  background: #fff;
  line-height: 1.2;
}
.fh-customer-type__btn input:checked + span,
.fh-customer-type__btn.is-selected span {
  background: var(--fh-green) !important;
  border-color: var(--fh-green) !important;
  color: #1a2208 !important;
}
.fh-customer-type-root:not(.is-societe) .fh-field-societe {
  display: none !important;
}
.fh-siret-hint,
.fh-vat-hint,
.fh-vat-status {
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
  line-height: 1.35;
  color: var(--fh-muted);
}
.fh-siret-hint { color: var(--fh-green-dark); }
.fh-vat-status { color: var(--fh-grey); }
.fh-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.fh-badge-ok {
  background: var(--fh-green-soft);
  color: #3a5200;
}
.fh-badge-warn {
  background: #f5efe0;
  color: #6a5a20;
}


/* Phase 1 — troupeau */
.fh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.fh-table th,
.fh-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e6dc;
  vertical-align: middle;
}
.fh-table th {
  color: var(--fh-muted, #6b6f64);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fh-table code {
  font-size: 0.85em;
  background: #f6f7f4;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.fh-animal-hero {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e6dc;
}

/* Phase 1 — animal events */
.fh-table-wrap { overflow-x: auto; margin: 0.75rem 0 1.25rem; }
.fh-events-table td.fh-event-detail { max-width: 280px; font-weight: 400; font-size: 0.9rem; }
.fh-event-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #f0f3ea;
  color: #3a5200;
}
.fh-event-type-shearing { background: var(--fh-green-soft, #e8f5c8); }
.fh-event-type-health { background: #e8f0f8; color: #1a3a5c; }
.fh-event-type-weight,
.fh-event-type-height { background: #f5efe0; color: #5a4a18; }
.fh-event-form-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6dc;
}
.fh-event-form-wrap h3 { margin-top: 0; font-size: 1.05rem; }
.fh-inline-form { display: inline; margin: 0; }
.fh-btn-sm {
  padding: 0.15rem 0.5rem;
  font-size: 1rem;
  line-height: 1.2;
  min-width: 2rem;
}

/* Phase 1 — reproduction (saillie / gestation / naissance fibre) */
.fh-repro-table td.fh-repro-notes { max-width: 240px; font-weight: 400; font-size: 0.9rem; }
.fh-repro-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #f0f3ea;
  color: #3a5200;
}
.fh-repro-type-mating { background: var(--fh-green-soft, #e8f5c8); }
.fh-repro-type-pregnancy_confirmed { background: #e8f0f8; color: #1a3a5c; }
.fh-repro-type-birth { background: #f5efe0; color: #5a4a18; }
.fh-repro-type-weaning_note { background: #efe8f5; color: #4a2a5c; }
.fh-repro-form-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6dc;
}
.fh-repro-form-wrap h3 { margin-top: 0; font-size: 1.05rem; }

/* Phase 1 — pedigree (N-1 / N-2 + descendants) */
.fh-form-section {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fh-grey);
}
.fh-pedigree {
  margin: 0.5rem 0 1.5rem;
  padding: 0.85rem 1rem;
  background: #fafbf7;
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
}
.fh-pedigree h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.fh-pedigree h3:first-child { margin-top: 0; }
.fh-dl-pedigree {
  margin: 0.25rem 0 0.5rem;
}
.fh-pedigree-descendants {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
.fh-pedigree-descendants li {
  margin: 0.2rem 0;
}

/* Phase 1 — QR étiquette (print-friendly) */
.fh-etiquette-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.fh-etiquette {
  max-width: 280px;
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--fh-grey, #484844);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: var(--fh-grey, #484844);
}
.fh-etiquette-brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fh-green, #6A9440);
  margin-bottom: 0.35rem;
}
.fh-etiquette-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.15rem 0;
  word-break: break-word;
}
.fh-etiquette-meta {
  font-size: 0.85rem;
  color: var(--fh-muted, #6b6f64);
  margin-bottom: 0.45rem;
}
.fh-etiquette-flid {
  margin: 0.35rem 0 0.65rem;
}
.fh-etiquette-flid code {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #f6f7f4;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.fh-etiquette-qr {
  display: flex;
  justify-content: center;
  margin: 0.35rem auto 0.5rem;
}
.fh-etiquette-qr svg {
  width: 148px;
  height: 148px;
  fill: #484844;
  background: #fff;
}
.fh-etiquette-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}
.fh-qr-landing .fh-qr-flid-big {
  font-size: 1.35rem;
  margin: 0.75rem 0;
}
.fh-qr-landing .fh-qr-flid-big code {
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f6f7f4;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

@media print {
  @page {
    margin: 10mm;
    size: auto;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  /* Hide chrome; show only the étiquette block */
  body * {
    visibility: hidden !important;
  }
  .fh-etiquette,
  .fh-etiquette * {
    visibility: visible !important;
  }
  .fh-etiquette {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 70mm;
    width: 70mm;
    margin: 0;
    border: 2px solid #484844;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .fh-etiquette-qr svg {
    width: 42mm;
    height: 42mm;
  }
  .no-print {
    display: none !important;
  }
}

/* Phase 1 — concours privé */
.fh-contests-table td.fh-contest-notes { max-width: 240px; font-weight: 400; font-size: 0.9rem; }
.fh-contest-form-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6dc;
}
.fh-contest-form-wrap h3 { margin-top: 0; font-size: 1.05rem; }

/* Phase 1 — documents */
.fh-docs-table td { vertical-align: middle; }
.fh-doc-type {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #f0f3ea;
  color: #3a5200;
}
.fh-doc-type-ofda_pdf { background: var(--fh-green-soft, #e8f5c8); }
.fh-doc-type-certificate { background: #e8f0f8; color: #1a3a5c; }
.fh-docs-form-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6dc;
}
.fh-docs-form-wrap h3 { margin-top: 0; font-size: 1.05rem; }

/* Phase 1 — analyses fibre (saisie manuelle stubs) */
.fh-fibre-table td { vertical-align: top; }
.fh-fibre-table td.fh-fibre-notes { max-width: 220px; font-size: 0.9rem; font-weight: 400; }
.fh-fibre-source {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #f0f3ea;
  color: #3a5200;
}
.fh-fibre-source-manual { background: #f0f0ee; color: #484844; }
.fh-fibre-source-external_lab { background: #e8f0f8; color: #1a3a5c; }
.fh-fibre-source-fibrelab { background: var(--fh-green-soft, #e8f5c8); color: #3a5200; }
.fh-fibre-prov-line {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #484844;
  font-weight: 500;
}
.fh-fibre-form-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6dc;
}
.fh-fibre-form-wrap h3 { margin-top: 0; font-size: 1.05rem; }

/* Phase 2 — lab console / commander analyse */
.fh-btn-sm { padding: 0.25rem 0.55rem; font-size: 0.85rem; }
.fh-inline-form { display: inline; margin: 0; }


/* Header account zone — always visible (Fibrelab-style Connexion) */
.fh-header-account {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0;
  position: absolute;
  top: 0.75rem;
  right: 1.1rem;
  z-index: 6;
}
.fh-header-account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fh-grey, #484844);
  background: #fff;
  border: 1px solid var(--fh-line, #e2e6dc);
  white-space: nowrap;
  line-height: 1.2;
}
.fh-header-account-link:hover,
.fh-header-account-link:focus-visible {
  color: #3d4a12;
  border-color: var(--fh-green, #6A9440);
  background: var(--fh-green-soft, #eef6d6);
  outline: none;
}
.fh-header-account-link[aria-current="page"] {
  border-color: var(--fh-green, #6A9440);
  background: var(--fh-green-soft, #eef6d6);
  color: #3d4a12;
}
.fh-header-account-link--primary {
  background: var(--fh-green, #6A9440);
  border-color: var(--fh-green, #6A9440);
  color: #1a2208;
}
.fh-header-account-link--primary:hover,
.fh-header-account-link--primary:focus-visible {
  background: var(--fh-green-dark, #6fa000);
  border-color: var(--fh-green-dark, #6fa000);
  color: #fff;
}
.fh-header-account-icon {
  display: block;
  flex-shrink: 0;
}
.fh-header-account {
  gap: 0.55rem;
}
.fh-header-account-name {
  display: inline-block;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.fh-header-logout {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  white-space: nowrap;
}
@media (min-width: 901px) {
  .fh-header.is-scrolled.fh-header--in .fh-nav {
    padding-right: 18rem;
  }
}

@media (max-width: 480px) {
  :root { --fh-logo-display: 96px; }
  .fh-header-inner { padding-top: 3rem; }
  .fh-header-account { top: 0.5rem; right: 0.75rem; }
  .fh-header-account-name { max-width: 6.5rem; }
  .fh-header.is-scrolled .fh-header-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.4rem;
    min-height: 2.85rem;
  }
  .fh-header.is-scrolled .fh-nav-toggle { top: 0.4rem; }
  .fh-header.is-scrolled .fh-header-account { top: 0.4rem; right: 0.75rem; }
  .fh-nav-toggle { top: 0.5rem; left: 0.75rem; right: auto; }
}

/* Header band: cream nav on sauge. Dropdown panels stay light. */
.fh-header .fh-nav-list > li > a,
.fh-header .fh-nav-list > li > button.fh-nav-btn { color: #f7f6f1; }
.fh-header .fh-nav-list > li > a:hover,
.fh-header .fh-nav-list > li > button.fh-nav-btn:hover,
.fh-header .fh-nav-list > li > a:focus-visible,
.fh-header .fh-nav-list > li > button.fh-nav-btn:focus-visible {
  background: rgba(26, 34, 8, 0.14);
  color: #fff;
}
.fh-header .fh-nav-list > li > a[aria-current="page"],
.fh-header .fh-nav-list > li > a.active {
  color: #fff;
  background: rgba(26, 34, 8, 0.18);
}
.fh-header .fh-lang-wrap { color: #f7f6f1; }
.fh-header .fh-header-account-link--primary {
  background: #1a2208;
  border-color: #1a2208;
  color: #f7f6f1;
}
.fh-header .fh-header-account-link--primary:hover,
.fh-header .fh-header-account-link--primary:focus-visible {
  background: #11160a;
  border-color: #11160a;
  color: #fff;
}
.fh-header a.fh-header-logout,
.fh-header a.fh-header-logout:hover { color: #f7f6f1; }
@media (max-width: 900px) {
  .fh-header .fh-nav { border-top-color: rgba(247, 246, 241, 0.45); }
  .fh-header .fh-dropdown a { color: #f7f6f1; }
  .fh-header .fh-dropdown a:hover,
  .fh-header .fh-dropdown a:focus-visible,
  .fh-header .fh-dropdown a[aria-current="page"] {
    background: rgba(26, 34, 8, 0.14);
    color: #fff;
  }
}
@media (max-width: 520px) {
  .fh-brand img.fh-mark-animaux { height: 40px; max-width: 100%; }
  .fh-brand .fh-brand-name { font-size: 1.25rem; }
}

/* ==========================================================================
   Hero v2 — page d'accueil uniquement (2026-10-05, hero1).
   Bloc additif : tout est scopé sous .fh-hero2 ; rien d'autre n'est modifié.
   Papier #f3eee4 · encre #1c1915 · ocre #b85c2c · titre serif, corps sans-serif.
   ========================================================================== */
.fh-hero2 {
  --h2-paper: #f3eee4;
  --h2-ink: #1c1915;
  --h2-ochre: #b85c2c;
  --h2-ochre-dark: #8f4520;
  --h2-card: #fbf9f4;
  --h2-line: rgba(28, 25, 21, 0.12);
  --h2-soft: #5f574b;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  margin: -1.5rem 0 1.5rem;
  padding: 2rem 0 2.25rem;
  color: var(--h2-ink);
  background: var(--h2-paper);
  /* Fond papier pleine largeur sans débordement horizontal */
  box-shadow: 0 0 0 100vmax var(--h2-paper);
  clip-path: inset(0 -100vmax);
}
@media (min-width: 960px) {
  .fh-hero2 {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    padding: 2.5rem 0 2.75rem;
  }
}
.fh-hero2 .fh-hero2-eyebrow {
  margin: 0 0 .75rem;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--h2-ochre-dark);
}
.fh-hero2 .fh-hero2-title {
  margin: 0 0 1.4rem;
  padding: 0;
  font-family: var(--fh-serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--h2-ink);
  text-wrap: balance;
}
.fh-hero2 .fh-hero2-actions { margin: 0; }
.fh-hero2 a.fh-hero2-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: 12px;
  background: var(--h2-ochre);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background-color .15s ease;
}
.fh-hero2 a.fh-hero2-cta:hover,
.fh-hero2 a.fh-hero2-cta:focus-visible { background: var(--h2-ochre-dark); color: #fff; }
.fh-hero2 a.fh-hero2-cta:focus-visible { outline: 3px solid var(--h2-ink); outline-offset: 3px; }
.fh-hero2 .fh-hero2-signup { margin: .8rem 0 0; font-size: .95rem; }
.fh-hero2 .fh-hero2-signup a { color: var(--h2-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(28, 25, 21, .35); }
.fh-hero2 .fh-hero2-signup a:hover,
.fh-hero2 .fh-hero2-signup a:focus-visible { color: var(--h2-ochre-dark); text-decoration-color: currentColor; }
.fh-hero2 .fh-hero2-free { margin: .45rem 0 0; font-size: .88rem; color: var(--h2-soft); }
.fh-hero2 .fh-hero2-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.fh-hero2 .fh-hero2-proofs li {
  padding: .3rem .75rem;
  border: 1px solid var(--h2-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-size: .88rem;
  font-weight: 600;
  color: var(--h2-ink);
}

/* Carte « aperçu réel » */
.fh-hero2 .fh-hero2-card {
  margin: 0;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid var(--h2-line);
  border-radius: 22px;
  background: var(--h2-card);
  box-shadow: 0 24px 50px rgba(36, 28, 16, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fh-hero2 .fh-hero2-card.is-lifted {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(36, 28, 16, .13);
}
@media (min-width: 600px) {
  .fh-hero2 .fh-hero2-card { padding: 1.35rem 1.5rem 1.15rem; }
}
.fh-hero2 .fh-hero2-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  margin: 0 0 1rem;
}
.fh-hero2 .fh-hero2-card-farm { margin: 0; font-size: .85rem; font-weight: 600; color: var(--h2-soft); }
.fh-hero2 .fh-hero2-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border: 1px solid rgba(184, 92, 44, .45);
  border-radius: 999px;
  background: rgba(184, 92, 44, .08);
  color: var(--h2-ochre-dark);
  font-size: .78rem;
  font-weight: 700;
}
.fh-hero2 .fh-hero2-card-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (min-width: 600px) {
  .fh-hero2 .fh-hero2-card-body { grid-template-columns: 150px minmax(0, 1fr); gap: 1.25rem; }
}
.fh-hero2 .fh-hero2-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}
.fh-hero2 .fh-hero2-name {
  margin: 0;
  padding: 0;
  font-family: var(--fh-serif);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--h2-ink);
}
.fh-hero2 .fh-hero2-meta { margin: .2rem 0 .8rem; font-size: .92rem; color: var(--h2-soft); }
.fh-hero2 .fh-hero2-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
@media (min-width: 420px) {
  .fh-hero2 .fh-hero2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .fh-hero2 .fh-hero2-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fh-hero2 .fh-hero2-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .6rem;
  border: 1px solid var(--h2-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--h2-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.fh-hero2 .fh-hero2-tile-k { font-size: .72rem; font-weight: 650; color: var(--h2-soft); line-height: 1.2; overflow-wrap: anywhere; }
.fh-hero2 .fh-hero2-tile-v { font-size: 1.12rem; font-weight: 750; line-height: 1.2; white-space: nowrap; transition: color .15s ease; }
.fh-hero2 .fh-hero2-tile-u { margin-left: .2rem; font-size: .72rem; font-weight: 600; color: var(--h2-soft); }
.fh-hero2 .fh-hero2-tile:hover,
.fh-hero2 .fh-hero2-tile:focus-visible,
.fh-hero2 .fh-hero2-tile.is-active { border-color: rgba(184, 92, 44, .55); background: #fffaf5; }
.fh-hero2 .fh-hero2-tile:hover .fh-hero2-tile-v,
.fh-hero2 .fh-hero2-tile:focus-visible .fh-hero2-tile-v,
.fh-hero2 .fh-hero2-tile.is-active .fh-hero2-tile-v { color: var(--h2-ochre); }
.fh-hero2 .fh-hero2-tile:focus-visible { outline: 2px solid var(--h2-ochre); outline-offset: 2px; }

/* Lecture courte (aria-live) */
.fh-hero2 .fh-hero2-reading {
  min-height: 2.6em;
  margin: .85rem 0 .2rem;
  font-size: .88rem;
  line-height: 1.3;
  color: var(--h2-soft);
}
.fh-hero2 .fh-hero2-reading.is-on { color: var(--h2-ink); }
.fh-hero2:not(.is-js) .fh-hero2-reading { display: none; }

/* Histogramme OFDA réel */
.fh-hero2 .fh-hero2-hist { margin: 0; border-radius: 12px; }
.fh-hero2 .fh-hero2-hist:focus-visible { outline: 2px solid var(--h2-ochre); outline-offset: 4px; }
.fh-hero2 .fh-hero2-hist figcaption { margin: 0 0 .25rem; font-size: .8rem; color: var(--h2-soft); }
.fh-hero2 .fh-hero2-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--fh-font); font-size: 10.5px; }
.fh-hero2 .fh-hero2-grid { stroke: rgba(28, 25, 21, .1); stroke-width: 1; }
.fh-hero2 .fh-hero2-axis { stroke: rgba(28, 25, 21, .45); stroke-width: 1; }
.fh-hero2 .fh-hero2-ylab,
.fh-hero2 .fh-hero2-xlab { fill: var(--h2-soft); }
.fh-hero2 .fh-hero2-unit { fill: var(--h2-ink); font-weight: 600; }
.fh-hero2 .fh-hero2-hit { fill: transparent; pointer-events: all; }
.fh-hero2 .fh-hero2-bar { cursor: pointer; }
.fh-hero2 .fh-hero2-col {
  fill: #6A9440;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .15s ease, fill .15s ease;
}
.fh-hero2 .fh-hero2-bar.is-active .fh-hero2-col { fill: var(--h2-ochre); transform: scale(1.35, 1.08); }
.fh-hero2 .fh-hero2-barlabel {
  fill: var(--h2-ink);
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--h2-card);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.fh-hero2 .fh-hero2-source { margin: .35rem 0 0; font-size: .8rem; color: var(--h2-soft); }
.fh-hero2 .fh-hero2-more { margin: .75rem 0 0; font-size: .88rem; text-align: right; }
.fh-hero2 .fh-hero2-more a { color: var(--h2-soft); text-decoration: underline; text-underline-offset: 3px; }
.fh-hero2 .fh-hero2-more a:hover,
.fh-hero2 .fh-hero2-more a:focus-visible { color: var(--h2-ochre-dark); }

/* Mobile : photo + nom côte à côte, tuiles en pleine largeur dessous */
@media (max-width: 599px) {
  .fh-hero2 .fh-hero2-card-body { grid-template-columns: 96px minmax(0, 1fr); gap: .35rem 1rem; }
  .fh-hero2 .fh-hero2-id { display: contents; }
  .fh-hero2 .fh-hero2-photo { grid-row: 1 / span 2; }
  .fh-hero2 .fh-hero2-name { align-self: end; }
  .fh-hero2 .fh-hero2-meta { align-self: start; margin: 0; }
  .fh-hero2 .fh-hero2-tiles { grid-column: 1 / -1; margin-top: .6rem; }
  .fh-hero2 .fh-hero2-svg { font-size: 13px; }
}
@media (min-width: 340px) and (max-width: 599px) {
  .fh-hero2 .fh-hero2-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .fh-hero2 *,
  .fh-hero2 .fh-hero2-card { transition: none !important; }
  .fh-hero2 .fh-hero2-card.is-lifted { transform: none; }
  .fh-hero2 .fh-hero2-bar.is-active .fh-hero2-col { transform: none; }
}

/* ==========================================================================
   2026-10-05 hero2 — retouches demandées par Bertrand (bloc additif).
   1) Header : vert sauge #6A9440 (override !important, redondant depuis la
      palette unifiée — conservé par sécurité).
   2) Accueil : titre remonté, lien « fiche de démonstration » en haut de carte,
      paragraphe de présentation sous la mention « Gratuit pour commencer ».
   ========================================================================== */
.fh-header,
.fh-header.is-scrolled {
  /* Header sauge — !important conservé. */
  --fh-header-bg: #6A9440;
  background: #6A9440 !important;
  background-color: #6A9440 !important;
}

.fh-hero2 { padding-top: 1.25rem; }
@media (min-width: 960px) {
  .fh-hero2 {
    align-items: start;
    padding-top: 1.5rem;
  }
}
.fh-hero2 .fh-hero2-eyebrow { margin-bottom: .6rem; }
.fh-hero2 .fh-hero2-title { margin-bottom: 1.2rem; }
.fh-hero2 .fh-hero2-lead {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--h2-ink);
}
.fh-hero2 .fh-hero2-full {
  margin: -.35rem 0 .9rem;
  font-size: .88rem;
}
.fh-hero2 .fh-hero2-full a {
  color: var(--h2-ochre-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(143, 69, 32, .4);
}
.fh-hero2 .fh-hero2-full a::after { content: " \2192"; }
.fh-hero2 .fh-hero2-full a:hover,
.fh-hero2 .fh-hero2-full a:focus-visible { color: var(--h2-ink); text-decoration-color: currentColor; }


/* ==========================================================================
   2026-10-05 — maquette : entrée des 3 silhouettes du mark (fh-mark-animaux).
   Bloc additif. Une fois par onglet (sessionStorage), pas si prefers-reduced-motion.
   ========================================================================== */
.fh-header .fh-brand {
  overflow: hidden; /* clip le glissement depuis la gauche, sans déborder le header */
}

/* Même taille / compact au scroll pour le SVG inliné (remplace l’img pendant l’anim). */
.fh-brand svg.fh-mark-animaux {
  width: auto;
  height: 64px;
  max-width: min(72vw, 520px);
}
.fh-header.is-scrolled .fh-brand svg.fh-mark-animaux {
  width: 0;
  height: 0;
  max-width: 0;
}
@media (max-width: 520px) {
  .fh-brand svg.fh-mark-animaux { height: 40px; max-width: 100%; }
}
.fh-header svg.fh-mark-animaux {
  display: block;
  overflow: visible;
}
.fh-header svg.fh-mark-animaux .fh-mark-animal {
  transform-box: fill-box;
  transform-origin: left center;
  will-change: transform, opacity;
}
/* anim4 — entrée séquentielle : mouton → chèvre → alpaga.
   Chaque silhouette part du bord gauche du mark et glisse jusqu’à sa place
   (unités = viewBox 1052, donc indépendant de la taille desktop/mobile).
   Ordre DOM du SVG : alpaga (gauche), chèvre (milieu), mouton (droite).
   Timeline : mouton 0–800 ms · pause 400 · chèvre 1200–1900 ms · pause 400 ·
   alpaga 2300–2900 ms. Les suivants restent invisibles (fill-mode both). */
.fh-header svg.fh-mark-animaux.fh-mark-animaux--run .fh-mark-animal {
  /* easeOutCubic : trajet bien visible, freinage doux à l’arrivée. */
  animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  animation-fill-mode: both;
}
.fh-header svg.fh-mark-animaux.fh-mark-animaux--run .fh-mark-animal[data-animal="mouton"] {
  animation-name: fh-mark-in-mouton;
  animation-duration: 800ms;
  animation-delay: 0ms;
}
.fh-header svg.fh-mark-animaux.fh-mark-animaux--run .fh-mark-animal[data-animal="chevre"] {
  animation-name: fh-mark-in-chevre;
  animation-duration: 700ms;
  animation-delay: 1200ms;
}
.fh-header svg.fh-mark-animaux.fh-mark-animaux--run .fh-mark-animal[data-animal="alpaga"] {
  animation-name: fh-mark-in-alpaga;
  animation-duration: 600ms;
  animation-delay: 2300ms;
}
@keyframes fh-mark-in-mouton {
  0%   { opacity: 0; transform: translateX(-1030px); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fh-mark-in-chevre {
  0%   { opacity: 0; transform: translateX(-680px); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fh-mark-in-alpaga {
  0%   { opacity: 0; transform: translateX(-320px); }
  30%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fh-header svg.fh-mark-animaux .fh-mark-animal,
  .fh-header svg.fh-mark-animaux.fh-mark-animaux--run .fh-mark-animal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* 2026-10-05 anim3 — CTA « Essayer » + mention gratuit à côté */
.fh-hero2 .fh-hero2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.1rem;
}
.fh-hero2 .fh-hero2-cta-aside {
  flex: 1 1 12rem;
  max-width: 22rem;
  margin: 0;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--h2-ink);
}
@media (max-width: 520px) {
  .fh-hero2 .fh-hero2-cta-aside { flex-basis: 100%; max-width: none; }
}


/* ==========================================================================
   2026-10-06 langleft1 — sélecteur de langue en haut à gauche (bureau / tablette).
   Pendant de la pastille compte (.fh-header-account, en haut à droite) :
   même top, même marge au bord, même hauteur de pastille.
   Le menu (.fh-nav-list), libéré du sélecteur, se recentre seul sous le logo.
   Smartphone (≤ 900px) : rien ne change, le sélecteur reste dans le menu replié.
   CSS seul : même élément (pas de doublon). .fh-nav n'est pas positionné, donc
   l'absolu se rattache à .fh-header-inner (position: relative), comme la pastille.
   ========================================================================== */
@media (min-width: 901px) {
  .fh-header .fh-lang-wrap {
    position: absolute;
    top: 0.75rem;
    left: 1.1rem;
    right: auto;
    z-index: 6;
    margin: 0;
  }
  .fh-header.is-scrolled .fh-lang-wrap { top: 0.4rem; }
  /* Même gabarit que .fh-header-account-link : 0.9rem / 1.2, padding 0.4rem, bord 1px. */
  .fh-header .fh-lang-btn {
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.4rem 0.85rem 0.4rem 0.75rem;
    border-radius: 999px;
  }
  /* 18px = icône de la pastille compte : hauteur identique au pixel près. */
  .fh-header .fh-lang-flag { line-height: 18px; }
  .fh-header .fh-lang-wrap:not([data-fh-lang-ui="1"]) select {
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
  }
  /* La liste s'ouvre vers la droite (le bouton est collé au bord gauche). */
  .fh-header .fh-lang-menu { left: 0; right: auto; }
  /* Barre compacte (logo replié) : le sélecteur passe en drapeau + flèche
     (le nom reste annoncé par aria-label « Langue : … ») et on lui réserve
     sa place à gauche ; la pastille garde sa réserve à droite. Le menu a ainsi
     plus de place qu'avant (le sélecteur faisait ~7rem dans la ligne). */
  .fh-header.is-scrolled .fh-lang-label { display: none; }
  .fh-header.is-scrolled .fh-nav { padding-left: 4.5rem; }
}

/* F3 fh21 (19/10/2026) : carte Lily à 17 mesures (synthèse v5.1). Tuiles sorties de la colonne d'identité :
   pleine largeur sous la photo jusqu'à 1100 px (mobile : règles existantes, 3 colonnes), colonne de droite au-delà. Grille compacte, aucun débordement. */
.fh-hero2 .fh-hero2-tiles.fh-hero2-tiles--21 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
@media (min-width: 600px) {
  .fh-hero2 .fh-hero2-card-body { grid-template-areas: "photo id" "tiles tiles"; }
  .fh-hero2 .fh-hero2-photo { grid-area: photo; }
  .fh-hero2 .fh-hero2-id { grid-area: id; min-width: 0; }
  .fh-hero2 .fh-hero2-tiles.fh-hero2-tiles--21 { grid-area: tiles; grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .fh-hero2 .fh-hero2-card-body { grid-template-areas: "photo id" "photo tiles"; grid-template-rows: auto 1fr; row-gap: .2rem; }
  .fh-hero2 .fh-hero2-tiles.fh-hero2-tiles--21 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; }
}
.fh-hero2 .fh-hero2-tiles--21 .fh-hero2-tile { min-height: 40px; padding: .32rem .45rem; border-radius: 10px; gap: 0; }
.fh-hero2 .fh-hero2-tiles--21 .fh-hero2-tile-k { font-size: .66rem; line-height: 1.15; }
.fh-hero2 .fh-hero2-tiles--21 .fh-hero2-tile-v { font-size: .98rem; }
.fh-hero2 .fh-hero2-tiles--21 .fh-hero2-tile-u { margin-left: .15rem; font-size: .64rem; }
.fh-hero2 .fh-hero2-id .fh-hero2-meta { margin-bottom: .4rem; }
