@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css)

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background-color: #435165;
    margin: 0;
    opacity: 0;
    transition: opacity 0.5s;
    max-width: 100%;
    overflow-x: hidden;
}

body.login-page {
  background-color: #435165;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login, .register {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 3% auto;
}
.login h1, .register h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}
.login .links, .register .links {
    display: flex;
    padding: 0 15px;
}
.login .links a, .register .links a {
    color: #adb2ba;
    text-decoration: none;
    display: inline-flex;
    padding: 0 10px 10px 10px;
    font-weight: bold;
}
.login .links a:hover, .register .links a:hover {
    color: #9da3ac;
}
.login .links a.active, .register .links a.active {
    border-bottom: 3px solid #E6AE12;
    color: #E6AE12;
}
.login form, .register form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label, .register form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #E6AE12;
    color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"], .login form input[type="email"], .register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}
.login form input[type="submit"], .register form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #E6AE12;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}
.login form input[type="submit"]:hover, .register form input[type="submit"]:hover {
    background-color: #ba8e16;
    transition: background-color 0.2s;
}
.navtop {
    background : #2f3947;
    height: 60px;
    width: 100%;
    border: 0;
}
.navtop div {
    display: flex; /*Flex = Remplissage de tout son conteneur*/
    margin: 0 auto;
    width: 100%;
    height: 100%; /*Changement de 1000px à 100%*/
}

.navtop div h1, .navtop div a {
    display: inline-flex;
    align-items: center;
}
.navtop div h1 {
    flex: 1;
    font-size: 24px;
    padding: 0; /*Padding = Permet de définir les différents écarts de remplissage sur les quatre côtés d'un élément*/
   margin: 0;
    color: #eaebed;
    font-weight: normal;
}
.navtop div a {
    padding: 0 20px;
    text-decoration: none;
    color: #c1c4c8;
    font-weight: bold;
}
.navtop div a i {
    padding: 2px 8px 0 0;
}
.navtop div a:hover { /*hover = Permet de changer l'apparence d'un élément quand on le survole*/
    color: #eaebed;
}
body.loggedin {
    background-color: #f3f4f7;
    display: flex;
  height: 100vh;
  width: 100vw;
  margin: 0;
}
.content {
  height: 100%;
}
.content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 22px;
    border-bottom: 1px solid #e0e0e3;
    color: #4a536e;
}
.content > p, .content > div {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    padding: 25px;
  background-color: #fff;
}
.content > p table td, .content > div table td {
  padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
  font-weight: bold;
  color: #4a536e;
  padding-right: 15px;
}
.content > div p {
  padding: 5px;
  margin: 0 0 10px 0;
}

canvas {
    display: block;}

/************************************/
/*                                  */
/*                                  */
/*                                  */
/*               Ajout              */
/*                                  */
/*                                  */
/*                                  */
/************************************/

.row {
  margin:0;}

.container-fluid {
  padding:0;}

.sidebar {
    display: flex;
    flex-direction: column;
    background: #2f3947;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    padding: 0;
}


.sidebar hr{
    width : 100%;
  border: 2px solid white;
  margin: 2px ;
}

.main_sidebar {
  overflow:hidden;
  max-height:0px;
  transition: max-height 1s ease;
  color: white;
  text-align: center;
}

.main_sidebar.active {
  overflow-y: auto;
}  
  
.title_sidebar {
  list-style-type: none;  
  font-size: 20px;  
  padding : 30px 0 30px 0;
  width:100%;
  color:white;
}

.title_sidebar:hover {
  color: #E6AE12;
}

.item_sidebar {
  text-align: center;
  list-style-type: none;  
  /*font-size: 20px;*/  
  padding : 25px 0 25px 0;
  cursor: pointer;
}

h2.item_sidebar {
  text-align: center; 
  font-size: 20px;  
  padding : 30px 0 30px 0;
  color: white;
}

h3.item_sidebar {
  text-align: left; 
  font-size: 15px;  
  padding : 15px 0 15px 0;
  color: white;
}

.item_sidebar i {
  padding: 2px 8px 0 0;
}


.item_sidebar:hover a {
    color: #E6AE12;
}



.link_sidebar {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.filtres {
  padding :2px;
  margin-bottom: 5px;
}

::-webkit-scrollbar {
  width: 5px;}
  
::-webkit-scrollbar-thumb {
  background: #E6AE12;}
  
a:visited {
    color: white;}
    
a:hover {
    color: #E6AE12;}
    
a:link { 
    text-decoration: none;}

#main_tl, #main_tr, #main_br, #main_bl, #main_m, #main_l, #main_r, #main_t, #main_b {
  border : solid grey;
  padding-top: calc(var(--bs-gutter-x) * 1.5);
  padding-bottom: calc(var(--bs-gutter-x) * 0.5);
}

#main_text {
  border : solid grey;
  text-align: justify;
  align-content: center;
  padding: 10px;
  margin:0;}

.non_confirmed {
  width: 400px;
  padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;}
  
.non_confirmed h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;}
    

.update-btn {
    background-color: #2f3947;
    border-style: solid;
    border-width: 0.5px;
    border-color: #E6AE12;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 25px 0 25px 0;
    transition-duration: 0.4s;
    cursor: pointer;
}

.update-btn:hover {
  background-color: #E6AE12;
  color: white;
}

a span {
  cursor: pointer;
}

#list_langues, #list_filtres {
  margin : 4%
}

.sam-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-top:1.5%;
}

.sam-logo img {
  margin:5px;
}

.logo-bar-icon,
.logo-bar-lang {
  /* background-color:#435165; */
  display: flex;
  align-items: center;
  justify-content: center;
  position:fixed;
  left:50%;
  bottom:2%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.logo-bar-icon {
  margin-bottom:15px;
}

.logo-bar-icon.invisible {
    /* transform: scale(0.6); /* ajuste le ratio selon ton besoin */
    display:none;
}

.logo-bar-icon img {
  margin:5px;
  height:40px;
}

.logo-bar-icon a:hover {
  background-color:white;
  transition: background-color 0.5s ease;
}

.logo-bar-lang {
  bottom:0;
}

.logo-bar-lang.top-right {
  top:2%;
  left:98%;
}

.language-selector select {
    padding: 6px 10px;
    font-size: 14px;
    border: none;
    background-color: transparent;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    appearance: none; /* enlève le style par défaut */
}

.language-selector {
    position: relative;
}


.language-selector select:hover {
    background-color: #435165;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  margin-left: 10px;
  cursor: pointer;
}

.msg {
  text-align: center
}

.delete-account {
  position:fixed;
  bottom:77px;
}

#delete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#delete-modal {
    background: var(--bs-body-bg, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

#delete-modal .modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

#delete-error-msg {
    font-size: 12px;
    color: var(--bs-danger, #dc3545);
    margin-top: 6px;
}

.nav-toggle {
  display: none;
}

#nav-links {
  margin-left: auto;
  width: fit-content;
}

form > h2 {
  text-align: center; 
  margin-bottom:20px;
  margin-left:20px;
  margin-right:20px;
  color: #5b6574;
  font-size: 14px;
}

#indic_username,
#indic_password {
    font-size: 0.9rem;
    line-height: 1.5;
}

#indic_username span,
#indic_password span {
    transition: color 0.2s ease;
    font-weight: 600;
}

#indic_username .invalid,
#indic_password .invalid {
    color: #d32f2f; /* rouge */
    font-weight: bold;
}

#indic_username .valid,
#indic_password .valid {
    color: #2e7d32; /* vert */
    font-weight: bold;
}

#nav-toggle {
  display: none;
}

/************************************/
/*                                  */
/*                                  */
/*                                  */
/*             Réactive             */
/*                                  */
/*                                  */
/*                                  */
/************************************/

/**************/
/*   Commun   */
/**************/

@media screen and (max-width: 1000px) {
  /* PARTIE LOGIN ET REGISTER */
  .login-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .login h1, .register h1 {
    text-align: center;
    color: #5b6574;
    font-size: 22px;
    padding: 12px 0 12px 0;
    border-bottom: 1px solid #dee0e4;
  }

  .sam-logo img {
    max-width: 150px;
    height: auto;
  }

  .login, .register {
    width: 90%;
    max-width: 400px;
    margin: 1% auto;
    margin-bottom: 15px;
  }

  .login form,
  .register form {
    margin: 13px;
  }

  .login form input[type="password"],
  .login form input[type="text"],
  .login form input[type="email"],
  .register form input[type="password"],
  .register form input[type="text"],
  .register form input[type="email"] {
    width: calc(100% - 50px);
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  body.login-page {
    min-height: 100vh;
    overflow-y: auto;
  }

  .logo-bar-icon {
    margin-bottom: 5px;
  }

  .msg {
    text-align: center;
    font-size: 12px;
  }

  .logo-bar-lang.top-right {
    top: 3%;
    left: 90%;
  }

  #lang_form {
    background-color: #435165;
    z-index: 1000;
  }

  /* PARTIE DASHBOARD */
  .row.h-50 {
    height: auto !important;
  }

  .content {
    width: 100%;
  }

  .container-fluid {
    overflow-x: hidden;
  }

  #main_tl, #main_tr, #main_br, #main_bl, #main_m, #main_t, #main_b {
    border: solid grey;
    height: 350px;
    min-height: unset;
    max-height: unset;
    width: 100% !important;
    padding: 0;
  }

  /* PARTIE NAVTOP */
  .navtop div h1 {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    position: relative;
  }

  .navtop div a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #394556;
    border-radius: 8px;
    text-decoration: none;
  }

  .navtop {
    flex-direction: column;
    height: auto;
    padding: 10px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    bottom: -16px;
    left: unset;
    right: 2%;
    transform: unset;
    z-index: 100;
    background: #2f3947;
    border: none;
    border-radius: 0 0 8px 8px;
    color: white;
    width: 48px;
    height: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }

  .nav-toggle:hover {
    background: #394556;
  }

  .nav-toggle i {
    transition: transform 0.3s ease;
  }

  .nav-toggle.open i {
    transform: rotate(180deg);
  }

  #nav-toggle {
    background: #2f3947;
    display: flex;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    grid-column: 1 / -1;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .nav-links.open {
    max-height: 300px;
    opacity: 1;
  }

  .container-fluid.h-100.w-100 {
    padding: 10px;
  }

  /* PARTIE SIDEBAR */
  .sidebar {
    display: block;
    position: fixed;
    top: 0px;
    left: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: #2f3947;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .burger {
    display: block;
    top: 12px;
    left: 10px;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* PARTIE PROFILE */
  .profile-td-title {
    font-size: 13px;
    width: 27vw;
  }

  .profile-td-item {
    font-size: 13px;
    width: 73vw;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  #title-profile {
    font-size: 15px;
  }
}

/**************/
/* Demi-écran */
/**************/

@media screen and (min-width: 768px) and (max-width: 1000px) {
  .navtop div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  #main_l, #main_r {
    border: solid grey;
    height: 50%;
    min-height: unset;
    max-height: unset;
    width: 100% !important;
    padding: 0;
  }
}

/**************/
/* Téléphone  */
/**************/

@media screen and (max-width: 767px) {
  .navtop div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  #main_l, #main_r {
    border: solid grey;
    height: 350px;
    min-height: unset;
    max-height: unset;
    width: 100% !important;
    padding: 0;
  }
}

