/* LightBox « Voir la démo » (motion-demo.html : paper-dialog with-backdrop). */
.motion-dialog { width:min(960px, calc(100vw - 32px), calc((100vh - 184px) * 16 / 9)); max-width:calc(100vw - 32px); max-height:calc(100vh - 32px); margin:auto; padding:0; overflow:hidden; border:0; border-radius:16px; color:var(--writecontrol-primary-text-color, #2e2e2e); background:var(--writecontrol-primary-background-color, #ffffff); box-shadow:0 16px 24px 2px rgba(0,0,0,.14), 0 6px 30px 5px rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.4); }
.motion-dialog::backdrop { background:rgba(0,0,0,.6); }
.motion-dialog .motion-header { display:flex; align-items:center; gap:12px; margin:0; padding:20px; border-bottom:1px solid var(--writecontrol-block-separator-color, #e9e7e8); }
.motion-dialog .motion-header-icon { flex:none; width:24px; height:24px; fill:var(--writecontrol-primary-color, #ff917d); }
.motion-dialog .motion-title { flex:1; min-width:0; margin:0; color:var(--writecontrol-secondary-text-color, #19146e); font-family:'Inter',sans-serif; font-size:20px; font-weight:500; line-height:1.25; }
.motion-dialog .motion-close { display:grid; place-items:center; flex:none; width:32px; height:32px; margin:0; padding:0; border:0; border-radius:50%; color:var(--writecontrol-secondary-text-color, #19146e); background:transparent; box-shadow:none; transform:none; transition:none; }
.motion-dialog .motion-close:hover { background:var(--writecontrol-tab-hover, #FFEBE5); }
.motion-dialog .motion-close:focus-visible { outline:2px solid var(--writecontrol-primary-color, #ff917d); outline-offset:1px; }
.motion-dialog .motion-close svg { width:24px; height:24px; fill:currentColor; }
.motion-dialog .motion-content { margin:0; padding:20px; }
.motion-dialog .motion-video { position:relative; width:100%; height:0; padding-bottom:calc(56.25% + 64px); overflow:hidden; border-radius:12px; background:var(--writecontrol-tab-background, #fcfaf9); }
.motion-dialog .motion-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
@media (max-width:600px) {
    .motion-dialog { width:calc(100vw - 16px); max-width:calc(100vw - 16px); border-radius:12px; }
    .motion-dialog .motion-header { padding:14px 16px; gap:10px; }
    .motion-dialog .motion-title { font-size:17px; }
    .motion-dialog .motion-content { padding:12px; }
    .motion-dialog .motion-video { border-radius:8px; }
}
