
/*============theme light/dark============*/
:root{
--bied:#ffffff; /**loun lkhalfia**/
--azrak:#4ec2ff; /**loun dial lmenu 3limen**/
--gris-text: #5c5c5c; /**loun dial text**/
--zrak-hover: #4ab9f3; /**selection**/
--zrak-input: #4ec2ff; /**text dial input color**/
--gris-bg: #f7f6fb; /**loun dial lkhalfia dakhilia**/
--Pistachio: #55d045;/**loun dial champ text**/
--PistachioGhamek: #269717;/**loun dial hover champ text**/
--titres:#252525;
--textleftnav:#ffffff;
}

.darkmode{
--bied:#1c1c1c; /**loun lkhalfia**/
--azrak:#003957; /**loun dial lmenu 3limen**/
--gris-text: #dadada; /**loun dial text**/
--zrak-hover: #053148; /**selection**/
--zrak-input: #4ec2ff; /**text dial input color**/
--gris-bg: #292929; /**loun dial lkhalfia dakhilia**/
--Pistachio: #269717;/**loun dial champ text**/
--PistachioGhamek: #55d045;/**loun hover dial champ text**/
--titres:#ffffff;
--textleftnav:#ffffff;
}



*{
  margin: 0;
  padding: 0;
  outline: 0;
  appearance: 0;
  border: 0;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  margin: 0px;
  padding: 0px;
  font-family: "Montserrat", sans-serif;
  background-color:var(--bied);
}
.wrapper {
  width: 100%;
  height: 100vh;
}
.insider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.connexionbloc {
  width: 28rem;
  height: auto;
  background-color: var(--gris-bg);
  border-radius: 2rem;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  margin: 8rem auto 0 auto;
}

.connexionbloc form {
  margin-top: 2rem;
  align-items: center;
  width: 100%;
}
.connexionbloc form p {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 1rem 0 1rem 0;
}
.connexionbloc form p label {
  text-align: center;
  display: block;
  font-size: 0.86em;
  color: var(--gris-text);
  margin-bottom: 1rem;
}
.connexionbloc form p input {
  border: none;
  width: 100%;
  height: 40px;
  border-radius: 24px;
  font-size: 14px;
  padding: 0 6% 0 6%;
  color: var(--azrak);
}
.connexionbloc form p button {
  border: none;
  height: 2.5rem;
  border-radius: 24px;
  background: var(--Pistachio);
  color: var(--bied);
  margin: 1rem auto 0rem auto;
  cursor: pointer;
  padding: 0rem 2rem;
  transition: 1s;
}
.connexionbloc form p button:hover {
  border: none;
  height: 2.5rem;
  border-radius: 24px;
  background: var(--PistachioGhamek);
  color: var(--bied);
  margin: 1rem auto 0rem auto;
  cursor: pointer;
  padding: 0rem 2rem;
  transition: 1s;
}


.wrapper .insider .logohead {
  background: var(--zrak-hover);
  width: 100%;
  height: 5rem;
}
.wrapper .insider .logohead img {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 11px 0px;
  width: 230px;
}

/*============left nav============*/
.insider .left {
  width: 20rem;
  background-color: var(--azrak);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 0 2rem 0;
  position: fixed;
}
.wrapper .insider .left ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.wrapper .insider .left ul li a {
  color: var(--textleftnav);
  text-decoration: none;
  font-size: 0.9em;
  margin-left: 10px;
  padding-left: 20px;
  position: relative;
  height: 3rem;    
  width: calc(100% - 10px);
  display: block;
  line-height: 3rem;
  border-radius: 26px 0px 0px 26px;
}

.wrapper .insider .left ul li a i {
  font-size: 20px;
  line-height: inherit;
  width: 20px;
}

.wrapper .insider .left ul li a span {
  margin-left: 16px;
}
.wrapper .insider .left ul li a img {
  float: left;
  width: 24px;
  line-height: 30px;
  display: block;
  margin-right: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.wrapper .insider .left ul li a:hover {
  color: var(--textleftnav);
  text-decoration: none;
  font-size: 0.9em;
  margin-left: 10px;
  padding-left: 20px;
  position: relative;
  height: 3rem;
  width: calc(100% - 10px);
  display: block;
  background-color: var(--zrak-hover);
  border-radius: 26px 0px 0px 26px;
}

.selected {
  text-decoration: none;
  font-size: 0.9em;
  margin-left: 10px;
  padding-left: 20px;
  position: relative;
  height: 3rem;
  width: calc(100% - 10px);
  display: block;
  color: var(--bied);
  background-color: var(--zrak-hover);
  border-radius: 26px 0px 0px 26px;
}

.left .desconnect {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}
/*============left part============*/


.insider .right {
  width: calc(100% - 20rem);
  margin-left: 20rem;
}

.right .content {
  justify-content: center;
  display: flex;
  padding: 2rem;
  flex-direction: row;
  min-height: calc(100vh - 7rem);
}
.right .topbar {
  background-color: var(--gris-bg);
  height: 5rem;
  margin: 2rem 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-radius: 0px 40px 40px 0px;
  padding-left: 2rem;
}
.right .container .mainform {
  width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 2rem auto;
}
.right .topbar .themeswitch .themelight {
  color: #000000;
  font-size: 20px;
}
.right .topbar .themeswitch .themedark  {
  color: #000000;
  font-size: 20px;
}
.right .container {
  background-color: var(--gris-bg);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
}
.right .container h3 {
  text-align: left;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0px;
  color:var(--titres);
}
.right .topbar .username {
  font-size: 1em;
  text-transform: uppercase;
  color: var(--titres);
}
.right .topbar img {
  margin-right: 0.8rem;
  width: 56px;
  height: 56px;
  float: right;
  overflow: hidden;
  object-fit: cover;
  border-radius: 50%;
}
.right .topbar .username .bold {
  font-weight: 600;
}

.right .container form p {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0 0.5rem 0;
}
.right form p label {
  text-align: left;
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--gris-text);
  margin-left: 16px;
}
.right .container form p input {
  border: none;
  width: 100%;
  height: 2.6rem;
  border-radius: 24px;
  font-size: 14px;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--zrak-input);
  background-color: var(--bied);
}
.right .container form p select {
  border: none;
  width: 100%;
  height: 40px;
  border-radius: 24px;
  font-size: 14px;
  padding-left: 4%;
  padding-right: 4%;
  color: var(--azrak);
  font-family: "socialkinabel", "Montserrat";
}
.right .container form p textarea {
  border: none;
  width: 100%;
  border-radius: 24px;
  font-size: 14px;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--zrak-input);
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--bied);
}
.right .container form p button {
  border: none;
  height: 2.5rem;
  border-radius: 24px;
  background: var(--Pistachio);
  color: var(--bied);
  margin: 1rem auto 0rem auto;
  cursor: pointer;
  padding: 0rem 2rem;
  transition: 1s;
}
.right .container form p button:hover {
  border: none;
  height: 2.5rem;
  border-radius: 24px;
  color: var(--bied);
  margin: 1rem auto 0rem auto;
  cursor: pointer;
  padding: 0rem 2rem;
  transition: 1s;
  background: var(--PistachioGhamek);
}
/* ========= input file ==========*/
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 6.1rem;
  margin: 0 auto;
  cursor: pointer;
}

.btn {
  border: 0px solid  var(--gris-text);
  color:  var(--gris-text);
  background-color: var(--gris-bg);
  padding: 8px 20px;
  height: 100px;
  width: 100px;
}

.btn img {
  margin-left: -20px;
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.upload-btn-wrapper input[type="file"] {
  font-size: 100px;
  position: absolute;
  top: 0;
  opacity: 0;
  width: 100%;
  left: 0;
  cursor: pointer;
}

.upload-btn-wrapper1 {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-left: 0;
  width: 100%;
}

.btn1 {
  border: 0px solid gray;
  color:  var(--gris-text);
  background-color: var(--bied);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: normal;
  height: 42px;
  width: 100%;
  background-repeat: no-repeat;
  border-radius: 24px;
}

.upload-btn-wrapper1 input[type="file"] {
  font-size: 100px;
  position: absolute;
  top: 0;
  opacity: 0;
  width: 100%;
  left: 0;
  cursor: pointer;
}

/*----------Slider container----------*/

.slidecontainer {
  width: 100%; /* Width of the outside container */
}

/* The slider itself */
.slider {
  width: 100%;
  height: 4px;
  border-radius: 5px;
  background: var(--azrak);
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}
/* Mouse-over effects */
.slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--Pistachio);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--Pistachio);
  cursor: pointer;
}

/*----------Skills Items----------*/

.skills {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    align-content: space-between;
    flex-direction: row;
    justify-content: space-between;
}
.skillitem {
  width: 49%;
  background: var(--bied);
  border-radius: 17px;
  margin-top: 30px;
  height: auto;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.skillitem img {
  width: 30px;
  display: block;
  height: auto;
}
.skillitem h4 {
  margin: 0;
  font-weight: 600;
}
.skillitem h4.oneliner{
  margin-top: 10px;
  font-weight: 600;
}
.skillitem .contenu {
  margin: 0;
  width: auto;
  float: left;
  color:  var(--gris-text);
}
.skillitem p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
  color:  var(--gris-text);
}
.skillitem p span {
  font-weight: 600;
  color: var(--zrak-input);
}
.skillitem .editsup {
  float: right;
  width: 58px;
}

.skillitem .editsup a img {
  float: left;
  width: 20px;
  display: block;
  height: auto;
  margin-top: 9px;
  margin-right: 0;
  margin-left: 9px;
}

/*=========personalskills=========*/

.personalskills {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  height: 100%;
  justify-content: space-between;
  align-content: space-between;
}

.persoskillitem {
  width: 368px;
  background: var(--bied);
  border-radius: 17px;
  margin-top: 30px;
  padding: 20px;
}
.persoskillitem img {
  float: left;
  display: block;
  height: auto;
}
/*
.styledelete {
  width: auto !important;
  margin: -6px 0px 0px 0px !important;
  float: right;
}*/
.persoskillitem h4 {
  margin: 0;
  font-weight: 600;
}
.persoskillitem .contenu {
  margin: 0;
  width: 260px;
  float: left;
  color:  var(--gris-text);
}
.persoskillitem p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
  color:  var(--gris-text);
}
.persoskillitem p span {
  font-weight: 600;
  color: var(--azrak);
}
.persoskillitem .editsup {
  float: right;
  width: 58px;
}

.persoskillitem .editsup a img {
  float: left;
  display: block;
  height: auto;
}

/*=========Loisir=========*/
.loisirs {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  height: 100%;
  justify-content: space-between;
  align-content: space-between;
}

.loisirsitem {
  width: 45%;
  background: var(--bied);
  border-radius: 17px;
  margin-top: 30px;
  height: 18px;
  padding: 20px;
}
.loisirsitem img {
  float: left;
  width: 36px;
  display: block;
  height: auto;
  margin-top: -8px;
  margin-right: 20px;
}
.loisirsitem h4 {
  margin: 0;
  font-weight: 600;
}
.loisirsitem .contenu {
  margin: 0;
  width: 252px;
  float: left;
  color:  var(--gris-text);
}
.loisirsitem p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
  color:  var(--gris-text);
}
.loisirsitem p span {
  font-weight: 600;
  color: var(--azrak);
}
.loisirsitem .editsup {
  float: right;
  width: 58px;
}

.loisirsitem .editsup a img {
  float: left;
  width: 20px;
  display: block;
  height: auto;
  margin-top: -2px;
  margin-right: 0;
  margin-left: 9px;
}
/*=========Experiences pro=========*/
.dateexp {
    display: block;
    margin-bottom: 14px;
}
.experiences {
    display: flex;
    flex-direction: column;
}
.experience_item {
  background: var(--bied);
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.experience_item p {
  display: inline-block;
  width: 100%;
  margin: 10px 0px 0px 0px;
  font-size: 14px;
  color:  var(--gris-text);
}
.experience_item h4 {
  padding: 0px 0.6rem 0 0;
  margin: 0px 0px 10px 0px;
  color: var(--gris-text);
  font-weight: 500;
  font-size: 16px;
  width: calc(100% - 18px);
}
.experience_item .editsup {
  width: 18px;
  top: 1.4rem;
  right: 1.4rem;
  position: absolute;
}
.experience_item .editsup a img {
  float: left;
  width: 20px;
  display: block;
  height: auto;
  margin-top: -2px;
  margin-right: 0;
  margin-left: 9px;
}
.experience_item .date_formation {
  width: 100%;
  float: left;
  color: var(--zrak-input);
  font-size: 14px;
}
.experience_item ul {
  float: left;
  margin: 10px 0px 0px 0px;
  font-size: 14px;
  color:  var(--gris-text);
  padding-left: 16px;
}
.experience_item ul li {
  margin-bottom: 2px;
}

.del {
  border: none;
  background: none;
  cursor: pointer;
  color: indianred;
  font-size: 21px;
  float: right;
}
.edit {
  border: none;
  background: none;
  cursor: pointer;
  color: darkblue;;
  font-size: 21px;
}
.skillitem button img {
  float: left;
  width: 25px;
  display: block;
  height: auto;
  margin-top: 10px;
  margin-right: 0px;
}


#theme-switch{
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--bied);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0px;
  cursor: pointer;
}

#theme-switch svg{
  fill:var(--Pistachio);
}

#theme-switch svg:last-child{
  display:none;
}

.darkmode #theme-switch svg:first-child{
  display:none;
}

.darkmode #theme-switch svg:last-child{
  display:block;
}




/*----------  media queries  -----------*/


/* moins de 940px */
@media only screen and (max-width: 940px) {
  .right .container .mainform {
    width: 100%;
  }
  .insider .left {
      width: 4.2rem;
      transition: 1s;
      padding: 1.4rem 0 1.4rem 0;
  }
  .insider .right {
    width: calc(100% - 4.2rem);
    margin-left: 4.2rem;
  }

  .wrapper .insider .logohead img {
    display: none;
  }
  .wrapper .insider .left ul li a {
    border-radius: 26px;
    width: 3rem;
    text-align: center;
    padding: 0px;
  }
  .wrapper .insider .left ul li a:hover {
    border-radius: 26px;
    width: 3rem;
    text-align: center;
    padding: 0px;
  }
  .selected {
    border-radius: 26px;
  }
  .wrapper .insider .left ul li a span {
      display: none;
  }
  .right .content {
    padding: 1.4rem;
  }
  .right .container {
    padding: 1.4rem;
  }
  .right .topbar{
    margin: 1.4rem 1.4rem 0 0;
    padding-left: 1.4rem;
    justify-content: flex-start;
  }
  .right .topbar img {
    display: none;
  }
  .right .topbar .username .bold {
    display: block;
  }
  .skillitem {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    min-width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .skills {
    display: flex;
    height: auto;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .skillitem .editsup {
    float: none;
    width: auto;
  }
  .skillitem img {
    width: 30px;
    display: block;
    height: auto;
    margin-top: 0;
    margin-right: 0.6rem;
  }
  .skillitem .contenu {
    margin: 0;
    width: auto;
    float: none;
    color: var(--gris-text);
  }
  .connexionbloc {
    width: 90%;
    margin: 20% auto 0 auto;
  }



}

/* moin de 600px */
@media only screen and (max-width: 600px) {
  .right .topbar .username {
      font-size: 0.8em;
      padding-left: 1rem;
  }
}



