/* Fibre Herd — shared site chrome (nav, footer, content pages) */
:root {
  --fh-green: #88C800;
  --fh-green-dark: #6fa000;
  --fh-green-soft: #eef6d6;
  --fh-grey: #484844;
  --fh-muted: #6b7160;
  --fh-line: #e2e6dc;
  --fh-bg: #f6f7f4;
  --fh-card: #ffffff;
  --fh-banner: #2c3318;
  --fh-radius: 12px;
  --fh-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fh-header-h: 64px;
}

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

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;
}

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: 100;
  background: var(--fh-card);
  border-bottom: 1px solid var(--fh-line);
  box-shadow: 0 1px 0 rgba(72,72,68,0.03);
}

.fh-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fh-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fh-grey);
  flex-shrink: 0;
}
.fh-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.fh-brand .fh-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.fh-brand .fh-brand-name { font-weight: 700; font-size: 1.05rem; }
.fh-brand .fh-brand-tag { font-size: 0.72rem; color: var(--fh-muted); }

.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;
  gap: 0.15rem;
  margin-left: auto;
  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: var(--fh-grey);
  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: 650;
  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: var(--fh-card);
  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: 650;
  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;
}
.fh-lang-wrap select {
  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-wrap select:focus {
  outline: 2px solid var(--fh-green);
  outline-offset: 1px;
  border-color: var(--fh-green);
}

/* Mobile nav */
@media (max-width: 900px) {
  .fh-nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .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 select { max-width: none; width: 100%; }
}

/* Main content */
.fh-main {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.fh-main.wide { max-width: 1120px; }

.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 { 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-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;
}
.fh-card h2:first-child { margin-top: 0; }

.fh-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fh-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .fh-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

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;
}
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 */
.fh-footer {
  background: var(--fh-card);
  border-top: 1px solid var(--fh-line);
  padding: 1.5rem 1.25rem 2rem;
  color: var(--fh-muted);
  font-size: 0.85rem;
}
.fh-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.fh-footer a {
  color: var(--fh-muted);
  text-decoration: none;
}
.fh-footer a:hover { color: var(--fh-green-dark); }
.fh-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fh-footer-meta { max-width: 28rem; }
.fh-footer-meta strong { color: var(--fh-grey); }

/* 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: 650;
  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; }
.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é) — calque Lily Neige —— */
.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, #88C800);
  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 (MVP stubs) */
.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; }
