@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
	font-family: "Poppins", sans-serif;
}

body {
	background: #3498db;
}

#PINform input:focus,
#PINform select:focus,
#PINform textarea:focus,
#PINform button:focus {
	outline: none;
}
#PINform {
	background: #ededed;
	position: absolute;
	width: 300px;
	height: 450px;
	left: 50%;
	margin-left: -180px;
	top: 50%;
	margin-top: -215px;
	padding: 30px;
	-webkit-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
	-moz-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
	box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
}
#PINbox, select {
	background: #ededed;
	margin: 3.5%;
	width: 92%;
	font-size: 4em;
	text-align: center;
	border: 1px solid #d5d5d5;
}
select {
	width: calc(92% + 6px);
	padding: 1px 2px;
	font-size: 1.4em;
	text-align: left;
}
.PINbutton {
	background: #ededed;
	color: #7e7e7e;
	border: none;
	/*background: linear-gradient(to bottom, #fafafa, #eaeaea);
      -webkit-box-shadow: 0px 2px 2px -0px rgba(0,0,0,0.3);
         -moz-box-shadow: 0px 2px 2px -0px rgba(0,0,0,0.3);
              box-shadow: 0px 2px 2px -0px rgba(0,0,0,0.3);*/
              border-radius: 50%;
              font-size: 1.5em;
              text-align: center;
              width: 55px;
              height: 55px;
              margin: 7px 20px;
              padding: 0;
           }
           .clear, .enter {
           	font-size: 1em;
           }
           .PINbutton:hover {
           	box-shadow: #506CE8 0 0 1px 1px;
           }
           .PINbutton:active {
           	background: #506CE8;
           	color: #fff;
           }
           .clear:hover {
           	box-shadow: #ff3c41 0 0 1px 1px;
           }
           .clear:active {
           	background: #ff3c41;
           	color: #fff;
           }
           .enter:hover {
           	box-shadow: #47cf73 0 0 1px 1px;
           }
           .enter:active {
           	background: #47cf73;
           	color: #fff;
           }
           .shadow{
           	-webkit-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
           	-moz-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
           	box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
           }

           .PINbutton i {
           	font-size: 24px;
           }

/* Header général */
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background-color: #f0f0f0;
	border-bottom: 2px solid #ccc;
	border-radius: 15px;
}

/* Partie gauche : entrée + nom */
header .left {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

header .left div:first-child {
	font-weight: bold;
	font-size: 1.2em;
}

header .left div:last-child {
	font-size: 1em;
	color: #333;
}

/* Partie droite : compteur */
header .right {
	font-size: 1.75em;
	font-weight: bold;
	color: #3498db;
}

#lecteur_qrcode, #numeros_urgence {
	padding: 15px 20px;
	background-color: #f0f0f0;
	border-bottom: 2px solid #ccc;
	border-radius: 15px;
	margin: 8px 0;
	position: relative;
}

#buttons {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	flex-wrap: wrap;
}

#buttons a {
	display: flex;
	gap: 4px;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	background-color: #f0f0f0;
	border-bottom: 2px solid #ccc;
	border-radius: 15px;
	width: calc(50% - 24px);
	text-decoration: none;
	color: black;
}

#buttons a i {
	font-size: 26px;
}

#buttons a label {
	font-weight: 500;
	text-overflow: ellipsis;
	text-wrap-mode: nowrap;
	overflow: hidden;
	width: 100%;
	text-align: center;
}

footer {
	display: block;
	margin-top: 8px;
	width: 100%;
	box-sizing: border-box;
	padding: 15px 20px;
	background-color: #f0f0f0;
	border-bottom: 2px solid #ccc;
	border-radius: 15px;
	text-align: center;
}
#veille_overlay {
	position: fixed;
	inset: 0;
	background: black;
	color: #ccc;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 1.2rem;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

#numeros_urgence a {
	display: block;
	text-decoration: none;
	color: black;
	background: rgb(211 211 211 / 50%);
	border-radius: 15px;
	padding: 16px 16px;
	margin-top: 12px;
}

#numeros_urgence a label {
	display: block;
	font-weight: 600;
}

#numeros_urgence a b {
	font-weight: 600;
	text-overflow: ellipsis;
	overflow: hidden;
	text-wrap-mode: nowrap;
	display: block;
	width: 100%;
}

#numeros_urgence a p {
	margin: 0;
	font-size: 14px;
	color: grey;
}

.bxs-keyboard {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translate(-50%, 0px);
	background: #3498db;
	border-radius: 50px;
	padding: 8px 22px;
	font-size: 24px;
	color: white;
}