/* Style général */
body {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4E6E4;
    color: #333;
    text-align: center;
}

header {
    background-color: #183F88;
    color: #F4E6E4;
    padding: 40px 0px;
    margin: 0;
}

.title-image {
    width: 571px;
    height: auto;
}

main {
    margin: 25px;
    padding: auto;
}

/* Conteneurs */
.container {
    margin: 0 auto;
    padding: 0;
    max-width: 550px;
}

h2 {
    font-size: 22px;
    font-weight: bold;
    color: #D65C40;
    margin-top: 20px;
    margin-bottom: 4px;
    font-weight: bold;
}

/* Boîtes */
.box_motif, .box_maille {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    margin-bottom: 10px;
}

#box_motif_elements, #box_tricot_elements {
    width: 100%;
}

.taille_motif, .taille_tricot {
    background-color: #D65C40;
    margin: 0px;
    padding: 0px;
    height: 23px;
    width: auto;
    border-radius: 8px;
    padding: 0px 10px;
    margin: 4px 2px;
}

.taille_motif img {
    padding-left: 10px;
}

.taille_tricot img {
    padding-left: 10px;
}

input[type="number"] {
    appearance: textfield;
    padding: 0px 10px;
    background-color: #9BADD280;
    color: #183F88B2;
    border: 2px solid #9BADD2;
    border-radius: 10px;
    height: 36px;
    width: 100%;
    max-width: 430px;
}

#ajouter_taille_ecart {
    max-width: 526px;
}

/* Boutons */
button {
    font-family: Roboto, Arial, sans-serif;
    padding: 8px 12px;
    margin-top: 4px;
    background-color: #183F88;
    font-size: 17px;
    color: #F4E6E4;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 94px;
    height: 34px;
    margin-left: 10px;
    font-weight: bold;
}

#button_calculer {
    font-family: Roboto, Arial, sans-serif;
    width: 136px;
    background-color: #D65C40;
    margin-top: 40px;
    margin-left: 0;
    padding: 0px;
    font-size: 20px;
}

/* button:hover {
    background-color: #45a049;
} */

.delete_button {
    background-color: #f44336;
    margin-left: 10px;
}

/* .delete_button:hover {
    background-color: #d32f2f;
} */

/* Résultats */
.resultat {
    margin: 10px 0;
    padding: 10px;
    background-color: #e7f5e6;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    text-align: left;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    color: #F4E6E4;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    border: 1px solid #9BADD2;
    padding: 8px;
    text-align: center;
}

td {
    background-color: #9BADD280;
    border-color: #9BADD2;
    color: #183F88;
    font-size: 16px;
}

th {
    background-color: #183F88;
    font-size: 14px;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

@media ((max-width: 600px)) {
    .container {
        text-align: left;
    }

    .box_motif, .box_maille {
        display: block;
    }

    button {
        margin-left: 0px;
    }

    #box_motif_elements, #box_tricot_elements {
        width: 100%;
    }

    input[type="number"] {
        appearance: textfield;
        /* padding: 0px; */
        padding: 0px 10px;
        background-color: #9BADD280;
        color: #183F88B2;
        border: 2px solid #9BADD2;
        border-radius: 10px;
        height: 36px;
        width: 100%;
        box-sizing: border-box;
    }

    .title-image {
        content: url("assets/title_short_white.png");
        width: 174px;
        height: auto;
    }

    th {
        font-size: 12px;
    }
}
