.acout {
	--acout-accent: #a161bf;
	--acout-accent-light: #f5eef8;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 24px;
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fff;
}

.acout *,
.acout *::before,
.acout *::after {
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.acout {
		grid-template-columns: 1fr;
		padding: 14px;
	}
}

.acout-field {
	margin-bottom: 18px;
}

.acout-field > label,
.acout-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.acout-field small {
	display: block;
	margin-top: 4px;
	color: #888;
}

.acout input[type="text"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.acout input[type="text"]:focus {
	border-color: var(--acout-accent);
	outline: none;
}

.acout input[type="range"] {
	width: 100%;
	accent-color: var(--acout-accent);
}

.acout-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.acout-choice {
	margin: 0;
	cursor: pointer;
}

.acout-choice input {
	position: absolute;
	opacity: 0;
}

.acout-choice span {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 14px;
}

.acout-choice input:checked + span {
	border-color: var(--acout-accent);
	background: var(--acout-accent);
	color: #fff;
}

.acout-choice input:focus-visible + span {
	outline: 2px solid var(--acout-accent);
	outline-offset: 2px;
}

.acout-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 12px;
	background: var(--acout-accent-light);
	border-radius: 4px;
}

.acout-preview svg {
	width: 100%;
	max-height: 420px;
}

.acout-empty {
	margin: 0;
	color: #888;
}

.acout-infos {
	margin: 14px 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.acout-infos li {
	padding: 3px 0;
}

.acout-infos .acout-small {
	color: #888;
	font-size: 12px;
}

.acout-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	border-radius: 4px;
	background: var(--acout-accent);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.acout-btn:hover {
	filter: brightness(0.92);
}

.acout-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.acout-note {
	margin-top: 10px;
	color: #777;
	font-size: 13px;
}

/* Champs communs */
.acout input[type="number"],
.acout select {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
}

.acout input[type="number"]:focus,
.acout select:focus {
	border-color: var(--acout-accent);
	outline: none;
}

.acout-hint,
.acout-small {
	display: block;
	margin: -8px 0 18px;
	color: #888;
	font-size: 12px;
}

.acout-small {
	margin: 12px 0 0;
}

.acout-big {
	margin: 0 0 14px;
	text-align: center;
}

.acout-big strong {
	display: block;
	color: var(--acout-accent);
	font-size: 34px;
	line-height: 1.2;
}

.acout-big span {
	color: #777;
	font-size: 14px;
}

/* Calculateur de parts */
.acparts[data-mode="moule"] [data-acparts-show="invites"],
.acparts[data-mode="invites"] [data-acparts-show="moule"] {
	display: none;
}

.acparts-tier {
	margin-bottom: 10px;
	padding: 10px;
	background: var(--acout-accent-light);
	border-radius: 4px;
}

.acparts-tier-name {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 13px;
}

.acparts-tier-fields {
	display: flex;
	gap: 10px;
}

.acparts-tier-fields label {
	flex: 1;
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	color: #666;
}

.acparts-tier-fields label span {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #333;
	font-size: 14px;
}

.acparts-figure {
	margin: 0 0 14px;
	padding: 12px;
	background: #fcfafd;
	border-radius: 4px;
	text-align: center;
}

.acparts-figure svg {
	width: 100%;
	max-width: 320px;
	max-height: 300px;
}

.acparts-figure figcaption {
	margin-top: 6px;
	color: #777;
	font-size: 13px;
}

.acparts-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.acparts-table th,
.acparts-table td {
	padding: 6px 8px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.acparts-table td:last-child,
.acparts-table th:last-child {
	text-align: right;
	white-space: nowrap;
}

.acparts-table small {
	color: #999;
}

.acparts-table .is-current td {
	background: var(--acout-accent-light);
	font-weight: 700;
}

.acparts-sugg {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.acparts-sugg li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	padding: 10px 12px;
	border: 1px solid #eee;
	border-radius: 4px;
	font-size: 14px;
}

.acparts-sugg li.is-best {
	border-color: var(--acout-accent);
	background: var(--acout-accent-light);
}

.acparts-sugg li span {
	color: #777;
	white-space: nowrap;
}
