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

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 80px; /* Espace pour le propriétaire */
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    text-align: left;
}

.modal-content h4 {
    margin: 1.5rem 0 1rem;
    color: #444;
    font-size: 1.1em;
    text-align: left;
}

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

.close:hover {
    color: black;
}

.item-details,
.prices-section,
.image-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.item-details {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.prices-section {
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    text-align: center;
    display: table;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    width: auto;
}

.prices-table {
    width: auto;
    min-width: 300px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prices-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.prices-table tr:last-child td {
    border-bottom: none;
}

.prices-table td:first-child {
    font-weight: 500;
    color: #333;
    padding-right: 30px;
}

.prices-table td.price {
    text-align: right;
    font-weight: bold;
    color: #2c7be5;
    padding-left: 30px;
}

.image-section {
    background-color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.image-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 4px;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.detail-value {
    color: #666;
    line-height: 1.5;
    white-space: pre-line;
}

.price {
    color: #2c7be5;
    font-weight: bold;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.owner-info-bottom {
    position: relative;
    font-size: 0.9em;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: calc(100% - 40px);
    text-align: right;
    margin-top: 20px;
}

.owner-label {
    font-weight: 500;
    margin-right: 5px;
}

.owner-value {
    color: #444;
}

.section-title {
    color: #333;
    font-size: 1.1em;
    margin: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.section-content {
    color: #666;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
    text-align: left;
}

@media (min-width: 768px) {
    .detail-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .detail-label {
        min-width: 200px;
    }

    .image-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .image-row {
        flex: 0 0 auto;
        margin: 0.5rem;
    }
    
    .image-row img {
        max-height: 300px;
    }

    .prices-table {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .image-section {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 1rem;
    }
    
    .image-row {
        width: 200px;
        height: 200px;
    }
} 