/* Configurateur Abat-jour - Mille et Une Lumières */

/* Hide breadcrumb on configurator page */
#breadcrumbs,
p#breadcrumbs,
p#breadcrumbs.yoast {
    display: none !important;
}

#mel-configurateur {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Progress Steps */
.mel-progress {
    margin-bottom: 40px;
}
.mel-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.mel-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.mel-step.active,
.mel-step.completed {
    opacity: 1;
}
.mel-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0ddd5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.mel-step.active .mel-step-number {
    background: #c8a96e;
    color: #fff;
}
.mel-step.completed .mel-step-number {
    background: #8fae6e;
    color: #fff;
}
.mel-step-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}
.mel-step.active .mel-step-label {
    color: #333;
    font-weight: 600;
}
.mel-step-line {
    flex: 1;
    height: 2px;
    background: #e0ddd5;
    min-width: 40px;
    max-width: 80px;
    margin: 0 8px;
    margin-bottom: 20px;
}

/* Panel */
.mel-panel h2 {
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    text-align: center;
    font-family: inherit;
}
.mel-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}
.mel-section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin: 25px 0 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Grid */
.mel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}
.mel-card {
    border: 2px solid #e0ddd5;
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mel-card:hover {
    border-color: #c8a96e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 110, 0.2);
}
.mel-card.selected {
    border-color: #c8a96e;
    background: rgba(200, 169, 110, 0.08);
    box-shadow: 0 0 0 1px #c8a96e;
}
.mel-card span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.mel-card-icon {
    color: #c8a96e;
}
.mel-card-icon svg {
    color: #888;
    transition: color 0.25s;
}
.mel-card.selected .mel-card-icon svg,
.mel-card:hover .mel-card-icon svg {
    color: #c8a96e;
}

/* Small cards for tissu/fixation */
.mel-card-small {
    padding: 12px 8px;
}
.mel-card-icon-small {
    font-size: 24px;
    line-height: 1;
}
.mel-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.25s;
}
.mel-card:hover .mel-swatch {
    transform: scale(1.1);
}

/* Dimensions */
.mel-dimensions-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}
.mel-dimension-preview {
    flex-shrink: 0;
}
.mel-dimension-preview svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.mel-dimension-inputs {
    flex: 1;
    max-width: 400px;
}
.mel-input-group {
    margin-bottom: 20px;
}
.mel-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.mel-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mel-input-wrap input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #e0ddd5;
    border-radius: 3px;
    outline: none;
}
.mel-input-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c8a96e;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.mel-input-wrap input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    color: #333;
    background: #fff;
    font-family: inherit;
}
.mel-input-wrap input[type="number"]:focus {
    border-color: #c8a96e;
    outline: none;
}
.mel-unit {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}
.mel-hint {
    background: rgba(200, 169, 110, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}

/* Recap */
.mel-recap-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mel-recap-box {
    background: #fff;
    border: 2px solid #e0ddd5;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}
.mel-recap-box h3,
.mel-contact-form h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mel-recap-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mel-recap-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0ede5;
}
.mel-recap-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.mel-recap-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-align: right;
}
.mel-btn-edit {
    background: none;
    border: none;
    color: #c8a96e;
    cursor: pointer;
    font-size: 13px;
    margin-top: 12px;
    padding: 0;
    font-family: inherit;
}
.mel-btn-edit:hover {
    text-decoration: underline;
}

/* Contact Form */
.mel-contact-form {
    background: #fff;
    border: 2px solid #e0ddd5;
    border-radius: 12px;
    padding: 24px;
}
.mel-form-group {
    margin-bottom: 14px;
}
.mel-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.mel-form-group input,
.mel-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0ddd5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #faf9f7;
    transition: border-color 0.25s;
    box-sizing: border-box;
}
.mel-form-group input:focus,
.mel-form-group textarea:focus {
    border-color: #c8a96e;
    outline: none;
    background: #fff;
}
.mel-btn-submit {
    width: 100%;
    padding: 14px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    font-family: inherit;
    margin-top: 6px;
}
.mel-btn-submit:hover {
    background: #b8994e;
}
.mel-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.mel-rgpd-group {
    margin-bottom: 15px;
}
.mel-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.mel-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    min-width: 16px;
    accent-color: #c8a96e;
}
.mel-checkbox-label a {
    color: #c8a96e;
    text-decoration: underline;
}
.mel-privacy {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Navigation Buttons */
.mel-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}
.mel-btn {
    padding: 12px 30px;
    border: 2px solid #c8a96e;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}
.mel-btn-prev {
    background: #fff;
    color: #c8a96e;
}
.mel-btn-prev:hover {
    background: rgba(200, 169, 110, 0.1);
}
.mel-btn-next {
    background: #c8a96e;
    color: #fff;
    margin-left: auto;
}
.mel-btn-next:hover {
    background: #b8994e;
}
.mel-btn-next:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Success */
.mel-success-content {
    text-align: center;
    padding: 60px 20px;
}
.mel-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.mel-success-content h2 {
    font-size: 28px !important;
    color: #333 !important;
    margin-bottom: 12px !important;
}
.mel-success-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.mel-success-content .mel-btn {
    margin-top: 20px;
    background: #c8a96e;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    #mel-configurateur {
        padding: 10px;
    }
    .mel-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    .mel-dimensions-layout {
        flex-direction: column;
        align-items: center;
    }
    .mel-recap-layout {
        grid-template-columns: 1fr;
    }
    .mel-step-label {
        font-size: 10px;
    }
    .mel-card {
        padding: 12px 6px;
    }
    .mel-card-icon svg {
        width: 50px;
        height: 50px;
    }
    .mel-panel h2 {
        font-size: 20px !important;
    }
    .mel-progress-steps {
        gap: 0;
    }
    .mel-step-line {
        min-width: 20px;
    }
}
