: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(--body-bg);
  color: var(--body-text);
  font-family: 'Hammersmith One';
  font-weight: normal;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
}

*, *::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: #c5887b;
  --bordercolor: rgb(99, 99, 99);
  --accentcolor: var(--darkcolor);
  --darkcolor: #083144;
  --lightcolor:#c5887b;
  --body-bg: var(--lightcolor);
  --body-text: var(--darkcolor);
  --header-bg: var(--darkcolor);
  --header-text: var(--lightcolor);
}


/* Thème sombre : obligation de dupliquer dans @media les règles ci-dessus */
@media (prefers-color-scheme: dark) {
  :root {
    --textcolor: #c5887b; 
    --bordercolor: rgb(99, 99, 99);
    --accentcolor: rgb(1,0,0);
    --font-wght: 280;
    --darkcolor: #083144; 
    --lightcolor:#c5887b;
    --body-bg: var(--darkcolor);
    --body-text: var(--lightcolor);
    --header-bg: var(--lightcolor);
    --header-text: var(--darkcolor);

  }
}

/* Thème sombre */
:root[data-force-color-mode="dark"] {
  --textcolor: #c5887b;
  --bordercolor: rgb(99, 99, 99);
  --accentcolor: rgb(1,0,0);
  --backgroundcolor: #083144;
  --font-wght: 280;
  --darkcolor: #083144;
  --lightcolor:#c5887b;
  --body-bg: var(--darkcolor);
  --body-text: var(--lightcolor);
  --header-bg: var(--lightcolor);
  --header-text: var(--darkcolor);
}


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

/* ------------------------------------------------------------ typographie */

h1 {
  font-size: 2.5rem;
  --font-wght: 400;
  --font-wdth: 90;
  text-wrap: balance;
}
h2, h3 {
  font-size: 1.75rem;
  --font-wght: 400;
  text-wrap: balance;
}
p {
  margin-bottom: 1.6em;
}
ul {
  padding: 0;
  list-style-type: none;
}
ul li {
  
}
.typed-cursor{
opacity: 1;


}
.typed {
  display: inline-block;
  min-width: 9ch;
}
.typed-cursor.typed-cursor--blink{
          animation: typedjsBlink 0.7s infinite;
          -webkit-animation: typedjsBlink 0.7s infinite;
                  animation: typedjsBlink 0.7s infinite;
        }
        @keyframes typedjsBlink{
          50% { opacity: 0.0; }
        }
        @-webkit-keyframes typedjsBlink{
          0% { opacity: 1; }
          50% { opacity: 0.0; }
          100% { opacity: 1; }
        }

ul li::before {
  content: "— ";
}
/* ------------------------------------------------------------ navigation */
.top-nav { 
  border-bottom: 1px solid var(--bordercolor);
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1em;
  position: sticky;
  top: 0;
  font-family: "Nova Square";
  text-align: center;
  text-decoration: none;
  font-size: clamp(1rem,3vw,2rem)
  
  
}
.top-nav a {
  text-decoration: none;
}

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

}
main > * {
  padding: 1rem;
}

/* ------------------------------------------------------------ header */
header { 
  padding: 4rem 1rem 1rem;
}
header h1 {
font-family: "Nova Square";
text-align: center;
border-radius: 0.1em;
font-size: clamp( 2rem, 7vw, 3rem);
padding: clamp(0.5rem, 5vw, 5rem);
background: var(--header-bg);
color: var(--header-text);
 }
header h1 strong { 
  display: block;
  font-weight: inherit;
}

.authors { 
  font-family: 'Volkhov';
  font-size: clamp(1rem, 2vw, 1.5rem) ;
  font-style: italic;
  font-weight: bold;
}
.keywords {
  display: flex;
  font-size: clamp(0.6rem,6vw,1rem);
  margin: 0rem;
  background: var(--body-bg);
  color: var(--body-text);
  gap: 0.5em;
  font-family: 'Volkhov';
  align-items:start;
  padding: 1rem 1rem;
  overflow: auto;
  max-width: 100%;
  box-sizing: border-box;
 }
.keywords a { 
  white-space: nowrap;
  background: var(--body-text);   /* bulle inversée du fond */
  color: var(--body-bg); 
  border-radius: 2em;
  padding: 0.5em 1.25em;
  text-decoration: none;
}

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

.text { 

  background: var(--body-text);   /* bulle inversée du fond */
  color: var(--body-bg);
  font-size: 1em;
  border-radius: 0.1em;
  font-family: "Hammersmith One";
  max-width: 80ch;
  margin: 2rem 1rem 1rem 1rem;
  padding: clamp(1rem,2vw,2rem);
}
.text p:first-child::first-letter {
  font-weight: bold;
  float: left;
  font-size: 7.25em;
  line-height: .9;
  margin: -.02em .04em -.2em -.07em; 
}
.text p { 
  margin: 0;
}
.epigraphe,
.text .quote { 
  /* color: var(--accentcolor); */
  --font-wght: 900;
  max-width: max(75%, 23em);
  align-self: flex-end;
}

/* > * 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: 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 {
 
  
}
.biography{
   border-top: 1px solid var(--bordercolor);
   border-bottom: 1px solid var(--bordercolor);
   font-size: 1em;
   font-family:'Volkhov';
   
}
.footnotes { 
  border-bottom: 1px solid var(--bordercolor);
}

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

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

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