/* Plaques gravées ABS – configurateur (styles neutres, s'adaptent au thème) */
.pga {
	--pga-accent: #c8102e;
	--pga-line: rgba(0, 0, 0, .14);
	--pga-soft: rgba(0, 0, 0, .04);
	margin: 0 0 1.5em;
	font-size: 15px;
	line-height: 1.4;
	clear: both;
	width: 100%;
	box-sizing: border-box;
}
.pga *, .pga *::before, .pga *::after { box-sizing: border-box; }

/* Aperçu */
.pga-preview-wrap {
	position: sticky;
	top: var(--pga-sticky-top, 12px);
	z-index: 2;
	padding: 18px 16px 12px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: radial-gradient(120% 140% at 30% 0%, #f7f7f5 0%, #e7e6e2 100%);
	box-shadow: inset 0 0 0 1px var(--pga-line);
}
.pga-preview {
	width: 100%;
	max-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .15s;
}
.pga-preview svg {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 260px;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .28));
}
.pga-busy .pga-preview { opacity: .75; }
.pga-loading { padding: 28px 0; color: #666; font-size: 14px; }
.pga-preview-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	font-size: 13px;
	color: #555;
}
.pga-price { font-weight: 700; font-size: 18px; color: #111; }

/* Étapes */
.pga-step {
	border: 0;
	margin: 0 0 16px;
	padding: 0;
	min-width: 0;
}
.pga-step legend {
	padding: 0;
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.pga-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.pga-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.pga-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.pga-chip > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 7px 13px;
	border-radius: 8px;
	background: #fff;
	color: #222;
	box-shadow: inset 0 0 0 1px var(--pga-line);
	transition: box-shadow .12s, background .12s;
	line-height: 1.2;
}
.pga-chip:hover > span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.pga-chip input:checked + span {
	box-shadow: inset 0 0 0 2px var(--pga-accent);
	background: color-mix(in srgb, var(--pga-accent) 6%, #fff);
}
.pga-chip input:focus-visible + span { outline: 2px solid var(--pga-accent); outline-offset: 2px; }
.pga-chip small { color: #666; font-size: 12px; }

.pga-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-style: normal;
	font-weight: 700;
	font-size: 13px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}

/* Lignes de texte */
.pga-lines { margin-top: 10px; display: grid; gap: 8px; }
.pga-line { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; }
.pga-line[hidden] { display: none; }
.pga-line label { font-size: 13px; color: #555; margin: 0; }
.pga-line input[type=text] {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 8px 11px;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 8px;
	background: #fff;
	color: #111;
	font-size: 16px;
}
.pga-line input[type=text]:focus { border-color: var(--pga-accent); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--pga-accent) 25%, transparent); }
.pga-count-chars { font-size: 12px; color: #888; min-width: 38px; text-align: right; }

/* Polices */
.pga-font-chip > span { flex-direction: column; gap: 2px; min-width: 96px; padding: 8px 12px; }
.pga-font-chip b { font-size: 21px; font-weight: normal; line-height: 1.15; }

/* Dessins */
.pga-motifs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
	gap: 8px;
}
.pga-motif > span {
	width: 100%;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-height: 86px;
	padding: 8px 4px;
	text-align: center;
}
.pga-motif svg { width: 40px; height: 40px; fill: #1b1b1b; }
.pga-motif em { font-style: normal; font-size: 13px; color: #555; }
.pga-motif small { font-size: 11.5px; color: #444; line-height: 1.15; }
.pga-pos { margin-top: 10px; }
.pga-pos[hidden] { display: none; }

.pga-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.pga-check input { width: 18px; height: 18px; accent-color: var(--pga-accent); margin: 0; }

.pga-note { margin: 4px 0 0; font-size: 13px; color: #555; }
.pga-corner { width: 24px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pga-admin-test { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed #b0b0b0; border-radius: 8px; font-size: 13px; }
.pga-admin-test .pga-test-btn { display: block; margin: 0 0 4px; padding: 8px 12px; border: 1px solid #333; border-radius: 6px; background: #fff; color: #111; font-size: 14px; cursor: pointer; }
.pga-admin-test small { color: #666; }
.pga-error {
	margin: 4px 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecec;
	color: #8a1414;
	font-size: 14px;
}
.pga-error[hidden] { display: none; }

@media (max-width: 600px) {
	.pga-preview-wrap { border-radius: 0 0 12px 12px; padding: 12px 10px 8px; }
	.pga-preview, .pga-preview svg { max-height: 150px; }
	.pga-line { grid-template-columns: 1fr auto; }
	.pga-line label { grid-column: 1 / -1; }
	.pga-motifs { grid-template-columns: repeat(4, 1fr); }
}
.pga-hint { margin: 6px 0 0; font-size: 13px; }
.pga-num-line { grid-template-columns: 1fr auto; }
.pga-num-line input[type=text] { font-size: 20px; letter-spacing: .04em; }

/* FAQ dépliable sur les fiches produit */
.pga-faq-list { margin: 10px 0 0; border-top: 1px solid rgba(0, 0, 0, .12); }
.pga-faq { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.pga-faq summary { position: relative; padding: 15px 40px 15px 0; font-weight: 600; cursor: pointer; list-style: none; }
.pga-faq summary::-webkit-details-marker { display: none; }
.pga-faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; line-height: 1; color: var(--pga-accent, #c8102e); }
.pga-faq[open] summary::after { content: "−"; }
.pga-faq summary:focus-visible { outline: 2px solid var(--pga-accent, #c8102e); outline-offset: 2px; }
.pga-faq p { margin: 0 0 16px; }
