.desktopNavList {
  display: none;
}

.navList {
  position: fixed;
  top: 0;
  right: -100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(61, 49, 55, 0.75) 0%,
    rgba(52, 43, 48, 0.75) 100%
  );
  padding-top: 25%;
  width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: 0.2s;
}
.navList.active {
  right: 0;
}
.navList .navLink {
  list-style-type: none !important;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(56, 46, 54, 0.75) 0%,
    rgba(52, 43, 48, 0.75) 100%
  );
}
.navList .navLink a {
  padding: 18px;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.navList .navLink.active a {
  border-bottom: solid 2px #efad65;
  border-left: solid 12px #efad65;
}
.navList .navLink.adhesion {
  margin-top: 18%;
  background: rgba(43, 9, 9, 0.6);
}
.navList #menu {
  width: 95%;
  height: 38%;
}
.navList #menu .cards {
  overflow-y: auto;
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
}
.navList #menu .cards .card__link {
  display: flex;
  justify-content: space-between;
}

@media screen and (min-width: 960px) {
  .navList {
    display: none;
  }
  .desktopNavList {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 50%;
    height: 100%;
  }
  .desktopNavList .desktopNav {
    height: 100%;
    width: 30rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px !important;
  }
  .desktopNavList .desktopNav a {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fbfbfb;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
  }
  .desktopNavList .desktopNav a:hover {
    background-color: #5f83ad;
  }
  .desktopNavList .desktopNav a.active {
    background-color: #5f83ad;
    border-bottom: inset 2px #efad65;
  }
}

.mainHeader {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 70px;
  background-color: #335775;
  box-shadow: 0 4px 14px #0000003d;
  overflow-x: visible;
}
.mainHeader .buttonLogin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 15%;
  text-decoration: none;
  color: #fbfbfb;
  font-weight: bold;
  font-size: 14px;
}
.mainHeader .buttonLogin:visited {
  text-decoration: none;
}
.mainHeader .buttonProfil,
.mainHeader .buttonAdmin {
  display: none;
}
.mainHeader .navButton {
  pointer-events: all;
  position: fixed;
  right: 8px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.35s;
  z-index: 20;
  font-weight: bold;
  font-size: 14px;
}
.mainHeader .navButton:hover {
  cursor: pointer;
}
.mainHeader .registerButton {
  display: none;
}
.mainHeader .registerButton:hover {
  cursor: pointer;
}
.mainHeader .rotate90 {
  transform: rotate(-90deg);
}
.mainHeader .menuLogoBars {
  width: 38px;
  height: 3px;
  border-radius: 3px;
  background-color: #32a1bf;
  margin-top: 3px;
  margin-bottom: 3px;
  position: relative;
}
.mainHeader .hide {
  display: none;
}
.mainHeader .cross {
  transform: rotate(45deg);
  margin: 0;
  position: absolute;
}
.mainHeader .crossInverted {
  transform: rotate(-45deg);
  margin: 0;
  position: absolute;
}

@media screen and (min-width: 960px) {
  .mainHeader {
    height: 95px;
    justify-content: flex-start;
    transition: 0.15s;
  }
  .mainHeader.scrolled {
    height: 60px;
  }
  .mainHeader .containerNav {
    width: 100%;
    height: 100%;
    margin-left: 2%;
  }
  .mainHeader .buttonProfil,
  .mainHeader .buttonAdmin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 144px;
    text-decoration: none;
    color: #fbfbfb;
    font-size: 14px;
  }
  .mainHeader .buttonProfil:visited,
  .mainHeader .buttonAdmin:visited {
    text-decoration: none;
  }
  .mainHeader .registerButton {
    display: flex;
    position: fixed;
    right: 20%;
    text-decoration: none;
    font-weight: 600;
  }
  .mainHeader .buttonAdmin {
    right: 248px;
    color: #efad65;
  }
  .mainHeader .buttonLogin {
    right: 24px;
  }
  .mainHeader .navButton,
  .mainHeader .menuLogoBars {
    display: none;
  }
}

.logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: auto;
}
.logo a {
  margin: 0;
  padding: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo .logoImage {
  margin: 4px 8px 4px 4px;
  width: 40px;
  height: 40px;
  transition: 0.15s;
}
.logo .logoText {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.logo .logoText:hover {
  cursor: pointer;
}
.logo .logoText .CPTS {
  font-size: 1.4em;
  font-weight: 500;
}
.logo .logoText .noel {
  margin-left: 8px;
  color: #55d4f7;
  font-size: 0.9em;
}

@media screen and (min-width: 960px) {
  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: auto;
    color: #efad65;
  }
  .logo .logoImage {
    margin: 8px;
    width: 75px;
    height: 75px;
  }
  .logo .logoImage.scrolled {
    height: 42px;
    width: 42px;
    margin-right: 50px !important;
  }
  .logo .logoText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
  }
  .logo .logoText.scrolled {
    display: none;
  }
  .logo .logoText.inline {
    flex-direction: row;
    align-items: center;
  }
  .logo .logoText .CPTS {
    font-size: 2em;
    font-weight: 500;
  }
  .logo .logoText .CPTS.inline {
    font-size: 2em;
  }
  .logo .logoText .noel {
    min-width: 120px;
    color: #55d4f7;
    font-size: 1.2em;
    text-align: left;
    margin-left: 3px;
  }
  .logo .logoText .noel.inline {
    font-size: 1em;
    margin-left: 6px;
  }
}

.CPTS_ {
  width: 60px;
  font-family: "Crushed Stone", sans-serif;
  color: white;
  font-size: 30px;
  text-shadow: 0 0 1px white, 0 0 4px white, 0 0 5px white, 0 0 8px white;
  transition: 0.15s;
}

.noel_ {
  width: 60px;
  font-family: "Crushed Stone", sans-serif;
  color: white;
  font-size: 30px;
  text-shadow: 0 0 1px white, 0 0 4px white, 0 0 5px white, 0 0 8px white;
  transition: 0.15s;
}

.logoText {
  margin-left: 25px;
}

.mainHeader.scrolled .CPTS_ {
  font-size: 18px;
}

.mainHeader.scrolled .noel_ {
  font-size: 18px;
}

.mainHeader.scrolled .desktopNavList .desktopNav a {
  font-size: 12px;
}

.mainHeader.scrolled .pconnexion {
  font-size: 12px !important;
}

@media screen and (max-width: 960px) {
  .mainHeader.scrolled .CPTS_ {
    font-size: 30px;
  }

  .mainHeader.scrolled .noel_ {
    font-size: 30px;
  }

  .logo .logoImage {
    margin: 8px;
    width: 75px;
    height: 75px;
    margin-left: 8px !important;
    transform: scale(0.6) !important;
  }
  .mainHeader.scrolled .logo .logoImage {
    margin: 8px;
    width: 75px;
    height: 75px;
    margin-left: 8px !important;
  }

  .logoText {
    margin-left: 0px;
  }

  .adminButton {
    margin-right: 24% !important;
  }

  .deconnectionButton {
    margin-right: 0 !important;
  }

  .profilButton {
    margin-right: 12% !important;
  }
}

.adminButton {
  margin-right: 12%;
}

.deconnectionButton {
  margin-right: 0;
}

.profilButton {
  margin-right: 6%;
}

@media (max-width: 960px) {
  .mainHeader.scrolled.pconnexion {
    font-size: 12px !important;
  }

  .pconnexion {
    font-size: 12px !important;
  }
  
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 360px) {
  .mainHeader {
    height: 60px;
  }
  
  .mainHeader .logo {
    transform: scale(0.85);
  }
  
  .mainHeader .buttonLogin {
    right: 18%;
    font-size: 12px;
  }
  
  .mainHeader .navButton {
    right: 6px;
    top: 9px;
  }
  
  .navList {
    width: 100vw;
    right: -100vw;
    padding-top: 60px;
  }
}
