/* PC4GAMER, tour 2 of 18/11/2026: the trials shown to Mue before anything goes live (Google ratings, « ton ancien PC
   paye le nouveau »). Loaded only by a page where one of them is on (PC4_AVEC, see _boutique.php). Built on the site's
   own colors (styles.css, site-refinement.css). */

.avis-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.avis-etoile { color: #ffc93c; }
.avis-date { color: var(--muted); font-size: 12px; }

/* Ratings as cards: /occasion/, to the right of the title (under it on a phone). */
.avis-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.avis-carte { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #343a44; border-radius: var(--radius); background: #111418; color: var(--text); text-decoration: none; transition: border-color .2s ease; }
.avis-carte:hover, .avis-carte:focus-visible { border-color: #8a929d; }
.avis-qui { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.avis-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.avis-note strong { color: #fff; font-size: 24px; line-height: 1.1; }
.avis-nombre { color: var(--soft); font-size: 13px; font-weight: 650; }
@media (max-width: 520px) {   /* side by side on a phone: the names may take two lines, the ratings stay aligned */
  .avis-carte { padding: 10px 12px; }
  .avis-qui { min-height: 2.6em; }
}
@media (min-width: 980px) {
  .occasion-hero.avec-avis { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 56px; }
  .occasion-hero.avec-avis > * { grid-column: 1; }
  .occasion-hero.avec-avis > .avis-cartes { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; align-self: center; margin: 0; }
}

/* Ratings as one line: PC4GAMER's own, on its home page and in the boutique. */
.avis-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.avis-lien { color: var(--soft); font-weight: 650; text-decoration: none; }
.avis-lien strong { color: #fff; font-size: 16px; }
.avis-lien:hover, .avis-lien:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.bq-hero .avis-ligne { margin-top: 18px; }
.bq-fiche-infos .avis-ligne { margin-top: 10px; }

/* « Ton ancien PC paye le nouveau »: the box above the buy-back form, the « what you want » field, the way in from a PC. */
.r-echange { max-width: 860px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--red-selected, #2b0d0b); }
.r-echange-titre, .bq-echange-titre { margin: 0 0 6px; color: #fff; font-size: 18px; font-weight: 850; }
.r-echange p:last-child { margin: 0; color: #f1d4d1; line-height: 1.55; }
.r-veux-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pc-infos .pc-echange { margin: 0; }
.bq-echange { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #4e555f; border-radius: var(--radius); background: #111418; }
.bq-echange p:not(.bq-echange-titre) { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bq-echange .text-link { color: #fff; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .avis-carte { transition: none; }
}
