/*-------Code pour format ecran ou general---------*/

* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background-color: #f4f6f9;
    color: #333;
    min-height: 100vh;
}

/* Menu de navigation vertical à gauche */
.sidebar {
    width: 260px;
    background-color: #2c3e50;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse le bouton login vers le bas */
}
.sidebar a img{
    height: 40px;
}

.sidebar button img{
    height: 40px;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    display: flex;
    color: #fff;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 20px;
    padding-left: 10px;
    border-bottom: 2px solid #34495e;
    margin-bottom: 20px;
}
.sidebar-title img{
    height: 50px;
}

.sidebar-title-text {
    padding-left: 10px;
}


/* Liens du menu avec de grosses icônes */
.sidebar a, .sidebar button.btn-login-trigger {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Style des grosses icônes */
.sidebar a i, .sidebar button.btn-login-trigger i {
    font-size: 1.6rem; 
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

/* Effet au survol */
.sidebar a:hover, .sidebar button.btn-login-trigger:hover {
    background-color: #34495e;
    color: #3498db;
    border-left: 5px solid #3498db;
    padding-left: 20px;
}

.sidebar a:hover img {
    filter: invert(53%) sepia(87%) saturate(601%) hue-rotate(179deg) brightness(93%) contrast(93%);
}

/* Bouton login spécifique en bas */
.sidebar-bottom {
    margin-bottom: 20px;
    border-top: 1px solid #34495e;
    padding-top: 10px;
}

/* Zone de contenu à droite */
.content {
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
    position: relative;
}

.gf-popover-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
}
.gf-popover-container .gf-popover.popover-error {
    background-color: #dd0028;
    color: white;
    padding: 12px 48px;
    margin-top: 0;
    margin-bottom: 0;
}

.gf-popover-container .gf-popover .popover-content {
    padding: 0;
    display: flex;
    align-items: center;
}

.gf-popover-container .gf-popover .popover-content span {
    flex: 1;
    position: relative;
    left: 15px;
}

.gf-popover-container .gf-popover .gf-close {
    cursor: pointer;
    transform: scale(0.935);
    font-size: 1.5rem;
}

.gf-popover .gf-close {
    display: block;
    background-repeat: no-repeat;
}

.headcontainer {
  display : flex;
  flex-direction: row;
}

.headIcone img{
    width: 53px;
    height: 55px;
    border:3px solid #263d4c;
    border-radius: 5px;
    margin-right: 1em;
}

.headPortrait img{
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin-right: 1em;
}

.headTitles {
  display : flex;
  flex-direction: column;
}
.headTitle {
  display : flex;
  flex-direction: row;
}

.headcontainer h1 {
  color: #263d4c;
  font-weight: 600;
  line-height: 30px;
  font-size: 2.5em;
}

.h1projet {
  color: #263d4c;
  font-weight: 400;
  line-height: 20px;
  font-size: 1.5em;
}

.btn-add{
  width: 28px;
  height: 28px;
  font-size: 2em;
  /*display: inline-block;
  /*padding: 6px 12px;*/
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url( '../images/plus.png');
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  border: 2px solid black;
    border-top-color: black;
    border-right-color: black;
    border-bottom-color: black;
    border-left-color: black;
    border-radius: 4px;
    margin-left: 0.6em;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.a-propos {
    padding-left: 30px;
}

.filter {
    background: #d1d9e1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.btnLabel{
  display:inline-block;
}

.btnLabelShort{
  display:none;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: sans-serif;
}
.btn-download:hover {
    background-color: #0056b3;
}

.filtercontainer {
  display : flex;
  flex-direction: row;
  justify-content:space-between;
  padding: 5px 1em;
}

.proj-card {
    padding: 4px 1em;
    margin-bottom: 0.5em;
    background-color: #f7f7f7;
    display: flex;
    border: 3px solid transparent;
    border-radius: 5px;
}

.proj-icone {
    width: 48px;
    height: 49px;
    display: inline-block;
    padding: 6px 12px;
    background-size: 44px 44px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    border: 3px solid black;
    border-top-color: black;
    border-right-color: black;
    border-bottom-color: black;
    border-left-color: black;
    border-radius: 5px;
    margin-right: 1em;
}

.proj-buttons {
    display: flex;
    flex-direction: row;
    justify-content: left;
    padding-top: 5px;
    }
.proj-btn {
  display: inline-block;
  color: white;
  padding: 6px 12px;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-right: 3px;
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
.proj-btnActive {
  color: #fff;
  background-color: #5bc0de;
  border-color: #46b8da;
}
.proj-btnEmpty{
  color: #5a5a5a;
  background-color: #b3b3b3;
  border-color: #b3b3b3;
}
.proj-btnLabel{
    display:inline-block;
    }

.proj-btnLabelShort{
  display:none;
}

.proj-btn img{
  /*margin-top:1px;*/
  margin-bottom:-3px
}

.proj-pict{
    display:inline-block;
    }
.proj-pict img{
    padding-right:5px;
    }

.proj_info {
    padding-right: 10px;
}
.proj-data-main {
    display: flex;
}
.proj-data-titles {
    display: flex;
}
.proj-data-title {
    display: flex;
}
.proj-data-title h2{
    width:400px
}

.proj-data-btn {
    
    display: inline-block;
    color: white;
    padding: 2px 12px;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    border: 1px solid #37455e;
    border-radius: 4px;
    margin-left: 1.5em;
    margin-right: 3px;
    background-color: #8fa1c4;
}
.doc-icone {
    width: 12px;
    height: 24px;
    display: inline-block;
    padding: 6px 12px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    margin-right: 1em;
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* --- LE FORMULAIRE DE CONNEXION (MODALE) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

.login-box h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
}

.close-modal:hover {
    color: #e74c3c;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #3498db;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

table.table_list {
  min-width: 600px;
  border-collapse: collapse;
  margin-top: 1em;
}
table.table_list th, td {
  border-bottom: 1px solid rgb(92, 90, 102);
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 10px;
  text-align: left;
}
table.table_list th.tdcenter {
  text-align: center;
}
table.table_list td {
  text-align: left;
  vertical-align: top;
}

table.table_list td.tdcenter {
  text-align: center;
  max-width: 65px;
}

table.table_list td a{
  text-decoration :none;
  font-weight : bold;
  color :rgb(43, 22, 115)
}

.todo_list_btn {
    display: inline-block;
    color: #6a3939;
    padding: 1px 5px;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    border: 1px solid #918f8ce8;
    border-radius: 4px;
    margin-right: 3px;
    line-height: 1.5;
    background-color: #b7d4ff;
}

.todo_list_btn-edit {
    background-color: #ffe2bb;
}

.todo_list_btn-done {
    background-color: #b3b3b3;
    color:#d2d0d0;
}


/*------Code pour format de smartphone-----*/
@media screen and (max-width: 767px)
{
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 80px;
    flex-direction: row;
  }

  .sidebar-top {
    flex-direction: row;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-btnText {
    display: none;
  }
  .sidebar a, .sidebar button.btn-login-trigger {     
      padding: 10px 10px;
  }

  .content{
    margin-left: 0px;
    padding: 10px;
    width: 100%;
    margin-top: 80px;
  }

  .card {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}
    .proj-card {
    padding: 4px 1em;
    margin-bottom: 0.5em;
    background-color: #f7f7f7;
    display: flex;
    border: 3px solid transparent;
    border-radius: 0px;
}
    .proj-btnLabel{
    display:none;
    }

    .proj-btnLabelShort{
    display:inline-block;
    }

    .proj-pict{
    display:none;
    }
}
