@font-face {
    font-family: "Minecraftia";
    src: url("Minecraftia.ttf");
}

:root {
    --fond: #c6c6c6;
    --fond2: #8b8b8b;
    --claire: #ffffff;
    --sombre: #555555;
    --sombre2: #373737;
}

body {
    background-image: url("../images/dirt_sombre.png");
    background-size: 64px ;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    font-family: "Minecraftia";
}

.shopping-card {
    width: 100%;
    padding: 0px;
    color: black;
    grid-template-columns: repeat(auto-fit, minmax(250, 1fr));
    display: grid;
    height: 100%;
}

.shopping-card > h1 {
    text-align: center;
}
.shopping-card > * {
    display: flex;
    justify-content: center;
    align-items: center;

}

.items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item {
    background-color: #c6c6c6;
    background-color: var(--fond);
    border-top: 4px solid var(--claire);
    border-left: 4px solid var(--claire);
    border-bottom: 4px solid var(--sombre);
    border-right: 4px solid var(--sombre);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    padding: 1rem;
    width: calc(10rem - 5px);
}

.item > img {
    max-width: 10rem;
    max-height: 10rem;
}
p > img {
    max-width: 1rem;
    max-height: 1rem;
}

.checkout {
    font-size: large;
    font-family: "Minecraftia";
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 16rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.checkout:hover {
    background-color: #0056b3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* partie commune en-dessous*/

header {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à une nouvelle ligne si l'espace est insuffisant */
    justify-content: space-between;
    align-items: center;
    background-color: var(--fond);
    border-top: 4px solid var(--claire);
    border-left: 4px solid var(--claire);
    border-bottom: 4px solid var(--sombre);
    border-right: 4px solid var(--sombre);

}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Pour occuper toute la largeur disponible */
}

.logo {
    max-width: 10rem;
    margin: 8px;
    min-width: 3rem;
}

.logo > a > img {
    width: 100%;
    height: auto;
}

nav{
    margin: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li:last-child {
    margin-right: 0;
}

footer {
    text-align: center;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    background-color: var(--fond);
    border-top: 4px solid var(--claire);
    border-left: 4px solid var(--claire);
    border-bottom: 4px solid var(--sombre);
    border-right: 4px solid var(--sombre);

}




