/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E01001 0%, #8B0000 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Steps Navigation */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #E01001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step.active .step-number {
    background: #E01001;
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-align: center;
}

/* Step Content */
.step-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Filtres binaires */
.binary-filters {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.binary-filters h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
    position: relative;
    padding-left: 30px;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-checkbox:hover input ~ .checkmark {
    background-color: #f8f9fa;
    border-color: #E01001;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #E01001;
    border-color: #E01001;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Badges de caractéristiques dans les cartes produits */
.product-characteristics {
    margin: 10px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.char-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    border: none;
}

.char-badge.vitre {
    background-color: #17a2b8;
}

.char-badge.rehausse {
    background-color: #28a745;
}

.char-badge.chevalet {
    background-color: #ffc107;
    color: #212529;
}

/* Badges "SANS" */
.char-badge.sans-vitre {
    background-color: #6c757d;
    color: white;
}

.char-badge.sans-rehausse {
    background-color: #dc3545;
    color: white;
}

.char-badge.sans-chevalet {
    background-color: #fd7e14;
    color: white;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Product Selection */
.category-selector {
    margin-bottom: 30px;
}

.category-selector h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
}

.category-dropdown {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.category-dropdown:focus {
    outline: none;
    border-color: #E01001;
}

.color-selector {
    margin-bottom: 30px;
}

.color-selector h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.color-dropdown {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.color-dropdown:focus {
    outline: none;
    border-color: #E01001;
}

.size-selector {
    margin-bottom: 30px;
}

.size-selector h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.size-dropdown {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.size-dropdown:focus {
    outline: none;
    border-color: #E01001;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.load-more-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    border-color: #E01001;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 16, 1, 0.15);
}

.product-card.selected {
    border-color: #E01001;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.product-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-info {
    margin-bottom: 15px;
}

.product-info p {
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.product-price {
    font-weight: bold;
    color: #E01001;
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.add-to-cart-btn {
    background: #E01001;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.add-to-cart-btn:hover {
    background: #B80D01;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Selected Products */
.selected-products {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.selected-products h3 {
    margin-bottom: 15px;
    color: #333;
}

.selected-list {
    margin-bottom: 20px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.selected-item-info {
    flex: 1;
}

.selected-item-name {
    font-weight: 500;
    color: #333;
}

.selected-item-details {
    font-size: 0.8rem;
    color: #666;
}

.selected-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.quantity-input-selected {
    width: 50px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    background: white;
}

.quantity-input-selected:focus {
    outline: none;
    border-color: #E01001;
    box-shadow: 0 0 0 2px rgba(224, 16, 1, 0.1);
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-btn:hover {
    background: #c82333;
}

.total-section {
    border-top: 2px solid #e1e5e9;
    padding-top: 15px;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}

.total-item:last-child {
    font-size: 1.2rem;
    color: #E01001;
    font-weight: bold;
}

/* Form Styles */
.delivery-form h2 {
    margin-bottom: 25px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E01001;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Billing Section Styles */
.billing-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e5e9;
}

.billing-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #E01001;
}

.checkbox-label:hover {
    color: #E01001;
}

.billing-address-fields {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.billing-address-fields h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #E01001;
    color: white;
}

.btn-primary:hover {
    background: #B80D01;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Confirmation */
.confirmation h2 {
    margin-bottom: 25px;
    color: #333;
}

.order-summary {
    display: grid;
    gap: 25px;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.summary-section h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 10px;
}

.order-products {
    display: grid;
    gap: 10px;
}

.order-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.order-address {
    background: white;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.8;
}

.order-totals {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.loading-spinner i {
    font-size: 2rem;
    color: #E01001;
    margin-bottom: 15px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 15px;
}

.modal-body {
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .step {
        flex-direction: row;
        gap: 10px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .selected-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .selected-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-control {
        flex-direction: row;
        gap: 8px;
    }
    
    .quantity-input-selected {
        width: 60px;
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* Responsive pour la jauge */
    .cost-gauge-container {
        margin-bottom: 20px;
    }
    
    .gauge-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .gauge-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Styles pour la jauge de coût d'achat HT 2025 */
.cost-gauge-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e1e5e9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gauge-header h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.gauge-info {
    background: #E01001;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(224, 16, 1, 0.3);
}

.gauge-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.gauge-background {
    width: 100%;
    height: 25px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #ffc107 75%, #dc3545 100%);
    border-radius: 15px;
    width: 0%;
    transition: width 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

.gauge-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.gauge-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    z-index: 2;
}

.gauge-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e1e5e9;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #E01001;
}

/* Animation pour les changements de valeur */
.stat-value {
    transition: all 0.3s ease;
}

.stat-value.updated {
    animation: pulse 0.6s ease-in-out;
}

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

/* État critique de la jauge (proche de 1000€) */
.gauge-fill.critical {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 50%, #ffc107 100%);
    animation: critical-pulse 1s infinite;
}

@keyframes critical-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}


@media (max-width: 480px) {
    .step-content {
        padding: 20px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px;
    }
} 

/* Styles pour la section de notes des produits */
.notes-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.notes-section h4 {
    color: #E01001;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.notes-section .form-group {
    margin-bottom: 0;
}

.notes-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notes-section textarea:focus {
    outline: none;
    border-color: #E01001;
    box-shadow: 0 0 0 3px rgba(224, 16, 1, 0.1);
}

.notes-section textarea::placeholder {
    color: #6c757d;
    font-style: italic;
} 

/* Styles pour les notes dans la confirmation */
.order-product-item .fa-sticky-note {
    color: #E01001;
    margin-right: 5px;
}

.order-product-item:nth-last-child(1) {
    border-left: 4px solid #E01001;
}

/* Responsive design pour les notes */
@media (max-width: 768px) {
    .notes-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .notes-section h4 {
        font-size: 1rem;
    }
    
    .notes-section textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
} 