/* ============================================================
   V2-D — « Aurora + sidebar »
   Copie exacte de la DA et de l'organisation de la A.
   Seule différence : le header horizontal est remplacé par la
   sidebar verticale (structure de la C, habillée avec la DA de A).
   ============================================================ */

:root {
  --bg: #0c0f0e;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1ef;
  --text-muted: #99a29d;
  --live: #e3242b;
  --info: #1d4ed8;
  --green: #3da35d;
  --yellow: #d9b821;
  --c-3d: #7c5cff;      /* violet */
  --c-illu: #ffd02e;    /* jaune */
  --accent: #38d6e0;     /* cyan */
  --c-graph: #e54ad6;   /* magenta */
  --sidebar-w: 248px;
  --font-display: "Barlow Semi Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
}

body {
  background:
    /* radial-gradient(ellipse 120% 80% at 70% 20%, rgba(255, 20, 147, 0.15), transparent 50%),
    radial-gradient(ellipse 100% 60% at 30% 10%, rgba(0, 255, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(138, 43, 226, 0.18), transparent 65%),
    radial-gradient(ellipse 110% 50% at 80% 30%, rgba(255, 215, 0, 0.08), transparent 40%), */

    /* radial-gradient(125% 125% at 50% 90%, #000000 40%, #0d1a36 100%), */

    /* radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249, 115, 22, 0.25), transparent 70%), #000000; */


    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255, 20, 147, 0.15), transparent 50%),
    radial-gradient(ellipse 160% 130% at 10% 10%, rgba(0, 255, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 160% 130% at 90% 90%, rgba(138, 43, 226, 0.18), transparent 65%),
    radial-gradient(ellipse 110% 50% at 80% 30%, rgba(255, 215, 0, 0.08), transparent 40%),
    #000000;

    

    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .featured-time, .date-square {
  font-family: var(--font-display);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7fe6ec; }

/* ============================================================
   Sidebar (structure de la C, DA de la A)
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(10, 18, 15, 0.40);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  z-index: 100;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0.6rem;
  margin-bottom: 2rem;
  height: 34px;
  width: auto;
  margin-top: 15px;
}
.brand:hover { color: var(--text); }

.brand-space {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-nav { display: flex; flex-direction: column; gap: 0.2rem; }

.side-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
}
.side-item:hover { color: var(--text); background: var(--card); }
.side-item.is-active { color: var(--text); background: var(--card-2); }
.side-item.is-active svg { color: var(--accent); }
.side-item svg { flex-shrink: 0; color: var(--text-muted); }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; }

.side-badge {
  margin-left: auto;
  background: var(--live);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  padding: 0 0.25rem;
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}
.side-profile:hover { background: var(--card); }
.side-profile-meta { display: flex; flex-direction: column; line-height: 1.25; }
.side-profile-name { color: var(--text); font-weight: 600; font-size: 0.86rem; }
.side-profile-promo { color: var(--text-muted); font-size: 0.72rem; }

/* avatar (identique à la A, utilisé aussi dans le contenu) */
.avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-graph), var(--c-3d));
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.avatar-sm { width: 1.8rem; height: 1.8rem; font-size: 0.8rem; }
.avatar-lg { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; border: 2px solid rgba(255, 255, 255, 0.25); }

/* ============================================================
   Zone de contenu : décalée de la largeur de la sidebar
   ============================================================ */
.content-area { margin-left: var(--sidebar-w); }
.page-main { padding-top: 1.75rem; padding-bottom: 3rem; width: 90%;}

/* ===== Ligne haute : salut + notifications ===== */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-sub { color: var(--text-muted); margin: 0; }
.hero-sub strong { color: var(--text); }

/* Toasts de notification */
.notif-stack { display: flex; flex-direction: column; gap: 0.55rem; min-width: 18rem; }

.notif-toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  border-radius: 0.45rem;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.notif-toast:hover { color: #fff; filter: brightness(1.1); }
.notif-alert { background: linear-gradient(100deg, #8f1018, #b3151e); }
.notif-info { background: linear-gradient(100deg, #16348f, var(--info)); }

.notif-icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.notif-body { display: flex; flex-direction: column; line-height: 1.25; }
.notif-body strong { font-size: 0.83rem; font-weight: 600; }
.notif-body time { font-size: 0.7rem; opacity: 0.75; }

.notif-close { margin-left: auto; font-size: 1.1rem; opacity: 0.7; line-height: 1; }

/* ===== Accès rapides ===== */
.quick-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
}
.quick-link:hover { background: var(--card-2); color: var(--text); }
.quick-link svg { color: var(--accent); }

/* ===== Sections ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.section-link { font-size: 0.84rem; font-weight: 500; }

section { margin-bottom: 2.25rem; }

/* ===== Domaines ===== */
.domain { font-size: 0.78rem; font-weight: 600; }
.domain-3d { color: var(--c-3d); }
.domain-illu { color: var(--c-illu); }
.domain-jeu { color: var(--accent); }
.domain-graph { color: var(--c-graph); }

/* ===== Cours mis en avant ===== */
.featured-course {
  display: flex;
  background: linear-gradient(120deg, rgba(35, 92, 70, 0.35), var(--card) 55%);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.9rem;
}
/* liseré coloré à droite, comme le mockup */
.featured-course::after,
.course-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.3rem;
}
.course--3d::after { background: var(--c-3d); }
.course--illu::after { background: var(--c-illu); }
.course--jeu::after { background: var(--accent); }
.course--graph::after { background: var(--c-graph); }
.course--eval::after { background: var(--yellow); }

.featured-thumb {
  width: 50%;
  min-height: 13rem;
  flex-shrink: 0;
  object-fit: cover;
}

.featured-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.course-item-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.featured-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }

.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--live);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  margin-bottom: 0.7rem;
}
.tag-live .dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #fff; }

.featured-domain {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.featured-name {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.featured-foot {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.featured-time { font-size: 1rem; font-weight: 700; color: var(--text); }
.featured-time .arrow { color: var(--accent); }

.prof-chip { display: inline-flex; align-items: center; gap: 0.5rem; }
.prof-chip-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.82rem; color: var(--text); }

.btn-accent {
  background: var(--live);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: none;
  /* margin-top: auto; */
}
.btn-accent:hover { background: #c41e25; color: #fff; }
.btn-accent[aria-disabled="true"] {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-accent[aria-disabled="true"]:hover { background: var(--border); color: var(--text-muted); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.5rem;
  font-weight: 500;
}
.btn-ghost:hover { background: var(--card-2); color: var(--text); border-color: var(--border); }

/* ===== Liste de cours ===== */
.course-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.6rem 1.4rem 0.6rem 0.6rem;
  position: relative;
  overflow: hidden;
}
.course-item:hover { background: var(--card-2); }

.course-thumb, .news-thumb {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  object-fit: cover;
}
.thumb-1 { background: linear-gradient(135deg, #ffd02e, #d96a1e); }
.thumb-2 { background: linear-gradient(135deg, #38d6e0, #1d6ed8); }
.thumb-3 { background: linear-gradient(135deg, #e54ad6, #7c2cbf); }
.thumb-4 { background: linear-gradient(135deg, #7c5cff, #2d3fd8); }

.course-body { flex: 1; min-width: 0; }
.course-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.1rem; }
.course-meta { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.tag-visio {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(56, 214, 224, 0.14);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 2rem;
}
.tag-visio .dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }

.tag-eval {
  display: inline-flex;
  align-items: center;
  background: #d9b72144;
  color: var(--yellow);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 2rem;
  margin-bottom: 0.3rem;
}

.course-prof { text-align: right; display: flex; flex-direction: column; gap: 0.1rem; flex-shrink: 0; }
.prof-name { font-size: 0.85rem; font-weight: 500; }

/* ===== Échéances ===== */
.deadline-group {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 1.1rem 0 0.5rem;
}
.deadline-group:first-of-type { margin-top: 0; }

.deadline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.deadline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.deadline:hover { background: var(--card-2); }

.deadline-check {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--text-muted);
  border-radius: 0.35rem;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.deadline-check:checked { background: var(--green); border-color: var(--green); }
.deadline-check:checked::after { content: "✓"; color: #fff; font-size: 0.8rem; font-weight: 700; line-height: 1; }

.date-square {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  color: #fff;
  flex-shrink: 0;
  line-height: 1.05;
  font-weight: 700;
}
/* cette semaine = jaune, bientôt = vert (comme le mockup) */
.dl-week .date-square { background: var(--yellow); }
.dl-soon .date-square { background: var(--green); color: #1c1a0d; }
.date-square strong { font-size: 1.15rem; }
.date-square small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; }

.deadline-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; cursor: pointer; }
.deadline-name { font-weight: 600; font-size: 0.95rem; }
.deadline-course { color: var(--text-muted); font-size: 0.8rem; }

.deadline-state {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-illu);
  background: rgba(255, 208, 46, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  flex-shrink: 0;
}

.deadline-check:checked ~ .deadline-body .deadline-name { text-decoration: line-through; opacity: 0.55; }
.deadline-check:checked ~ .deadline-body .deadline-course { opacity: 0.55; }
.deadline-check:checked ~ .date-square { opacity: 0.6; }
.deadline-check:checked ~ .deadline-state {
  color: #7be0a2;
  background: rgba(61, 163, 93, 0.18);
  font-size: 0;
}
.deadline-check:checked ~ .deadline-state::after { content: "Fait"; font-size: 0.72rem; }

/* ===== Progression ===== */
.progress-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1.25rem 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.progress-week { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }

.progress-track { height: 0.5rem; background: rgba(255, 255, 255, 0.08); border-radius: 1rem; }
.progress-fill { width: 66%; height: 100%; background: linear-gradient(90deg, var(--green), #6fd58f); border-radius: 1rem; }

/* ===== Citation ===== */
.quote { padding: 0.5rem 0; margin: 0; position: relative; }
.quote blockquote {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  color: #cfd6d2;
  padding-left: 2.6rem;
  margin-bottom: 0.4rem;
  position: relative;
}
.quote blockquote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.6rem;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: Georgia, serif;
}
.quote figcaption { color: var(--text-muted); font-size: 0.85rem; text-align: right; }

/* ===== Créa à l'honneur ===== */
.crea-card { display: block; color: var(--text); }
.crea-card:hover { color: var(--text); }
.crea-card:hover .crea-name { color: var(--accent); }

.crea-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10; 
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

.crea-row { display: flex; gap: 1.25rem; align-items: flex-start; }
.crea-body { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.crea-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.crea-desc { color: var(--text-muted); font-size: 0.87rem; }

.crea-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-top: -3.2rem; /* l'avatar chevauche l'image, comme le mockup */
}
.crea-author-name { font-weight: 700; font-size: 0.9rem; margin-top: 0.3rem; }
.crea-author-promo { color: var(--accent); font-size: 0.74rem; font-weight: 600; }

.crea-authors-avatars {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}
.crea-authors-avatars .avatar + .avatar { margin-left: -0.75rem; }

/* ===== Actualités ===== */
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }

.news-item {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.9rem;
}

.news-thumb { width: 5.2rem; height: auto; align-self: stretch; min-height: 4.5rem; }

.news-body { min-width: 0; }
.news-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.15rem; }
.news-name a { color: var(--text); }
.news-name a:hover { color: var(--accent); }
.news-meta { color: var(--c-illu); font-size: 0.76rem; font-weight: 600; margin-bottom: 0.3rem; }
.news-author { color: var(--text-muted); }
.news-excerpt { color: var(--text-muted); font-size: 0.84rem; margin: 0; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  background-color: rgba(10, 18, 15, 0.40);ls
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text-muted); text-decoration: underline; }
.site-footer a:hover { color: var(--text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  /* la sidebar passe en barre horizontale en haut */
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .brand { flex-direction: row; align-items: baseline; gap: 0.5rem; margin-bottom: 0; padding: 0; }
  .side-nav { flex-direction: row; flex-wrap: wrap; margin-left: auto; gap: 0.1rem; }
  .side-item { padding: 0.45rem 0.7rem; }
  .side-foot { margin-top: 0; flex-direction: row; align-items: center; padding-top: 0; gap: 0.6rem; }
  .content-area { margin-left: 0; }
  .notif-stack { width: 100%; }
  .featured-course { flex-direction: column; }
  .featured-thumb { width: 100%; min-height: 8rem; object-fit: cover;}
}

@media (max-width: 576) {
  .course-prof { display: none; }
  .deadline-state { display: none; }
  .news-thumb { display: none; }
  .crea-author { margin-top: 0; }
  .side-nav { width: 100%; margin-left: 0; order: 3; }
  .side-foot { margin-left: auto; }
}

/* ============================================================
   Page module de cours (espace étudiant)
   Réutilise les variables et la DA de la page d'accueil.
   ============================================================ */

/* ===== En-tête du module ===== */
.module-hero {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  height: 15rem;
  background: linear-gradient(120deg, rgba(35, 92, 70, 0.35), var(--card) 55%);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 2.25rem;
}
.module-hero-thumb {
  width: 34%;
  max-width: 22rem;
  min-height: 11rem;
  flex-shrink: 0;
  object-fit: cover;
}
.module-hero-body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; justify-content: flex-start; }
.module-hero-code {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.module-hero-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 0.6rem; }
.module-hero-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Panneaux de section (Objectif, Travail, Critères) ===== */
.mod-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1.25rem 1.5rem;
}
.mod-panel--todo { border-style: dashed; background: transparent; }
.mod-prose { color: var(--text); font-size: 0.92rem; line-height: 1.6; }
.mod-empty { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

.todo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-illu);
  background: rgba(255, 208, 46, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  flex-shrink: 0;
}

/* ===== Onglet « Mon Projet » (page parcours) ===== */
.proj-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}
.proj-team-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}
.proj-member {
  padding: 0.5rem 0.75rem;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}
.proj-member-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.proj-member-self { font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* ===== Listes de ressources / liens ===== */
.res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.res-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.7rem 1rem;
  color: var(--text);
}
.res-item:hover { background: var(--card-2); color: var(--text); }
.res-type {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(56, 214, 224, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  flex-shrink: 0;
}
.res-item--link .res-type { color: var(--c-3d); background: rgba(124, 92, 255, 0.14); }
.res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.res-name { font-size: 0.92rem; font-weight: 600; }
.res-note { font-size: 0.78rem; color: var(--text-muted); }
.res-reco {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  background: rgba(61, 163, 93, 0.16);
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  flex-shrink: 0;
}
.res-arrow { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

/* ===== Agenda des séances ===== */
.seance-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.seance-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.55rem 0.9rem;
}
.seance-date { background: var(--card-2); color: var(--text); }
.seance-date small { text-transform: capitalize; }
.seance-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.seance-time { font-weight: 600; font-size: 0.92rem; }
.seance-room { color: var(--text-muted); font-size: 0.8rem; }

.seance-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  flex-shrink: 0;
}
.status--past { color: var(--text-muted); background: rgba(255, 255, 255, 0.06); }
.status--live { color: #fff; background: var(--live); }
.status--soon { color: var(--c-illu); background: rgba(255, 208, 46, 0.12); }
.seance-summary { flex-shrink: 0; font-size: 0.78rem; padding: 0.35rem 0.7rem; }

/* ===== Timeline des jalons (onglet « Mon Projet ») ===== */
.proj-timeline {
  position: relative;
  /* Marge basse : place pour la boîte date + titre sous les ronds ;
     padding latéral : évite de couper le premier / dernier label. */
  margin: 0 0 5.75rem;
  padding: 1.75rem 2.5rem 0;
}
.tl-track {
  position: relative;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}
.tl-fill {
  width: 0;               /* piloté par le JS au chargement */
  height: 100%;
  background: linear-gradient(90deg, var(--green), #6fd58f);
  border-radius: 1rem;
  transition: width 0.6s ease;
}
.tl-node {
  position: absolute;
  top: 2rem;             /* centre vertical de la barre : padding 1.75rem + moitié de 0.5rem */
  left: 0;               /* positionné par le JS (espacement uniforme) */
  transform: translateX(-50%);
  width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Rond « à venir » (état par défaut) : creux, discret. */
.tl-dot {
  width: 14px;
  height: 14px;
  margin-top: -7px;       /* remonte le rond de la moitié de sa hauteur → centré pile sur la barre */
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Rond « validé » (échéance passée) : plein vert + coche. */
.tl-node.is-reached .tl-dot {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: var(--green);
  border-color: var(--green);
}
.tl-node.is-reached .tl-dot::after {
  content: "";
  width: 4px;
  height: 7px;
  margin-bottom: 2px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* Rond « prochain » (premier jalon non atteint) : anneau cyan accentué. */
.tl-node.is-next .tl-dot {
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 214, 224, 0.2);
}
/* Boîte transparente à liseré autour de la date + titre. */
.tl-label {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.72rem;    /* aligne le haut des boîtes quel que soit le diamètre du rond */
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}
.tl-node.is-reached .tl-label { margin-top: 0.6rem; }
.tl-node.is-next .tl-label { margin-top: 0.66rem; border-color: rgba(56, 214, 224, 0.55); }
.tl-date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.tl-title {
  display: -webkit-box;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-node.is-next .tl-title { color: var(--accent); }
.tl-node:not(.is-reached):not(.is-next) .tl-title { color: var(--text-muted); }

/* ===== Modale de résumé de séance ===== */
.resume-modal .modal-content {
  background: #111614;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  color: var(--text);
}
.resume-modal .modal-header { border-bottom: 1px solid var(--border); position: relative; padding-right: 3rem; }
.resume-modal .modal-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.resume-modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.detail-section-title + .detail-section-title,
.detail-objectifs + .detail-section-title,
.resume-note + .detail-section-title { margin-top: 1.4rem; }

.detail-objectifs { color: var(--text); font-size: 0.92rem; line-height: 1.6; }

.resume-note {
  background: var(--card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
}
.resume-note + .resume-note { margin-top: 0.7rem; }
.resume-note-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.resume-note-author { font-weight: 600; font-size: 0.86rem; }
.resume-note-date { color: var(--text-muted); font-size: 0.78rem; }
.resume-tag {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
}
.resume-tag--perso { color: var(--accent); background: rgba(56, 214, 224, 0.14); }
.resume-note-body { color: var(--text); font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 992px) {
  .module-hero { flex-direction: column; height: auto; }
  .module-hero-thumb { width: 100%; max-width: none; min-height: 8rem; }
}

/* ===== Carte de cours (Content) sur la page module ===== */
.course-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  color: var(--text);
}
.course-card:hover { background: var(--card-2); color: var(--text); }
.course-card-thumb {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  object-fit: cover;
}
.course-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.course-card-name { font-size: 0.96rem; font-weight: 600; }
.course-card-catch { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   Lecteur de support de cours (content_read)
   ============================================================ */
.back-link { display: inline-block; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }

.reader-hero { margin-bottom: 2rem; }
.reader-bandeau {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1.25rem;
}
.reader-title { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 0.5rem; }
.reader-catch { color: var(--accent); font-size: 1.05rem; font-weight: 500; margin-bottom: 0.8rem; }
.reader-objectives { color: var(--text-muted); }

/* Sommaire */
.reader-toc {
  position: sticky;
  top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
}
.reader-toc-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.reader-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; counter-reset: toc; }
.reader-toc-list a { color: var(--text-muted); font-size: 0.86rem; font-weight: 500; }
.reader-toc-list a:hover { color: var(--text); }
.reader-toc-list .toc-section { margin-top: 0.5rem; }
.reader-toc-list .toc-section a { color: var(--text); font-weight: 700; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.06em; }

/* Corps */
.reader-entry { margin-bottom: 2.5rem; scroll-margin-top: 1.5rem; }
.reader-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.reader-page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: flex; align-items:
  center; gap: 0.6rem;
  flex-wrap: wrap; }
.reader-tag {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-3d);
  background: rgba(124, 92, 255, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
}
.reader-duration { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.reader-video { width: 100%; border-radius: 0.7rem; margin-bottom: 1rem; background: #000; }
.reader-page-body { color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.reader-page-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.reader-page-body h2, .reader-page-body h3 { margin-top: 1.4rem; margin-bottom: 0.6rem; }
.reader-page-body a { color: var(--accent); text-decoration: underline; }

.reader-qcm { display: flex; align-items: center; gap: 0.8rem; }
.reader-qcm-title { font-weight: 600; flex: 1; }
.reader-resource { max-width: 32rem; }

/* ===== Lecteur : sidebar = sommaire du cours ===== */
.sidebar--course { overflow-y: auto; }
.course-back {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.6rem;
  margin-bottom: 1rem;
}
.course-back:hover { color: var(--text); }
.course-toc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 0.6rem;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}
.course-toc { overflow-y: auto; }
.course-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }

.toc-chapter {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.7rem 0.7rem 0.3rem;
}

.toc-page, .toc-resource, .toc-qcm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  border-left: 2px solid transparent;
}
.toc-page:hover, .toc-resource:hover { color: var(--text); background: var(--card); }
.toc-page.is-active {
  color: var(--text);
  background: var(--card-2);
  border-left-color: var(--accent);
  font-weight: 600;
}
.toc-page-name { flex: 1; min-width: 0; }
.toc-icon { color: var(--accent); flex-shrink: 0; }
.toc-mini {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-3d);
  flex-shrink: 0;
}
.toc-qcm { cursor: default; opacity: 0.7; }

/* ===== Lecteur : page d'accueil du cours (présentation) ===== */
.course-intro { max-width: 52rem; }
.intro-block { margin-top: 1.8rem; }
.intro-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.7rem;
}
.intro-cta { margin-top: 2.2rem; }

/* ===== Lecteur : corps + pagination ===== */
.reader-main { max-width: 56rem; }
.reader-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
  .sidebar--course { overflow-y: visible; }
  .course-toc-list { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   Page « Mon parcours » (espace étudiant)
   Réutilise les variables et la DA des pages accueil / module.
   ============================================================ */

/* ===== En-tête du parcours ===== */
.parcours-hero {
  flex: 1;
  min-width: 18rem;
  background: linear-gradient(120deg, rgba(35, 92, 70, 0.35), var(--card) 55%);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 0;
}
.parcours-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.parcours-name { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 1rem; }
.parcours-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
.parcours-progress .progress-track { flex: 1; }
.parcours-trimestre {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.parcours-dates {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}
.parcours-intro { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.75rem; max-width: 60ch; }

/* ===== Onglets ===== */
.parcours-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.ptab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  cursor: pointer;
}
.ptab:hover { background: var(--card-2); color: var(--text); }
.ptab.is-active { background: var(--card-2); color: var(--text); border-color: var(--accent); }
.ptab-badge {
  background: var(--accent);
  color: #08201f;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  padding: 0 0.3rem;
}
/* Variante « action attendue » : la pastille passe en rouge. */
.ptab-badge--action { background: var(--live); color: #fff; }

.ppanel { animation: ppanel-in 0.18s ease; }
.ppanel.is-hidden { display: none; }
@keyframes ppanel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== Calendrier ===== */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.cal-nav-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 11rem;
  text-align: center;
}
.cal-nav-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}
.cal-nav-btn:hover { background: var(--card-2); color: var(--accent); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
}
.cal-head {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: capitalize;
  text-align: right;
  padding: 0.6rem 0.7rem;
}
.cal-cell {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  aspect-ratio: 1 / 1;
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}
.cal-cell--empty { background: rgba(255, 255, 255, 0.02); }
.cal-cell--today {
  border-color: var(--accent);
  background: rgba(56, 214, 224, 0.10);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-daynum { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-align: right; }

/* La pastille est un <button> (ouvre la modale de détail) : on neutralise le
   style natif du bouton pour un rendu identique à l'ancien <span> — la règle
   .cal-event ci-dessous réapplique fond, bord gauche et padding. */
.cal-event {
  width: 100%;
  margin: 0;
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cal-event {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.7rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  border-left: 3px solid var(--text-muted);
  background: var(--card-2);
}
.cal-event-time { font-weight: 700; }
.cal-event-label { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event--course { border-left-color: var(--accent); }
.cal-event--eval { border-left-color: var(--yellow); background: rgba(217, 184, 33, 0.14); }
.cal-event--absence-declared { border-left-color: var(--green); background: rgba(61, 163, 93, 0.14); }
.cal-event--absence-undeclared { border-left-color: var(--live); background: rgba(227, 36, 43, 0.14); }
.cal-event--event { border-left-color: #e83e8c; background: rgba(232, 62, 140, 0.14); }

.cal-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cal-legend li { display: flex; align-items: center; gap: 0.45rem; }
.cal-dot { width: 0.85rem; height: 0.85rem; border-radius: 0.25rem; border-left-width: 3px; border-left-style: solid; }
/* Le kind « course » n'a pas de fond translucide (les pastilles restent neutres) ;
   on en donne un léger au seul carré de légende pour qu'il soit aussi lisible. */
.cal-dot.cal-event--course { background: rgba(56, 214, 224, 0.14); }

/* ===== Modale de détail du calendrier (réutilise .resume-modal) ===== */
/* Ouverture quasi instantanée mais avec un léger mouvement (feeling satisfaisant)
   — on raccourcit la transition Bootstrap par défaut (~0.3s). */
.cal-modal.fade .modal-dialog { transition: transform 0.12s ease-out; }
.cal-modal.fade { transition: opacity 0.1s linear; }

/* Fond aligné sur la recette de surface de la plateforme (translucide var(--card)
   composé sur var(--bg), comme les cartes / .mod-panel) plutôt que le #111614
   tiède de .resume-modal, + ombre d'élévation pour se détacher du calendrier. */
.cal-modal .modal-content {
  background: linear-gradient(var(--card), var(--card)), var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cal-modal-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.15rem;
}
.cal-modal-kicker--eval { color: var(--yellow); }
.cal-modal-kicker--event { color: #e83e8c; }
.cal-modal-kicker--absence-declared { color: var(--green); }
.cal-modal-kicker--absence-undeclared { color: var(--live); }
.cal-modal-kicker--deadline { color: var(--accent); }
.cal-modal-kicker--interview { color: var(--accent); }

/* Bloc « à rendre pour le » — pastille visuelle en tête de modale, distincte
   d'une simple ligne de champ pour ressortir comme info prioritaire. */
.cal-modal-due {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(56, 214, 224, 0.14);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}
.cal-modal-due svg { flex-shrink: 0; }

/* Chips secondaires d'en-tête (formateur, module, lieu) — rangée compacte
   plutôt qu'une liste de champs, pour rester dans un registre visuel. */
.cal-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.5rem;
}
.cal-modal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cal-modal-meta-item svg { flex-shrink: 0; }

.cal-modal-details { margin: 0; }
.cal-modal-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}
.cal-modal-row:first-child { border-top: none; }
/* Variante compacte : colonne de label à la largeur du texte plutôt que fixe
   (8.5rem), utile quand la liste ne compte qu'une ou deux lignes courtes
   (ex. Horaire/Formateur de la modale d'échéance) — évite le grand vide
   entre le label et la valeur. */
.cal-modal-details--compact .cal-modal-row { grid-template-columns: max-content 1fr; gap: 0.5rem 0.9rem; }
.cal-modal-row dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  align-self: center;
}
.cal-modal-row dd { margin: 0; font-size: 0.92rem; color: var(--text); align-self: center; }
.cal-modal-muted { color: var(--text-muted); }
.cal-modal-desc { margin-top: 0.6rem; }
.cal-modal-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}
.cal-modal-link:hover { text-decoration: underline; }

/* Badges de statut d'absence (réutilise .resume-tag). */
.resume-tag--declared { color: var(--green); background: rgba(61, 163, 93, 0.14); }
.resume-tag--undeclared { color: var(--live); background: rgba(227, 36, 43, 0.14); }
.cal-modal .modal-body > .resume-tag { display: inline-block; margin-bottom: 0.9rem; }

@media (max-width: 480px) {
  .cal-modal-row { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.5rem 0; }
}

/* ===== Accordéons (Évaluations & Suivi) ===== */
.acc-list { display: flex; flex-direction: column; gap: 0.7rem; }
.acc-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  overflow: hidden;
}
.acc-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head::after {
  content: "⌄";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.acc-item[open] > .acc-head::after { transform: rotate(180deg); }
.acc-item[open] > .acc-head { border-bottom: 1px solid var(--border); }

.acc-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card-2);
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  min-width: 2.8rem;
  flex-shrink: 0;
}
.acc-date strong { font-size: 1rem; font-weight: 700; line-height: 1; }
.acc-date em { font-style: normal; font-size: 0.64rem; font-weight: 600; color: var(--text-muted); }

.acc-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1 1 auto; }
.acc-title { font-size: 0.96rem; font-weight: 600; }
.acc-sub { font-size: 0.8rem; color: var(--text-muted); }
.acc-note { font-weight: 700; font-size: 0.95rem; color: var(--text); flex-shrink: 0; margin-right: 5rem; }
.acc-note-empty { color: var(--text-muted); font-weight: 500; font-size: 0.84rem; }
.acc-prof, .acc-author { flex-shrink: 0; font-size: 0.84rem; color: var(--text-muted); margin-right: 10rem; }

.acc-body { padding: 1.1rem 1.1rem 1.25rem; }
.acc-criteria { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.acc-criteria li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; border-top: 1px solid var(--border); padding-top: 0.35rem; }

/* ===== Fil de résolution d'un incident ===== */
/* Pastille « Action attendue » dans l'en-tête de l'accordéon. */
.acc-flag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 1rem;
  background: rgba(227, 36, 43, 0.16);
  color: var(--live);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Déclaration : message initial du fil, en prose (pas de boîte). */
.acc-intro { margin-bottom: 1rem; }
.acc-intro p:last-child { margin-bottom: 0; }

/* Messages linéaires : proposition du staff / réponse du déclarant. */
.acc-thread { display: flex; flex-direction: column; gap: 0.7rem; }
.acc-msg {
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  border-left: 3px solid var(--border);
  background: var(--card-2);
}
.acc-msg--staff { border-left-color: var(--accent); }
.acc-msg--reporter { border-left-color: var(--border); }
.acc-msg.is-resolution { border-left-color: var(--green); }
.acc-msg-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.acc-msg-check { color: var(--green); font-weight: 700; margin-right: 0.25rem; }
.acc-msg p:last-child { margin-bottom: 0; }

/* Réponse du déclarant : dernier bloc du fil (le présent), champ unique
   partagé par les deux boutons, actions alignées à droite. */
.acc-reply { margin-top: 0.7rem; }
.acc-reply-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.acc-reply-input:focus { outline: none; border-color: var(--accent); }
.acc-reply-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.acc-reply-actions button { cursor: pointer; font-size: 0.88rem; padding: 0.45rem 1rem; }

/* Code couleur du Suivi : bord gauche coloré selon le type d'échange. */
.acc-item--retour { border-left: 3px solid var(--info); }
.acc-item--absence { border-left: 3px solid var(--yellow); }
.acc-item--incident { border-left: 3px solid var(--live); }

@media (max-width: 768px) {
  .cal-event-label { display: none; }
  .acc-prof, .acc-author { display: none; }
}

/* ============================================================
   Page « Mes cours » (espace étudiant)
   Répertoire des modules débloqués, recherche + grille de cards.
   Réutilise les variables et la DA de la page d'accueil.
   ============================================================ */

/* ===== Barre de recherche (centrée) ===== */
.courses-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 2.25rem;
}
.courses-search-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.courses-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.courses-search {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  outline: none;
}
.courses-search::placeholder { color: var(--text-muted); }
.courses-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 214, 224, 0.14);
}

/* ===== Sections par année ===== */
.courses-section { margin-bottom: 2.5rem; }
.courses-year-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
}

/* ===== Grille de cards (5 par ligne) ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

.courses-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.courses-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: inherit;
}
.courses-card-thumb {
  width: 95%;
  align-self: center;
  padding-top: 2.5%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.courses-card-name {
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

/* ===== État vide / aucun résultat ===== */
.courses-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

@media (max-width: 992px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Page « Toutes les news »
   Carte image en overlay flottant, décalée au-dessus de la
   carte de description (cf. maquette « Wall of fames »).
   ============================================================ */
.allnews-head { margin-bottom: 2.75rem; }
.allnews-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.allnews-list {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.allnews-item {
  position: relative;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
  margin-top: 1.75rem; /* place pour le débord de l'image en haut */
}

/* Carte image : flotte au-dessus de la carte, décalée en haut-gauche */
.allnews-media {
  position: relative;
  z-index: 2;
  flex: 0 0 44%;
  align-self: flex-start;
  margin-top: -2.75rem;
  margin-left: -0.75rem;
  aspect-ratio: 16 / 10;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.allnews-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.allnews-item:hover .allnews-title a { color: var(--accent); }

/* Colonne description */
.allnews-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.25rem;
}
.allnews-meta { display: flex; align-items: center; gap: 0.6rem; }
.allnews-meta-text { display: flex; flex-direction: column; line-height: 1.2; }
.allnews-author { font-weight: 700; font-size: 0.86rem; color: var(--text); }
.allnews-date { color: var(--text-muted); font-size: 0.76rem; }

.allnews-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0.2rem 0 0; }
.allnews-title a { color: var(--text); }
.allnews-title a:hover { color: var(--accent); }

.allnews-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.allnews-link { font-size: 0.85rem; font-weight: 600; margin-top: 0.35rem; }

/* Pagination */
.allnews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.allnews-page-info { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .allnews-item { flex-direction: column; gap: 1rem; margin-top: 0; }
  .allnews-media { flex-basis: auto; width: 100%; margin: 0; }
}

