/* ALL PAGES */

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

body {
  overflow-x: hidden;
}

.page-home, .page-evenements, .admin-panel {
    background-image: url('../images/fond-stadedefrance.jpg');
    -webkit-background-size: cover; /* pour anciens Chrome et Safari */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.page-home .container-fluid, .page-evenements .container-fluid, .admin-panel .container-fluid {
    background-color: #CF2030;
}

.page-membres {
    background-color:#CF2030;
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Usually contains logo and back arrow */

.header {
    position: relative;
    z-index: 3;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

.go-home-btn {
    margin-right: 5vw;
    width: 3vw;
    max-width: 30px;
    min-width: 15px;
    height: auto;
}

.home-btn img {
    width: 30px;
    height: 30px;
}

/* Menu Buttons */

.contenu-boutons {
  display: flex;
  justify-content: center;
} 

.contenu-boutons a {
  margin-left: 10px;
}

.contenu-boutons a:first-child {
  margin-left: 0;
}

/* Logo size */

.img-responsive {
  max-width: 50%;
}

@media screen and (min-width: 600px) {
    .img-responsive {
        max-width: 300px;
    }
}

/* Btns */

.btn {
  border: 2px solid #FFFFFF;
  border-radius: 20px;

  background-color: transparent;
  color: white;

  font-family: 'Poppins';
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
}

.btn:hover {
  background-color:#FFFFFF;
  color:#CF2030;
  border-color:#CF2030;
}

.btn:active {
  background: #CF2030 !important;
  border-color: #fff !important;
  box-shadow: none;
}

.btn:focus {
  box-shadow: none !important;
  border-color: #fff;
}

.alert {
  margin-bottom: 0;
}

/* Administration link on home page */

.page-home-links {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-home-links a {
    display: inline-block;
    color: #fff;
    padding: 1rem 1rem 1rem 0;
}

.page-home-links a:first-child {
    padding: 1rem;
}


/* Swiper */

.swiper-container {
    overflow: visible;
}

.swiper-pagination-bullet-active {
  background-color: #FFFFFF !important;
}

/* CARD (members and events) */

.card {
  box-shadow: 0px 0px 15px 0 rgba(0,0,0,0.3);
  border-radius: 20px !important;
  border: none;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 60px;

  background-color:#292929;
}

.card-img-top {
  border-radius: 20px;
  width: 80%;
  max-width: 300px;
  margin: 0 auto;
  margin-top: -3.75rem;
}

.card-body {
  border-radius:20px !important;
  padding: 3rem;
  color: #fff;
}

.card-date {
  margin-bottom: 10px;
  text-decoration: underline;
}

.card-title {
  font-family:'Poppins';
  font-weight: bold;
}

.card-address {
  font-size: 15px;
  margin-bottom: 40px;
}

.card-footer {
  background: #EAEAEA;
  border-radius: 0;
  padding: 10px;
  margin: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #222;
}

.card-photo {
  border-radius: 10px;
  width: 100px;
  height: auto;
  margin-top: -60px;
  margin-bottom: 20px;
  border: 4px solid #292929;
}

.card-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
}

.card-tel {
  padding: 3px 10px;
  background: #292929;
  color: #fff;
  font-weight: bold;

}

.card-description {
  text-align: left;
}

.card-event {
  margin-top: 50px;
}

.card-toolbar-wrapper {
    width: 100%;
    height: 100%;
    background: #eaeaea;
    border-radius: 0 0 20px 20px;
}

.card-toolbar {
    display: flex;
    justify-content: center;
    background: #222;
    border-radius: 20px;

    width: 70%;
    margin: 0 auto;
    padding: 8% 0;
    position: relative;
    top: 30px;
    min-width: 280px;
}

@media screen and (max-width: 400px) {
    .card-toolbar {
        width: 50%;
    }
}

.card-toolbar-btn {
    border-right: 1px solid #fff;
    padding: 0 20px;
}

.card-toolbar-btn:last-child {
    border-right: none;
}

.card-toolbar-btn img {
    width: 30px;
    height: 30px;
    min-width: 15px;
    min-height: 15px;
}

/*** Event cards specifics. Bad architecture decisions were made here. ***/

.card-event .card-img-top {
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Event cards participants list and form */

.participants-list {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
}

.participant-form .card-name {
  font-size: 1.6rem;
  margin: .5rem 0;
}

.participant-form {
  text-align: center;
}

.select-participant {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 20px;
  color: #222;
}

.submit-participant {
  border-radius: 20px;
  background: #222;
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  margin-top: 10px;
  width: 100%;
}

/* Members Page Menu */

#menuToggle {
  display: block;
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 40px 30px 0 0;
  z-index: 999;
  
  -webkit-user-select: none;
  user-select: none;
}
 
#menuToggle a {
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover {
  color: #CF2030;
}

/* Check this to trigger menu */

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: 35px;
  right: 25px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/* Just a quick hamburger */

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
* Transform all the slices of hamburger
* into a crossmark.
*/

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #fff;
}

/*
* But let's hide the middle one.
*/

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
* And the last one should go the other direction
*/

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu {
  position: absolute;
  right: 0px;
  top: 0;
  width: 100vw;
  max-width: 500px;
  min-height: 100vh;
  padding: 30px 50px 25px 20px;
  max-height: 10px;
  overflow-y: scroll;

  background: #222;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li {
  padding: 10px 20px 10px 0;
  font-size: 18px;
}

#menu .member-anchor {
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

#menu .menu-photo {
  width: 5rem;
  height: 5rem;
  border-radius: 10px;
}

#menu .member-anchor-text {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}

#menu li:hover .member-anchor, #menu li[tabindex]:focus .member-anchor {
  color: #cb535d;
}

/*
* And let's slide it in from the left
*/
#menuToggle input:checked ~ ul {
  display: block;
  transform: none;
}

/* Events page */

.evenements {
  background-color: #CF2030;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.evenements .swiper-container {
  padding-top: 0;
}

.image-bni {
  display: block;
}

/* Add Member form. Bad architecture decisions were also made here. */

.add-member-form {
  border-radius: 10px;
}

.form {
  padding: 50px;
}

.form-title {
  margin-bottom: 20px;
  text-align: center;
}

.form-row {
  margin-bottom: 20px;
  width: 100%;
}

.form-label {
  width: 100%;
}

.form-input {
  min-width: 300px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.form-submit {
  padding: 0.6rem 1.2rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 10px;
}

/*** ADMIN PANEL ***/

/* INDEX */

.admin-panel {
  color: #fff;
}

.admin-btns {
  display: flex;
  flex-direction: column;
}

.admin-btns a {
  margin-bottom: 10px;
}

/* Members page, but also used for events and demands. Needs to be cleaned up. */

.panel-members-list {
  list-style: none;
  padding: 0;
}

.panel-member {
  border: 1px solid #222;
  margin: 0 10px 10px 10px;
  padding: 0.5rem;
}

.panel-members-btn {
  border: 2px solid #222;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;

  color: #222;

  transition: all .3s;
}

.panel-members-btn:hover {
  background: #222;
  color: #fff;
  text-decoration: none;
}

/* Demands page - not in admin panel */

.page-create-demand .header {
    background: #CF2030;
}

.page-demands {
    background: #CF2030;
    color: #fff;
    padding: 2rem;
    min-height: 100vh;
}

.demand {
    background: #222;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demand-author {
    display: flex;
    align-items: center;
}

.demand-author-photo {
    width: 70px;
    height: auto;
    border-radius: 10px;
    margin-right: 10px;
}

.demand-content {
    margin-top: 10px;
}

/* Login & Register */

.page-login, .page-register {
  padding: 1rem;
}

.page-register {
  padding: 1rem;
}

/* Trombinoscope */

.page-trombi .header {
    background-color: #CF2030;
}


.trombi {
    background: #222;
}

.trombi .col-4 {
    padding: 0 5px;
}

.trombi-group {
    margin-top: 50px;
}

.trombi-group:first-child {
    margin-top: 10px;
}

.trombi-header {
    color: #fff;
}

.trombi-beforeTitle {
    font-size: 14px;
}

.trombi-title {
    font-size: 20px;
    font-weight: bold;
}

.trombi-member {
    display: block;
    background: #fff;
    border-radius: 10px;
    max-width: 100px;
    margin: 0 auto;
}

.trombi-photo {
    width: 100%;
    height: 100%;
    max-height: 100px;
    border-radius: 10px 10px 0 0;
}

.trombi-name {
    font-size: 12px;
    color: #222;
    font-weight: bold;
    min-height: 50px;
}

.trombi-capability {
    padding: 10px 5px;
    background: #FFD700;
    border-radius: 10px;
    font-size: 12px;
    color: #222;
    font-weight: bold;
    margin: 0 auto;
    max-width: 130px;
}

@media screen and (max-width: 780px) {
  .contenu-boutons {
    flex-direction: column;
  }
  .contenu-boutons a {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .card-body {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 200px){
  .swiper-button-prev {
    display:none !important;
  }

  .swiper-button-next {
    display:none !important;
  }
}

@media screen and (max-width: 700px) {
    .td-desktop {
        display: none;
    }
}

@media screen and (min-width: 701px) {
    .td-mobile {
        display: none;
    }
}