/* Styles pour la page de visualisation interactive */
.model-viewer {
    width: 100%;
    height: 500px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}

.interactive-element {
    margin: 3rem 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.interactive-element h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.slider-container {
    width: 100%;
    padding: 1rem 0;
}

.slider {
    width: 100%;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #d3d3d3;
    outline: none;
    border-radius: 5px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.slider-result {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.slider-result p {
    margin-bottom: 0.5rem;
}

.slider-result span {
    font-weight: bold;
    color: var(--primary-color);
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-before {
    left: 0;
    z-index: 1;
    background-image: url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.comparison-after {
    right: 0;
    z-index: 2;
    background-image: url('https://images.unsplash.com/photo-1558981359-219d6364c9c8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    width: 50%;
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #fff;
    z-index: 3;
    cursor: ew-resize;
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-slider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.comparison-label-left,
.comparison-label-right {
    font-size: 0.9rem;
    color: #666;
}

.conditions-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.condition-group {
    display: flex;
    flex-direction: column;
}

.condition-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.condition-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.simulation-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.result-item h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cost-comparison {
    margin-bottom: 2rem;
}

.cost-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cost-control {
    display: flex;
    flex-direction: column;
}

.cost-control label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cost-control select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

/* Responsive design for interactive elements */
@media (max-width: 768px) {
    .conditions-selector,
    .simulation-results,
    .cost-controls {
        grid-template-columns: 1fr;
    }
    
    .model-viewer {
        height: 300px;
    }
    
    .comparison-container {
        height: 300px;
    }
}
