/* Digital Moto – Vue 360° */
.dm360 { --dm360-accent: #D7261E; --dm360-dark: #100F0D; position: relative; margin: 0 0 24px; font-family: inherit; }
.dm360-stage { position: relative; background: #fff; border-radius: 6px; overflow: hidden; }
.dm360-frame { position: relative; width: 100%; aspect-ratio: var(--dm360-ar, 1.333); margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.dm360-frame:focus-visible { box-shadow: inset 0 0 0 3px var(--dm360-accent); }
.dm360-frame.is-dragging { cursor: grabbing; }
.dm360-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; max-width: none; }

.dm360-loader { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(320px, 80%); background: rgba(16,15,13,.85); color: #fff; border-radius: 6px; padding: 12px 14px; font-size: 13px; text-align: center; }
.dm360-loader[hidden] { display: none; }
.dm360-loader-bar { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.dm360-loader-bar span { display: block; height: 100%; width: 0; background: var(--dm360-accent); transition: width .2s; }

.dm360-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(16,15,13,.8); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; pointer-events: none; opacity: 0; transition: opacity .4s; white-space: nowrap; }
.dm360.is-ready .dm360-hint { opacity: 1; }
.dm360 .dm360-hint.is-hidden { opacity: 0; }
.dm360-hint-icon { margin-right: 6px; }

.dm360-pins { position: absolute; inset: 0; pointer-events: none; }
.dm360-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--dm360-accent); color: #fff; font: 700 14px/1 sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.dm360-pin[hidden] { display: none; }
.dm360-pin::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--dm360-accent); opacity: .7; animation: dm360-pulse 1.8s ease-out infinite; }
.dm360-pin svg, .dm360-list-num svg { width: 60%; height: 60%; display: block; }
.dm360-pin--eclair { background: #F5A300; color: #100F0D; }
.dm360-pin--eclair::after { border-color: #F5A300; }
.dm360-pin--carre { background: #100F0D; color: #fff; border-radius: 6px; }
.dm360-pin--carre::after { border-color: #100F0D; border-radius: 9px; }
.dm360-pin:hover, .dm360-pin.is-active { transform: translate(-50%, -50%) scale(1.15); }
.dm360-pin.is-active { box-shadow: 0 0 0 3px #100F0D, 0 2px 8px rgba(0,0,0,.35); }
.dm360-pin:focus-visible { outline: 3px solid var(--dm360-dark); outline-offset: 3px; }
@keyframes dm360-pulse { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }

.dm360-panel { position: absolute; top: 12px; right: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; background: #fff; color: #100F0D; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 18px 18px 16px; z-index: 3; }
.dm360-panel[hidden] { display: none; }
.dm360-panel-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: #100F0D; padding: 0; }
.dm360-panel-title { font-weight: 700; font-size: 17px; margin: 0 36px 8px 0; }
.dm360-panel-text { margin: 0 0 12px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.dm360-panel-imglink { display: block; cursor: zoom-in; }
.dm360-panel-imglink[hidden] { display: none; }
.dm360-panel-img { display: block; width: 100%; height: auto; border-radius: 4px; }

.dm360-zoom { position: absolute; inset: 0; background: rgba(16,15,13,.92); z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dm360-zoom[hidden] { display: none; }
.dm360-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dm360-zoom-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: #fff; color: #100F0D; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }

.dm360-controls { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dm360-btn { width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 50%; border: 1px solid #ccc; background: #fff; color: #100F0D; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dm360-btn:hover { border-color: #100F0D; }
.dm360-btn:focus-visible { outline: 3px solid var(--dm360-accent); outline-offset: 2px; }
.dm360-play { background: var(--dm360-dark); color: #fff; border-color: var(--dm360-dark); font-size: 15px; }

.dm360-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dm360-list li { margin: 0; padding: 0; }
.dm360-list-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid #ccc; border-radius: 999px; background: #fff; color: #100F0D; font-size: 14px; cursor: pointer; }
.dm360-list-btn:hover { border-color: #100F0D; }
.dm360-list-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--dm360-accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* Plein écran */
.dm360-stage:fullscreen { background: #fff; display: flex; align-items: center; justify-content: center; }
.dm360-stage:fullscreen .dm360-frame { width: min(100vw, calc(100vh * var(--dm360-ar, 1.333))); }
.dm360-stage:-webkit-full-screen { background: #fff; display: flex; align-items: center; justify-content: center; }
.dm360-stage:-webkit-full-screen .dm360-frame { width: min(100vw, calc(100vh * var(--dm360-ar, 1.333))); }
.dm360.dm360-pseudo-full { position: fixed; inset: 0; z-index: 99999; background: #fff; margin: 0; padding: 12px; overflow: auto; }

@media (max-width: 600px) {
	.dm360-panel { top: auto; bottom: 8px; right: 8px; left: 8px; width: auto; max-height: 70%; }
	.dm360-pin { width: 30px; height: 30px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.dm360-pin::after { animation: none; }
}
.dm360-list-num.dm360-pin--eclair { background: #F5A300; color: #100F0D; }
.dm360-list-num.dm360-pin--carre { background: #100F0D; color: #fff; }
.dm360-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; color: #4A4640; }
.dm360-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.dm360-legend .dm360-list-num { width: 22px; height: 22px; }
.dm360-panel-type { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; background: var(--dm360-accent); color: #fff; }
.dm360-panel-type.dm360-pin--eclair { background: #F5A300; color: #100F0D; }
.dm360-panel-type.dm360-pin--carre { background: #100F0D; color: #fff; }
.dm360-list-num.dm360-pin--carre, .dm360-panel-type.dm360-pin--carre { border-radius: 5px; }
.dm360-panel-type.dm360-pin--carre { border-radius: 999px; }
