/* PC4GAMER « Occasion & reprise » (17/11/2026): the TechApart selection and the buy-back form.
   Built on the site's own colors and blocks (styles.css, site-refinement.css); only what they lack is here. */

.apercu-barre { padding: 8px 16px; background: #2b0d0b; border-bottom: 1px solid var(--red); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }

/* Hero: the request pages' band, with the two ways in side by side. */
.occasion-hero .lead { margin-bottom: 0; }
.occasion-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.occasion-actions .btn { min-width: 210px; }
.occasion-preuves { gap: 6px; }

/* Selection: budget chips, cards, state of the copy. */
.occasion-filtres { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 18px; }
.occasion-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.occasion-puces button { min-height: 40px; padding: 8px 14px; border: 1px solid #4e555f; border-radius: 6px; background: #111418; color: #dce0e7; font-size: 14px; font-weight: 650; cursor: pointer; }
.occasion-puces button:hover { border-color: #8a929d; color: #fff; }
.occasion-puces button[aria-pressed="true"] { background: var(--red-selected, #2b0d0b); border-color: var(--red); color: #fff; }
.occasion-compte { margin: 0; color: var(--muted); font-size: 14px; }

.occasion-grille { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pc-carte { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s ease; }
.pc-carte:hover { border-color: #4e555f; }
.pc-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #141416; border-bottom: 1px solid var(--line); }
.pc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .3s ease; }
.pc-carte:hover .pc-photo img { transform: scale(1.03); }
.pc-badge { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 4px; background: var(--red-dark); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pc-corps { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.pc-marque { margin: 0 0 8px; color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.pc-corps h3 { margin: 0 0 12px; color: var(--soft); font-size: 22px; line-height: 1.2; }
.pc-corps h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pc-cles { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pc-cles li { position: relative; padding-left: 16px; }
.pc-cles li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.pc-prix { margin: auto 0 4px; color: var(--muted); font-size: 14px; }
.pc-prix strong { margin-right: 6px; color: #fff; font-size: 28px; line-height: 1.1; }
.pc-prix s { white-space: nowrap; }
.pc-stock { margin: 0 0 16px; color: var(--green); font-size: 14px; font-weight: 650; }
.pc-actions { display: grid; gap: 8px; }
.pc-actions .btn { width: 100%; }

.occasion-etat { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.occasion-etat a, .occasion-vide a { color: var(--red); text-decoration: underline; }
.occasion-etat.is-error { padding: 12px 14px; border-left: 3px solid var(--red); background: #1a0e0d; color: #f1d4d1; }
.occasion-vide { margin: 8px 0 0; color: var(--muted); }
.lien-bouton { padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.occasion-etapes { margin-top: 30px; }

/* Buy-back form: the request page's form, with a folding list of components. */
.occasion-reprise { background: #0b0c0f; }
.occasion-reprise .support-layout { padding-top: 8px; }
.occasion-reprise .request-fields > .field-pair,
.occasion-reprise .request-fields > details,
.occasion-reprise .request-fields > label,
.occasion-reprise .request-fields > .photos-bloc { margin-top: 22px; }
.occasion-reprise .request-fields > :first-child { margin-top: 0; }
.r-config { border: 1px solid #4e555f; border-radius: var(--radius); background: #0f1115; }
.r-config summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.r-config summary::-webkit-details-marker { display: none; }
.r-config summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; }
.r-config[open] summary::after { content: "-"; }
.r-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 4px 16px 18px; }
.r-grille label { margin-bottom: 6px; font-size: 14px; }
.r-reference { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Every model that can be offered (Mue, 17/11: « une sorte de dépliant »): folded under the introduction, one line per
   series, the models as small tags. The same lists feed the suggestions of the processor and graphics card fields. */
.r-modeles { margin: 0 0 26px; border: 1px solid #4e555f; border-radius: var(--radius); background: #0f1115; }
.r-modeles summary { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 52px; padding: 14px 52px 14px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.r-modeles summary::-webkit-details-marker { display: none; }
.r-modeles summary::after { content: "+"; position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: var(--red); font-size: 24px; line-height: 1; }
.r-modeles[open] summary::after { content: "-"; }
.r-modeles summary .optional { color: var(--muted); font-size: 14px; font-weight: 500; }
.r-modeles-corps { padding: 0 16px 18px; }
.r-modeles-corps > p { max-width: 860px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.r-modeles-corps h3 { margin: 20px 0 6px; color: var(--soft); font-size: 16px; }
.r-serie { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 16px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.r-serie > p { margin: 5px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.r-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.r-puces li { padding: 4px 9px; border: 1px solid #343a44; border-radius: 6px; background: #121419; color: #dce0e7; font-size: 13px; line-height: 1.35; white-space: nowrap; }
@media (max-width: 620px) {
  .r-serie { grid-template-columns: 1fr; }
}
.r-reference strong { color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; white-space: nowrap; }

/* Questions and partner. */
.occasion-faq .faq-list { max-width: 900px; }
.occasion-faq .faq-list .text-link { display: inline-flex; margin: 10px 0 0; }
.occasion-partenaire .section-head { margin-bottom: 0; }

/* Product sheet (native dialog). */
html:has(.pc-fiche[open]) { overflow: hidden; }
.pc-fiche { width: min(1060px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid #4e555f; border-radius: 10px; background: #0d0f13; color: var(--text); }
.pc-fiche::backdrop { background: rgba(0, 0, 0, .74); }
.pc-fiche-boite { position: relative; }
.pc-fiche-contenu { max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px); overflow-y: auto; overscroll-behavior: contain; }
.pc-fiche-fermer { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #4e555f; border-radius: 50%; background: rgba(9, 10, 12, .88); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.pc-fiche-fermer:hover { border-color: #fff; }
.pc-fiche-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pc-galerie { display: flex; flex-direction: column; background: #141416; }
.pc-galerie-grande { display: block; width: 100%; height: auto; max-height: calc(100dvh - 140px); aspect-ratio: 3 / 4; object-fit: contain; background: #141416; }
.pc-vignettes { display: flex; gap: 8px; padding: 10px; overflow-x: auto; border-top: 1px solid var(--line); }
.pc-vignettes button { flex: 0 0 64px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #0c0e12; cursor: pointer; }
.pc-vignettes button[aria-current="true"] { border-color: var(--red); }
.pc-vignettes img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-infos { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 28px; }
.pc-infos .pc-marque { margin: 0; padding-right: 48px; }
.pc-infos h2 { max-width: none; margin: 0; padding-right: 48px; font-size: 30px; line-height: 1.15; }
.pc-infos .pc-prix { margin: 4px 0 0; }
.pc-infos .pc-stock { margin: 0; }
.pc-infos .btn { width: 100%; margin-top: 6px; }
.pc-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pc-infos h3 { margin: 14px 0 0; color: var(--soft); font-size: 18px; }
.pc-specs { display: grid; grid-template-columns: minmax(104px, auto) minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.pc-specs dt, .pc-specs dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pc-specs dt { padding-right: 14px; color: var(--muted); }
.pc-specs dd { color: var(--soft); overflow-wrap: anywhere; }
.pc-resume { margin: 0; color: #c6cbd3; font-size: 15px; line-height: 1.6; }
.pc-resume span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pc-infos .text-link { margin: 0; }

@media (min-width: 621px) {
  .occasion-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .occasion-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .occasion-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .occasion-actions .btn { flex: 1 1 100%; }
  .pc-fiche { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .pc-fiche-contenu { max-height: 100vh; max-height: 100dvh; }
  .pc-fiche-grille { grid-template-columns: 1fr; }
  .pc-galerie-grande { max-height: 56vh; max-height: 56dvh; }
  .pc-infos { padding: 22px 20px 28px; }
  .pc-infos h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  .r-grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-photo img, .pc-carte { transition: none; }
  .pc-carte:hover .pc-photo img { transform: none; }
}

/* Arriving on a section of this page (#reprise from the home card « Je veux vendre mon matériel »): the browser lands
   at once while the page loads, instead of sliding past every PC; occasion.js brings the site's smooth scroll back after load. */
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html.occasion-glisse { scroll-behavior: smooth; } }
