/* Fiche jante : choix de la taille, de la finition et du diamètre (includes/products.php, .rp-jv), dans le style des cartes de la
   liste (assets/pages/jantes-carte.css) : segments sur fond gris, choix actif en noir, police du site ; liste des tailles
   (dropdown de rupteur.ui.js) en champ arrondi. */

.rp-jv { display: flex; flex-direction: column; gap: 16px; max-width: 450px; margin: 6px 0 18px; }
.rp-jv-lib { margin: 0 0 7px; color: #64748b; font-size: .85rem; font-weight: 600; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }

/* Segments : finition (moins de 4) et diamètre ; liens vers la variante */
.rp-jv-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 100%; padding: 4px; border-radius: 12px; background: #f1f1f4; }
.rp-jv-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 8px 15px; border-radius: 9px;
  color: #0f0f10 !important; font-family: var(--font-bold); font-size: 1.1rem; font-weight: 400; line-height: 1.15; text-align: center;
  text-decoration: none; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.rp-jv-opt:hover { background: rgba(15, 23, 42, .07); }
.rp-jv-opt.is-actif { background: #111; color: #fff !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); cursor: default; }
.rp-jv-opt:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.rp-jv-seg--fin .rp-jv-opt { flex: 1 1 auto; font-size: 1rem; text-transform: uppercase; }   /* sur deux lignes : chaque ligne remplie */

/* Liste des tailles (et des finitions à partir de 4) ; préfixe .rp-jv : plus fort que les états Fomantic (:hover .menu, bordure bleue) */
.rp-jv .ui.selection.dropdown.rp-jv-select { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 15px 48px 15px 16px;
  border: 1px solid rgba(15, 23, 42, .14); border-radius: 12px; background: #fff; color: #0f172a; font-size: 1.05rem; line-height: 1.35;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s ease, box-shadow .15s ease; }
.rp-jv .ui.selection.dropdown.rp-jv-select:hover { border-color: rgba(15, 23, 42, .3); }
.rp-jv .ui.selection.dropdown.rp-jv-select.active,
.rp-jv .ui.selection.dropdown.rp-jv-select.visible { border-color: #111; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px #111; }
.rp-jv .ui.selection.dropdown.rp-jv-select > .dropdown.icon { top: 50%; right: 16px; margin: -.5em 0 0; padding: 0; color: #0f172a; line-height: 1;
  opacity: .75; transition: transform .18s ease; }
.rp-jv .ui.selection.dropdown.rp-jv-select > .dropdown.icon::before { color: #0f172a; }   /* chevron rouge global (rupteur.css) */
.rp-jv .ui.selection.dropdown.rp-jv-select.active > .dropdown.icon,
.rp-jv .ui.selection.dropdown.rp-jv-select.visible > .dropdown.icon { transform: rotate(180deg); }
.rp-jv .ui.selection.dropdown.rp-jv-select > .text { font-weight: 400; }
.rp-jv .ui.selection.dropdown.rp-jv-select > .menu { margin: 0 -1px; border: 1px solid #111; border-top: 0; border-radius: 0 0 12px 12px;
  box-shadow: 0 0 0 1px #111, 0 16px 32px rgba(15, 23, 42, .14); clip-path: inset(0 -2px -48px -2px); }
.rp-jv .ui.selection.dropdown.rp-jv-select > .menu > .item { padding: 13px 16px !important; border-top: 1px solid rgba(15, 23, 42, .06);
  color: #0f172a; font-size: 1.02rem; line-height: 1.35; }
.rp-jv .ui.selection.dropdown.rp-jv-select > .menu > .item:hover { background: #f6f6f8; }
.rp-jv .ui.selection.dropdown.rp-jv-select > .menu > .item.active,
.rp-jv .ui.selection.dropdown.rp-jv-select > .menu > .item.selected { background: #f1f1f4; font-weight: 400; }

/* Petit écran : finitions plus compactes ; boutons panier et pack (.rpt-add de rupteur.css) sur une ligne en fr / de */
@media (max-width: 480px) {
  .rp-jv-seg--fin .rp-jv-opt { padding: 8px 12px; font-size: .9rem; }
  .rpt-add.button.fluid { gap: 8px; padding-right: 12px !important; padding-left: 12px !important; font-size: clamp(13px, 3.75vw, 16px) !important; }
  .rpt-add.button.fluid i.icon { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-jv-opt, .rp-jv .ui.selection.dropdown.rp-jv-select, .rp-jv .ui.selection.dropdown.rp-jv-select > .dropdown.icon { transition: none; }
}
