/* ---------- Couleurs du thème (vert, contrastes AA) ---------- */

:root > * {
  --md-primary-fg-color:        #2e7d32;
  --md-primary-fg-color--light: #4caf50;
  --md-primary-fg-color--dark:  #1b5e20;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color:         #1b5e20;
  --md-accent-fg-color--transparent: #2e7d321a;
  --md-typeset-a-color:         #2e7d32;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #1f5f24;
  --md-primary-fg-color--dark:  #174a1b;
  --md-accent-fg-color:         #a5d6a7;
  --md-accent-fg-color--transparent: #81c7841a;
  --md-typeset-a-color:         #81c784;
}

/* ---------- Accueil uniquement (.tk-home) ---------- */

.tk-home {
  max-width: 46rem;
  margin: 0 auto;
}

.tk-home h1 {
  margin-bottom: 0.6em;
  font-weight: 700;
  color: var(--md-default-fg-color);
}

.tk-home .tk-lead {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 2.4em;
}

.tk-home h2 {
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-default-fg-color--light);
}

.tk-home .grid.cards {
  grid-template-columns: 1fr;
}

.tk-home .grid.cards > ul > li {
  border-left: 0.25rem solid var(--md-primary-fg-color);
  padding: 1.2em 1.4em;
}

[data-md-color-scheme="slate"] .tk-home .grid.cards > ul > li {
  border-left-color: var(--md-typeset-a-color);
}

.tk-home .grid.cards .lg {
  color: var(--md-typeset-a-color);
}

/* Évite que l’ancre invisible du titre ne passe à la ligne sur mobile */
.tk-home h1 .headerlink {
  display: none;
}
