export function formatDateLong(iso) {
  if (!iso) return ""
  const d = new Date(iso)
  const date = new Intl.DateTimeFormat("fr-FR", {
    weekday: "long",
    day: "numeric",
    month: "long",
    year: "numeric",
  }).format(d)
  const time = new Intl.DateTimeFormat("fr-FR", {
    hour: "2-digit",
    minute: "2-digit",
    hour12: false,
  }).format(d)
  const [hours, minutes] = time.split(":")
  const formattedTime = minutes === "00" ? `${hours}h` : `${hours}h${minutes}`
  return `${date} — ${formattedTime}`
}
