.model-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.model-column {
    flex: 1;
    min-width: 300px;
}

.model-thumbnail {
    max-width: 100%;
    height: auto;
}

.edit-button {
    margin-top: 5px;
    display: block;
    font-size: 14px;
    padding: 3px 6px;
    background-color: #DCA653;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 60px;
}

.edit-button:hover {
    background-color: #005177;
}

.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);
    padding-top: 60px;
}

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

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

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

.custom-icon {
    width: 5px;
    height: auto;
}

.info-section {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
}

.info-section table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.info-section table tr:nth-child(even) {
    background-color: #ffffff;
}

.info-section table td:first-child {
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 768px) {
    .model-column {
        flex-basis: 100%;
        min-width: auto;
    }

    .model-thumbnail {
        width: 100%;
    }

    .edit-button {
        width: 100%;
        margin-top: 10px;
    }

    .info-section table td {
        display: block;
        border: none; /* Supprime les bordures autour des cellules */
    }

    .info-section table tr {
        border: none; /* Supprime les bordures autour des lignes */
    }
    
    .info-section table {
        border-collapse: collapse; /* Assure que les bordures ne sont pas doublées */
    }
}

@media (max-width: 768px) {
    .info-section table td {
        text-align: center;
    }

    .edit-button {
        width: auto;
        margin-top: 10px;
        display: inline-block;
    }
}
