/* Style par défaut des pages */
@font-face {
  font-family: "Bahnschrift";
  src: url('font.ttf');
}

body {
  background-color: rgb(225, 225, 255);
  margin: 0;
  padding: 0;
  font-family: "Bahnschrift", Helvetica, Arial, sans-serif;
}

h1 {
  color: navy;
  cursor: default;
}

h2 {
  color: navy;
  cursor: default;
}

h3 {
  color: navy;
  cursor: default;
}

p {
  color: navy;
  cursor: default;
}

html {
  scroll-behavior: smooth;
}


/* Menu */

:root {
  font-size: 16px;
  --text-primary: #b6b6b6;
  --text-secondary: #ececec;
  --bg-primary: #23232e;
  --bg-secondary: #141418;
  --transition-speed: 600ms;
}

body::-webkit-scrollbar {
  width: 0.25rem;
}

body::-webkit-scrollbar-track {
  background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
  background: #6649b8;
}

main {
  margin-left: 5rem;
  padding: 1rem;
}

.navbar {
  position: fixed;
  background-color: var(--bg-primary);
  transition: width 200ms ease;
  z-index: 100;
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction:column;
  align-items: center;
  z-index: 100;
  height: 100%;
}

.nav-item {
  width: 100%;
  z-index: 100;
  font-family: "Bahnschrift", Helvetica, Arial, sans-serif;
}

.nav-item:last-child {
  margin-top: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 5rem;
  color: var(--text-primary);
  text-decoration: none;
  filter: grayscale(100%) opacity(0.7);
  transition: var(--transition-speed);
}

.nav-link:hover {
  filter: grayscale(0%) opacity(1);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.link-text {
  display: none;
  margin-left: 1rem;
}

.nav-link svg {
  width: 2rem;
  min-width: 2rem;
  margin: 0 1.5rem;
  fill: #A5A5FF;
}

.logo {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  font-size: 1.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
}

.logo svg {
  transform: rotate(0deg);
  fill: #ff7eee;
  transition: transform var(--transition-speed);
  fill: #A5A5FF;
}

.navbar:hover .logo svg {
  transform: rotate(360deg);
}

.logo-text {
  display: inline;
  position: absolute;
  left: -999px;
  transition: var(--transition-speed);
}

@media only screen and (max-width: 1100px) {
  .navbar {
    bottom: 0;
    width: 100vw;
    height: 5rem;
  }

  .logo {
    display: none
  }

  .navbar-nav {
    flex-direction: row;
  }

  .nav-link {
    justify-content: center;
  }

  main {
    margin: 0;
    margin-bottom: 5rem;
  }
}

@media only screen and (min-width: 1100px) {
  .navbar {
    width: 5rem;
    height: 100vh;
    top: 0;
  }

  .navbar:hover {
    width: 16rem;
  }

  .navbar:hover .link-text {
    display: inline;
    transition: opacity var(--transition-speed);
  }
}


/* Titre de la page */
.titrePageGeneral {
  width: calc(100% - 20px);
  background-color: #BEBEFF;
  border-radius: 15px;
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
}


/* Custom fonts */
/*
@font-face {
  font-family: "Vice City Sans";
  src: url('ViceCitySans.otf');
}

body {
  font-family: "Vice City Sans", Helvetica, Arial, sans-serif;
}
*/