@import url("https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap");

:root {
  --blue_test: rgba(30, 22, 54, 0.4);
}
body {
  background: url(../img/background2.svg) no-repeat;
  background-size: cover;
  color: white;
}

.container {
  min-height: 100vh;
  display: grid;
  font-size: 16px;
  padding: 20px;
  grid-template-rows: auto 1fr;
}

/*.sujet_background {
  background: cornsilk;
}*/

.cycle_background {
  background: linear-gradient(cadetblue, darkcyan);
}

a {
  color: white;
  text-decoration: none;
}

.tout {
  display: grid;
  grid-template-rows: auto 1fr;
}
/* ----- Début Nav--- */

.nav a {
  font-weight: bold;
  transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
}

.nav a:hover {
  color: rgba(30, 22, 54, 0.7);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 20px;
  align-items: center;
}
.nav .logo {
  font-size: 40px;
  margin-right: auto;
  transition: color 0.3s ease;
  font-family: "UnifrakturMaguntia", cursive;
}

.nav_links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu_burger {
  opacity: 0;
  display: none;
}

.mobile_menu + .menu_burger > div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile_menu + .menu_burger > div:nth-child(2) {
  transform: scaleX(0.1);
  opacity: 0;
}

.mobile_menu + .menu_burger > div:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/*---Header----*/

header {
  display: grid;
  justify-items: center;
  align-items: center;
}

h1 {
  text-align: center;
  font-size: 60px;
}

.exam {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding-top: 20px;
}
.exam2 {
  flex-wrap: wrap;
}

.exam a {
  -webkit-transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
  -moz-transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
  -ms-transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
  -o-transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
  transition: all 200ms cubic-bezier(0.39, 0.5, 0.15, 1.36);
  display: block;
  /*margin: 20px auto;
  max-width: 180px;
  text-decoration: none;*/
  border-radius: 5px;
  padding: 20px 80px;
  color: white;
  box-shadow: white 0 0px 0px 2px inset;
  font-size: 30px;
  text-align: center;
  font-weight: bold;
}

.exam a:hover {
  color: rgba(255, 255, 255, 0.85);
  box-shadow: rgba(30, 22, 54, 0.7) 0 0px 0px 40px inset;
}

/**Contact**/
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px;
  justify-items: center;
  align-items: center;
}

.contact img {
  width: 50%;
}

.contact_text h1 {
  font-size: 30px;
  padding: 20px;
}
/**PAGE DEF**/

/**SUJET**/

.sujets_contain {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  justify-content: center;
}

/***RESPONSIVE$******/

@media (max-width: 1000px) {
  /*Accueil*/
  h1 {
    font-size: 50px;
  }
}

@media (max-width: 835px) {
  /*Accueil*/
  h1 {
    font-size: 44px;
  }
}

@media (max-width: 740px) {
  /*Accueil*/
  h1 {
    font-size: 35px;
  }
}

@media (max-width: 610px) {
  h1 {
    font-size: 30px;
  }

  /*Navbar*/
  .nav .logo {
    width: 150px;
    margin-right: auto;
  }

  .nav_links {
    position: fixed;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #ffffff49;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    font-size: 16px;
    inset: 0;
    /*margin-left: -100%;*/
    transition: transform 0.5s ease;
    transform: translate(-100%);
    opacity: 0;
    animation: navlinks 0.5s 0.5s forwards;
    z-index: 9;
    font-weight: 700;
  }

  @keyframes navlinks {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }
  .nav_links.mobile_menu {
    transform: none;
  }

  .menu_burger {
    opacity: 1;
    display: block;
    width: 30px;
    z-index: 9;
    top: 58px;
    right: 56px;
    cursor: pointer;
  }

  /*.mobile_menu + .menu_burger {
    position: fixed;
  }*/

  .menu_burger > div {
    height: 4px;
    border-radius: 2px;
    background: white;
    margin-bottom: 6px;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  /*Header*/
  .exam {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 25px;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 20px;
  }
}

@media (max-width: 355px) {
  h1 {
    font-size: 17px;
  }

  .exam a {
    font-size: 20px;
  }
}

@media (max-width: 310px) {
  h1 {
    font-size: 14px;
  }

  .exam a {
    font-size: 18px;
  }
}
