@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --hue: 174;
  --sat: 63%;
  --first-color: hsl(var(--hue), var(--sat), 40%);
  --first-color-alt: hsl(var(--hue), var(--sat), 36%);
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #FFF;

  /*========== Font and typography ==========*/
  --body-font: 'Open Sans', sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --tiny-font-size: .700rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}
/* h2 {
  margin: 40px;
} */
h1 {
  color: #12285D;
  font-weight: bold;
}
ul {
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
}
.content {
  height: 100%;
  width: 100%;
  padding: 5px;
  margin-left: 1rem; 
  margin-right: 1rem;
}


.content-justify {
  width: 100%;
  padding: 5px;
  margin-left: 1rem; 
  margin-right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 4.5rem 2rem !important;
}
.section__title{
  text-align: center;
  margin-bottom: 5px;
}

.btn-primary{
  background: #12285D;
  font-weight: 800; 
  color: #fff;
  border: none;
  margin: 0 0 0 0; 
  padding: 5px 20px;
}
.is_calcul{
  background: #808080;
  font-weight: 800;
  color: #fff;
  border: none;
  margin: 0 0 0 0; 
  padding: 5px 30px;
}
.btn-primary:hover{
  background: #3e4f77;
}
.is_calcul:hover{
  background: #4f586b;
  color: #fff;
}

.annuler{
  background: #fff;
  font-weight: 800; 
  color: #f4816a;
  border: 1px solid #f4816a;
  margin: 0; 
  padding: 5px 30px
}
.annuler:hover{
  background: #f4816a;
  color: #fff;
}

.title{
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}
.danger-color{
  color: rgb(225, 97, 97);
}
.success-color{
  color: rgb(71, 182, 113);
}
.normal-color{
  color: #12285D;
}

#dropdownMenuLink{
  background: #12285D;
  font-weight: 800; 
  color: #fff;
  border: none;
  margin: 0 15px 0 0; 
  padding: 5px 30px
}
#dropdownMenuLink:hover{
  background: #3e4f77;
}
.unique{
  padding: 5px 50px
}
.btn-valider{
  background: #E9A911;
  border: none;
  color: #fff;
  font-weight: 800; 
  padding: 5px 30px
}
.btn-valider:hover{
  background: #f8ce6d;
  color: #12285D;
}
.resultat{
  color: #12285D;
  background: #fff0ce;
  padding: 5px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
}
.alert p{
  font-size: 23px;
  font-weight: bolder;
}
/*=============== LAYOUT ===============*/
.content-page{
  justify-content: center;
}

.login-form {
  display: flex;
  justify-content: center;
  align-content: center;
  width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  background: #f9f8f4;
  width: 100%;
  height: 3rem;
  z-index: var(--z-fixed);
  transition: .4s;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*=============== NAV ===============*/
header h1 {
  color: #12285D;
  font-weight: bolder;
  font-size: 22px;
  text-align: center;
  margin-top: 0.3rem;
}

.nav__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  margin-bottom: 4px;
  display: grid;
  align-content: center;
  border-radius: 4rem 4rem 0 0;
  transition: .4s;  
  z-index: var(--z-fixed);
}

.nav__list, 
.nav__link {
  display: flex;
}
.nav__list{
  background: #f9f8f4;
  height: 4rem;
  width: 100%;
  align-content: center;
  align-items: center;
  justify-content: center;
  display: flex;
  justify-content: space-around;
}

.nav__link {
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
  color: #12285D;
  width: 100%;
  font-weight: 800;
}

.active_page{
  color: #E9A911;
}

.nav__link:hover{
  color: #E9A911;
}


.nav__name {
  color: #12285D;
  display: none;
}


.nav__icon {
  font-size: 3rem;
}

.nav__list li .tooltip{
  position: absolute;
  bottom: 4rem;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  height: 35px;
  width: 122px;
  background: #fff;
  color: #12285D;
  font-weight: bolder;
  line-height: 35px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: 0s;
  opacity: 0;
  pointer-events: none;
  display: block;
}
.nav__list li:hover .tooltip{
  transition: all 0.5s ease;
  top: 4.5rem;
  opacity: 1;
}


@media screen and (max-width: 446px){
  .nav__icon{
    font-size: 2rem;
  }
  .nav h1 {
    font-size: 20px;
    margin: 10px;
  }
  .nav__list{
    column-gap: 2rem;
    justify-content: center;
  }
}
@media screen and (max-width: 328px){
  .nav__list{
    column-gap: 1rem;
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__link:hover {
    color: #12285D;
  }
  .nav__list li:hover .tooltip{
    transition: all 0.5s ease;
    top: 4.5rem;
    opacity: 1;
  }
  .nav__list{
    column-gap: 2.5rem;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 1294px) {
  .container {
    margin-left: 3rem;
    margin-right: 3rem;
  }
  .nav__list li:hover .tooltip{
    transition: all 0.5s ease;
    top: 4.5rem;
    opacity: 1;
  }
  .nav__list{
    column-gap: 4rem;
    justify-content: center;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  overflow: hidden;
  left: -300%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
  z-index: var(--z-fixed);
  border-radius: 10px;
}

.alert{
  font-size: 18px;
}

.dropdown-content a {
  color: #12285D;
  font-weight: bold;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 16px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  border-radius: 10px;
  color: #E9A911;
}

.dropdown.active .dropdown-content {
  box-sizing: content-box;
  display: block;
  opacity: 1;
}


/* =================== Formulaires ================ */
.wrapper {
  max-width: 500px;
  min-height: 100%;
  margin: 40px auto;
  padding: 40px 30px 30px 30px;
  background-color: #ecf0f3;
  border-radius: 15px;
  box-shadow: 13px 13px 20px #cbced1, -13px -13px 20px #fff;
}

.logo {
  width: 80px;
  margin: auto;
}

.logo img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0px 0px 3px #E9A911,
      0px 0px 0px 5px #ecf0f3,
      8px 8px 15px #a7aaa7,
      -8px -8px 15px #fff;
}


.wrapper .name {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 1.3px;
  padding-left: 10px;
  color: #12285D;
}

@media(max-width: 380px) {
  .wrapper {
      padding: 40px 15px 15px 15px;
  }
}
