:root {
    --primary-color: #0fc7c7;
    --primary-hover: #0fc7c7;
    --danger-color: #dc3545;
    --success-color: #28a745;
}

/* Zone de dépôt */
.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(0, 120, 215, 0.05);
}

.drop-zone:hover {
    background-color: rgba(0, 120, 215, 0.1);
    transform: translateY(-2px);
}

.drop-zone.highlight {
    background-color: rgba(0, 120, 215, 0.2);
    border-color: #005fa3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 120, 215, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0); }
}

/* Visualiseur 3D */
#3d-viewer {
    width: 100%;
    height: 300px;
    display: block;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: height 0.3s ease;
}

/* Tableau de résultats */
.table th {
    white-space: nowrap;
    width: 40%;
    background-color: #f8f9fa !important;
}

.table td {
    font-weight: 500;
}

.table-primary th {
    background-color: var(--primary-color) !important;
    color: white;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Modal Devis */
#quoteModal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

#quoteModal .modal-body {
    padding: 2rem;
}

#quoteModal .modal-footer {
    border-top: none;
    padding: 1rem 2rem;
}

#price-estimation {
    transition: all 0.3s ease;
    font-size: 2.5rem;
}

.price-update {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Validation formulaire */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 0.875em;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

/* Animation de chargement */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

/* Alertes */
.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

/* Effets de transition */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styles pour l'assistant */
#quoteSteps .nav-link {
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#quoteSteps .nav-link.active {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour les exemples */
.example-model {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.example-model:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.example-model .card-img-top {
    height: 120px;
    object-fit: contain;
    padding: 1rem;
    background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    #3d-viewer {
        height: 250px;
    }
    
    #quoteModal .modal-body {
        padding: 1rem;
    }
    
    #price-estimation {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .drop-zone {
        padding: 1.5rem 1rem;
    }
    
    #3d-viewer {
        height: 200px;
    }
    
    #price-estimation {
        font-size: 1.75rem;
    }
}