/* B31 Packs — page & section accueil. Tout est préfixé .b31p pour ne rien casser ailleurs. */
.b31p {
	--b31p-ink: #111;
	--b31p-paper: #fff;
	--b31p-soft: #f3efe8;
	--b31p-line: #111;
	--b31p-muted: #6b6b6b;
	--b31p-accent: #111;
	--b31p-display: "Big Shoulder Display", "Big Shoulders Display", "Oswald", Impact, sans-serif;
	color: var(--b31p-ink);
	font-size: 18px;
	line-height: 1.4;
	box-sizing: border-box;
}
.b31p *, .b31p *::before, .b31p *::after { box-sizing: inherit; }
.b31p [hidden] { display: none !important; }
.b31p .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.b31p img { max-width: 100%; display: block; }
/* ---------- Bouclier contre les styles du thème (Hello Elementor : boutons et liens roses #c36) ---------- */
.b31p a, .b31p a:visited, .b31p a:hover, .b31p a:focus, .b31p a:active { color: inherit; text-decoration: none; background-color: transparent; }
.b31p button, .b31p [type=button], .b31p [type=submit] {
	-webkit-appearance: none; appearance: none; display: inline-block; width: auto; margin: 0; padding: 0;
	background: transparent; border: 0; border-radius: 0; box-shadow: none; color: inherit;
	font: inherit; letter-spacing: inherit; line-height: inherit; text-align: inherit; text-transform: inherit;
	text-decoration: none; white-space: normal; transition: none; user-select: auto; cursor: pointer;
}
.b31p button:hover, .b31p button:focus, .b31p button:active,
.b31p [type=button]:hover, .b31p [type=button]:focus, .b31p [type=submit]:hover, .b31p [type=submit]:focus { background-color: transparent; color: inherit; text-decoration: none; }
.b31p button:focus-visible, .b31p a:focus-visible { outline: 3px solid var(--b31p-accent); outline-offset: 2px; }
.b31p input[type=search], .b31p input[type=text] { border-radius: 0; transition: none; }

/* ---------- head ---------- */
.b31p .b31p-head { margin: 0 0 32px; }
.b31p .b31p-title {
	font-family: var(--b31p-display); font-weight: 900; text-transform: uppercase;
	font-size: clamp(40px, 7vw, 84px); line-height: .95; margin: 0 0 18px; letter-spacing: 0;
}
.b31p .b31p-title span { display: inline-block; background: var(--b31p-ink); color: var(--b31p-paper); padding: 4px 14px 0; margin-top: 6px; }
.b31p .b31p-intro { max-width: 640px; margin: 0; font-size: 20px; }

/* ---------- badges / buttons / price ---------- */
.b31p .b31p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 22px; }
.b31p .b31p-badge {
	display: inline-block; font-family: var(--b31p-display); font-weight: 700; text-transform: uppercase;
	font-size: 13px; letter-spacing: .06em; line-height: 1; padding: 6px 8px 5px;
	background: var(--b31p-ink); color: var(--b31p-paper);
}
.b31p .b31p-badge.is-accent { background: var(--b31p-accent); color: var(--b31p-paper); }
.b31p .b31p-badge.is-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

.b31p .b31p-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
	font-size: 20px; line-height: 1; padding: 14px 22px; border: 2px solid var(--b31p-ink);
	background: var(--b31p-ink); color: var(--b31p-paper); text-decoration: none; transition: background .15s, color .15s;
}
.b31p .b31p-btn:hover, .b31p .b31p-btn:focus-visible { background: var(--b31p-paper); color: var(--b31p-ink); }
.b31p .b31p-btn.is-light { background: var(--b31p-paper); border-color: var(--b31p-paper); color: var(--b31p-ink); }
.b31p .b31p-btn.is-light:hover { background: transparent; border-color: var(--b31p-paper); color: var(--b31p-paper); }
.b31p .b31p-btn.is-outline { background: transparent; color: var(--b31p-ink); }
.b31p .b31p-btn.is-outline:hover { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-btn.is-cta { width: 100%; font-size: 22px; padding: 18px 20px; }
.b31p .b31p-btn[disabled] { opacity: .6; cursor: wait; }

.b31p .b31p-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; flex-wrap: wrap; }
.b31p .b31p-price-now { font-family: var(--b31p-display); font-weight: 900; font-size: 44px; line-height: 1; }
.b31p .b31p-price-was { color: var(--b31p-muted); font-size: 17px; }
.b31p .b31p-price .woocommerce-Price-amount { white-space: nowrap; }

/* ---------- cards ---------- */
.b31p .b31p-offers { display: grid; gap: 24px; }
.b31p .b31p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .b31p .b31p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b31p .b31p-card {
	display: flex; flex-direction: column; border: 2px solid var(--b31p-line); background: var(--b31p-paper);
	color: var(--b31p-ink); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.b31p .b31p-card:hover, .b31p .b31p-card:focus-visible { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--b31p-ink); }
.b31p .b31p-card-media { background: var(--b31p-soft); padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.b31p .b31p-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.b31p .b31p-card-title { font-family: var(--b31p-display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0 0 6px; }
.b31p .b31p-card-contents { margin: 0; font-size: 17px; }
.b31p .b31p-card-pitch { margin: 0 0 16px; color: var(--b31p-muted); font-size: 16px; flex: 1; }
.b31p .b31p-card .b31p-btn { align-self: flex-start; padding: 11px 18px; font-size: 18px; }

/* visual = articles of the pack side by side */
.b31p .b31p-visual { display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.b31p .b31p-visual img { width: 34%; max-width: 150px; aspect-ratio: 750 / 969; object-fit: cover; margin-left: -6%; box-shadow: 0 6px 16px rgba(0,0,0,.18); border: 3px solid var(--b31p-paper); }
.b31p .b31p-visual img:first-child { margin-left: 0; }
.b31p .b31p-visual img:nth-child(2) { transform: translateY(-10px); }
.b31p .b31p-visual.is-big img { max-width: 210px; width: 32%; }

/* hero card */
.b31p .b31p-card.is-hero { flex-direction: row; background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-card.is-hero .b31p-card-media { background: var(--b31p-soft); flex: 1 1 46%; min-height: 320px; }
.b31p .b31p-card.is-hero .b31p-card-body { flex: 1 1 54%; padding: 32px 36px; justify-content: center; }
.b31p .b31p-card.is-hero .b31p-card-title { font-size: clamp(36px, 4.4vw, 60px); }
.b31p .b31p-card.is-hero .b31p-price-now { font-size: clamp(56px, 7vw, 88px); }
.b31p .b31p-card.is-hero .b31p-price-was { color: #aaa; }
.b31p .b31p-card.is-hero .b31p-card-pitch { color: #cfcfcf; flex: 0; }
.b31p .b31p-card.is-hero .b31p-badge { background: var(--b31p-paper); color: var(--b31p-ink); }
.b31p .b31p-card.is-hero .b31p-badge.is-accent { background: var(--b31p-paper); color: var(--b31p-ink); }
.b31p .b31p-card.is-hero:hover { box-shadow: 8px 8px 0 #9a9a9a; }

/* gift card */
.b31p .b31p-gift { width: 70%; aspect-ratio: 1.6; background: var(--b31p-ink); color: var(--b31p-paper); display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.b31p .b31p-gift span { font-family: var(--b31p-display); font-weight: 900; font-size: 34px; line-height: 1; }
.b31p .b31p-gift small { font-family: var(--b31p-display); text-transform: uppercase; letter-spacing: .08em; color: #cfcfcf; font-size: 15px; }

.b31p .b31p-more { text-align: center; margin: 28px 0 0; }

/* ---------- configurator ---------- */
.b31p .b31p-config { scroll-margin-top: 100px; }
.b31p .b31p-config-head { margin-bottom: 26px; }
.b31p .b31p-back { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 16px; margin-bottom: 12px; }
.b31p .b31p-config-title { font-family: var(--b31p-display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 5vw, 64px); line-height: 1; margin: 0; }
.b31p .b31p-config-sub { margin: 6px 0 0; font-size: 20px; }

.b31p .b31p-config-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.b31p .b31p-step { border-top: 2px solid var(--b31p-line); padding: 18px 0 30px; scroll-margin-top: 100px; }
.b31p .b31p-step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.b31p .b31p-step-head h3 { font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0; }
.b31p .b31p-step-n { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--b31p-ink); color: var(--b31p-paper); font-family: var(--b31p-display); font-weight: 900; font-size: 20px; }
.b31p .b31p-step-note { color: var(--b31p-muted); font-size: 16px; }
.b31p .b31p-link { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 15px; text-align: left; }
.b31p .b31p-muted { color: var(--b31p-muted); font-size: 15px; }

.b31p .b31p-slot-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.b31p .b31p-slot-tab { border: 2px solid var(--b31p-line); background: var(--b31p-paper); padding: 8px 12px; text-align: left; font-family: var(--b31p-display); font-weight: 700; text-transform: uppercase; font-size: 17px; line-height: 1.1; }
.b31p .b31p-slot-tab small { display: block; font-family: inherit; text-transform: none; font-weight: 400; font-size: 13px; color: var(--b31p-muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b31p .b31p-slot-tab.is-on { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-slot-tab.is-on small { color: #ccc; }

.b31p .b31p-search input { width: 100%; border: 2px solid var(--b31p-line); padding: 14px 16px; font-size: 18px; border-radius: 0; background: var(--b31p-paper); }
.b31p .b31p-search input:focus { outline: 3px solid var(--b31p-accent); outline-offset: 0; }
.b31p .b31p-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; max-height: 470px; overflow-y: auto; padding: 2px; }
.b31p .b31p-results.is-loading { opacity: .5; }
.b31p .b31p-car { background: none; border: 2px solid transparent; padding: 0 0 6px; text-align: left; }
.b31p .b31p-car-img { display: block; aspect-ratio: 509 / 715; overflow: hidden; }
.b31p .b31p-car-img img { width: 100%; height: 100%; object-fit: cover; }
.b31p .b31p-car-name { display: block; font-size: 14px; line-height: 1.2; padding: 6px 4px 0; }
.b31p .b31p-car:hover { border-color: #bbb; }
.b31p .b31p-car.is-on { border-color: var(--b31p-ink); box-shadow: 0 0 0 2px var(--b31p-ink); }

.b31p .b31p-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px; max-width: 640px; }
.b31p .b31p-swatch { aspect-ratio: 1; border: 1px solid rgba(0,0,0,.18); padding: 0; position: relative; }
.b31p .b31p-swatch.is-on { box-shadow: 0 0 0 2px var(--b31p-paper), 0 0 0 4px var(--b31p-ink); }

.b31p .b31p-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.b31p .b31p-item { border: 2px solid var(--b31p-line); display: flex; flex-direction: column; }
.b31p .b31p-item.is-target { box-shadow: 5px 5px 0 var(--b31p-accent); }
.b31p .b31p-item-media { aspect-ratio: 750 / 969; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.b31p .b31p-item-media img { width: 100%; height: 100%; object-fit: cover; }
.b31p .b31p-item-empty { font-size: 15px; color: rgba(0,0,0,.6); padding: 12px; text-align: center; }
.b31p .b31p-item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.b31p .b31p-item-body strong { font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1; }
.b31p .b31p-item-car { font-size: 15px; color: var(--b31p-muted); }
.b31p .b31p-item-price { font-size: 15px; }
.b31p .b31p-sizes { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0; }
.b31p .b31p-size { min-width: 40px; border: 1.5px solid var(--b31p-line); background: var(--b31p-paper); padding: 6px 6px; font-size: 14px; font-weight: 600; }
.b31p .b31p-size.is-on { background: var(--b31p-ink); color: var(--b31p-paper); }

.b31p .b31p-summary { position: sticky; top: 24px; }
.b31p .b31p-summary-in { border: 2px solid var(--b31p-line); background: var(--b31p-soft); padding: 20px; }
.b31p .b31p-summary-visual { display: flex; gap: 6px; margin-bottom: 14px; }
.b31p .b31p-summary-visual img { flex: 1; min-width: 0; aspect-ratio: 750 / 969; object-fit: cover; }
.b31p .b31p-summary-title { font-family: var(--b31p-display); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0 0 10px; }
.b31p .b31p-summary-lines { list-style: none; margin: 0 0 12px; padding: 0; font-size: 15px; }
.b31p .b31p-summary-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.b31p .b31p-summary-lines li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b31p .b31p-summary-total { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; }
.b31p .b31p-summary-total .b31p-price-now { font-size: 54px; }
.b31p .b31p-summary-perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.b31p .b31p-error { background: #b11f1b; color: #fff; padding: 10px 12px; font-size: 16px; margin: 0 0 12px; }
.b31p .b31p-note { font-size: 14px; color: var(--b31p-muted); margin: 12px 0 0; }

.b31p .b31p-sticky { display: none; }

@media (max-width: 960px) {
	.b31p .b31p-config-grid { grid-template-columns: minmax(0, 1fr); }
	.b31p .b31p-summary { position: static; }
	.b31p .b31p-card.is-hero { flex-direction: column; }
	.b31p .b31p-card.is-hero .b31p-card-media { min-height: 240px; }
	.b31p .b31p-card.is-hero .b31p-card-body { padding: 22px; }
	.b31p .b31p-sticky {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 12px; align-items: center; justify-content: space-between;
		background: var(--b31p-paper); border-top: 2px solid var(--b31p-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	}
	.b31p .b31p-sticky .b31p-price-now { font-size: 34px; }
	.b31p .b31p-sticky .b31p-btn { width: auto; font-size: 18px; padding: 13px 16px; }
	.b31p .b31p-config { padding-bottom: 80px; }
}
@media (max-width: 560px) {
	.b31p .b31p-grid { grid-template-columns: minmax(0, 1fr); }
	.b31p .b31p-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.b31p .b31p-item-body strong { font-size: 18px; }
	.b31p .b31p-results { grid-template-columns: repeat(3, 1fr); max-height: 380px; }
	.b31p .b31p-swatches { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); }
}

/* section accueil (la section porte .b31p ET .b31p-home) */
.b31p.b31p-home { max-width: 1440px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) clamp(16px, 3vw, 40px); }
.b31p.b31p-home .b31p-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.b31p.b31p-home .b31p-grid { margin-top: clamp(24px, 2.5vw, 36px); }
.b31p.b31p-home .b31p-more { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- configurateur pas à pas ---------- */
.b31p .b31p-stepper { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; scroll-margin-top: 100px; }
.b31p .b31p-stepper-btn { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 2px solid var(--b31p-line); background: var(--b31p-paper); padding: 8px 10px; min-height: 58px; }
.b31p .b31p-stepper-n { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--b31p-ink); font-family: var(--b31p-display); font-weight: 900; font-size: 18px; }
.b31p .b31p-stepper-txt { min-width: 0; display: flex; flex-direction: column; }
.b31p .b31p-stepper-txt strong { font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; font-size: 18px; line-height: 1.05; }
.b31p .b31p-stepper-txt small { font-size: 13px; color: var(--b31p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.b31p .b31p-stepper-txt small i { flex: none; width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.b31p .b31p-stepper-btn.is-done .b31p-stepper-n { background: var(--b31p-accent); border-color: var(--b31p-accent); color: var(--b31p-paper); }
.b31p .b31p-stepper-btn.is-on { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-stepper-btn.is-on .b31p-stepper-n { background: var(--b31p-paper); color: var(--b31p-ink); border-color: var(--b31p-paper); }
.b31p .b31p-stepper-btn.is-on small { color: #cfcfcf; }

.b31p .b31p-article { border-top: 2px solid var(--b31p-line); padding-top: 18px; }
.b31p .b31p-eyebrow { margin: 0; font-family: var(--b31p-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--b31p-muted); }
.b31p .b31p-article-head h3 { font-family: var(--b31p-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4vw, 44px); line-height: 1; margin: 2px 0 18px; }
.b31p .b31p-article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.b31p .b31p-article-preview { position: sticky; top: 24px; }
.b31p .b31p-article-preview .b31p-item-media { border: 2px solid var(--b31p-line); }
.b31p .b31p-article-caption { margin: 8px 0 0; font-size: 15px; line-height: 1.35; }
.b31p .b31p-article-caption span { color: var(--b31p-muted); }
.b31p .b31p-article-choices .b31p-step { border-top: 0; padding: 0 0 22px; }
.b31p .b31p-step-head h4 { font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; margin: 0; }
.b31p .b31p-article-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 2px solid var(--b31p-line); padding-top: 18px; margin-top: 6px; }
.b31p .b31p-article-nav .b31p-btn { font-size: 18px; padding: 13px 18px; }

.b31p .b31p-summary-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.b31p .b31p-summary-item { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: var(--b31p-paper); border: 1.5px solid transparent; padding: 6px; }
.b31p .b31p-summary-item.is-on { border-color: var(--b31p-ink); }
.b31p .b31p-summary-thumb { width: 46px; aspect-ratio: 750 / 969; overflow: hidden; display: block; }
.b31p .b31p-summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.b31p .b31p-summary-txt { min-width: 0; display: flex; flex-direction: column; }
.b31p .b31p-summary-txt strong { font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; font-size: 16px; line-height: 1.1; }
.b31p .b31p-summary-txt small { font-size: 13px; color: var(--b31p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b31p .b31p-summary-price { font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
	.b31p .b31p-article-grid { grid-template-columns: 160px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
	.b31p .b31p-stepper { grid-template-columns: minmax(0, 1fr); }
	.b31p .b31p-stepper-btn { min-height: 0; }
	.b31p .b31p-article-grid { grid-template-columns: minmax(0, 1fr); }
	.b31p .b31p-article-preview { position: static; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
	.b31p .b31p-article-caption { margin: 0; }
	.b31p .b31p-article-nav .b31p-btn { flex: 1 1 100%; }
}


/* ---------- États survol / focus explicites (plus forts que le bouclier) ---------- */
.b31p .b31p-btn:is(:hover, :focus-visible) { background: var(--b31p-paper); color: var(--b31p-ink); border-color: var(--b31p-ink); }
.b31p .b31p-btn.is-light:is(:hover, :focus-visible) { background: transparent; border-color: var(--b31p-paper); color: var(--b31p-paper); }
.b31p .b31p-btn.is-outline:is(:hover, :focus-visible) { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-btn.is-cta:is(:hover, :focus-visible) { background: var(--b31p-paper); border-color: var(--b31p-ink); color: var(--b31p-ink); }
.b31p .b31p-btn[disabled]:is(:hover, :focus) { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-card { color: var(--b31p-ink); }
.b31p .b31p-card:is(:hover, :focus-visible) { color: var(--b31p-ink); }
.b31p .b31p-card.is-hero, .b31p .b31p-card.is-hero:is(:hover, :focus-visible) { color: var(--b31p-paper); }
.b31p .b31p-card:hover .b31p-btn { background: var(--b31p-paper); color: var(--b31p-ink); }
.b31p .b31p-card.is-hero:hover .b31p-btn.is-light { background: var(--b31p-paper); border-color: var(--b31p-paper); }
.b31p .b31p-back, .b31p .b31p-link { text-decoration: underline; text-underline-offset: 3px; color: var(--b31p-ink); }
.b31p .b31p-back:hover, .b31p .b31p-link:hover { color: var(--b31p-ink); text-decoration-thickness: 2px; }
.b31p .b31p-stepper-btn { background: var(--b31p-paper); color: var(--b31p-ink); border: 2px solid var(--b31p-line); padding: 8px 12px; }
.b31p .b31p-stepper-btn:hover { background: var(--b31p-soft); color: var(--b31p-ink); }
.b31p .b31p-stepper-btn.is-on, .b31p .b31p-stepper-btn.is-on:hover { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-summary-item { background: var(--b31p-paper); color: var(--b31p-ink); border: 1.5px solid transparent; padding: 6px; }
.b31p .b31p-summary-item:hover { background: var(--b31p-paper); color: var(--b31p-ink); border-color: #bbb; }
.b31p .b31p-summary-item.is-on, .b31p .b31p-summary-item.is-on:hover { border-color: var(--b31p-ink); }
.b31p .b31p-size { background: var(--b31p-paper); color: var(--b31p-ink); border: 1.5px solid var(--b31p-line); padding: 7px 8px; min-width: 46px; text-align: center; font-weight: 600; }
.b31p .b31p-size:hover { background: var(--b31p-soft); color: var(--b31p-ink); }
.b31p .b31p-size.is-on, .b31p .b31p-size.is-on:hover { background: var(--b31p-ink); color: var(--b31p-paper); }
.b31p .b31p-car { color: var(--b31p-ink); border: 2px solid transparent; padding: 0 0 6px; text-align: left; }
.b31p .b31p-car:hover { color: var(--b31p-ink); border-color: #bbb; }
.b31p .b31p-car.is-on, .b31p .b31p-car.is-on:hover { border-color: var(--b31p-ink); box-shadow: 0 0 0 2px var(--b31p-ink); }
.b31p .b31p-swatch { border: 1px solid rgba(0,0,0,.18); padding: 0; }
.b31p .b31p-swatch:hover { transform: scale(1.08); }

/* ---------- Pleine largeur + respiration sous l'en-tête et au-dessus du pied de page ---------- */
html:has(.b31p-full) { overflow-x: clip; }
.b31p.b31p-full {
	width: 100vw; max-width: 100vw;
	margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
	padding-left: max(16px, 3vw, calc((100vw - 1760px) / 2));
	padding-right: max(16px, 3vw, calc((100vw - 1760px) / 2));
	padding-top: clamp(32px, 4vw, 64px);
	padding-bottom: clamp(48px, 6vw, 96px);
}

/* ---------- Mise en page du configurateur (pleine largeur) ---------- */
.b31p .b31p-config-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 3vw, 56px); }
.b31p .b31p-label-block, .b31p .b31p-search { display: block; }
.b31p .b31p-search input { display: block; width: 100%; max-width: none; }
.b31p .b31p-article-grid { grid-template-columns: clamp(200px, 17vw, 300px) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 40px); }
.b31p .b31p-results { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); max-height: 600px; }
.b31p .b31p-swatches { max-width: none; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.b31p .b31p-step-car, .b31p .b31p-step-color { padding-bottom: 26px; }
.b31p .b31p-item-empty { font-family: var(--b31p-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 18px; color: rgba(0,0,0,.55); }
.b31p .b31p-summary { top: 24px; }
@media (max-width: 1100px) {
	.b31p .b31p-config-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
	.b31p .b31p-config-grid { grid-template-columns: minmax(0, 1fr); }
	.b31p .b31p-article-grid { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.b31p .b31p-article-grid { grid-template-columns: minmax(0, 1fr); }
	.b31p .b31p-results { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 420px; }
}

.b31p.is-configuring .b31p-head { display: none; }

/* ---------- Étape : titre + recherche en haut, aperçu aligné sur la grille des voitures ---------- */
.b31p .b31p-article { border-top: 2px solid var(--b31p-line); padding-top: 22px; }
.b31p .b31p-article-grid {
	display: grid; align-items: start;
	grid-template-columns: clamp(220px, 19vw, 320px) minmax(0, 1fr);
	grid-template-areas: "head search" "preview choices";
	column-gap: clamp(20px, 2.5vw, 40px); row-gap: 18px;
}
.b31p .b31p-article-head { grid-area: head; align-self: end; }
.b31p .b31p-article-head h3 { margin: 2px 0 0; }
.b31p .b31p-article-search { grid-area: search; align-self: end; }
.b31p .b31p-article-search .b31p-step-head { margin-bottom: 10px; }
.b31p .b31p-article-preview { grid-area: preview; position: sticky; top: 24px; display: block; }
.b31p .b31p-article-choices { grid-area: choices; min-width: 0; }
.b31p .b31p-article-choices .b31p-step-car { padding: 0 0 26px; }
.b31p .b31p-results { margin-top: 0; }
.b31p .b31p-preview-frame { aspect-ratio: 750 / 969; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.b31p .b31p-preview-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b31p .b31p-article-caption { margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.b31p .b31p-article-caption strong { font-family: var(--b31p-display); font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.b31p .b31p-caption-meta { display: flex; align-items: center; gap: 8px; color: var(--b31p-muted); }
.b31p .b31p-caption-meta i { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.2); display: inline-block; flex: none; }
.b31p .b31p-caption-meta b { margin-left: auto; color: var(--b31p-ink); font-weight: 600; }
@media (max-width: 960px) {
	.b31p .b31p-article-grid { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.b31p .b31p-article-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "preview" "search" "choices"; }
	.b31p .b31p-article-preview { position: static; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; }
	.b31p .b31p-article-caption { margin: 0; }
}

/* ---------- Grille des voitures : vignettes toujours alignées en haut ---------- */
.b31p .b31p-results { align-items: start; align-content: start; }
.b31p .b31p-car { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; align-self: start; height: auto; width: 100%; vertical-align: top; }
.b31p .b31p-car-img { display: block; width: 100%; aspect-ratio: 509 / 715; flex: none; }
.b31p .b31p-car-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.b31p .b31p-car-name { display: block; text-align: left; min-height: 2.4em; }
.b31p .b31p-stepper-btn, .b31p .b31p-summary-item { align-items: center; }
.b31p .b31p-results { padding: 4px; }
.b31p .b31p-car, .b31p .b31p-car:hover, .b31p .b31p-car.is-on, .b31p .b31p-car.is-on:hover { border: 0; padding: 0 0 6px; }
.b31p .b31p-car:hover { box-shadow: 0 0 0 2px #bbb; }
.b31p .b31p-car.is-on, .b31p .b31p-car.is-on:hover { box-shadow: 0 0 0 3px var(--b31p-ink); }
.b31p .b31p-car-name { padding: 6px 6px 0; }
.b31p .b31p-article-preview { margin-top: 4px; }
@media (max-width: 560px) { .b31p .b31p-article-preview { margin-top: 0; } }

/* Carte cadeau : visuel B31 (extension B31 Cartes cadeaux) */
.b31p .b31p-gift-art { display: block; height: 88%; max-height: 210px; width: auto; aspect-ratio: 973 / 1200; object-fit: cover; box-shadow: 0 8px 18px rgba(0,0,0,.2); }

/* ---------- Grille des packs : une colonne par carte (--b31p-cols, posé par le PHP) ---------- */
.b31p .b31p-offers { gap: clamp(24px, 2.5vw, 36px); }
.b31p .b31p-grid { grid-template-columns: repeat(var(--b31p-cols, 3), minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
@media (max-width: 1200px) { .b31p .b31p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .b31p .b31p-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Visuels des cartes : photo du produit seule ----------
   Les visuels des variantes (750 × 969) ont un bandeau d'infos sur leurs ~20 % du bas :
   on ne garde que le haut de l'image (photo du support). */
.b31p .b31p-visual img { aspect-ratio: 750 / 770; object-fit: cover; object-position: center top; }
