* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #720c2e;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

header > ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    margin: 2px 0 2px 0;
    padding: 0;
}

header > ul > li {
    padding: 5px;
}

header > ul > li:nth-of-type(6) {
    background-color: #212E53;
    border-radius: 10px;
}

header a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

header a:hover {
    background-color: #a2284d;
}

header li:nth-of-type(6) > a:hover {
    background-color: unset;
}

main {
    margin-top: 55px;
}

main article:nth-of-type(1) {
    background-color: #CE6A6B;
}

main article:nth-of-type(2) {
    background-color: #EBACA2;
}

main article:nth-of-type(3) {
    background-color: #BED3C3;
}

main article:nth-of-type(4) {
    background-color: #4A919E;
}

main article:nth-of-type(5) {
    background-color: #212E53;
    color: #c4d4ff
}

article:nth-of-type(5) a {
    color: #57a8ff;
    text-decoration: none;
}

article {
    scroll-margin-top: 55px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

article:nth-child(odd) {
    flex-direction: row-reverse;
}

article:nth-child(even) {
    flex-direction: row;
}

article section {
    max-width: 60%;
    max-height: 80%;
    padding: 10px;
    text-align: justify;
}

article img {
    max-width: 40%;
    max-height: 80%;
    padding: 10px;
    border-radius: 5px;
    object-fit: cover;
}

.code-container {
    max-width: 40%;
    max-height: 80%;
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 5px;
    object-fit: cover;
}

.code-block {
    flex: 1;
    background-color: #272822;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
pre {
    margin: 0;
    white-space: pre-wrap; /* Wrap long lines */
    word-break: break-word; /* Break long words */
}
.code-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #66d9ef;
}

footer {
    background-color: #e7e7e7;
    text-align: center;
    padding: 10px;
}

/*Pour faire beau*/
section {
    line-height: 1.8;
    margin: 20px;
}

h1, h2 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

p:last-of-type {
    margin-bottom: 30px;
}

a {
    color: #00356d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

em {
    font-style: italic;
}