import { FileQuestionIcon } from "lucide-react";
import Link from "next/link";
import { Button } from "@/components/ui/button";

/**
 * Root 404 page. Kept intentionally sober and self-contained (it can render
 * outside the sidebar layout), mirroring the tone of under-construction-view.
 */
export default function NotFound() {
  return (
    <div className="flex min-h-svh flex-1 items-center justify-center p-8">
      <div className="flex max-w-md flex-col items-center text-center">
        <div className="mb-4 flex size-14 items-center justify-center rounded-full bg-muted text-muted-foreground">
          <FileQuestionIcon className="size-7" />
        </div>
        <h2 className="text-lg font-semibold">Page introuvable</h2>
        <p className="mt-2 text-sm text-muted-foreground">
          La page que vous cherchez n'existe pas ou a été déplacée.
        </p>
        <div className="mt-6">
          <Button asChild>
            <Link href="/keywords/reservoir">Retour au dashboard</Link>
          </Button>
        </div>
      </div>
    </div>
  );
}
