/* =====================================================================
   INDEX GLYCÉMIQUE — ESPACEMENT DES TABLEAUX
   Feuille propre à cette fiche : aucun effet sur les autres pages.
   ===================================================================== */
#content .n-table-wrap { margin-bottom: 1.25rem; }
#content .n-table-wrap + p { margin-top: 1.25rem; }

/* =====================================================================
   RECHERCHE — champs et résultats, ordinateur et téléphone
   ===================================================================== */
.ig-search-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; padding:1.25rem; margin:1.5rem 0; border:1px solid #d4e3d8; border-radius:1rem; background:#f1f7f3; }
.ig-search-controls[hidden], .ig-search [hidden] { display:none !important; }
.ig-search-controls label { display:flex; flex-direction:column; gap:.45rem; font-weight:700; }
.ig-search-controls input, .ig-search-controls select { width:100%; min-height:46px; padding:.7rem; border:1px solid #a9beb0; border-radius:.55rem; background:#fff; color:#173629; font:inherit; box-sizing:border-box; }
.ig-search-controls input:focus-visible, .ig-search-controls select:focus-visible { outline:3px solid #267748; outline-offset:2px; }
.ig-search-controls button { justify-self:start; }
.ig-result-count { font-weight:700; }
#content .ig-search-table { width:100%; max-height:680px; overflow:auto; }
.ig-search-table table { width:100%; }
.ig-search-table thead th { position:sticky; top:0; z-index:1; background:#e7f1e9; }
.ig-search-table th, .ig-search-table td { vertical-align:top; }
.ig-badge { display:inline-block; padding:.25rem .6rem; border-radius:2rem; font-size:.85em; font-weight:700; white-space:nowrap; }
.ig-badge--low { background:#ddefdf; color:#18552b; }
.ig-badge--medium { background:#fff0c8; color:#705100; }
.ig-badge--high { background:#fbe0dd; color:#8a3026; }
.ig-badge--unknown, .ig-badge--not-applicable { background:#edf0f3; color:#465362; }
.ig-search-note { margin-top:1.25rem; font-size:.9em; line-height:1.65; }
.ig-empty { padding:1rem; border-radius:.65rem; background:#f1f7f3; }
@media (max-width:700px) {
  .ig-search-controls { grid-template-columns:minmax(0,1fr); padding:1rem; }
  #content .ig-search-table { max-height:620px; }
  .ig-search-table thead th { position:static; }
}
