/**
 * Règles CSS valables sur toute l'application Restodujour
 */
/** Font **/
@font-face {
    font-family: 'Avenir Black';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/AvenirLTStd-Black.woff') format('woff'),
    url('../fonts/AvenirLTStd-Black.ttf') format('truetype');
}

/* Global */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
* {
    margin: 0;
    padding: 0;
}
/* Body */
body {
    font-family: Avenir Black;
    background-color: #1a1a1a;
    color: #fff;
    margin: auto;

}

.wrapper {
    margin: auto;
    text-align: center;
    max-width: 480px;
}
/* Header */
.header h1{
    float: left;
    width: calc(100% - 58px);
}
header img {
    width: 80%;
    margin: 0 auto;
    display: block;
}
/* hidden */
.hidden {
    display: none!important;
}
/* menu hamburger */
.header {
  width: 100%;
  z-index: 3;
}
.header .menu li a {
  display: block;
  padding: 15px 20px;
  color: #11e0af;
  background-color: #4d4d4d;
  text-decoration: none;
  font-size: 120%;
}
.header .menu li a:hover {
    color: #f7931e;
    background-color: #333333;
    text-decoration: underline;
}
/* menu */
.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
  margin: 0;
  padding: 0;
  padding-top: 5px;
  list-style: none;
  overflow: hidden;
}
/* menu icon */
.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 8% 20px;
  position: relative;
  user-select: none;
}
.header .menu-icon .navicon {
  background: white;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}
.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: white;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}
.header .menu-icon .navicon:before {
  top: 5px;
}
.header .menu-icon .navicon:after {
  top: -5px;
}
/* menu btn */
.header .menu-btn {
  display: none;
}
.header .menu-btn:checked ~ .menu {
  max-height: 438px;
}
.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}
.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}
.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

.header .menu li .drapeau {
    padding: 6px 4px;
    margin-left: 1px;
    margin-right: 2px;
}

.header .menu li .drapeau.actuel-lang {
    background-color: #333333;
    cursor: initial;
}

.header .menu li ul li {
    margin: 5px 0 0 0;
}

.header .sous-titre {
    font-size: 15px;
    font-weight: 100;
    font-family: Arial;
    position: absolute;
    color: #f2f2f2;
    margin-top: -15px;
    left: 26%;
}

/* Boutons */
.btn {
    border: solid 1px #4d4d4d;
    color: white;
}
.btn:hover {
    color: white;
}
.btn-no-borders,
.btn-no-borders:hover,
.btn-no-borders:focus{
    border: none !important;
}
.btn-enregistrer,
.btn-vert {
    background-image: linear-gradient(#12e0af, #22b573);
}
.btn-enregistrer:hover,
.btn-vert:hover {
    background-image: linear-gradient(#22b573, #12e0af);
}
.btn-annuler,
.btn-rouge {
    background-color: #c1272d; 
}
.btn-facebook-publier,
.btn-bleu {
    background-color: #3b5998; 
}
.btn-bleu-fonce{
    background-color: #254bb7;
}
.btn-jaune {
    background-image: linear-gradient(#fbb03b, #f7931e);
}
.btn-jaune:hover {
    background-image: linear-gradient(#f7931e, #fbb03b);
}
.btn-orange {
    background-image: linear-gradient(#f15a24, #db3d24);
}
.btn-orange:hover {
    background-image: linear-gradient(#db3d24, #f15a24);
}
.btn-violet {
    background-image: linear-gradient(#662d91, #3f0647);
}
.btn-violet:hover {
    background-image: linear-gradient(#3f0647, #662d91);
}
.btn-white {
    background-color: white;
    color: black;
}
.btn-gris,
.btn-default {
    color: #1a1a1a!important;
    background-color: #aaa;
}
.btn-gris:hover,
.btn-default:hover {
    color: white!important;
}
.btn-transparant,
.btn-transparant:hover {
    border: 2px white solid;
    color: white;
}
.btn-rounded {
    border-radius: 30px;
}
.btn-semi-rounded {
    border-radius: 15px;
}
.btn-facebook-connect {
    border: 0;
    background-color: #4267b2;
}
.btn-facebook-connect:hover {
    color: white;
}
.btn-facebook-connect img {
    width: 32px;
    margin-right: 10px
}
/* Couleurs */
.orange {
    color: #f15a24;
}
.jaune {
    color: #f8aa51;
}
.vert {
    color: #12e0af;
}
.violet {
    color: #3f0647;
}
.bleu-fonce,
.bleu-fonce:hover {
    color: #254bb7;
}
.white {
    color: white;
}
.white-hover:hover {
    color: white;
}

.text-muted {
    color: lightgray!important;
}

/* Form */
.input-with-icon-group {
    margin-bottom: 20px;
}
.input-with-icon-wrapper {
    background-color: white;
    border-radius: 30px;
    padding: 10px 15px;
}
.input-with-icon-wrapper>.icon-wrapper {
    display: inline-block;
    width: 30px;
    height: 30px;
}
.input-with-icon-wrapper>.icon-wrapper>img {
    max-width: 30px;
    max-height: 30px;
}
.input-with-icon-wrapper input {
    border: none;
    vertical-align: middle;
    min-width: 250px;
}
.custom-control-label {
    cursor: pointer;
}
.custom-switch-red-green .custom-control-label::before {
    background-color: red;
    border-color: red;
}
.custom-switch-red-green .custom-control-input:checked~.custom-control-label::before {
    background-color: green;
    border-color: green;
}

.custom-switch-green-red .custom-control-label::before {
    background-color: green;
    border-color: green;
    opacity:0.5;
    cursor:not-allowed;
}

.custom-switch-green-red, .custom-switch-green-red .custom-control-label, .custom-switch-green-red .custom-control-label span {
    cursor:not-allowed;
}

/** Images **/
.img-fit {
    display: block;
    width: 100%;
}
.img-hr {
    display: block;
    margin: auto;
    max-width: 100%;
}
.img-center {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
.img-80 {
    max-width: 80%!important;
}

/** Alerts **/
.alert {
    margin-top: 1rem;
}

/** Margins et paddins */
.p-r {
    padding-right: 15px;
}
.m-r {
    margin-right: 15px;
}

/** Liens prenant toute le block parent **/
.link-parent {
    position: relative;
}
.link-parent > a{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.link-parent .link-top {
    position: relative;
    z-index: 1;
}
/** Modals **/
.modal {
    color: black;
}
/* Google maps */
#google-maps-map-container {
    width: 100%;
    height: 300px;
}
/* Drapeaux traductions */
a.drapeau {
    cursor: pointer;
    padding: 2px 10px;
    margin: 2px 2px;
}
.drapeaux {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
}
/* overlay chargement */
#temoin-chargement{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #808080;
    opacity: .8;
}
#temoin-chargement>div {
    position: fixed;
    display:inline-block;
    margin: auto;
    background-color: white;
    border: black solid;
    border-radius: 1em;
    padding: 20px;
}
#temoin-chargement {
    color: black;
    margin: 0;
}
/* Centrage responsive du block de chargement. Sinon le décalage par rapport au milieu de l'écran est criant. */
@media (max-width: 768px) {
    #temoin-chargement>div {
        top: 42%; /* Lire 50%, on admet que la taille du bloc fait 16% de l'écran */
        left: 42%; /* Lire 50%, on admet que la taille du bloc fait 16% de l'écran */
    }
}
@media (max-width: 992px) {
    #temoin-chargement>div {
        top: 43%; /* Lire 50%, on admet que la taille du bloc fait 7% de l'écran */
        left: 43%; /* Lire 50%, on admet que la taille du bloc fait 7% de l'écran */
    }
}
@media (min-width: 992px) {
    #temoin-chargement>div {
        top: 44%; /* Lire 50%, on admet que la taille du bloc fait 6% de l'écran */
        left: 44%; /* Lire 50%, on admet que la taille du bloc fait 6% de l'écran */
    }
}
.lds-roller {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 32px 32px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  margin: -3px 0 0 -3px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 50px;
  left: 50px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 54px;
  left: 45px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 57px;
  left: 39px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 58px;
  left: 32px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 57px;
  left: 25px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 54px;
  left: 19px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 50px;
  left: 14px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 45px;
  left: 10px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}