@font-face {
    font-family: 'Gill';
    src: url('font/gillsans.woff') format('woff');
}

@font-face {
    font-family: 'Nyala';
    src: url('font/nyala.woff') format('woff');
}

*{
	font-weight: normal;
	margin: 0px;
	padding: 0px;
}

body{
	font-family: Gill;
	margin-top: 0px;
}

#header{
	font-family: Nyala !important;
	color: white;
	background: linear-gradient(to right,#89162e, #613d89);
	padding: 0px;
	height: 100px;
	margin-bottom: 25px;
}

#header > div{
	margin-right: 10px;
	margin-left: 10px;
	display: inline-block;
}

#header div{
	height: 100%;
}
#header h2{
	height: 100%;
}

#header a{
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

#header a:hover{
	background-color: #9c27b02e;
}

.connexion{
	float: right;
}

.logo{
	height: 100%;
	float: right;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.logo > img{
	height: 70%;
}

.logoConnexion{
	float: none;
	width: 100%;
	text-align: center;
}

#content{
	margin-right: 1%;
  	margin-left: 1%;
}

#places{
	width: 100%;
}

h1{
	text-align: center;
}

.menuDeroulant > div{
	position: relative;
	float: left;
    z-index: 5;
    display: none;
    background-color: #722c61;
    height: auto !important;
    width: 100%;
    box-shadow: 6px 6px 20px 0px rgb(0 0 0 / 15%);
    padding: 10px;
}

.menuDeroulant:hover > div{
	display: block;
}

.inputFile {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.inputFile + label {
	color: white;
    background-color: #1c86cb;
    display: inline-block;
    padding: 10px;
}

.menuDeroulant > div > button {
	color: white;
    background-color: #1c72cb;
    display: inline-block;
    padding: 10px;
    border: none;
}

.inputFile:focus + label,
.inputFile + label:hover {
    background-color: red;
}

/*---------------------------------------------------*/
/*--------------------Connexion--------------------*/
/*---------------------------------------------------*/

form{
	text-align: center;
    margin-top: 50px;
}

form > div:not(.bouton){
	display: inline-block;
}

input{
	padding: 5px;
    width: 400px;
    border: solid 2px;
    border-color: rgb(90,61,141);
    border-radius: 10px;
}

form div{
	margin-top: 15px;
	margin-bottom: 15px;
}

form label{
	float: left;
	font-size: 20px;
	margin-bottom: 5px;
}

.bouton > input, .bouton > button, .ui-dialog-buttonset > button:first-child{
	width: auto;
	margin: 0 10px;
    margin-bottom: 15px;
    padding: 16px 20px;
    border: none;
    border-radius: 4px;
    background-color: #7963a1;
    color: white;
    cursor: pointer;
    font-size: 15px;
}

.bouton > input:hover, .bouton > button:hover, .ui-dialog-buttonset > button:first-child:hover{
	background-color: #7963a1cc;
}

.ui-dialog-buttonset > button:first-child{
	padding: 8px 20px;
}

.obligatoire{
	font-size: 17px;
	color: red;
}

.obligatoireChoix{
	font-size: 17px;
	color: green;
}

/*---------------------------------------------------*/
/*--------------------Index--------------------*/
/*---------------------------------------------------*/

#cards{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.cardSpectacle{
	text-align: center;
	float: left;
	margin: 30px;
  	box-shadow: 6px 6px 20px 0px rgb(0 0 0 / 15%);
  	width: fit-content;
	padding: 20px;
	border-radius: 5px;
}

.cardSpectacle h2, .cardSpectacle span{
	margin: 10px 0px;
}

.cardSpectacle > a{
	text-decoration: none;
	color: inherit;
}

.cardSpectacle .clique{
    margin: 10px;
    padding: 10px;
    color: white;
    background-color: #1c86cb;
    border-radius: 5px;
}

.cardSpectacle:hover{
  	box-shadow: 7px 7px 20px 0px rgb(0 0 0 / 25%);
}

hr{
    margin-top: 25px;
    margin-bottom: 30px;
}


/*---------------------------------------------------*/
/*--------------------Gestion--------------------*/
/*---------------------------------------------------*/

.modifier, .supprimer{
	width: auto;
	margin: 10px 0px;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    background-color: #7963a1;
    color: white;
    cursor: pointer;
    font-size: 15px;
}

.modifier{
	background-color: #1c86cb;
}

.supprimer{
	background-color: red;
}

/*---------------------------------------------------*/
/*--------------------Reservation--------------------*/
/*---------------------------------------------------*/
.titreReservation{
	text-align: center;
	margin-bottom: 15px;
}

.titreReservation > h1{
	font-size: 50px;
	margin-bottom: 10px;
}

#nbPlace{
	float: left;
	margin-bottom: 10px;
}

table, th, td{
	border: solid 0.1px;
	border-collapse: collapse;
    height: 40px;
    width: 30px;
}

td:not(.pasPlace){
	color: white;
	border-color: black;
	cursor: pointer;
}

td:hover:not(.pasPlace){
	background-color: yellowgreen;
}

#places{
	text-align: center;
}

.pasPlace{
	font-size: 20px;
}

/*--------------------Popup--------------------*/
.cercle {
  	height: 25px;
  	width: 25px;
  	background-color: #bbb;
  	border-radius: 50%;
  	display: inline-block;
}

#txtEtatPaye{
	vertical-align: super;
}

#prixPlaceReservation{
	text-align: center;
	margin: 10px 0px;
}

.vert{
	background-color: green;
}

.orange{
	background-color: orange;
}

.rouge{
	background-color: red;
}

.info{
	background-color: cornflowerblue;
}

.selectionne{
	background-color: darkseagreen;
}

#datePopup{
	float: right;
}

.inputReservation{
	margin-top: 15px;
	margin-bottom: 15px;
}

.inputReservation, .inputReservation input{
	width: 100%;
}

.inputReservation input[type="checkbox"]{
	width: auto;
	transform: scale(1.5);
    margin-left: 12px;
}

.scene{
	text-align: center;
	margin: 15px 0px;
}

.scene > span{
	font-size: 20px;
}

/*--------------------Légende--------------------*/

.bouton > button{
	padding: 5px 10px;
}

.cercleLegende{
	height: 12px;
  	width: 12px;
  	border-radius: 2px;
  	display: inline-block;
}

/*--------------------Alert--------------------*/

.boiteAlerts{
	background-color: #d3d3d375;
	width: fit-content;
	text-align: -webkit-right;
    position: fixed;
    top: 10px;
    right: 10px;
}

.alert{
	width: fit-content;
    padding: 5px 15px;
    margin: 10px;
    border-radius: 5px;
}

.alert > span{
	color: white;
}

/*--------------------Tooltips--------------------*/

td{
	position: relative;
}

/*td:hover::after {
  background: skyblue;
  color: black;
  border-radius: 4px;
  bottom: 100%;
  content: attr(rangee) '' attr(place) '\A' attr(nom) '\A' attr(tel);
  white-space: pre;
  display: block;
  left: -120%;
  padding: 1em;
  position: absolute;    
  width: 100px;
  z-index: 1;
  transition: background 350ms ease-in-out, 
              transform 150ms ease;
    font-size: 14px;
  transition-property: font-size;
  transition-duration: 4s;
  transition-delay: 2s;
}*/

/* Positioning and visibility settings of the tooltip */
td:not(.pasPlace):before,
td:not(.pasPlace):after {
  	position: absolute;
  	visibility: hidden;
  	opacity: 0;
  	left: 50%;
  	bottom: calc(100% + 5px); /* 5px is the size of the arrow */
  	pointer-events: none;
  	transition: 0.2s;
  	will-change: transform;
}

/* The actual tooltip with a dynamic width */
td:not(.pasPlace):before {
  	content: attr(rangee) ' - ' attr(place) '\A' attr(nom) '\A' attr(tel);
  	padding: 10px 18px;
  	min-width: 50px;
  	max-width: 300px;
  	width: max-content;
  	border-radius: 6px;
  	font-size: 14px;
  	background-color: rgba(59, 72, 80, 0.9);
  	box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
  	color: #fff;
  	text-align: center;
  	white-space: pre-wrap;
  	transform: translate(-50%, -5px) scale(0.5);
}

/* Tooltip arrow */
td:not(.pasPlace):after {
  	content: '';
  	border-style: solid;
  	border-width: 5px 5px 0px 5px; /* CSS triangle */
  	border-color: rgba(55, 64, 70, 0.9) transparent transparent transparent;
  	transition-duration: 0s; /* If the mouse leaves the element, 
  	                            the transition effects for the 
  	                            tooltip arrow are "turned off" */
  	transform-origin: top;   /* Orientation setting for the
  	                            slide-down effect */
  	transform: translateX(-50%) scaleY(0);
}

/* Tooltip becomes visible at hover */
td:not(.pasPlace):hover:before,
td:not(.pasPlace):hover:after {
  	visibility: visible;
  	opacity: 1;
}
/* Scales from 0.5 to 1 -> grow effect */
td:not(.pasPlace):hover:before {
  	transition-delay: 0.6s;
  	transform: translate(-50%, -5px) scale(1);
}
/* 
  Arrow slide down effect only on mouseenter (NOT on mouseleave)
*/
td:not(.pasPlace):hover:after {
  	transition-delay: 0.6s; /* Starting after the grow effect */
  	transition-duration: 0.2s;
  	transform: translateX(-50%) scaleY(1);
}