:root {
    --theme-color: #F08A4A;

    --cover-color: #FFFFFF;
    --cover-heading-color: #F08A4A;
    --cover-background-image: url(../images/title-background.jpg);
    --cover-button-primary-color: #000000;

    --sidebar-width: 12rem;
    --sidebar-nav-strong-font-size: 5pt;
    --sidebar-background: #101010;
    --sidebar-border-color: #2B2B2B;

    --base-font-family: 'Corporative Sans Alt', sans-serif;
    --base-background-color: #0C0C0C;
    --base-color: #FFFFFF;

    --heading-font-family: 'Hezaedrus', sans-serif;
    --heading-color: #F08A4A;
    --heading-h2-font-size: 26pt;
    --heading-h2-font-weight: bold;
    --heading-h2-padding: 0;
    --heading-h3-font-size: 17pt;
    --heading-h4-font-size: 16pt;

    --notice-important-background: rgba(255, 255, 255, 0.025);
    --notice-important-border-color: #8F2424;
    --notice-tip-background: rgba(255, 255, 255, 0.025);
    --notice-tip-border-color: #248F24;
    --blockquote-background: rgba(255, 255, 255, 0.025);
    --blockquote-border-color: #8F3C24;

    --code-theme-background: #1C1C1C;
    --code-inline-background: var(--code-theme-background);
    --code-font-family: 'JetBrains Mono', monospace;
    --code-font-size: 13pt;
    --code-font-weight: bold;
    --code-inline-color: var(--base-color);
    --code-inline-background: none;
    --code-theme-text: #FFFFFF;
    --code-theme-comment: #A29B90;
    --code-theme-function: #84D6EC;
    --code-theme-keyword: #E53F73;
    --code-theme-operator: #FFFFFF;
    --code-theme-punctuation: #FFFFFF;
    --code-theme-selection: #FFFFFF;
    --code-theme-selector: #E4DB82;
    --code-theme-tag: #A783F7;
    --code-theme-variable: #FFFFFF;
    --code-theme-background: #2B2B2B;
}

@media (prefers-color-scheme: light) {
    :root {
        --base-background-color: #F4F4f4;
        --base-color: #0C0C0C;
        --heading-color: #F08A4A;
        --sidebar-background: #E0E0E0;
        --sidebar-border-color: #C0C0C0;
        --notice-important-background: #E0E0E0;
        --notice-tip-background: #E0E0E0;
        --blockquote-background: #E0E0E0;
        --code-theme-background: #2C2C2C;
        --code-inline-background: var(--code-theme-background);
    }
}

/* conteneur en flex */
.cover .cover-main > p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* reset des boutons */
.cover .cover-main > p:last-child a {
    width: 100%;
    margin: 0;
    box-sizing: border-box;

    display: flex;  
    align-items: center;
    justify-content: center;
}

/* les 2 premiers en 2 colonnes */
.cover .cover-main > p:last-child a:nth-of-type(-n+2) {
    width: calc(50% - 8px);
    font-size: 0.85em;
}

.cover .cover-main > p:last-child a:first-child,
.cover .cover-main > p:last-child a:first-child:hover {
    background: none;
    color: var(--cover-button-color);
}

.cover .cover-main > p:last-child svg {
    display: block;
    margin-right: 8px;
    height: 32px;
    color: var(--cover-button-color);
}

.cover .cover-main form {
    margin-top: 24px;
    margin-right: 16px;
    text-align: right;
}

.cover .cover-main table {
    width: 100%;
    margin: 24px;
}

.cover .cover-main table th {
    text-align: right;
    width: 50%;
    font-size: 75%;
    padding-right: 8px;
}

.cover .cover-main form table th {
    font-size: 90%;
}

.cover .cover-main table td {
    text-align: left;
}

.cover .cover-main form input[type="text"],
.cover .cover-main form input[type="email"],
.cover .cover-main form textarea {
    margin: 4px;
    padding: 4px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    resize: none;
    border: 1px solid var(--cover-button-color);
    width: 240px;
    border-radius: 4px;
}

.cover .cover-main form input[type="date"] {
    margin: 4px;
    padding: 4px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    resize: none;
    border: 1px solid var(--cover-button-color);
    width: 160px;
    border-radius: 4px;
}

.cover .cover-main form input[type="date"]:disabled {
    color: transparent;
    opacity: 0.25;
}

.cover .cover-main form td.deadline {
    display: table-cell;
}

.cover .cover-main form td.deadline span {
    margin: 4px;
    padding: 4px;
    display: inline-block;
    width: 160px;
    text-align: left;
    color: var(--cover-button-color);
}

.cover .cover-main form td.deadline span.disabled {
    opacity: 0.25;
}

.cover .cover-main form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.cover .cover-main form td.form-buttons {
    text-align: center;
    padding-top: 16px;
}

.cover .cover-main form input[type="submit"],
.cover .cover-main a.back {
    background: var(--cover-button-color);
    color: black;
    padding: 8px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
}

.cover .cover-main form input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
    font: inherit;
    color: var(--cover-button-color);
    width: 1.15em;
    height: 1.15em;
    border: 1px solid var(--cover-button-color);
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: inline-grid;
    place-content: center;
}

.cover .cover-main form input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: white;
}

.cover .cover-main form input[type="radio"]:checked::before {
    transform: scale(1);
}

img.terminal-video {
    border-radius: 12px;
}

h2 {
    text-align: center;
    text-transform: uppercase;
}

h3 {
    text-transform: uppercase;
}

p.warn::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="%23FFFFFF"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>') !important;
}

span.important, b.important, a.important {
    font-weight: bold;
    color: rgb(218, 11, 80);
}

span.task, b.task, a.task {
    font-weight: bold;
    color: rgb(11, 135, 218);
}

section.cover h1 strong {
    font-size: 200%;
    color: var(--cover-heading-color);
}

section.cover p {
    font-size: 150%;
    font-weight: 300;
}

section.cover img {
    max-width: 300px !important;
}

aside.sidebar {
    font-size: 75%;
}

img {
    display: block;
    margin: auto;
    max-width: 95% !important;
}

pre::after {
    display: none;
}

div.filename {
    width: fit-content;
    color: var(--code-theme-text);
    background-color: var(--code-theme-background);
    font-family: var(--code-font-family);
    font-size: 10pt;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0 0 -20px;
    padding: 5px 20px;
}

div.command-info {
    color: var(--code-theme-comment);
    background-color: var(--code-theme-background);
    font-size: 13pt;
    border-top: 1px solid var(--base-background-color);
    border-bottom-left-radius: var(--code-block-border-radius);
    border-bottom-right-radius: var(--code-block-border-radius);
    margin: -17px 0 0;
    padding: 8px 24px;
}

form.PartLookupForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form.PartLookupForm h1 {
    margin-bottom: 24px;
}

input#partLookupInput {
    outline: none;
    border-radius: 16px;
    padding: 8px 16px;
    text-align: center;
}


div.PartLookupResults {
    height: 70vh;
    min-width: 300px;
    max-width: 500px;
    width: 90vh;
    margin-top: 16px;
    overflow: scroll;
    padding: 4px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--cover-button-color);
    border-radius: 4px;
}

div.PartLookupResultItem {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

div.PartLookupResultItem:last-child {
    border-bottom: none;
}

span.PartLookupResultTag {
    background: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
}

div.PartLookupStatus {
    margin-top: 8px;
}