*,
*:before,
*:after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
	max-width: 100%;
	height: 100%;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #333;
}
@media (max-width: 768px) {
	body {
		font-size: 14px;
	}
}

/* Champ de recherche pour les visiteurs */
.visitor-search {
	display: flex;
	justify-content: center;
	padding: 20px;
	margin: 0 20px;
}

.visitor-search input {
	width: 100%;
	max-width: 600px;
	padding: 15px 20px;
	font-size: 16px;
	border: none;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
	outline: none;
	transition: all 0.3s ease;
}

.visitor-search input:focus {
	background: #fff;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.visitor-search input::placeholder {
	color: #999;
	font-style: italic;
}

@media (max-width: 768px) {
	.visitor-search {
		margin: 0 10px;
		padding: 15px;
	}

	.visitor-search input {
		font-size: 14px;
		padding: 12px 16px;
	}
}

.booklist {
	border-collapse: collapse;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
	margin: 20px;
}
.booklist td + td {
	border-left: 1px solid #e0e0e0;
}
.booklist th {
	padding: 15px 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.5px;
	top: 0px;
	position: sticky;
	z-index: 10;
}
.booklist td {
	padding: 12px 10px;
	transition: background-color 0.2s ease;
}
.booklist td:nth-child(1) {
	word-break: keep-all;
	text-align: center;
}
.booklist tr:nth-child(odd) {
	background-color: #fff;
}
.booklist tr:nth-child(even) {
	background-color: #f8f9fa;
}
.booklist tbody tr:hover {
	background-color: #e3f2fd !important;
	transform: scale(1.01);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.booklist a {
	font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}
.booklist a:hover {
	color: #764ba2;
	text-decoration: underline;
}
.booklist a.error {
	color: #e53e3e;
}
@media (max-width: 768px) {
	.booklist {
		margin: 10px;
		font-size: 0.85em;
	}
	.booklist th {
		padding: 10px 6px;
		font-size: 0.75em;
	}
	.booklist td {
		padding: 8px 6px;
	}
}
button {
	cursor: pointer;
	background: transparent;
	border: none;
	font-size: inherit;
	outline: none;
}
.modal {
	position: fixed;
	overflow: hidden;
	display: none;
	top: 25px;
	left: 10%;
	right: 10%;
	height: calc(100vh - 60px);
	background: #ffffff;
	border-radius: 20px;
	z-index: 9999;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	visibility: hidden;
	opacity: 0;
}
@media (max-width: 768px) {
	.modal {
		top: 10px;
		left: 5%;
		right: 5%;
		height: calc(100vh - 30px);
		border-radius: 15px;
	}
}
.modal.open {
	display: flex;
	flex-direction: column;
}
.modal-content {
	height: 100%;
	overflow-y: auto;
}
.modal-header, .modal-content {
	padding: 20px;
}
.modal-footer {
	padding: 0;
}
.modal-header, .modal-footer {
	font-weight: 600;
	font-size: 1.2em;
}
.modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	top: 15px;
	border-radius: 20px 20px 0 0;
	padding-left: 30px;
}
.modal-footer {
	background: #f8f9fa;
	border-top: 1px solid #e0e0e0;
	border-radius: 0 0 20px 20px;
	height: 80px;
	position: relative;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: space-around;
}
@media (max-width: 768px) {
	.modal-header {
		border-radius: 15px 15px 0 0;
		padding: 15px 15px 15px 20px;
		font-size: 1em;
	}
	.modal-footer {
		border-radius: 0 0 15px 15px;
		padding: 15px;
		min-height: 70px;
	}
}
.modal__backdrop {
	top:0;
	left:0;
	bottom:0;
	right:0;
	position: absolute;
	display: block;
	background: rgba(0, 0, 0, 0.5);
	visibility: hidden;
	opacity: 0;
	z-index: 999;
}
.open-modal {
	z-index: 2;
	position: absolute;
	top:0;
	left: 150px;
	font-weight: bold;
	background: var(--blue);
	color: var(--white);
	padding: 0.75rem 1.75rem;
	margin-bottom: 1rem;
	border-radius: 5px;
}
.close-modal {
	position: absolute;
	right: 20px;
	top: 10px;
}
.save-modal {
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 100;
	width: 48px;
	height: 48px;
	padding: 0;
	flex-shrink: 0;
}
.save-modal:hover {
	filter:drop-shadow(0 0 5px #333);
	transform: scale(1.1);
}
.save-modal img {
	width: 48px;
	height: 48px;
	display: block;
}
.delete-modal {
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 100;
	width: 48px;
	height: 48px;
	padding: 0;
	flex-shrink: 0;
}
.delete-modal:hover {
	filter:drop-shadow(0 0 5px #f00);
	transform: scale(1.1);
}
.delete-modal img {
	width: 48px;
	height: 48px;
	display: block;
}
.is-visible {
	visibility: visible;
	opacity: 1;
}
html body div#modalBackdrop.modal__backdrop.is-visible {
	height: 100vh;
	overflow-y: hidden;
}
h4 {
	color: #f0a500;
}
input,
input[type="radio"] + label,
input[type="checkbox"] + label:before,
select option,
select {
	width: 100%;
	padding: 1em;
	line-height: 1.4;
	background-color: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	-webkit-transition: 0.35s ease-in-out;
	-moz-transition: 0.35s ease-in-out;
	-o-transition: 0.35s ease-in-out;
	transition: 0.35s ease-in-out;
	transition: all 0.35s ease-in-out;
}
textarea {
	width: 100%;
	height: 100%;
	padding: 1em;
	line-height: 1.4;
	background-color: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	-webkit-transition: 0.35s ease-in-out;
	-moz-transition: 0.35s ease-in-out;
	-o-transition: 0.35s ease-in-out;
	transition: 0.35s ease-in-out;
	transition: all 0.35s ease-in-out;
	box-sizing: border-box; /* fit parent width */
}
input:focus {
	outline: 0;
	border-color: #bd8200;
}
.input-icon i {
	padding-top: 10px;
}
input:focus + .input-icon i {
	color: #f0a500;
}
input:focus + .input-icon:after {
	border-right-color: #f0a500;
}
input[type="radio"] {
	display: none;
}
input[type="radio"] + label {
	display: inline-block;
	width: 50%;
	text-align: center;
	float: left;
	border-radius: 0;
}
select {
	display: inline-block;
	text-align: left;
	padding-left: 60px;
	float: left;
	border-radius: 0;
}
input[type="radio"] + label:first-of-type {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}
input[type="radio"] + label:last-of-type {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}
input[type="radio"] + label i {
	padding-right: 0.4em;
}
input[type="radio"]:checked + label,
input:checked + label:before,
select:focus,
select:active {
	background-color: #f0a500;
	color: #fff;
	border-color: #bd8200;
}
input[type="checkbox"] {
	display: none;
}
input[type="checkbox"] + label {
	position: relative;
	display: block;
	padding-left: 1.6em;
}
input[type="checkbox"] + label:before {
	position: absolute;
	top: 0.2em;
	left: 0;
	display: block;
	width: 1em;
	height: 1em;
	padding: 0;
	content: "";
}
input[type="checkbox"] + label:after {
	position: absolute;
	top: 0.45em;
	left: 0.2em;
	font-size: 0.8em;
	color: #fff;
	opacity: 0;
	font-family: FontAwesome;
	content: "\f00c";
}
input:checked + label:after {
	opacity: 1;
}
select {
	height: 3.4em;
	line-height: 2;
}
select:first-of-type {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}
select:last-of-type {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}
select:focus,
select:active {
	outline: 0;
}
select option {
	background-color: #f0a500;
	color: #fff;
}
.input-group {
	margin-bottom: 5px;
	zoom: 1;
}
.input-group:before,
.input-group:after {
	content: "";
	display: table;
}
.input-group:after {
	clear: both;
}
.input-group-icon {
	position: relative;
}
.input-group-icon input {
	padding-left: 4.4em;
}
.input-group-icon .input-icon {
	position: absolute;
	top: 0;
	left: 0;
	width: 3.4em;
	height: 3.4em;
	padding-top: 11px;
	line-height: 3.4em;
	text-align: center;
	pointer-events: none;
}
.input-group-icon .input-icon:after {
	position: absolute;
	top: 0.6em;
	bottom: 0.6em;
	left: 3.4em;
	display: block;
	border-right: 1px solid #e5e5e5;
	content: "";
	-webkit-transition: 0.35s ease-in-out;
	-moz-transition: 0.35s ease-in-out;
	-o-transition: 0.35s ease-in-out;
	transition: 0.35s ease-in-out;
	transition: all 0.35s ease-in-out;
}
.input-group-icon .input-icon i {
	-webkit-transition: 0.35s ease-in-out;
	-moz-transition: 0.35s ease-in-out;
	-o-transition: 0.35s ease-in-out;
	transition: 0.35s ease-in-out;
	transition: all 0.35s ease-in-out;
}
.container {
	max-width: 38em;
	padding: 1em 3em 2em 3em;
	margin: 0em auto;
	background-color: #fff;
	border-radius: 4.2px;
	box-shadow: 0px 3px 10px -2px rgba(0, 0, 0, 0.2);
}
.row {
	zoom: 1;
}
.row:before,
.row:after {
	content: "";
	display: table;
}
.row:after {
	clear: both;
}
.col-half {
	padding-right: 10px;
	float: left;
	width: 50%;
}
.col-half:last-of-type {
	padding-right: 0;
}
.col-third {
	padding-right: 10px;
	float: left;
	width: 33.33333333%;
}
.col-third:last-of-type {
	padding-right: 0;
}
@media only screen and (max-width: 540px) {
	.col-half {
		width: 100%;
		padding-right: 0;
	}
}
.rpi-icon{
	display:inline-block;
	vertical-align:middle;
	background-image:url(../resources/img/icons.png);
}
.rpi-icon.book_details-author {
	height: 24px;
	width: 24px;
	background-position: -316px -2px;
}
.rpi-icon.book_details-title {
	height: 24px;
	width: 24px;
	background-position: -234px -2px;
}
.rpi-icon.book_details-isbn10 {
	height: 24px;
	width: 24px;
	background-position: -132px -2px;
}
.rpi-icon.book_details-isbn13 {
	height: 24px;
	width: 24px;
	background-position: -132px -2px;
}
.rpi-icon.book_details-dimensions {
	height: 24px;
	width: 24px;
	background-position: -2px -2px;
}
.rpi-icon.book_details-nbpages {
	height: 24px;
	width: 24px;
	background-position: -184px -2px;
}
.rpi-icon.book_details-language {
	height: 24px;
	width: 24px;
	background-position: -158px -2px;
}
.rpi-icon.book_details-publication_date {
	height: 24px;
	width: 24px;
	background-position: -262px -2px;
}
.rpi-icon.book_details-publisher {
	height: 24px;
	width: 24px;
	background-position: -288px -2px;
}
.cover {
	position: relative;
	width: 100%;
	height: 100%;
	border: 10px #fff solid;
	background-color: #fff;
	background-image: linear-gradient(45deg, #CCCCCC 25%, transparent 25%), linear-gradient(-45deg, #CCCCCC 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #CCCCCC 75%), linear-gradient(-45deg, transparent 75%, #CCCCCC 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}
.coverDrag {
	width: 100%;
	height: 100%;
	background-color: #0f0;
}
.cover img, .coverDrag img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.dz-preview, .dz-file-preview {
	display: none !important;
}
.dropzone {
	height: 100%;
}
.dragover {
	border: 10px #a0a dotted;
	background-color: #a0a;
}
.displayBlock {
	display: block !important;
}
#lacover {
	display: none;
}
#deleteCover {
	cursor: pointer;
	position: absolute;
	width: 48px;
	height: 48px;
	right: 5px;
	top: 5px;
	opacity: 1;
	visibility: visible;
	z-index: 10;
	transition: all 200ms ease-in;
	filter: drop-shadow(0 0 10px #333);
	transform: scale(.75);
	background: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	padding: 4px;
}
#deleteCover.displayBlock {
	opacity: 1;
	visibility: visible;
}
#deleteCover:hover {
	transform: scale(1);
	background: rgba(255, 255, 255, 1);
}
#deleteCover img {
	width: 100%;
	height: 100%;
}
.drag-drop{
	width: 100%;
	background-color: #1caff6;
	margin-top: 30px;
	border-radius: 10px;
	border: dashed 2px white;
	color: white;
	text-align: center;
	padding-top: 40px;
	padding-bottom: 40px;
	font-size: 14pt;
	transition: .5s background-color, .5s color;
	height: 100px;
	font-family:inherit;
}
.drag-drop.dragover{
	background-color: #0e384c;
	color: white;
}
.drag-drop.uploading{
	background-color: #0e384c;
	color: white;
}
.loadCover {
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 100;
	width: 48px;
	height: 48px;
	padding: 0;
	flex-shrink: 0;
}
.loadCover:hover {
	filter:drop-shadow(0 0 10px #333);
	transform: scale(1.1);
}
.loadCover img {
	width: 48px;
	height: 48px;
	display: block;
}

#coverloader {
	z-index: 2;
	position: absolute;
	bottom: calc(50% - 25px);
	left: calc(50% - 24px);
}
#saveloader {
	z-index: 2;
	position: absolute;
	left: calc(16.66% - 24px);
	top: 50%;
	transform: translateY(-50%);
}
#loader {
	z-index: 2;
	position: absolute;
	right: calc(16.66% - 24px);
	top: 50%;
	transform: translateY(-50%);
}
.loader {
	width: 48px;
	height: 48px;
	border: 5px solid #667eea;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
	display: none;
}
@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
.selectedBook {
	background-color: #AFA !important;
}
table {
	table-layout: fixed;
	width: 100%;
}
th:first-child, td:first-child {
	width: 2%;
}
th:nth-child(2), td:nth-child(2) {
	width: 7%;
	white-space: nowrap;
}
th:nth-child(3), td:nth-child(3) {
	width: 20%;
}
th:nth-child(4), td:nth-child(4) {
	width: 10%;
}
th:nth-child(5), td:nth-child(5) {
	width: 6%;
}
th:nth-child(6), td:nth-child(6) {
	width: 3%;
}
th:nth-child(7), td:nth-child(7) {
	width: 7%;
}
th:last-child, td:last-child {
	width: 2%;
}
th.asc::after {
	content: ' \025B4';
}
th.desc::after {
	content: ' \025BE';
}
th:not(.nosort) {
	cursor: pointer;
}
#footerSpacer {
	height: 90px;
}
.footer {
	z-index: 2;
	position: fixed;
	background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.98) 100%);
	backdrop-filter: blur(10px);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	height: 80px;
	left: 0;
	bottom: 0;
	width: 100%;
	text-align: center;
	margin: auto;
	display: flex;
	align-items: center;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}
@media (max-width: 768px) {
	.footer {
		height: auto;
		min-height: 70px;
		flex-wrap: wrap;
		padding: 10px;
	}
}
.scanMode {
	padding: 4px;
}
.status {
	margin-right: 50%;
	margin-top: 11px;
	float: right;
	height: 32px;
}
#statusOk {
	display: none;
}
#statusKo {
	display: none;
}
#noStatus {
	display: block;
}
#status {
	margin-top: 1px;
	margin-right: 1px;
}
#ean13 {
	font-size: 1.8em;
	padding: 12px 20px;
	text-align: center;
	font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
	border: 2px solid #667eea;
	border-radius: 10px;
	background: white;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}
#ean13:focus {
	outline: none;
	border-color: #764ba2;
	box-shadow: 0 4px 12px rgba(118, 75, 162, 0.2);
	transform: translateY(-2px);
}
#ean13::placeholder {
	color: #cbd5e0;
	font-size: 0.75em;
}
@media (max-width: 768px) {
	#ean13 {
		font-size: 1.3em;
		padding: 10px 15px;
	}
	/* Masquer l'input sur mobile quand le scanner est actif */
	body.scanner-active #ean13 {
		display: none;
	}
}

/* Simple Switch */
._simple-switch-checkbox{
	height:0px;
	width:0px;
	overflow:hidden;
	opacity:0
}
._simple-switch-track{
	--simple-switch_size:25px;
	font-size:inherit;
	display:inline-block;
	position:relative;
	vertical-align:baseline;
	background:#ccc;
	border-radius:12px;
	padding:0 calc((12px * 1.25) - 6px) 0 0;
	border:3px solid #ccc;
	transition:background 250ms ease-out;
	outline:none;
	box-sizing:padding-box
}
@supports (--foobar: false){
	._simple-switch-track{
		border-radius:var(--simple-switch_size);
		padding:0 calc((var(--simple-switch_size) * 1.25) - 6px) 0 0
	}
}
._simple-switch-track.on{
	background:#f44336;
	border:3px solid #f44336
}
._simple-switch-track.on .handle{
	transform:translateX(calc((12px * 1.25) - 6px))
}
@supports (--foobar: false){
	._simple-switch-track.on .handle{
		transform:translateX(calc((var(--simple-switch_size) * 1.25) - 6px))
	}
}
._simple-switch-track.focus{
	border:3px solid #03A9F4
}
._simple-switch-track .handle{
	position:relative;
	width:calc(6px);
	height:calc(6px);
	border-radius:12px;
	background:#fff;
	display:block;
	transition:transform 250ms ease-out;
	will-change:transition;
	z-index:2
}
@supports (--foobar: false){
	._simple-switch-track .handle{
		width:calc(var(--simple-switch_size) - 6px);
		height:calc(var(--simple-switch_size) - 6px);
		border-radius:var(--simple-switch_size)
	}
}
._simple-switch-track._material{
	padding:0;
	margin:3px 0;
	height:9px;
	width:18px;
	border:none;
	vertical-align:top
}
@supports (--foobar: false){
	._simple-switch-track._material{
		height:calc(var(--simple-switch_size) - 3px);
		width:calc(var(--simple-switch_size) * 1.5)
	}
}
._simple-switch-track._material.on{
	background:#f44336
}
._simple-switch-track._material.on:after{
	transform:translateX(9px)
}
@supports (--foobar: false){
	._simple-switch-track._material.on:after{
		transform:translateX(calc(var(--simple-switch_size) - 3px))
	}
}
._simple-switch-track._material.on .handle{
	background:#d2190b;
	transform:translateX(9px)
}
@supports (--foobar: false){
	._simple-switch-track._material.on .handle{
		transform:translateX(calc(var(--simple-switch_size) - 3px))
	}
}
._simple-switch-track._material:after{
	content:"";
	position:absolute;
	top:-9.25px;
	left:-10px;
	width:26px;
	height:26px;
	z-index:1;
	background:rgba(0,0,0,0.125);
	border-radius:26px;
	opacity:0;
	will-change:opacity;
	transition:opacity 250ms ease-out,transform 250ms ease-out
}
@supports (--foobar: false){
	._simple-switch-track._material:after{
		width:calc(var(--simple-switch_size) + 14px);
		height:calc(var(--simple-switch_size) + 14px);
		border-radius:calc(var(--simple-switch_size) + 14px)
	}
}
._simple-switch-track._material.focus:after{
	opacity:1
}
._simple-switch-track._material .handle{
	position:absolute;
	top:-2.25px;
	left:-3px;
	width:12px;
	height:12px;
	box-shadow:0 1px 3px rgba(0,0,0,0.4);
	transition:transform 250ms ease-out,background 250ms ease-out
}
@supports (--foobar: false){
	._simple-switch-track._material .handle{
		width:var(--simple-switch_size);
		height:var(--simple-switch_size);
	}
}
._simple-switch-track {
	--simple-switch_size:25px !important;
	vertical-align:middle
}

/* Saisie */
#ean13 {
	width: auto !important;
}
.footer > #left {
	min-width: 250px;
	flex-wrap: wrap;
	display: flex;
	align-items: center;
	gap: 10px;
}

.logout-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: white;
	margin-left: 10px;
}

.logout-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logout-btn:active {
	transform: scale(0.95);
}

@media (max-width: 768px) {
	.logout-btn {
		width: 36px;
		height: 36px;
	}
}

.footer > #center {
	flex-grow: 1;
	width: 33%;
	height: 100px;
}
.footer > #right {
	min-width: 250px;
}
.nobook {
	text-align: center;
	height: 100px;
	margin-top: 60px;
}
#glass {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index:1;
	background-color: #fdd;
	opacity: .25;
	display: none;
}

/* Scanner de codes-barres */
#barcode-scanner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
#barcode-scanner.active {
	display: flex;
}
#barcode-reader {
	width: 90%;
	max-width: 600px;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#barcode-scanner-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	text-align: center;
	font-size: 1.3em;
	font-weight: 600;
}
#barcode-scanner-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid white;
	color: white;
	font-size: 2em;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10001;
}
#barcode-scanner-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}
.camera-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 25px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.camera-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
.camera-button:active {
	transform: translateY(0);
}
.camera-button svg {
	width: 24px;
	height: 24px;
}
@media (max-width: 768px) {
	#barcode-reader {
		width: 95%;
	}
	#barcode-scanner-header {
		font-size: 1.1em;
		padding: 15px;
	}
	#barcode-scanner-close {
		width: 45px;
		height: 45px;
		font-size: 1.5em;
		top: 15px;
		right: 15px;
	}
}
/* Message d'aide pour le scan */
#scan-help-message {
	position: absolute;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.95);
	padding: 15px 25px;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	font-size: 0.9em;
	text-align: center;
	max-width: 80%;
	color: #333;
	z-index: 10002;
}
#scan-help-message strong {
	color: #667eea;
	display: block;
	margin-bottom: 5px;
}