/* Occasions ATB — styles neutres, polices héritées du thème. */
.atbvo {
	--atbvo-accent: #2DB7FF;
	--atbvo-dark: #0A1931;
	--atbvo-text: #1d2433;
	--atbvo-muted: #5b6475;
	--atbvo-line: #e3e7ee;
	--atbvo-soft: #f5f7fa;
	--atbvo-radius: 10px;
	color: var(--atbvo-text);
	box-sizing: border-box;
}
.atbvo *, .atbvo *::before, .atbvo *::after { box-sizing: inherit; }
.atbvo img { max-width: 100%; height: auto; display: block; }

/* ---------- Boutons, badges, chips ---------- */
.atbvo .atbvo-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .7em 1.2em; border-radius: 6px; border: 2px solid var(--atbvo-dark);
	background: var(--atbvo-dark); color: #fff !important; font-weight: 600;
	text-decoration: none; line-height: 1.2; text-align: center; transition: background .15s, border-color .15s;
}
.atbvo .atbvo-btn:hover, .atbvo .atbvo-btn:focus-visible { background: var(--atbvo-accent); border-color: var(--atbvo-accent); }
.atbvo .atbvo-btn.is-ghost { background: transparent; color: var(--atbvo-dark) !important; }
.atbvo .atbvo-btn.is-ghost:hover { background: var(--atbvo-dark); color: #fff !important; border-color: var(--atbvo-dark); }
.atbvo button.atbvo-link, .atbvo button.atbvo-link:hover, .atbvo button.atbvo-link:focus {
	background: none; border: 0; border-radius: 0; padding: 0; color: var(--atbvo-dark); font: inherit;
	font-weight: 600; text-decoration: underline; cursor: pointer;
}
.atbvo-badge {
	display: inline-block; padding: .3em .7em; border-radius: 999px;
	font-size: .78rem; font-weight: 600; line-height: 1.2;
}
.atbvo-badge.is-stock { background: #e6f6ec; color: #17693a; }
.atbvo-badge.is-soon { background: #fff3dc; color: #8a5a00; }
.atbvo-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.atbvo-chips li {
	margin: 0; padding: .25em .6em; border-radius: 4px; background: var(--atbvo-soft);
	color: var(--atbvo-muted); font-size: .82rem; line-height: 1.3;
}
.atbvo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; line-height: 1.1; }
.atbvo-price strong { font-size: 1.35rem; color: var(--atbvo-dark); }
.atbvo-price del { color: var(--atbvo-muted); font-size: .9rem; }
.atbvo-price small { color: var(--atbvo-muted); }
.atbvo-price.is-big strong { font-size: 2rem; }

/* ---------- Liste ---------- */
.atbvo-filters {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
	padding: 16px; margin: 0 0 16px; background: var(--atbvo-soft); border-radius: var(--atbvo-radius);
}
.atbvo-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .82rem; font-weight: 600; color: var(--atbvo-muted); }
.atbvo-field select {
	width: 100%; padding: .55em .6em; border: 1px solid var(--atbvo-line); border-radius: 6px;
	background: #fff; color: var(--atbvo-text); font: inherit; font-size: .95rem; font-weight: 400;
}
.atbvo-count { margin: 0 0 12px; color: var(--atbvo-muted); }
.atbvo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.atbvo-card {
	display: flex; flex-direction: column; overflow: hidden; background: #fff;
	border: 1px solid var(--atbvo-line); border-radius: var(--atbvo-radius); transition: box-shadow .2s, transform .2s;
}
.atbvo-card:hover { box-shadow: 0 10px 30px rgba(10, 25, 49, .12); transform: translateY(-2px); }
.atbvo-card[hidden] { display: none; }
.atbvo-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--atbvo-soft); overflow: hidden; }
.atbvo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.atbvo-card-img .atbvo-badge { position: absolute; top: 10px; left: 10px; }
.atbvo-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; }
.atbvo-card-title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.atbvo-card-title a { color: var(--atbvo-dark); text-decoration: none; }
.atbvo-card-version {
	margin: 0; color: var(--atbvo-muted); font-size: .88rem; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.atbvo-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--atbvo-line); }
.atbvo-card-foot .atbvo-btn { padding: .55em .9em; font-size: .9rem; }
.atbvo-noresult, .atbvo-empty { padding: 24px; text-align: center; background: var(--atbvo-soft); border-radius: var(--atbvo-radius); }

/* ---------- Fiche ---------- */
.atbvo-single { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
.atbvo-back { margin: 0 0 16px; }
.atbvo-back a { color: var(--atbvo-muted); text-decoration: none; font-weight: 600; }
.atbvo-back a:hover { color: var(--atbvo-dark); }
.atbvo-single-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 32px; align-items: start; }
.atbvo-gallery { min-width: 0; }
.atbvo-gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--atbvo-soft); border-radius: var(--atbvo-radius); overflow: hidden; }
.atbvo-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.atbvo button.atbvo-nav, .atbvo button.atbvo-nav:hover, .atbvo button.atbvo-nav:focus {
	position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .9); color: var(--atbvo-dark); font-size: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.15); line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center; padding: 0 0 4px;
	border: 0; border-radius: 50%;
}
.atbvo button.atbvo-nav:hover { background: #fff; }
.atbvo .atbvo-nav.is-prev { left: 12px; }
.atbvo .atbvo-nav.is-next { right: 12px; }
.atbvo-gallery-count {
	position: absolute; right: 12px; bottom: 12px; padding: .2em .6em; border-radius: 4px;
	background: rgba(10, 25, 49, .75); color: #fff; font-size: .8rem;
}
.atbvo-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.atbvo .atbvo-thumbs button, .atbvo .atbvo-thumbs button:hover, .atbvo .atbvo-thumbs button:focus {
	flex: 0 0 96px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden;
	background: none; color: inherit; cursor: pointer; opacity: .7; aspect-ratio: 4 / 3;
}
.atbvo .atbvo-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.atbvo .atbvo-thumbs button.is-active, .atbvo .atbvo-thumbs button:hover { border-color: var(--atbvo-accent); opacity: 1; }
.atbvo-box {
	position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; padding: 24px;
	border: 1px solid var(--atbvo-line); border-radius: var(--atbvo-radius); background: #fff;
}
.atbvo-box .atbvo-badge { align-self: flex-start; }
.atbvo-title { margin: 0; font-size: 1.9rem; line-height: 1.15; color: var(--atbvo-dark); }
.atbvo-version { margin: 0; color: var(--atbvo-muted); line-height: 1.45; }
.atbvo-tva { margin: 0; font-size: .88rem; color: var(--atbvo-muted); }
.atbvo-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.atbvo-ref { margin: 0; font-size: .8rem; color: var(--atbvo-muted); }
.atbvo-section { margin-top: 40px; }
.atbvo-section h2 { margin: 0 0 16px; font-size: 1.4rem; color: var(--atbvo-dark); }
.atbvo-section h2 small { color: var(--atbvo-muted); font-weight: 400; font-size: .7em; }
.atbvo-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin: 0; }
.atbvo-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--atbvo-line); }
.atbvo-specs dt { color: var(--atbvo-muted); margin: 0; }
.atbvo-specs dd { margin: 0; font-weight: 600; text-align: right; }
.atbvo-equip { columns: 2 300px; column-gap: 32px; margin: 0 0 12px; padding: 0; list-style: none; }
.atbvo-equip li { break-inside: avoid; position: relative; margin: 0; padding: 5px 0 5px 22px; line-height: 1.45; font-size: .95rem; }
.atbvo-equip li::before { content: "✓"; position: absolute; left: 0; color: var(--atbvo-accent); font-weight: 700; }
.atbvo-equip.is-collapsed li:nth-child(n+15) { display: none; }
.atbvo-legal { margin-top: 40px; font-size: .8rem; color: var(--atbvo-muted); }

@media (max-width: 860px) {
	.atbvo-single-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.atbvo-box { position: static; padding: 18px; }
	.atbvo-title { font-size: 1.5rem; }
	.atbvo-price.is-big strong { font-size: 1.6rem; }
}
@media (max-width: 480px) {
	.atbvo-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
	.atbvo-grid { grid-template-columns: 1fr; }
	.atbvo .atbvo-thumbs button { flex-basis: 72px; }
}
@media (prefers-reduced-motion: reduce) {
	.atbvo-card, .atbvo .atbvo-btn { transition: none; }
	.atbvo-card:hover { transform: none; }
}
