:root {
  --maxwidth: 60rem;

  /* dégradé Plurivers */
  --pluri-gradient: linear-gradient(#cabc19);

  /* fontes */
  --font-body: "Century Schoolbook L", "Century Schoolbook", serif;
  --font-display: "Paragon", serif;
  --font-accent: "P-ACR-AGON", "Paragon", serif;
}

/* ----------------- thème clair par défaut ----------------- */
:root,
:root[data-force-color-mode="light"] {
  color-scheme: light dark;
  --backgroundcolor: #ffffff;
  --textcolor: #cabc19;
  --bordercolor: #cabc19;
  --shadowcolor: #c56799;
  --mutedcolor: #b5b5d4;
  --accentcolor: #c56799;
}

/* ----------------- thème sombre automatique ----------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --backgroundcolor: c56799;
    --textcolor: #f2f2f2;
    --bordercolor: #cabc19;
    --shadowcolor: #c56799;
    --mutedcolor: #b5b5d4;
    --accentcolor: #c56799;
  }
}

/* ----------------- thème sombre forcé ----------------- */
:root[data-force-color-mode="dark"] {
  --backgroundcolor: #c56799;
  --textcolor: #f2f2f2;
  --bordercolor: #cabc19;
  --shadowcolor: #c56799;
  --mutedcolor: #b5b5d4;
  --accentcolor: #c56799;
}

/* ----------------- reset & base ----------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--backgroundcolor);
  color: var(--textcolor);
  margin: 4%;
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: #6d6c95;
}

/* ----------------- liens ----------------- */

a {
  color: #cabc19;
  text-decoration-color: var(--accentcolor);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-style: wavy;
}

/* ----------------- titres généraux ----------------- */

h1,
h2,
h3 {
  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-radius: 4px;
  overflow: hidden;
  margin-top: 10%;
  margin-bottom: 5%;
}

h1 {
  font-size: 4em;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.1em;
  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%;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.1em;
  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%;
}

/* variante logo “Plurivers” (ancienne page + nouveau header <strong>) */

/* ----------------- auteurs, petits textes ----------------- */

.authors {
  font-family: var(--font-display);
  color: #b5b5d4;
  font-size: 2.5em;
}

span {
  color: #b5b5d4;
}

/* ----------------- listes (style global) ----------------- */

ul {
  
  background-image: var(--pluri-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color:  var(--pluri-gradient);
  padding-left: 0;
  list-style: none;
}

li {
  color: #cabc19;
  margin-bottom: 0.3em;
}

/* ----------------- blocs de texte (pages article) ----------------- */

.text {
    font-family: var(--font-body);
    padding: 6%;
    width: 100%;
    max-width: 52em;
    background-image: linear-gradient(#cabc19);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    hyphens: auto;
}

.text p {
  font-family: var(--font-body);
  font-size: 1.1em;
  line-height: 1.6;
  margin: 10px 0;
  text-align: justify;
}

.text .quote {
  font-family: var(--font-display);
  color: #ffffff;
}

/* ----------------- modules lecture / bio / notes ----------------- */

.readmore {
  text-align: left;
  display: inline-block;
  width: 45%;
  color: #b5b5d4;
  vertical-align: top;
  margin-right: 5%;
}

.biography {
  position: relative;
  display: inline-block;
  width: 45%;
  vertical-align: top;
  text-align: right;
  font-style: italic;
  color: #b5b5d4;
  line-height: 1.6;
  font-family: var(--font-body);
}

.footnotes {
  font-family: var(--font-display);
  color: #cabc19;
}

/* ----------------- mots-clés ----------------- */

.keywords {
  font-family: var(--font-body);
  color: #cabc19;
  font-size: 2em;
}

.keywords a {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85em;
  color: #cabc19;
}

/* ----------------- fenêtre / encart ----------------- */

.window {
  width: 100%;
  max-width: 100%;
  padding: 1em;
  background-image: var(#cabc19);
  border: 2px solid var(--bordercolor);
  box-shadow: 8px 8px 0 var(--shadowcolor);
  border-radius: 4px;
  overflow: hidden;
  margin: 1em 0;
}

/* guillemets décoratifs de la biographie */

.biography::before,
.biography::after {
  position: absolute;
  font-family: var(--font-display);
  color: #cabc19;
  font-size: 6rem;
  line-height: 0.8;
  opacity: 0.2;
}


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

@media (max-width: 768px) {
  body {
    margin: 2%;
  }

  h1 {
    font-size: 1.8em;
  }

  h2,
  h3 {
    font-size: 1em;
    padding: 4%;
  }

  .text p {
    font-size: 1em;
  }

  .readmore {
    font-size: 0.6em;
  }

  .window {
    padding: 0.5em;
    box-shadow: 4px 4px 0 var(--shadowcolor);
  }

  .readmore,
  .biography {
    display: block;
    width: 100%;
    text-align: center;
    margin: 2rem 0;
  }

  .biography::before,
  .biography::after {
    font-size: 4rem;
    opacity: 0.15;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }

  h2,
  h3 {
    font-size: 0.9em;
    padding: 3%;
  }

  .text p {
    font-size: 0.95em;
  }

  .readmore {
    font-size: 0.55em;
  }

  .window {
    padding: 0.3em;
    box-shadow: 3px 3px 0 var(--shadowcolor);
  }
}
