@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/*
▄▀█ █▀▄▀█ █▀█ █▀█ █ █ █   █▀▀
█▀█ █ ▀ █ █▀▀ █▄█ █▄█ █▄▄ ██▄ */

.light-container {
  position: fixed;
  top: 0;
  right: 20%;
  z-index: 1501;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fil {
  width: 2px;
  height: 20px;
  background-color: #333;
}

.ampoule {
  width: 50px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin-top: -5px;
}

.ampoule.off {
  opacity: 0.5;
}
 
/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/


/*
█▄ █ ▄▀█ █ █ █▄▄ ▄▀█ █▀█
█ ▀█ █▀█ ▀▄▀ █▄█ █▀█ █▀▄ */

.navbar {
  height: 50px;
  width: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 1500;
  transition: all 0.5s ease;
}

.navbar.scrolled {
  background-color: rgba(22, 8, 40, 0.7);
  backdrop-filter: blur(10px);
}

/*----------------------------------------------------*/

.navbar .back-btn {
  position: fixed;
  top: 7px;
  left: 20px;
  cursor: pointer;
  color: #0c0c0c;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .navbar-logo {
  width: 30px;
  height: auto;
  margin-right: 10px;
}

/*----------------------------------------------------*/

#menuToggle {
  position: fixed;
  top: 15px;
  right: 25px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1503;
}

#menuToggle.open {
  transform: translateX(-265px);
}

#menuToggle.open::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  background-color: #ff4b5c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s;
}

#checkbox {
  display: none;
}

.toggle {
  position: relative;
  width: 20px;
  cursor: pointer;
  display: block;
  height: calc(4px * 3 + 5px * 2);
  z-index: 1503;
}

.bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: calc(4px / 2);
  background: #0c0c0c;
  opacity: 1;
  transition: none 0.35s cubic-bezier(.5,-0.35,.35,1.5) 0s;
}

.bar--top {
  bottom: calc(50% + 6px + 3px / 2);
  transition-property: bottom, transform;
  transition-delay: calc(0s + 0.35s) * .6;
}

.bar--middle {
  top: calc(50% - 4px / 2);
  transition-property: opacity, transform;
  transition-delay: calc(0s + 0.35s * .3);
}

.bar--bottom {
  top: calc(50% + 5px + 3px / 2);
  transition-property: top, transform;
  transition-delay: 0s;
}

#checkbox:checked + .toggle .bar--top {
  transform: rotate(-135deg);
  transition-delay: 0s;
  bottom: calc(50% - 4px / 2);
  background: #ffffff;
}

#checkbox:checked + .toggle .bar--middle {
  opacity: 0;
  transform: rotate(-135deg);
  transition-delay: calc(0s + 0.35s * .3);
  background: #ffffff;
}

#checkbox:checked + .toggle .bar--bottom {
  top: calc(50% - 4px / 2);
  transform: rotate(-225deg);
  transition-delay: calc(0s + 0.35s * .6);
  background: #ffffff;
}

/*----------------------------------------------------*/

#sidebar {
  position: fixed;
  background: #ffffff;
  height: 70%;
  width: 280px;
  right: -300px;
  top: 4%;
  border-radius: 15px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1600;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


#sidebar.open {
  right: 10px;
}

/*----------------------------------------------------*/

#sidebar .header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 10px;
}

.login-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 30px;
}

.login-container {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative; 
  right: 25px;
  bottom: 14px
}

.login-icon {
  font-size: 35px;
  color: #405580;
}

.login-button {
  background-color: transparent;
  color: #405580;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.login-button:hover {
  color: #20375b;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  right: 30px;
}

#user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

#user-pseudo {
  font-size: 21px;
  font-weight: bold;
  color: #405580;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.logout-option a {
  display: flex;
  align-items: center;
  padding: 18px 30px;
  text-decoration: none;
  color: #405580;
  background-color: #F6F4FF;
  border-radius: 10px;
  width: 11vw;
  margin: 0 auto 20px auto;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.logout-option a:hover {
  background-color: #cccad5;
}

.logout-option a .icon {
  font-size: 22px;
  margin-right: 10px;
  color: inherit;
  transform: scaleX(-1);
}

.logout-option a .text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/*----------------------------------------------------*/

hr {
  width: 90%;
  margin: 20px 0 20px 0;
  border: none;
  border-top: 3px solid #5C7099;
  border-radius: 20px;
}

/*----------------------------------------------------*/

#sidebar .list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 5px;
  gap: 10px;
}


#sidebar .list-items li {
  width: 100%;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#sidebar .list-items li a {
  display: flex;
  align-items: center;
  padding: 18px 30px;
  text-decoration: none;
  color: #405580;
  border-radius: 10px;
  width: 11vw;
  margin: 5px auto;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

#sidebar .list-items li a:hover {
  background-color: #f0f4ff;
  color: #20375b;
}

#sidebar .list-items li.active a {
  background-color: #ff4b5c !important;
  color: white !important;
  font-weight: bold !important;
}

#sidebar .list-items li.active a:hover {
  background-color: #ff4b5c !important;
  color: white !important;
  font-weight: bold !important;
  cursor: default;
}

#sidebar .list-items li a .icon {
  font-size: 22px;
  color: inherit;
  margin-right: 15px;
}

#sidebar .list-items li a .text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: inherit;
}


/*----------------------------------------------------*/

.contents-bottom {
  margin-top: 5%;
  width: 100%;
}

.chat-icon {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 10%;
  text-decoration: none;
}

.chat-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff5bbe, #5651ff);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-position 0.5s ease;
  background-size: 200% 200%;
  animation: gradientAnimation 3s ease infinite;
}

.chat-circle i {
  color: white;
  font-size: 22px;
}

.chat-icon:hover .chat-circle {
  transform: scale(1.1);
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/*----------------------------------------------------*/

/* Chevron */
.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
  background-image: url('../IMG/chevron_icon.svg');  background-position: 120% !important;
  background-size: 13px !important;
  z-index: 1250 !important;
}

/* Menu Selectionné */
.gt_float_switcher .gt-selected {
  position: relative !important;
  background-color: #d8e2f8 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  border-radius: 15px;
}

.gt_float_switcher .gt_options {
  position: fixed !important;
}

/* Menu Déroulant */
.gt_float_switcher {
  position: relative !important;
  bottom :45px;
  left: 7%;
  font-family:"Open Sans", sans-serif !important;
  display: inline-block !important;
  font-size: 18px !important;
  line-height: 20px !important;
  box-shadow: rgba(0, 0, 0, 0.15) 0 5px 15px !important;
  background-color: #e9f0fd !important;
  border-radius: 15px !important;
  transition: all .5s cubic-bezier(0.4, 0, 1, 1) !important;
}

.gt_float_switcher .gt_options a {
  display: block;
  padding: 15px 15px;
  background-color: #ffffff!important;
  color: #405580 !important;
  text-decoration: none;
  transition: color .4s linear !important;
  overflow-y: auto !important;
}

/* Drapaux */
.gt_float_switcher img {
  vertical-align: middle !important;
  display: inline-block !important;
  width: 25px !important;
  height: 25px !important;
  margin: 0 5px 0 0 !important;
  border-radius: 100% !important;
  object-fit: cover !important;
}

/* Langue Selectionné */
.gt_float_switcher .gt-selected .gt-current-lang {
  font-family:"Open Sans", sans-serif;
  padding: 10px 7px !important;
  color: #405580 !important;
  font-weight: bold !important;
}

/*----------------------------------------------------*/

.social-side-container {
  background-color: #20375b;
  width: 100%;
  padding: 10px 0;
  position: absolute;
  bottom: 0;
  display: flex;
}

.social-side {
  display: flex;
  gap: 10px;
  justify-content: right;
  margin-right: 10px;
  width: 100%;
}

.social-side a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  color: #405580;
  background-color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-side a:hover {
  color: #ffffff;
}

.social-side .social-link1:hover {
  background-color: #FC0000;
  animation: bounce_613 0.4s linear;
}

.social-side .social-link2:hover {
  background-color: #A970FF;
  animation: bounce_613 0.4s linear;
}

.social-side .social-link3:hover {
  background-color: #5865f2;
  animation: bounce_613 0.4s linear;
}

.social-side .social-link4:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  animation: bounce_613 0.4s linear;
}

@keyframes bounce_613 {
  40% {
    transform: scale(1.4);
  }
  60% {
    transform: scale(0.8);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/


/* █▀ █▀▀ █▀█ █▀█ █   █   █▄▄ ▄▀█ █▀█
   ▄█ █▄▄ █▀▄ █▄█ █▄▄ █▄▄ █▄█ █▀█ █▀▄ */


::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(rgb(158, 84, 255), rgb(21, 150, 255));
  border-radius: 1px;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
}

::-webkit-scrollbar-track {
  background: rgb(27, 11, 45);
}


/*▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬*/


/*█▀█ █▀▀ █▀ █▀█ █▀█ █▄ █ █▀ █ █ █ █▀▀
  █▀▄ ██▄ ▄█ █▀▀ █▄█ █ ▀█ ▄█ █ ▀▄▀ ██▄*/

/* Petits appareils (mobiles portrait) */
@media (max-width: 481px) {

  .light-container {
    right: 30%;
  }

  .ampoule {
    width: 48px;
  }

  #sidebar {
    height: 80svh;
    top: 4%;
  }

  #sidebar .list-items {
    margin: -5px;
  }

  .list-items {
    gap: 0px;
  }

  #sidebar .list-items li a {
    width: 60vw;
  }

  .login-section {
    margin: 10px 30px
  }

  .login-container {
    bottom: -15px;
  }

  .contents-bottom {
    margin-top: -3%;
    padding-bottom: 40px;
  }

  .footer {
    padding: 2% 4%;
    flex-direction: column;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-content p {
    font-size: 0.8rem;
  }
}

/* Mobiles paysage et petites tablettes portrait */
@media (min-width: 481px) and (max-width: 769px) {
  .light-container {
    right: 30%;
  }
  .ampoule {
    width: 50px;
  }

  #sidebar {
    height: 80svh;
    top: 4%;
  }

  #sidebar .list-items {
    margin: -5px;
  }

  .list-items {
    gap: 0px;
  }

  #sidebar .list-items li a {
    width: 60vw;
  }

  .footer {
    padding: 2% 4%;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-content p {
    font-size: 0.85rem;
  }
}

/* Tablettes paysage et petits ordinateurs portables */
@media (min-width: 769px) and (max-width: 1024px) {
  .ampoule {
    width: 52px;
  }
  .footer {
    padding: 1.5% 4%;
  }
  .footer-content {
    flex-direction: row;
  }
  .footer-content p {
    font-size: 0.9rem;
  }
}

/* Grands écrans */
@media (min-width: 3440px){

  .navbar {
    height: 90px;
  }

  .navbar .back-btn {
    left: 8vw;
    font-size: 50px;
  }

  #menuToggle {
    top: 1.5vh;
    right: 8vw;
    transform: scale(1.7);
  }

  #menuToggle.open::before {
    width: 75px;
    height: 75px;
}
  .toggle {
    width: 40px;
  }

  .bar {
    height: 5px;
  }

  #sidebar {
    width: 600px;
    right: -600px;
  }

  #sidebar.open {
    right: 0;
  }

  #sidebar .header {
    padding: 80px 20px 20px 20px;
  }

  #sidebar .list-items {
    margin-top: 150px;
  }

  #sidebar .list-items li a {
    margin-right: 20px;
    font-size: 2.3rem;
  }

  .chat-icon {
    margin-left: 84%;
  }

  .chat-circle {
    width: 80px;
    height: 80px;
  }

  .chat-circle i {
    font-size: 40px;
  }

  .social-side {
    gap: 25px;
  }

  .social-side a {
    width: 75px;
    height: 75px;
    font-size: 45px;
  }

  .gt_float_switcher {
    top: 70px !important;
    left: 40px !important;
    font-size: 2.2rem !important;
    padding: 12px !important;
  }

  .gt_float_switcher .gt_options a {
    padding: 15px 20px !important;
    font-size: 2.2rem !important;
  }

  .gt_float_switcher img {
    width: 50px !important;
    height: 50px !important;
  }

  .fil {
    height: 60px;
  }
  .ampoule {
    width: 110px;
  }
  .footer {
    padding: 0.7% 4%;
  }
  .footer-content p {
    font-size: 1.8rem;
  }
}

/* _________________________________________________________ */


/* █▀▄ ▄▀█ █▀█ █▄▀   ▀█▀ █ █ █▀▀ █▀▄▀█ █▀▀
   █▄▀ █▀█ █▀▄ █ █    █  █▀█ ██▄ █ ▀ █ ██▄ */


body.dark-theme .navbar .back-btn {
  filter: invert(1);
}

body.dark-theme .bar {
  background: #ffffff;
}

body.dark-theme #menuToggle.open::before {
  background-color: #3361FF;
}

body.dark-theme #sidebar {
  background: #1f1f42;
}

body.dark-theme .login-icon {
  color: #b6c4e1;
}

body.dark-theme .login-button {
  color: #b6c4e1;
}

body.dark-theme .login-button:hover {
  color: #9eb3e0;
}

body.dark-theme #user-pseudo {
  color: #b6c4e1;
}

body.dark-theme .logout-option a {
  color: #b6c4e1;
  background-color: #293D66;
}

body.dark-theme .logout-option a:hover {
  background-color: #3e5077;
}

/*----------------------------------------------------*/

body.dark-theme hr {
  border-top: 3px solid #354562;
}

/*----------------------------------------------------*/

body.dark-theme #sidebar .list-items li a {
  text-decoration: none;
  color: #b6c4e1;
}

body.dark-theme #sidebar .list-items li a:hover {
  background-color: #293D66;
  color: #eaeaea;
}

body.dark-theme #sidebar .list-items li .active {
  background-color: #3361FF;
}

body.dark-theme #sidebar .list-items li .active:hover {
  background-color: #3361FF;
}

/*----------------------------------------------------*/

body.dark-theme .chat-circle {
  background: linear-gradient(45deg, #d768ab, #433fbb);
}

/*----------------------------------------------------*/

body.dark-theme .gt_float_switcher .gt-selected {
  background-color: #293D66 !important;
}

body.dark-theme .gt_float_switcher {
  background-color: #334a78  !important;
}

body.dark-theme .gt_float_switcher .gt_options a {
  color: #eaeaea !important;
}

body.dark-theme .gt_float_switcher .gt-selected .gt-current-lang {
  color: #eaeaea !important;
}

/*----------------------------------------------------*/

body.dark-theme .social-side a {
  color: #293d66;
  background-color: #b6c4e1;
}

body.dark-theme .social-side a:hover {
  color: #ffffff;
}
