/* ==========================================================================
   profiles.ma
   Principe : le seul or de la page est le métal. Le reste est acier et papier.
   ========================================================================== */

:root {
  --paper:     #FFFFFF;
  --sheet:     #F1F2F4;   /* gris froid — bandes de section */
  --sheet-dim: #E7E9EC;
  --rule:      #D4D7DB;
  --rule-soft: #E8EAEC;
  --steel:     #2B2E33;   /* tinte froide : fait ressortir le laiton */
  --steel-mid: #5A5F66;
  --steel-pale:#9AA0A7;
  --brass:     #C9A227;   /* matière */
  --brass-ink: #86691A;   /* liens — 5,5:1 sur blanc */

  --ok-fg:     #15603A;
  --ok-bg:     #E3F1E8;
  --wait-fg:   #7A4A08;
  --wait-bg:   #F6EBDA;

  --r:         2px;
  --maxw:      1180px;
  --gut:       clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--steel); letter-spacing: -0.01em; }
p, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--brass-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #6B5414; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }

/* Le monospace est réservé aux cotes et aux nombres, jamais à la prose */
.num, .sizes li, .card__dim, .facts dd {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 26px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 17px/1 'IBM Plex Sans', sans-serif;
  text-decoration: none; cursor: pointer;
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}
.btn--primary { background: var(--brass); color: #231C06; border-color: #A8861E; }
.btn--primary:hover { background: #B7922130; background-color: #D9B23C; color: #231C06; }
.btn--steel   { background: var(--steel); color: #FFF; border-color: var(--steel); }
.btn--steel:hover { background: #16181B; color: #FFF; }
.btn--line    { background: transparent; color: var(--steel); border-color: var(--rule); }
.btn--line:hover { border-color: var(--steel); background: var(--sheet); color: var(--steel); }
.btn--onsteel { background: transparent; color: #FFF; border-color: #6E747C; }
.btn--onsteel:hover { background: #FFF; color: var(--steel); border-color: #FFF; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 16px; }

/* ------------------------------------------------------------- En-tête */

.topbar {
  background: var(--steel); color: #C3C8CE;
  font-size: 14px; line-height: 1.4;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 4px 32px;
  justify-content: space-between; padding-block: 9px;
}
.topbar a { color: #FFF; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 28px; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 15px;
}

.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 1px; text-decoration: none; line-height: 1;
}
.brand__name { display: inline-flex; align-items: baseline; gap: 1px; }
.brand b {
  font: 600 22px/1 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.02em; color: var(--steel);
}
.brand i { font-style: normal; font-weight: 400; color: var(--brass-ink); font-size: 22px; }
.brand__sub {
  font-size: 12px; font-style: italic; font-weight: 400;
  color: var(--steel-mid); letter-spacing: .01em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--steel); text-decoration: none; font-size: 16px;
  padding: 10px 14px; border-radius: var(--r);
}
.nav a:hover { background: var(--sheet); color: var(--steel); }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav a.btn { margin-left: 10px; color: #231C06; border-radius: var(--r); }
.nav a.btn:hover { background: #D9B23C; color: #231C06; }

.nav-toggle {
  display: none; align-items: center; gap: 9px; min-height: 44px;
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 9px 14px; font: 400 16px/1 'IBM Plex Sans', sans-serif; color: var(--steel);
  cursor: pointer;
}

/* ---- menu dépliant des guides -------------------------------- */
.drop { position: relative; display: flex; align-items: center; }
.drop > a { padding-right: 4px; }
.drop__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 34px; padding: 0; margin-right: 6px;
  background: none; border: 0; color: var(--steel-mid); cursor: pointer;
  border-radius: var(--r);
}
.drop__btn svg { transition: transform .16s ease; }
.drop:hover .drop__btn, .drop.is-open .drop__btn { color: var(--steel); }
.drop:hover .drop__btn svg,
.drop.is-open .drop__btn svg { transform: rotate(180deg); }
.drop.is-here > a { font-weight: 600; box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

.drop__menu {
  position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 264px; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: 0 10px 28px rgba(26, 29, 33, .13);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.drop:hover .drop__menu,
.drop.is-open .drop__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop__menu a {
  display: block; padding: 10px 12px; font-size: 15.5px;
  color: var(--steel); white-space: nowrap;
}
.drop__menu a:hover { background: var(--sheet); color: var(--brass-ink); }
.drop__all { margin-top: 5px; border-top: 1px solid var(--sheet); padding-top: 5px; }
.drop__all a { color: var(--steel-mid); font-size: 14.5px; }

/* ---------------------------------------------------------------- Hero */

.hero { border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(40px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06;
  font-weight: 600; letter-spacing: -0.025em; margin-bottom: 20px;
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55;
  color: var(--steel-mid); max-width: 48ch; margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* planche de dessin */
.plate {
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper); padding: 22px 24px 18px;
}
.plate__dwg { text-align: center; }
.plate__dwg svg {
  display: block; margin: 0 auto;
  width: min(100%, 330px); height: auto;
}
.plate__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-soft);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px; color: var(--steel-mid);
}

/* ---------------------------------------------------- Bandeau de faits */

.facts { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.facts .wrap {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; padding-block: 0;
}
.facts div { padding: 26px 24px 26px 0; }
.facts dt { font-size: 15px; color: var(--steel-mid); margin-bottom: 4px; }
.facts dd {
  margin: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 19px; font-weight: 500; color: var(--steel); letter-spacing: -0.02em;
}

/* -------------------------------------------------------------- Bandes */

.band { padding-block: clamp(48px, 6vw, 76px); }
.band--sheet { background: var(--sheet); border-block: 1px solid var(--rule); }
.band--steel { background: var(--steel); }
.band--steel h2, .band--steel h3 { color: #FFF; }
.band--steel p { color: #BCC2C9; }

.band h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.band__intro { font-size: 18px; line-height: 1.55; color: var(--steel-mid); max-width: 62ch; margin-top: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.split--wide { grid-template-columns: 1.6fr 1fr; align-items: start; }

.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.quad h3 { font-size: 17px; margin-bottom: 8px; }
.quad p { font-size: 15.5px; line-height: 1.55; color: var(--steel-mid); }
.band--steel .quad h3 { color: var(--brass); }
.band--steel .quad p  { color: #BCC2C9; }   /* 7,6:1 — la règle .quad p la masquait */

/* --------------------------------------------------- Grille catalogue */

.catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.catgrid > * { border: 1px solid var(--rule); margin: -1px 0 0 -1px; }

.item {
  display: grid; grid-template-columns: 100px 1fr; gap: 18px;
  align-items: start; padding: 20px 22px;
  background: var(--paper); text-decoration: none; color: inherit;
  transition: background-color .12s linear;
}
.item:hover { background: var(--sheet); }
.item:hover .item__name { text-decoration: underline; text-underline-offset: 2px; }
.item__dwg { width: 96px; height: 96px; }
.item__dwg svg { width: 100%; height: 100%; display: block; }
.item__name { font-size: 18px; font-weight: 600; color: var(--steel); display: block; margin-bottom: 7px; }
.card__dim { display: block; font-size: 14px; color: var(--steel-mid); line-height: 1.5; }
.item__use { display: block; font-size: 15px; color: var(--steel-mid); margin-top: 7px; line-height: 1.45; }
.item__state { margin-top: 10px; }

.item--ask {
  display: block; padding: 24px 22px; background: var(--sheet);
}
.item--ask h3 { font-size: 18px; margin-bottom: 7px; }
.item--ask p { font-size: 15px; color: var(--steel-mid); line-height: 1.5; margin-bottom: 10px; }

.group { margin-top: 36px; }
.group__name {
  font-size: 15px; font-weight: 600; color: var(--steel);
  padding-bottom: 10px; margin-bottom: 0;
  border-bottom: 2px solid var(--steel);
}
.group__name span { font-weight: 400; color: var(--steel-mid); }
.group .catgrid { margin-top: 0; }

/* ------------------------------------------------------- Disponibilité */

.state {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: var(--r);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state--ok   { color: var(--ok-fg); background: var(--ok-bg); }
.state--wait { color: var(--wait-fg); background: var(--wait-bg); }
.state--lead { font-size: 15px; padding: 9px 14px; }

/* -------------------------------------------------------- Fil d'Ariane */

.crumbs { border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.crumbs .wrap { padding-block: 12px; }
.crumbs a { color: var(--steel-mid); text-decoration: none; }
.crumbs a:hover { color: var(--brass-ink); text-decoration: underline; }
.crumbs span { color: var(--steel); }
.crumbs i { font-style: normal; color: var(--steel-pale); margin-inline: 9px; }

/* ----------------------------------------------------------- Fiche */

.sheet { padding-block: clamp(32px, 4vw, 52px); }
.sheet__top { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.sheet h1 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 12px; }
.sheet__sub { font-size: 18px; line-height: 1.55; color: var(--steel-mid); margin-bottom: 20px; }

.specs { width: 100%; border-collapse: collapse; font-size: 16px; margin-block: 22px; }
.specs caption {
  caption-side: top; text-align: left; font-size: 15px; font-weight: 600;
  color: var(--steel); padding-bottom: 10px; border-bottom: 2px solid var(--steel);
}
.specs th, .specs td { padding: 11px 0; text-align: left; border-bottom: 1px solid var(--rule-soft); }
.specs th { font-weight: 400; color: var(--steel-mid); width: 46%; }
.specs td { font-weight: 500; color: var(--steel); }

.note { font-size: 15px; color: var(--steel-mid); line-height: 1.55; margin-top: 14px; }

/* corps */
.body { padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--rule); }
.body .wrap { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.body h2 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 14px; letter-spacing: -0.02em; }
.body p { margin-bottom: 14px; max-width: 72ch; }
.body section + section { margin-top: 34px; }

.points { list-style: none; display: grid; gap: 11px; padding: 0; }
.points li { padding-left: 22px; position: relative; line-height: 1.55; max-width: 72ch; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 10px; height: 1px; background: var(--brass);
}
.points strong { font-weight: 600; color: var(--steel); }

.sizes { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; }
.sizes li {
  font-size: 14.5px; padding: 6px 11px;
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--steel);
}

.scroller { overflow-x: auto; }
.tech { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 15.5px; }
.tech th {
  text-align: left; font-size: 14px; font-weight: 600; color: var(--steel);
  padding: 0 16px 10px 0; border-bottom: 2px solid var(--steel);
}
.tech td { padding: 14px 16px 14px 0; vertical-align: top; line-height: 1.55; border-bottom: 1px solid var(--rule-soft); color: var(--steel-mid); }

.panel { border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.panel p { font-size: 15.5px; line-height: 1.55; color: var(--steel-mid); margin-bottom: 12px; }
.panel ul { list-style: none; display: grid; gap: 9px; padding: 0; font-size: 15.5px; }
.panel a { text-decoration: none; }
.panel a:hover { text-decoration: underline; }
.panel__tel {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 17px; color: var(--steel); line-height: 1.7;
}
.panel__tel a { color: var(--steel); }

/* ----------------------------------------------------------- Catalogue */

.page { padding-block: clamp(32px, 4vw, 52px); }
.page h1 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -0.025em; }
.page__intro { font-size: 18px; line-height: 1.55; color: var(--steel-mid); max-width: 66ch; margin-top: 14px; }

/* ------------------------------------------------------------- Contact */

.form { display: grid; gap: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--steel); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 'IBM Plex Sans', sans-serif; color: var(--steel);
  padding: 12px 13px; min-height: 48px; width: 100%;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(43,46,51,.10);
}
.hint { font-size: 14px; color: var(--steel-mid); }

.infos { display: grid; gap: 20px; }
.infos div { padding-bottom: 20px; border-bottom: 1px solid var(--rule-soft); }
.infos div:last-child { border-bottom: 0; padding-bottom: 0; }
.infos h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.infos p { font-size: 16px; line-height: 1.6; color: var(--steel-mid); }
.infos a { color: var(--steel); text-decoration: none; }
.infos a:hover { color: var(--brass-ink); text-decoration: underline; }

/* ----------------------------------------------------------------- CTA */

.cta { background: var(--steel); color: #FFF; padding-block: clamp(40px, 5vw, 56px); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.cta h2 { color: #FFF; font-size: clamp(22px, 2.6vw, 29px); margin-bottom: 8px; letter-spacing: -0.02em; }
.cta p { color: #BCC2C9; font-size: 17px; line-height: 1.5; max-width: 54ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ Pied */

.foot { background: var(--steel); color: #A8AEB6; padding-block: 48px 22px; font-size: 15px; border-top: 1px solid #3C4046; }
.foot__cols { display: grid; grid-template-columns: 1.5fr .9fr .9fr .9fr 1.1fr; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid #3C4046; }
.foot h3 { font-size: 15px; font-weight: 600; color: #FFF; margin-bottom: 12px; }
.foot p, .foot li { line-height: 1.75; }
.foot ul { list-style: none; padding: 0; }
.foot a { color: #A8AEB6; text-decoration: none; }
.foot a:hover { color: #FFF; text-decoration: underline; }
.foot__brand { font: 600 19px/1 'IBM Plex Sans', sans-serif; color: #FFF; margin-bottom: 12px; }
.foot__brand i { font-style: normal; font-weight: 400; color: var(--brass); }
.foot__legal { padding-top: 20px; font-size: 14px; color: #7E858D; }

/* ------------------------------------------------------------- Mobile */

@media (max-width: 1040px) {
  .hero .wrap, .split, .split--wide, .body .wrap { grid-template-columns: 1fr; }
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts .wrap, .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet__top { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate__dwg svg { max-width: 300px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 10px var(--gut) 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--sheet); border-radius: var(--r); }
  .nav a.btn { margin: 10px 0 0; }

  /* le dépliant n'a plus lieu d'être : tout est déjà déroulé */
  .drop { display: block; }
  .drop__btn { display: none; }
  .drop.is-here > a { box-shadow: none; background: var(--sheet); border-radius: var(--r); }
  .drop__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; border: 0; box-shadow: none; padding: 2px 0 6px 12px;
    border-left: 2px solid var(--sheet); margin-left: 12px;
  }
  .drop__menu a { padding: 11px 12px; white-space: normal; }
  .drop__all { border-top: 0; margin-top: 0; padding-top: 0; }
  .drop__all { display: none; }   /* « Tous les guides » = le lien parent */
}

@media (max-width: 640px) {
  .brand b, .brand i { font-size: 20px; }
  .brand__sub { font-size: 11px; }
  .catgrid, .facts .wrap, .quad, .pair, .foot__cols { grid-template-columns: 1fr; }
  .facts div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .facts div:last-child { border-bottom: 0; }
  .btn { width: 100%; }
  .item { grid-template-columns: 76px 1fr; gap: 14px; }
  .item__dwg { width: 72px; height: 72px; }
  .topbar .wrap { justify-content: flex-start; }
}

/* ---------------------------------------------------------- Impression */

@media print {
  .topbar, .masthead, .cta, .foot, .btn, .nav-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .catgrid > *, .panel { border-color: #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ======================================================================
   Calculateur de poids
   ====================================================================== */

.calc {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 3vw, 40px); align-items: start; margin-top: 36px;
}
.calc__in { display: grid; gap: 16px; }
.calc__in .pair { gap: 16px; }

.calc__out {
  display: block; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 22px 24px; background: var(--sheet); position: sticky; top: 20px;
}
.calc__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.calc__row span { font-size: 15px; color: var(--steel-mid); }
.calc__row b { font-size: 17px; font-weight: 500; color: var(--steel); white-space: nowrap; }
.calc__row--main b { font-size: 21px; }
.calc__row--total { border-bottom: 0; border-top: 2px solid var(--steel); margin-top: 4px; padding-top: 14px; }
.calc__row--total span { color: var(--steel); font-weight: 500; }
.calc__row--total b { font-size: 26px; letter-spacing: -0.02em; }
.calc__note { font-size: 14px; color: var(--wait-fg); line-height: 1.5; margin: 12px 0 0; min-height: 1px; }
.calc__out .btn { width: 100%; margin-top: 16px; }

.formula {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14.5px; line-height: 1.7; color: var(--steel);
  background: var(--sheet); border-left: 2px solid var(--brass);
  padding: 14px 16px; border-radius: 0 var(--r) var(--r) 0;
}

@media (max-width: 880px) {
  .calc { grid-template-columns: 1fr; }
  .calc__out { position: static; }
}

/* ======================================================================
   Un seul moment de mouvement : la cote se trace au chargement
   ====================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .hero .plate .section-dwg line,
  .hero .plate .section-dwg text {
    animation: cote .5s ease-out both;
    animation-delay: .35s;
  }
  @keyframes cote { from { opacity: 0 } to { opacity: 1 } }
}

/* ======================================================================
   Un enfant de grille ne descend pas sous la largeur minimale de son
   contenu tant qu'on ne le lui dit pas : sans ceci, le tableau technique
   fait déborder la page sur téléphone.
   ====================================================================== */

.hero .wrap > *,
.sheet__top > *,
.body .wrap > *,
.split > *,
.calc > *,
.quad > *,
.foot__cols > * { min-width: 0; }

.scroller { max-width: 100%; }
.tech td, .tech th { overflow-wrap: anywhere; }

/* La forme longue de l'étiquette doit pouvoir passer à la ligne */
.state--lead {
  white-space: normal;
  align-items: flex-start;
  line-height: 1.45;
  max-width: 100%;
}
.state--lead::before { margin-top: 7px; flex: none; }

/* ======================================================================
   Photographies produit
   Le dessin dit la géométrie et les cotes, la photo dit la matière.
   ====================================================================== */

.item__img {
  width: 100px; height: 100px; flex: none;
  border: 1px solid var(--rule-soft); border-radius: var(--r);
  background: #FFF; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.item__photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.item:hover .item__img { border-color: var(--rule); }

.plate__img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); background: #FFF;
}
.plate--photo { padding: 14px; }
.plate--photo .plate__foot { margin-top: 12px; }

/* séparateur entre la photo et le plan */
.plate__sep {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 6px; font-size: 12.5px; color: var(--steel-pale);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.plate__sep::before, .plate__sep::after {
  content: ""; flex: 1; height: 1px; background: var(--rule-soft);
}

@media (max-width: 640px) {
  .item__img { width: 76px; height: 76px; }
}


/* ---- tableau des références tenues en stock ------------------ */
.refs { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 18px; }
.refs th, .refs td { padding: 9px 14px; text-align: right; white-space: nowrap; }
.refs thead th {
  font: 600 13px/1.3 'IBM Plex Sans', sans-serif; color: var(--steel-mid);
  text-align: right; border-bottom: 2px solid var(--steel);
  vertical-align: bottom;
}
.refs thead th:first-child { text-align: left; }
.refs tbody th {
  text-align: left; font-weight: 600; color: var(--steel);
}
.refs tbody tr + tr th, .refs tbody tr + tr td { border-top: 1px solid var(--sheet); }
.refs tbody tr:hover th, .refs tbody tr:hover td { background: var(--sheet); }

/* ---- questions fréquentes ----------------------------------- */
.faq { margin-top: 14px; border-top: 1px solid var(--sheet); }
.faq details { border-bottom: 1px solid var(--sheet); }
.faq summary {
  cursor: pointer; padding: 14px 28px 14px 0; position: relative;
  font: 600 16px/1.45 'IBM Plex Sans', sans-serif; color: var(--steel);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--brass-ink); border-bottom: 2px solid var(--brass-ink);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brass-ink); }
.faq details p { padding: 0 0 16px; margin: 0; color: var(--steel-mid); }

@media (max-width: 640px) {
  .refs { font-size: 14px; }
  .refs th, .refs td { padding: 8px 10px; }
}


/* ---- alliage imposé par le profilé (calculateur) ------------- */
[hidden] { display: none !important; }

.nuance__lab {
  display: block; font: 600 13px/1.3 'IBM Plex Sans', sans-serif;
  color: var(--steel-mid); margin-bottom: 7px;
}
.nuance__val {
  display: block; padding: 11px 14px;
  background: var(--sheet); border-left: 3px solid var(--brass);
  font: 600 16px/1.3 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--steel);
}


/* ---- guides : liste de l'index ------------------------------- */
.guides { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 1px;
          background: var(--sheet); border-block: 1px solid var(--sheet); }
.guides li { background: var(--paper); min-width: 0; }
.guides a {
  display: block; padding: 26px 2px; text-decoration: none;
  transition: background .15s ease;
}
.guides a:hover { background: var(--sheet); }
.guides h2 {
  font: 600 21px/1.3 'IBM Plex Sans', sans-serif;
  color: var(--steel); margin: 0 0 8px; max-width: 52ch;
}
.guides a:hover h2 { color: var(--brass-ink); }
.guides p { color: var(--steel-mid); margin: 0 0 12px; max-width: 76ch; }
.card__go {
  font: 600 14px/1 'IBM Plex Sans', sans-serif; color: var(--brass-ink);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---- guides : corps de l'article ----------------------------- */
.prose > h2 {
  font: 600 25px/1.25 'IBM Plex Sans', sans-serif; color: var(--steel);
  margin: 42px 0 14px; padding-top: 22px; border-top: 1px solid var(--sheet);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 { font: 600 19px/1.3 'IBM Plex Sans', sans-serif; margin: 26px 0 10px; }
.prose > p { margin-bottom: 16px; max-width: 68ch; }
.prose > .scroller { margin: 22px 0 26px; }
.prose .points { margin-bottom: 22px; }
.prose .note { margin: 22px 0 26px; }
.prose section { margin-top: 42px; }

/* grille lisible pour les tableaux comparatifs des guides */
.tech--grid td, .tech--grid th { vertical-align: top; }
/* les en-têtes de ces tableaux sont des mots courts : pas de césure */
.tech--grid thead th { white-space: nowrap; overflow-wrap: normal; padding-right: 26px; }
.tech--grid tbody th {
  text-align: left; font-weight: 600; color: var(--steel);
  white-space: nowrap; overflow-wrap: normal;
  padding: 14px 26px 14px 0;
  border-bottom: 1px solid var(--rule-soft);   /* et non le filet de l'en-tête */
}
.tech--grid caption {
  caption-side: top; text-align: left; padding-bottom: 10px;
  font: 600 13px/1.4 'IBM Plex Sans', sans-serif; color: var(--steel-mid);
}

.page--tight .page__intro { max-width: 60ch; }
