/* ========= PAGE INDEX (nouvelle version) ========= */

body.index {
  margin: 4%;
  background-color: #6d6c95;
}

/* header du nouveau index */

body.index header {
  border-bottom: 1px solid var(--bordercolor);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

body.index header h1 {
  margin-top: 0.2em;
  margin-bottom: 0.5em;
}

body.index header p {
  margin: 0.3em 0;
}

/* ----------------- bloc déclaration zapatiste ----------------- */

.declaration {
  border-bottom: 1px solid var(--bordercolor);
  margin: 1.6rem auto 2.4rem;
}

.declaration > * {
  max-width: var(--maxwidth);
  margin: 1.6rem auto;
}

.declaration blockquote {
  margin: 0;
  padding: 1.5rem 1.2rem;
  border-left: 4px solid var(--accentcolor);
  background-color: #c56799;
  color: #ffffff;
  font-family: var(--font-body);
}

.declaration blockquote p {
  margin: 0 0 1em;
}

.declaration footer {
  text-wrap: balance;
  margin-top: 1.6rem;
  font-size: 0.9em;
  color: #cabc19;
  text-align: right;
}

/* petit paragraphe après la citation */
.declaration + p {
  max-width: var(--maxwidth);
  margin: 0 auto 2rem;
}

/* ----------------- mise en page générale du main ----------------- */

main {
  border-bottom: 1px solid var(--bordercolor);
  padding-bottom: 2.5rem;
}

main > * {
  padding: 0 1rem;
}

/* h2 “Sommaire”, “Thèmes” */

body.index h2 {
  max-width: var(--maxwidth);
  margin: 2rem auto 1rem;
}

/* contenus centraux */

.intro,
.content,
.outro,
.tags-link {
  max-width: var(--maxwidth);
  margin: 1.6em auto;
}

/* sur cette page, on enlève le dégradé sur les listes
   pour garder un texte bien lisible */

body.index ul {
  background-image: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

body.index li {
  color: var(--textcolor);
}

body.index li span {
  color: var(--mutedcolor);
}

/* sous-titres de sections numérotées */

.content h3 {
  margin-top: 2.5rem;
}

/* liste outro */

.outro li {
  margin-bottom: 0.35rem;
}

/* ----------------- lien "Parcourir les thèmes" ----------------- */

.tags-link {
  text-align: center;
  margin-top: 2.5rem;
}

.tags-link a {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--bordercolor);
  box-shadow: 8px 8px 0 var(--shadowcolor);
  font-family: var(--font-display);
  font-style: italic;
  background-image: var(--pluri-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.tags-link a:hover {
  box-shadow: 10px 10px 0 var(--shadowcolor);
}

/* ----------------- footer (toggle sombre / clair) ----------------- */

#footer {
  display: flex;
  flex-direction: column;
  padding: 1.6em 1rem 2.4em;
}

#footer .theme {
  font-family: var(--font-body);
  font-size: 0.9em;
  display: flex;
  align-items:flex-end;
  justify-content:right;
  gap: .5rem;
}

#footer .theme input[type="checkbox"] {
  accent-color: var(--accentcolor);
}

/* ----------------- responsive ----------------- */

@media (max-width: 768px) {
  .declaration {
    margin-top: 1rem;
  }

  .declaration blockquote {
    padding: 1.2rem 1rem;
  }

  main > * {
    padding: 0;
  }
}

h2 {
  font-family: var(--font-display);
  font-size: 2.2em;
  font-style: normal;
  margin-top: 5%;
  margin-bottom: 5%;
  font-family: var(--font-display);
  font-style: italic;
  background-image: var(--pluri-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2%;
  padding: 3%;
  width: 100%;
  max-width: 100%;
  border: 2px solid var(--bordercolor);
  box-shadow: 8px 8px 0 var(--shadowcolor);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10%;
  margin-bottom: 5%;
}

.Plurivers{
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-style: italic;
  background-image: var(--pluri-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  

}
