/* Renau: self-hosted Inter (variable) so every "font-family: Inter" rule renders correctly */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Fallback for elements that had no font set (rendered in Times before) */
h1, h2, h3, h4, h5, h6, table, th, td, input, textarea, select, button { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* Client logos: give them a box so lazy-loading can trigger and they show up */
#Client .card > img.LogoClient { width: 7.75rem; height: 4rem; }

/* Product sheets (modèle / accessoire): no horizontal overflow on tablet & mobile.
   The spec column had a fixed 888px width; tables now scroll inside their own box. */
@media (max-width: 1024px) {
  #Technical-Conveyor > div { width: 100% !important; max-width: 100%; min-width: 0; flex: 1 1 auto; }
  #Technical-Conveyor table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; table-layout: auto; }
  #Technical-Conveyor h2 { overflow-wrap: anywhere; }
  #FormProduit input, #FormProduit textarea { box-sizing: border-box; max-width: 100%; }
  #Technical-Conveyor .cards, #Technical-Conveyor #fiche-technique .cards { flex-wrap: wrap; max-width: 100%; }
}

/* === Home key figures: no overflow on tablet, 2 columns on mobile === */
@media (max-width: 64rem) {
  body #HomeNumber ul { flex-wrap: wrap; justify-content: center; row-gap: 2rem; column-gap: 2rem; }
  body #HomeNumber .VerticalLine { display: none; }
  body #HomeNumber li { flex: 0 1 auto; }
}
@media (max-width: 48rem) {
  body #HomeNumber ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  body #HomeNumber li:last-child { grid-column: 1 / -1; }
  body #HomeNumber .Number { font-size: 2.25rem; }
}

/* === Page heroes on mobile: smaller H1, no overlap with the breadcrumb === */
@media (max-width: 40rem) {
  body #FamilleHeroBanner h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  body #FamilleHeroBanner.contactHero { height: auto !important; min-height: 0 !important; padding-top: 7rem !important; padding-bottom: 3rem !important; }
  body #FamilleHeroBanner.contactHero .navigation { position: static !important; margin-bottom: 1rem; }
}

/* === Product sheets: Fluent Forms contact form (replaces the old mailto form) === */
#FormProduit .renau-product-form { width: 100%; max-width: 36rem; }
#FormProduit .renau-product-form form, #FormProduit .renau-product-form fieldset { display: block !important; width: 100% !important; border: 0; margin: 0; padding: 0; }
#FormProduit .renau-product-form .ff-el-group { display: block !important; margin: 0 0 1rem !important; width: 100% !important; }
#FormProduit .renau-product-form .ff-t-container { display: flex !important; gap: 1rem; width: 100%; }
#FormProduit .renau-product-form .ff-t-cell { flex: 1 1 0 !important; width: auto !important; padding: 0 !important; min-width: 0; }
#FormProduit .renau-product-form .ff-el-input--label { display: block !important; width: 100% !important; margin: 0 0 .375rem !important; text-align: left !important; }
#FormProduit .renau-product-form .ff-el-input--label label { font-family: Inter, system-ui, sans-serif; font-size: .9375rem; font-weight: 500; color: #161616; }
#FormProduit .renau-product-form .ff-el-input--content { display: block !important; width: 100% !important; margin: 0 !important; }
#FormProduit .renau-product-form input, #FormProduit .renau-product-form textarea {
  display: block !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; margin: 0 !important;
  padding: .875rem 1.25rem !important; border: 1px solid #C9C9C9 !important; border-radius: .75rem !important; background: #FFF !important;
  font-family: Inter, system-ui, sans-serif !important; font-size: 1rem !important; position: static !important; height: auto !important;
}
#FormProduit .renau-product-form textarea { min-height: 9rem !important; resize: vertical; }
#FormProduit .renau-product-form button[type="submit"] {
  display: inline-block !important; position: static !important; width: auto !important; height: auto !important; padding: 1rem 2rem !important;
  border: 0 !important; border-radius: 6.25rem !important; background: #D30000 !important; color: #FFF !important;
  font-family: Inter, system-ui, sans-serif !important; font-size: 1rem !important; font-weight: 500 !important; cursor: pointer; margin: .5rem 0 0 !important;
}
#FormProduit .renau-product-form button[type="submit"]:hover { background: #a40e26 !important; }
@media (max-width: 40rem) { #FormProduit .renau-product-form .ff-t-container { flex-direction: column; gap: 0; } }
