
/*** Style sur login ***/


.container-box {
    display: flex;
    align-items: center;
    height: 100vh;
    background-color: #f1f1f1;
  }
  
  .login-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* align-items: center; */
    width: 400px;
    height: 50vh;
    padding: 20px;
    /* border: 1px solid rgba(0, 0, 0, .1); */
    background-color: rgba(255, 255, 255, .5);
    margin: 0 auto;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, .4);
    border-radius: 5px;
  }
  
  .user-box {
    position: relative;
    margin-bottom: 20px;
  }
  
  .user-box input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #ccc;
  }
  
  .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    padding: 10px;
    pointer-events: none;
    transition: 0.3s;
  }
  
  .user-box input:focus ~ label,
  .user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #333;
    font-size: 12px;
  }
  
  .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('eye.png');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
  }
  
  .login-button {
    width: 100%;
    padding: 10px;
    background-color: rgba(249, 88, 26, .8);;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  
  /*** Style sur les navbars ***/
  .horizontal-menu {
    position: sticky;
    top: .1px;
    z-index: 999;
}

  .top-navbar {
    padding: 0 40px;
  }
  
  .vertical-navbar {
    /* background-color: rgba(0, 0, 0, .1); */
    box-shadow: -5px 5px 15px rgba(0,0,0,.9);
    border: none;
    position: fixed;
    z-index: 999;
    height: 100%;
    width: 20vw;
  }
   
  .nav.page-navigation {
    display: flex; 
    flex-direction: row;
    align-items: flex-start;
  }
  
  .vertical-navbar .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    width: 100%;
    height: 20%;
  }
  
  .nav-link {
    padding: 18px;
    height: 60px;
    display: flex;
    align-items: center;
  }
  
  .nav-link .menu-title, .nav-link ion-icon{
    color: rgba(0, 0, 0, .7);
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 10px;
    /* font-style: italic; */
    font-family: 'EB Garamond', serif;
  }

  .link-icon {
    margin-right: 10px;
  }
  
  .nav-link:hover .menu-title , .nav-link:hover ion-icon {
    color: rgb(249, 96, 36);
  }

  .nav-link.active {
    background: rgba(249, 96, 36, .8);
  }
  
  .nav-link.active .menu-title , .nav-link.active ion-icon {
    color: rgba(248, 245, 244, 0.8);
  }
  

  .corps {
    position: relative;
    width: 80vw;
    margin-left: 20vw;
  }

  .page {
    
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-header {
    position: sticky;
    top: .1px;
  }

  .page-body{

  }

  /* Profile titre  */
  .profil-container h3 {
    font-size: 3rem;
  }

  .profil-container input[type="file"], #cv{
    display: none;
  }

  .profil-container label[for="inputProfil"], label[for="cv"]{
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
    text-align: center;
    background: linear-gradient(to left, rgba(249, 96, 36, .8),rgb(250, 248, 248),rgb(250, 248, 248), rgb(250, 248, 248), rgb(250, 248, 248),rgb(250, 248, 248));
    color: rgba(0, 0, 0, .4);
    border-radius: 5px;
    padding: 8px 20px;
    cursor: pointer;
  }

  /* Photo de profil  */
  .profil {
    position: relative;
  }
  .profil, .profil img {
    margin-right: 20px;
    height: 150px;
    width: 150px;
    box-shadow: -1px 1px 10px rgba(0, 0, 0, .2);
  }

  .profil .dropdown-profil {
    position: relative;
    top: -25px;
    text-align: right;    
  }  

  .menu-profil {
    position: absolute;
    right: 0;    
    height: 0;
    background-color: rgb(255, 255, 255, 1);
    /* background-color: red; */
    list-style: none;
    padding: 0 20px;
    border-radius: 5px;
    overflow: hidden;
    transition: .3s;
  }  

  .show-menu-profil {
    height: auto;
    border: 1px solid rgba(0, 0, 0, .13);
  }

  .btn-view-cv {
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
    text-align: center;
    background: linear-gradient(to left, rgba(13, 248, 72, 0.8),rgb(250, 248, 248),rgb(250, 248, 248), rgb(250, 248, 248), rgb(250, 248, 248),rgb(250, 248, 248));
    color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 8px 20px;
    cursor: pointer;
  }


  
  
  /** menu deroulant **/
  .dropdown-custom {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-toggle-custom {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
  }
  
  .dropdown-menu-custom {
    position: absolute;
    top: -1000%;
    right: 0;
    /* left: 0; */
    background-color: rgba(0, 0, 0, .9);
    list-style: none;
    padding: 0;
    margin: 0;
    /* display: none;     */
    z-index: 1;
    transition: .3s;
  }

  .show-menu {
    top: 100%;
  }

  .dropdown-toggle {
    cursor: pointer;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
  }

  .dropdown-menu-custom li a {
    padding: 10px 20px;
    text-align: start;
    border-bottom: 2px solid rgba(255, 255, 255, .13);
  }
  
  .dropdown-menu-custom li a:hover, a:active {
    background-color: #f1f1f1;
    color: rgba(0, 0, 0, .75);
  }
  
  .dropdown-toggle-custom:focus + .dropdown-menu-custom {
    display: block;  
  }
  
  .dropdown-menu-light-custom {
    background-color: rgba(255,255,255,1);
    border: .5px solid rgb(0, 0, 0, .2); 
    border-radius: 5px;
    color: rgba(0,0,0,.9);
    /* box-shadow: -.5px .5px 5px rgb(0,0,0); */
    z-index: 9999;
  }
  
  .dropdown-menu-light-custom ion-icon{
    color: #0d6efd;
  }
  
  .arrow {
    margin-left: 1px;
  }
  
  /*** Accueil ***/
  .container-card {
    /* background-color: red; */
    height: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px 20px;
  }
  
  .container-card a {
    margin-bottom: 10px;
  }
  
  
  .card {
    /* background: #000; */
  }
  
  
  
  .card-custom {
    height: 160px;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;    
    background-color: rgba(0, 0, 0, .03);
    padding: 0 20px;
    border: none;    
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .4);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    overflow: hidden;    
    transition: .5s;
  }
  
  .card-custom:hover{
    background-color: rgba(249, 96, 36, 0.6);
  }

  .card-custom img {
    width: 40%;
    height: 80%;
  }

  .card-custom:hover img {
    transform: scale(1.1);
  }
  
  .card-content {
    width: 100%;
    height: 95px;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }

  .card-content ion-icon {
    font-size: 4rem;
    margin: auto;
  }

  a {
    text-decoration: none !important;
  }

  .card-custom .card-content h1 {
    color: rgb(249, 96, 36);
    margin: 0;
    transition: .5s;
  }

  .card-custom:hover .card-content h1 {
    color: rgba(0, 0, 0, .5);
    margin: 0;
    transform: scale(1.1);
  }

  .card-custom h4 {
    width: 100%;
    height: 20%;
    /* background-color: rgba(249, 96, 36, .8); */
    color: rgba(0, 0, 0, .5);
    font-size: 1.2rem;
    text-decoration: none;
    text-align: left;
    /* font-weight: 800; */
    border: none;
    margin: 0;
  }

  .card-custom button .nbr {
    display: inline-block;
    border-radius: 50%;
    width: 25px;
    height: 28px;
    background-color: rgba(0, 0, 0, .5);
    color: rgba(255,255,255,1);
    overflow: hidden;
    font-size: 1.1rem;
  }

  .border-card {
    display: block;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, blue, orange,red);
  }
  /* Container de recherche sur la liste de employee */
  .container-custom-search {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    width: 100%;
  }
  
  .container-custom-search .search-form {
    display: flex;
    align-items: center;
  }
  
  .container-custom-search .search-container {
    position: relative;
    display: inline-block;
  }
  
  .container-custom-search .search-container input[type="text"] {
    padding-right: 30px; /* Ajouter un espace pour l'icône */
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
  }
  
  .container-custom-search .search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
  }
  
  .container-custom-search .search-container ion-icon{ 
    color: #888;
   }
  
   /* Cacher le champ de fichier par défaut */
  .container-custom-search input[type="file"], #passingFile {
    display: none;
  }
  
  /* Styliser le bouton de sélection de fichier */
  .container-custom-search label, label[for="passingFile"] {
    display: inline-block;
    background-color: transparent;
    color: rgba(0, 0, 0, .4);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, .5);
    border-radius: 5px;
    padding: 8px 20px;
    cursor: pointer;
  }
  
  /* Appliquer un style lorsqu'un fichier est sélectionné */
  
  /* Afficher le nom du fichier sélectionné */
  .container-custom-search input[type="file"]:valid + label::after {
    content: attr(data-file-name);
    margin-left: 10px;
    font-style: italic;
  }
  
  /* Styliser le bouton d'envoi */
  .container-custom-search .btn-import, .btn-import {    
    padding: 8px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: -1px 2px 3px rgba(0, 0, 0, .75);
  }
  
  /***  Style  du tableau d'employee ***/
  
  #employeeTable thead tr th{
    font-weight: bold;
    color: rgba(0, 0, 0, .75);
  }
  
  #employeeTableBody tr td {
    font-size: .937rem;
    color: rgba(0, 0, 0, .75);
  }
  
  .card .card-header {
    width: 100%;
    font-size: 1.5rem;  
    text-align: left;
    /* background-color: rgba(0,0,0,.1); */
    color: rgb(249, 88, 26, 1);
  }
  
  
  
  
  
  /* Style de la grille des icônes de réaction du tableau d'employee*/
  .reaction-icons {
    display: flex;
    flex-direction: row;    
    justify-content: space-around;
    align-items: flex-start;  
    background-color: transparent;
    border-radius: 4px;
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
  }
  
  /* CSS */
  /* CSS */
  .btn-reaction {
    position: relative;
  }
  
  .btn-reaction::after {
    content: attr(data-title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .btn-reaction:hover::after {
    opacity: 1;
    visibility: visible;
  }
  
  /* Style des boutons de réaction */
  .reaction-icons .btn-reaction {
    padding: 4px;
    margin: 4px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  
  .reaction-icons .btn-reaction  i:not(.custom-icon-delete, .custom-icon-info, .custom-icon-file) {
    font-size: 16px;
    color: #666;
  }
  
  .reaction-icons .btn-reaction:hover {
    opacity: 0.7;
  }
  
  .custom-icon-delete {
    color: rgba(230, 0, 0, 0.8);
  }
  
  .custom-icon-info, .custom-icon-file {
    color: rgba(0, 0, 230, 0.8);
  }
  
  
  .main {
    margin-left: 20vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;  
    overflow: hidden;
  }
  
  .main h2 {
    font-size: 1.7rem;
    color: rgba(0,0,0,.5);
    text-align: center;
  }
  
  .main .card {
    width: 85%;
    margin-bottom: 20px;
    border-radius: 0;
  }
  
  .main .card .card-header {
    width: 100%;
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    color: rgba(0,0,0,.8);
  }
  
  /* .main .card:nth-of-type(odd) .card-header {
    background-color: rgba(249, 96, 36, .3);
  } */
  
  .main .card:nth-of-type(even) .card-header {
    background-color: rgba(0, 0, 0, .13);    
  }
  
  .main .card table thead tr th{
    font-weight: bold;
    color: rgba(0, 0, 0, .75); 
  }
  
  .main .card table {
    text-align: left;
  }
  
  .main .card table td{
    font-size: .937rem;
    color: rgba(0, 0, 0, .7);
  }

  .modal {
    width: 100vw;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    /* background-color: #0d6efd; */
    backdrop-filter: blur(2px);
    flex-direction: row;
    align-items: center;
    z-index: 999;
    /* overflow: hidden; */
    overflow-y: scroll;
    transition: .3s;
  }

  .show-modal {
    height: 100%;
  }

  .eventModal {
    margin: 0 auto;
    width: 50%;
    height: 80%;
    border: none;
    border-radius: 10px;
    box-shadow: 1px 1px 5px #000;
    background: rgba(255, 255, 255, .97);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    overflow: hidden;        
    transform: translateY(-200%);
    transition: .3s;
    z-index: 9999;
  }

  .show-event-modal {
    transform: translateY(0);
  }

  .event-passation {
    width: 70%;
    height: 100vh;    
    overflow-y: scroll;
    margin-top: 140px;
    padding-bottom: 10px;
  }
  
  .fiche-passation {
    height: 0;
    overflow: hidden;
  }

  .show-fiche-passation {
    height: auto;
  }

  #eventTitle {
    /* background-color: rgba(249, 96, 36, 0.6); */
    height: 15%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
  }

  #eventTitle h1{    
    color: rgba(249, 96, 36, .8);
    text-align: center;
  }

  #eventBody {
    padding: 0 15px;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #eventBody-passation {
    padding: 0 15px;
    /* height: 60%; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #eventBody span {
    font-weight: 600;
  }

  #eventFoot {
    height: 15%;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  #eventFoot button{
    margin-left: 10px;
    margin-bottom: 10px;
  }

  
  /* style bouton planning */
  .head-main {
    position: sticky;
    top: 78px;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 5px rgba(0, 0, 0,.1);
    background-color: rgba(255, 255, 255, .8);
    backdrop-filter: blur(10px);
    height: 60px;
    z-index: 55;
  }

  .button-planning {
    display: flex;
    justify-content: center;
    align-items: start;    
    padding: 9px 12px;
    gap: 8px;    
    height: 40px;
    /* min-width: 150px; */
    border: none;
    background: rgba(4, 169, 180, 0.904);  
    border-radius: 20px;
    border: solid 2px rgba(4, 169, 180, 0.904);
    cursor: pointer;    
    position: relative;
    overflow: hidden;
    z-index: 10;
  }

  .button-planning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #fffdfd;
    transition: .5s;
    z-index: -1;
  }

  .button-planning .label, .button-planning ion-icon {
    line-height: 22px;
    font-size: 17px;
    color: rgba(255, 255, 255, 1);
    font-family: sans-serif;
    /* letter-spacing: 1px; */
    font-weight: 600;
  }  

  .button-planning:hover::before {
    width: 100%;
  }

  .button-planning:hover > .label,  .button-planning:hover > ion-icon {
    color: rgba(4, 169, 180, 0.904);    
  }

  .button-planning:hover .svg-icon, .button-planning:hover ion-icon {
    animation: slope 1s linear infinite;
  }

  @keyframes slope {
    0% {}

    50% {
      transform: rotate(20deg);
    }

    100% {}
  }

  @media (max-width: 991px) {

    .top-navbar {
      padding: 0;
    }

    .vertical-navbar {
      width: 0;
      overflow: hidden;
      transition: .3s;
      /* backdrop-filter: blur(2px); */
      background-color: rgba(253, 250, 250, 1);
    }

    .show-vertical-navbar {
      width: 50%;
    }

    .corps {
      width: 100%;
      margin: 0 auto;
    }

    .main .card {
      width: 100%;
      overflow-x: scroll;
    }

    .main .card .card-header {
      width: 100%;
    }

    .container-custom-search {
      flex-direction: column;
      justify-content: space-between;
      width: 100%;
    }

    .container-custom-search .search-form {
      margin-bottom: 10px;
    }

    #eventModal {
      width: 90%;
      color: rgba(175, 175, 175, 0.933);
    }
  }