/* ============ AZIMUT — Plan de révision ============ */

/* Couleurs catégories (reprises de learn.css) */
:root {
  --av-cat-purple: #A855F7;
  --av-cat-blue:   #3B82F6;
  --av-cat-green:  #10B981;
  --av-cat-orange: #F97316;
  --av-cat-pink:   #EC4899;
  --av-cat-yellow: #EAB308;
  --av-cat-red:    #EF4444;
  --av-cat-gray:   #6B7280;
  --av-cat-cyan:   #06B6D4;
}

.av-view {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

/* ── Hero ─────────────────────────────────────────── */
.av-hero {
  text-align: center;
  padding: 16px 0 24px;
}
.av-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.av-subtitle {
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

/* ── Date picker ──────────────────────────────────── */
.av-date-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.av-date-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
  color: var(--text);
}
.av-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.av-date-input {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 26, 61, 0.15);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
[data-theme="dark"] .av-date-input {
  border-color: rgba(255, 255, 255, 0.12);
}
.av-date-input:focus {
  outline: none;
  border-color: var(--capgemini-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 173, 0.18);
}
.av-reset-btn {
  background: var(--paper-3);
  border: 1px solid rgba(11, 26, 61, 0.1);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.15s;
}
.av-reset-btn:hover { opacity: 1; }
[data-theme="dark"] .av-reset-btn { border-color: rgba(255, 255, 255, 0.08); }

/* ── Stats ────────────────────────────────────────── */
.av-stats {
  margin: 0 0 24px;
}
.av-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.av-countdown {
  font-size: 22px;
  font-weight: 800;
  color: var(--capgemini-blue);
  letter-spacing: -0.5px;
}
[data-theme="dark"] .av-countdown { color: var(--vibrant-blue); }
.av-progress-text {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  color: var(--text);
}
.av-global-bar {
  height: 6px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}
.av-global-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--capgemini-blue), var(--vibrant-blue));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── Semaines ─────────────────────────────────────── */
.av-week {
  margin-bottom: 28px;
}
.av-week-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.45;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(11, 26, 61, 0.06);
}
[data-theme="dark"] .av-week-title { border-bottom-color: rgba(255,255,255,0.06); }
.av-week-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Jour ─────────────────────────────────────────── */
.av-day {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 26, 61, 0.06);
  border-left: 4px solid var(--day-color, var(--capgemini-blue));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.18s;
}
[data-theme="dark"] .av-day { border-color: rgba(255,255,255,0.06); border-left-color: var(--day-color, var(--vibrant-blue)); }
.av-day.is-today {
  box-shadow: 0 0 0 2px var(--day-color, var(--capgemini-blue)), var(--shadow-card);
}
.av-day.is-done { opacity: 0.6; }
.av-day.is-late .av-day-date { color: var(--av-cat-red); }
.av-day.is-kit {
  border-left-color: var(--av-cat-yellow);
  background: linear-gradient(135deg, rgba(234,179,8,0.06), var(--paper));
}
[data-theme="dark"] .av-day.is-kit { background: linear-gradient(135deg, rgba(234,179,8,0.08), var(--paper)); }

.av-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  gap: 8px;
}
.av-day-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.av-today-pill {
  background: var(--capgemini-blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.av-day-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.av-day-phase {
  font-size: 12px;
  font-weight: 600;
  color: var(--day-color, var(--capgemini-blue));
  opacity: 0.9;
  white-space: nowrap;
}
.av-done-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--good);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.av-day-body {
  border-top: 1px solid rgba(11, 26, 61, 0.05);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .av-day-body { border-top-color: rgba(255,255,255,0.05); }

/* ── Session ──────────────────────────────────────── */
.av-session {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(11, 26, 61, 0.04);
  transition: background 0.15s;
}
[data-theme="dark"] .av-session { border-bottom-color: rgba(255,255,255,0.04); }
.av-session:last-child { border-bottom: none; }
.av-session.is-done .av-session-title { opacity: 0.45; text-decoration: line-through; }

.av-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(11, 26, 61, 0.18);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
[data-theme="dark"] .av-check { border-color: rgba(255,255,255,0.2); }
.av-check:hover { border-color: var(--good); }
.av-check.is-checked {
  background: var(--good);
  border-color: var(--good);
}

.av-session-info {
  flex: 1;
  min-width: 0;
}
.av-session-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.av-session-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.av-type-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.av-type-lecture { background: rgba(59,130,246,0.12);  color: #3B82F6; }
.av-type-quiz    { background: rgba(249,115,22,0.12);  color: #F97316; }
.av-type-flash   { background: rgba(168,85,247,0.12);  color: #A855F7; }
.av-type-kit     { background: rgba(234,179,8,0.15);   color: #B45309; }
.av-type-review  { background: rgba(107,114,128,0.12); color: #6B7280; }
[data-theme="dark"] .av-type-kit { color: #EAB308; }
.av-duration {
  font-size: 11px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.av-open-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.av-open-btn:hover { opacity: 1; background: var(--capgemini-blue); color: white; }

/* ── Empty state ──────────────────────────────────── */
.av-empty {
  text-align: center;
  padding: 48px 20px;
  opacity: 0.6;
}
.av-empty-icon { font-size: 48px; margin-bottom: 12px; }
.av-empty p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ── Kit CTA ──────────────────────────────────────── */
.av-kit-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(234,179,8,0.12), rgba(234,179,8,0.06));
  border: 1.5px solid rgba(234,179,8,0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-top: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
[data-theme="dark"] .av-kit-cta { background: linear-gradient(135deg, rgba(234,179,8,0.14), rgba(234,179,8,0.06)); }
.av-kit-cta:hover {
  border-color: rgba(234,179,8,0.6);
  box-shadow: 0 4px 16px rgba(234,179,8,0.15);
  transform: translateY(-2px);
}
.av-kit-icon { font-size: 28px; flex-shrink: 0; }
.av-kit-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.av-kit-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.av-kit-text span {
  font-size: 13px;
  opacity: 0.65;
  line-height: 1.4;
}
.av-kit-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--av-cat-yellow);
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
  .av-title { font-size: 22px; }
  .av-session-title { font-size: 12px; }
  .av-day-date { font-size: 13px; }
}
