:root {
    --width: 40rem;
    --font-main: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Latin Modern Roman', 'Source Han Serif CN', serif;
    --font-secondary: var(--font-main);
    --font-scale: 1.1em;
    --background-color: #f7f7f7;
    --heading-color: var(--text-color);
    --text-color: #4a4a4a;
    --link-color: #264caf;
    --visited-color: #dfcc9e;
    --code-background-color: #000;
    --code-color: #c9d1d9;
    --blockquote-color: #c9d1d9;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: 50px auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
}

strong, b {
    color: var(--heading-color);
}

a {
    color: var(--link-color);
    text-decoration: underline dotted
}

nav a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

nav a:hover {
     text-decoration: underline; 
}

nav {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px dashed var(--text-color); /* Ã©paisseur, style, couleur */
  padding-bottom: 10px; /* espace entre les liens et la ligne */
}

nav p {
    padding: 0 20px;
}

nav a {
    margin-right: 15px;
    font-size: 0.9em;
}

button {
    margin: 0;
}

main {
    line-height: 1.6;
}

table {
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px dashed;
}

img {
    max-width: 100%;
}

code {
    font-family: monospace;
    padding: 2px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}

blockquote {
    text-align: right;
    border-left: 1px solid #999;
    color: var(--text-color);
    width: 60%;
    margin-left: auto;
    font-style: italic;
}

footer {
    padding: 25px 0;
    text-align: center;
}

button {
    border: 0;
    background-color: inherit;
    text-decoration: underline;
    color: var(--heading-color);
}

.centered {
    text-align: center;
}

.title {
    text-decoration: none;
}

.title h1 {
    color: var(--link-color);
    font-size: 0.8em;
}

.inline {
    width: auto !important;
}

.highlight,
.code {
    padding: 1px 15px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: auto;
}



@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #202428;
        --text-color: #ffffff;
        --link-color: #ffffff;
    }
}

