* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #f4f6f8;
  min-height: 100vh;
  padding: 30px 20px;
  color: #1f2937;
}

/* =============================
   CONTAINER
============================= */

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* =============================
   HEADER
============================= */

.header {
  background: #ffffff;
  color: #111827;
  padding: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.header h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}

.header p {
  color: #6b7280;
  font-size: 14px;
}

/* =============================
   CONTENT
============================= */

.content {
  padding: 30px;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* distinct looks for evaluation vs. adjustments */
.section.evaluation-section {
  background: #eff6ff; /* light blue */
  border-left: 4px solid #3b82f6;
  padding: 20px 24px;
  border-radius: 6px;
}
.section.evaluation-section h2 {
  color: #1e3a8a;
}
/* evaluation table: fix widths for Critère, Note and Cote; comment column flexible */
.section.evaluation-section .table {
  /* default table layout allows columns to size automatically */
  table-layout: auto;
}
.section.evaluation-section .table th:nth-child(1) {
  width: 240px; /* fixed width for criteria names */
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section.evaluation-section .table th:nth-child(2),
.section.evaluation-section .table th:nth-child(3) {
  width: 70px; /* fixed width for Note and Cote columns */
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* allow the Commentaire column to wrap when necessary */
.section.evaluation-section .table th:nth-child(4),
.section.evaluation-section .table td:nth-child(4) {
  white-space: normal;
}

.section.adjustments-section {
  background: #fffbeb; /* light amber */
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  border-radius: 6px;
}
.section.adjustments-section h2 {
  color: #9a3412;
}

/* slightly different table header inside adjustments */
.section.adjustments-section .table th {
  background: #fef3c7;
}

/* =============================
   NOTES
============================= */

.note-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.note-item {
  background: #f9fafb;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}

.note-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.note-value {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}

/* =============================
   TABLE
============================= */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

/* preserve line breaks in comments/details */
.comment-text,
.comment-detail {
  white-space: pre-wrap;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.table tr:hover {
  background: #f9fafb;
}

/* highlight the footer/total row inside tables */
.table tr.section-row td {
  font-weight: 600;
  background: #f9fafb;
}

/* =============================
   GRADE BADGES (SOFT COLORS)
============================= */

.grade-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  min-width: 44px;
  text-align: center;
}

.grade-badge.green {
  background: #d1fae5;
  color: #065f46;
}

.grade-badge.amber {
  background: #fef3c7;
  color: #92400e;
}

.grade-badge.orange {
  background: #ffedd5;
  color: #9a3412;
}

.grade-badge.red {
  background: #fee2e2;
  color: #991b1b;
}

.grade-badge.neutral {
  background: #e5e7eb;
  color: #374151;
}

/* evaluation message shown under title */
.evaluation-message {
  background: #e6ffed; /* very light green */
  border-left: 4px solid #22c55e; /* green accent */
  padding: 12px 16px;
  margin-top: 8px;
  border-radius: 4px;
  color: #065f46; /* dark green text */
  font-size: 14px;
  white-space: pre-wrap; /* retain line breaks */
}

/* =============================
   SCORE SUMMARY
============================= */

.scores-summary {
  margin-top: 12px;
  font-weight: 600;
  color: #111827;
}

/* =============================
   POSITIVE / NEGATIVE TEXT
============================= */

.positive {
  color: #047857;
  font-weight: 500;
}

.negative {
  color: #b91c1c;
  font-weight: 500;
}

/* =============================
   COMMENTS
============================= */

.comment-list {
  list-style: none;
  margin-top: 6px;
  padding: 0;
}

.comment-item {
  margin-bottom: 6px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #f9fafb;
  border-radius: 6px;
}

.comment-check {
  font-size: 16px;
  font-weight: 600;
}

.comment-check.positive {
  color: #047857;
}

.comment-check.negative {
  color: #b91c1c;
}

.comment-check.neutral {
  color: #6b7280;
}

.comment-text {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
}

.comment-detail {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
  /* removed italic style per user request */
  padding-left: 4px;
  border-left: 2px solid #d1d5db;
}

/* =============================
   EMPTY STATE
============================= */

.empty-state {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
  font-size: 14px;
}

.unavailable-card {
  border: 1px solid #fecaca;
  background: #fff1f2;
  border-radius: 10px;
  padding: 26px;
  max-width: 720px;
  margin: 20px auto;
}

.unavailable-card h2 {
  color: #9f1239;
  margin-bottom: 10px;
  font-size: 24px;
}

.unavailable-card p {
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 8px;
}
