body {
  background-color: #F0F0F0;
  font-family: Poppins;
  font-size: 16px;
  font-weight: 400;
  padding: 0;
  margin: 0;
}

h1 {
  font-weight: 900;
  font-size: 80px;
  text-transform: uppercase;
}

h3,
#navbar-menu li a {
  font-weight: 600;
  font-size: 25px;
}

a {
  color: #000;
}

.blue {
  color: #016398;
}

.bluebg {
  background-color: #016398;
}

.ecolabel {
  background-color: yellowgreen;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
}
.ecolabel:hover {
  background-color: seagreen;
}
.button {
  border: 2px solid #016399;
  border-radius: 20px;
  background: #016399;
  color: #fff;
  padding: 10px 60px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.4s;
}

.button:hover {
  background: #fff;
  color: #016399;
}

form {
  background: #fff;
  border-radius: 30px;
  padding: 40px 80px;
  margin-top: 60px;
}

.form-label {
  display: none;
}

form input,
form select,
form textarea {
  margin-bottom: 20px;
  padding: 10px 20px;
  border: none;
  background: #F0F0F0;
  border-radius: 20px;
  box-sizing: border-box;
}

form input,
form select {
  width: 50%;
}

form textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
}

form .buttons {
  text-align: center;
  flex: 100%;
  margin-top: 20px;
}

.container {
  max-width: 1600px;
  margin: auto;
  padding: 0 30px;
}

#background {
  background-image: url("../background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 100px 100px 30px;
  flex: 1;
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

#navigation {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #f0f0f0;
  min-height: 120px;
  border-bottom-left-radius: 30px;
  width: 480px;
  z-index: 100;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: 0.5s;
}

.navbar-header {
  display: flex;
  height: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
}

#navbar-menu {
  /*! display: none; */
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
}

body.scrolled #navigation,
#navigation.open {
  border-color: #B5B5B5;
}

.sr-only {
  display: none
}

.icon-bar {
  border-radius: 4px;
  display: block;
  height: 4px;
  width: 40px;
  margin-top: 6px;
  position: relative;
  transition: 0.4s;
  transform: rotateZ(0deg);
  top: 0;
}


.navbar-toggle {
  background-color: transparent;
  background-image: none;
  border: none;
  margin: 8px 15px;
  padding: 9px 10px;
  position: relative;
  cursor: pointer;
  flex: 0;
  top: -6px;
}

.navbar-toggle:focus {
  outline: 0
}

#background h1 {
  margin-bottom: 0;
}

#background h2 {
  margin-top: 0;
  font-size: 40px;
  color: #fff;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 20px;
}

.navbar-brand img {
  height: 100%;
  max-width: 100%;
}

.navbar-brand {
  width: 160px;
}

#socials {
  flex: 1;
  align-content: center;
  text-align: right;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
  margin: 5px;
}

#navigation .wrap {
  height: 100%;
  position: relative;
}

#navigation.open #navbar-menu {
  height: 100vh;
}

#navbar-menu li a {
  text-decoration: none;
  padding: 14px 30px;
  display: block;
  /*! color: #000; */
}

#navbar-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 60px;
}

#navbar-menu li a.active {
  pointer-events: none;
}

#navbar-menu li a:hover {
  background-color: #ddd;
}

#navigation.open .icon-bar:nth-child(2) {
  transform: rotateZ(-45deg);
  top: 10px;
}

#navigation.open .icon-bar:nth-child(3) {
  transform: rotateZ(45deg);
}

#navigation.open .icon-bar:nth-child(4) {
  transform: rotateZ(45deg);
  top: -10px;
}

#boxwrap {
  display: flex;
  z-index: 10;
}

.box {
  width: 300px;
  margin-right: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 30px;
}

#titlewrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  /*! margin-bottom: 100px; */
}

.box h3 {
  margin: 0 0 10px;
}

.box p {
  margin: 0;
}

#soutien {
  padding: 30px 140px;
}

footer {
  text-align: center;
  font-size: 16px;
  font-weight: lighter;
  padding: 14px;
}

footer a {
  text-decoration: none;
}

.logos {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.logos a {
  display: block;
  flex: 1 1 auto;
  margin-right: 10px;
}

.logos img {
  min-width: 100px;
  width: 100%;
  max-width: 160px;
}

#hero {
  background-size: cover;
  background-repeat: no-repeat;
  padding: 30px 140px;
  /*! flex: 1; */
  display: flex;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  height: 400px;
  position: relative;
  background-position: center;
}

#hero .overlay {
  position: absolute;
  content: "";
  inset: 0;
  background-color: rgba(255, 255, 255, 0.75);
  z-index: 0;
}
#background .overlay {
  position: absolute;
  content: "";
  inset: 0;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 10;
}

#content {
  padding: 60px 0;
}

body.contact td {
  padding: 30px !important;
}

body.inscription .form-field:nth-of-type(1),
body.inscription .form-field:nth-of-type(2) {
  /*   background: red; */
  flex: 100%;
}

body.inscription .form-field:nth-of-type(n+3) {
  flex: 50%;
  box-sizing: border-box;
  /*! padding-left: 30px; */
}

body.inscription .form-field {
  /*! padding-left: 0px; */
  padding-right: 60px;
}

form#inscription {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px 40px 80px;
}

body.inscription .form-field:nth-of-type(n+3) input {
  width: 100%;
}

body.inscription form select {
  width: 100%;
}

form h3 {
  margin-top: 0px;
}

#childlist {
  flex: 100%;
  position: relative;
}
#childlist::before{
  content: "Liste des membres:";
  margin-bottom: 10px;
  display: block;
}

#childlist input {
  margin-right: 60px;
  margin-bottom: 0px;
}

.childfield {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
form .close {
  position: absolute;
  right: 30px;
  padding: 10px;
  cursor: pointer;
}
form .close:hover {
  color: tomato;
}

#add-child {
  padding: 4px;
  display: block;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  margin-right: 50%;
  margin-bottom: 20px;
}
#add-child:hover {
  background: #f0f0f0;
}
#childlist, #add-child {
  display: none;
}
form[data-type="private"] #childlist, form[data-type="private"] #add-child {
  display: block;
}

#agendacont {
  display: flex;
}
#events-list {
  flex: 1;
  margin-bottom: 40px;
  margin-right: 60px;
}
#events-cal {
  flex: 1;
}

.eventslist {
  list-style: none;
  padding: 0;
  /*! list-style-position: inside; */
}
li.event {
  /*! display: flex; */
  /*! align-items: center; */
  /*! flex-direction: column; */
  margin-bottom: 10px;
  cursor: pointer;
  padding: 20px;
  border-radius: 30px;
}
.eventtitle {
  margin: 0;
  margin-right: 20px;
  flex: 1;
  /*! display: inline; */
  color: #016398;
}

.event > date {
  flex: 0 120px;
  display: block;
}
li.event:hover, .event.open  {
  background: #fff;
}

.eventcontent {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
}
.event.open .eventcontent {
  max-height: 1000px;
  padding: 20px 0px;
  margin-top: 20px;
  border-top:1px solid #f0f0f0;
}
.event .buttons {
  padding: 10px;
  text-align: right;
}
.event .button {
  padding: 10px 30px;
  display: inline-block;
}

.icon.fb {
  background-color: #fff;
}

.icon.fb img {
  width: 40px;
  height: 40px;
}
.icon.ig {
  padding: 6px;
  box-sizing: border-box;
}

.icon img {
  width: 100%;
}


#catalogue {
  border-radius: 30px;
  padding: 60px;
  margin-bottom: 60px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
#catalogue .wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.game{
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  padding: 30px;
  box-sizing: border-box;
  margin-bottom: 60px;
  margin-right: 60px;
  cursor: pointer;
  transition: 0.2s;
  width: 300px;
  margin: 0 10px 60px;
  text-align: center;
}

.game:hover {
  opacity: 0.9;
}
.game:active {
  opacity: 0.7;
}

.game img{
  height: 200px;
}

.modal .box picture img {
  width: 100%;
}
.modal.open {
  display: flex;
  transform: scale(1);
  opacity: 1;
  transition: 0.4s;
}
.modal {
  display: flex;
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
  padding: 100px;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  transition: opacity 0.4s, transform 0s 0.4s;
  opacity: 0;
}
.overlay {
  position: absolute;
  inset: 0;
}
.modal .box {
  background-color: #fff;
  padding: 60px;
  transform: scale(0);
  transition: 0.4s 1s;
  margin: 30px 0;
  height: 100%;
  overflow-y: scroll;
  border-radius: 4px;
  width: auto;
  max-width: 70%;
}
@keyframes load{
  0% { opacity: 1 }
  100% { opacity: 0.2 }
}
.modal .box p.loading {
  height: 100px;
  background: linear-gradient( to bottom, #aaa, #aaa 10%, transparent 10%, transparent);
  background-size: 100% 20px;
  animation: load 1s infinite alternate linear;
}
.modal.open .box {
  transform: scale(1);
  transition: 0.4s;
}
.modal .box .age::before {
  content: "Âge: ";
  font-weight: bold;
}
.modal .box .age {
  margin-right: 20px;
}
.modal .box .nb::before {
  content: "Nb de joueurs: ";
  font-weight: bold;
}
.modal .box p {
  margin-top: 30px;
}
.modal .box picture {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.buttons {
  text-align: center;
}

form input[type="checkbox"] {
  width: auto !important;
}
form a {
  text-decoration: none;
}
@media screen and (max-width:1000px) {

  body.contact tr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  body.contact tr img {
    max-width: 100%
  }

  body.contact td {
    padding: 10px !important;
    width: 100% !important;
    text-align: center !important;
  }

  #hero {
    padding: 30px;
    text-align: center;
  }

  body.inscription .form-field:nth-of-type(n+3) {
    width: 100%;
    padding-left: 0px;
    flex: 100%;
  }

  #childlist input:nth-of-type(1) {
    margin-right: 10px;
  }
  form input,
  form select {
    width: 100%;
  }
  
#agendacont {
  flex-direction: column;
}
  #background {
  padding: 20px;
}
#titlewrap h1 {
  font-size: 40px;
  margin-top: 200px;
}
#boxwrap {
  flex-direction: column;
}
.box {
  margin-bottom: 30px;
}
#soutien {
  padding: 30px;
}
.logos a {
  flex: 1 1 40%;
}
#navigation {
  width: 100%;
}
  
#calYear {
  width: 80px !important;
}
.ecolabel {
  display: inline-block;
  margin-top: 10px;
}
.activity.first.last {
  text-overflow: ellipsis;
  font-size: 10px;
}
.activities {
  max-width: 100%;
}
  
#catalogue {
  padding: 30px;
}
.container {
  width: 100%;
  margin: 0;
  max-width: unset;
  padding: 0;
}
.modal {
  padding: 60px 20px;
}
.modal .box {
  margin: 0;
  box-sizing: border-box;
  padding: 30px;
  max-width: unset;
  width: 100%;
  height: auto;
}
  
form#inscription {
  padding: 30px;
}
body.inscription .form-field {
  padding: 0;
}
  
form {
  padding: 30px;
}
  
#events-list {
  margin-right: 0;
}
}