/* Page « Infographies » : mise en page des onglets (28 oct. 2026), sur le modèle de chiffres-cles.html.
   Les cartes sont les .ls-bloc du site (fond blanc, filet, titre et trait doré) ; ce fichier ne fait que les ranger :
   deux colonnes quand c'est utile, de l'air entre les blocs. Rangement : js/infographies-mep.js. */
html body[data-page="infographies"] .ig-intro { max-width: 52rem; }

/* Onglets « document » : chiffres clés et lien à gauche, pages à droite */
html body[data-page="infographies"] .ig-doc__grille { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
html body[data-page="infographies"] .ig-doc__gauche { display: grid; gap: 1.2rem; align-content: start; min-width: 0; }
html body[data-page="infographies"] .ig-doc__gauche .ls-tuiles { grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 0; }
html body[data-page="infographies"] .ig-doc__orig .proto-texte { margin: 0; }
html body[data-page="infographies"] .ig-doc__orig .fi-officiel { margin: .2rem 0 .9rem; }
html body[data-page="infographies"] .ig-doc__orig .ls-note { margin: 0; font-size: .78rem; line-height: 1.55; color: var(--texte-n2); }
@media (min-width: 1000px) {
  html body[data-page="infographies"] .ig-doc__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  html body[data-page="infographies"] .ig-doc__grille--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html body[data-page="infographies"] .ig-doc__gauche { position: sticky; top: 1rem; }
}
html body[data-page="infographies"] .graphiques.ig-pages { display: grid; gap: 1rem; margin: .4rem 0 0; grid-template-columns: 1fr; }
html body[data-page="infographies"] .graphiques.ig-pages--2 { grid-template-columns: 1fr 1fr; }
html body[data-page="infographies"] .graphiques.ig-pages--3 { grid-template-columns: repeat(3, 1fr); }
html body[data-page="infographies"] .ig-pages figure { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html body[data-page="infographies"] .ig-pages figure a { display: block; overflow: hidden; border: 1px solid #e3e7ef; background: #fff; transition: border-color var(--transition, 200ms ease); }
html body[data-page="infographies"] .ig-pages figure a:hover { border-color: var(--dore, #c9a35b); }
html body[data-page="infographies"] .ig-pages img { display: block; width: 100%; height: auto; }
html body[data-page="infographies"] .ig-pages figcaption { margin: .45rem 0 0 !important; font-size: .72rem !important; text-align: center; }

/* Onglets « chiffres » : un thème = un titre, ses chiffres clés, puis ses cartes deux par deux */
html body[data-page="infographies"] .ig-theme { margin: 3.2rem 0 0; padding: 0; }
html body[data-page="infographies"] .ig-intro + .ig-theme { margin-top: 2rem; }
html body[data-page="infographies"] .ig-theme > h2.ig-theme__titre { margin: 0 !important; font-size: 1.35rem !important; }
html body[data-page="infographies"] .ig-theme > .ls-lead { max-width: 52rem; margin: .7rem 0 1.2rem; }
html body[data-page="infographies"] .ig-theme > .ls-tuiles { gap: 1.2rem; margin: 0 0 1.2rem; }
html body[data-page="infographies"] .ig-grille { display: grid; gap: 1.2rem; }
@media (min-width: 900px) {
  html body[data-page="infographies"] .ig-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  html body[data-page="infographies"] .ig-grille > .ig-large { grid-column: 1 / -1; }
}
html body[data-page="infographies"] .ig-carte, html body[data-page="infographies"] .ig-comp { min-width: 0; margin: 0 !important; }
html body[data-page="infographies"] .ig-carte > .ls-lead { margin: .5rem 0 1rem; }
html body[data-page="infographies"] .ig-carte .ig-source { margin: 1rem 0 0 !important; padding-top: .7rem; border-top: 1px solid var(--trait-n, #e3e5eb); font-size: .68rem !important; line-height: 1.5; color: var(--texte-n2); }
html body[data-page="infographies"] .ig-carte .n-rangs { margin: 0; }
html body[data-page="infographies"] .ig-carte .ls-graph, html body[data-page="infographies"] .ig-carte .cc-cam { margin: 0; }
html body[data-page="infographies"] .n-rangs.ig-replie > .n-rang:nth-child(n+9) { display: none; }
html body[data-page="infographies"] .ig-plus { margin: .8rem 0 0; padding: .35rem .8rem; border: 1px solid var(--nuit); background: #fff; font: 700 .76rem var(--titre); color: var(--nuit); cursor: pointer; }
html body[data-page="infographies"] .ig-plus:hover { background: var(--nuit); color: #fff; }
html body[data-page="infographies"] .ig-comp { border-top: 3px solid var(--dore, #c9a35b) !important; }
html body[data-page="infographies"] .ig-comp__txt { margin: .7rem 0 0; font-size: .92rem; line-height: 1.6; color: #2b3242; }
html body[data-page="infographies"] .ig-pied { margin-top: 3rem; }
@media (max-width: 600px) {
  html body[data-page="infographies"] .ig-theme { margin-top: 2.4rem; }
  html body[data-page="infographies"] .ig-doc__gauche .ls-tuiles, html body[data-page="infographies"] .ig-theme > .ls-tuiles { grid-template-columns: 1fr 1fr; gap: .7rem; }
  html body[data-page="infographies"] .graphiques.ig-pages--3 { grid-template-columns: 1fr 1fr; }
}

/* Téléphone : les 7 onglets visibles d'un coup, sur deux colonnes (au lieu d'une barre qui défile) */
@media (max-width: 700px) {
  html body[data-page="infographies"] .ls-onglets { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible !important; }
  html body[data-page="infographies"] .ls-onglets button { white-space: normal; text-align: left; }
}

/* 28 oct. 2026 (demande) : onglets moins gros, et de l'air entre les blocs blancs d'un onglet */
html body[data-page="infographies"] .ls25 .ls-onglets.ls-onglets--haut { margin-bottom: 1.4rem; }
html body[data-page="infographies"] .ls25 .ls-onglets.ls-onglets--haut button { padding: .65rem 1rem .6rem; font-size: .82rem; }
:where(html body[data-page="infographies"] .ls-vue > * + *) { margin-top: 1.4rem; }
/* 28 oct. 2026 (demande) : légende des barres de répartition sur une seule ligne, aussi sur téléphone */
@media (max-width: 700px) {
  html body[data-page="infographies"] .ls25 .ls-vue .n-repart__leg { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)) !important; gap: .4rem; }
  html body[data-page="infographies"] .ls25 .ls-vue .n-repart__nom { font-size: .6rem !important; letter-spacing: 0; }
  html body[data-page="infographies"] .ls25 .ls-vue .n-repart__val { font-size: .9rem !important; white-space: nowrap; }
}
