/* ==========================================
   Dynasty 8 - Aperçu et Devis
   ========================================== */

.preview-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-green);
}

.preview-header h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.devis-preview {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.devis-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-green);
}

.devis-logo {
    flex: 1;
}

.devis-logo h1 {
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.devis-logo p {
    color: #666;
    font-size: 0.9rem;
}

.devis-info {
    text-align: right;
    flex: 1;
}

.devis-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.devis-date {
    color: #666;
    font-size: 0.9rem;
}

.devis-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.partie {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.partie h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.partie p {
    color: #333;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.property-details {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.property-details h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.property-item {
    display: flex;
    flex-direction: column;
}

.property-label {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.property-value {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.pricing-table {
    margin: 2rem 0;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th {
    background: var(--primary-green);
    color: var(--text-white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

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

.text-right {
    text-align: right;
}

.pricing-total {
    background: #f8f9fa;
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-total td {
    color: var(--primary-dark);
    padding: 1.5rem 1rem;
}

.devis-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgb(2, 51, 6);
    border-left: 4px solid var(--primary-green);
    border-radius: 4px;
}

.devis-notes h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.devis-notes p {
    color: #333;
    line-height: 1.6;
}

.devis-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}
