/* Rayons — « Les affaires du jour » et « Arrivés en boutique » (accueil), rayons du
   catalogue (2026-10-08). Balisage : /rayons.js. Maquette validée : design/catalogue-rayons/.
   Modèles DESIGN.md : Socle (vignette), Vedette (n°1), badges Tonal, prix Complet.
   Le doré n'apparaît que sur le lien d'action « Tout voir » — jamais sur une vignette. */
.ry { --ry-s: var(--surface, #1d1d1d); --ry-s2: var(--surface2, #272727); --ry-s3: var(--surface3, #313131);
      --ry-t: var(--text, #f4eee1); --ry-m: var(--muted, #a59a86);
      --ry-vert: #8ed09c; --ry-vert-bg: #1a2b1d; --ry-violet: #c7aff5; --ry-violet-bg: #292335; }
.ry { padding-block: 22px 6px; }
.ry + .ry { padding-top: 14px; }
.ry-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ry-tete h2 { font: 800 19px/1.15 Poppins, sans-serif; letter-spacing: -.01em; margin: 0; color: var(--ry-t); }
.ry-tete p { margin: 3px 0 0; font: 400 13px/1.4 Inter, sans-serif; color: var(--ry-m); }
.ry-tete p b { color: var(--ry-t); font-weight: 600; }
.ry-lien { flex: none; font: 600 14px Poppins, sans-serif; color: var(--accent, #e5a93d); text-decoration: none; white-space: nowrap; }
.ry-lien::after { content: " ›"; }

/* Rail : défile au doigt sur téléphone, grille pleine largeur sur ordinateur */
.ry-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
.ry-rail::-webkit-scrollbar { display: none; }
.ry-rail > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 900px) {
  .ry-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: auto;
    overflow: visible; margin-inline: 0; padding-inline: 0; }
  .ry-rail.une-ligne { grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; overflow: hidden; }
  .ry-rail.une-ligne > * { margin-bottom: 0; }
}

/* Vignette Socle — une tuile de CARTE prend en plus le modèle Halo (/halo.css :
   `.halo-vignette` pour le fond teinté et le survol, `.halo-carte` pour la lueur). */
.ry-v { display: flex; flex-direction: column; background: var(--ry-s); border-radius: 16px; padding: 8px;
  text-decoration: none; color: var(--ry-t); }
.ry-v:hover { background: var(--ry-s2); }
.ry-puits { position: relative; aspect-ratio: 63/88; border-radius: 10px; background: var(--ry-s2); overflow: hidden; }
.ry-puits img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ry-puits.photo { aspect-ratio: 1; background: #f4f1ea; }
.ry-puits.photo img { object-fit: contain; }
/* Halo : le puits devient la carte elle-même, qui flotte avec sa lueur (posée sur le puits,
   pas sur l'image : `overflow:hidden` la couperait). */
.halo-vignette .ry-puits.halo-carte:not(.photo) { background: transparent; }
.ry-pastille { position: absolute; left: 6px; top: 6px; background: rgba(20,20,20,.78); color: var(--ry-t);
  font: 700 11px Poppins, sans-serif; border-radius: 99px; padding: 3px 9px; }
.ry-nom { margin-top: 8px; font: 600 13px/1.3 Poppins, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry-meta { font: 400 11.5px/1.35 Inter, sans-serif; color: var(--ry-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry-prix { margin-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ry-prix b { font: 800 16px Poppins, sans-serif; font-feature-settings: "tnum" 1; white-space: nowrap; }
.ry-sous { font: 400 11.5px Inter, sans-serif; color: var(--ry-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry-badge { flex: none; font: 700 11px Poppins, sans-serif; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.ry-badge.gain { background: var(--ry-vert-bg); color: var(--ry-vert); }
.ry-badge.grade { background: var(--ry-violet-bg); color: var(--ry-violet); }
.ry-badge.neutre { background: var(--ry-s2); color: var(--ry-m); }
.ry-chez { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; font: 500 11.5px Inter, sans-serif;
  color: var(--ry-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ry-chez img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; background: #fff; flex: none; }
.ry-chez .ry-src { width: 16px; height: 16px; border-radius: 4px; flex: none; background: var(--ry-s3); color: var(--ry-t);
  font: 800 9px/16px Poppins, sans-serif; text-align: center; }
.ry-chez-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ry-fl { width: 12px; height: 12px; flex: none; }

/* Affaire : deux zones (2026-10-24). La carte (visuel, nom) mène à sa fiche ; le pied de
   tuile — le bloc marchand, une surface posée sur la tuile donc le palier suivant — mène à
   l'offre. Pleine largeur : en encart, il coupait « eBay · quasi neuve ». Le survol ne
   s'applique qu'à la zone touchée : éclairer toute la tuile ne dirait pas où l'on va. */
.ry-v-aff { overflow: hidden; }
.ry-v-aff.halo-vignette:hover { filter: none; }
.ry-carte { display: block; color: inherit; text-decoration: none; border-radius: 10px; margin-bottom: 8px; }
.ry-carte:hover .ry-puits { filter: brightness(1.1); }
.ry-carte:hover .ry-nom { text-decoration: underline; text-underline-offset: 2px; }
.ry-offre { margin: auto -8px -8px; display: block; padding: 8px 9px 9px; background: var(--ry-s2);
  color: inherit; text-decoration: none; }
.ry-offre:hover { background: var(--ry-s3); }
.ry-offre .ry-prix { margin-top: 0; }
.ry-offre .ry-sous { display: flex; align-items: center; gap: 6px; }
.ry-offre .ry-sous span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ry-offre .ry-chez { padding-top: 6px; color: var(--ry-t); }
.ry-offre .ry-fl { margin-left: auto; color: var(--ry-t); }
.ry-carte:focus-visible, .ry-offre:focus-visible, .ry-vedette a:focus-visible { outline: 2px solid var(--ry-t); outline-offset: 2px; }

/* Vedette : la meilleure affaire, sortie du rang (halo = la carte floutée). Téléphone : la
   carte à gauche du texte, les deux boutons en pleine largeur dessous. */
.ry-vedette { position: relative; overflow: hidden; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px 16px;
  align-items: center; background: var(--ry-s); border-radius: 18px; padding: 14px; color: var(--ry-t); margin-bottom: 10px; isolation: isolate; }
.ry-vedette .halo { position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.4); opacity: .3; z-index: -1; }
.ry-ved-carte { display: block; border-radius: 9px; }
.ry-ved-carte img { display: block; width: 112px; aspect-ratio: 63/88; height: auto; object-fit: cover; border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.ry-ved-carte:hover img { filter: brightness(1.08); }
.ry-ved-corps { min-width: 0; }
.ry-vedette .rang { display: inline-block; background: rgba(20,20,20,.72); font: 700 11px Poppins, sans-serif; border-radius: 99px; padding: 3px 10px; margin-bottom: 8px; }
.ry-vedette .nom { display: block; font: 700 18px/1.2 Poppins, sans-serif; color: var(--ry-t); text-decoration: none; }
.ry-vedette a.nom:hover { text-decoration: underline; text-underline-offset: 3px; }
.ry-vedette .meta { font: 400 12.5px Inter, sans-serif; color: var(--ry-m); margin-top: 2px; }
.ry-vedette .cote { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ry-vedette .cote b { font: 800 28px Poppins, sans-serif; font-feature-settings: "tnum" 1; }
.ry-vedette .detail { margin-top: 8px; font: 400 13px/1.4 Inter, sans-serif; color: var(--ry-t); opacity: .85; }
/* Boutons Galet, sans doré (DESIGN.md › Vedette) : l'offre en crème plein, la fiche en surface. */
.ry-ved-actions { grid-column: 1 / -1; display: grid; gap: 8px; }
.ry-ved-offre, .ry-ved-fiche { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 16px;
  border-radius: 14px; font: 600 14px/1.2 Poppins, sans-serif; text-decoration: none; text-align: center; }
.ry-ved-offre { background: var(--ry-t); color: var(--bg, #141414); }
.ry-ved-offre:hover { background: #fff; }
.ry-ved-offre span { display: flex; flex-direction: column; }
.ry-ved-offre small { font: 500 11.5px Inter, sans-serif; opacity: .7; }
.ry-ved-offre .ry-fl { width: 14px; height: 14px; }
.ry-ved-fiche { background: rgba(20,20,20,.55); color: var(--ry-t); }
.ry-ved-fiche:hover { background: rgba(20,20,20,.8); }
@media (min-width: 900px) {
  .ry-affaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
  .ry-affaires .ry-vedette { grid-column: span 2; grid-row: span 2; margin: 0; grid-template-columns: minmax(0, 1fr);
    align-content: center; justify-items: start; padding: 22px; }
  .ry-affaires .ry-ved-carte img { width: 210px; }
  .ry-affaires .ry-vedette .cote b { font-size: 34px; }
  .ry-affaires .ry-ved-actions { justify-self: stretch; }
  /* Deux rangées au plus sur ordinateur : la vedette (2 × 2) et 8 vignettes. */
  .ry-affaires .ry-rail > :nth-child(n+9) { display: none; }
  .ry-affaires .ry-rail { display: contents; }
  .ry-affaires .ry-aff { grid-column: 1 / -1; }
}

/* Titre du mur, sous les rayons (catalogue) */
.ry-mur { margin: 26px 0 4px; padding-top: 18px; border-top: 1px solid var(--border, #333); }
.ry-mur h2 { font: 800 21px Poppins, sans-serif; margin: 0; }
.ry-mur p { margin: 3px 0 0; font: 400 13px Inter, sans-serif; color: var(--ry-m); }
.ry-aff { margin: 8px 0 0; font: 400 11.5px/1.4 Inter, sans-serif; color: var(--muted, #a59a86); }   /* hors .ry sur le catalogue */
.ry-squelette { background: var(--ry-s); border-radius: 16px; min-height: 260px; }

@media (min-width: 900px) { .ry-tete h2 { font-size: 22px; } }
.ry[hidden], .ry-mur[hidden], .ry-rayons[hidden] { display: none; }
.ry-des { font: 500 11px Inter, sans-serif; color: var(--ry-m); }

/* Scellé (2026-10-27, maquette « Coffrets et displays ») : la raison au-dessus du nom
   (« Sorti le 16 sept. · très demandé »), le nom sur deux lignes — « Display — MEGA
   Expansion 30th Celebration » ne tient pas sur une —, la cote à côté du prix, le badge sur
   sa ligne et « chez … » en texte. Une tuile mène à la fiche, qui compare les boutiques. */
.ry-raison { margin-top: 8px; min-height: 15px; font: 500 11.5px/1.3 Inter, sans-serif; color: var(--ry-m);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ry-raison.pre { color: var(--ry-t); }
.ry-raison + .ry-nom { margin-top: 3px; }
.ry-nom.deux { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
.ry-prix.gauche { justify-content: flex-start; flex-wrap: wrap; gap: 2px 8px; }
.ry-cote { font: 400 11.5px Inter, sans-serif; color: var(--ry-m); white-space: nowrap; }
.ry-badges { margin-top: 6px; display: flex; }
.ry-chez-txt { margin-top: auto; padding-top: 8px; font: 500 11.5px Inter, sans-serif; color: var(--ry-m);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Tuiles plus larges que le Socle (168 px) : la raison et « chez … · 3 boutiques » doivent
   se lire en entier — maquette à 208 px. */
.ry-rail.larges { grid-auto-columns: 172px; }
@media (min-width: 900px) { .ry-rail.larges { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.ry-puces { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 12px; }
.ry-puces[hidden] { display: none; }
.ry-puces button { font: 600 13px/1 Inter, sans-serif; color: #d8d0c0; background: var(--ry-s); border: 1px solid var(--border, #333);
  border-radius: 99px; padding: 0 14px; height: 34px; cursor: pointer; }
.ry-puces button[aria-pressed="true"] { color: #141414; background: var(--ry-t); border-color: var(--ry-t); }
