/* ------------------------------------------------
   Expérimental
   Commun : typographie, espacements, cadre des captures, listing et navigation.
   Tout le reste vit dans la page du projet.
   ------------------------------------------------ */

:root {
  --xp-live: 40,160,90;
  --xp-pause: 210,140,30;
  --xp-stop: 140,145,140;
  --xp-red: 200,70,60;
  --xp-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

.xp-intro {
  font-size: 16px;
  color: var(--mid);
  max-width: 34em;
  margin-top: 0.5rem;
}

/* Corps de texte : une mesure lisible, les figures peuvent être plus larges */
.xp-page .article-body > p,
.xp-page .article-body > ul,
.xp-page .article-body > ol { font-size: 16px; line-height: 1.65; max-width: 36em; }
.xp-page .article-body > p { margin-bottom: 1rem; }
.xp-page .article-body h2 { margin: 2.5rem 0 0.75rem; }
.xp-page .article-body h3 { font-size: 16px; font-weight: 600; color: var(--black); margin: 1.5rem 0 0.4rem; font-variation-settings: 'GEOM' 0; }
.xp-page .article-body figure { margin: 2rem 0; }
.xp-page .article-body figcaption { font-size: 13px; color: var(--light); font-weight: 300; line-height: 1.5; margin-top: 0.6rem; max-width: 40em; }
.xp-page code { font-family: var(--xp-mono); font-size: 0.85em; }

/* Petites capitales d'étiquette, partout la même */
.xp-kicker {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  font-variation-settings: 'GEOM' 0;
}

.xp-kicker a { color: inherit; text-decoration: none; }
.xp-kicker a:hover { color: var(--mid); }

.xp-crumb { margin-bottom: 0.4rem; }

/* ---------- Captures d'écran ---------- */

.xp-shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.xp-shot.narrow { max-width: 14rem; }
.xp-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 1.25rem; align-items: start; }
.xp-shots .xp-shot { display: block; }

@media (max-width: 600px) {
  .xp-shots { grid-template-columns: 1fr; }
}

/* ---------- Listing ---------- */

.xp-group { margin-top: 2.5rem; }

.xp-group-title {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  font-variation-settings: 'GEOM' 0;
}

.xp-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.xp-item:last-child { border-bottom: none; }

.xp-when {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--light);
  line-height: 1.35;
  padding-top: 0.15rem;
}

.xp-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  font-variation-settings: 'GEOM' 0;
  letter-spacing: -0.005em;
}

.xp-title a {
  color: var(--black);
  text-decoration: none;
}

.xp-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--subtle);
}

.xp-by {
  font-size: 0.6rem;
  color: var(--mid);
  margin-top: 0.2rem;
}

.xp-venue {
  font-size: 0.6rem;
  font-style: italic;
  color: var(--light);
  margin-top: 0.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.xp-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-0.05rem);
  background: rgb(var(--c, var(--xp-stop)));
}
.xp-dot.live { --c: var(--xp-live); }
.xp-dot.pause { --c: var(--xp-pause); }
.xp-dot.stop { --c: var(--xp-stop); }

.xp-abstract {
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 32em;
}

.xp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.55rem;
  font-weight: 500;
  font-variation-settings: 'GEOM' 0;
}

.xp-links a {
  color: var(--dark);
  text-decoration: none;
}

.xp-links a:hover { text-decoration: underline; text-underline-offset: 2px; }

.xp-links .xp-nolink { color: var(--light); font-weight: 300; }

/* ---------- Navigation entre projets ---------- */

.xp-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.xp-nav a { color: var(--mid); text-decoration: none; }
.xp-nav a:hover { color: var(--black); }
.xp-nav small { display: block; font-size: 11px; color: var(--light); letter-spacing: 0.08em; text-transform: uppercase; }
.xp-nav .next { text-align: right; margin-left: auto; }


@media (max-width: 600px) {
  .xp-item { grid-template-columns: 1fr; }
  .xp-when { margin-bottom: 0.2rem; }
  .xp-when br { display: none; }
}

.xp-intro a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--subtle); }
.xp-intro a:hover { color: var(--black); }

.xp-dot.proto { --c: 31,95,153; }
