
body
{
	background-color: #ffffff;
	margin: auto;
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
}

.header-body,
.body-content {
  width: min(1200px, 92vw);
  min-width: 0;
  margin: 0 auto;
}


.hidden
{
	display: none !important;
}

.icon{
	width: 20px;
	height: 20px;
}
.green-icon
{
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.red-icon
{
filter: invert(16%) sepia(94%) saturate(7480%) hue-rotate(2deg) brightness(105%) contrast(118%);

}

#header-logo
{
  margin: 0;
  height: 150px;
}

.header-body
{
	display:  var(--page-header);
	width: 65vw;
	min-width: 800px;
    margin: auto;
	flex-direction: column;
	flex-wrap: nowrap;
}

.header-body-element
{
  margin: 10px;
  /*line-height: 75px;
  font-size: 30px;*/
}

.header-title
{
	display: var(--card-image-title-header);
	width: 45vw;
	min-width: 600px;
	letter-spacing: var(--character-spacing-0);
	color: var(--color-main);
	text-align: left;
	opacity: 1;
	font-size: var(--font-size-45);
	font-family: var(--theme-font-family-light);
	font-weight: var(--font-weight-light);
	line-height: var(--line-spacing-55);
	font-style: var(--font-style-normal);
	font-variant: normal;

}

#HeaderBar
{
	margin-bottom: 50px;
	max-width: 90vw;
	margin-left: 20px;
    margin-right: 20px;
}

#card-and-discount
{	
	display: var(--card-image-title-header);
	background-repeat: no-repeat;
  height: 130px;
	background-size:  contain;
}

.lang-card {
	display: flex;
	flex-direction: row;
}

.inline-lang-button {
	cursor: pointer;
}

.menu-lang-button {
	width: 100px;
	height: 32px;
	background-color: white;
	border: 1px solid #dddddd;
	border-radius: 7px;
	text-align: center;
	font-size: 20px;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	float: right;
	margin-bottom: 20px;
	margin-top: 20px;
}

.menu-lang-button:hover .menu-lang-content {
	display: block;
}

.menu-lang-content {
	width: 100%;
	display: none;
	position: absolute;
	border: 1px solid #dddddd;
	background-color: white;
	border-radius: 7px;
	text-align: center;
	z-index: 1;
	top: 30px;
	left: 0px;
}

.menu-lang-content a {
	display: block;
	font-size: var(--font-size-14);
	line-height: var(--line-spacing-20);
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	text-decoration: none;
	color: var(--color-dark-grey);
	padding: 12px 16px;
	border-bottom: 1px solid #DDDDDD;
	cursor: pointer;
}

.menu-lang-content a:last-child {
	border-bottom: 0px;
}

.menu-lang-content a:hover {
	background-color: #f1f1f1;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
}

.inline-lang-selector .active {
	font: normal normal bold 18px/27px Poppins !important;
	letter-spacing: 0px;
	color: #000000 !important;
	text-transform: uppercase;
}

.inline-lang-selector .inline-lang-button {
	font: normal normal bold 18px/27px Poppins;
	letter-spacing: 0px;
	color: #C0C0C0;
	text-transform: uppercase;
}

.inline-lang-separator {
	display: inline-block;
	width: 3px;
	height: 15px;
	background-color: currentColor;
	margin: 0 8px;
	vertical-align: middle;
	color: #C0C0C0;
}

#back-button
{
		display: var(--back-button-header);
}

#back-button a
{
	padding-left: 4vw;
	color: var(--color-button-primary);
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	font-size: var(--font-size-16);
	line-height: var(--line-spacing-20);
	font-style: var(--font-style-normal);
	font-weight: var(--font-weight-normal);
}


#logout
{
	cursor: pointer;
}

#logout:hover
{
	background-color: var(--color-button-hover);
}

/**
* =====================================
* Content Home Page
* =====================================
* */

#content
{
	width: 100%;
	background-color: var(--color-second-light);
}


.body-content
{
	display: block;
	justify-content: space-around;
	width: 65vw;
	/* min-width: 800px; */
	margin:  auto;
	padding-top:  0px;
	padding-bottom:  30px;
}

#app-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
}

.spinner-border {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	vertical-align: text-bottom;
	border: .25em solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	-webkit-animation: spinner-border .75s linear infinite;
	animation: spinner-border .75s linear infinite;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

#partner-name
{
	display: flex;
	justify-content: center;
	text-align: center;
	margin-top: 0;
	align-items: center;
	height: 100px;
	width: 90%;
	margin: auto;

}

.deal-title-skeleton {
	display: inline-flex;
	align-items: center;
	width: min(320px, 70%);
	margin: 0 auto;
}

.deal-title-skeleton__bar {
	display: block;
	width: 100%;
	height: 1.4em;
	border-radius: 6px;
	background: linear-gradient(90deg, #eceef2 0%, #f7f8fa 50%, #eceef2 100%);
	background-size: 200% 100%;
	animation: deal-title-shimmer 1.2s ease-in-out infinite;
}

@keyframes deal-title-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.deal-title-empty {
	color: #7a8a8c;
	font-style: italic;
	font-weight: 400;
}

#logout-image
{
	margin-left: 10px;
	padding-top: 5px;
	color: var(--color-main)
}

#scanner-token
{
	margin:auto;
	width: 90%;
}

.single-icon
{
	color: var(--color-dark-grey);
	font-size: 23px;
}

.single-icon:hover
{
		color: var(--color-icon-hover);
}


#coupon-view
{
	display: none;
	width: 90%;
	margin: auto;
}

#translation_nb_entry_total
{
	font-weight: bold;
}

.message-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #e8f8e8;
  border-left: 4px solid var(--color-green);
  border-radius: 6px;
  padding: 14px 16px;
  white-space: pre-line;
  animation: slide-in-banner 0.25s ease;
}

.message-fail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdf0f1;
  border-left: 4px solid var(--color-button-primary);
  border-radius: 6px;
  padding: 14px 16px;
  white-space: pre-line;
  animation: slide-in-banner 0.25s ease;
}

@keyframes slide-in-banner {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


#cameraBlock
{
	width: 100%;
    min-width: 300px;
}

#cameraBlockToken
{
	width: 50%;
    min-width: 300px;
}

/**
* =====================================
* History
* =====================================
* */
#history-block
{
	display: var(--history-page);
	/*width: 500px;*/
	min-width: 150px;
	width: 90%;
	margin: auto;
	margin-bottom:50px;
	margin-top: 50px;
}

#history-lines > .historyLine
{
	border: 1px solid var(--color-main);
	border-radius: 20px;
	background-color: white;
	display: flex;
	padding: 10px;
	margin-bottom: 10px;
}

.historyLine > img
{
	height: 20px;
	width: 20px;
}


#success-history-line, #fail-history-line
{
	display: none;
}

#history-header
{
	display:flex;
	justify-content: space-between;

	
}
#clear-history {
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: baseline;
}


#clear-history i {
	font-size: 15px;
	color: #ffffff;
}

/**
* =====================================
* QRCODE Scanner
* =====================================
* */
#qrcode-scanner-block
{
	display: var(--qrcode-scanner-page);

	padding-top:  30px;
	padding-bottom:  30px;
	margin: auto;
	width: 20vw;
    min-width: 300px;
}

#scan-qr-code-button, #switch-camera
{
	width: auto;
	margin-bottom: 10px;
}

.remaining_available_nb_entry
{
	font-size: 18px;
	line-height: 25px;
	font-weight: 400;
	background: #b7d6ff 0% 0% no-repeat padding-box;
	border: 1px solid #0c7ae1 ;
	border-radius: 8px;
	width: calc(100% - 20px);
	padding: 10px;
	color :#080808;
}


#modalcapture
{
	width: 100%;
}

#canvas
{
	width: 80%;
	margin:auto;
	display: block;
	max-height: 250px;
	padding: 0 20px 20px 20px;
}

#video {
  /* width: 100%;
  height: auto;  */
  /* max-height: 250px; */
  /* padding: 0 20px 20px 20px;
  object-fit: contain; 
  display: block;
  margin: 0 auto; */
}

/**
* =====================================
* Coupons
* =====================================
* */

/**
* =====================================
* MASS SCAN PANEL
* =====================================
* */

#other-coupons-container { margin: 24px 100px; }

.mass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.mass-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mass-header__title h3 { margin: 0; }

.mass-header__count {
  font-family: var(--theme-font-family-bold);
  font-size: 0.85rem;
  color: #7a8a8c;
  background: #e0e2e7;
  padding: 2px 8px;
  border-radius: 12px;
}

.mass-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--theme-font-family-bold);
  font-size: 0.875rem;
  color: var(--color-darker-grey);
  user-select: none;
}

.mass-validate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: #e0e2e7;
  border: none;
  color: #aaa;
  font-family: var(--theme-font-family-bold);
  font-size: 1rem;
  cursor: not-allowed;
  margin-bottom: 16px;
  transition: background .15s, color .15s;
}

.mass-validate-btn--active {
  background: var(--color-button-primary);
  color: #fff;
  cursor: pointer;
}

.mass-validate-btn--active:hover {
  background: var(--color-button-hover);
}

#scannable-coupon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.mass-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #dde0e6;
  border-radius: 8px;
  padding: 12px 10px 12px 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}

.mass-card:hover:not(.mass-card--scanned) { border-color: var(--color-button-primary); }

.mass-card--selected {
  border-color: var(--color-button-primary);
  background: #fff5f6;
  box-shadow: 0 0 0 2px rgba(167,31,45,.10);
}

.mass-card--scanned {
  background: #f4f4f4;
  border-color: #d0d0d0;
  cursor: default;
  opacity: 0.7;
}

.mass-card__check-col { flex-shrink: 0; }

.mass-card__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #dde0e6;
  font-size: 0.8rem;
  font-family: var(--theme-font-family-bold);
  color: #7a8a8c;
  background: #fff;
  transition: background .15s, border-color .15s, color .15s;
}

.mass-card--selected .mass-card__circle {
  background: var(--color-button-primary);
  border-color: var(--color-button-primary);
  color: #fff;
}

.mass-card__body { flex: 1; min-width: 0; }

.mass-card__name {
  font-family: var(--theme-font-family-bold);
  font-size: 0.9rem;
  color: var(--color-darker-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mass-card__code {
  font-family: var(--theme-font-family);
  font-size: 0.75rem;
  color: #7a8a8c;
}

.mass-card__badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.7rem;
  font-family: var(--theme-font-family-bold);
  color: #aaa;
  background: #e8e8e8;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-remove-button {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 10px;
  margin: 0;
  line-height: 1;
  border-radius: 4px;
}

.card-remove-button:hover {
  color: #d9534f;
  background-color: #fde8e8;
}

.form-check { margin: 20pt 0; }

.form-check-input {
	cursor: pointer;
}

.form-check-label {
	cursor: pointer;
}

#validate-selected-button-top, #validate-selected-button-bottom {
	width: fit-content !important;
	padding: 0 15pt !important;
}

#validate-selected-button-bottom {
	margin-top: 24px;
}

/* Media Queries pour la responsivité*/
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/**
* =====================================
* Validate coupon
* =====================================
* */
#validate-coupon-block
{
	display: flex;
	flex-direction: column;
	width: 50%;
	min-width: 150px;
	padding:  30px 30px 30px 30px;
	justify-content: flex-start;

}

.coupon-data
{
	display: flex;
	width:100%;
}

.coupon-data .input-desc
{
	width: 50%;
}

.coupon-data div
{
	width: 80%;
}


.coupon-state-text 
{
	display: table;

}
.coupon-state-text p
{
	display: table-cell;
	vertical-align: middle;
}

/**
* =====================================
* Done successfully view
* =====================================
* */
#coupon-success-block
{
	display: none;
}

.success-icon
{
	color: green;
}

/**
* =====================================
* Done error view
* =====================================
* */

#coupon-fail-block
{
	display: none;
}

.error-icon
{
	color: red;
}

.big-icon
{
	font-size: 100px;
}


/**
* =====================================
* Footer
* =====================================
* */

#footer
{
	width: 55vw;
	color:  var(--color-dark-grey);
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	font-size: var(--font-size-14);
	line-height: var(--line-spacing-20);
	margin-bottom: 20px;
	padding-top:  30px;
	padding-bottom:  30px;
    margin: auto;
}

#footer-lang-selector
{
	display: none;
}

#footer a 
{	
	color:  var(--color-dark-grey);
	text-decoration: underline;
}

#footer > img
{
	margin-top:  30px;
}

#footer-links
{
	display: var(--footer-links);
}





/**
* =====================================
* Buttons
* =====================================
* */

.buttons-block
{
	margin:auto;
	width:100%;
}
.buttons-block button
{
	display: block;
	margin: auto;
}


button 
{
	border: 1px solid #DDDDDD;
	background:  #FFFFFF 0% 0% no-repeat padding-box;
	border-radius: 7px;
	color: var(--color-dark-grey);
	font-size: 12px;
	font-family: var(--theme-font-family-light);
	font-weight: var(--font-weight-light);
	line-height: 14px;
	font-style: var(--font-style-normal);
	letter-spacing: var(--character-spacing-0);
	text-align: left;
	cursor: pointer;
	margin-bottom: 20px;
}


.action-button 
{
	background-color:  white;
	border: 1px solid var(--color-button-primary);
	border-radius: 22px;
	color: var(--color-button-primary) ;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-20);
	line-height: var(--line-spacing-24);
	text-align: center;
	width: 100%;
	height: 45px;
}

.action-button:hover
{
	background-color:  #F6F6F6;
	border: 1px solid black;
	color: black;
}

.disabled-action-button 
{
	background-color:  var(--color-disable-button);
	border: 0px;
	border-radius: 22px;
	color: white ;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-20);
	line-height: var(--line-spacing-24);
	text-align: center;
	width: 100%;
	height: 45px;
}

.enabled-action-button 
{
	background-color:  var(--color-button-primary);
	border: 0px;
	border-radius: 22px;
	color: white ;
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-20);
	line-height: var(--line-spacing-24);
	text-align: center;
	width: 100%;
	height: 45px;
}

.enabled-action-button:hover
{
	background-color:  var(--color-button-hover) !important;
}




/**
* =====================================
* Titles
* =====================================
* */
h1
{
	color: var(--color-main);
	font-size: var(--font-size-25);
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-spacing-30);
	font-style: var(--font-style-normal);
	margin-bottom: 10px;
}


h2
{
	color:  var(--color-second);
	font-size: var(--font-size-20);
	font-family: var(--theme-font-family-medium);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-spacing-28);
	font-style: var(--font-style-normal);
	margin-bottom:  0px;
	margin-top:0px;
}

h3
{
	color:  var(--color-main);
	font-size: var(--font-size-20);
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-spacing-24);
	font-style: var(--font-style-normal);
	margin-top: 0px;
}



/**
* =====================================
* PRICES SELECTION
* =====================================
* */

.deal-price-selection { margin: 16px 0 8px; }

.deal-price-selection__label {
  font-size: 14px;
  font-family: var(--theme-font-family-bold);
  color: var(--color-darker-grey);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.deal-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.deal-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid #dde0e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}

.deal-price-card:hover {
  border-color: var(--color-button-primary);
  background: #fff5f6;
}

.deal-price-card--selected {
  border-color: var(--color-button-primary);
  background: #fff5f6;
  box-shadow: 0 0 0 3px rgba(167,31,45,.12);
}

.deal-price-card__price {
  font-family: var(--theme-font-family-bold);
  font-size: 1.35rem;
  color: var(--color-button-primary);
  line-height: 1;
}

.deal-price-card__desc {
  font-family: var(--theme-font-family);
  font-size: 0.85rem;
  color: var(--color-darker-grey);
  line-height: 1.3;
}

.deal-price-card__tag {
  font-size: 0.7rem;
  font-family: var(--theme-font-family-bold);
  color: #7a8a8c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f1f2f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.deal-price-card__check {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--color-button-primary);
  font-size: 1rem;
  font-weight: 700;
}

.deal-price-grid:has(.deal-price-card--selected) .deal-price-card:not(.deal-price-card--selected) {
  opacity: 0.45;
}

/**
* =====================================
* INPUT
* =====================================
* */
input[type=number],input[type=text], select
{
	box-sizing: content-box;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 10px;
	height: 42px;
	border: 2px solid #160c0c;
	border-radius: 7px;
	padding: 0 10px 0 10px;

	color: var(--color-dark-grey);
	font-size: var(--font-size-16);
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-spacing-20);
	font-style: var(--font-style-normal);
	letter-spacing: var(--character-spacing-0);
}

input[type=number]
{
	width: 50px;
}

input[readonly], input[readonly]:hover, input[readonly]:active, input[readonly]:focus-visible
{
	border: 0px  !important;
	background-color: transparent;

}

a {
		text-decoration: none;
		color: var(--color-button-primary);

}

input[type=checkbox] {
	-moz-appearance:none;
	-webkit-appearance:none;
	-o-appearance:none;
	outline: none;
	content: none;	
}

input[type=checkbox]:before {
	font-family: "FontAwesome";
  content: "\2714";
  font-size: 15px;
  color: transparent !important;
  display: block;  
  margin-right: 7px;
  border: 2px solid var(--color-second);
	border-radius: 3px;
  width: 20px;
  height: 20px;
}


input[type=checkbox]:checked:before 
{
	color: var(--color-second) !important;
	text-align: center;
}



.unchecked-checkbox:before
{
	border: 2px solid red !important;
}
.inputfailed {
    color: var(--color-red) !important;
}
.inputfailed::-webkit-input-placeholder {
    color: var(--color-red) !important;
}



/* Fieldset */
.input-field {
	display: flex;
	flex-direction: column;
	width: 500px;
  }
  .input-field label {
	margin-left: 30px;
	font-size: var(--font-size-14);
	font-family: var(--theme-font-family);
	font-weight: var(--font-weight-normal);
	color: #8d8d8d;
  }
  .input-field label .label-style {
	background: #FFF;
	padding: 0 5px;
	position:relative;
  }
  .input-field input {
	width:57%;
	height: 25px;
	margin-top: -10px;
	padding: 10px 20px;
	border-radius: 10px;
	margin-left:  15px;
	margin-right:  25px;
  }



  
/**
* =====================================
* LOADING VIEW
* =====================================
* */
#loader-view
{
	position: fixed;
	top: 0;
	left:0;
	width: 100vw;
	height: 100vh;
	background-color: #25202059;

}

#loader-view p
{
	color: white;
	margin: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	font-size: 20px;
	transform: translate(-50%, -50%);
    text-align: center;

}

.spin {
	animation: spin 1s linear infinite;
	display: inline-block;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}



/**
* =====================================
* TOAST MESSAGE
* =====================================
* */
#toast-container {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	z-index: 9999;
	pointer-events: none;
  }
  
  .toast {
	background-color: #000;
	color: #fff;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: auto;
  }
  
  .toast.show {
	opacity: 0.9;
  }

/**
* =====================================
* STEPS ACCORDION
* =====================================
* */

.steps-container {
  width: 90%;
  max-width: 700px;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Barre de progression ── */
.steps-bar {
  display: flex;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 4px;
}

.steps-bar__step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.steps-bar__line {
  flex: 1;
  height: 2px;
  background: #dde0e6;
  margin: 0 12px;
  transition: background .3s;
}

.steps-bar__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #dde0e6;
  font-family: var(--theme-font-family-bold);
  font-size: 0.78rem;
  color: #7a8a8c;
  background: #fff;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
}

.steps-bar__label {
  font-family: var(--theme-font-family-bold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7a8a8c;
  transition: color .2s;
}

.steps-bar__step--active .steps-bar__circle {
  border-color: var(--color-button-primary);
  color: var(--color-button-primary);
  background: #fff;
}

.steps-bar__step--active .steps-bar__label {
  color: var(--color-button-primary);
}

.steps-bar__step--done .steps-bar__circle {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.steps-bar__step--done .steps-bar__label {
  color: var(--color-green);
}

.steps-bar:has(.steps-bar__step--done) .steps-bar__line {
  background: var(--color-green);
}

@media (max-width: 600px) {
  .steps-bar__label { display: none; }
}

/* ── 5-step flow: bar tightening ── */
.steps-bar--five {
  flex-wrap: nowrap;
  gap: 4px;
}

.steps-bar--five .steps-bar__line {
  margin: 0 4px;
  min-width: 8px;
}

.steps-bar--five .steps-bar__label {
  font-size: 0.62rem;
  letter-spacing: 0.3px;
}

@media (max-width: 900px) {
  .steps-bar--five .steps-bar__step:not(.steps-bar__step--active) .steps-bar__label {
    display: none;
  }
  .steps-bar--five .steps-bar__step--active .steps-bar__label {
    display: inline !important;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* ── 5-step flow: step items (selection list) ── */
.step-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.step-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 2px solid #dde0e6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.step-card-item:hover {
  border-color: #b5b9c0;
}

.step-card-item--selected {
  border-color: var(--color-button-primary);
  background: color-mix(in srgb, var(--color-button-primary) 8%, white);
}

.step-card-item--ignored {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f8f8;
}

.step-card-item__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #dde0e6;
  background: #fff;
  font-family: var(--theme-font-family-bold);
  font-size: 0.9rem;
  color: #7a8a8c;
  flex-shrink: 0;
}

.step-card-item--selected .step-card-item__circle {
  background: var(--color-button-primary);
  border-color: var(--color-button-primary);
  color: #fff;
}

.step-card-item__body {
  flex: 1;
  min-width: 0;
}

.step-card-item__name {
  font-family: var(--theme-font-family-bold);
  font-size: 0.95rem;
  color: #222;
}

.step-card-item__code {
  font-size: 0.82rem;
  color: #7a8a8c;
  font-family: monospace;
}

.step-card-item__quota {
  font-size: 0.78rem;
  color: var(--color-green);
  margin-top: 2px;
}

.step-card-item__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e9e9e9;
  font-size: 0.72rem;
  color: #555;
  text-transform: uppercase;
}

.step-cards-ignored {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #dde0e6;
}

.step-cards-ignored h4 {
  font-size: 0.82rem;
  color: #7a8a8c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 8px;
}

/* ── 5-step flow: navigation buttons ── */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.step-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--theme-font-family-bold);
  font-size: 0.9rem;
  transition: background .2s, border-color .2s, color .2s;
}

.step-btn--primary {
  background: var(--color-button-primary);
  color: #fff;
}

.step-btn--primary:hover:not(:disabled) {
  background: var(--color-button-hover);
}

.step-btn--primary:disabled {
  background: #d3d3d3;
  color: #fff;
  cursor: not-allowed;
}

.step-btn--secondary {
  background: #fff;
  border-color: #dde0e6;
  color: #555;
}

.step-btn--secondary:hover:not(:disabled) {
  border-color: var(--color-button-primary);
  color: var(--color-button-primary);
}

/* ── 5-step flow: price per card ── */
.price-card-block {
  margin: 12px 0 20px;
  padding: 12px;
  border: 1px solid #dde0e6;
  border-radius: 10px;
  background: #fafbfc;
}

.price-card-block__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9eaee;
}

.price-card-block__name {
  font-family: var(--theme-font-family-bold);
  font-size: 0.95rem;
  color: #222;
}

.price-card-block__code {
  font-family: monospace;
  font-size: 0.8rem;
  color: #7a8a8c;
}

/* ── 5-step flow: confirm step ── */
.confirm-summary {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.confirm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-list__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dde0e6;
  border-radius: 8px;
  background: #fff;
  align-items: center;
}

.confirm-list__name {
  font-family: var(--theme-font-family-bold);
  font-size: 0.9rem;
}

.confirm-list__code {
  font-family: monospace;
  font-size: 0.8rem;
  color: #7a8a8c;
}

.confirm-list__price {
  font-size: 0.82rem;
  color: var(--color-button-primary);
  text-align: right;
}

.validation-progress {
  margin: 12px 0;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
}

.validation-progress__text {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #555;
}

.validation-progress__bar {
  height: 8px;
  background: #dde0e6;
  border-radius: 4px;
  overflow: hidden;
}

.validation-progress__fill {
  height: 100%;
  background: var(--color-button-primary);
  transition: width .2s ease-out;
}

/* ── 5-step flow: recap ── */
.recap-summary {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 0 0 16px;
  font-family: var(--theme-font-family-bold);
}

.recap-summary__success {
  color: var(--color-green);
}

.recap-summary__fail {
  color: var(--color-button-primary);
}

.recap-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recap-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid transparent;
  background: #fff;
  border: 1px solid #dde0e6;
}

.recap-list__item--success {
  border-left-color: var(--color-green);
}

.recap-list__item--fail {
  border-left-color: var(--color-button-primary);
}

.recap-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.recap-list__item--success .recap-list__icon {
  background: var(--color-green);
}

.recap-list__item--fail .recap-list__icon {
  background: var(--color-button-primary);
}

.recap-list__content {
  flex: 1;
  min-width: 0;
}

.recap-list__name {
  font-family: var(--theme-font-family-bold);
  font-size: 0.9rem;
}

.recap-list__code {
  font-family: monospace;
  font-size: 0.78rem;
  color: #7a8a8c;
}

.recap-list__message {
  font-size: 0.85rem;
  color: #555;
  margin-top: 2px;
}

.step-card {
  border: 2px solid #dde0e6;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.step-card--active {
  border-color: var(--color-button-primary);
  box-shadow: 0 2px 12px rgba(167,31,45,.10);
}

.step-card--done {
  border-color: var(--color-green);
}

.step-card--disabled {
  background: #f8f8f8;
  opacity: 0.6;
}

/* Header commun */
.step-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: default;
}

/* Header cliquable (étape done = retour arrière) */
.step-card__header:not([disabled]) {
  cursor: pointer;
}

.step-card__header:not([disabled]):hover .step-card__number {
  background: var(--color-green);
  border-color: var(--color-green);
}

.step-card__header--static {
  cursor: default !important;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #dde0e6;
  font-family: var(--theme-font-family-bold);
  font-size: 0.85rem;
  color: #7a8a8c;
  background: #fff;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}

.step-card--active .step-card__number {
  background: var(--color-button-primary);
  border-color: var(--color-button-primary);
  color: #fff;
}

.step-card--done .step-card__number {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.step-card__title-group {
  flex: 1;
  min-width: 0;
}

.step-card__title {
  display: block;
  font-family: var(--theme-font-family-bold);
  font-size: 0.95rem;
  color: var(--color-darker-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-card--disabled .step-card__title {
  color: #aaa;
}

.step-card__summary {
  display: block;
  font-family: var(--theme-font-family);
  font-size: 0.85rem;
  color: #7a8a8c;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.step-card__edit {
  font-size: 1rem;
  color: #7a8a8c;
  margin-left: auto;
  flex-shrink: 0;
}

/* Body de l'étape */
.step-card__body {
  padding: 0 20px 20px;
  border-top: 1px solid #f0f0f0;
}

@media (max-width: 800px) {
  .steps-container {
    width: 96%;
  }
  .step-card__body {
    padding: 0 12px 16px;
  }
}

/**
* =====================================
* BOUTONS SCANNER
* =====================================
* */

.scanner-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.scanner-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border-radius: 22px;
  border: 2px solid var(--color-button-primary);
  background: #fff;
  color: var(--color-button-primary);
  font-family: var(--theme-font-family-bold);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  margin-bottom: 0;
}

.scanner-toggle-btn:hover {
  background: #fff5f6;
}

.scanner-toggle-btn--active {
  background: var(--color-button-primary);
  color: #fff;
}

.scanner-toggle-btn--active:hover {
  background: var(--color-button-hover);
}

.scanner-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 44px;
  border-radius: 22px;
  border: 2px solid #dde0e6;
  background: #fff;
  color: #7a8a8c;
  font-family: var(--theme-font-family);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
  margin-bottom: 0;
}

.scanner-switch-btn:hover {
  border-color: var(--color-button-primary);
  color: var(--color-button-primary);
}

.camera-label {
  margin: 4px 0 0;
  font-family: var(--theme-font-family);
  font-size: 0.72rem;
  color: #7a8a8c;
  letter-spacing: 0.3px;
}

.camera-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fdf0f1;
  border-left: 4px solid var(--color-button-primary);
  border-radius: 6px;
  font-family: var(--theme-font-family);
  font-size: 0.9rem;
  color: var(--color-button-primary);
  margin: 8px 0;
}

.camera-error .bi {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.camera-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff8e5;
  border-left: 4px solid #e6a700;
  border-radius: 6px;
  font-family: var(--theme-font-family);
  font-size: 0.88rem;
  color: #7a5b00;
  margin: 8px 0;
}

.camera-hint .bi {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.deal-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin: 16px auto;
  max-width: 640px;
  background: #fff8e5;
  border-left: 4px solid #e6a700;
  border-radius: 8px;
  font-family: var(--theme-font-family);
  color: #5a4400;
}

.deal-status-banner .bi {
  font-size: 1.6rem;
  flex-shrink: 0;
  color: #e6a700;
}

.deal-status-banner__title {
  font-family: var(--theme-font-family-bold);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.deal-status-banner__dates {
  font-size: 0.9rem;
  opacity: 0.85;
}



.tokenScanner {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

.tokenScanner__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tokenScanner__header {
  width: 100%;
  max-width: 560px;
  margin-bottom: 12px;
  text-align: center;
}

.tokenScanner__title {
  margin: 0;
}

.tokenScanner__subtitle {
  margin: 6px 0 0;
  opacity: 0.8;
}

.tokenScanner__camera {
  --scanner-frame-size: min(220px, 62vw);
  --scanner-frame-half: calc(var(--scanner-frame-size) * 0.5);
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.tokenScanner__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

/* When hint is visible, push the frame overlay down to keep scan zone unobstructed */
.tokenScanner__camera .camera-hint--overlay ~ .tokenScanner__overlay,
#modalcapture_body .camera-hint--overlay ~ .tokenScanner__overlay {
  top: 72px;
}

/* Keep camera feed aligned with frame when hint is visible */
.tokenScanner__camera .camera-hint--overlay ~ #camera,
#modalcapture_body .camera-hint--overlay ~ #camera {
  object-position: center calc(50% + 72px);
  transition: object-position 0.2s ease;
}

/* Hide frame overlay when camera access fails and error message is shown */
.tokenScanner__camera .camera-error ~ .tokenScanner__overlay,
#modalcapture_body .camera-error ~ .tokenScanner__overlay {
  display: none;
}

.tokenScanner__frame {
  width: var(--scanner-frame-size);
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
}

#modalcapture_body {
  --scanner-frame-size: min(220px, 62vw);
  --scanner-frame-half: calc(var(--scanner-frame-size) * 0.5);
}

.tokenScanner__status {
  width: 100%;
  max-width: 560px;
  min-height: 48px;
  margin-top: 12px;
  text-align: center;
}

.tokenScanner__message {
  margin: 0;
  line-height: 1.45;
}

.tokenScanner__message--processing {
  font-weight: 600;
}

.tokenScanner__message--hint {
  opacity: 0.78;
}

.tokenScanner__message--error {
  color: crimson;
  font-weight: 600;
}

.tokenScanner__message--meta {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 0.95rem;
}

.coupon-input-wrapper {
	position: relative;
	display: inline-flex;
	width: 100%;
	align-items: center;
}

.coupon-input-wrapper input {
	width: 100%;
	padding-right: 2.25rem;
}

.coupon-input-clear {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	color: #666;
	padding: 0.25rem 0.5rem;
}

.coupon-input-clear:hover {
	color: #000;
}


.coupon-input-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.coupon-input-row .coupon-input-wrapper {
	flex: 1;
}

.coupon-input-row .scanner-toggle-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

#modalcapture_body {
	position: relative;
}

.step-empty-message {
	text-align: center;
	padding: 24px 12px;
	color: #666;
	font-style: italic;
}

.step-btn--confirm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.step-btn--confirm i {
	font-size: 1.15rem;
}

.step-btn--confirm:hover:not(:disabled) {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
}
