/* =====================================================================
   ACTIVITÉ GITHUB - sous les projets (js/github.js)
   ===================================================================== */

.github {
  margin-top: 4rem;
  padding: 1.6rem 1.7rem;
  border-radius: var(--rayon);
  border: 1px solid var(--bordure);
  background: var(--carte);
}

.github-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.github-titre { margin: 0; font-family: var(--police-titre); font-size: 1.15rem; font-weight: 600; }
.github-intro { margin: 0.25rem 0 0; color: var(--texte-doux); font-size: 0.92rem; }

/* Barre des langages (part de chaque langage parmi les dépôts) */
.github-langages { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--bordure); }
/* --largeur et --couleur : posées par js/github.js (data-var, voir js/variables-css.js) */
.github-langages span { display: block; min-width: 4px; width: var(--largeur, 0); background: var(--couleur, var(--accent)); }
.github-legende { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; list-style: none; margin: 0.6rem 0 1.3rem; padding: 0; font-size: 0.85rem; }
.github-legende small { color: var(--texte-doux); }
.github-pastille { background: var(--couleur, var(--accent)); display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; vertical-align: 0.05em; }

/* Les dépôts */
.github-depots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.github-depot {
  display: flex; flex-direction: column; gap: 0.4rem; height: 100%;
  padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--bordure);
  background: color-mix(in srgb, var(--fond) 40%, transparent);
  color: inherit; text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.github-depot:hover { border-color: var(--bordure-forte); transform: translateY(-2px); }
.github-depot-nom { font-family: var(--police-titre); font-weight: 600; color: var(--accent); word-break: break-word; }
.github-depot-description { color: var(--texte-doux); font-size: 0.88rem; line-height: 1.5; }
.github-depot-infos { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: auto; font-size: 0.8rem; color: var(--texte-doux); }

html.cv .github { margin-top: 2rem; }
html.cv .github-depot:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .github-depot:hover { transform: none; }
}

/* À l'impression : la liste des dépôts suffit, sans la barre de couleurs */
@media print {
  .github { border: 0; background: none; padding: 0; }
  .github-langages, .github-entete .bouton { display: none; }
  .github-depot { border: 0; padding: 0.3rem 0; }
}
