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

.cart-container h1 {
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.cart-items {
    background: linear-gradient(145deg, rgba(26,26,26,0.6), rgba(18,18,18,0.8));
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(181, 0, 21, 0.15);
    backdrop-filter: blur(10px);
}

.cart-items h2 {
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(181, 0, 21, 0.2);
}

.cart-item {
    background: rgba(42, 42, 42, 0.3);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.cart-item:hover {
    background: rgba(42, 42, 42, 0.5);
    border-color: rgba(181, 0, 21, 0.2);
    transform: translateY(-2px);
}

.formation-info h4 {
    margin: 0 0 8px 0;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 18px;
}

.formation-date {
    color: #999;
    font-size: 14px;
    opacity: 0.8;
}

.formation-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.formation-price {
    font-weight: 300;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.5px;
}

.btn-remove-cart {
    background: transparent;
    color: #999;
    border: 1px solid rgba(153, 153, 153, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 400;
}

.btn-remove-cart:hover {
    background: rgba(181, 0, 21, 0.1);
    color: #B50015;
    border-color: rgba(181, 0, 21, 0.3);
}

.cart-summary {
    background: linear-gradient(145deg, rgba(18,18,18,0.95), rgba(10,10,10,0.95));
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(181, 0, 21, 0.3);
    backdrop-filter: blur(10px);
}

.cart-summary h3 {
    font-weight: 300;
    margin-bottom: 25px;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    color: #999;
    font-size: 14px;
}

.summary-line span:last-child {
    color: #f0f0f0;
    font-weight: 400;
}

.summary-line.total {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    border-top: 1px solid rgba(181, 0, 21, 0.3);
    border-bottom: none;
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.summary-line.total span:first-child {
    color: #999;
    font-size: 16px;
}

.discount-badge {
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 10px;
    font-weight: 500;
}

.checkout-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(51, 51, 51, 0.5);
    background: rgba(42, 42, 42, 0.5);
    color: #f0f0f0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(181, 0, 21, 0.5);
    background: rgba(42, 42, 42, 0.8);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.payment-option:hover {
    background: rgba(42, 42, 42, 0.5);
    border-color: rgba(181, 0, 21, 0.2);
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    width: auto;
    accent-color: #B50015;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #ff1a1a, #B50015);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(181, 0, 21, 0.3);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-cart h2 {
    font-weight: 300;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.empty-cart a {
    display: inline-block;
    margin-top: 20px;
    color: #B50015;
    text-decoration: none;
    padding: 12px 30px;
    border: 1px solid rgba(181, 0, 21, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.empty-cart a:hover {
    background: rgba(181, 0, 21, 0.1);
    border-color: rgba(181, 0, 21, 0.5);
}

/* ========== AMÃ‰LIORATIONS POUR FORMATIONS-DISPONIBLES ========== */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.formation-card {
    background: linear-gradient(145deg, rgba(26,26,26,0.6), rgba(18,18,18,0.8));
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(181, 0, 21, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 0, 21, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.formation-card h3 {
    font-weight: 400;
    margin-bottom: 20px;
    color: #f0f0f0;
    font-size: 20px;
    line-height: 1.3;
}

.formation-info {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(51, 51, 51, 0.3);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.formation-info div {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart {
    width: 100%;
    background: transparent;
    color: #B50015;
    border: 1px solid rgba(181, 0, 21, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ========== NOTIFICATION PANIER ========== */
#cart-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(145deg, rgba(18,18,18,0.95), rgba(10,10,10,0.95));
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid rgba(181, 0, 21, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 14px;
}

#cart-count {
    color: #B50015;
    font-weight: 600;
    font-size: 16px;
}

#cart-counter a {
    background: linear-gradient(135deg, #B50015, #8B0010);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

#cart-counter a:hover {
    background: linear-gradient(135deg, #ff1a1a, #B50015);
    transform: translateX(2px);
}

#cart-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(18,18,18,0.98), rgba(10,10,10,0.98));
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(181, 0, 21, 0.3);
    color: #f0f0f0;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#cart-notification.show {
    opacity: 1;
    pointer-events: auto;
}

/* ========== AMÃ‰LIORATIONS GÃ‰NÃ‰RALES ========== */
body {
    background: #121212;
    font-family: 'Poppins', sans-serif;
    color: #f0f0f0;
}

.form-container {
    background: linear-gradient(145deg, rgba(26,26,26,0.4), rgba(18,18,18,0.6));
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(181, 0, 21, 0.1);
    backdrop-filter: blur(10px);
}

.form-container h1 {
    font-weight: 300;
    font-size: 36px;
    margin-bottom: 10px;
}

.form-container p {
    color: #999;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: relative;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    #cart-counter {
        right: 10px;
        top: auto;
        bottom: 20px;
    }
}
.form-group.required label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}
.form-group input.error, .form-group select.error {
    border-color: #e74c3c;
}
.civilite-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}
.civilite-option {
    display: flex;
    align-items: center;
    gap: 5px;
}


        .cart-section {
            background: linear-gradient(145deg, rgba(26,26,26,0.6), rgba(18,18,18,0.8));
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 20px;
            border: 1px solid rgba(181, 0, 21, 0.15);
            backdrop-filter: blur(10px);
        }
        
        .section-title {
            font-size: 20px;
            font-weight: 400;
            color: #f0f0f0;
            margin: 0 0 25px 0;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(181, 0, 21, 0.2);
            letter-spacing: -0.3px;
        }
        
        .discount-section {
            border-radius: 12px;
            padding: 20px;
            margin: 15px 0;
            background: rgba(42, 42, 42, 0.3);
            border: 1px solid rgba(51, 51, 51, 0.5);
            transition: all 0.3s ease;
        }
        
        .discount-section:hover {
            background: rgba(42, 42, 42, 0.5);
            border-color: rgba(181, 0, 21, 0.2);
        }
        
        .discount-checkbox {
            margin-bottom: 15px;
        }
        
        .discount-checkbox label {
            display: flex;
            align-items: center;
            font-weight: 500;
            cursor: pointer;
            color: #f0f0f0;
            transition: color 0.3s ease;
        }
        
        .discount-checkbox label:hover {
            color: #B50015;
        }
        
        .discount-checkbox input {
            margin-right: 12px;
            transform: scale(1.2);
            accent-color: #B50015;
        }
        
        .discount-input-section {
            display: none;
            margin-top: 15px;
            background: rgba(18, 18, 18, 0.8);
            padding: 20px;
            border-radius: 8px;
            border: 1px solid rgba(181, 0, 21, 0.1);
        }
        
        .discount-input-group {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .discount-input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid rgba(51, 51, 51, 0.5);
            border-radius: 8px;
            background: rgba(42, 42, 42, 0.5);
            color: #f0f0f0;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .discount-input:focus {
            outline: none;
            border-color: rgba(181, 0, 21, 0.5);
            background: rgba(42, 42, 42, 0.8);
            box-shadow: 0 0 0 2px rgba(181, 0, 21, 0.2);
        }
        
        .discount-input::placeholder {
            color: #999;
        }
        
        .apply-discount-btn {
            padding: 12px 20px;
            background: linear-gradient(135deg, #B50015, #8B0010);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .apply-discount-btn:hover {
            background: linear-gradient(135deg, #ff1a1a, #B50015);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(181, 0, 21, 0.3);
        }
        
        .apply-discount-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .applied-discounts {
            margin-top: 20px;
        }
        
        .applied-discount {
            background: linear-gradient(135deg, rgba(181, 0, 21, 0.1), rgba(181, 0, 21, 0.05));
            border: 1px solid rgba(181, 0, 21, 0.2);
            border-radius: 12px;
            padding: 15px 20px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            font-weight: 500;
            color: #f0f0f0;
            animation: slideIn 0.3s ease;
        }
        
        .remove-discount-btn {
            background: rgba(220, 53, 69, 0.8);
            color: white;
            border: none;
            border-radius: 50%;
            width: 26px;
            height: 26px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            line-height: 1;
        }
        
        .remove-discount-btn:hover {
            background: #dc3545;
            transform: scale(1.1);
        }
        
        .promo-code-item {
            margin-bottom: 15px;
            padding: 20px;
            background: rgba(18, 18, 18, 0.6);
            border-radius: 12px;
            border: 1px solid rgba(51, 51, 51, 0.3);
            transition: all 0.3s ease;
        }
        
        .promo-code-item:hover {
            border-color: rgba(181, 0, 21, 0.3);
            background: rgba(18, 18, 18, 0.8);
        }
        
        .promo-code-item h4 {
            margin: 0 0 15px 0;
            font-size: 16px;
            color: #f0f0f0;
            font-weight: 500;
        }
        
        .notification {
            padding: 15px 20px;
            border-radius: 8px;
            margin: 15px 0;
            display: none;
            font-weight: 500;
        }
        
        .notification.success {
            background: rgba(40, 167, 69, 0.1);
            border: 1px solid rgba(40, 167, 69, 0.3);
            color: #28a745;
        }
        
        .notification.error {
            background: rgba(220, 53, 69, 0.1);
            border: 1px solid rgba(220, 53, 69, 0.3);
            color: #dc3545;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .form-row-full {
            grid-column: 1 / -1;
        }
        
        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .cart-section {
                padding: 20px;
            }
        }
        
        .summary-section {
            position: sticky;
            top: 20px;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .cart-content .cart-section:hover {
            border-color: rgba(181, 0, 21, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        /* Surcharge pour les Ã©lÃ©ments spÃ©cifiques au thÃ¨me dark */
        .form-group input {
            background: rgba(42, 42, 42, 0.5);
            border: 1px solid rgba(51, 51, 51, 0.5);
            color: #f0f0f0;
        }
        
        .form-group input:focus {
            border-color: rgba(181, 0, 21, 0.5);
            background: rgba(42, 42, 42, 0.8);
        }
        
        .civilite-option {
            background: rgba(42, 42, 42, 0.3);
            padding: 10px 15px;
            border-radius: 8px;
            border: 1px solid rgba(51, 51, 51, 0.3);
            transition: all 0.3s ease;
        }
        
        .civilite-option:hover {
            border-color: rgba(181, 0, 21, 0.3);
            background: rgba(42, 42, 42, 0.5);
        }
        
        .civilite-option input[type="radio"] {
            accent-color: #B50015;
        }
        
        .payment-option {
            background: rgba(42, 42, 42, 0.3);
            border: 1px solid rgba(51, 51, 51, 0.3);
        }
        
        .payment-option:hover {
            background: rgba(42, 42, 42, 0.5);
            border-color: rgba(181, 0, 21, 0.2);
        }