: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;
  --textcolor: #7e596b;  
  --backgroundcolor: #dff377;
}

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

body { 
  background: var(--backgroundcolor);
  color: var(--textcolor);
  font-family: 'CabinetGrotesk-Regular';
  line-height: 1.6;
  margin: 0;
  font-size: 20px;
}

*, *::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"] {
--textcolor: #7e596b;  
  --backgroundcolor: #dff377;
  --accentcolor: #7e596b79; 
   --font-wght: 280;
}


/* Thème sombre : obligation de dupliquer dans @media les règles ci-dessus */
@media screen and (prefers-color-scheme: dark) {
  :root {
  --textcolor: #dff377;  
  --backgroundcolor: #7e596b;
    --font-wght: 280;
  }
}

/* Thème sombre */
:root[data-force-color-mode="dark"] {
  --textcolor: #dff377;  
  --backgroundcolor: #7e596b;
    --accentcolor: #def37776; 
  --font-wght: 280;
}

/* ------------------------------------------------------------ liens */
a {
  color: currentColor;
  text-decoration: none;
}

/* ------------------------------------------------------------ typographie */
h1 { /*titre article*/
  font-size: 2.5rem;
  --font-wght: 400;
  --font-wdth: 90;
  line-height: 1.2;
  text-wrap: balance;
  font-family: 'Comico-Regular';
}

h4{ /*titre "plurivers""*/
   font-size: 4rem;
  --font-wght: 400;
  --font-wdth: 90;
  line-height: 0;
  text-wrap: balance;
  font-family: 'Comico-Regular';
  text-align: center;
}

.un{
  margin-left: 0;
}

.deux{
  margin-right: 0;
}

h2 { /*sommaire*/
  font-size: 1.75rem;
  --font-wght: 400;
  line-height: 0;
  text-wrap: balance;
  font-family: 'Comico-Regular'; 
  font-size: 30px;
  line-height: 1;
  margin-bottom: 0em;
}

h3 { /*sous-titre des textes ex "pour aller plus loin"*/
  font-size: 1.75rem;
  --font-wght: 400;
  line-height: 0;
  text-wrap: balance;
  font-family: 'Comico-Regular'; 
  font-size: 30px;
  line-height: 1;
  margin-bottom: 0em;
}

h5{ /*sous-titre "développement*/
   font-size: 1.75rem;
  --font-wght: 400;
  line-height: 0;
  text-wrap: balance;
  font-family: 'Comico-Regular'; 
  font-size: 30px;
  line-height: 1;
  margin-bottom: 0em;
  text-align: center;
}

.preface{
  text-align: center;
  border-top: 0.1em solid #8d6d7cb5;
}

p {

}

.declaration {
 font-family: 'CabinetGrotesk-Bold';
 border-top: 0.1em solid #8d6d7cb5;
 margin: 1.6rem auto;
}

ul { /*intro*/
  padding: 0;
  list-style-type: none;
}
.intro {
  margin-top: 0em;
}

ul li {
}
ul li::before {
  content: "— ";
}
/* ------------------------------------------------------------ navigation */
.top-nav { 
  border-bottom: 1px solid var(--bordercolor);
  padding: 1em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: #7e596bbf;;
  font-family: 'Comico-Regular';
  color: #dff377;
}
.top-nav a {
  text-decoration: none;
  letter-spacing: .05em;
  
}


/* ------------------------------------------------------------ main */
main { 

}
main > * {
  padding: 1rem;
}

/* ------------------------------------------------------------ header */
header { 
  border-bottom: 1px solid var(--bordercolor);
  /*padding: 4rem 1rem 1rem;*/
}
header h1 {
  display: block;
  font-weight: inherit;
  font-family: 'Comico-Regular'; 
  text-align: center;
 }
header h1 strong { 
}

.authors { 
  text-transform: uppercase;
  letter-spacing: .02em;
  font-family: 'CabinetGrotesk-Regular';
  font-size: 20px;
  text-align: center;
  line-height: 1.1; 

}
.keywords { 
   font-family: 'CabinetGrotesk-Regular';
  max-width: var(--largeur);
  margin : auto ;
  line-height: 1.1; 
  font-size: 17px;
  text-align: center;
  border-top: 0.1em solid #8d6d7cb5;
  border-bottom: 0.1em solid #8d6d7cb5;
  padding: 10px;
}
.keywords a { 
  margin : auto ;
 text-decoration: none;
 padding-bottom: 30px;
}

/* ------------------------------------------------------------ texte */
.epigraphe { }

.text { 
  color: var(--textcolor);
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 1.6em 1em;
  max-width: var(--largeur);
  margin: auto;
  line-height: 1.2; /* Augmentation de l’interligne */
}
.text p { 
  margin: 0;
}
.epigraphe,
.text .quote { 
  /*color: var(--accentcolor);*/
  --font-wght: 900;
  /*max-width: max(75%, 23em);*/
  align-self: flex-end;
  font-family: 'CabinetGrotesk-Extrabold';
  font-size: 20px;
  text-align: center;
}

/* > * sélectionne tous les enfants directs des éléments */
.text,
.readmore > *,
.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: 1px solid var(--bordercolor); */
}
td:not(:first-child),
th:not(:first-child) { padding-left: .5em; /*border-left: 1px solid var(--bordercolor)*/;}
td:not(:last-child),
th:not(:last-child) { padding-right: .5em; /*border-right: 1px solid var(--bordercolor)*/;}
tbody tr:last-child td, tbody tr:last-child th {
  border-bottom: none;
}
/* ------------------------------------------------------------ texte + */
.readmore {
  border-top: 1px solid var(--bordercolor);
  max-width: var(--largeur);
  margin : auto ;
  font-size: 13px;
  border-top: 0.1em solid #8d6d7cb5;
  border-bottom: 0.1em solid #8d6d7cb5;
  line-height: 1;
}
.readmore,
.footnotes { 
 border-bottom: 1px solid var(--bordercolor); 
 
}
.biography {
  font-family: 'Comico-Regular';
  font-size: 19px;
  text-align: center;
  max-width: var(--largeur);
  margin : auto ;
  line-height: 1.5; 
  --textcolor: #7e596b;  
 border-bottom: 0.1em solid #8d6d7cb5;
 border-top: 0.1em solid #8d6d7cb5;
}

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

.footnotes li {
  text-indent: -2em;
  padding-left: 2em;
  font-size: 13px;

}

/* ------------------------------------------------------------ footer */
#footer {
  display: flex;
  flex-direction: column;
  border-top: 0.1em solid #8d6d7cb5;
}
#footer > * {
  padding: 1.6em 1em;
}
.articles-prev-next {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  border-bottom: 1px solid var(--bordercolor);
}
