/* =====================================================
 * Espace prof — Timeline-style dashboard
 * Same OKLCH brand tokens + Odyssey visual language as
 * SkillsBook v1.1 (slide-in hover, striped rows, etc.).
 * ===================================================== */

.prof-page { max-width: 1280px; margin: 0 auto; padding: 24px 28px; }

/* ===== Hero ===== */
.prof-hero {
  background: linear-gradient(120deg, oklch(0.97 0.03 152.5) 0%, oklch(0.98 0.025 79.4) 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.prof-hero__greeting { flex-grow: 1; min-width: 240px; }
.prof-hero__greeting h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: #2a2e2a;
}
.prof-hero__greeting .sub {
  color: #6b7280;
  font-size: 13px;
  margin: 6px 0 0;
}

.prof-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.prof-chip {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 86px;
}
.prof-chip__v {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #2a2e2a;
}
.prof-chip__l {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== Layout ===== */
.prof-cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
@media (max-width: 920px) { .prof-cols { grid-template-columns: 1fr; } }

/* ===== Cards ===== */
.prof-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.prof-card__header {
  padding: 12px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prof-card__header h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #2a2e2a;
}
.prof-card__header .count {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
}
.prof-card__header .ico { font-size: 16px; }

/* ===== Timeline ===== */
.prof-day {
  padding: 12px 20px 16px;
  border-top: 1px solid #e5e7eb;
}
.prof-day:first-child { border-top: 0; }

.prof-day__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}
.prof-day__label--today {
  color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  font-weight: 600;
}

.prof-event {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 9px 0 9px 26px;
  text-decoration: none;
  color: inherit;
}
.prof-event + .prof-event { border-top: 1px solid #f3f4f6; }
.prof-event::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  transform: translateY(-50%);
}
.prof-event--upcoming::before { background: var(--hudayi-green, oklch(0.467 0.131 152.5)); }
.prof-event--done::before { background: #9ca3af; }
.prof-event--abs::before { background: #ff9800; }

.prof-event__time {
  font-size: 12.5px;
  color: #2a2e2a;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.prof-event__time .dur {
  display: block;
  font-size: 10px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 1px;
}
.prof-event__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prof-event__main .classe { font-size: 13.5px; font-weight: 500; }
.prof-event__main .sub { font-size: 11.5px; color: #6b7280; }
.prof-event__cta { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Buttons (compact pill) ===== */
.prof-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.prof-btn:hover { transform: translateY(-1px); text-decoration: none; }
.prof-btn--primary {
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  color: #fff;
}
.prof-btn--primary:hover { background: oklch(0.42 0.13 152.5); color: #fff; }
.prof-btn--ghost {
  background: #fff;
  color: #2a2e2a;
  border-color: #e5e7eb;
}
.prof-btn--ghost:hover {
  border-color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  color: #2a2e2a;
}

/* ===== Side rows ===== */
.prof-side-row {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  text-decoration: none;
  color: #2a2e2a;
  transition: background 0.12s;
  position: relative;
}
.prof-side-row:first-of-type { border-top: 0; }
.prof-side-row:hover { background: #f5f4ef; color: #2a2e2a; text-decoration: none; }
.prof-side-row::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  transition: width 0.15s ease-out;
}
.prof-side-row:hover::after { width: 2px; }

.prof-side-row__ico {
  width: 32px;
  height: 32px;
  background: oklch(0.95 0.04 152.5);
  color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.prof-side-row__ico--gold {
  background: oklch(0.95 0.06 79.4);
  color: var(--hudayi-gold, oklch(0.70 0.107 79.4));
}
.prof-side-row__main { flex-grow: 1; min-width: 0; }
.prof-side-row__name {
  font-size: 13px;
  font-weight: 500;
  display: block;
  color: #2a2e2a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prof-side-row__stat {
  font-size: 11px;
  color: #6b7280;
  margin-top: 1px;
}

/* ===== Mini-bars (présence par classe) ===== */
.prof-presence { padding: 14px 16px; }
.prof-presence__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #2a2e2a;
}
.prof-presence__row .l { color: #6b7280; }
.prof-presence__row .v { font-weight: 500; font-variant-numeric: tabular-nums; }
.prof-presence__bar {
  height: 5px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 12px;
}
.prof-presence__bar:last-child { margin-bottom: 0; }
.prof-presence__bar .fill {
  height: 100%;
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
}
.prof-presence__bar .fill--warn { background: #ff9800; }
.prof-presence__bar .fill--bad { background: #dc2626; }
.prof-presence__empty {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding: 12px 0;
}

/* ===== Empty states ===== */
.prof-empty {
  padding: 14px 18px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

/* ===== Presence pill (past séance) ===== */
.prof-pres-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.prof-pres-pill--good { background: #dcfce7; color: #166534; }
.prof-pres-pill--warn { background: #fef3c7; color: #92400e; }
.prof-pres-pill--bad { background: #fee2e2; color: #991b1b; }

/* =====================================================
 * Émargement screen
 * ===================================================== */

.em-page { max-width: 1400px; margin: 0 auto; padding: 24px 28px 110px; }

/* Hero card with context */
.em-hero {
  background: linear-gradient(120deg, oklch(0.97 0.03 152.5) 0%, oklch(0.98 0.025 79.4) 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.em-hero__main { flex-grow: 1; min-width: 240px; }
.em-hero__main h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
  color: #2a2e2a;
}
.em-hero__main .meta { color: #6b7280; font-size: 13px; margin: 6px 0 0; }
.em-hero__main .meta .sep { margin: 0 6px; opacity: 0.5; }
.em-hero__module-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(45, 90, 61, 0.10);
  color: #2d5a3d;
  font-weight: 500;
  font-size: 12px;
}

.em-hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.em-hero__chip {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 13px;
  text-align: center;
  min-width: 76px;
}
.em-hero__chip .v {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  color: #2a2e2a;
}
.em-hero__chip .l {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Card body */
.em-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.em-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1.4fr) auto minmax(220px, 1fr) 40px;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  align-items: center;
  position: relative;
  transition: background 0.12s;
}
.em-row:first-of-type { border-top: 0; }
.em-row:nth-of-type(even) { background: #fafaf7; }
.em-row::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 0;
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  transition: width 0.15s ease-out;
}
.em-row:hover::after { width: 2px; }

.em-row__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: oklch(0.95 0.04 152.5);
  color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 13px;
}
.em-row__name {
  font-weight: 500; font-size: 14px; color: #2a2e2a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.em-row__name .sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 1px;
}

/* Status pill group */
.em-statut {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.em-statut input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.em-statut__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.1s;
  user-select: none;
}
.em-statut__pill:hover { transform: translateY(-1px); }
.em-statut input[type="radio"]:checked + .em-statut__pill--present {
  background: #dcfce7; color: #166534; border-color: #86efac;
}
.em-statut input[type="radio"]:checked + .em-statut__pill--absent {
  background: #fee2e2; color: #991b1b; border-color: #fca5a5;
}
.em-statut input[type="radio"]:checked + .em-statut__pill--retard {
  background: #fef3c7; color: #92400e; border-color: #fcd34d;
}
.em-statut input[type="radio"]:checked + .em-statut__pill--excuse {
  background: #e0e7ff; color: #3730a3; border-color: #a5b4fc;
}
.em-statut input[type="radio"]:focus-visible + .em-statut__pill {
  outline: 2px solid var(--hudayi-green, oklch(0.467 0.131 152.5));
  outline-offset: 2px;
}

/* Comment input */
.em-comment {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  font-family: inherit;
  color: #2a2e2a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.em-comment:focus {
  outline: none;
  border-color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hudayi-green, #2f7d4f) 18%, transparent);
}

/* SkillsBook icon */
.em-skillsbook {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: oklch(0.95 0.06 79.4);
  color: var(--hudayi-gold, oklch(0.70 0.107 79.4));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s;
}
.em-skillsbook:hover {
  transform: translateY(-1px);
  background: oklch(0.90 0.08 79.4);
  text-decoration: none;
}

/* Empty state */
.em-empty {
  padding: 24px;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

/* Sticky footer */
.em-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
}
.em-footer__info { font-size: 12.5px; color: #6b7280; }
.em-footer__cta { display: flex; gap: 10px; }
.em-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.em-btn:hover { transform: translateY(-1px); }
.em-btn--primary {
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  color: #fff;
}
.em-btn--primary:hover { background: oklch(0.42 0.13 152.5); color: #fff; }
.em-btn--ghost {
  background: #fff;
  color: #2a2e2a;
  border-color: #e5e7eb;
}
.em-btn--ghost:hover { border-color: var(--hudayi-green-soft, oklch(0.62 0.10 152.5)); color: #2a2e2a; }

@media (max-width: 760px) {
  .em-row {
    grid-template-columns: 36px 1fr 40px;
    grid-template-areas:
      "av name sb"
      ".  stat stat"
      ".  cmt  cmt";
    row-gap: 8px;
  }
  .em-row__avatar { grid-area: av; }
  .em-row__name { grid-area: name; }
  .em-row__skillsbook-cell { grid-area: sb; }
  .em-row__statut-cell { grid-area: stat; }
  .em-row__comment-cell { grid-area: cmt; }
}
