/* @import url('https://fonts.googleapis.com/css2?family=Aclonica&family=Heebo:wght@100..900&display=swap'); */

:root {
  --liseret: #43cf21;
  --liseret-shadow: rgba(67, 207, 33, 0.25);
  --liseret2: #ffd000;
  --background: #1c242d;

  --text-contrast-liseret: #ffffff;
  --text-contrast-liseret2: #000000;
  
  --borderCornerLite: url('../images/pepsBorderCornerLite.png');

  --logo : url('../images/pepsTemplate/logo.png');
  --header: url('../images/pepsTemplate/PepSchool.png');
  font-size: 90%;
}

.svg_contrast {
  filter: invert(100%) sepia(98%) saturate(69%) hue-rotate(218deg) brightness(112%) contrast(100%);
  /*https://codepen.io/sosuke/pen/Pjoqqp*/
}

.peps-subMenu-icon{
  filter: invert(100%) sepia(98%) saturate(69%) hue-rotate(218deg) brightness(112%) contrast(100%);
  /*https://codepen.io/sosuke/pen/Pjoqqp*/
}
.peps-subMenu-icon[disable]{
  filter: invert(64%) sepia(4%) saturate(12%) hue-rotate(23deg) brightness(86%) contrast(86%);
  /*https://codepen.io/sosuke/pen/Pjoqqp*/
}


body {
  background: var(--background);
}

.logoutLink {
  color: var(--liseret);
}

.note-editor.note-frame.fullscreen {
  background-color: white;
  }
.summernoteclass .note-icon-caret:before {
  content: "";
}


/*___________________________________ Header ______________________________________________*/
header {
  border-bottom: solid var(--liseret);
  background: rgb(0, 0, 0);
  margin-bottom: 20px;
}

.logoimgsize {
  
  @media (max-width: 575.98px) {
    background-image: var(--logo);
    height: 80px;
  }
  @media (min-width: 576px) {
    background-image: var(--header);
    height: 120px;
  }
  /* width: 100%; */
  background-size: contain;
  background-position: left;
  /* max-width: 500px; */

  background-repeat: no-repeat;
}
.navbar-toggler-icon{
  width: 40px;
  height: 40px;
  background-image: url('../images/menu.svg');
  filter: invert(90%) sepia(0%) saturate(7465%) hue-rotate(85deg) brightness(124%) contrast(96%);
}
/*___________________________________ custom scrollbar ______________________________________________*/
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: #000000;
}

::-webkit-scrollbar-thumb {
  background-color: var(--background);
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--liseret);
}
/*___________________________________ Général ____________________________________________*/
.colorLiseret {
  color: var(--liseret);
}



a {
  text-decoration: none;
  color: #000000;
}
a:hover {
  text-decoration: none;
  color: var(--liseret);
}
a.white {
  text-decoration: none;
  color: #ffffff;
}
a.white:hover {
  text-decoration: none;
  color: var(--liseret);
}


/*___________________________________ box ____________________________________________*/
.box {
  border: 1px solid #c4c4c4;
  padding: 30px 25px 10px 25px;
  background: white;
  margin: 30px 0px;
  border-radius: 0.375rem;
  /*width: 800px;
  position:relative;*/
}
.box:has(.box-title) {
  padding-top: 0px;
}

h1.box-title {
  color: #ffffff;
  background: #000000;
  background-image: var(--borderCornerLite);
  background-size: contain;
  background-repeat: no-repeat;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(0.25turn, var(--liseret), var(--liseret2), var(--liseret));
  border-image-slice: 1;
  font-weight: 300;
  /*font-family: sjbFont;*/
  padding: 15px 25px;
  line-height: 50px;
  font-size: 25px;
  text-align:center;
  margin: -1px -26px 26px;
}
/*___________________________________ ToolsBox ____________________________________________*/
/* .toolsBox {
  background: white;
  border-radius: 0.375rem;
} */
.toolbox {
  position: fixed;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  /* background-color: #f0f0f0; */
  background: linear-gradient(to right, 
                              var(--liseret) 0 19px,
                              #f0f0f0 19px 100%);
  padding: 10px;
  padding-left: 2px;
  padding-right: 2px;
  border-top-left-radius: 10px; /* Arrondi du coin supérieur gauche */
  border-bottom-left-radius: 10px; /* Arrondi du coin inférieur gauche */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  min-height: 100px;
}

.tool {
  display: block;
  margin-left: 3px;
  margin-bottom: 5px;
  padding: 8px 12px;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.tool:disabled {
  opacity: 0.5;
  /* cursor: not-allowed; */
}
.tool:disabled:hover {
  background-color: #f0f0f0;
}

.tool:hover {
  background-color: var(--liseret);
}
/*____________________________________________________________________________________________*/
caption.peps-table-title {
  caption-side: top;
  text-align: center;
  color: #ffffff;
  background: #000000;
  background-image: var(--borderCornerLite);
  background-size: contain;
  background-repeat: no-repeat;
  /* border-bottom: 3px solid var(--liseret); */
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(0.25turn, var(--liseret), var(--liseret2), var(--liseret));
  border-image-slice: 1;
  width:100%;
  line-height: 50px;
  font-size: x-large;
}

/*___________________________________ Accordion ____________________________________________*/
.accordion {
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem var(--liseret-shadow);
  --bs-accordion-active-color: #ffffff;
  --bs-accordion-active-bg: var(--liseret);
}

/*___________________________________ box ____________________________________________*/

a.link-peps-login {
  color: #ffffff;
}
a.link-peps-login:hover {
  color: var(--liseret);
}

div.peps-login-logo {
  margin-top: 80px;
  text-align: center;
}

img.peps-login-logo {
  width: 500px;
  height: auto;
}
select.peps-form {
  border-color: #6c6c6c;
}







div.peps-form {
  position: relative;
}
select.peps-form {
  font-size: 1em;
  padding: 6px 12px;
  border-radius: 0.5em;
  border: 1px solid #6c6c6c;
  outline:none;
  width: 100%;
}
input.peps-form {
  font-size: 1em;
  padding: 6px 12px;
  border-radius: 0.5em;
  border: 1px solid #6c6c6c;
  outline:none;
  width: 100%;
}
input.peps-form.peps-form-warn {
 border: 3px solid red;
}
input.peps-form.cahierDeCotes {
  padding: 2px 2px;
  height: 25px;
}
input.peps-form.attributionCours{
  padding: 6px 6px;
  font-size: 0.8em;
}
fieldset.box-input {
  border: 1px solid #6c6c6c;
  border-radius: 5px;
  padding: 5px;
}
input.peps-form:focus {
  border-color:var(--liseret);
  /*box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(214, 34, 85, 0.6);*/
}
select.peps-form:focus {
  border-color:var(--liseret);
  /*box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(214, 34, 85, 0.6);*/
}
label.fieldset {
  display: flex;
  position: relative;
  top: -20px;
  left: 15px;
  background: #ffffff;
  width: fit-content;
  font-weight: bold;
}
label.peps-form {
  position: absolute;
  left: 15px;
  top: 6px;
  color: #6c6c6c;
  transform-origin: 6px 12px;
  transition: transform 0.2s ease-in-out;
}
input.peps-form:focus + label.peps-form, input:not(:placeholder-shown) + label.peps-form {
  padding:0 0.2em;
  position:absolute;
  left:15px;
  background-color:white;
  color: var(--liseret);
  transform: translateY(-1em) scale(0.8);
}
select.peps-form:focus + label.peps-form, select:not(:placeholder-shown) + label.peps-form {
  padding:0 0.2em;
  position:absolute;
  left:15px;
  background-color:white;
  color: var(--liseret);
  transform: translateY(-1em) scale(0.8);
}

input:not(:placeholder-shown) + label.peps-form {
  color: #6c6c6c;
}
select:not(:placeholder-shown) + label.peps-form {
  color: #6c6c6c;
}

input.peps-form::placeholder {
  color: transparent;
}
select.peps-form::placeholder {
  color: transparent;
}

/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
  box-shadow: 0 0 0 30px white inset !important;
  /*  -webkit-box-shadow: 0 0 0 30px white inset !important;*/
}
/*--------------Fleche dans input number---------------------*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance:textfield;
}
/*--------------checkBox---------------------*/
.form-check-input {
  border-color: #6c6c6c;
}
.form-check-input:focus {
  border-color: var(--liseret);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(214, 34, 85, 0.6);
}

.form-check-input:checked {
  background-color: var(--liseret);
  border-color: var(--liseret);
}

/*___________________________________ Popup ____________________________________________*/

.popup {
  position: fixed;
  display:none;
  background: white;
  border: 1px solid #c4c4c4;
  left: 0px;
  top: 0px;
  margin: auto;
  padding: 0px 0px 0px 0px;
  z-index: 100;
}

/*___________________________________ Menu ____________________________________________*/
a.nav-link.list-group-item-action{
  text-decoration: none;
  color: #ffffff;
}
li.nav-item .nav-link.list-group-item-action:hover{
  background-color: rgba(255,255,255,0.2);
}
a.nav-link.list-group-item-action.active{
  color: var(--liseret);
}
a.nav-link.list-group-item-action.disabled{
  color: #8b8b8b;
}


.offcanvas.offcanvas-end{
  width: 300px;
}


/*___________________________________ Sous Menu ____________________________________________*/

div.subMenu{
  min-height: 30px;
}
a div.subMenu{ 
  color: #ffffff;
  text-decoration: none;
}


a.active div.subMenu{ 
  background-color: var(--liseret);
}
a.disable{ 
  pointer-events: none;
  background-color: rgba(0,0,0,0);
}

a.disable div.subMenu .label{
  color: #8b8b8b;
}


div.subMenu:hover{ 
  background-color: var(--liseret2);
}

a div.subMenu .label{
  color: #ffffff;
  display: contents;
}
@media (max-width: 768px) {
  /*div.subMenu { 
    
    margin: auto 8px;
  }*/
  a div.subMenu .label{
    display: none;
  }
  
}

.peps-subMenu-icon {
  width: 25px;
  height: 25px;
}
.peps-subMenu-icon-disabled {
  width: 25px;
  height: 25px;
  filter: invert(86%) sepia(9%) saturate(12%) hue-rotate(351deg) brightness(92%) contrast(76%);
  /*https://codepen.io/sosuke/pen/Pjoqqp*/
}

hr.subMenu{
  color: var(--liseret);
}

div.peps-subMenu {
  padding-left: 5px;
  padding-right: 5px;
}

a.dropdown-toggle.sous-menu::after {
  color : #ffffff;
  display: inline-block;
}



.nav-tabs {
  --bs-nav-tabs-link-hover-border-color: var(--liseret)
}
.nav-tabs .nav-link {
  color: #ffffff;
}
.nav-tabs .nav-link.active.bg-liseret {
  background: var(--liseret);
  color: var(--text-contrast-liseret);
}
.nav-tabs .nav-link.disabled {
  color: #8b8b8b;
}




/*___________________________________ carte de cours ____________________________________________*/

.cardCours {
  min-width: 190px;
  max-width: 210px;
  width: 190px;
}
.cardCours li{
  padding-left: 0px;
  padding-right: 0px;
  font-size:13px;
}
.cardCours.card-body {
  padding-left: 11px;
  padding-right: 11px;
}
.cardCours a:hover {
  color: var(--liseret);
}
.cardCours a {
  text-decoration: none;
  color: #4f4f4f;
}

/*___________________________________ Tableau avec header a 45° ____________________________________________*/

.peps-table-header-rotated td, .peps-table-header-rotated th.peps-th {
  border-top: 1px solid #9c9c9c;
  border-left: 1px solid #9c9c9c;
  border-right: 1px solid #9c9c9c;
  vertical-align: middle;
  text-align: center;
}

th.peps-th{
  padding-top: 0px;
  padding-bottom: 0px;
  min-width: 70px;
}


.peps-table-header-rotated th.rotate-45 {
  background: none;
  position: relative;
  width: 60px;
  /*height: 120px;*/
  height: 180px;
  vertical-align: bottom;
  padding: 0;
  line-height: 0.8;
}

.peps-table-header-rotated th.rotate-45 > div {
  position: relative;
  top: 0px;
  /*left: 60px;*/
  left: 90px;
  height: 100%;

  -ms-transform:skew(-45deg,0deg);
  -moz-transform:skew(-45deg,0deg);
  -webkit-transform:skew(-45deg,0deg);
  -o-transform:skew(-45deg,0deg);
  transform:skew(-45deg,0deg);

  overflow: hidden;

  border-left: 1px solid #9c9c9c;
  border-right: 1px solid #9c9c9c;
  border-top: 1px solid #9c9c9c;
}

.peps-table-header-rotated th.rotate-45 span {
  -ms-transform:skew(45deg,0deg) rotate(315deg);
  -moz-transform:skew(45deg,0deg) rotate(315deg);
  -webkit-transform:skew(45deg,0deg) rotate(315deg);
  -o-transform:skew(45deg,0deg) rotate(315deg);
  transform:skew(45deg,0deg) rotate(315deg);
  /*display: inline-block;*/
  text-align: left;
  
  position: absolute;
  /*bottom: 40px;*/
  bottom: 68px;
  /*left: -35px;*/
  left: -71px;

  white-space: normal;
  word-break: break-word;
  display: flex;
  align-items: center;

  height: 42px;
  /*width: 130px;*/
  width: 210px;

}




.peps-table-header-rotated th.peps-table-first-col {
  min-width: 200px;
}
.peps-table-header-rotated th.peps-table-last-col {
  /*min-width: 120px;*/
  min-width: 180px;
}



table.test {
  text-align: left;
  position: relative;
  border-collapse: collapse; 
}
th.test, td.test {
  padding: 0.25rem;
}
tr.test.red th.test {
  background: red;
  color: white;
}
th.test {
  background: white;
  position: sticky;
  top: 0; /* Don't forget this, required for the stickiness */
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}



/*_________________________ Tableau avec theader fixe ___________________________*/
.table-wrapper {
  overflow-x: auto;
  max-height: 90vh; /* fixe une hauteur maximale */
}

.thead-fixed {
  /* position: sticky; */
  top: 0;
  background-color: white;
  z-index: 999;
}


/*_________________________ Tableau avec tri ___________________________*/
th.sortable::after {
  content: "";
  font-size: 0.8em;
}

th.sortable.asc::after {
  content: "▲▽";
}

th.sortable.desc::after {
  content: "△▼";
}

th.sortable:not(.asc):not(.desc)::after {
  content: "△▽"; /* icône de tri non trié */
}
/*_________________________ Menu Appreciations ___________________________*/
.nav-tabs.appreciation .nav-link.active {
  color: #ffffff;
  background-color: var(--liseret);
}






.text-contrast {
  color: #ffffff;
}


td.groupedCoursTab {
  border-left: solid 12px;
  border-left-color: var(--liseret);
}
tr.groupedCoursTab {
  border-top: solid 3px;
  border-top-color: var(--liseret);
  border-bottom: solid 3px;
  border-bottom-color: var(--liseret);
}




.dropdown-menu-dark {
  --bs-dropdown-link-active-bg: var(--liseret);
}



@font-face {
  font-family: avantgarde;
  src: url(css/AvantGarde.ttf);
}

.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.icon.disable {
    filter: invert(64%) sepia(4%) saturate(12%) hue-rotate(23deg) brightness(86%) contrast(86%);
}


.icon-xl {
  width : 40px;
  height : 40px;
  vertical-align: middle;
}

.icon-md {
  width : 25px;
  height : 25px;
  vertical-align: middle;
}

.icon-sm {
  width : 15px;
  height : 15px;
  vertical-align: middle;
}

.icon-xs {
  width : 10px;
  height : 10px;
  vertical-align: middle;
}

.icon-invers {
  filter: invert(100%) sepia(98%) saturate(69%) hue-rotate(218deg) brightness(112%) contrast(100%);
}

.btn-square {
  width: 35px;
  height: 35px;
  line-height: 35px;
  font-size: 0.9rem;
  text-align: center;
  padding: 0;
  border-radius: 10%;
}

.btn-square i {
  position: relative;
  top: -1px;
}

.btn-square-sm {
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 0.7rem;
}

.btn-circle {
  width: 35px;
  height: 35px;
  line-height: 35px;
  font-size: 0.9rem;
  text-align: center;
  padding: 0;
  border-radius: 50%;
}

.btn-circle i {
  position: relative;
  top: -1px;
}

.btn-circle-sm {
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 0.7rem;
}

.btn-circle-lg {
  width: 55px;
  height: 55px;
  line-height: 55px;
  font-size: 1.1rem;
}

.btn-circle-xl {
  width: 70px;
  height: 70px;
  line-height: 70px;
  font-size: 1.3rem;
}

.btn-xs {
  font-size: 0.6rem;
}






/*_________________________ Divers ___________________________*/

.no-select {
  user-select: none; /* Ne permet pas la sélection de texte */
  -webkit-user-select: none; /* Chrome, Safari, Opera */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}


/*_________________________ Notifications ___________________________*/
/* Classe pour forcer le retour à la ligne */
.notify-text-wrap {
  display: block; /* Affiche le texte sur une nouvelle ligne */
  white-space: normal; /* Assure que le texte ne reste pas sur une seule ligne */
  word-wrap: break-word; /* Casse les mots longs si nécessaire */
  word-break: break-word; /* Force le retour à la ligne des mots longs */
}

.notifiable {
  position: relative;
}




/*_________________________ Loader ___________________________*/
.spinner-loader {
  color: var(--liseret);
  width: 5rem;
  height: 5rem;
}