/* v2-packs.css — bibliothèque par pack de séance + modale eval pack */

.packs-wrap { display: flex; flex-direction: column; gap: 14px; }

.pack-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pack-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s;
}
.pack-hdr:hover { filter: brightness(1.08); }
.pack-ico { font-size: 32pt; line-height: 1; flex-shrink: 0; }
.pack-hdr-text { flex: 1; min-width: 0; }
.pack-titre {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 17pt;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.pack-desc {
  font-size: 12pt;
  margin: 4px 0 6px;
  opacity: 0.95;
  line-height: 1.3;
}
.pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11pt;
}
.pack-bloc-badge {
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 11pt;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.pack-comp-pill {
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 10pt;
  font-weight: 700;
}
.pack-duree, .pack-nbres {
  background: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10pt;
}
.pack-eval-tag {
  background: #fff;
  color: #1b3a63;
  padding: 2px 10px;
  border-radius: 10px;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 10pt;
}
.pack-toggle {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 0;
  font-size: 16pt;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
}
.pack-toggle:hover { background: rgba(255,255,255,0.4); }

.pack-body {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fafbfd;
}

.pack-plans-prof {
  background: #f3eef9;
  border: 1px solid #d6c7ea;
  border-left: 4px solid #6b3a8a;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 4px;
  font-size: 12pt;
}
.pack-plans-prof-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #4a2070;
  font-weight: 700;
}
.pack-plans-prof-hdr small {
  font-weight: 400;
  color: #7a5a9a;
  font-size: 10.5pt;
}
.pack-plans-prof-ico { font-size: 14pt; }
.pack-plans-prof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pack-plan-prof-btn {
  background: #fff;
  border: 1px solid #c4afdf;
  color: #4a2070;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11.5pt;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.12s;
}
.pack-plan-prof-btn:hover {
  background: #6b3a8a;
  color: #fff;
  border-color: #6b3a8a;
}

.pack-resource {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  transition: all 0.12s;
}
.pack-resource:hover {
  border-color: #ff6b35;
  background: #fff8e1;
}
.pack-resource.res-plan { border-left: 4px solid #6b3a8a; }
.pack-resource.res-html { border-left: 4px solid #1b3a63; }
.pack-resource.res-pdf  { border-left: 4px solid #c53030; }
.pack-resource.res-eval { border-left: 4px solid #38a169; }
.pack-resource.res-form { border-left: 4px solid #2d8659; }
.pack-resource.res-misc { border-left: 4px solid #888; }
.pack-resource.res-user { border-left: 4px solid #dd6b20; background: #fffaf0; }

.res-ico { font-size: 16pt; text-align: center; }
.res-info { min-width: 0; }
.res-titre {
  font-size: 13pt;
  color: #1b3a63;
  font-weight: 700;
  line-height: 1.25;
}
.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
  font-size: 10pt;
}
.res-type-tag {
  background: #f4f6fa;
  color: #555;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.res-duree {
  background: #fff8e1;
  color: #c08600;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.res-pdf-tag {
  background: #c53030;
  color: #fff;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 9pt;
}
.res-stats {
  background: #f0f8f0;
  color: #2d8659;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.res-warn {
  background: #fff8e1;
  color: #c08600;
  padding: 1px 8px;
  border-radius: 8px;
}
.res-actions { display: flex; gap: 4px; }
.res-btn {
  background: #fff;
  border: 1px solid #c5cbd6;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 11pt;
  font-family: 'Calibri', sans-serif;
}
.res-btn:hover { background: #f4f6fa; border-color: #1b3a63; }
.res-btn.res-open { background: #1b3a63; color: #fff; border-color: #1b3a63; }
.res-btn.res-distrib { background: #ff6b35; color: #fff; border-color: #ff6b35; }
.res-btn.res-user-del:hover { background: #fff0f0; border-color: #c53030; color: #c53030; }

.pack-eval-launcher {
  margin-top: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
  border: 2px solid #ff6b35;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pack-eval-info { flex: 1; min-width: 200px; }
.pack-eval-info strong { color: #1b3a63; font-family: 'Trebuchet MS', sans-serif; font-size: 14pt; }
.pack-eval-info p { margin: 2px 0 0; font-size: 11pt; color: #666; }
.pack-eval-btn {
  background: #ff6b35;
  color: #fff;
  border: 0;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 14pt;
  cursor: pointer;
  transition: all 0.12s;
}
.pack-eval-btn:hover {
  background: #e55a25;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* Modale d'éval pack */
.packeval-overlay {
  position: fixed; inset: 0;
  background: rgba(27, 58, 99, 0.55);
  z-index: 9994;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 30px 20px;
}
.packeval-card {
  background: #fff;
  border-radius: 8px;
  width: 100%; max-width: 720px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  font-family: 'Calibri', sans-serif;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 60px);
  overflow: hidden;
}
.packeval-card header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  color: #fff;
}
.packeval-ico { font-size: 28pt; line-height: 1; }
.packeval-card h2 {
  font-family: 'Trebuchet MS', sans-serif;
  margin: 0; font-size: 16pt; color: #fff;
}
.packeval-card header p { margin: 2px 0 0; font-size: 11pt; opacity: 0.92; }
.packeval-card .btn-x {
  background: rgba(255,255,255,0.25);
  color: #fff; border: 0;
  font-size: 18pt; cursor: pointer; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%;
  margin-left: auto;
}

.packeval-pick { padding: 12px 18px; border-bottom: 1px solid #e0e4ea; }
.packeval-pick label {
  display: block;
  font-weight: 700;
  color: #1b3a63;
  font-size: 11pt;
  margin-bottom: 4px;
  font-family: 'Trebuchet MS', sans-serif;
}
.packeval-pick select {
  width: 100%;
  padding: 8px 12px;
  font-family: 'Calibri', sans-serif;
  font-size: 13pt;
  border: 1px solid #c5cbd6;
  border-radius: 4px;
}

.packeval-noteband {
  padding: 12px 18px;
  background: #888;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 0.3s;
}
.packeval-noteband .big {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 32pt;
  font-weight: 700;
  line-height: 1;
}
.packeval-noteband .sur { font-size: 16pt; opacity: 0.85; }
.packeval-noteband .brut { margin-left: auto; font-size: 12pt; opacity: 0.95; }

.packeval-grille {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.packeval-pick-msg {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 30px;
  font-size: 13pt;
}

.packeval-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
}
.packeval-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.packeval-item-id {
  background: #1b3a63;
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 11pt;
}
.packeval-item-titre {
  flex: 1;
  font-size: 12pt;
  color: #1b3a63;
}
.packeval-item-max {
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  color: #888;
  font-size: 11pt;
}
.packeval-niv-row { display: flex; gap: 4px; }
.packeval-niv-btn {
  --c: #888;
  background: #fff;
  color: var(--c);
  border: 2px solid var(--c);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: 700;
  font-size: 12pt;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  line-height: 1.1;
  transition: all 0.12s;
}
.packeval-niv-btn small {
  font-size: 9pt;
  font-weight: 400;
  opacity: 0.8;
}
.packeval-niv-btn:hover { background: rgba(0,0,0,0.05); }
.packeval-niv-btn.selected {
  background: var(--c);
  color: #fff;
  transform: scale(1.05);
}

.packeval-footer {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #e0e4ea;
  background: #f4f6fa;
  align-items: center;
}
.packeval-footer #packeval-status {
  flex: 1;
  font-size: 11pt;
  color: #666;
}
