@charset "UTF-8";
@import url('../vendor/fonts/fonts.css');


:root {
  --light: #F9F9F9;
  --blue: #3C91E6;
  --light-blue: #CFE8FF;
  --grey: #EEE;
  --dark-grey: #342E37;
  --red: #DB504A;
  --yellow: #FFCE26;
  --light-yellow: #FFF2C6;
  --orange: #FD7238;
  --light-orange: #FFE0D3;
  --electric-violet: #9400FF;
  --dark-green: #198754;
  --light-green: #66CC99;
  --black-80 : rgba(0, 0, 0, 0.80);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

html, body {
  position: relative;
  min-width: 100vw;
  background-color: #FFFFFF;
}
h2{
  color: var(--black-80);
}
hr{
  color: white;
}
label{
  color: var(--black-80);
  padding: 0.25em 0;
}
select, input, button{
  padding: 0.15em;
}
table{
  margin: 0.40em auto;
}
i{
  margin: 0 0.25em;
}
button{
  border-radius: 0.30em;
}
button:hover{
  cursor: pointer;
  opacity: 0.85;
}
.text-left{
  text-align: left;
}
.text-right{
  text-align: right;
}
.text-center{
  text-align: center;
}
.form-container-row{
  max-width: 98%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  padding: 0 0.50em;
}
.form-container-col{
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 1.80em;
}
.form-container-row table, .form-container-col table{
  width: 98%;
}
.form-item{
  flex: 1;
}

/* ===================== ENHANCED RESPONSIVE DESIGN ===================== */
@media (max-width: 1200px) {
  #FormulairedeSaisie {
    margin-left: 0;
    width: 100vw;
    padding: 0.5em;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60px;
    flex-direction: row;
    overflow-y: visible;
  }
  #lemenu {
    flex-direction: column;
    min-height: unset;
    max-height: unset;
    height: auto;
  }
  .barre-profil {
    width: 100vw;
    left: 0;
  }
}

@media (max-width: 900px) {
  .table-medium, .table-large {
    min-width: 98vw;
    max-width: 100vw;
    font-size: 13px !important;
    border-radius: 0;
  }
  .sidebar h2 {
    font-size: 2em !important;
    height: 45px;
    line-height: 45px;
  }
  #FormulairedeSaisie h2{
    font-size: 18px;
  }
  .barre-profil {
    width: 100vw;
    left: 0;
  }
  .table-large th, .table-large td {
    padding: 0.25em;
  }
}

@media (max-width: 600px) {
  body {
    background-size: cover;
    background-position: center;
  }
  .connex {
    position: static;
    top: unset;
    left: unset;
    transform: none;
    width: 100vw;
    padding: 1em 0.5em;
  }
  table.table-medium, table.table-large {
    min-width: 100vw;
    max-width: 100vw;
    font-size: 12px !important;
    border-radius: 0;
  }
  table.table-medium td, table.table-large td {
    padding: 0.3em 0.5em;
  }
  input, select, button {
    width: 100%;
    font-size: 1em !important;
    box-sizing: border-box;
    margin-bottom: 0.5em;
  }
  .sidebar {
    width: 100vw;
    min-width: 100vw;
    height: auto;
    flex-direction: column;
    position: static;
    padding: 0.5em 0;
  }
  #FormulairedeSaisie {
    margin-left: 0;
    width: 100vw;
    padding: 0.5em;
    text-align: left;
  }
  #apDiv1, #apDiv2, #apDiv3 {
    width: 100vw;
    min-height: 30vh;
    max-height: 60vh;
    padding: 0.5em;
    overflow-x: auto;
  }
  h1 {
    font-size: 1.5em !important;
  }
  label {
    font-size: 1em;
  }
  .barre-profil {
    width: 100vw;
    left: 0;
    min-width: 100vw;
    font-size: 13px !important;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5em 0.5em;
  }
  .barre-profil table tr td {
    padding: 0.15em;
  }
  .btn-plus, .btn-modif, .btn-minus, .btn-normal {
    width: 100%;
    font-size: 1em !important;
    padding: 0.5em 0;
    margin-bottom: 0.5em;
    border-radius: 4px;
  }
  .sidebar h2 {
    font-size: 1.2em !important;
    height: 35px;
    line-height: 35px;
    padding: 0.25em 0;
  }
  .menu li a {
    padding: 0.5em 0.15em;
    font-size: 1em !important;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1em !important;
  }
  .sidebar h2 {
    font-size: 1em !important;
    height: 28px;
    line-height: 28px;
  }
  .barre-profil {
    font-size: 11px !important;
    padding: 0.25em 0.25em;
  }
  label {
    font-size: 0.9em;
  }
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1200px) {
  #FormulairedeSaisie {
    margin-left: 0;
    width: 100vw;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60px;
    flex-direction: row;
    overflow-y: visible;
  }
  #lemenu {
    flex-direction: column;
    min-height: unset;
    max-height: unset;
    height: auto;
  }
}

@media (max-width: 900px) {
  .table-medium, .table-large {
    min-width: 95%;
    max-width: 100%;
    font-size: 13px !important;
  }
  .sidebar h2 {
    font-size: 2em !important;
    height: 45px;
    line-height: 45px;
  }
  #FormulairedeSaisie h2 {
    font-size: 1.50em;
  }
}

@media (max-width: 600px) {
  body {
    background-size: cover;
    background-position: center;
  }
  .connex {
    position: static;
    top: unset;
    left: unset;
    transform: none;
    width: 100vw;
    padding: 1em 0.5em;
  }
  table.table-medium {
    min-width: 98vw;
    max-width: 100vw;
    font-size: 12px !important;
  }
  table.table-medium td {
    padding: 0.3em 0.5em;
  }
  input, select, button {
    width: 100%;
    font-size: 1em !important;
    box-sizing: border-box;
  }
  .sidebar {
    width: 100vw;
    min-width: 100vw;
    height: auto;
    flex-direction: column;
    position: static;
  }
  #FormulairedeSaisie {
    margin-left: 0;
    width: 100vw;
    padding: 0.5em;
    text-align: left;
  }
  #apDiv1 {
    width: 100vw;
    min-height: 30vh;
    max-height: 60vh;
    padding: 0.5em;
  }
  h1 {
    font-size: 1.5em !important;
  }
  label {
    font-size: 1em;
  }
}
/* ********************************************************************************* */
/* Barre d'informations supérieure placée en haut affichant le bouton de Déconnexion */
/* ********************************************************************************* */
.barre-profil{
  position: fixed;
  height: 32px;
  width: calc(100vw - 264px);
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--light);
}
.barre-profil table tr td{
  padding: 0.25em;
  text-align: left;
}
.barre-profil #logout{
  position: absolute;
  top: 0;
  right: 15px;
  height: 32px;
  line-height: 32px;
  padding-left: 0.8em;
  background: var(--blue);
  border: 0.10em solid var(--blue);
  border-radius: 1em;
}

.barre-profil a{
  color: var(--light);
  width: inherit;
  height: inherit;
}

.barre-profil .label{
  text-align: left;
  background-color: var(--light);
  color: var(--blue);
  text-decoration: underline;
}

.barre-profil .barre-item {
  color: var(--red);
}

/* ********************************************************************************* */
/* ************************* Menu de navigation latéraile ************************** */
/* ********************************************************************************* */
#sidebar-title {
  width: 264px;
  height: 68px;
  background: var(--blue);
}
#sidebar-title h2 {
  width: inherit;
  padding-left: 0.25em;
  text-align: center;
  height: 68px;
  line-height: 68px;
  font-family: "Lucida Sans", sans-serif !important;
  font-weight: 600 !important;
  font-size: 2em !important;
  color: white;
}
.sidebar {
  position: fixed;
  width: 264px;
  height: 100vh;
  background: var(--blue);
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  left: 0;
  top: 0;
  z-index: 1500;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}

.sidebar.hide {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.sidebar.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.menu {
  width: 100%;
  background: var(--grey);
  display: flex;
  flex-direction: column;
  background: var(--blue);
  list-style: none;
}
.menu .dashboard a{
  display: block;
  width: 100%;
  font-size: 16px !important;
  padding: 0.7em 1em;
  color: white;
}
.menu .dashboard a:hover{
  color: var(--blue);
  background-color: white;
}
.menu li{
  padding: 0 10px;
}
.menu li a {
  display: flex;
  align-items: center;
  justify-content: start;
  text-decoration: none;
  padding: 1em 0.25em;
  color: var(--light);
  /* border-radius: 0 3em 3em 0; */
}
.menu .dashboard:hover {
  background: var(--light);
  color: var(--blue);
}
.menu li a:hover {
  background: var(--light);
  color: var(--blue);
  border-radius: 0.6em;
  text-decoration: none;
}


/*
.menu .submenu {
  background-color: white;
  border-radius: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.menu .submenu li {
  padding: 0;
  list-style: none;
}
.menu .submenu a {
  color: var(--blue);
  padding-left: 5px;
}
.menu .submenu a:hover {
  background: var(--light);
  color: var(--blue);
  border-radius: 0.6em;
  text-decoration: none;
}
.menu-item .active .submenu{
  display: block;
}
*!



/* ********************************************************************************* */
/* ************************* Menu de navigation latéraile ************************** */
/* ********************************************************************************* */
#lemenu {
  display: flex;
  min-height: 100vh;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  font-weight: 500 !important;
}
#Cadreaide{
  display: flex;
  justify-content: space-between;
  width: calc(100vw - 264px);
  height: auto;
  margin-top: 32px;
  position: fixed;
  z-index: 3000;
  background: transparent;
}
/* Assure que le menu Spry (MenuBarHorizontal) et ses sous-menus apparaissent
   au-dessus des apDiv1/apDiv2/apDiv3 */
#Cadreaide ul.MenuBarHorizontal,
#Cadreaide ul.MenuBarHorizontal ul {
  z-index: 3000;
  position: relative;
}
#Cadreaide ul.MenuBarHorizontal li:hover > ul {
  z-index: 4000;
  position: absolute;
}
/* Exceptions responsive: désactive le position fixed sur écrans étroits */
@media (max-width: 1200px) {
  #Cadreaide {
    position: static;
    width: 100%;
    left: 0;
    top: auto;
    margin-top: 0.5em;
  }
}
@media (max-width: 600px) {
  #Cadreaide {
    position: static;
    width: 100%;
    left: 0;
    top: auto;
    margin-top: 0.5em;
  }
}
/* Balise de contenu central placé à gauche du menu latéral */
#FormulairedeSaisie{
  margin-left: 264px;
  width: calc(100vw - 264px);
  text-align: center;
}
#FormulairedeSaisie h2 {
  margin: 0.50em 0;
  padding-top: 5em;
  font-size: 2.00em;
  text-decoration: underline;
}
#apDiv1 {
  display: block;
  margin: 0 auto;
  position: relative;
  top: 10px;
  width: 95%;
  min-height: 50vh;
  max-height: 80vh;
  z-index: 100;
  overflow: scroll;
}
#apDiv2 {
  height: 50vh;
  z-index: 100;
  overflow: scroll;
}
#apDiv3 {
  height: 50vh;
  z-index: 100;
  overflow: scroll;
}

/* **************************************** */
/* *************** TABLEAUX *************** */
/* **************************************** */
.table-center{
  margin: 0.8em auto;
}
.table-left{
  margin: 0.8em 0 0.8em 0.8em;
}
.table-right{
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  margin-right: 0.8em;
}
.table-medium{
  min-width: 30%;
  max-width: 50%;
  border : 0.10em solid var(--grey);
  border-radius: 6px;
  background-color: var(--grey);
}
.table-medium td{
  padding: 0.5em 1em;
  text-align: left;
}
.table-large{
  min-width: 75%;
  max-width: 90%;
  border: 0.10em solid var(--grey);
}
.table-large td{
  padding: 0.30em;
}
.table-large td span{
  padding-left: 0.30em;
}
.table-large th{
  padding: 0.50em 0;
}
.table-large-head{
  background-color: var(--blue);
  color: white;
}
.table-large-body:nth-child(odd){
  background-color: #f2f2f2;
  color: var(--black-80);
}
.table-form-container{
  width: 95%;
  margin: 0 1.80em;
  border: 0.10em solid var(--grey);
}
/* *************************************** */
/* *************** BOUTONS *************** */
/* *************************************** */

.no-margin{
  margin: 0;
  text-align: center;
}
.auto-margin{
  margin: 0 auto;
}
.btn-normal{
  margin: 0 auto;
  padding: 0.30em 0.50em;
  font-weight: 600 !important;
  border: 1px solid var(--dark-grey);
  border-radius: 4px;
}
.btn-plus{
  margin: 0 auto !important;
  padding: 0.30em 0.50em;
  color: white;
  background-color: var(--dark-green);
  border : 1px solid var(--dark-green);
  font-weight: 600 !important;
  border-radius: 4px;
}
.btn-minus{
  margin: 0 auto !important;
  padding: 0.30em 0.50em;
  color: white;
  background-color: var(--red);
  border : 1px solid var(--red);
  font-weight: 600 !important;
  border-radius: 4px;
}
.btn-modif{
  margin: 0 auto !important;
  padding: 0.30em 0.50em;
  color: white;
  background-color: var(--orange);
  border : 1px solid var(--orange);
  font-weight: 600 !important;
  border-radius: 4px;
}
.btn-large{
  display: block;
  margin: 0 auto !important;
}
.btn-full{
  display: block;
  width: 100%;
  padding: 0.50em 0;
}

/* **************************************** */
/* *************** COULEURS *************** */
/* **************************************** */
.couleur-rouge{
  color: var(--red);
  text-align: center;
  font-weight: bold !important;
}
.couleur-violet{
  color: var(--electric-violet);
  text-align: center;
  font-weight: bold !important;
}
.CouleurChampLecture {
  background-color: #FFCC99;
  font-weight: bold;
  text-align: center;
}

/* **************************************** */
/* *************** LARGEURS *************** */
/* **************************************** */

.largeur-200{
  max-width: 200px;
}
.largeur-100{
  max-width: 100px;
}
.largeur-300{
  max-width: 300px;
}
.largeur-400{
  max-width: 400px;
}
.largeur-500{
  max-width: 500px;
}

/* **************************************** */
/* **************** TAILLES *************** */
/* **************************************** */

.taille-14{
  font-size: 0.80em;
}
.taille-16{
  font-size: 1em;
}
.taille-18{
  font-size: 1.2em;
}
.taille-24{
  font-size: 1.5em;
}
.taille-32{
  font-size: 2.00em;
}

/* **************************************** */
/* ************ FENETRE MODALE ************* */
/* **************************************** */
/* Styles pour la fenêtre modale */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 350px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h3 {
  margin-top: 0;
  color: #333;
  font-size: 18px;
}

.modal-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-buttons button {
  padding: 10px 30px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-modal-oui {
  background-color: var(--dark-green);
  color: white;
}

.btn-modal-oui:hover {
  background-color: var(--dark-green);
}

.btn-modal-non {
  background-color: var(--red);
  color: white;
}

.btn-modal-non:hover {
  background-color: var(--red);
}

/* **************************************** */
/* STYLE POUR LE MESSAGE VEUILLEZ PATIENTER */
/* **************************************** */
#waitOverlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
#waitOverlay .wait-message {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  font-size: 1.5em;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-align: center;
}

/* **************************************** */
/* STYLES MODALES ET FORMULAIRES MODERNES **/
/* **************************************** */

/* Styles pour remplacer Bootstrap */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin: 0.40em auto;
  border: 1px solid #ddd;
}

.table-custom thead {
  background-color: var(--light-blue);
  color: var(--dark-grey);
  font-weight: 600;
}

.table-custom thead th {
  padding: 0.75em;
  text-align: left;
  border: 1px solid #ddd;
}

.table-custom tbody tr {
  border-bottom: 1px solid #ddd;
}

.table-custom tbody tr:hover {
  background-color: #f5f5f5;
}

.table-custom td {
  padding: 0.25em;
  border: 1px solid #ddd;
}

/* Modales */
.modal-custom {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}

.modal-custom.show {
  display: flex;
}

.modal-custom-dialog {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-custom-header {
  padding: 1em;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-blue);
}

.modal-custom-title {
  margin: 0;
  font-size: 1.25em;
  color: var(--dark-grey);
  font-weight: 600;
}

.modal-custom-close {
  background: none;
  border: none;
  font-size: 2.5em;
  cursor: pointer;
  color: var(--dark-grey);
  padding: 0;
  margin: 0;
}

.modal-custom-close:hover {
  color: var(--red);
}

.modal-custom-body {
  padding: 1.5em;
}

.modal-custom-footer {
  padding: 1em;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
  background-color: var(--light);
}

/* Formulaires */
.form-label-custom {
  display: block;
  margin-bottom: 0.5em;
  color: var(--dark-grey);
  font-weight: 600;
}

.form-label-inline {
  display: inline;
  margin-right: 0.5em;
  color: var(--dark-grey);
  font-weight: 600;
}

.form-control-custom {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: "Open Sans", sans-serif;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 5px rgba(60, 145, 230, 0.3);
}

.form-select-custom {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: "Open Sans", sans-serif;
}

.form-select-custom:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 5px rgba(60, 145, 230, 0.3);
}

/* Badge/highlight pour les infos patient */
.badge-primary {
  background-color: var(--light-blue);
  color: var(--dark-grey);
  padding: 0.30em 0.50em;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin: 0 0.25em;
}

/* Boutons */
.btn-secondary-custom {
  background-color: var(--dark-grey);
  color: white;
  padding: 0.30em 0.50em;
  border: 1px solid var(--dark-grey);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary-custom:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary-custom {
  background-color: var(--blue);
  color: white;
  padding: 0.5em 0;
  border: 1px solid var(--blue);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}