/* VVhite Pages — « Calculateur Baro ». Variables : --vvb-maxw, --vvb-acc, --vvb-min (largeur mini d'une carte),
   --vvb-ratio, --vvb-card / --vvb-bd / --vvb-img (cartes), --vvb-price / --vvb-cred, --vvb-bbg / --vvb-bfg (boutons),
   --vvb-cart, --vvb-nbg / --vvb-nfg (« Nouveau »). */
.vvp-baro { --vvb-top: 90px; max-width: var(--vvb-maxw, 1200px); margin: 0 auto 2.5em; text-align: left; }
.vvp-baro.is-wide { width: min(calc(100vw - 32px), var(--vvb-maxw, 1200px)); max-width: none; margin-left: calc(50% - min(50vw - 16px, var(--vvb-maxw, 1200px) / 2)) !important; margin-right: 0 !important; }
body.vvp-page--baro { overflow-x: clip; }
body.vvb-lock { overflow: hidden; }
.vvp-baro * { box-sizing: border-box; }
.vvp-baro [hidden] { display: none !important; }
.vvp-baro button, .vvp-baro input, .vvp-baro select { text-transform: none; letter-spacing: normal; }
.vvp-baro button { font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); }
.vvp-baro .vvb-find, .vvp-baro .vvb-sort { height: auto; line-height: 1.4; }

/* En-tête */
.vvb-head { text-align: center; margin: 0 0 18px; }
.vvb-intro { --vvp-base: 1.08em; max-width: 860px; margin: 0 auto 12px; line-height: 1.55; }
.vvb-intro p { margin: 0 0 .4em; }
.vvb-tc { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 10px 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--vvb-acc) 55%, transparent); background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--vvb-acc) 18%, transparent), transparent 70%), rgba(255, 255, 255, .03); box-shadow: 0 0 22px -6px var(--vvb-acc); }
.vvb-tc-t { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vvb-acc); }
.vvb-tc-d { color: #d6dae8; }
.vvb-tc-l { font-family: var(--vvp-font-chiffres, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-weight: 800; font-size: 1.15em; color: #fff; }
.vvb-relay { margin: 10px 0 0; font-size: .88em; color: var(--muted, #8a90ad); }

/* Barre d'outils */
.vvp-baro:not(.is-en) .vvb-le, .vvp-baro.is-en .vvb-lf { display: none !important; } /* 2.25.0 : FR / EN */
.vvb-lang[hidden] { display: none !important; }
.vvb-lang { display: inline-flex; flex: none; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); overflow: hidden; }
.vvp-baro .vvb-lang button { margin: 0; padding: 7px 12px; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: .85em; font-weight: 700; letter-spacing: .04em; line-height: 1.2; box-shadow: none; cursor: pointer; }
.vvp-baro .vvb-lang button + button { border-left: 1px solid rgba(255, 255, 255, .16); }
.vvp-baro .vvb-lang button[aria-pressed="true"] { background: var(--vvb-acc); color: var(--vvb-bfg); }
.vvp-baro .vvb-lang button:focus-visible { outline: 2px solid var(--vvb-acc); outline-offset: -2px; }
.vvb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; }
.vvp-baro .vvb-find { flex: 1 1 220px; min-width: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; }
.vvb-find:focus { outline: 2px solid var(--vvb-acc); outline-offset: 1px; }
.vvp-baro .vvb-sort { padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: #151823; color: inherit; font: inherit; font-size: .9em; }
.vvp-baro .vvb-mine { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: inherit; font: inherit; font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: .9em; cursor: pointer; }
.vvp-baro .vvb-mine[aria-pressed="true"] { background: var(--vvb-acc); border-color: var(--vvb-acc); color: var(--vvb-bfg); font-weight: 700; }
.vvb-count { font-size: .88em; color: var(--muted, #8a90ad); }
.vvb-edit { font-size: .85em; }
.vvb-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; min-width: 0; max-width: 100%; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.vvb-chip { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: #e2e5ef !important; text-decoration: none !important; font-size: .85em; white-space: nowrap; }
.vvb-chip span { opacity: .6; font-size: .9em; }
.vvb-chip:hover, .vvb-chip:focus-visible { border-color: var(--vvb-acc); }

/* Boutique */
.vvb-shop { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 27%, 320px); gap: 20px; align-items: start; }
.vvb-cat { margin: 0 0 28px; scroll-margin-top: var(--vvb-top); }
.vvb-cat-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vvb-cat-t { --vvp-base: 1.3em; display: flex; align-items: center; gap: 8px; margin: 0; }
.vvb-cat-act { display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--vvb-acc) 60%, transparent); overflow: hidden; }
.vvb-cat-act span { padding: 0 10px; font-size: .78em; color: #d6dae8; white-space: nowrap; }
.vvp-baro .vvb-cat-act button { position: relative; flex: none; display: block; width: 32px; height: 28px; margin: 0; padding: 0; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: color-mix(in srgb, var(--vvb-acc) 22%, transparent); line-height: 0; font-size: 0; color: transparent; box-shadow: none; cursor: pointer; }
.vvp-baro .vvb-cat-act button:hover { background: color-mix(in srgb, var(--vvb-acc) 45%, transparent); }
.vvp-baro .vvb-cat-act button::before, .vvp-baro .vvb-cat-act [data-vvb-cat-plus]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.vvp-baro .vvb-cat-act [data-vvb-cat-plus]::after { width: 2px; height: 11px; }
.vvb-cat-n { margin-left: 2px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #c9cde0; font-size: .6em; font-weight: 700; }
.vvb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--vvb-min, 168px)), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vvb-card { display: flex; flex-direction: column; margin: 0; border-radius: 12px; border: 1px solid var(--vvb-bd); background: var(--vvb-card); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.vvb-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--vvb-acc) 50%, var(--vvb-bd)); }
.vvb-card.in-cart { border-color: var(--vvb-acc); box-shadow: 0 0 0 1px var(--vvb-acc), 0 0 18px -6px var(--vvb-acc); }
.vvb-img { position: relative; display: grid; place-items: center; aspect-ratio: var(--vvb-ratio, 1/1); background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .05), transparent 70%), var(--vvb-img); }
.vvb-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8%; }
.vvb-ph { font-size: 2.6em; opacity: .28; filter: grayscale(.4); }
.vvb-new { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--vvb-nbg); color: var(--vvb-nfg); font-size: .7em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vvb-body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 9px 10px 10px; }
.vvb-name { margin: 0; font-size: .92em; font-weight: 700; line-height: 1.25; color: #f1f3f9; }
.vvb-en { font-size: .76em; font-style: italic; color: var(--muted, #8a90ad); line-height: 1.2; }
.vvb-note { font-size: .74em; color: var(--vvb-acc); line-height: 1.2; }
.vvb-price { font-family: var(--vvp-font-chiffres, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 4px 0 6px; }
.vvb-d { color: var(--vvb-price); font-size: 1.05em; white-space: nowrap; }
.vvb-c { color: var(--vvb-cred); font-size: .78em; white-space: nowrap; }
.vvb-act { margin-top: auto; }
.vvb-add { width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: var(--vvb-bbg); color: var(--vvb-bfg); font: inherit; font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: .86em; font-weight: 800; cursor: pointer; transition: filter .15s ease; }
.vvb-add:hover, .vvb-add:focus-visible { filter: brightness(1.1); }
.vvb-qty, .vvb-line-q { display: flex; align-items: center; justify-content: space-between; gap: 4px; border-radius: 8px; border: 1px solid var(--vvb-acc); overflow: hidden; }
.vvb-qty button, .vvb-line-q button { width: 34px; height: 32px; border: 0; background: color-mix(in srgb, var(--vvb-acc) 22%, transparent); color: #fff; font: inherit; font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: 1.1em; font-weight: 800; cursor: pointer; }
.vvb-qty button:disabled, .vvb-line-q button:disabled { opacity: .35; cursor: not-allowed; }
.vvb-qty output, .vvb-line-q output { flex: 1; text-align: center; font-weight: 800; color: var(--vvb-acc); }
.vvb-none { text-align: center; font-style: italic; color: var(--muted, #8a90ad); }

/* Panier */
.vvb-cart { position: sticky; top: var(--vvb-top); max-height: calc(100vh - var(--vvb-top) - 16px); overflow: auto; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--vvb-acc) 40%, transparent); background: var(--vvb-cart); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.vvb-cart-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.vvb-cart-h h2 { margin: 0; font-size: 1.1em; color: #fff; }
.vvb-cart-n { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--vvb-acc); color: var(--vvb-bfg); font-size: .8em; text-align: center; }
.vvb-close { display: none; border: 0; background: none; color: #fff; font-size: 1.2em; cursor: pointer; }
.vvb-empty { margin: 4px 0 10px; font-size: .88em; color: var(--muted, #8a90ad); }
.vvb-lines { margin: 0 0 10px; padding: 0; list-style: none; max-height: 40vh; overflow: auto; }
.vvb-line { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "i n x" "i q p"; gap: 2px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.vvb-line-i { grid-area: i; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--vvb-img); font-size: 1.1em; overflow: hidden; }
.vvb-line-i img { width: 100%; height: 100%; object-fit: contain; }
.vvb-line-n { grid-area: n; font-size: .82em; line-height: 1.2; color: #e9ecf4; }
.vvb-line-q { grid-area: q; width: 104px; border-width: 1px; }
.vvb-line-q button { width: 28px; height: 24px; font-size: .95em; }
.vvb-line-p { grid-area: p; font-size: .82em; font-weight: 700; color: var(--vvb-price); text-align: right; white-space: nowrap; }
.vvb-line-x { grid-area: x; justify-self: end; border: 0; background: none; color: var(--muted, #8a90ad); cursor: pointer; font-size: .85em; }
.vvb-line-x:hover { color: #ff7676; }
.vvb-sum p { display: flex; justify-content: space-between; margin: 0 0 4px; }
.vvb-sum-d { font-family: var(--vvp-font-chiffres, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: 1.15em; color: var(--vvb-price); }
.vvb-sum-c { font-family: var(--vvp-font-chiffres, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: .85em; color: var(--vvb-cred); }
.vvb-own { display: grid; gap: 6px; margin: 10px 0; }
.vvb-own label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82em; color: #c9cde0; }
.vvb-own input { width: 110px; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; text-align: right; }
.is-bump { animation: vvb-bump .35s ease; }
@keyframes vvb-bump { 50% { transform: scale(1.35); } }
.vvb-bar { display: none; }
.vvb-after { margin: 26px 0 0; line-height: 1.6; }

/* Téléphone et tablette : panier en tiroir, barre collante en bas */
@media (max-width: 959px) {
	.vvb-shop { grid-template-columns: minmax(0, 1fr); }
	.vvb-chips { flex-wrap: nowrap; }
	.vvp-baro.has-cart { padding-bottom: 76px; }
	.vvb-cart { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 99990; max-height: 84vh; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .3s ease; visibility: hidden; }
	.vvb-cart.is-open { transform: none; visibility: visible; }
	.vvb-cart.is-open::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .55); }
	.vvb-close { display: block; }
	.vvb-bar { display: block; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 99980; }
	.vvb-bar-b { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--vvb-acc); background: rgba(12, 14, 20, .96); color: #e9ecf4; font: inherit; font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: .88em; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .55), 0 0 16px -6px var(--vvb-acc); }
	.vvb-bar-b b { color: var(--vvb-acc); }
	.vvb-bar-n { display: inline-block; }
	.vvb-bar-up { opacity: .7; }
}
@media (max-width: 480px) {
	.vvb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.vvb-name { font-size: .85em; }
	.vvb-tc { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.vvb-card, .vvb-cart { transition: none; }
	.is-bump { animation: none; }
}

/* Boutons − / + : dessinés en CSS (indépendants de la police et des styles de boutons du thème) */
.vvp-baro .vvb-qty button, .vvp-baro .vvb-line-q button { position: relative; flex: none; display: block; margin: 0; padding: 0; min-width: 0; min-height: 0; line-height: 0; font-size: 0; color: transparent; border-radius: 0; box-shadow: none; text-shadow: none; }
.vvp-baro .vvb-qty button { width: 38px; height: 34px; }
.vvp-baro .vvb-line-q button { width: 30px; height: 26px; }
.vvp-baro .vvb-qty button::before, .vvp-baro .vvb-line-q button::before,
.vvp-baro .vvb-qty [data-vvb-plus]::after, .vvp-baro .vvb-line-q [data-vvb-plus]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.vvp-baro .vvb-qty [data-vvb-plus]::after, .vvp-baro .vvb-line-q [data-vvb-plus]::after { width: 2px; height: 12px; }
.vvp-baro .vvb-line-q button::before, .vvp-baro .vvb-line-q [data-vvb-plus]::after { width: 10px; }
.vvp-baro .vvb-line-q [data-vvb-plus]::after { width: 2px; height: 10px; }
.vvp-baro .vvb-qty button:hover:not(:disabled), .vvp-baro .vvb-line-q button:hover:not(:disabled) { background: color-mix(in srgb, var(--vvb-acc) 45%, transparent); }
.vvp-baro .vvb-qty output, .vvp-baro .vvb-line-q output { min-width: 2ch; font-size: 1rem; line-height: 1; }
.vvp-baro .vvb-line-x { padding: 2px 4px; min-width: 0; line-height: 1; box-shadow: none; }

/* Bureau : 6 px de marge à gauche ; le panier déborde à droite dans la marge de l'écran (jusqu'à 110 px) pour laisser
   plus de place aux objets. */
@media (min-width: 960px) {
	.vvp-baro { --vvb-out: clamp(0px, (100vw - var(--vvb-maxw, 1200px)) / 2 - 28px, 110px); box-sizing: border-box; padding-left: 6px; }
	.vvp-baro:not(.is-wide) { --vvb-out: 0px; }
	.vvb-shop { margin-right: calc(-1 * var(--vvb-out)); }
}

/* Logos des monnaies (image réglable dans l'écran, sinon ◈ / cr) */
.vvb-ico { display: inline-block; vertical-align: -0.15em; }
img.vvb-ico--d { width: var(--vvb-dpx, 16px); height: var(--vvb-dpx, 16px); object-fit: contain; }
img.vvb-ico--c { width: var(--vvb-cpx, 16px); height: var(--vvb-cpx, 16px); object-fit: contain; }
span.vvb-ico--d { font-size: .9em; }
abbr.vvb-ico--c { text-decoration: none; border: 0; cursor: help; }

/* Reste à gagner */
.vvb-goal { padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--vvb-acc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--vvb-acc) 30%, transparent); }
.vvb-goal-t { margin: 0 0 8px; font-size: .78em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vvb-acc); text-align: center; }
.vvb-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.vvb-rest.is-solo { grid-template-columns: 1fr; }
.vvb-rest p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 5px; margin: 0; padding: 8px 4px; border-radius: 8px; background: rgba(0, 0, 0, .25); text-align: center; }
.vvb-rest b { font-size: 1.15em; color: var(--vvb-price); line-height: 1.2; }
.vvb-rest p + p b { color: var(--vvb-cred); }
.vvb-rest span { flex: 1 1 100%; font-size: .72em; color: #c9cde0; }
.vvb-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vvb-rates + .vvb-rates { margin-top: 8px; }
.vvb-rates p { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 8px 4px; border-radius: 8px; background: rgba(0, 0, 0, .25); text-align: center; }
.vvb-rates b { font-size: 1.4em; line-height: 1.1; color: var(--vvb-acc); }
.vvb-rates--c b { font-size: 1.1em; color: var(--vvb-cred); }
.vvb-rates span { font-size: .7em; color: #c9cde0; }
.vvb-until { margin: 8px 0 0; font-size: .8em; text-align: center; color: var(--muted, #8a90ad); }
.vvp-baro .vvb-clear { display: block; width: 100%; margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255, 110, 110, .45); background: rgba(255, 90, 90, .08); color: #ffb3b3; font: inherit; font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: .88em; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; box-shadow: none; transition: background .15s ease, color .15s ease; }
.vvp-baro .vvb-clear:hover, .vvp-baro .vvb-clear:focus-visible { background: rgba(255, 90, 90, .18); color: #fff; }
.vvp-baro .vvb-clear.is-armed { background: #d63a3a; border-color: #d63a3a; color: #fff; }
.vvb-rates span { display: inline-flex; align-items: center; gap: 4px; font-size: .66em; white-space: nowrap; }
.vvb-own input { width: 120px; -moz-appearance: textfield; appearance: textfield; }
.vvb-own input::-webkit-outer-spin-button, .vvb-own input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vvp-baro .vvb-close, .vvp-baro .vvb-line-x { padding: 4px 8px; min-width: 0; min-height: 0; border: 0; border-radius: 6px; background: none; box-shadow: none; line-height: 1; }
.vvp-baro .vvb-close { font-size: 1.2em; color: #fff; }
