/* Hypersure - visionneuse 3D des produits */
.hs3d {
	--hs-navy: #0B1061;
	--hs-blue: #087CE3;
	--hs-orange: #FF9222;
	--hs-orange-dark: #E98015;
	--hs-text: #3A3A3A;
	--hs-muted: #787878;
	--hs-line: #E3E7EF;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	color: var(--hs-text);
	font-family: Poppins, sans-serif;
}
.hs3d *, .hs3d *::before, .hs3d *::after { box-sizing: border-box; }

/* Scene */
.hs3d__stage {
	position: relative;
	height: 580px;
	border-radius: 24px;
	overflow: hidden;
	background: radial-gradient(110% 85% at 50% 30%, #FFFFFF 0%, #F2F5FA 62%, #E6ECF5 100%);
	border: 1px solid var(--hs-line);
	box-shadow: 0 30px 60px -36px rgba(11, 16, 97, 0.35);
}
.hs3d.is-fullscreen .hs3d__stage, .hs3d__stage:fullscreen { height: 100%; border-radius: 0; border: 0; }
.hs3d__viewer {
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
	--poster-color: transparent;
	--progress-bar-color: var(--hs-blue);
	--progress-bar-height: 3px;
}
.hs3d__badge {
	position: absolute;
	top: 18px;
	left: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--hs-line);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: var(--hs-navy);
	pointer-events: none;
}
.hs3d__badge svg { width: 16px; height: 16px; flex: none; }
.hs3d__status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 14px;
	color: var(--hs-muted);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
}
.hs3d__status::before {
	content: "";
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 3px solid rgba(8, 124, 227, 0.2);
	border-top-color: var(--hs-blue);
	animation: hs3d-spin 0.8s linear infinite;
}
.hs3d.is-loading .hs3d__status { opacity: 1; }
.hs3d__error { display: none; }
.hs3d.is-error .hs3d__status { opacity: 0; }
.hs3d.is-error .hs3d__error {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-size: 15px;
	color: var(--hs-muted);
}
@keyframes hs3d-spin { to { transform: rotate(360deg); } }

/* Barre d'outils */
.hs3d__toolbar {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 2px;
	max-width: calc(100% - 24px);
	padding: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--hs-line);
	box-shadow: 0 10px 30px -14px rgba(11, 16, 97, 0.35);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.hs3d__toolbar::-webkit-scrollbar { display: none; }
.hs3d__sep { flex: none; width: 1px; height: 22px; margin: 0 4px; background: var(--hs-line); }
.hs3d button.hs3d__tb,
.hs3d button.hs3d__tb:hover,
.hs3d button.hs3d__tb:focus {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--hs-navy);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.hs3d button.hs3d__tb:hover { background: #EEF3FB; }
.hs3d button.hs3d__tb:focus-visible { outline: 2px solid var(--hs-blue); outline-offset: 1px; }
.hs3d button.hs3d__tb[aria-pressed="true"] { background: var(--hs-navy); color: #FFFFFF; }
.hs3d button.hs3d__tb.is-icon { padding: 0; width: 38px; }
.hs3d button.hs3d__tb svg { width: 18px; height: 18px; }
.hs3d button.hs3d__tb[hidden] { display: none; }

/* Bouton realite augmentee (affiche seulement si l'appareil le permet) */
.hs3d button.hs3d__ar,
.hs3d button.hs3d__ar:hover,
.hs3d button.hs3d__ar:focus {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--hs-navy);
	box-shadow: 0 8px 20px -8px rgba(11, 16, 97, 0.6);
	color: #FFFFFF;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.hs3d button.hs3d__ar svg { width: 18px; height: 18px; }

/* Points d'interet */
.hs3d button.hs3d__hotspot,
.hs3d button.hs3d__hotspot:hover,
.hs3d button.hs3d__hotspot:focus {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	background: var(--hs-blue);
	box-shadow: 0 0 0 5px rgba(8, 124, 227, 0.22), 0 4px 10px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: opacity 0.3s;
}
.hs3d button.hs3d__hotspot:not([data-visible]) { opacity: 0; pointer-events: none; }
.hs3d__hotspot-label {
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%);
	padding: 7px 11px;
	border-radius: 8px;
	background: var(--hs-navy);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}

/* Fiche produit */
.hs3d__ref {
	display: inline-block;
	padding: 7px 12px;
	border-radius: 999px;
	background: #E7F1FD;
	color: var(--hs-blue);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
}
.hs3d .hs3d__name {
	margin: 16px 0 12px;
	color: #111111;
	font-family: Poppins, sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}
.hs3d__desc { margin: 0 0 22px; font-size: 16px; line-height: 1.65; }
.hs3d__specs { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.hs3d__specs li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; }
.hs3d__specs li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: var(--hs-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hs3d__label {
	margin: 0 0 12px;
	color: var(--hs-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hs3d__picker {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 30px;
}
.hs3d button.hs3d__pick,
.hs3d button.hs3d__pick:hover,
.hs3d button.hs3d__pick:focus {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	min-width: 0;
	margin: 0;
	padding: 10px 6px 12px;
	border: 1.5px solid var(--hs-line);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: none;
	color: var(--hs-text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hs3d button.hs3d__pick:hover { border-color: var(--hs-blue); transform: translateY(-2px); }
.hs3d button.hs3d__pick:focus-visible { outline: 2px solid var(--hs-blue); outline-offset: 2px; }
.hs3d button.hs3d__pick.is-active { border-color: var(--hs-blue); box-shadow: 0 0 0 3px rgba(8, 124, 227, 0.15); }
.hs3d button.hs3d__pick:disabled { cursor: default; transform: none; border-color: var(--hs-line); }
.hs3d button.hs3d__pick:disabled .hs3d__thumb { opacity: 0.55; filter: grayscale(0.4); }
.hs3d__thumb {
	display: block;
	width: 100%;
	max-width: 70px;
	aspect-ratio: 1;
	border-radius: 12px;
	background: #F3F5F9 center / cover no-repeat;
}
.hs3d__pick-name { display: block; overflow-wrap: anywhere; }
.hs3d__soon { display: block; color: var(--hs-orange-dark); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.hs3d a.hs3d__cta,
.hs3d a.hs3d__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	border: 2px solid var(--hs-orange);
	border-radius: 25px;
	background: var(--hs-orange);
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s;
}
.hs3d a.hs3d__cta:hover, .hs3d a.hs3d__cta:focus { background: var(--hs-orange-dark); border-color: var(--hs-orange-dark); color: #FFFFFF; }

@media (max-width: 1024px) {
	.hs3d { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.hs3d__stage { height: 480px; }
}
@media (max-width: 767px) {
	.hs3d__stage { height: 400px; border-radius: 18px; }
	.hs3d .hs3d__name { font-size: 25px; }
	.hs3d__picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hs3d button.hs3d__tb, .hs3d button.hs3d__tb:hover, .hs3d button.hs3d__tb:focus { height: 34px; min-width: 34px; padding: 0 10px; font-size: 12px; }
	.hs3d button.hs3d__tb.is-icon { width: 34px; }
	.hs3d__badge { display: none; }
	.hs3d a.hs3d__cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.hs3d__status::before { animation: none; }
	.hs3d button.hs3d__pick { transition: none; }
}
@media (pointer: coarse) {
	.hs3d button.hs3d__tb[data-zoom] { display: none; }
}
.hs3d__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hs3d a.hs3d__buy[hidden] { display: none; }
.hs3d a.hs3d__cta--ghost,
.hs3d a.hs3d__cta--ghost:visited { background: transparent; color: var(--hs-orange-dark); }
.hs3d a.hs3d__cta--ghost:hover,
.hs3d a.hs3d__cta--ghost:focus { background: var(--hs-orange); border-color: var(--hs-orange); color: #FFFFFF; }
@media (max-width: 767px) {
	.hs3d__actions { flex-direction: column; align-items: stretch; }
}
