:root {
    --white: #f2f2f2;
    --black: #000;
    --dark-grey: #212529;
    --light-grey: #b9b9b9;
    --ultra-light-grey: #efefef;
    --primary-dark: #4c0d00;
    --primary: #d52500;
    --primary-light: #b2452e;
    --primary-ultra-light: #e1a89d;
    --primary-low-opacity: rgba(0, 49, 76, 0.2);
    --info-background: rgba(0, 105, 128, 0.2);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover, a:active {
    color: var(--primary-light);
    text-decoration: none;
}

.back-arrow-sidebar {
    margin-top: 1rem;
    width: auto;
    height: 50px;
}

.back-arrow-pages {
    max-width: 100px;
    height: auto;
}

.block-form-group {
    width: 100%;
    display: flex;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
}


.block-sidebar {
    border-bottom: #999999 1px solid;
}

.btn {
    font-family: "Segoe UI", sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    width: fit-content;
    padding: 0.375rem 0.75rem;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: box-shadow 0.2s;
    margin: 5px;
}

.btn:focus-visible {
    color: var(--white);
    background-color: var(--primary-light);
    border-color: var(--primary);
    outline: 0;
    box-shadow: var(--primary-dark);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border: 1px solid var(--primary-light);
}

.btn-primary:active, .btn-primary:hover {
    box-shadow: 0 0 0 0.25rem rgba(223, 68, 51, 0.5);
}

.btn-secondary {
    color: #000;
    background-color: var(--light-grey);
    border: 1px solid var(--light-grey);
}

.btn-secondary:active, .btn-secondary:hover {
    box-shadow: 0 0 0 0.25rem rgba(105, 105, 105, 0.5);
}

#burger-nav {
    display: flex;
    flex-direction: column;
    background: inherit;
    border: none;
    cursor: pointer;
}

#burger-nav span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    border-radius: 10px;
}

.card {
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 30%;
    min-width: 15vw;
    margin: 20px;
    overflow: hidden;
}

.card-text {
    padding: 5px;
}

.card-title, .card-title > * {
    font-size: 1.75rem;
    margin: 0;
    text-align: center;
}

.card-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card-buttons > a > .btn, .card-buttons > .btn {
    width: fit-content;
    margin: 5px;
}

.card img {
    height: 35vh;
    vertical-align: middle;
}

.flex-align-left {
    display: flex;
    align-items: flex-start;
}

.flex-align-self-left {
    display: flex;
    align-self: flex-start;
}

.flex-centered {
    align-items: center;
    justify-content: center;
}

.flex-horizontal {
    display: flex;
    flex-direction: row;
}

.flex-overflow {
    flex-wrap: wrap;
}

.flex-vertical {
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: var(--dark-grey);
    bottom: 0;
    color: var(--white);
    padding: 1rem 0;
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--primary);
}

.footer-link {
    margin: 1rem;
    text-align: center;
    padding: 0;
}

.footer-link li {
    display: inline-block;
    padding-right: 10px;
    padding-left: 10px;
}

form {
    border: var(--light-grey) solid 2px;
    border-radius: 10px;
    padding: 10px;
    width: 60vw;
}

form > * {
    margin: 5px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group-title {
    display: block;
    font-size: 2rem;
    font-family: "Bebas Neue", sans-serif;
    margin-bottom: 0;
}

.form-input {
    text-align: justify;
    border-radius: 5px;
    border-width: 1px;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem;
    font-family: "Segoe UI", sans-serif;
}

.form-input:focus {
    outline: none;
}

.form-input-hint {
    margin: 5px 0;
}

h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: 0.2s;
}

.icon:hover {
    color: var(--primary);
}

.input-label {
    display: block;
    font-size: 1.5rem;
    font-family: "Bebas Neue", sans-serif;
}

.list-card {
    width: 100%;
    align-items: flex-start;
}

.list-ul {
    margin: 0;
    font-size: 18px;
}

.main-block {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1%;
}

.message {
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 10px;
    padding: 8px;
    width: fit-content;
}

.message-correct {
    color: green;
    background-color: var(--primary-low-opacity);
}

.message-incorrect {
    color: var(--primary-light);
    background-color: var(--primary-low-opacity);
}

.message-information {
    color: #006980;
    background-color: var(--info-background);
}

.navbar {
    top: 0;
    min-height: 70px;
    width: 100%;
    background-color: var(--dark-grey);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar * {
    margin: 0 2%;
}

.show-container {
    border: var(--light-grey) solid 2px;
    border-radius: 10px;
    padding: 10px;
    width: 60vw;
}

.show-block {
    width: 100%;
    display: flex;
}

.show-block-title {
    display: block;
    font-size: 2rem;
    font-family: "Bebas Neue", sans-serif;
    margin-bottom: 0;
}

.show-sub-block {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar {
    height: 100%;
    position: fixed;
    z-index: 9999;
    width: 0;
    top: 0;
    left: 0;
    background-color: var(--dark-grey);
    overflow-x: hidden;
    overflow-y: hidden;
    transition: 0.5s;
    padding-top: 70px;
}

.sidebar a, .navbar a {
    text-decoration: none;
    font-size: 25px;
    color: var(--light-grey);
    display: flex;
    transition: 0.3s;
}

.sidebar a {
    padding: 0 0 0 2.5%;
    margin-top: 1%;
    margin-bottom: 1%;
}

.sidebar a:hover, .navbar a:hover {
    color: var(--white);
}

.sidebar .close-btn {
    position: absolute;
    top: 0;
    right: auto;
    margin-left: 0;
    cursor: pointer;
}

.sidebar-content {
    margin-right: 1em;
}

.sidebar-open {
    width: 100%;
}

.text-small {
    font-size: 18px;
}

.title-1 {
    width: 100%;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 45px;
    margin: 10px;
    text-align: center;
}

.title-2 {
    font-size: 30px;
    margin: 10px;
    text-align: left;
}

.width-fit-content {
    width: fit-content;
}

/* Correction de Sweet Alert */
.swal2-html-container ul {
    width: fit-content;
    text-align: left;
}

@media screen and (max-width: 1200px) {
    form {
        width: 80vw;
    }
}

@media screen and (max-width: 800px) {
    .card {
        width: 70vw;
        margin: 10px;
    }

    .block-form-group {
        flex-wrap: wrap;
    }

    .navbar a img{
        max-width: 20vw;
        height: 100%;
        max-height: 10vh;
    }

    .show-block {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    .list-card {
        align-items: center;
        flex-direction: column;
    }
}

@media screen and (max-width: 450px) {
    .navbar a {
        font-size: 18px;
    }
}
