:root {
  /* variables */
  /* https://radicalweb.design/ressources/css/plus/variables/ */
  --maxwidth: 60rem;
  /* variables pour fontes variables */
  /* https://radicalweb.design/ressources/typo/variables/ */
  --font-wght: 350;
  --font-wdth: 100;
}


/* ------------------------------------------------------------ body & reset */

body { 
  background: var(--backgroundcolor);
  color: var(--textcolor);
  font-family: "Figtree";
  line-height: 1.6;
  margin: 0;
  transition: background-color 0.5s ease, color 0.5s ease;
}

*, *::before, *::after {
  /* dans le cas d’une fonte variable, on établit des variables (ici, graisse et chasse) pour tous les éléments: */
  font-variation-settings: "wght" var(--font-wght, 400), "wdth" var(--font-wdth, 112.5);
}


/* ------------------------------------------------------------ thème clair & sombre */
/* Thème clair */
:root,
:root[data-force-color-mode="light"] {
  color-scheme: light dark;
  --textcolor: #c33d03;
  --bordercolor: #c33d03;
  --accentcolor: #1d65a8;
  --backgroundcolor: #f2f7ed;
  --tiretcolor: #c33d03;
}


/* Thème sombre : obligation de dupliquer dans @media les règles ci-dessus */
@media (prefers-color-scheme: dark) {
  :root {
    --textcolor: #f2f7ed;
    --bordercolor: #f2f7ed;
    --accentcolor: #ff8855;
    --backgroundcolor: #1C4067;
    --tiretcolor: #f2f7ed;
    --font-wght: 280;
  }
}

/* Thème sombre */
:root[data-force-color-mode="dark"] {
  --textcolor: #f2f7ed;
  --bordercolor: #f2f7ed;
  --accentcolor: #ff8855;
  --backgroundcolor: #1C4067;
  --tiretcolor: #f2f7ed;
  --font-wght: 280;
}


/* ------------------------------------------------------------ liens */
a {
  color: currentColor;
}

/* ------------------------------------------------------------ typographie */
h1 {
  font-family: "Skranji";
  font-size: 3rem;
  --font-wght: 400;
  --font-wdth: 90;
  line-height: 1.2;
  text-wrap: balance;
}
h2, h3 {
  font-size: 1.75rem;
  --font-wght: 400;
  line-height: 1.3;
  text-wrap: balance;
}
p {
  margin-bottom: 1.6em;
}
ul {
  padding: 0;
  list-style-type: none;
}
ul li {
  padding-left: 2em;
}
ul li::before {
  margin-left: -2em;
  content: "— ";
  position: absolute;
}
/* ------------------------------------------------------------ navigation */
.top-nav { 
  border-radius: 25px;
  border-bottom: 7px double var(--bordercolor);
  font-family: "Skranji";
  padding: 1em;
  text-transform: uppercase;
  text-align: center;
  position: sticky;
  top: 0;
  color: var(--accentcolor);
  background: var(--backgroundcolor);
  transition: background-color 0.5s ease, color 0.5s ease;
}
.top-nav a {
  text-decoration: none;
  letter-spacing: .05em;
}

/* ------------------------------------------------------------ main */
main { 
  
}
main > * {
  padding: 1rem;
}

/* ------------------------------------------------------------ header */
header { 
  padding: 4rem 1rem 1rem;
}
header h1 { 
  text-align: center;
}
header h1 strong { 
  display: block;
  font-weight: inherit;
}

header p {
  text-align: center;
}

.authors { 
  font-family: "FigtreeB";
  font-style: bold;
  font-size: 1.313em;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 3em;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--accentcolor);
}
.keywords { 
  font-family: "FigtreeB";
  padding: 0px 5% 0px 5%;
  max-width: 50em;
  /*margin-left: auto;*/
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1em;

}

.keywords a { 
  text-decoration: none;
}

/* ------------------------------------------------------------ texte */
.epigraphe { 
  padding: 0px 3% 0px 3%;
  text-align: right;
  color: var(--accentcolor);
  display: block;
  margin-left: 10em;
  margin-right: 10em;
  max-width: 100%;
}

.text { 
  color: var(--textcolor);
  display: flex;
  flex-direction: column;
  font-size: 1.15em;
  gap: 1.6em;
  padding: 1.6em 1em;
}
.text p { 
  margin: 0;
  margin: 0 0 1em; /* la marge inférieure sera occupée par le filet */
  line-height: 1.5;
}

.text p + p::before {  
  text-indent: 1.5em;
  content: '';
  display: block;
  margin: -.5em 0 .75em;
  height: .25em;
  width: 4em;
  background: var(--accentcolor);
}

.text .quote { 
  --font-wght: 900;
  max-width: max(75%, 23em);
  align-self: flex-end;
  color: var(--accentcolor);
}

/* > * sélectionne tous les enfants directs des éléments */
.text,
.readmore > *,
.biography > *,
.footnotes > * {
  /* `margin-inline` cible les marges droite et gauche, en système d’écriture horizontal */
  margin-inline: auto;
  max-width: var(--maxwidth);
}
/* ------------------------------------------------------------ tableau ! (pages/03-mal-developpement.html) */
table {
  border-collapse: collapse;
}
th { --font-wght: 600}
td, th {
  padding-block: .5em;
  vertical-align: top;  
  text-align: left;
  border-bottom: 0.17em solid var(--accentcolor);
}
td:not(:first-child),
th:not(:first-child) { padding-left: .5em; border-left: 0.17em solid var(--accentcolor);}
td:not(:last-child),
th:not(:last-child) { padding-right: .5em; border-right: 0.17em solid var(--accentcolor);}
tbody tr:last-child td, tbody tr:last-child th {
  border-bottom: none;
}
/* ------------------------------------------------------------ texte + */
.readmore {
  text-align: right;
  padding: 0px 5% 0px 20%;
  font-size: 0.8em;
  max-width: 65em;
  margin-left: auto;
}

.readmore p {
  margin: 0 0 0.2em;
}

.readmore p + p::before {
  content: '✦';
  display: block;
  text-align: right;
  font-size: 0,4em;
  color: var(--accentcolor);
}

.readmore,
.biography {
  text-align: right;
  padding: 0px 5% 10em 20%;
  font-size: 0.8em;
  max-width: 65em;
  margin-left: auto;
}
.footnotes { 
  max-width: 65em;
  padding: 0em 0em 0em 3%;
  font-size: 0.8em;
  padding-bottom: 2em;
}

.footnotes ol { 
  padding: 0;
  list-style-position: inside;
  padding-bottom: 2em;
}

.footnotes li {
  text-indent: -2em;
  padding-left: 2em;
  padding-bottom: 2em;
}

/* ------------------------------------------------------------ footer */
#footer {
  display: flex;
  flex-direction: column;
}
#footer > * {
  padding: 1em;
}
.articles-prev-next {
  border-radius: 25px;
  border-top: 7px double var(--bordercolor);
  font-family: "Figtree";
  text-align: center;
  position: fixed;
  bottom: 0;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  color: var(--accentcolor);
  background: var(--backgroundcolor);
  transition: background-color 0.5s ease, color 0.5s ease;
  min-width: 98%;
}

.articles-prev-next a {
  text-decoration: none;
}

.theme {
  position: fixed;
  top: 0;
  right: 0;
  color: var(--accentcolor);
  transition: color 0.5s;
}
.theme:hover {
  color: var(--textcolor);
}

.theme input,
.theme span {
  display: none;
}

.theme label::before {
  content: 'Clair / Sombre ✦';
}

@media screen and (prefers-color-scheme: dark) {
  .theme label::before {content: 'Sombre ✧';}
}
html[data-force-color-mode="dark"] {
.theme label::before {content: 'Clair ✦';}
}

::-moz-selection {
  background-color: var(--backgroundcolor);
  color: var(--accentcolor);
}

::selection {
  background-color: var(--backgroundcolor);
  color: var(--accentcolor);
}

.authors::-moz-selection {
  background-color: var(--backgroundcolor);
  color: var(--textcolor);
}

.authors::selection {
  background-color: var(--backgroundcolor);
  color: var(--textcolor);
}
span::-moz-selection {
  background-color: var(--backgroundcolor);
  color: var(--textcolor);
}

span::selection {
  background-color: var(--backgroundcolor);
  color: var(--textcolor);
}

/*.tags-link {
  position: fixed;
  top: 0;
  left: 0;
  color: var(--accentcolor);
}*/
.tags-link a{
  text-decoration: none;
}

a strong {
  color: var(--textcolor);
  transition: color 0.5s;
}
a strong:hover {
  color: var(--accentcolor);
}

li span {
  color: var(--accentcolor);
}

.index .content li {
display: flex;
justify-content: space-between;
}

.index .outro li {
  display: flex;
  justify-content: space-between;
}
.index .intro li {
  display: flex;
  justify-content: space-between;
}

/*ul.intro {
/*max-width: 40em;
padding: 0;
overflow-x: hidden;
list-style: none;
}

ul.intro li:before {
float: left;
width: 0;
white-space: nowrap;
content:
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
}

ul.intro span:first-child {
padding-right: 0.33em;
background: white
}

ul.intro span + span {
float: right;
padding-left: 0.33em;
background: white
}*/