/* Pages statiques par carte mère (carte/*.html, générées par tools/build-pages.js) */
.bp-body { min-height: 100vh; }
.bp-home { display: flex; align-items: center; gap: inherit; text-decoration: none; }   /* même écart que l'en-tête des autres pages */
.bp-logo { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.bp-main { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.bp-crumbs { font-size: 0.7rem; color: var(--text3); }
.bp-crumbs a { color: var(--accent); text-decoration: none; }
.bp-title { font-family: var(--display); font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.bp-meta { font-size: 0.78rem; color: var(--text2); margin-top: -0.5rem; }
.bp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.bp-cta { display: inline-block; padding: 0.55rem 1rem; border-radius: 8px; background: var(--accent); color: #04140d; font-weight: 700; font-size: 0.8rem; text-decoration: none; }
.bp-cta:hover { background: var(--accent2); }
.bp-doc { font-size: 0.75rem; color: var(--accent); text-decoration: none; font-weight: 700; }
.bp-doc:hover, .bp-links a:hover, .bp-crumbs a:hover { text-decoration: underline; }
.bp-panel { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.bp-panel .board-label { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin: 0 0 0.6rem; }
.bp-panel .board-label:not(:first-child) { margin-top: 1.1rem; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 1rem; align-items: start; }
.bp-facts { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--text2); }
.bp-facts b { color: var(--text); }
.bp-ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 0.45rem; }
.bp-facts span { color: var(--text3); }
.bp-fig { margin: 0; }
.bp-fig img { display: block; width: 100%; height: auto; border-radius: 6px; }
.bp-fig figcaption { font-size: 0.62rem; color: var(--text3); margin-top: 0.5rem; text-align: center; }
.bp-table-wrap { overflow-x: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.bp-table th, .bp-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.bp-table thead th { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); font-weight: 500; }
.bp-table tbody th { color: var(--text); font-weight: 700; white-space: nowrap; }
.bp-table td { color: var(--text2); white-space: nowrap; }
.bp-table td.bp-note { white-space: normal; min-width: 16rem; color: var(--text3); }
.bp-src { font-size: 0.62rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 1px solid currentColor; }
.bp-src-cpu { color: var(--cpu-color); }
.bp-src-cst { color: var(--chipset-color); }
.bp-hint { font-size: 0.62rem; color: var(--text3); margin-top: 0.6rem; }
.bp-cpus { font-size: 0.72rem; color: var(--text2); line-height: 1.7; }
.bp-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.3rem 1rem; font-size: 0.74rem; margin-bottom: 0.6rem; }
.bp-links a { color: var(--text2); text-decoration: none; }
.bp-panel .sheet-title { margin-top: 0.8rem; }
.bp-foot { max-width: 1080px; margin: 0 auto; padding: 1rem 1rem 2rem; font-size: 0.6rem; color: var(--text3); line-height: 1.6; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-panel { padding: 1rem; }
}

/* Style des panneaux de l'accueil (classes .hub-* de styles.css) */
.hub-slots { --g1: #06b6d4; --g2: #3b82f6; }
.hub-more  { --g1: #ec4899; --g2: #a855f7; }
.hub-diag  { --g1: #3b82f6; --g2: #06b6d4; }
.bp-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.bp-hue-cpu { --h: var(--cpu-color); }
.bp-hue-cst { --h: var(--chipset-color); }
.bp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-stat-val { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.1; }
.bp-stat-val small { font-size: 0.8rem; color: var(--text3); }
.bp-list { margin-bottom: 0.4rem; }
.hub-group .sheet-empty { font-size: 0.72rem; color: var(--text2); }
.bp-fig { margin: 0; }
.bp-fig img { display: block; width: 100%; height: auto; border-radius: 8px; }
.bp-cta { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.45rem 0.4rem 1rem; border-radius: 999px; }
.bp-cta .hub-item-go { width: 24px; height: 24px; color: #04140d; background: rgba(255,255,255,0.35); border-color: transparent; }
.bp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bp-chips li { font-size: 0.68rem; color: var(--text2); padding: 0.3rem 0.65rem; border-radius: 999px;
  background: color-mix(in srgb, var(--surface2) 70%, transparent); border: 1px solid var(--border); }
.hub-items.bp-links { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.45rem; margin-bottom: 0.9rem; font-size: inherit; }
.hub-items.bp-links:last-child { margin-bottom: 0; }
.hub-group .bp-link { --h: var(--g1); padding: 0.5rem 0.5rem 0.5rem 0.75rem; flex-wrap: nowrap; align-items: center; }
.hub-group .bp-link .hub-item-txt { flex-basis: auto; order: 0; }
.hub-group .bp-link .hub-item-go { order: 0; margin-left: 0; width: 22px; height: 22px; }
.hub-group .bp-link .hub-item-name { font-size: 0.7rem; }
.bp-initial { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.bp-brands { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bp-brands a { font-size: 0.68rem; color: var(--text2); text-decoration: none; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.bp-brands a:hover { color: var(--accent); border-color: var(--accent); }
.hub-group[id] { scroll-margin-top: 1rem; }
@media (max-width: 520px) { .bp-stats { grid-template-columns: 1fr 1fr; } }
.bp-cq { container-type: inline-size; }
.hub-group .bp-stat { flex-wrap: nowrap; align-items: center; padding: 0.7rem; }
.hub-group .bp-stat .hub-item-txt { flex-basis: auto; order: 0; }
.hub-group .bp-stat .hub-item-ico { order: 0; }
.hub-group .sheet-empty + .news-group, .bp-list + .news-group { margin-top: 0.9rem; }
.hub-group .news-group { font-family: var(--mono); letter-spacing: 0.1em; }
.hub-items.bp-links { margin-bottom: 0.7rem; }
/* Mobile : styles.css bloque le défilement de la page (le simulateur fait défiler ses onglets lui-même) ; les pages cartes défilent normalement */
@media (max-width: 768px) {
  html.bp-html, html.bp-html body { overflow-x: hidden; overflow-y: auto; height: auto; }
}
/* Un seul cadre par liste (au lieu d'un cadre par ligne) */
.news-list.bp-list { gap: 0; padding: 0.3rem 0; border-radius: 12px; background: color-mix(in srgb, var(--surface2) 70%, transparent); border: 1px solid var(--border); }
.news-list.bp-list li { background: none; border: 0; border-radius: 0; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.news-list.bp-list li::before { top: 0.95em; }
/* Tableau des slots : cellules centrées verticalement quand les remarques passent sur plusieurs lignes */
.bp-table th, .bp-table td { vertical-align: middle; }
.bp-table thead th { vertical-align: bottom; }
/* En bref : la dernière tuile prend toute la largeur quand leur nombre est impair */
.bp-stats > .bp-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Survol des tuiles « slots PCIe » / « slots M.2 » : les slots correspondants s'allument sur le schéma */
.bp-diag-wrap { position: relative; }
.bp-hl { position: absolute; border-radius: 3px; pointer-events: none; opacity: 0; transition: opacity .15s;
  outline: 2px solid var(--hl); outline-offset: 2px; background: color-mix(in srgb, var(--hl) 35%, transparent); box-shadow: 0 0 12px var(--hl); }
.bp-hl-cpu { --hl: var(--cpu-color, #3b82f6); }
.bp-hl-chipset { --hl: var(--chipset-color, #a855f7); }
.bp-legend { display: flex; justify-content: center; gap: 0.9rem; margin-bottom: 0.35rem; }
.bp-leg { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; color: var(--text2); }
.bp-leg::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--c); box-shadow: 0 0 6px var(--c); }
.bp-leg-cpu { --c: var(--cpu-color, #3b82f6); }
.bp-leg-chipset { --c: var(--chipset-color, #a855f7); }
.bp-stat-pcie, .bp-stat-m2 { cursor: help; }
.bp-grid:has(.bp-stat-pcie:hover) .bp-hl-pcie,
.bp-grid:has(.bp-stat-m2:hover) .bp-hl-m2 { opacity: 1; }
.hub-group .bp-stat-pcie:hover, .hub-group .bp-stat-m2:hover { border-color: color-mix(in srgb, var(--h) 60%, var(--border)); background: color-mix(in srgb, var(--h) 8%, var(--surface2)); }
