/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  height: 100vh;
  overflow: hidden;
  width: 100vw;
  background: #fafafa;
  font-family: 'Raleway', sans-serif;
}

header {
  background: #292929;
  color: #fff;
  height: 238px;
}

header #choix_date_seance {
  width: 60%;
  margin: 0 auto;
}

header #choix_date_seance select, header select#journal_caisse {
    text-align: center;
    text-align-last:center; 
    background: none;
    border: none;
    color: #fff;
    -webkit-appearance:none;
    margin: 0 auto;
    width: 310px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 68px 0px 20px 0px;
    display: block;
    font-size: 19px;
}

header select#journal_caisse {
  width: 200px;
  text-align: left;
  text-align-last:left; 
  padding: 20px 0px;
  box-sizing: content-box; 
  margin: 0;
  font-size: 17px;
}


header #choix_date_seance select:focus, header select#journal_caisse:focus {
 outline: 0;
}

header #choix_seance_heure {
  display: flex;
  justify-content: center;
  width: 350px; 
  margin: 0 auto;
  border-top: 2px solid #434343;
}

header #choix_seance_heure input {
  display:none;
}
header #choix_seance_heure label {
  text-align: center;
  padding: 10px 36px;
  margin: 14px 14px;
  font-size: 19px;
  font-weight: 600;

}

header #choix_seance_heure label:not(.active):hover  {
    border-radius: 60px;
    background: #1A1515;
    cursor: pointer;
}

header #choix_seance_heure label.active {
  background: #f54f4f;
  border-radius: 60px;
}

.dispo {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-left: 0;
  margin-bottom: 22px;
  margin-right: 0;
  color: #f54f4f;
}

main h1 {
  font-size: 46px;
  line-height: 48px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.024em;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 8px;
}

main .plan_salle {
  margin-top: 52px;
  width: 796px;
  position: relative;
  left: 110px;
}

main .plan_salle .age , main .plan_salle .duree {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin: 0 auto;
  margin-top: 20px;
}

main .plan_salle .duree {
  margin-top:4px;
}


main .plan_salle .age span, main .plan_salle .duree span {
  color: #666;
}

#exit {
  display: block;
  width: 54px;
  height: 54px;
  background: url('../img/close.png');
  outline: none;
  border: none;
  font-size: 1px;
  text-indent: 1000px;
  overflow: hidden;
  cursor: pointer;
  position: absolute;
  top: 134px;
  right: 14px;
  background-size: cover;
}



#add_reserve {
  color: #FF9D00;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.version {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  margin-left: 0;
  margin-bottom: 8px;
  margin-right: 0;
  color: #f54f4f;
  margin-top: 10px;
}

.reserve {
  width: 310px;
  position: absolute;
  top: 340px;
  right: 624px;
}

.reserve h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.caisse {
  -webkit-box-shadow: 1px 3px 20px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 1px 3px 20px 0px rgba(0,0,0,0.2);
  box-shadow: 1px 3px 20px 0px rgba(0,0,0,0.2);
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  width: 520px;
  height: calc(100vh - 118px);
  background: #fff;
  position: absolute;
  top: 118px;
  right: 82px;
  display: block;
}


.reserve ul {
  list-style: none;
  position: relative;
  padding-left: 0;
  z-index: 10000;
  display: block;
  height: calc(100vh - 462px);
  overflow: scroll;
}

.reserve li {
  
  display: block;
  border-top: 1px solid #efefef;
  padding-top: 14px;
  padding-bottom: 12px;
  font-weight: 600;
  color: #3e3d3d;
  letter-spacing: 0.012em;
  cursor: pointer;
  padding-left: 10px;
}

.reserve li:hover {
  background: rgba(255,191,58,0.14);
}

.reserve li.active {
  background: rgba(255,191,58,0.14);
}


.reserve li .places {
  background: #ffbf3a;
  color: #fff;
  border-radius: 20px;
  margin-right: 6px;
  width: 32px;
  padding-top: 3px;
  padding-bottom: 4px;
  top: -1px;
  position: relative;
  display: inline-block;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.reserve li .places.vides {
   background: #d1d1d1;
}



.caisse .somme {
  min-height: 160px;
  background-color: #f54f4f;
  color: #fff;
  border-radius: 32px 32px 0 0;
  width: 100%;
}

.caisse.reservation .somme {
  background-color: #ffbf3a;
}


#data {
  position: absolute;
  left: 20px;
  top: 5px;
  width: 550px;
}

#data .valeur {
  font-weight: 800;
}

#data .rembourser {
  display: block;
  margin-top: 7px;
  color: #D8D8D8;
  font-size: 14px;
  opacity: 0.7;
  font-weight: 400;
}


#data p {
  opacity: 0.56;
	display: inline-block;
	width: 230px;
	margin-top: 4px;
	margin-bottom: 6px;
}

#data p.total {
  margin-bottom: 8px;
}

#data a {
	color: #f54f4f;
	font-weight: 600;
	letter-spacing: 0.015em;
	font-size: 15px;
}

#annule_btn {
	color: #fff!important;
	opacity: 0.5;
	display: block;
	margin-top: 2px;
	font-size: 14px!important;
}

#annule_btn:hover {
	opacity: 0.9;
}

.illu_plan_salle{
    list-style: none;
    margin:0 auto;
    margin-top: 40px;
    padding: 0; 
    width: 608px;
    height: 474px;
    position: relative;
}

.illu_plan_salle li {
  width: 29px;
  height: 29px;
  margin: 6px 2px;
  display: inline-block;
  background: #fff;
  border: 2px solid #dfdfdf;
  border-radius: 4px;
}

.illu_plan_salle li.vendue {
  background: #ffc1c1;
  border-color: #f54f4f;
}

.illu_plan_salle li.out {
  background: #a0a0a0bf;
  border-color: #828282;
}

.illu_plan_salle li.reserve {
  background: #ffc646bf;
  border-color:#ffa500;
}

.illu_plan_salle li.reserve_active {
  background: #ffa500;
  border-color:#ffa500;
}

.illu_plan_salle li.reserve_to_annule {
  background: #fff;
  border-color:#ffa500;
  border-style: dashed;
}

.illu_plan_salle li.en_caisse {
  background: #f54f4f;
  border-color: #f54f4f;
}

.illu_plan_salle li.small{
  width: 18px;
  height: 18px;
}

.illu_plan_salle li.handicape {
  border-style: dashed;
}

#produits {
  margin: 30px 50px 15px 50px;
  padding: 0;
  list-style:none;
  position: relative;
  overflow: scroll;
  height: calc(100vh - 427px);
}

#produits li {
  padding: 9px 10px;
  display: flex;
  font-weight: 600;
  color: #404040;
  justify-content: space-between; 
  border-bottom: 1px solid #70707014;
  position: relative;
}

#produits li.abo input {
  background: #00bcd4;
  color: #fff;
}

#produits li:last-of-type {
  border: none;
}

#produits li .prix {
  font-weight: 700;
  font-size: 14px;
}

#produits li .tarif {
  padding-left: 45px;
  font-size: 14px;
  position: relative;
}

#produits li input {
  opacity: 0.12;
  background: #f54f4f;
  border-radius: 20px;
  width: 30px;
  text-align: center;
  border: none;
  position: absolute;
  color: #fff;
  font-size: 14px;
  padding: 3px 0;
  padding-bottom: 4px;
  margin-top: -1px;
  font-weight: 800;
  text-align-last:center;
  -webkit-appearance:none;
}

.reservation #produits li input {
  background: #ffbf3a;
  color: #fff;
}

#produits li:focus input, #produits li.active input {
 opacity: 1;
}

#produits li input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}



#produits li:focus {
  outline: 0;
  border: none;
  background: rgba(239,103,103,0.14);
  border-bottom: 1px solid #70707014;
}

#produits li.abo:focus {
  outline: 0;
  border: none;
  background: rgba(0,188,212,0.14);
  border-bottom: 1px solid #70707014;
}

.reservation #produits li:focus {
  background: rgba(255,191,58,0.14);
}

.reservation #produits li.vente {
  display: none;
}

.infos_clients {
  width: 100%;
  background: #fafafa;
  box-sizing: border-box;
  border-radius: 8px;
  margin: 40px auto;
  padding: 20px 52px;
}

.infos_clients h2 {
  color: #404040;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}

.infos_clients .places_rest {
  text-align: center;
}

.infos_clients .places_rest span {
  font-weight: 600;
}


.montant_client {
  font-size: 62px;
  text-align: center;
  display: block;
  width: 80%;
  margin: 0 auto;
  padding-top: 20px;
  font-weight: 700;
}

.montant_client span:first-child {
  font-size: 50px;
  font-weight: 800;

}


.nbr_place {
  display: block;
  text-align: center;
  margin: 0 auto;
  font-size: 19px;
}

#submit {
  position: absolute;
  bottom: 30px;
  width: 372px;
  text-align: center;
  margin: 0 auto;
  border-radius: 8px;
  border: none;
  display: block;
  margin-left: 74px;
  padding: 20px 0;
  background-color: #f54f4f;
  font-weight: 600;
  letter-spacing: 0.030em;
  color: #fff;
  cursor: pointer;
}

#save_reserve {
  position: absolute;
  bottom: 105px;
  width: 372px;
  text-align: center;
  margin: 0 auto;
  border-radius: 8px;
  border: none;
  display: block;
  text-shadow: 0 2px 10px #00000020;
  font-weight: 600;
  letter-spacing: 0.030em;
  margin-left: 74px;
  padding: 20px 0;
  background-color: #ffbf3a;
  color: #fff;
  cursor: pointer;
}

#submit:focus {
  outline: 0;
  border: none;
}

#submit:active {
  background-color: #c43838;
}

#submit:hover {
  background-color: #ff3333;
}

#save_reserve:hover {
  background-color: #ffb925;
}


#scrolllock, #scrolllock_bar, #scrolllock_annule{
	display: none;
}

#scrolllock_siriuscard .container {
  min-height: auto;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
} 

#scrolllock_siriuscard .form_use_siriuscard {
  margin-bottom: 0;
  min-height: auto;
  height: auto;
}

.container {
  border-radius: 20px;
  box-sizing: border-box;
  background: #fff;
  width: 768px;
  margin-top: 50px;
  margin-left:auto;
  padding-bottom: 40px;
  margin-right: auto;
  min-height: 500px;
}

#scrolllock .header, #scrolllock_bar .header {
  background: #ededed;
  min-height: 100px;
  text-align: center;
  padding-top: 20px;
  border-radius: 20px 20px 0 0 ;
}

#scrolllock_wrapper {
	height: 100vh!important;
}


#scrolllock section, #scrolllock_bar section {
  border: 2px solid #ededed;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 50px;
  margin-right: 50px;
  padding: 0px
  box-sizing: border-box;
}

#scrolllock h3, #scrolllock_bar h3 {
  margin: 0;
  font-size: 20px;
  padding: 26px 32px;
  position: relative;
  background: #F9F9F9;
  border-bottom: 1px solid #ededed;
}

#scrolllock .journal, #scrolllock_bar .journal {
    font-size: 17px;
    font-style: italic;
    font-weight: 700;     
    color: #717171;
    letter-spacing: 0.025em;  
    margin-bottom: 0;
}

#scrolllock h3 span:first-of-type , #scrolllock_bar h3 span:first-of-type {
  display:inline-block;
  margin-right: 10px;
  font-size: 23px;
}

#scrolllock h3 span:last-of-type, #scrolllock_bar h3 span:last-of-type {
  position: absolute;
  right: 26px;
}

#scrolllock h4, #scrolllock_bar h4 {
  margin-left: 32px;
  position: relative;
  margin-top: 26px;
  margin-bottom: 40px;
}

#scrolllock h4 .date, #scrolllock_bar h4 .date {
  position: absolute;
  bottom: -19px;
  font-weight: 600;
  left: 0;
  color: #757575;
  font-size: 15px;
}

#scrolllock h4 .amount, #scrolllock_bar h4 .amount {
  position: absolute;
  right: 26px;
}

#scrolllock h4 .nbr{
  position: absolute;
  right: 26px;
  bottom: -19px;
  font-weight: 600;
  color: #757575;
  font-size: 15px;
}

#scrolllock h4 .nbr span {
  font-size: 13px;
  display: inline-block;
  margin-top: 7px;
  margin-left: 2px;
}

#scrolllock select, #scrolllock_bar .form_journal_caisse_data select {
  border: 2px solid #f54f4f;
  border-radius: 20px;
  outline: none;
  display: inline-block;
  appearance: none;
  background: #fff;
  width: 226px;
  height: 53px;
  font-size: 16px;
  font-weight: 600;
}

#scrolllock .header .date , #scrolllock_bar .header .date {
  font-size: 20px;
  font-weight: 700;
  color: #f54f4f;
  margin: 0 auto;
  display: inline-block;
  margin-top: 7px;
  margin-bottom: 10px;
  margin-left: 2px;
}

#scrolllock .header h2, #scrolllock_bar .header h2 {
  font-size: 38px;
  line-height: 43px;
  font-weight: 900;
  margin-top: 0;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  text-transform: uppercase;
  width: 80%;
  margin-left: auto;
  margin-right: auto;

}

#scrolllock .zone_select , 
#scrolllock_bar .zone_select {
  display: flex;
  justify-content: space-around;
}

#scrolllock_bar .zone_select {
  border: 2px solid #ededed;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 50px;
  margin-right: 50px;
  background: #F9F9F9;
  border-bottom: 3px solid #ededed;
}

#scrolllock_bar .zone_select label {
  font-size: 20px;
  padding: 26px 32px;
  color: #222;  
  font-weight: bold;
}

#scrolllock_bar .zone_select h4 {
  max-width: 300px;
  padding: 26px 32px;
  margin: 0;
} 

#scrolllock_bar .zone_select select {
  margin-right: 32px;
  padding: 0 20px;
  border-radius: 14px;
}

#scrolllock_bar .zone_select input {
  margin-right: 32px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 17px;
  border-radius: 14px;
  border: 2px solid #cdcdcd;
}


#valider {
  margin-left: 30%;
  margin-top: 20px;
  outline: none;
  text-align: center !important;
  width: 40%;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.02em;
  line-height: 19px;
  box-sizing: border-box;
  padding: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border-radius: 12px;
  justify-content: center;
  border: none;
  background-color: #f54f4f;
}

.switch-field {
  display: flex;
  margin-bottom: 0;
  margin-right: 32px;
  padding-right: 2px;
  overflow: hidden;
}

.switch-field input {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}

#scrolllock_bar .zone_select .switch-field label {
  background-color: #e4e4e4;
  color: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  padding: 16px 20px;
  margin-right: -1px;
  letter-spacing: 0.03em;
  //border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.1s ease-in-out;
}

#scrolllock_bar .zone_select .switch-field label:hover {
  cursor: pointer;
}

#scrolllock_bar .zone_select .switch-field input:checked + label {
  background-color: #f54f4f;
  color: #ffffff;
  //border: 2px solid #f54f4f;
  box-shadow: none;

}

#scrolllock_bar .zone_select .switch-field label:first-of-type {
  border-radius: 16px 0 0 16px;
}

#scrolllock_bar .zone_select .switch-field label:last-of-type {
  border-radius: 0 16px 16px 0;
}

    


#scrolllock .header .version , #scrolllock_bar .header .version {
  font-size: 17px;
  font-weight: 800;
  color: #f54f4f;
  margin: 0 auto;
  margin-bottom: 32px;
  display: inline-block;
  margin-top: 0;
  margin-left: 0;
}

#scrolllock footer button, #scrolllock footer input, #scrolllock_annule footer input{
  outline: none;
  text-align: center!important;
  width: 48%;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.02em;
  line-height: 19px;
  box-sizing: border-box;
  padding: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border-radius: 12px;
  justify-content: center;
  border: none;
  background-color: #f54f4f;
}

#scrolllock_annule footer input {
  width: 60%;
}

#scrolllock footer, #scrolllock_annule footer  {
  margin-top: 28px;
  margin-left: 50px;
  margin-right: 50px;
  display: flex;
  justify-content: space-between;
}

 #scrolllock_annule footer  {
  justify-content: space-around;
  margin-top: 55px;
 }

#scrolllock_annule .container{
  padding-top: 18px;
  padding-left: 50px; 
  padding-right: 50px;
  box-sizing: border-box;
}

#scrolllock_annule .container label {
  width:80%;
  margin-left: 20px;
  display: inline-flex;
  justify-content: space-between;
}

#scrolllock_annule .container label span {
  display: inline-flex;
}

#scrolllock .tot #cloturer {
  background-color: #cdcdcd!important;
  cursor: default!important;
}

#scrolllock form:not(.tot) footer button {
	color: #f54f4f;
	border: 3px solid #f54f4f;
	box-sizing: border-box;
	padding: 17px;
	background-color: #fff;
}

#scrolllock form:not(.tot) footer button:hover {
	background-color: #f54f4f;
	border: none;
	padding: 20px;
	color: #fff;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

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

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

