/* Ressources de la fiche produit. Les liens restent accessibles sans JavaScript. */
#page_large .mc-product .mc-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

#page_large .mc-product .mc-resources > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #9aafbd;
  border-radius: 6px;
  background: #fff;
  color: #173d53;
  font: 600 14px/1.35 Arial, Helvetica, sans-serif;
  text-align: left;
  text-decoration: none;
}

#page_large .mc-product .mc-resources > a::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  clip-path: polygon(0 44%, 74% 44%, 45% 15%, 54% 6%, 98% 50%, 54% 94%, 45% 85%, 74% 56%, 0 56%);
}

#page_large .mc-product .mc-resources > a[href^="/pdf/"]::after {
  clip-path: polygon(44% 0, 56% 0, 56% 53%, 75% 34%, 84% 43%, 50% 77%, 16% 43%, 25% 34%, 44% 53%,
    44% 0, 0 0, 0 73%, 12% 73%, 12% 88%, 88% 88%, 88% 73%, 100% 73%, 100% 100%, 0 100%, 0 0);
}

#page_large .mc-product .mc-resources > a[href^="/assistant-sav/"] {
  background: #edf5f8;
  border-color: #80a1b3;
}

#page_large .mc-product .mc-resources > a:hover {
  border-color: #386580;
  background: #e4eff4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#page_large .mc-product .mc-resources > a:focus-visible,
#page_large .mc-product section.mp-category-advice > a:focus-visible {
  outline: 3px solid #1b648c;
  outline-offset: 2px;
}

/* La rubrique historique fixe max-width, margin et padding dans le HTML. */
#page_large .mc-product section.mp-category-advice {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px 24px !important;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

#page_large .mc-product section.mp-category-advice > h2 {
  margin: 0 0 7px;
  padding: 0;
  color: #17334b;
  font: 700 20px/1.3 Arial, Helvetica, sans-serif;
}

#page_large .mc-product section.mp-category-advice > p {
  max-width: 90ch;
  margin: 0 0 10px;
  color: #40566a;
  font: 400 15px/1.55 Arial, Helvetica, sans-serif;
}

#page_large .mc-product section.mp-category-advice > a {
  color: #205777;
  font: 600 14px/1.45 Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 840px) {
  #page_large .mc-product .mc-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #page_large .mc-product section.mp-category-advice { padding: 16px 18px !important; }
}

@media (max-width: 480px) {
  #page_large .mc-product .mc-resources { grid-template-columns: minmax(0, 1fr); }
}
