: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: "Century Schoolbook L";
  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: #4f0108;
  --bordercolor: #4f0108;
  --accentcolor: #4f0108;
  --backgroundcolor: #cffbdc;
}


/* Thème sombre : obligation de dupliquer dans @media les règles ci-dessus */
@media (prefers-color-scheme: dark) {
  :root {
   --textcolor: #cffbdc;
  --bordercolor: #cffbdc;
  --accentcolor: #cffbdc;
  --backgroundcolor: #4f0108;
  }
}

/* Thème sombre */
:root[data-force-color-mode="dark"] {
  --textcolor: #cffbdc;
  --bordercolor: #cffbdc;
  --accentcolor: #cffbdc;
  --backgroundcolor: #4f0108;
  --font-wght: 280;
}


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

/* ------------------------------------------------------------ typographie */
h1 { display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Paragon";
  font-weight: bold;
    font-style: italic;
    font-display: swap;
  font-size: 3rem;
  --font-wght: 400;
  --font-wdth: 90;
  line-height: 1.2;
  text-wrap: balance;

  /* Transforme en bande */

  background: #4f0108;      /* couleur de la bande */
  color: #cffbdc;           /* couleur du texte */
  padding: 1rem 2rem;     /* hauteur de la bande */
  margin: 0;              /* retirer les marges par défaut */
}

h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Paragon";
  font-weight: normal;
    font-style: italic;
    font-display: swap;
  font-size: 1.75rem;
  --font-wght: 400;
  line-height: 1.3;
  text-wrap: balance;
}
 h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
   font-family: "Century Schoolbook L";
     font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-size: 1.75rem;
  --font-wght: 400;
  line-height: 1.3;
  text-wrap: balance;
  margin: 0%;
}
p {
  margin-bottom: 1.6em;
}
ul {
  padding: 0;
  list-style: none;
}
ul li { 
  
  list-style: none;
}


/* ------------------------------------------------------------ navigation */
.top-nav { 
  font-family:"P-ACR-AGON" ;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--bordercolor);
  padding: 1em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: var(--backgroundcolor);
}
.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 { }
header h1 strong { 
  display: block;
  font-weight: inherit;
}

.authors { 
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: .02em
  
}
.keywords { }
.keywords a { }

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

.text { 
  color: var(--textcolor);
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 1.6em 1em;
}
.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,
.footnotes {
  border-top: 1px solid var(--bordercolor);
}


.footnotes ol { 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  list-style-position: inside;
}

.footnotes li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-indent: -2em;
  padding-left: 2em;
}

/* ------------------------------------------------------------ footer */
#footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#footer > * {
  padding: 1.6em 1em;
}
.articles-prev-next {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  border-bottom: 1px solid var(--bordercolor);
}
.monimage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Mettre readmore à gauche et biography à droite, séparés par une ligne verticale */
.readmore,
.biography {
  display: inline-block; /* pour que les deux soient sur la même ligne */
  vertical-align: top;
  width: 48%; /* ajuste selon l'espace disponible */
  padding: 1rem;
  box-sizing: border-box; /* inclut le padding dans la largeur */
}
.readmore,
.biography,
.footnotes {
  border-right: 2px solid var(--bordercolor); /* ligne verticale entre les deux */
}

