/* VITAMINES ET MINÉRAUX — composants communs de la rubrique. */
.nutrient-page { --n-ink: #164a36; --n-soft: #f0f5eb; --n-line: #dce6d8; width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 64px; }
.nutrient-page *, .nutrient-page *::before, .nutrient-page *::after { box-sizing: border-box; }
.nutrient-page :is(h1,h2,h3) { color: var(--n-ink); text-align: left; text-wrap: balance; }
.nutrient-page h1 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; margin: 12px 0 22px; }
.nutrient-page h2 { font-size: clamp(27px, 2.4vw, 36px); line-height: 1.2; margin: 0 0 22px; }
.nutrient-page h3 { font-size: 25px; line-height: 1.25; margin: 0 0 14px; }
.nutrient-page p { margin: 0 0 18px; }
.nutrient-page a { text-underline-offset: 4px; }
.nutrient-page a:focus-visible, .nutrient-page summary:focus-visible { outline: 3px solid #bc852d; outline-offset: 4px; }
.n-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.n-breadcrumb a { color: #536657; }
.n-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 44px; padding: 32px; border-radius: 26px; border: 1px solid var(--n-line); background: linear-gradient(115deg,#f1f6ee,#faf9f4); }
.n-hero figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 12px; background: white; }
.nutrient-page img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: contain; border-radius: 12px; }
.nutrient-page .n-eyebrow { font: 700 12px/1.6 system-ui,sans-serif !important; letter-spacing: .12em; text-transform: uppercase; color: #56704d; margin: 0 0 12px; }
.n-lead { font-size: 19px; }
.n-button { display: inline-flex; align-items: center; gap: 16px; background: #087747; color: white; border-radius: 999px; padding: 12px 22px; min-height: 46px; text-decoration: none; font-weight: 700; }
.nutrient-page .n-button:hover { background: #055c35 !important; color: #fff !important; border-color: #055c35 !important; }
.n-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 48px; }
.n-jump a { padding: 10px 16px; min-height: 44px; border: 1px solid var(--n-line); border-radius: 999px; color: var(--n-ink); text-decoration: none; font-size: 15px; background: #fff; }
.n-jump a:hover { background: var(--n-soft); }
.n-section { margin: 60px 0; scroll-margin-top: 24px; }
.n-band { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 36px; margin: 60px 0; border-radius: 24px; border: 1px solid var(--n-line); background: var(--n-soft); scroll-margin-top: 24px; }
.n-duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.n-duo article { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--n-line); }
.n-duo article p:last-child { margin-bottom: 0; }
.n-chip { display: inline-block; margin-bottom: 18px; padding: 6px 11px; border-radius: 999px; background: #f0f5e8; font-size: 14px; color: var(--n-ink); }
.n-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 30px; }
.n-card { display: grid; grid-template-columns: 40% minmax(0,1fr); gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--n-line); border-radius: 20px; box-shadow: 0 10px 30px #29452c06; }
.n-card h3 a { color: var(--n-ink); text-decoration: none; }
.n-media { display: block; overflow: hidden; border-radius: 12px; }
.n-card:first-child { grid-column: 1 / -1; grid-template-columns: 46% minmax(0,1fr); background: #faf7ee; padding: 28px; }
.n-card:last-child { grid-column: 1 / -1; }
.n-text-link { font-size: 15px; font-weight: 700; color: #087747; }
.n-b-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.n-b-list a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--n-line); text-decoration: none; color: var(--n-ink); font-size: 15px; }
.n-b-list a > span:last-child { margin-left: auto; }
.n-b-list strong { min-width: 34px; }
.n-role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.n-role-grid article { border-top: 2px solid #a5c49a; padding: 22px 6px; }
.n-role-grid article > span { display: block; color: #698860; font: 20px Georgia,serif; margin-bottom: 18px; }
.n-table-wrap { overflow-x: auto; border: 1px solid var(--n-line); border-radius: 16px; }
.nutrient-page table { width: 100%; margin: 0; border-collapse: collapse; font-size: 16px; }
.nutrient-page caption { text-align: left; background: #f3f6f0; padding: 18px; font-weight: 700; }
.nutrient-page :is(th,td) { padding: 16px; border: 0; border-bottom: 1px solid var(--n-line); text-align: left; vertical-align: top; }
.nutrient-page thead { background: #e5efdf; }
.nutrient-page th { color: var(--n-ink); }
.n-numbers strong { display: block; font: 48px/1.2 Georgia,serif; color: #087747; margin-bottom: 18px; }
.n-numbers small { display: block; font: 15px/1.5 system-ui,sans-serif; }
.n-numbers h3 { font-size: 21px; }
.n-warning { padding: 30px; background: #fbf6e9; border-radius: 20px; border: 1px solid #e9dec0; }
.n-faq details { padding: 20px 0; border-bottom: 1px solid var(--n-line); }
.n-faq summary { cursor: pointer; font-size: 20px; color: var(--n-ink); font-weight: 600; }
.n-faq details p { margin: 18px 0 0; }
.n-related { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 28px; border: 1px solid var(--n-line); border-radius: 18px; }
.n-related h2 { width: 100%; font-size: 27px; margin-bottom: 0; }
.n-related a { color: #087747; font-weight: 650; }
.n-sources { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--n-line); }
.n-sources h2 { font-size: 23px; }
.n-sources :is(p,li) { font-size: 15px !important; }
.n-sources a { color: #486247; }
@media (max-width: 1100px) {
 .n-hero { gap: 26px; padding: 26px; }
 .n-band { grid-template-columns: 1fr; gap: 24px; }
 .n-card { grid-template-columns: 1fr; align-content: start; }
 .n-card:first-child { grid-template-columns: 1fr 1fr; }
 .n-card:last-child { grid-column: auto; }
}
@media (max-width: 700px) {
 .nutrient-page { width: calc(100% - 32px); padding-top: 12px; }
 .n-hero { grid-template-columns: 1fr; gap: 22px; padding: 18px; border-radius: 20px; }
 .n-hero h1 { font-size: 33px; }
 .n-jump { gap: 8px; margin-bottom: 32px; }
 .n-jump a { font-size: 14px; padding: 9px 13px; }
 .n-section,.n-band { margin: 38px 0; }
 .n-band { padding: 20px; }
 .n-duo,.n-catalog,.n-role-grid { grid-template-columns: 1fr; }
 .n-catalog .n-card,.n-catalog .n-card:first-child { grid-template-columns: 1fr; grid-column: auto; padding: 18px; }
 .n-b-list { grid-template-columns: 1fr; }
 .n-warning,.n-related { padding: 22px; }
 .nutrient-page table { min-width: 580px; }
 .n-numbers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .n-numbers article { padding: 16px; }
 .n-numbers strong { font-size: 40px; }
 .n-numbers h3 { font-size: 18px; }
}

/* Tableau : en-tête contrasté et lecture en fiches sur mobile. */
.nutrient-page thead th { background: #e5efdf !important; color: #164a36 !important; }
@media (max-width: 700px) {
 .nutrient-page table.mobile-table-cards { min-width: 0; width: 100%; }
 .nutrient-page table.mobile-table-cards thead { display: none; }
 .nutrient-page table.mobile-table-cards tbody { display: block; }
 .nutrient-page table.mobile-table-cards tr { display: block; padding: 14px; border-bottom: 1px solid var(--n-line); }
 .nutrient-page table.mobile-table-cards tr > :is(th,td) { display: block; width: 100%; padding: 8px 0; border: 0; }
 .nutrient-page table.mobile-table-cards td::before { display: block; color: #164a36; margin-bottom: 4px; }
}


/* Partage et cartes d’aliments : composants communs à la rubrique. */
.n-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nutrient-page .n-share { background: #fff !important; color: #087847 !important; border: 1px solid #087847 !important; border-radius: 11px !important; font: inherit; font-weight: 700; cursor: pointer; }
.nutrient-page .n-share:hover { background: #055c35 !important; color: #fff !important; border-color: #055c35 !important; }
.n-food-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; margin: 28px 0; }
.n-food-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 20px; border: 1px solid var(--n-line); border-radius: 20px; background: #fff; }
.n-food-media { display: block; width: 100%; margin-bottom: 20px; border-radius: 12px; overflow: hidden; }
.n-food-media img { width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: contain; }
.n-food-card h3 a { color: var(--n-ink); text-decoration: none; }
.n-food-card .n-food-form { width: 100%; margin: 6px 0 18px; padding: 10px 12px; background: #edf5ec; border-radius: 10px; color: #365b36; font-size: 14px !important; font-weight: 700; }
.n-food-card > p:not(.n-food-form) { font-size: 16px !important; }
.n-food-card > .n-text-link { margin-top: auto; padding-top: 12px; }
.n-food-note { font-size: 15px !important; color: #596a5c; }
@media (max-width: 1100px) { .n-food-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .n-food-grid { grid-template-columns: 1fr; } }

/* Apports de référence : deux colonnes, une colonne sur téléphone. */
.n-intake-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; margin: 28px 0; }
.n-intake { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-radius: 12px; border: 1px solid var(--n-line); background: #f0f6ed; }
.n-intake h3 { font-size: 18px; margin: 0; text-wrap: wrap; }
.n-intake p { margin: 0; flex-shrink: 0; text-align: right; }
.n-intake strong { font-size: 25px; color: #087747; }
.n-intake p span,.n-intake small { display: block; font-size: 13px; }
@media(max-width:700px) { .n-intake-grid { grid-template-columns: 1fr; } .n-intake { padding: 16px; gap: 12px; } }

/* Classements : listes ordonnées, chiffres alignés et liens vers les aliments. */
.n-ranking-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; align-items: start; margin: 30px 0; }
.n-ranking-panel { min-width: 0; padding: 26px; border: 1px solid var(--n-line); border-radius: 22px; background: #f6f9f3; }
.n-ranking-panel:nth-child(2) { background: #faf7ee; }
.n-ranking-panel > p { font-size: 16px !important; }
.n-ranking-panel .n-ranking-unit { font-size: 13px !important; font-weight: 700; color: #49614e; }
.n-ranking-list { list-style: none; padding: 0; margin: 22px 0 0; }
.n-ranking-list li { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 17px 0; margin: 0; border-top: 1px solid #dce6d8; }
.n-ranking-place { display: flex; justify-content: center; align-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: #456647; font: 700 14px/1 Arial,sans-serif; }
.n-ranking-list li:first-child .n-ranking-place { background: #087847; color: #fff; }
.n-ranking-list a { font-size: 16px; line-height: 1.45; color: #164a36; text-decoration: none; }
.n-ranking-list a:hover { text-decoration: underline; }
.n-ranking-list strong { text-align: right; font: 700 20px/1.3 Arial,sans-serif; color: #087847; }
.n-ranking-list small { display: block; font-size: 11px; font-weight: 400; color: #526454; }
.n-ranking-note { padding: 26px; border-radius: 18px; background: #f0f5eb; }
.n-ranking-note h3 { font-size: 23px; }
@media(max-width:900px) { .n-ranking-grid { grid-template-columns: 1fr; } }
@media(max-width:450px) { .n-ranking-panel,.n-ranking-note { padding: 18px; } .n-ranking-list li { grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; } .n-ranking-place { width: 26px; height: 28px; font-size: 12px; } .n-ranking-list a { font-size: 14px; } .n-ranking-list strong { font-size: 17px; } }

/* Précautions : respiration entre les cartes et la note de synthèse. */
.nutrient-page .n-warning .n-duo { margin-block: 30px 0; gap: 24px; }
.nutrient-page .n-warning .n-duo article { padding: 28px; }
body #content.nutrient-page .n-precaution-note { margin-top: 26px !important; margin-bottom: 0 !important; font-size: 16px !important; line-height: 1.65 !important; }
@media(max-width:700px) { .nutrient-page .n-warning .n-duo { gap: 18px; margin-top: 24px; } .nutrient-page .n-warning .n-duo article { padding: 22px; } body #content.nutrient-page .n-precaution-note { font-size: 15px !important; margin-top: 22px !important; } }

/* Libellés des tableaux de comparaison sur téléphone. */
@media(max-width:700px) { .nutrient-page table.mobile-table-cards td[data-label]::before { content: attr(data-label); font-weight: 700; font-size: 13px; } }

/* =====================================================================
   EXPLICATIONS PÉDAGOGIQUES — COMPOSANTS COMMUNS AUX NUTRIMENTS
   ===================================================================== */

.n-explained .n-quick-summary {
  padding: 34px;
  border: 1px solid #dbe4d4;
  border-radius: 24px;
  background: linear-gradient(115deg, #f0f6ec, #fbf8ee);
}

.n-explained :is(.n-quick-grid, .n-explain-grid, .n-mechanism-grid, .n-b-explain) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 28px;
}

.n-explained :is(.n-quick-grid, .n-explain-grid, .n-mechanism-grid, .n-b-explain) > article {
  min-width: 0;
  padding: 26px;
  border: 1px solid #dce5d6;
  border-radius: 18px;
  background: #fff;
}

.n-explained .n-explain-grid > article {
  border: 0;
  border-top: 2px solid #a5c49a;
  border-radius: 0;
  padding-inline: 8px;
}

.n-explained .n-explain-grid > article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.n-explained :is(.n-quick-grid, .n-explain-grid, .n-mechanism-grid, .n-b-explain) h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 23px;
  line-height: 1.3;
}

.n-explained .n-chip { margin-bottom: 20px; }

.n-explained .n-explain-key {
  margin-top: 28px;
  padding: 24px 28px;
  border-left: 4px solid #ad8342;
  border-radius: 0 14px 14px 0;
  background: #f8f5e9;
}

.n-explained .n-explain-purpose {
  padding: 18px 20px;
  border-radius: 12px;
  background: #f1f6ed;
}

.n-explained .n-learning-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 0;
  margin: 30px 0;
  list-style: none;
  counter-reset: learning;
}

.n-explained .n-learning-steps > li {
  min-width: 0;
  padding: 26px;
  background: #f1f6ed;
  border-radius: 18px;
  counter-increment: learning;
}

.n-explained .n-learning-steps > li::before {
  content: "0" counter(learning);
  display: block;
  margin-bottom: 20px;
  color: #698860;
  font: 32px Georgia, serif;
}

.n-explained .n-learning-steps h3 { font-size: 23px; line-height: 1.3; }

@media (max-width: 1024px) {
  .n-explained .n-learning-steps { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .n-explained .n-quick-summary { padding: 22px 18px; }
  .n-explained :is(.n-quick-grid, .n-explain-grid, .n-mechanism-grid, .n-b-explain) {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .n-explained :is(.n-quick-grid, .n-mechanism-grid, .n-b-explain) > article { padding: 22px 18px; }
  .n-explained .n-explain-grid > article:last-child:nth-child(odd) { grid-column: auto; }
  .n-explained .n-explain-key { padding: 22px 20px; }
  .n-explained .n-learning-steps > li { padding: 22px 18px; }
}

/* =====================================================================
   GUIDE DES VITAMINES — CARTES LISIBLES SUR ORDINATEUR
   ===================================================================== */

@media (min-width: 1025px) {
  .n-explained :is(#explorer, #fiches) .n-catalog { gap: 30px; }
  .n-explained :is(#explorer, #fiches) .n-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px;
  }
  .n-explained :is(#explorer, #fiches) .n-media img {
    width: 100%;
    height: 235px;
    object-fit: contain;
  }
  .n-explained :is(#explorer, #fiches) .n-card > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  .n-explained :is(#explorer, #fiches) .n-card .n-text-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;
  }
  .n-explained :is(#explorer, #fiches) .n-card:is(:first-child, :last-child) {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 40px;
    padding: 32px;
  }
}

/* Les fiches à trois mécanismes donnent toute la largeur au dernier. */
.n-explained .n-mechanism-grid > article:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .n-explained .n-mechanism-grid > article:last-child:nth-child(odd) { grid-column: auto; }
}

/* MOBILE — mêmes deux boutons alignés que les autres rubriques. */
@media (max-width: 700px) {
  body #content .n-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  body #content .n-actions > .n-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 56px;
    height: auto;
    margin: 0;
    padding: 12px 8px;
    box-sizing: border-box;
    font: 700 14px/1.35 Arial, sans-serif;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body #content .n-actions svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
}

/* Boutons rectangulaires comme ceux de l’accueil, sur tous les écrans. */
body #content .n-button,
body #content .n-jump a {
  border-radius: 11px !important;
}
