@charset "UTF-8";
/* ============================================================================
   /IG/ : feuille commune (page outil et fiches d'aliments).
   Ecrite a la main, jamais generee. Chargee par chaque page avec ?v=VERSION_ASSETS,
   empreinte du contenu calculee par tools/ig/build.mjs : relancer le build apres
   toute modification (le front IONOS cache css et js 7 jours).

   La page outil ajoute sa propre feuille, IG/css/ig-outil.css, pour ce qui n'est
   qu'a elle (simulateur, graphique interactif, liste de recherche). Tout ce qui
   sert aux deux se trouve ici : jetons, coque du site (ml-), titres, separateur,
   cartes, encart gris, pastilles de classe, boutons, champs, puces, tableau dans
   une boite qui defile, details de FAQ, fil d'Ariane, focus, fiches (ig-fiche).

   DA du site (muscles-par-sport/css/app.css) : Roboto, titres #333 en 300 avec la
   partie forte en 700, texte #666, accent #007bff, liens #0056b3, barre bleue sous
   les titres, cartes blanches ombrees, encarts gris, pied sombre.

   Ordre : 1 jetons, 2 reset, 3 coque du site, 4 titres et texte, 5 composants
   communs, 6 fiche d'aliment, 7 telephone, 8 impression, 9 mouvement reduit.
   ========================================================================= */

/* ---------------------------------------------------------------------------
   1. Jetons
   --------------------------------------------------------------------------- */
:root {
  /* Couleurs du site */
  --ig-fond: #ffffff;
  --ig-fond-doux: #f6f7f9;
  --ig-fond-sombre: #1c1c1c;
  --ig-texte: #666666;
  --ig-titre: #333333;
  --ig-texte-fort: #333333;
  --ig-texte-sur-sombre: #bbbbbb;
  --ig-filet: #e9e9e9;
  --ig-accent: #007bff;
  --ig-accent-fort: #0062cc;
  --ig-accent-survol: #004a99;
  --ig-lien: #0056b3;
  --ig-accent-doux: #eaf2ff;
  --ig-controle: #767676;
  --ig-focus: #007bff;
  --ig-alerte: #a2261a;

  /* Pastilles de classe (texte toujours present, jamais la couleur seule) */
  --ig-bas-fond: #e3f4e9;
  --ig-bas-texte: #1b6b3a;
  --ig-moyen-fond: #fff1d6;
  --ig-moyen-texte: #8a4b00;
  --ig-eleve-fond: #fde4e1;
  --ig-eleve-texte: #a2261a;
  --ig-aucun-fond: #eceef1;
  --ig-aucun-texte: #3a4350;
  /* Remplissages des barres et de la jauge (objets graphiques, 3:1 sur blanc) */
  --ig-bas-barre: #2f8a50;
  --ig-moyen-barre: #b36b00;
  --ig-eleve-barre: #c0392b;

  /* Courbes des fiches (meme grammaire que le simulateur) : reference sans les gestes en
     pointilles gris, scenario conseille en trait plein bleu */
  --ig-courbe-a: #6b6b6b;
  --ig-courbe-b: #0062cc;
  --ig-fenetre: #dcefe2;
  --ig-fenetre-bord: #b9d9c3;

  /* Typographie */
  --ig-police: Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ig-corps: 16px;
  --ig-corps-grand: 17px;
  --ig-petit: 14px;

  /* Espacements */
  --ig-esp-1: 4px;
  --ig-esp-2: 8px;
  --ig-esp-3: 12px;
  --ig-esp-4: 16px;
  --ig-esp-5: 24px;
  --ig-esp-6: 32px;
  --ig-esp-7: 48px;
  --ig-gouttiere: 16px;
  --ig-conteneur: 1140px;
  --ig-cible: 44px;

  /* Rayons et ombres */
  --ig-rayon-s: 4px;
  --ig-rayon-m: 8px;
  --ig-rayon-pastille: 12px;
  --ig-rayon-carte: 8px;
  --ig-ombre-barre: 0 2px 3px rgba(0, 0, 0, 0.1);
  --ig-ombre-carte: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

  /* Coque : barre fixe de 56 px au telephone, 80 px des 768 px */
  --ig-barre-h: 56px;
  --ig-transition: 0.3s ease-in-out;
}

@media (min-width: 768px) {
  :root {
    --ig-barre-h: 80px;
    --ig-gouttiere: 24px;
  }
}

/* ---------------------------------------------------------------------------
   2. Reset et couche document
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-padding-top: calc(var(--ig-barre-h) + var(--ig-esp-4)); }

body {
  margin: 0;
  background: var(--ig-fond);
  color: var(--ig-texte);
  font-family: var(--ig-police);
  font-size: var(--ig-corps);
  font-weight: 300;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

::selection { background: #000; color: #fff; }

[id] { scroll-margin-top: calc(var(--ig-barre-h) + var(--ig-esp-4)); }

img, svg { max-width: 100%; }
img { height: auto; }

p { margin: 0 0 var(--ig-esp-4); }
ul, ol { margin: 0 0 var(--ig-esp-4); }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

a {
  color: var(--ig-lien);
  transition: color var(--ig-transition), background-color var(--ig-transition), border-color var(--ig-transition);
}
a:hover, a:focus { color: var(--ig-titre); }

/* Anneau de focus : le site pose outline: none ailleurs, on le force ici. */
:focus-visible {
  outline: 3px solid var(--ig-focus) !important;
  outline-offset: 2px !important;
}

/* Classes pour le portier JavaScript : `no-js` est retire par un script du head. */
.ig-sans-js { display: none; }
html.no-js .ig-sans-js { display: block; }
html.no-js .ig-necessite-js { display: none !important; }

.ml-visually-hidden,
.ig-visuel-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   3. Coque du site (espace de noms ml-, identique a celle de muscles-par-sport)
   --------------------------------------------------------------------------- */
.ml-skiplink {
  position: absolute;
  left: var(--ig-esp-2);
  top: -80px;
  z-index: 10000;
  padding: var(--ig-esp-3);
  background: var(--ig-fond-sombre);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--ig-transition);
}
.ml-skiplink:focus { top: var(--ig-esp-2); color: #fff; }

.ml-header { height: var(--ig-barre-h); background: var(--ig-fond); }

.ml-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  height: var(--ig-barre-h);
  background: var(--ig-fond);
  box-shadow: var(--ig-ombre-barre);
}

.ml-container {
  width: 100%;
  max-width: var(--ig-conteneur);
  margin: 0 auto;
  padding: 0 var(--ig-gouttiere);
}

.ml-bar .ml-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ig-esp-3);
}

.ml-logo { display: inline-flex; align-items: center; }
.ml-logo img { max-height: calc(var(--ig-barre-h) - var(--ig-esp-3)); width: auto; }

.ml-nav { display: flex; align-items: center; }
.ml-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--ig-cible);
  padding: 0 var(--ig-esp-4);
  color: var(--ig-texte);
  font-size: var(--ig-petit);
  font-weight: 900;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.ml-nav__link:hover,
.ml-nav__link:focus,
.ml-nav__link[aria-current] { color: var(--ig-titre); }

/* La barre bleue sous un titre (signature .custom-separator du site). */
.ml-separator {
  width: 5rem;
  height: 6px;
  margin: var(--ig-esp-4) 0 var(--ig-esp-5);
  border-radius: var(--ig-esp-4);
  background: var(--ig-accent);
}

.ml-footer {
  margin-top: var(--ig-esp-7);
  padding: 48px 0 16px;
  background: var(--ig-fond-sombre);
  color: var(--ig-texte-sur-sombre);
  font-size: var(--ig-petit);
}
.ml-footer a { color: var(--ig-texte-sur-sombre); text-decoration: underline; }
.ml-footer a:hover, .ml-footer a:focus { color: #fff; }
.ml-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ig-esp-2) var(--ig-esp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ml-footer__links a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--ig-cible); min-height: var(--ig-cible); }
.ml-legal { margin: var(--ig-esp-3) 0 0; font-size: var(--ig-petit); text-align: start; }
.ml-footer ::selection { background: #fff; color: #000; }

/* Encart publicitaire : les regles vitales (hauteur reservee, ads-off, unfilled) sont EN LIGNE
   dans chaque page (gabarit.mjs, test P9). Rien a ajouter ici. */

/* ---------------------------------------------------------------------------
   4. Titres et texte
   --------------------------------------------------------------------------- */
main { display: block; }
main:focus { outline: none; }

.ig-page { padding-top: var(--ig-esp-3); }

h1, h2, h3 {
  margin: 0 0 var(--ig-esp-4);
  color: var(--ig-titre);
  font-family: inherit;
  font-weight: 300;
}
h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.12; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.2; }
h1 b, h1 strong, h2 b, h2 strong, h3 b, h3 strong { font-weight: 700; }

.ig-petit { font-size: var(--ig-petit); }
.ig-petit, figcaption .ig-petit { font-weight: 400; }

@media (min-width: 768px) {
  body { font-size: var(--ig-corps-grand); }
}

/* ---------------------------------------------------------------------------
   5. Composants communs (page outil et fiches)
   --------------------------------------------------------------------------- */

/* 5.1 Fil d'Ariane */
.ig-ariane { margin: 0 0 var(--ig-esp-4); font-size: var(--ig-petit); font-weight: 400; color: var(--ig-titre); }
.ig-ariane ol { display: flex; flex-wrap: wrap; gap: 0 var(--ig-esp-2); margin: 0; padding: 0; list-style: none; }
.ig-ariane__item { display: inline-flex; align-items: center; }
.ig-ariane__item + .ig-ariane__item::before { content: "\203A"; margin-right: var(--ig-esp-2); color: var(--ig-controle); }
.ig-ariane a { display: inline-flex; align-items: center; min-height: var(--ig-cible); }

/* 5.2 Cartes, encart gris, avertissement */
.ig-carte {
  background: var(--ig-fond);
  border-radius: var(--ig-rayon-carte);
  box-shadow: var(--ig-ombre-carte);
  padding: var(--ig-esp-5);
}
.ig-encart {
  background: var(--ig-fond-doux);
  border-radius: var(--ig-rayon-m);
  padding: 20px 22px;
  font-size: var(--ig-petit);
  line-height: 1.5;
}
.ig-encart > :last-child { margin-bottom: 0; }
.ig-encart__titre { margin: 0 0 var(--ig-esp-2); font-size: 18px; font-weight: 500; line-height: 1.3; }
.ig-encart ul { margin: 0 0 var(--ig-esp-2); padding-left: 18px; }
.ig-encart--avertissement {
  border-left: 4px solid var(--ig-moyen-texte);
  background: #fff8ec;
  color: var(--ig-texte-fort);
}

/* 5.3 Pastilles de classe (texte « IG bas » toujours present) */
.ig-pastille {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ig-rayon-pastille);
  font-size: var(--ig-petit);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.ig-classe--bas { background: var(--ig-bas-fond); color: var(--ig-bas-texte); }
.ig-classe--moyen { background: var(--ig-moyen-fond); color: var(--ig-moyen-texte); }
.ig-classe--eleve { background: var(--ig-eleve-fond); color: var(--ig-eleve-texte); }
.ig-classe--aucun { background: var(--ig-aucun-fond); color: var(--ig-aucun-texte); }

/* Remplissages de barre par classe */
.ig-fond--bas { background: var(--ig-bas-barre); }
.ig-fond--moyen { background: var(--ig-moyen-barre); }
.ig-fond--eleve { background: var(--ig-eleve-barre); }

/* 5.4 Boutons : de vrais <button> ou <a>, 44 px de haut au moins */
.ig-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ig-esp-2);
  min-height: 48px;
  padding: 0 var(--ig-esp-5);
  border: 2px solid var(--ig-accent-fort);
  border-radius: var(--ig-rayon-s);
  background: var(--ig-fond);
  color: var(--ig-lien);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ig-bouton:hover, .ig-bouton:focus { background: var(--ig-accent-doux); color: var(--ig-accent-survol); }
.ig-bouton--plein { background: var(--ig-accent-fort); color: #fff; }
.ig-bouton--plein:hover, .ig-bouton--plein:focus { background: var(--ig-accent-survol); border-color: var(--ig-accent-survol); color: #fff; }
.ig-bouton--petit { min-height: var(--ig-cible); padding: 0 var(--ig-esp-4); font-size: 15px; }
.ig-bouton--discret { border-color: transparent; background: transparent; }
.ig-bouton[disabled], .ig-bouton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* 5.5 Champs de formulaire (16 px : pas de zoom automatique sur iOS) */
.ig-etiquette { display: block; margin: 0 0 var(--ig-esp-2); color: var(--ig-titre); font-size: 15px; font-weight: 500; }
.ig-champ {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--ig-controle);
  border-radius: var(--ig-rayon-s);
  background: var(--ig-fond);
  color: var(--ig-titre);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}
.ig-champ:hover { border-color: var(--ig-titre); }
select.ig-champ { padding-right: var(--ig-esp-2); }

/* 5.6 Puces (filtres a bascule : aria-pressed ou aria-checked) */
.ig-puces { display: flex; flex-wrap: wrap; gap: var(--ig-esp-2); }
.ig-puce {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ig-cible);
  padding: 0 var(--ig-esp-4);
  border: 2px solid var(--ig-controle);
  border-radius: 22px;
  background: var(--ig-fond);
  color: var(--ig-titre);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.ig-puce:hover { border-color: var(--ig-titre); }
.ig-puce[aria-pressed="true"],
.ig-puce[aria-checked="true"] { border-color: var(--ig-accent-fort); background: var(--ig-accent-fort); color: #fff; }

/* 5.7 Tableau dans une boite qui defile (indice visuel : ombre au bord qui cache encore des lignes,
   texte d'aide au telephone). Les caches blancs suivent le contenu (local), les ombres restent au bord
   de la boite (scroll) : arrive en bas, l'ombre du bas disparait. */
.ig-tableau-boite {
  position: relative;
  max-height: 70vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ig-filet);
  border-radius: var(--ig-rayon-m);
  background:
    linear-gradient(rgba(255, 255, 255, 0), #fff 70%) center bottom / 100% 28px no-repeat local,
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 24px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)) center bottom / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0)) left center / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0)) right center / 10px 100% no-repeat scroll,
    var(--ig-fond);
}
.ig-tableau { width: 100%; font-size: var(--ig-petit); line-height: 1.45; }
.ig-tableau th, .ig-tableau td { padding: 10px 12px; text-align: left; vertical-align: middle; }
/* Lignes compactes : le lien de l'aliment fait la hauteur de la ligne (44 px, la cible tactile). */
.ig-tableau tbody th, .ig-tableau tbody td { padding-top: 0; padding-bottom: 0; }
.ig-tableau thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ig-fond-doux);
  color: var(--ig-titre);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--ig-filet);
}
.ig-tableau tbody tr { border-top: 1px solid var(--ig-filet); }
.ig-tableau tbody tr:first-child { border-top: 0; }
.ig-tableau tbody th { color: var(--ig-titre); font-weight: 500; }
.ig-tableau td.ig-num, .ig-tableau th.ig-num { text-align: right; }
.ig-tableau a { display: inline-flex; align-items: center; min-height: var(--ig-cible); }
/* Le nom de l'aliment occupe toute sa cellule : cible large meme pour un nom court (« Thé »). */
.ig-tableau tbody th a { display: flex; }
.ig-indice-defilement { display: none; margin: var(--ig-esp-2) 0 0; color: var(--ig-texte); font-size: var(--ig-petit); font-weight: 400; }

/* 5.8 FAQ : details (la reponse est dans le HTML initial). Un chevron a droite dit que la question s'ouvre. */
.ig-faq { border-bottom: 1px solid var(--ig-filet); }
.ig-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ig-esp-4);
  min-height: var(--ig-cible);
  padding: var(--ig-esp-2) 0;
  color: var(--ig-titre);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.ig-faq summary::-webkit-details-marker { display: none; }
.ig-faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 6px 4px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ig-transition);
}
.ig-faq[open] > summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.ig-faq summary:hover { color: var(--ig-lien); }
.ig-faq p { margin: 0 0 var(--ig-esp-4); font-size: 15px; }

/* ---------------------------------------------------------------------------
   6. Fiche d'aliment (article.ig-fiche)
   --------------------------------------------------------------------------- */
.ig-fiche { padding-bottom: var(--ig-esp-4); }

/* Haut de page : titre, ouverture, carte « L'essentiel ». Au telephone la carte vient
   juste apres le titre, avant l'ouverture. */
.ig-haut {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "titre" "aside" "intro";
  gap: 0 48px;
}
.ig-haut__titre { grid-area: titre; }
.ig-haut__intro { grid-area: intro; margin-top: var(--ig-esp-5); }
.ig-essentiel { grid-area: aside; }
.ig-haut__titre .ml-separator { margin-bottom: var(--ig-esp-4); }

.ig-ouverture { font-size: var(--ig-corps-grand); font-weight: 300; line-height: 1.6; }
.ig-ouverture b { color: var(--ig-titre); font-weight: 500; }
.ig-remarque { font-size: 15px; }
.ig-remarque b { color: var(--ig-titre); font-weight: 500; }
.ig-meta { margin: 0; font-size: var(--ig-petit); font-weight: 400; }
/* Lien « N tests recensés » : cible de 44 px (critere 7 de la spec) */
.ig-meta a { display: inline-flex; align-items: center; min-height: var(--ig-cible); }

/* Carte « L'essentiel » */
.ig-essentiel {
  padding: 22px 22px 20px;
  border-radius: var(--ig-rayon-carte);
  background: var(--ig-fond);
  box-shadow: var(--ig-ombre-carte);
}
.ig-essentiel__titre {
  margin: 0 0 var(--ig-esp-3);
  font-size: var(--ig-petit);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.ig-essentiel__valeur { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ig-esp-2) var(--ig-esp-3); }
.ig-essentiel__etiquette { color: var(--ig-titre); font-size: 15px; font-weight: 500; }
.ig-essentiel__ig { color: var(--ig-titre); font-size: 56px; font-weight: 700; line-height: 1; }
.ig-jauge { display: block; width: 100%; height: auto; margin: var(--ig-esp-3) 0 var(--ig-esp-1); }
.ig-essentiel__liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ig-esp-2) var(--ig-esp-3);
  margin: var(--ig-esp-3) 0 0;
  font-size: 15px;
}
.ig-essentiel__liste dt { font-weight: 400; }
.ig-essentiel__liste dd { margin: 0; color: var(--ig-titre); font-weight: 400; text-align: right; }
.ig-essentiel__liste dd b { font-weight: 700; }
.ig-essentiel .ig-cta { display: flex; width: 100%; margin-top: var(--ig-esp-4); }
.ig-essentiel__echelle { margin: var(--ig-esp-3) 0 0; padding-top: var(--ig-esp-2); border-top: 1px solid var(--ig-filet); font-size: var(--ig-petit); font-weight: 400; line-height: 1.5; }
.ig-essentiel__echelle b { color: var(--ig-titre); font-weight: 700; }

/* Marque des valeurs indicatives (« ≈ 15 ») */
.ig-estime { margin-right: 2px; font-weight: 400; }
.ig-note-estime { margin: var(--ig-esp-3) 0 0; }

/* Variantes et substituts (« Selon la cuisson ») : tableau compact, defilement interne si besoin */
.ig-variantes__boite { max-width: 760px; margin: var(--ig-esp-4) 0 0; overflow-x: auto; }
.ig-variantes { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; }
.ig-variantes thead th:nth-child(1) { width: 46%; }
.ig-variantes thead th:nth-child(2) { width: 22%; }
.ig-variantes caption { padding: 0 0 var(--ig-esp-2); color: var(--ig-titre); font-size: 17px; font-weight: 500; text-align: left; }
.ig-variantes th, .ig-variantes td { padding: 6px var(--ig-esp-2); border-bottom: 1px solid var(--ig-filet); text-align: left; vertical-align: middle; }
.ig-variantes thead th { color: var(--ig-titre); font-size: var(--ig-petit); font-weight: 500; }
.ig-variantes tbody th { font-weight: 400; }
.ig-variantes tbody th a { display: inline-flex; align-items: center; min-height: var(--ig-cible); }
.ig-variantes tbody th span[aria-current] { display: inline-flex; align-items: center; min-height: var(--ig-cible); color: var(--ig-titre); font-weight: 700; }
.ig-variantes td { color: var(--ig-titre); white-space: nowrap; }
.ig-variantes td b { font-weight: 700; }
.ig-variantes__moi { background: var(--ig-fond-doux); box-shadow: inset 4px 0 0 var(--ig-titre); }

/* Blocs de contenu */
.ig-bloc { margin-top: var(--ig-esp-7); }
.ig-bloc > h2 { margin-bottom: var(--ig-esp-3); }
.ig-bloc > h2 + .ml-separator { margin-top: var(--ig-esp-3); }
.ig-bloc__intro { max-width: 760px; }
.ig-bloc.ig-encart { margin-top: var(--ig-esp-5); }

.ig-deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
.ig-deux > .ig-bloc:first-child { margin-top: var(--ig-esp-7); }

/* Courbe */
.ig-courbe { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ig-esp-4) 32px; align-items: center; margin: 0; }
.ig-courbe svg { display: block; width: 100%; max-width: 640px; height: auto; font-family: inherit; }
.ig-courbe figcaption { font-size: 15px; font-weight: 300; }
.ig-legende { display: flex; flex-direction: column; gap: var(--ig-esp-3); margin: 0 0 var(--ig-esp-3); padding: 0; list-style: none; }
.ig-legende__ligne { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.5; }
.ig-legende__ligne b { color: var(--ig-titre); font-weight: 500; }
.ig-legende__echantillon { display: block; width: 28px; margin-top: 11px; }
.ig-legende__echantillon--a { border-top: 4px dashed var(--ig-courbe-a); }
.ig-legende__echantillon--b { border-top: 4px solid var(--ig-courbe-b); }
.ig-legende__echantillon--zone { height: 14px; margin-top: 6px; border: 1px solid var(--ig-fenetre-bord); background: var(--ig-fenetre); }

/* Conseils (« Manger sans gros pic ») */
.ig-conseils { display: flex; flex-direction: column; gap: var(--ig-esp-3); margin: 0; padding: 0; list-style: none; }
.ig-conseil { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--ig-esp-3); align-items: start; font-size: 15px; line-height: 1.5; }
.ig-conseil b { color: var(--ig-titre); font-weight: 500; }
.ig-conseil__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ig-accent-doux);
  color: var(--ig-lien);
}

/* Comparaison dans la categorie : barres horizontales */
.ig-barres { display: flex; flex-direction: column; gap: var(--ig-esp-1); max-width: 760px; margin: 0; padding: 0; list-style: none; }
.ig-barres__ligne {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr) 48px;
  gap: var(--ig-esp-3);
  align-items: center;
  min-height: var(--ig-cible);
  padding: 0 var(--ig-esp-2);
  border-radius: var(--ig-rayon-s);
  font-size: 15px;
}
.ig-barres__nom { display: flex; align-items: center; min-height: var(--ig-cible); overflow-wrap: anywhere; font-weight: 400; line-height: 1.25; text-decoration: none; }
.ig-barres__nom:hover, .ig-barres__nom:focus { text-decoration: underline; }
.ig-barres__nom--moi { color: var(--ig-titre); font-weight: 700; }
.ig-barres__ligne--moi { background: var(--ig-fond-doux); box-shadow: inset 4px 0 0 var(--ig-titre); }
.ig-barres__piste { display: block; height: 14px; border-radius: 7px; background: #f1f1f1; }
.ig-barres__remplissage { display: block; height: 100%; border-radius: 7px; }
.ig-barres__valeur { color: var(--ig-titre); text-align: right; }

/* Alternatives a IG plus bas : trois cartes */
.ig-alternatives { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ig-esp-3); margin: 0; padding: 0; list-style: none; }
.ig-alternative {
  display: flex;
  flex-direction: column;
  gap: var(--ig-esp-1);
  padding: var(--ig-esp-4);
  border-radius: var(--ig-rayon-carte);
  background: var(--ig-fond);
  box-shadow: var(--ig-ombre-carte);
}
.ig-alternative__nom { display: inline-flex; align-items: center; min-height: var(--ig-cible); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.ig-alternative__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ig-esp-2); color: var(--ig-titre); }
.ig-alternative__ecart { font-size: var(--ig-petit); font-weight: 400; }

/* Voisins de categorie (aliments sans glucides) */
.ig-voisins { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--ig-esp-5); margin: 0; padding: 0; list-style: none; }
.ig-voisin { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--ig-esp-1) var(--ig-esp-3); min-height: var(--ig-cible); border-bottom: 1px solid var(--ig-filet); font-size: 15px; }
.ig-voisin a { display: inline-flex; align-items: center; min-height: var(--ig-cible); }
.ig-voisin span { font-size: var(--ig-petit); font-weight: 400; }

/* ---- Grands ecrans --------------------------------------------------------- */
@media (min-width: 640px) {
  .ig-alternatives { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ig-voisins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .ig-haut {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    grid-template-areas: "titre aside" "intro aside";
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .ig-haut__intro { margin-top: 0; }
  .ig-deux { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ig-deux--faq { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .ig-deux--faq > .ig-bloc.ig-encart { margin-top: var(--ig-esp-7); }
  .ig-courbe { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------------
   7. Telephone (390 px sans debordement, textes de 14 px au moins)
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .ml-logo img { max-height: 44px; }
  .ig-essentiel { padding: var(--ig-esp-4); }
  .ig-essentiel__ig { font-size: 48px; }
  .ig-bloc { margin-top: 36px; }
  .ig-deux > .ig-bloc:first-child { margin-top: 36px; }
  .ig-ouverture { font-size: var(--ig-corps); }
  .ig-barres__ligne { grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) 40px; gap: var(--ig-esp-2); padding: 0 4px 0 10px; font-size: var(--ig-petit); }
  .ig-barres__piste { height: 10px; }
  .ig-tableau-boite { max-height: 60vh; }
  .ig-indice-defilement { display: block; }
  /* Le SVG est dessine en 480 unites : sur 358 px ses graduations seraient a 10 px, on les grossit
     (19 unites, soit 14 px a l'ecran). */
  .ig-courbe svg text { font-size: 19px; }
  .ig-variantes { font-size: var(--ig-petit); }
  .ig-variantes th, .ig-variantes td { padding: 4px 6px; }
  .ig-variantes td { white-space: normal; }
  .ig-variantes thead th:nth-child(1) { width: 40%; }
  .ig-variantes thead th:nth-child(2) { width: 25%; }
}

/* ---------------------------------------------------------------------------
   8. Impression
   --------------------------------------------------------------------------- */
@media print {
  .ml-bar, .ml-skiplink, .ml-nav, .ml-footer__links, .ig-cta { display: none !important; }
  .ml-header { height: 0; }
  .ig-essentiel, .ig-alternative { box-shadow: none; border: 1px solid var(--ig-filet); }
  body { color: #000; }
}

/* ---------------------------------------------------------------------------
   9. Mouvement reduit
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
