/* --- DÉBUT DES STYLES CSS --- */

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
}

h2 {
    font-size: 24px;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* FORM CONTAINER */
.product-form, .delete-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 40px;
}

/* FORM GROUP */
.form-group {
    margin-bottom: 20px;
}

/* LABELS */
label {
    font-size: 14px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* INPUT FIELDS */
input[type="text"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

/* Focus Effect */
input:focus, textarea:focus, select:focus {
    border-color: #2163ff;
    outline: none;
}

/* TEXTAREA */
textarea {
    height: 120px;
    resize: vertical;
}

/* SELECT (COLOR PICKER) */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f1f1f1;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 9l6 6 6-6%22/%3E%3C/svg%3E');
    background-position: right 10px center;
    background-repeat: no-repeat;
    padding-right: 30px;
}

/* COLOR BOX */
.color-box {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    border: 2px;
}

/* FILE INPUT */
input[type="file"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* BUTTON */
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    background-color: #2163ff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1a4dbf;
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    input,
    textarea,
    select,
    button {
        font-size: 14px;
    }
}
