*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    background-color: rgb(0, 0, 0);
    margin: 0;
    font-family: "Jaro", sans-serif;
    color: white;
    font-size: 2em;
}

ul li:nth-child(2) a {
    color: #ED0D11;
}

a {
    color: #ffffff;
    text-decoration: none;
}

/*Stylisé la barre de navigation, j'ai mis une propriété sticky mais je ne crois pas qu'elle fonctionne [à vérifier]*/
nav {
    font-size: 2.5rem;
    margin-top: -20px;
}

nav .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 2vw;
}

/*Faire le style à chaque éléments de la liste de la nav barre*/
.nav-list li {
    list-style-type: none;
    color: #ED1D24;
    padding: 20px;
    position: relative;
}

/*Pour faire en sorte que les 2 derniers éléments de la nav barre aille à droite*/
.nav-list li:nth-child(2) {
    margin-left: auto;
}

/*Styliser la barre de recherche*/
.search-bar {
    display: inline-flex;
    align-items: center;
    border: 1px solid;
    border-radius: 20px;
    background-color: #312A2A;
    color: white;
    height: 44px;
    width: 240px;
    padding-right: 40px;
    /*Pour faire en sorte que l'écriture dans la barre de recherche n'aille pas derrière l'image de la loupe*/
}

/*Dimensionner tout le bouton de recherche*/
button {
    position: absolute;
    right: 8%;
    top: 63%;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
    border: none;
}

/*Dimensionner la loupe*/
button img {
    width: 44px;
    height: 44px;
    padding: 5px;
    margin-bottom: 6px;
}

/*Enlever la croix à la fin de la barre de recherche qui apparait automatiquement*/
.search-bar::-webkit-search-cancel-button {
    display: none;
}

.object-detail {
    display: flex;
}

.object-detail img {
    border: 10px solid #ED0D11;
    border-radius: 30px;
    width: 600px;
    height: 100%;
    margin-top: 5vh;
}

.object-detail h4 {
    justify-content: end;
}

.object-info {
    margin-inline: 2vw;
}

footer {
    height: 10vh;
    margin-top: 50px;
    margin-left: 82%;
}

footer a {
    color: white;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

@media (max-width: 768px) {

    .object-detail {
        flex-direction: column;
    }

}