
@import url("theme.css"); /* Using a url */

body
{
	background-color: --color-second-light;
	margin: auto;
	font-family: var(--font-family-roboto);
	font-weight: var(--font-weight-normal);
}

#header-logo
{

  margin: 0;
  background-repeat: no-repeat;
  /*background: transparent url('images/geneva_logo.png') 0% 0% no-repeat padding-box;*/
  background-size: contain;
  background-position: center 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(--font-family-roboto-light);
	font-weight: var(--font-weight-light);
	line-height: var(--line-spacing-55);
	font-style: var(--font-style-normal);
	font-variant: normal;

}

.lang-card 
{
	display: flex;
	flex-direction: row;
}

.lang-card-element
{
	width: 50%;
	min-width: 350px;
}

#card-and-discount
{	
	display: var(--card-image-title-header);
	background-repeat: no-repeat;
  height: 130px;
	background-size:  contain;
}


.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(--font-family-roboto-medium);
	font-weight: var(--font-weight-medium);
	position: relative;
  display: inline-block;
  float: right;

}

.menu-lang-button:hover .menu-lang-content {
  display: block;
  /*background-color:  #F6F6F6;*/
}


.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(--font-family-roboto-medium);
	font-weight: var(--font-weight-medium);
	text-decoration: none;
  display: block;
  color: var(--color-dark-grey);
  padding: 12px 16px;
  border-bottom: 1px solid #DDDDDD;
}


.menu-lang-content a:last-child {
	
    border-bottom: 0px;
}

.menu-lang-content a:hover
{
	background-color: #f1f1f1;
	font-family: var(--font-family-roboto-medium);
	font-weight: var(--font-weight-medium);
}

#back-button
{
		display: var(--back-button-header);
}

#back-button a
{
	padding-left: 4vw;
	color: var(--color-button-primary);
	font-family: var(--font-family-roboto);
	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, #scan-qr-code-button: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:  30px;
	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
{
	text-align: center;
	margin-top: 0;
}


.single-icon
{
	color: var(--color-dark-grey);
	font-size: 23px;
}

.single-icon:hover
{
		color: var(--color-icon-hover);
}


#coupon-view
{
	display: none;
}

/**
* =====================================
* History
* =====================================
* */
#history-block
{
	display: var(--history-page);
	width: 500px;
	min-width: 150px;
	margin:  auto;
	margin-bottom:50px;
}

#history-lines > p
{
	border: 1px solid var(--color-main);
	border-radius: 20px;
	background-color: white;
	display: flex;
	padding: 10px;
}


#success-history-line, #fail-history-line
{
	display: none;
}

#history-header
{
	display:flex;
	justify-content: space-between;

	
}
#clear-history {
	font-size: 15px;
	color: #ffffff;
	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;
}

#scan-qr-code-button, #switch-camera
{
	width: 80%;
	min-width: 150px;
	margin-bottom: 10px;
}



#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
* =====================================
* */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes de taille égale */
    gap: 20px; 
    max-width: 1200px;
    width: 100%;
}

.card-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
}

.card-item.scanned {
    background-color: #e0e0e0; 
    border-color: #c0c0c0;
    cursor: unset;
}

.card-item.selected {
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.card-name {
    font-weight: bold;
    color: #666;
    font-size: 0.95em; 
}

.card-status-bar {
    width: 10px; 
    background-color: #cccccc;
    flex-shrink: 0;
}

.card-item.selected .card-status-bar.selected {
    background-color: #007bff;
}

.card-item.scanned .card-status-bar.scanned-status {
    background-color: #28a745;
}

.form-check, #validate-selected-button-bottom {
	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;
}

/* 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(--font-family-roboto);
	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 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(--font-family-roboto-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(--font-family-roboto-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(--font-family-roboto-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(--font-family-roboto-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(--font-family-roboto-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(--font-family-roboto-medium);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-spacing-28);
	font-style: var(--font-style-normal);
	margin-bottom:  0px;
}

h3
{
	color:  var(--color-main);
	font-size: var(--font-size-20);
	font-family: var(--font-family-roboto);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-spacing-24);
	font-style: var(--font-style-normal);
	margin-top: 0px;
}

/**
* =====================================
* 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(--font-family-roboto);
	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(--font-family-roboto);
	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;
  }
  