[class*="five-rate-"], .rating-scale, figure[class*='notation'] {
  --rating-star-full: url('data:image/svg+xml,\
 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\
    <path d="m16.04,0l4.89,10.5,11.07,1.7-7.98,8.24,1.88,11.56-9.86-5.49-9.93,5.49,1.88-11.56L0,12.19l11.07-1.7L16.04,0Z"/>\
 </svg>');
/*   --rating-star-half: url('data:image/svg+xml,\
 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\
 <path d="m16,.08v26.45l-9.89,5.47,1.88-11.56L0,12.19l11.07-1.7L16,.08Z"/>\
 </svg>'); */
  --rating-star-empty: url('data:image/svg+xml,\
 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\
 <path d="m25.91,32l-9.87-5.49-9.94,5.49,1.88-11.56L0,12.2l11.06-1.69L16.04,0l4.9,10.51,11.06,1.69-7.98,8.23,1.88,11.56ZM2.04,12.89l6.97,7.2-1.64,10.06,8.66-4.78,8.59,4.78-1.64-10.06,6.97-7.19-9.67-1.48-4.26-9.14-4.32,9.13-9.67,1.48Z"/>\
 </svg>');
}
@media (max-width: 63.9375rem) {
  [class*="five-rate-"], .rating-scale {
    --size-small: calc(var(--small-gutter, 0.875rem) * 1.5);
    --size-medium: calc(var(--half-gutter, 1.75rem) * 1.4);
    --size-large: calc(var(--gutter, 2.25rem) * 1.2);
  }
}
@media (min-width: 64rem) {
  [class*="five-rate-"], .rating-scale {
    --size-small: var(--small-gutter, 1rem);
    --size-medium: var(--half-gutter, 1.5rem);
    --size-large: calc(var(--gutter, 3rem) * .85);
  }
}
[class*="five-rate-"] {
  display: inline-flex;
  flex: none;
  flex-flow: row;
  text-align: center;
  margin: auto;
  white-space: nowrap;
}
[class*="rate-value"] {
  width: var(--size-medium);
  height: var(--size-medium);
  font-size: var(--font-size, 1rem);
  position: relative;
  margin: 0 !important;
}
[class*="rate-value"]:before,
[class*="rate-value"]:after {
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  position: absolute;
  content: '\A0';
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
}
[class*="rate-value"]:before {
  background-color: var(--primary-color, black);
  -webkit-mask-image: var(--rating-star-empty);
  mask-image: var(--rating-star-empty);
}
[class*="five-rate-"].larger [class*="rate-value"] {
  width: var(--size-large);
  height: var(--size-large);
}
[class*="five-rate-"].medium [class*="rate-value"] {
  width: var(--size-medium);
  height: var(--size-medium);
}
[class*="five-rate-"].smaller [class*="rate-value"] {
  width: var(--size-small);
  height: var(--size-small);
}
[class*="five-rate-"] button [aria-hidden="true"] {
  white-space: nowrap;
  overflow: hidden;
  width: 0 !important;
  height: 0 !important;
  text-indent: -6.25rem;
  line-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0;
}
.rate-value-half:before {
  -webkit-mask-image: var(--rating-star-half);
  mask-image: var(--rating-star-half);
  background-color: var(--yellow, orange);
}
/* ajout d'une bordure de contraste en mode light pour les demies étoiles */
.rate-value-half:after {
  -webkit-mask-image: var(--rating-star-empty);
  mask-image: var(--rating-star-empty);
  background-color: var(--primary-color, black);
}
@media (prefers-color-scheme: dark) {
  /* bordure de contraste en arrière en mode dark */
  .rate-value-half:before {
    z-index: 1;
  }
  .rate-value-half:after {
    z-index: 0;
  }
}
.rate-value-full:before {
  -webkit-mask-image: var(--rating-star-full);
  mask-image: var(--rating-star-full);
  background-color: var(--yellow, orange);
}
.five-rate-active:focus-within button:before {
  -webkit-mask-image: var(--rating-star-full);
  mask-image: var(--rating-star-full);
  background-color: var(--link-color, rgb(93, 63, 224));
}
/*
Gestion des changements visuels à la navigation clavier = :hover
 */
.five-rate-active button:focus ~ [class*="rate-value"]:before {
  -webkit-mask-image: var(--rating-star-empty);
  mask-image: var(--rating-star-empty);
  background-color: var(--primary-color, black);
}
@media (prefers-color-scheme: light) {
  /* ajout d'une bordure de contraste en mode light */
  .rate-value-full:after, .five-rate-active:focus-within button:after {
    -webkit-mask-image: var(--rating-star-empty);
    mask-image: var(--rating-star-empty);
    background-color: var(--primary-color, black);
  }
  .five-rate-active:focus-within button:after {
    background-color: transparent;
  }
}
@media (any-pointer: fine) {
  .five-rate-active:hover button:before {
    -webkit-mask-image: var(--rating-star-full);
    mask-image: var(--rating-star-full);
    background-color: var(--link-color, rgb(93, 63, 224));
  }
  .five-rate-active:hover button:after {
    background-color: transparent;
  }
  .five-rate-active button:hover ~ [class*="rate-value"]:before {
    -webkit-mask-image: var(--rating-star-empty);
    mask-image: var(--rating-star-empty);
    background-color: var(--primary-color, black);
  }
}
.five-rate-inactive * {
  cursor: default !important;
}

figure[class*='notation'] {
  position: relative;
  display: inline-block;
  width: 10rem; /* 160px */
  height: 2rem; /* 32px */
  vertical-align: middle;
}
figure[class*='notation']:before {
  -webkit-mask-image: var(--rating-star-empty);
  -webkit-mask-repeat: repeat-x;
  mask-image: var(--rating-star-empty);
  mask-repeat: repeat-x;
  content: "\A0";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: var(--primary-color, gray);
}
figure.notation-s {
  width: 5rem; /* 80px */
  height: 1rem; /* 16px */
}
figure.notation-xs {
  width: 3.125rem; /* 50px */
  height: 0.625rem; /* 10px */
}
figure[class*='notation'] [role='img'] {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}
figure[class*='notation'] [role='img']:after {
  -webkit-mask-image: var(--rating-star-full);
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-size: contain;
  mask-image: var(--rating-star-full);
  mask-repeat: repeat-x;
  mask-size: contain;
  content: "\A0";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: rgb(102, 156, 49);
}
figure[class*='notation'][data-cover] [role='img']:after {
  -webkit-mask-size: cover;
  mask-size: cover;
}
@media (prefers-color-scheme: dark) {
  figure[class*='notation'] [role='img']:after {
    background-color: yellowgreen;
  }
}
