/* Reset des propriétés des navigateurs */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Font */
@font-face {
  font-family: "Agile";
  src: url("../font/agile_sans/AgileSans-Regular.otf") format("otf");
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Agile", sans-serif;
}

/* Navbar */
.navbar {
  width: 100%;
  height: 5rem;

  padding: 0 4rem;

  position: fixed;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: solid 1px rgba(85, 85, 85, 0.3);
  background-color: white;
}

.navbar-centered {
  justify-content: center;
}

.navbar-icone {
  cursor: pointer;
  font-size: 2.2rem;
  font-weight: bold;
  color: rgb(82, 82, 255);
  user-select: none;
  text-decoration: none;
}

.navbar-icone:hover {
  color: rgb(68, 68, 220);
}

.navbar-connect {
  padding: 1rem 1.3rem;

  display: flex;
  justify-content: center;
  align-items: center;

  border: solid 1px;
  border-radius: 0.3rem;
  color: rgb(82, 82, 255);

  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;

  transition: 0.2s;
}

.navbar-connect:hover {
  background-color: rgba(69, 69, 188, 0.22);

  transition: 0.2s;
}

.navbar-menu-connected {
  position: relative;

  display: flex;
  flex-direction: column;
}

.navbar-menu-connected-button {
  padding: 0.8rem 0.9rem 0.8rem 1.2rem;

  display: flex;
  align-items: center;
  gap: 0.4rem;

  width: max-content;

  color: rgb(82, 82, 255);
  border: solid 1px rgba(85, 85, 85, 0.3);
  border-radius: 5rem;

  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  user-select: none;

  transition: 0.2s;
}

.navbar-menu-connected-button:hover {
  background-color: rgba(128, 128, 128, 0.187);
}

.navbar-zone-disconnect {
  position: absolute;
  bottom: -3.6rem;
  z-index: 3;
  width: 14rem;
  height: 3rem;
  display: none;
  border: none;
  border-radius: 0.3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.05) 0 2px 1px 2px;
}

.navbar-disconnect {
  background-color: white;
  border: none;
  color: red;
  border-radius: 0.3rem;
  height: 2.2rem;
  width: 13rem;
  line-height: 2rem;
  text-align: center;
  font-size: 1.15rem;
}

.navbar-disconnect:hover {
  background-color: rgba(255, 0, 0, 0.15);
}

.navbar-disconnect-openned {
  display: flex;
}

.navbar-menu-arrow {
  margin-top: 0.2rem;
  width: 2rem;
  transition: 0.2s;
  fill: rgb(82, 82, 255);
}

.navbar-menu-arrow-openned {
  transform: rotate(180deg);
  transition: 0.2s;
}

/* index.php */
.container-home {
  min-height: calc(100vh - 4.9rem);
  padding: 5rem;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#home-content {
  width: 50%;
}

#home-img {
  width: 50%;
}

.home-text {
  font-size: 1.2rem;
  line-height: 1.5rem;
  text-align: justify;
}

.home-title {
  font-weight: bold;
  font-size: 37px;
  margin-bottom: 30px;
}

.home-link-zone {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.home-link,
.home-link-blue {
  height: 3.5rem;
  width: 20rem;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;

  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;

  text-align: center;
}

.home-link {
  color: white;
  background-color: rgb(82, 82, 255);
}

.home-link:hover {
  color: rgb(240, 240, 240);
  background-color: rgb(68, 68, 220);
}

.home-link-blue {
  border: solid 1px;
  color: rgb(82, 82, 255);
  background-color: rgb(255, 255, 255);
  justify-content: center;
}

.home-link-blue:hover {
  color: rgb(56, 56, 255);
  background-color: rgb(240, 240, 240);
}

.home-link-blue-text {
  text-align: center;
}

.home-link-blue-arrow {
  margin: 0 0 4px 1rem;
  font-size: 2rem;
}

.home-link-blue-check {
  margin-left: 1rem;
  font-size: 1.3rem;
}

@media (max-width: 1475px) {
  #home-content {
    width: 55%;
  }

  #home-img {
    width: 45%;
  }
  .home-title {
    font-size: 30px;
  }
  .home-text {
    font-size: 18px;
  }
  .home-link-zone {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .home-link-blue {
    margin-top: 10px;
  }
}

@media (max-width: 1300px) {
  .container-home {
    flex-direction: column-reverse;
    padding-top: 80px;
  }
  #home-content {
    width: 100%;
  }

  #home-img {
    width: 100%;
    margin-top: -80px;
  }

  .home-title {
    text-align: center;
  }
}

@media (max-width: 1050px) {
  .container-home {
    padding-top: 0;
  }

  #home-img {
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 30px;
  }
  .navbar-icone {
    font-size: 30px;
  }
  .navbar-connect {
    font-size: 18px;
  }
  .container-home {
    flex-direction: column;
    padding-bottom: 0;
  }
  .container-home {
    padding-top: 120px;
  }
  .home-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .home-text {
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  .navbar-icone {
    font-size: 25px;
  }
  .navbar-connect {
    font-size: 15px;
  }
  .container-home {
    padding: 120px 3rem 0 3rem;
  }
  .home-link-zone {
    justify-content: center;
  }
  .home-link {
    font-size: 16px;
    width: 100%;
  }
  .home-link-blue {
    font-size: 16px;
    width: 100%;
  }
  .navbar-menu-connected-button {
    font-size: 0.9rem;
  }
}

/* cours.php */
.container-cours {
  min-height: 100vh;
  padding: 15rem 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.container-cours-box {
  position: relative;
  height: 8rem;
  width: 22rem;
  padding: 1.3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: start;
  background-color: rgb(255, 255, 255);
  border: solid 1px rgba(85, 85, 85, 0.3);
  border-radius: 0.3rem;
  text-decoration: none;
  transition: 0.4s;
}

.container-cours-box-blue {
  border: solid 1px rgb(82, 82, 255);
}

.cours-progression {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 25rem;
  color: rgba(0, 0, 0, 0);
  -webkit-text-stroke: 0.5rem rgba(85, 85, 85, 0.2);
  user-select: none;
}

.cours-progression-blue {
  -webkit-text-stroke: 0.5rem rgb(82, 82, 255);
}

.container-cours-box-path {
  height: 2px;
  width: 2rem;
  background-color: rgba(85, 85, 85, 0.3);
}

.container-cours-box-path-blue {
  background-color: rgb(82, 82, 255);
}

.container-cours-box-title {
  font-size: 1.2rem;
  color: rgb(82, 82, 255);
}

.container-cours-box-description {
  color: black;
  font-size: 18px;
}

.container-cours-box-statut-available {
  position: absolute;
  left: 50%;
  bottom: -3.6rem;
  transform: translateX(-50%) rotate(180deg);
  width: 4rem;
  fill: rgb(82, 82, 255);
}

.container-cours-box-statut {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
}

.statut-valid {
  color: rgb(82, 82, 255);
}

.statut-unaccessible {
  color: rgba(85, 85, 85);
}

@media (max-width: 1485px) {
  .cours-progression {
    font-size: 20rem;
    bottom: 6rem;
  }
  .container-cours-box-description {
    font-size: 16px;
  }
}

@media (max-width: 1350px) {
  .cours-progression {
    font-size: 15rem;
    bottom: 9rem;
  }
  .container-cours-box {
    height: 9rem;
  }
}

@media (max-width: 1050px) {
  .cours-progression {
    font-size: 13rem;
    bottom: 8rem;
  }
  .container-cours-box-description {
    font-size: 14px;
  }
}
@media (max-width: 905px) {
  .cours-progression {
    display: none;
  }
  .container-cours {
    flex-direction: column;
    padding: 100px 0 50px 0;
    gap: 20px;
  }
  .container-cours-box-statut-available {
    display: none;
  }
  .container-cours-box-path,
  .container-cours-box-path-blue {
    transform: rotate(90deg);
  }
}

/* coursX.php and quizX.php */
.cours-page-container,
.quiz-page-container {
  min-height: 100vh;
  padding: 9rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.8rem;
  max-width: 1700px;
  margin: 0 auto;
}

.cours-page-title {
  padding: 0.5rem 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 2.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.cours-page-subtitle,
.quiz-page-subtitle {
  padding: 0.5rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2rem;
}

.cours-page-paragraph {
  font-size: 1.5rem;
  font-weight: 300;
}

.cours-page-sub-zone,
.quiz-page-sub-zone {
  font-size: 1.5rem;
}

.cours-page-list,
.quiz-page-list {
  padding: 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cours-page-list-element,
.quiz-page-element {
  list-style: disc;
  line-height: 1.8rem;
}

.quiz-page-radio {
  width: 1.2rem;
  height: 1.2rem;
}

.quiz-link-container,
.quiz-button-container {
  display: flex;
  justify-content: center;
}

.quiz-link,
.quiz-button {
  padding: 1.2rem 1.8rem;

  border-radius: 0.4rem;
  border: none;
  background-color: rgb(82, 82, 255);

  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: 0.2s;

  text-align: center;
}

.quiz-link:hover,
.quiz-button:hover {
  box-shadow: 0 0.2rem 0.5rem 0.1rem rgba(0, 0, 0, 0.4);
  transition: 0.2s;
}

@media (max-width: 1150px) {
  .cours-page-container,
  .quiz-page-container {
    padding: 7rem;
  }
}

@media (max-width: 800px) {
  .cours-page-container,
  .quiz-page-container {
    padding: 8rem 5rem;
  }
  .cours-page-container > div,
  .quiz-page-element {
    font-size: 16px;
  }
  .cours-page-container > h1 {
    font-size: 27px;
  }
  .quiz-page-subtitle {
    font-size: 20px;
  }
}

@media (max-width: 550px) {
  .cours-page-container,
  .quiz-page-container {
    padding: 7rem 3rem;
  }
  .cours-page-container > div,
  .quiz-page-element {
    font-size: 14px;
  }
  .cours-page-container > h1 {
    font-size: 20px;
  }
  .quiz-page-subtitle {
    font-size: 16px;
  }
}

/* connexion.php and inscription.php */
.zone-connexion,
.zone-inscription {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 2.4rem;
}

.recover-form-title {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  color: rgb(82, 82, 255);
}

.recover-form-legende-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recover-form-legende {
  font-size: 1rem;
  width: max-content;
  max-width: 20.5rem;
}

.connexion-zone-login,
.connexion-zone-password,
.inscription-zone-input {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.connexion-label,
.inscription-label {
  font-size: 1rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.6);
}

.connexion-label-password {
  display: flex;
  justify-content: space-between;
}

.connexion-input,
.inscription-input {
  color: rgba(0, 0, 0, 0.6);
  width: 24rem;
  font-size: 1.2rem;
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.6rem 0.7rem;
}

.connexion-button,
.inscription-button {
  padding: 0.6rem 0.8rem;
  width: max-content;
  border: 1px solid;
  background-color: rgb(255, 255, 255);
  border-radius: 4px;
  color: rgb(82, 82, 255);
  font-weight: bold;
  font-size: 1.2rem;
}

.connexion-link-button-zone,
.inscription-link-button-zone {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.recover-link-button-zone {
  width: 100%;
  display: flex;
  justify-content: center;
}

.connexion-link-password,
.connexion-link-new-account,
.inscription-link-connect {
  display: flex;
  text-decoration: none;
  color: rgb(82, 82, 255);
  font-size: 1rem;
}

.connexion-link-new-account,
.inscription-link-connect {
  padding: 0.6rem 0.8rem;
  width: max-content;
  border-radius: 0.2rem;
  position: relative;
  left: -0.5rem;
  font-size: 1.2rem;
}

.connexion-link-new-account:hover,
.inscription-link-connect:hover {
  background-color: rgb(82, 82, 255, 0.1);
}

.error-message {
  width: max-content;
  padding: 1rem;
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  border: solid 1px;
  border-radius: 0.3rem;
  color: rgb(179, 0, 0);
  font-size: 0.8rem;
  background-color: rgb(255, 190, 190);
}

@media (max-width: 410px) {
  .connexion-input,
  .inscription-input {
    width: 20.5rem;
  }
}

/* Footer */
.footer {
  width: 100%;
  padding: 1rem 4rem;
  color: #333;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(85, 85, 85, 0.2);
  position: relative;
  bottom: 0;
}

.footer p {
  margin: 5px 0;
}

@media (max-width: 768px) {
  .footer {
    font-size: 0.8rem;
    padding: 1rem 2rem;
  }
}
