@import url("https://use.typekit.net/bgd8nru.css");

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

h2{
    text-align: center;
    margin: 40px 0px 50px 0px;
    font-family: "atlante-variable", sans-serif;
    font-variation-settings: "opsz" 12, "wght" 900;
}

.card {
    width: 18rem;
    margin: 15px;
    box-shadow: 0px 4px 6px rgba(255, 122, 122, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card img {
    height: 300px;
    object-fit: contain;
    width: 100%;
    display: block;
    border-bottom: 3px solid #000000;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(255, 122, 122, 0.364);
}

nav{
    text-align: center;
    padding: 14px 20px 14px 20px;
    margin-bottom: 32px;
    border-radius: 10px;
    background-color: rgba(255, 122, 122, 0.1);
    font-size: 24px;
    
}

nav a{
    text-decoration: none;
    color: #000000;
}

.formulaire {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

form{
    margin-top: 16px;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(255, 122, 122, 0.1);
    max-width: 500px;
    width: 100%;
}

form:hover {
    box-shadow: 0px 6px 15px rgba(255, 122, 122, 0.364);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    border: none;
}

input[type="file"]::file-selector-button {
    background-color: rgba(255, 122, 122, 0.1);
    padding: 10px 15px;
    margin-right: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: rgba(255, 122, 122, 0.356);     
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    
    border: none;
    border-radius: 8px;
    
    background-color: rgba(255, 122, 122, 0.1);
    color: rgb(0, 0, 0);
    font-size: 16px;

    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background-color: rgba(255, 122, 122, 0.356);
}

.btn-supprimer {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 122, 122, 0.1);
    color: rgb(0, 0, 0);
    text-decoration: none;
    border: 2px solid rgba(255, 122, 122, 0.356);;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-supprimer:hover {
    background-color: rgba(255, 122, 122, 0.356);
}