/* ==========================================================================
   TEKNI-PLI V2 - CONFIGURATEUR (PANNEAU LATÉRAL FIXE)
   ========================================================================== */

/* --- Layout Principal du Configurateur --- */
.configurateur-section {
    padding: 100px 0;
    background: var(--bg-base);
    min-height: 100vh;
}

.conf-layout {
    display: grid;
    grid-template-columns: 1fr 450px; /* Options à gauche, Visuel fixe à droite */
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

/* --- Colonne de Gauche (Options scrollables) --- */
.conf-options-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 100px;
}

.conf-step-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.conf-step-block:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.conf-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.step-number-badge {
    width: 40px;
    height: 40px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.conf-step-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* --- Colonne de Droite (Visuel Fixe) --- */
.conf-visual-col {
    position: sticky;
    top: 100px; /* Sous le header */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.conf-visual-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.conf-visual-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), #F3E5AB);
}

.conf-svg-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1A2235;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conf-svg-container svg {
    width: 100%;
    height: 100%;
}

/* --- Panneau de Prix (Fixe à droite) --- */
.conf-price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(12px);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-row:last-of-type { border-bottom: none; }

.price-row strong {
    color: var(--text-main);
    font-family: var(--font-heading);
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.price-total-row span {
    font-size: 1.1rem;
    color: var(--text-main);
}

.price-total-row strong {
    font-size: 2rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
}

.btn-add-cart {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1.1rem;
}

/* --- Composants Internes (Matières, Couleurs, etc.) --- */

/* Cartes Matière */
.mat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mat-option {
    background: rgba(0,0,0,0.2);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.mat-option:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.05);
}

.mat-option.selected {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.mat-option.selected::after {
    content: '✓';
    position: absolute;
    top: 16px; right: 16px;
    width: 24px; height: 24px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.mat-option h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mat-option p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.mat-option .price { color: var(--primary); font-weight: 600; }

/* Couleurs */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.color-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    background-clip: content-box;
    position: relative;
}

.color-btn:hover { transform: scale(1.1); }
.color-btn.selected { border-color: var(--primary); }

/* Inputs Dimensions */
.dim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 40px 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .conf-layout {
        grid-template-columns: 1fr;
    }
    
    .conf-visual-col {
        position: static;
        margin-bottom: 40px;
    }
    
    .conf-options-col {
        padding-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .mat-grid { grid-template-columns: 1fr; }
    .dim-grid { grid-template-columns: 1fr; }
    .conf-step-block { padding: 24px; }
}
