/* Voir sur mon mur : le bouton reprend le style des boutons du thème (classe .button),
   ces règles ne servent que de base et se règlent avec les variables ci-dessous. */
.vsmm {
	--vsmm-fond: #1c1a17;
	--vsmm-texte: #fff;
	--vsmm-rayon: 999px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 1em 0;
	clear: both;
}
:where(.vsmm) .vsmm-bouton,
.vsmm-dialogue .vsmm-bouton-ar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--vsmm-rayon, 999px);
	background: var(--vsmm-fond, #1c1a17);
	color: var(--vsmm-texte, #fff);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}
.vsmm .vsmm-bouton { display: inline-flex; align-items: center; gap: 10px; }
.vsmm .vsmm-icone { flex: none; }
.vsmm-bouton:focus-visible,
.vsmm-fermer:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.vsmm-legende { font-size: .875em; opacity: .75; }

/* Fenêtre d'aperçu (ordinateur, ou repli sur mobile) */
html.vsmm-ouvert { overflow: hidden; }
.vsmm-dialogue {
	width: min(980px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #f4efe6;
	color: #1c1a17;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
}
.vsmm-dialogue::backdrop { background: rgba(20, 18, 16, .6); }
.vsmm-tete {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 16px 8px 20px;
}
.vsmm-titre { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.vsmm-dims { margin: 2px 0 0; font-size: .95rem; opacity: .75; font-variant-numeric: tabular-nums; }
.vsmm-fermer {
	flex: none;
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(28, 26, 23, .08); color: inherit; cursor: pointer;
}
.vsmm-corps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 20px;
	padding: 8px 20px 20px;
}
.vsmm-scene {
	position: relative;
	min-height: 320px;
	height: min(62vh, 560px);
	background: #dcd3c3;
	border-radius: 8px;
	overflow: hidden;
}
.vsmm-scene model-viewer { width: 100%; height: 100%; display: block; --poster-color: transparent; }
.vsmm-scene .vsmm-bouton-ar { position: absolute; right: 12px; bottom: 12px; }
.vsmm-chargement { position: absolute; inset: auto 0 45% 0; text-align: center; margin: 0; opacity: .7; }
.vsmm-cote { display: flex; flex-direction: column; gap: 12px; }
.vsmm-qr { background: #fff; border-radius: 8px; padding: 10px; }
.vsmm-qr svg { display: block; width: 100%; height: auto; }
.vsmm-aide { margin: 0; font-size: .95rem; line-height: 1.45; }
.vsmm-aide-2 { opacity: .7; font-size: .875rem; }
@media (max-width: 720px) {
	.vsmm-corps { grid-template-columns: 1fr; }
	.vsmm-cote { flex-direction: row; align-items: center; }
	.vsmm-qr { width: 120px; flex: none; }
	.vsmm-qr[hidden] + .vsmm-aide[hidden] + .vsmm-aide-2 { text-align: center; width: 100%; }
	.vsmm-scene { height: 55vh; }
}
@media (prefers-color-scheme: dark) {
	.vsmm-dialogue { background: #1f1c19; color: #f1ece2; }
	.vsmm-scene { background: #2e2a26; }
	.vsmm-fermer { background: rgba(241, 236, 226, .1); }
}
