* {
				box-sizing: border-box;
			}
			
			body {
				margin: 0;
				padding: 0;
				padding-top: 140px;
				background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
				font-family: 'Roboto', sans-serif;
				min-height: 100vh;
			}
			
			/* Header fixe amélioré */
			#barreInfo {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 50px;
				background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
				color: #fff;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 18px;
				font-weight: 500;
				z-index: 1000;
				box-shadow: 0 2px 10px rgba(0,0,0,0.3);
			}
			
			#barreProduit {
				height: 60px;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #fff;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        padding: 61px 15px 30px;
        font-size: 14px;
        margin: -30px -30px 0;
			}
			
			#barreRef {
				font-weight: bold;
				font-size: 15px;
				margin-right: 15px;
				white-space: nowrap;
			}
			
			#barreId {
				font-size: 13px;
				opacity: 0.8;
				margin-right: 15px;
				white-space: nowrap;
			}
			
			#barreTitreNetj {
				flex: 1;
				font-weight: 500;
				padding-right: 10px;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
			
			#barreTitreSecon {
				font-size: 13px;
				opacity: 0.8;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				max-width: 200px;
			}
			
			/* Boutons d'action dans le header */
			#lieu {
				position: fixed;
				top: 10px;
				left: 15px;
				z-index: 1001;
				color: #FFF;
				background: rgba(0,0,0,0.5);
				padding: 8px 12px;
				border-radius: 15px;
				font-size: 13px;
				font-weight: bold;
				backdrop-filter: blur(5px);
				border: 1px solid rgba(255,255,255,0.2);
			}
			
			.header-buttons {
				position: fixed;
				top: 10px;
				right: 10px;
				z-index: 1001;
				display: flex;
				gap: 10px;
			}
			
			#btActuTous, #historique {
				background: rgba(255,255,255,0.9);
				border: none;
				padding: 8px 15px;
				border-radius: 20px;
				color: #333;
				text-decoration: none;
				font-size: 14px;
				font-weight: 500;
				transition: all 0.3s ease;
				cursor: pointer;
			}
			
			#btActuTous:hover, #historique:hover {
				background: #fff;
				transform: translateY(-1px);
				box-shadow: 0 2px 8px rgba(0,0,0,0.2);
			}
			
			/* Container principal */
			.main-container {
				max-width: 800px;
				margin: 0 auto;
				padding: 20px;
			}
			
			/* Formulaires et sections */
			#connection, #attenteProduit, #gestionProduit {
				background: rgba(255,255,255,0.95);
				border-radius: 15px;
				padding: 30px;
				margin: 20px 0;
				box-shadow: 0 10px 30px rgba(0,0,0,0.2);
				backdrop-filter: blur(10px);
			}
			
			#connection {
				text-align: center;
			}
			
			#connection label {
				display: block;
				margin-bottom: 20px;
				font-size: 18px;
				color: #333;
				font-weight: 500;
			}
			
			#nomConnection {
				width: 100%;
				max-width: 300px;
				padding: 15px;
				border: 2px solid #e0e0e0;
				border-radius: 10px;
				font-size: 16px;
				margin-bottom: 20px;
				transition: border-color 0.3s ease;
			}
			
			#nomConnection:focus {
				outline: none;
				border-color: #667eea;
			}
			
			#btConnection, #btAttenteValidation {
				background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
				color: white;
				border: none;
				padding: 15px 30px;
				border-radius: 25px;
				font-size: 16px;
				font-weight: 500;
				cursor: pointer;
				transition: all 0.3s ease;
			}
			
			#btConnection:hover, #btAttenteValidation:hover {
				transform: translateY(-2px);
				box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
			}
			
			/* Gestion des produits */
			.couleurCube {
				display: inline-block;
				width: 20px;
				height: 20px;
				border-radius: 3px;
				margin-right: 5px;
				border: 1px solid rgba(0,0,0,0.1);
			}
			
			#optionsListe {
				display: grid;
				gap: 20px;
				margin: 20px 0;
			}
			
			#optionsListe div {
				background: #f8f9fa;
				padding: 20px;
				border-radius: 10px;
				border: 1px solid #e0e0e0;
			}
			
			#optionsListe div.force {
				background: #fff3cd;
				border-color: #ffeaa7;
			}
			
			#optionsListe label {
				display: block;
				margin-bottom: 10px;
				font-weight: 500;
				color: #333;
			}
			
			#optionsListe input, #prodInput, #prodInputSousLeyeux {
				width: 100%;
				max-width: 150px;
				padding: 12px;
				font-size: 18px;
				text-align: center;
				border: 2px solid #e0e0e0;
				border-radius: 8px;
				transition: border-color 0.3s ease;
			}
			
			#optionsListe input:focus, #prodInput:focus, #prodInputSousLeyeux:focus {
				outline: none;
				border-color: #667eea;
			}
			
			#btInventaireCompter {
				background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
				color: white;
				border: none;
				padding: 20px 40px;
				border-radius: 25px;
				font-size: 18px;
				font-weight: bold;
				cursor: pointer;
				transition: all 0.3s ease;
				width: 100%;
				max-width: 300px;
				margin: 20px auto;
				display: block;
			}
			
			#btInventaireCompter:hover {
				transform: translateY(-2px);
				box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
			}
			
			/* Historique des produits */
			.entrepot {
				font-size: 20px;
				font-weight: bold;
				background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
				color: #FFF;
				padding: 15px 20px;
				margin: 20px 0 10px;
				border-radius: 10px;
				text-align: center;
			}
			
			.produitliste {
				position: relative;
				background: white;
				margin: 10px 0;
				padding: 15px;
				border-radius: 10px;
				cursor: pointer;
				transition: all 0.3s ease;
				border: 1px solid #e0e0e0;
				display: flex;
				align-items: center;
				gap: 15px;
			}
			
			.produitliste:hover {
				transform: translateY(-2px);
				box-shadow: 0 5px 15px rgba(0,0,0,0.1);
				border-color: #667eea;
			}
			
			.produitliste img {
				width: 60px;
				height: 60px;
				border-radius: 8px;
				object-fit: contain;
				border: 1px solid #e0e0e0;
				background-color: #f8f9fa;
			}
			
			.produitliste-content {
				flex: 1;
				text-align: left;
			}
			
			.produitliste-ref {
				font-weight: bold;
				color: #333;
				margin-bottom: 5px;
			}
			
			.produitliste-nom {
				color: #666;
				font-size: 14px;
			}
			
			/* Statuts et factures */
			.statu {
				padding: 4px 8px;
				border-radius: 12px;
				color: #FFF;
				font-size: 12px;
				font-weight: 500;
			}
			
			.factureLigne {
				background: #f8f9fa;
				padding: 10px;
				margin: 5px 0;
				border-radius: 5px;
				border-left: 3px solid #667eea;
				font-size: 14px;
			}
			
			/* Images produits */
			.product-images {
				display: grid;
				grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
				gap: 15px;
				margin: 20px 0;
			}
			
			.product-images img {
				width: 100%;
				height: 150px;
				object-fit: contain;
				border-radius: 10px;
				border: 1px solid #e0e0e0;
				background-color: #f8f9fa;
			}
			
			/* Styles pour les nouvelles sections */
			.product-section, .historique-section {
				margin: 20px 0;
			}
			
			.product-section h3, .historique-section h2 {
				color: #2d3436;
				margin-bottom: 20px;
				text-align: center;
				font-weight: 600;
			}
			
			.input-group {
				margin: 15px 0;
				text-align: center;
			}
			
			.input-group.main-input {
				background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
				color: white;
				padding: 20px;
				border-radius: 15px;
				margin: 25px 0;
			}
			
			.input-group.main-input label {
				color: white;
				font-weight: bold;
				font-size: 18px;
			}
			
			.input-group.main-input input {
				background: white;
				border: none;
				color: #333;
				font-weight: bold;
				font-size: 20px;
			}
			
			.input-group label {
				display: block;
				margin-bottom: 8px;
				font-weight: 500;
				color: #333;
			}
			
			.option-header {
				display: flex;
				align-items: center;
				gap: 10px;
				margin-bottom: 15px;
				flex-wrap: wrap;
			}
			
			.option-colors {
				display: flex;
				gap: 3px;
			}
			
			.option-name {
				font-weight: bold;
				color: #2d3436;
				font-size: 16px;
			}
			
			.option-desc {
				color: #636e72;
				font-style: italic;
				font-size: 14px;
			}
			
			.factures-section {
				background: #f1f2f6;
				padding: 15px;
				border-radius: 8px;
				margin: 10px 0;
				border-left: 4px solid #fdcb6e;
			}
			
			.validation-section {
				text-align: center;
				margin: 30px 0;
				padding: 20px;
				border-radius: 15px;
			}
			
			/* Responsive Design */
			@media (max-width: 768px) {
				body {
					padding-top: 130px;
				}
				
				#barreProduit {
					flex-direction: column;
          height: auto;
          padding: 10px;
          margin: -63px -20px 0;
				}
				
				#barreRef, #barreId {
					margin-bottom: 5px;
				}
				
				.main-container {
					padding: 10px;
				}
				
				#connection, #attenteProduit, #gestionProduit {
					padding: 20px;
					margin: 10px 0;
				}
				
				#optionsListe {
					grid-template-columns: 1fr;
				}
				
				.header-buttons {
					flex-direction: column;
					gap: 5px;
				}
				
				#lieu {
					position: relative;
					top: auto;
					left: auto;
					margin-bottom: 10px;
					display: inline-block;
				}
				
				.option-header {
					flex-direction: column;
					align-items: flex-start;
					gap: 5px;
				}
				
				.input-group {
					text-align: left;
				}
				
				.product-images {
					grid-template-columns: repeat(2, 1fr);
					gap: 10px;
				}
				
				.product-images img {
					height: 120px;
					object-fit: contain;
					background-color: #f8f9fa;
				}
				
				.produitliste img {
					width: 50px;
					height: 50px;
					object-fit: contain;
					background-color: #f8f9fa;
				}
				
				.produitliste {
					padding: 10px;
					gap: 10px;
				}
			}
			
			@media (max-width: 480px) {
				body {
					padding-top: 140px;
				}
				
				#barreProduit {
					height: 80px;
					font-size: 13px;
				}
				
				#barreRef {
					font-size: 13px;
					margin-right: 8px;
				}
				
				#barreId {
					font-size: 11px;
					margin-right: 8px;
				}
				
				#barreTitreNetj {
					font-size: 12px;
				}
				
				#barreTitreSecon {
					font-size: 11px;
					max-width: 120px;
				}
				
				/* Images encore plus optimisées pour très petits écrans */
				.product-images img {
					height: 100px;
				}
				
				.produitliste img {
					width: 45px;
					height: 45px;
				}
			}
			/* Animations et transitions supplémentaires */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Application des animations */
.main-container > div {
    animation: fadeIn 0.5s ease-out;
}

.entrepot {
    animation: slideIn 0.3s ease-out;
}

.produitliste {
    animation: fadeIn 0.3s ease-out;
}

.produitliste:hover {
    animation: pulse 0.3s ease-in-out;
}

#btInventaireCompter:active {
    transform: scale(0.95);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus et accessibilité */
input:focus, button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* États de validation */
.input-valid {
    border-color: #00b894 !important;
    background-color: #f0fff4;
}

.input-invalid {
    border-color: #e74c3c !important;
    background-color: #fff5f5;
}

/* Tooltips */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Print styles */
@media print {
    .header-buttons, #barreInfo, #barreProduit {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white;
    }
    
    .main-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Modal pour changer le lieu */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

.lieu-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lieu-item {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.lieu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.lieu-item.lieu-actuel {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: #00b894;
    font-weight: bold;
}

.lieu-item.lieu-actuel::before {
    content: '✓ ';
    font-size: 18px;
    margin-right: 8px;
}

.lieu-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.lieu-item.loading::after {
    content: '⏳';
    margin-left: 10px;
}

.lieu-nom {
    font-size: 16px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-annuler {
    padding: 12px 30px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-annuler:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #636e72 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Lieu cliquable */


#lieu:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#lieu:active {
    transform: scale(0.98);
}

