
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #dde0ed 0%, #938a9b 100%);
            min-height: 100vh;
       
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #293a7d 0%, #172e60 100%);
            color: white;
            padding: 30px;
            text-align: center;
            
        }
        
        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .content {
            padding: 40px;
        }
        
        .form-section {
            background: #f8f9fa;
            padding: 25px;
            margin-bottom: 30px;
            border-radius: 10px;
            border-left: 5px solid #814a1f;
        }
        
        .form-section h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.4em;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .form-col {
            flex: 1;
            min-width: 200px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #2c3e50;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #1c3969;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .checkbox-group input[type="checkbox"] {
            width: auto;
            margin: 0;
        }
        
        .tva-exempt-section {
            background: #fff3cd;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #a46735;
            margin-top: 15px;
            display: none;
        }
        
        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin: 5px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
        }
        
        .btn-success {
            background: linear-gradient(135deg, #2ecc71, #27ae60);
            color: white;
        }
        
        .btn-warning {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .items-section {
            background: #f8f9fa;
            padding: 25px;
            margin-bottom: 30px;
            border-radius: 10px;
            border-left: 5px solid #2ecc71;
        }
        
        .item-row {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            align-items: end;
            flex-wrap: wrap;
        }
        
        .item-input {
            flex: 1;
            min-width: 150px;
        }
        
        .item-input-small {
            flex: 0.5;
            min-width: 80px;
        }
        
        .totals {
            background: #e8f5e8;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
        }
        
        .total-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 5px 0;
        }
        
        .total-row.final {
            border-top: 2px solid #2ecc71;
            padding-top: 15px;
            margin-top: 15px;
            font-weight: bold;
            font-size: 1.2em;
        }
        
        .preview-section {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            padding: 30px;
            margin-top: 30px;
        }
        
        .invoice-preview {
            max-width: 794px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
        }
        
        .invoice-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 2px solid #3498db;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 30px;
            margin: -40px -40px 40px -40px;
            border-radius: 10px 10px 0 0;
        }
        
        .logo-section {
            flex: 1;
        }
        
        .logo {
            max-width: 200px;
            max-height: 100px;
            margin-bottom: 20px;
        }
        
        .invoice-title {
            flex: 1;
            text-align: center;
        }
        
        .invoice-title h1 {
            font-size: 2.5em;
            color: #2c3e50;
            margin-bottom: 10px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }
        
        .invoice-details {
            flex: 1;
            text-align: right;
        }
        
        .parties {
            display: flex;
            justify-content: space-between;
            margin-bottom: 40px;
        }
        
        .party {
            flex: 1;
            margin-right: 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .party:last-child {
            margin-right: 0;
        }
        
        .party h3 {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 15px;
            margin: -20px -20px 15px -20px;
            border-radius: 10px 10px 0 0;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        
        .items-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .items-table th,
        .items-table td {
            padding: 15px 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .items-table th {
            background: linear-gradient(135deg, #34495e, #2c3e50);
            color: white;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        
        .items-table tbody tr {
            background: #ffffff;
        }
        
        .items-table tbody tr:nth-child(even) {
            background: #f8f9fa;
        }
        
        .items-table tbody tr:hover {
            background: #e3f2fd;
        }
        
        .items-table .number {
            text-align: right;
        }
        
        .invoice-footer {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 2px solid #e0e0e0;
            font-size: 0.9em;
            color: #666;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            padding: 30px;
            margin-left: -40px;
            margin-right: -40px;
            margin-bottom: -40px;
            border-radius: 0 0 10px 10px;
        }
        
        .payment-info {
            background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
            padding: 25px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid #bbdefb;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .quote-conditions {
            background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
            padding: 25px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid #ffc107;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .tva-exempt-notice {
            background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border-left: 4px solid #ffc107;
            font-style: italic;
            font-weight: 500;
        }
        
        .period-info {
            background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border-left: 4px solid #2ecc71;
        }
        
        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
            }
            
            .item-row {
                flex-direction: column;
            }
            
            .parties {
                flex-direction: column;
            }
            
            .invoice-header {
                flex-direction: column;
                text-align: center;
            }
        }
        
        .hidden {
            display: none;
        }
