  :root {
    --bg: #FAF7F2;
    --bg-card: #FFFFFF;
    --bg-sidebar: #1C1917;
    --bg-sidebar-hover: #292524;
    --text-primary: #1C1917;
    --text-secondary: #78716C;
    --text-sidebar: #E7E5E4;
    --text-sidebar-muted: #A8A29E;
    --accent-conseil: #D97706;
    --accent-conseil-bg: #FEF3C7;
    --accent-entretien: #7C3AED;
    --accent-entretien-bg: #EDE9FE;
    --accent-stage: #0891B2;
    --accent-stage-bg: #CFFAFE;
    --accent-cours: #059669;
    --accent-cours-bg: #D1FAE5;
    --accent-admin: #DC2626;
    --accent-admin-bg: #FEE2E2;
    --border: #E7E5E4;
    --border-light: #F5F5F4;
    --shadow-sm: 0 1px 2px rgba(28,25,23,0.04);
    --shadow-md: 0 4px 12px rgba(28,25,23,0.06);
    --shadow-lg: 0 12px 32px rgba(28,25,23,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar-w: 260px;
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    width: var(--sidebar-w); min-height: 100vh; background: var(--bg-sidebar);
    color: var(--text-sidebar); display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar-brand { padding: 28px 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .sidebar-brand h1 { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
  .sidebar-brand h1 .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent-conseil), #F59E0B); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
  .sidebar-brand p { font-size: 12px; color: var(--text-sidebar-muted); margin-top: 4px; padding-left: 42px; }
  .sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
  .nav-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-sidebar-muted); padding: 16px 12px 6px; font-weight: 600; }
  .nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 400; color: var(--text-sidebar-muted); transition: all 0.15s ease; }
  .nav-item:hover { background: var(--bg-sidebar-hover); color: var(--text-sidebar); }
  .nav-item.active { background: rgba(217,119,6,0.15); color: #FCD34D; }
  .nav-item .nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .nav-item .badge { margin-left: auto; background: rgba(255,255,255,0.1); color: var(--text-sidebar-muted); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; }
  .nav-item.active .badge { background: rgba(252,211,77,0.2); color: #FCD34D; }
  .sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.06); }
  .user-card { display: flex; align-items: center; gap: 10px; padding: 8px; }
  .user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #A78BFA); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: white; }
  .user-info .user-name { font-size: 13px; font-weight: 500; color: var(--text-sidebar); }
  .user-info .user-role { font-size: 11px; color: var(--text-sidebar-muted); }

  /* ── MAIN ── */
  .main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 36px; background: var(--bg); position: sticky; top: 0; z-index: 50; }
  .topbar-left h2 { font-family: 'DM Serif Display', serif; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
  .topbar-left p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
  .topbar-actions { display: flex; align-items: center; gap: 10px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; border: none; cursor: pointer; transition: all 0.15s ease; font-family: 'DM Sans', sans-serif; }
  .btn-primary { background: var(--bg-sidebar); color: white; }
  .btn-primary:hover { background: #292524; transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
  .btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }
  .search-bar { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; width: 220px; transition: all 0.2s ease; }
  .search-bar:focus-within { border-color: var(--accent-conseil); box-shadow: 0 0 0 3px rgba(217,119,6,0.1); width: 280px; }
  .search-bar input { border: none; background: none; font-size: 13px; color: var(--text-primary); outline: none; width: 100%; font-family: 'DM Sans', sans-serif; }
  .search-bar input::placeholder { color: var(--text-secondary); }
  .content { padding: 0 36px 36px; flex: 1; }
  .page { display: none; }
  .page.active { display: block; animation: fadeUp 0.35s ease; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

  /* ── STATS ── */
  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
  .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all 0.2s ease; position: relative; overflow: hidden; }
  .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
  .stat-card:nth-child(1)::before { background: var(--accent-conseil); }
  .stat-card:nth-child(2)::before { background: var(--accent-entretien); }
  .stat-card:nth-child(3)::before { background: var(--accent-stage); }
  .stat-card:nth-child(4)::before { background: var(--accent-cours); }
  .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .stat-card .stat-icon { font-size: 20px; margin-bottom: 12px; }
  .stat-card .stat-value { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 500; line-height: 1; }
  .stat-card .stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
  .stat-card .stat-trend { font-size: 11px; margin-top: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; }
  .stat-trend.up { background: #D1FAE5; color: #059669; }

  .two-col { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
  .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .card-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border-light); }
  .card-header h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .card-body { padding: 8px 0; }

  /* ── TASK ── */
  .task-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); transition: background 0.1s ease; cursor: pointer; }
  .task-item:last-child { border-bottom: none; }
  .task-item:hover { background: #FAFAF9; }
  .task-check { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px; margin-top: 1px; flex-shrink: 0; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
  .task-check:hover { border-color: var(--accent-conseil); background: var(--accent-conseil-bg); }
  .task-check.checked { background: var(--accent-cours); border-color: var(--accent-cours); }
  .task-check.checked::after { content: '✓'; color: white; font-size: 12px; font-weight: 700; }
  .task-content { flex: 1; min-width: 0; }
  .task-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
  .task-check.checked + .task-content .task-title { text-decoration: line-through; color: var(--text-secondary); }
  .task-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
  .tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
  .tag-conseil { background: var(--accent-conseil-bg); color: var(--accent-conseil); }
  .tag-entretien { background: var(--accent-entretien-bg); color: var(--accent-entretien); }
  .tag-stage { background: var(--accent-stage-bg); color: var(--accent-stage); }
  .tag-cours { background: var(--accent-cours-bg); color: var(--accent-cours); }
  .tag-admin { background: var(--accent-admin-bg); color: var(--accent-admin); }
  .task-date { font-size: 11px; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
  .task-date.urgent { color: var(--accent-admin); font-weight: 600; }
  .task-class { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
  .priority-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .priority-high { background: var(--accent-admin); }
  .priority-medium { background: var(--accent-conseil); }
  .priority-low { background: var(--accent-cours); }

  /* ── TIMELINE ── */
  .timeline { padding: 16px 20px; }
  .timeline-day { margin-bottom: 20px; }
  .timeline-day:last-child { margin-bottom: 0; }
  .timeline-date { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
  .timeline-date::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
  .timeline-event { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 6px; transition: background 0.1s ease; cursor: pointer; font-size: 13px; }
  .timeline-event:hover { background: #FAFAF9; }
  .timeline-event .event-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-secondary); width: 50px; flex-shrink: 0; }
  .timeline-event .event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .timeline-event .event-label { font-weight: 500; flex: 1; }
  .timeline-event .event-sub { font-size: 12px; color: var(--text-secondary); }

  /* ── CLASSES ── */
  .classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .class-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden; }
  .class-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent-conseil); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
  .class-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .class-card:hover::after { transform: scaleX(1); }
  .class-card .class-name { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 4px; }
  .class-card .class-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
  .class-card .class-stats { display: flex; gap: 16px; }
  .class-card .class-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 500; }
  .class-card .class-stat-label { font-size: 11px; color: var(--text-secondary); }
  .class-card .class-progress { margin-top: 16px; height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
  .class-card .class-progress-bar { height: 100%; border-radius: 2px; background: var(--accent-cours); }

  /* ── KANBAN ── */
  .kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; min-height: 500px; }
  .kanban-col { background: #F5F5F4; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
  .kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
  .kanban-col-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .kanban-col-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--bg-card); padding: 2px 8px; border-radius: 6px; color: var(--text-secondary); }
  .kanban-cards { flex: 1; display: flex; flex-direction: column; gap: 10px; }
  .kanban-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; cursor: grab; transition: all 0.15s ease; }
  .kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .kanban-card .kc-title { font-size: 13px; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
  .kanban-card .kc-meta { display: flex; align-items: center; justify-content: space-between; }
  .kanban-card .kc-due { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); }

  /* ── CALENDAR ── */
  .calendar-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .cal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
  .cal-header h3 { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; }
  .cal-nav { display: flex; gap: 6px; }
  .cal-nav button { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
  .cal-nav button:hover { background: var(--bg); }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
  .cal-day-header { padding: 10px; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
  .cal-cell { min-height: 90px; padding: 8px; border-bottom: 1px solid var(--border-light); border-right: 1px solid var(--border-light); cursor: pointer; }
  .cal-cell:nth-child(7n) { border-right: none; }
  .cal-cell:hover { background: #FAFAF9; }
  .cal-cell .cal-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
  .cal-cell.today .cal-num { background: var(--bg-sidebar); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .cal-cell.other-month .cal-num { color: #D6D3D1; }
  .cal-event { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ══════════════════════════════════════════
     GANTT
     ══════════════════════════════════════════ */
  .gantt-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .gantt-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; gap: 10px; }
  .gantt-toolbar .gantt-filters { display: flex; gap: 6px; flex-wrap: wrap; }
  .gantt-zoom { display: flex; gap: 4px; }
  .gantt-zoom button { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s ease; }
  .gantt-zoom button.active { background: var(--bg-sidebar); color: white; border-color: var(--bg-sidebar); }
  .gantt-zoom button:hover:not(.active) { background: var(--bg); }

  .gantt-container { overflow-x: auto; overflow-y: auto; max-height: 600px; }

  .gantt-header-row { display: flex; position: sticky; top: 0; z-index: 10; background: #FAFAF9; border-bottom: 1px solid var(--border); }
  .gantt-label-col { width: 260px; min-width: 260px; padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; border-right: 1px solid var(--border); background: inherit; display: flex; align-items: center; position: sticky; left: 0; z-index: 11; }
  .gantt-timeline-header { display: flex; flex: 1; }
  .gantt-day-col { min-width: 48px; width: 48px; text-align: center; padding: 6px 2px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-secondary); border-right: 1px solid var(--border-light); line-height: 1.3; }
  .gantt-day-col.weekend { background: rgba(0,0,0,0.025); }
  .gantt-day-col.today-col { background: rgba(217,119,6,0.1); }
  .gantt-day-col .day-num { font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .gantt-day-col .day-name { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
  .gantt-day-col.today-col .day-num { color: var(--accent-conseil); }

  .gantt-row { display: flex; border-bottom: 1px solid var(--border-light); min-height: 52px; }
  .gantt-row:hover { background: #FAFAF9; }
  .gantt-row-label { width: 260px; min-width: 260px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--border); position: sticky; left: 0; background: var(--bg-card); z-index: 5; }
  .gantt-row:hover .gantt-row-label { background: #FAFAF9; }
  .gantt-row-label .gr-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
  .gantt-row-label .gr-tag { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; flex-shrink: 0; }

  .gantt-row-timeline { display: flex; flex: 1; position: relative; align-items: center; }
  .gantt-cell { min-width: 48px; width: 48px; height: 100%; border-right: 1px solid var(--border-light); }
  .gantt-cell.weekend { background: rgba(0,0,0,0.015); }
  .gantt-cell.today-col { background: rgba(217,119,6,0.05); }

  .gantt-bar { position: absolute; top: 50%; transform: translateY(-50%); height: 30px; border-radius: 7px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 600; color: white; white-space: nowrap; cursor: pointer; transition: filter 0.15s, box-shadow 0.15s; z-index: 4; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
  .gantt-bar:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  .gantt-bar.cat-conseil { background: linear-gradient(135deg, #D97706, #F59E0B); }
  .gantt-bar.cat-entretien { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
  .gantt-bar.cat-stage { background: linear-gradient(135deg, #0891B2, #22D3EE); }
  .gantt-bar.cat-cours { background: linear-gradient(135deg, #059669, #34D399); }
  .gantt-bar.cat-admin { background: linear-gradient(135deg, #DC2626, #F87171); }
  .gantt-bar.done-bar { opacity: 0.45; }
  .gantt-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent-admin); z-index: 3; pointer-events: none; }
  .gantt-today-line::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; background: var(--accent-admin); border-radius: 50%; }

  /* ══════════════════════════════════════════
     PROGRESSION
     ══════════════════════════════════════════ */
  .progression-grid { display: flex; flex-direction: column; gap: 20px; }
  .prog-class-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .prog-class-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.1s; }
  .prog-class-header:hover { background: #FAFAF9; }
  .prog-class-title { font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 400; display: flex; align-items: center; gap: 12px; }
  .prog-class-avg { display: flex; align-items: center; gap: 12px; }
  .prog-avg-badge { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
  .prog-avg-good { background: var(--accent-cours-bg); color: var(--accent-cours); }
  .prog-avg-mid { background: var(--accent-conseil-bg); color: var(--accent-conseil); }
  .prog-avg-low { background: var(--accent-admin-bg); color: var(--accent-admin); }
  .prog-chevron { font-size: 16px; color: var(--text-secondary); transition: transform 0.2s; }
  .prog-class-card.open .prog-chevron { transform: rotate(180deg); }
  .prog-class-body { display: none; padding: 0 24px 24px; }
  .prog-class-card.open .prog-class-body { display: block; animation: fadeUp 0.25s ease; }
  .prog-subject { padding: 18px 0; border-bottom: 1px solid var(--border-light); }
  .prog-subject:last-child { border-bottom: none; }
  .prog-subject-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .prog-subject-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .prog-subject-name .prog-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .prog-subject-pct { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; }
  .prog-bar-track { height: 10px; border-radius: 5px; background: var(--border-light); overflow: hidden; }
  .prog-bar-fill { height: 100%; border-radius: 5px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); position: relative; }
  .prog-bar-fill::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3)); border-radius: 5px; }
  .prog-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .prog-chip { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); cursor: default; transition: all 0.15s; }
  .prog-chip.done-chip { background: var(--accent-cours-bg); border-color: transparent; color: var(--accent-cours); }
  .prog-chip.current-chip { background: var(--accent-conseil-bg); border-color: var(--accent-conseil); color: var(--accent-conseil); font-weight: 600; }
  .prog-chip.future-chip { background: var(--bg); color: var(--text-secondary); }
  .prog-chip .chip-icon { margin-right: 4px; }

  /* ── PROG VIEW TOGGLE ── */
  .prog-view-toggle { display: flex; gap: 4px; }
  .prog-view-toggle button {
    padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--bg-card); font-size: 11px; font-weight: 600; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: all 0.15s; color: var(--text-secondary);
  }
  .prog-view-toggle button.pv-active { background: var(--bg-sidebar); color: white; border-color: var(--bg-sidebar); }
  .prog-view-toggle button:hover:not(.pv-active) { background: var(--bg); }

  /* ── MINI GANTT ── */
  .mini-gantt { margin-top: 14px; overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #FAFAF9; }

  .mg-month-header {
    display: flex; position: sticky; top: 0; z-index: 2;
    border-bottom: 1px solid var(--border);
    background: #F5F5F4;
  }
  .mg-month-label-spacer { width: 180px; min-width: 180px; border-right: 1px solid var(--border); position: sticky; left: 0; background: #F5F5F4; z-index: 3; font-size: 11px; color: var(--text-secondary); display: flex; align-items: center; padding: 0 12px; font-weight: 600; }
  .mg-months { display: flex; flex: 1; }
  .mg-month-col {
    text-align: center; padding: 6px 0;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600;
    color: var(--text-secondary); border-right: 1px solid var(--border-light);
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  .mg-month-col.mg-current { background: rgba(217,119,6,0.08); color: var(--accent-conseil); }

  .mg-row {
    display: flex; min-height: 40px;
    border-bottom: 1px solid var(--border-light);
  }
  .mg-row:last-child { border-bottom: none; }
  .mg-row:hover { background: rgba(0,0,0,0.015); }

  .mg-row-label {
    width: 180px; min-width: 180px;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 6px;
    border-right: 1px solid var(--border);
    position: sticky; left: 0; background: #FAFAF9; z-index: 2;
    font-size: 11px; font-weight: 500; color: var(--text-primary);
  }
  .mg-row:hover .mg-row-label { background: #F5F5F0; }
  .mg-row-label .mg-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .mg-row-label .mg-ch-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; }

  .mg-row-timeline { display: flex; flex: 1; position: relative; align-items: center; }
  .mg-cell { border-right: 1px solid var(--border-light); height: 100%; }
  .mg-cell.mg-current { background: rgba(217,119,6,0.04); }

  .mg-bar {
    position: absolute; top: 50%; transform: translateY(-50%);
    height: 22px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: white;
    cursor: default; z-index: 1;
    transition: filter 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    padding: 0 6px;
  }
  .mg-bar:hover { filter: brightness(1.08); box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
  .mg-bar.mg-done { opacity: 0.9; }
  .mg-bar.mg-current-bar { box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor, 0 3px 10px rgba(0,0,0,0.15); }
  .mg-bar.mg-future { opacity: 0.35; }

  .mg-today-line {
    position: absolute; top: 0; bottom: 0; width: 2px;
    background: var(--accent-admin); z-index: 2; pointer-events: none;
  }
  .mg-today-line::before {
    content: "Auj."; position: absolute; top: -1px; left: 4px;
    font-size: 8px; font-weight: 700; color: var(--accent-admin);
    font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
    letter-spacing: 0.04em; white-space: nowrap;
  }

  /* ── MODAL ── */
  .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(28,25,23,0.4); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; }
  .modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .modal { background: var(--bg-card); border-radius: 16px; width: 520px; max-width: 90vw; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1); }
  @keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 16px; }
  .modal-header h3 { font-family: 'DM Serif Display', serif; font-size: 20px; font-weight: 400; }
  .modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
  .modal-close:hover { background: var(--border); }
  .modal-body { padding: 0 28px 28px; }
  .form-group { margin-bottom: 18px; }
  .form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 6px; }
  .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--text-primary); background: var(--bg-card); transition: all 0.15s ease; outline: none; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-conseil); box-shadow: 0 0 0 3px rgba(217,119,6,0.1); }
  .form-group textarea { resize: vertical; min-height: 80px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
  .active-filter { background: var(--bg-sidebar) !important; color: white !important; border-color: var(--bg-sidebar) !important; }

  .mobile-toggle { display: none; position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-sidebar); color: white; border: none; font-size: 22px; cursor: pointer; z-index: 150; box-shadow: var(--shadow-lg); }
  @media (max-width: 1024px) { .stats-row { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } .kanban { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main { margin-left: 0; } .mobile-toggle { display: flex; align-items: center; justify-content: center; } .topbar { padding: 16px 20px; } .content { padding: 0 20px 20px; } .kanban { grid-template-columns: 1fr; } }
  .empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
  .empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #D6D3D1; border-radius: 3px; }

/* ── Loading state ── */
.loading { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 14px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   STUDENTS & CLASS DETAIL
   ══════════════════════════════════════════ */
.class-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.class-detail-header .back-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: color 0.15s;
}
.class-detail-header .back-link:hover { color: var(--text-primary); }
.class-detail-actions { display: flex; gap: 8px; }

.class-info-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px; padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.class-info-bar .cib-name {
  font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400;
}
.class-info-bar .cib-badge {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; background: var(--accent-conseil-bg); color: var(--accent-conseil);
}
.class-info-bar .cib-stat {
  font-size: 13px; color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.student-list-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.student-list-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.student-list-header h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.student-list-header .sl-actions { display: flex; gap: 8px; }

.student-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.student-row:last-child { border-bottom: none; }
.student-row:hover { background: #FAFAF9; }

.student-row .sr-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-secondary); width: 28px; text-align: right; flex-shrink: 0;
}
.student-row .sr-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: white; flex-shrink: 0;
}
.student-row .sr-name { flex: 1; }
.student-row .sr-nom { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.student-row .sr-prenom { font-size: 13px; color: var(--text-secondary); }
.student-row .sr-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.student-row:hover .sr-actions { opacity: 1; }
.student-row .sr-actions button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-card); cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.student-row .sr-actions button:hover { background: var(--bg); }
.student-row .sr-actions button.sr-del:hover { background: var(--accent-admin-bg); border-color: var(--accent-admin); }

.import-zone {
  margin-top: 12px; padding: 16px; border: 2px dashed var(--border);
  border-radius: var(--radius-sm); background: var(--bg); transition: all 0.2s;
}
.import-zone.active { border-color: var(--accent-conseil); background: var(--accent-conseil-bg); }
.import-zone textarea {
  width: 100%; min-height: 140px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; font-size: 13px;
  font-family: 'JetBrains Mono', monospace; line-height: 1.6;
  color: var(--text-primary); background: var(--bg-card); resize: vertical; outline: none;
}
.import-zone textarea:focus { border-color: var(--accent-conseil); box-shadow: 0 0 0 3px rgba(217,119,6,0.1); }
.import-zone textarea::placeholder { color: #A8A29E; font-family: 'JetBrains Mono', monospace; }
.import-hint { font-size: 11px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.import-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.import-preview { margin-top: 12px; font-size: 12px; color: var(--text-secondary); }
.import-preview .ip-row { display: flex; gap: 8px; padding: 3px 0; }
.import-preview .ip-nom { font-weight: 600; color: var(--text-primary); text-transform: uppercase; }
.import-preview .ip-prenom { color: var(--accent-entretien); }

/* School year select styling */
.school-year-select { display: flex; gap: 6px; flex-wrap: wrap; }
.school-year-select .sy-option {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; transition: all 0.15s;
}
.school-year-select .sy-option:hover { border-color: var(--accent-conseil); }
.school-year-select .sy-option.sy-active {
  background: var(--bg-sidebar); color: white; border-color: var(--bg-sidebar);
}

/* ══════════════════════════════════════════
   GRAND ORAL
   ══════════════════════════════════════════ */
.go-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.go-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: 12px 16px; text-align: left; background: #FAFAF9; border-bottom: 1px solid var(--border); }
.go-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 13px; vertical-align: middle; }
.go-table tr:last-child td { border-bottom: none; }
.go-table tr:hover td { background: #FAFAF9; }
.go-table tr { cursor: pointer; transition: background 0.1s; }

.go-student-name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.go-student-name .go-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }

.go-sujet-cell { max-width: 280px; }
.go-sujet-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.go-sujet-empty { font-size: 12px; color: #D6D3D1; font-style: italic; }

.go-status-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.03em; display: inline-block; }
.go-status-non_commence { background: #F5F5F4; color: #A8A29E; }
.go-status-en_preparation { background: var(--accent-conseil-bg); color: var(--accent-conseil); }
.go-status-en_entrainement { background: var(--accent-entretien-bg); color: var(--accent-entretien); }
.go-status-pret { background: var(--accent-cours-bg); color: var(--accent-cours); }

.go-note-badge { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; }
.go-note-high { color: var(--accent-cours); }
.go-note-mid { color: var(--accent-conseil); }
.go-note-low { color: var(--accent-admin); }
.go-pres-count { font-size: 11px; color: var(--text-secondary); }

/* Grand Oral Detail View */
.go-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.go-detail-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.go-detail-title { font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 400; display: flex; align-items: center; gap: 10px; }
.go-detail-body { padding: 20px 24px; }

.go-subject-section { margin-bottom: 28px; }
.go-subject-section:last-child { margin-bottom: 0; }
.go-subject-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.go-subject-label .go-type-dot { width: 8px; height: 8px; border-radius: 50%; }

.go-sujet-display { font-size: 14px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); border-left: 3px solid var(--accent-entretien); }
.go-sujet-display.spe { border-left-color: var(--accent-conseil); }
.go-sujet-display.de { border-left-color: var(--accent-stage); }

.go-status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.go-status-select { display: flex; gap: 4px; }
.go-status-select button { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.go-status-select button.active { color: white; }
.go-status-select button.active.st-non_commence { background: #A8A29E; border-color: #A8A29E; }
.go-status-select button.active.st-en_preparation { background: var(--accent-conseil); border-color: var(--accent-conseil); }
.go-status-select button.active.st-en_entrainement { background: var(--accent-entretien); border-color: var(--accent-entretien); }
.go-status-select button.active.st-pret { background: var(--accent-cours); border-color: var(--accent-cours); }

/* Presentations list */
.go-pres-list { margin-top: 16px; }
.go-pres-item { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 10px; transition: box-shadow 0.15s; }
.go-pres-item:hover { box-shadow: var(--shadow-sm); }
.go-pres-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.go-pres-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-secondary); }
.go-pres-note-big { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; }
.go-pres-note-big small { font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.go-pres-duration { font-size: 11px; color: var(--text-secondary); margin-left: 12px; }

.go-feedback-section { margin-top: 10px; }
.go-feedback-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.go-feedback-label.fb-plus { color: var(--accent-cours); }
.go-feedback-label.fb-minus { color: var(--accent-conseil); }
.go-feedback-label.fb-detail { color: var(--accent-entretien); }
.go-feedback-text { font-size: 13px; line-height: 1.5; color: var(--text-primary); margin-bottom: 8px; padding: 8px 12px; border-radius: 6px; background: var(--bg-card); }

.go-pres-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.go-pres-actions button { font-size: 11px; padding: 4px 10px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.go-pres-actions button:hover { background: var(--bg); }
.go-pres-actions button.go-del:hover { background: var(--accent-admin-bg); color: var(--accent-admin); border-color: var(--accent-admin); }

.go-stats-bar { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.go-stat-item { display: flex; flex-direction: column; align-items: center; padding: 12px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.go-stat-item .go-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; }
.go-stat-item .go-stat-lbl { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ══════════════════════════════════════════
   ORIENTATION
   ══════════════════════════════════════════ */
.orient-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.orient-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.orient-kpi .kpi-val { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 600; }
.orient-kpi .kpi-lbl { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.orient-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: visible; }
.orient-table th { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: 12px 14px; text-align: left; background: #FAFAF9; border-bottom: 1px solid var(--border); white-space: nowrap; }
.orient-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 13px; vertical-align: middle; }
.orient-table tr:last-child td { border-bottom: none; }
.orient-table tr:hover td { background: #FAFAF9; cursor: pointer; }

.orient-status { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; display: inline-block; }
.orient-status-sans { background: #FEE2E2; color: #DC2626; }
.orient-status-reflexion { background: var(--accent-conseil-bg); color: var(--accent-conseil); }
.orient-status-defini { background: var(--accent-stage-bg); color: var(--accent-stage); }
.orient-status-confirmes { background: var(--accent-cours-bg); color: var(--accent-cours); }

.orient-alert-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: #FEE2E2; color: #DC2626; }

.orient-detail-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.orient-detail-section .ods-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.orient-detail-section .ods-header h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.orient-detail-section .ods-body { padding: 16px 20px; }

.orient-entretien-item { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.orient-entretien-item:last-child { border-bottom: none; }
.orient-entretien-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.orient-entretien-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-secondary); }
.orient-entretien-theme { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--accent-entretien-bg); color: var(--accent-entretien); }
.orient-entretien-pp { font-size: 12px; color: var(--text-secondary); }
.orient-entretien-notes { font-size: 13px; line-height: 1.5; color: var(--text-primary); margin-top: 4px; }

.orient-immersion-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.orient-immersion-item:last-child { border-bottom: none; }
.orient-immersion-prio { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-conseil-bg); color: var(--accent-conseil); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.orient-immersion-name { font-size: 13px; font-weight: 500; }
.orient-immersion-detail { font-size: 12px; color: var(--text-secondary); }

.orient-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.orient-tab { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.orient-tab:hover { background: var(--bg); }
.orient-tab.active { background: var(--bg-sidebar); color: white; border-color: var(--bg-sidebar); }

.orient-parcoursup-bar { height: 6px; border-radius: 3px; background: var(--border-light); overflow: hidden; margin-top: 4px; }
.orient-parcoursup-fill { height: 100%; border-radius: 3px; background: var(--accent-cours); transition: width 0.4s ease; }

/* ── Immersions panorama ── */
.imm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.15s; }
.imm-card:hover { box-shadow: var(--shadow-sm); }
.imm-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border-light); }
.imm-card-body { padding: 12px 20px 14px; }

.imm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.imm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: var(--accent-stage-bg); color: var(--accent-stage); border: 1px solid transparent; transition: all 0.15s; }
.imm-chip:hover { border-color: var(--accent-stage); }
.imm-chip-prio { font-weight: 700; color: var(--accent-entretien); }
.imm-chip-del { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--text-secondary); padding: 0 2px; border-radius: 3px; transition: all 0.15s; line-height: 1; }
.imm-chip-del:hover { color: var(--accent-admin); background: var(--accent-admin-bg); }

.imm-inline-add { display: flex; gap: 8px; align-items: center; }
.imm-add-input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: 'DM Sans', sans-serif; background: var(--bg); outline: none; transition: border-color 0.15s; }
.imm-add-input:focus { border-color: var(--accent-stage); box-shadow: 0 0 0 3px rgba(8,145,178,0.08); }
.imm-add-input::placeholder { color: #A8A29E; }
.imm-add-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--accent-stage); color: white; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.imm-add-btn:hover { background: #0E7490; }

/* ── Specialité badges (clickable) ── */
.orient-spec-badge { font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 6px; cursor: pointer; display: inline-block; transition: all 0.15s; position: relative; user-select: none; white-space: nowrap; }
.orient-spec-badge:hover { filter: brightness(0.92); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.orient-spec-gf { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.orient-spec-rh { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }
.orient-spec-none { background: #F5F5F4; color: #A8A29E; border: 1px solid #E7E5E4; }

.orient-spec-dropdown { position: absolute; top: 100%; left: 0; z-index: 999; margin-top: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); overflow: hidden; min-width: 180px; }
.orient-spec-dropdown .spec-option { padding: 10px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.1s; display: flex; align-items: center; gap: 8px; }
.orient-spec-dropdown .spec-option:hover { background: var(--bg); }
.orient-spec-dropdown .spec-option.spec-active { background: #FEF3C7; }
.orient-spec-dropdown .spec-option .spec-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Fix z-index dropdown spécialité */
.orient-table tr { position: relative; }
.orient-table td { overflow: visible; }
.orient-spec-badge { position: relative; display: inline-block; }
.orient-table { overflow: visible; }
.card-body:has(.orient-table) { overflow: visible; }

/* ══════════════════════════════════════════
   CONSEILS DE CLASSE (cards)
   ══════════════════════════════════════════ */
.conseil-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.conseil-card-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.conseil-card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.conseil-card-meta { display: flex; align-items: center; gap: 10px; }
.conseil-card-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-secondary); }
.conseil-del { color: var(--text-secondary); font-size: 13px; padding: 4px 8px !important; }
.conseil-del:hover { color: var(--accent-admin); }

.conseil-card-body { padding: 16px 20px; }

.conseil-checklist { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.conseil-check-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; color: var(--text-secondary); transition: color 0.15s; user-select: none; }
.conseil-check-label:has(input:checked) { color: var(--accent-cours); font-weight: 500; }
.conseil-check-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent-cours); }

.conseil-notes-section { margin-top: 4px; }
.conseil-notes-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.conseil-notes-textarea { width: 100%; min-height: 120px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 13px; font-family: 'DM Sans', sans-serif; line-height: 1.6; color: var(--text-primary); background: var(--bg); resize: vertical; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.conseil-notes-textarea:focus { border-color: var(--accent-conseil); box-shadow: 0 0 0 3px rgba(217,119,6,0.08); }
.conseil-notes-textarea::placeholder { color: #A8A29E; }
.conseil-notes-hint { font-size: 11px; color: var(--text-secondary); margin-top: 4px; font-style: italic; }
