<template>
  <div class="fixed inset-0 z-50 flex items-start justify-center overflow-y-auto bg-black/60 p-4 sm:p-8" @click.self="emit('close')">
    <div class="relative w-full max-w-3xl rounded-lg border border-border bg-surface-0 p-4 shadow-pop">
      <button
        type="button"
        class="absolute top-3 right-3 z-10 rounded p-1 text-fg-subtle hover:bg-surface-2 hover:text-fg"
        :aria-label="t('common.close')"
        @click="emit('close')"
      >
        <X :size="18" />
      </button>
      <HelpView />
    </div>
  </div>
</template>

<script setup lang="ts">
// Overlay Aide : rend la vue HelpView PAR-DESSUS l'IDE (Teleport via ModalHost), sans démonter
// IdeShell.
import { useI18n } from 'vue-i18n';
import { X } from '@lucide/vue';
import HelpView from '../../../views/HelpView.vue';

const emit = defineEmits<{ close: [] }>();
const { t } = useI18n();
</script>
