/* « Mes cinq priorités » : panneau, écran de résultat. */

.prio-dock__count { min-width: 44px; padding: 5px 10px; border-radius: 999px; background: var(--accent); text-align: center; font-weight: 700; letter-spacing: 0.02em; }

.prio-dock__backdrop { position: fixed; inset: 0; z-index: 1190; background: rgba(11, 26, 53, 0.55); }

.prio-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  padding: 18px var(--gap) calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--card);
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(11, 26, 53, 0.3);
}
.prio-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prio-panel__head h2 { font-size: 24px; }
.prio-panel__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.prio-panel__hint { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.prio-panel__notice { min-height: 0; margin-bottom: 10px; color: #B8321F; font-weight: 500; }
.prio-panel__notice:empty { display: none; }
.prio-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.prio-panel__reset { color: var(--muted); font-size: 15px; }

.prio-list { margin: 0; }
.prio-list__empty { padding: 18px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); }
.prio-list__items { margin: 0; padding: 0; list-style: none; }
.prio-item {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 8px 10px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.prio-item.is-dragging { border-color: var(--accent); box-shadow: 0 8px 24px rgba(18, 40, 76, 0.22); position: relative; z-index: 2; }
.prio-item__grip { display: grid; place-items: center; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.prio-item__grip svg { stroke-width: 3.4; }
.prio-item.is-dragging .prio-item__grip { cursor: grabbing; }
.prio-item__rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.prio-item__title { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.prio-item__theme { font-size: 13px; color: var(--muted); }
.prio-item__actions { display: flex; align-items: center; }
.prio-item__actions button, .prio-item__remove { display: grid; place-items: center; width: 32px; height: 40px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.prio-item__actions button:disabled { opacity: 0.25; cursor: default; }
.prio-item__remove { color: var(--muted); }

/* Écran de résultat */
.prio-result { display: grid; gap: 20px; }
.prio-result__todo { display: grid; gap: 10px; justify-items: start; }
.prio-result__todo h2 { font-size: 22px; }
.prio-result__grid { display: grid; gap: 28px; }
.prio-col__title { font-size: 24px; margin-bottom: 6px; }
.prio-col__sub, .prio-col__empty { margin-bottom: 12px; color: var(--muted); }
.prio-rank { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.prio-rank__item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.prio-rank__item.is-shared { background: var(--green-soft); }
.prio-rank__number { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent); text-align: center; }
.prio-rank__title { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.prio-rank__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.prio-result__sentence { padding: 18px 20px; border-left: 5px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); font-size: 18px; font-weight: 500; }
.prio-result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

@media (min-width: 900px) {
  .prio-dock__backdrop { background: rgba(11, 26, 53, 0.45); }
  .prio-panel { left: auto; top: 0; width: 460px; max-height: none; padding: 28px 28px 24px; border-radius: 0; box-shadow: -12px 0 40px rgba(11, 26, 53, 0.25); }
  .prio-panel__head h2 { font-size: 28px; }
  .prio-item__title { font-size: 16px; }

  .prio-result { gap: 32px; }
  .prio-result__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .prio-col__title { font-size: 30px; }
  .prio-rank__item { padding: 18px 20px; }
  .prio-rank__title { font-size: 19px; }

          }

/* Bouton du programme qui ouvre le panneau */
.recap__priorities { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 48px; padding: 0 8px 0 16px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.recap__priorities svg { color: #FFC857; }
