/* Guide S23 « Que lisent les IA sur votre fiche produit ? » : matrice du test, code source annoté, outil.
   Feuille propre à cette page, pour ne pas changer la version de charts.css sur les autres articles. */

/* outil : deux parties */
.lf-part { margin-top: 0.4rem; }
.lf-part + .diag-out, .diag-out + .lf-part { margin-top: 1.1rem; }
.lf-part-title { font-weight: 720; font-size: 1.0625rem; margin: 0 !important; }
.lf-hint { margin: 0 !important; }
.lf-msgbox { margin-top: 1rem; }
.lf-msgbox .outil-saisie { min-height: 14rem; }
[data-lf-robots-out]:empty { display: none; }

/* matrice : huit prix, cinq IA */
.lf-scroll { overflow-x: auto; margin: 0.4rem 0 0.8rem; -webkit-overflow-scrolling: touch; }
.lf-matrix { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.875rem; line-height: 1.3; font-variant-numeric: lining-nums tabular-nums; }
.lf-matrix th, .lf-matrix td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.lf-matrix thead th { font-size: 0.8125rem; font-weight: 640; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.lf-matrix tbody th, .lf-matrix tfoot th, .lf-matrix thead th:first-child { text-align: left; font-weight: 620; color: var(--ink); }
.lf-matrix td.lf-oui { background: #e3f3ee; color: #17694f; font-weight: 760; font-size: 1rem; }
.lf-matrix td.lf-non { color: #a29cb8; font-size: 1rem; }
.lf-matrix .lf-row--cache th, .lf-matrix .lf-row--cache td.lf-non { background: #fbe9e1; }
.lf-matrix .lf-row--cache td.lf-non { color: #b23b08; }
.lf-matrix tfoot th, .lf-matrix tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 0.55rem; }
.lf-matrix tfoot td { white-space: nowrap; }
.lf-matrix tfoot strong { font-size: 1.125rem; font-weight: 760; }
.lf-kind { display: inline-block; font-size: 0.6875rem; font-weight: 720; letter-spacing: 0.02em; padding: 0.05rem 0.4rem; border-radius: 999px; background: #fbf3d0; color: #6b5300; margin-left: 0.2rem; white-space: nowrap; }
.lf-kind--cache { background: #d9480f; color: #fff; }

/* code source annoté */
.prose .lf-code { list-style: none; padding: 0; margin: 0.4rem 0 0.8rem; }
.prose .lf-code > li { margin: 0; }
.lf-code { display: grid; gap: 0.6rem; }
.lf-line { display: grid; gap: 0.35rem; border-radius: 6px; padding: 0.6rem 0.7rem; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid #8e86a8; }
.lf-line code { display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.8125rem; line-height: 1.45; color: #2a2540; background: #f3f1fa; border-radius: 4px; padding: 0.4rem 0.55rem; overflow-wrap: anywhere; white-space: normal; }
.lf-why { margin: 0 !important; font-size: 0.9375rem; line-height: 1.4; }
.lf-tag { display: inline-block; font-size: 0.75rem; font-weight: 720; padding: 0.08rem 0.5rem; border-radius: 999px; margin-right: 0.45rem; background: #eceaf2; color: var(--ink-soft); }
.lf-line--ok { border-left-color: #1f8a70; }
.lf-line--ok .lf-tag { background: #1f8a70; color: #fff; }
.lf-line--warn { border-left-color: #b08900; }
.lf-line--warn .lf-tag { background: #fbf3d0; color: #6b5300; }
.lf-line--ko { border-left-color: #d9480f; background: #fdf3ee; }
.lf-line--ko .lf-tag { background: #d9480f; color: #fff; }
@media (min-width: 46rem) {
  .lf-line { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
}
