/*page*/
:root{
  --bg:#ffffff;
  --panel:#f3f4f6; 
  --muted:#e5e7eb; 
  --ink:#0f172a; 
  --accent:#BBD4FC;
  --accent2:#B2D9BA;
  --edge:#0b1220; 
  --line:#94a3b8;
}

*{ box-sizing: border-box; }

body{
  margin:0; 
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; 
  background:var(--bg); 
  color:var(--ink); 
  display:grid; 
  grid-template-rows: auto 1fr auto;
  min-height:100vh;
  user-select: none;
  }

header{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc); 
  border-bottom:1px solid #e5e7eb;
  height:50px;
  padding-right: 1em;
  padding-left: 1em;
  
}

header #titre_appli{ 
  font-size:1.5rem; 
  font-weight:normal ; 
  letter-spacing:.2px;
  cursor:pointer; 
}

#aff_mode{
  position:absolute;
  z-index: 2;
  width:400px;
  height:100px;
  left: 50%;
  top:50%;
  transform: translate(-50%, -50%);
  background-color: rgba(150, 150, 150, 0.6);
  border-radius: 10px;
}

#aff_mode #conteneur{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height:100%;
}

#texte_mode{
  font-size:1.5rem;
}

#application{ 
  display:grid; 
  grid-template-columns: 60px 1fr; 
  height: calc(100vh - 80px); 
}

.left{ 
  padding:.75rem;
  padding-top: 0; 
  background:var(--panel); 
  border-right:1px solid #e5e7eb; 
  overflow:auto; 

}
.right{ 
  position:relative; 
  background:#ffffff; 
  display:flex; 
  min-height:0; 
}

#animation{
  display: grid;
  grid-template-rows: 70px 1fr; 
  width: 100%;
  height: calc(100vh - 80px);
}

.ligne{
  border-bottom:1px solid var(--line);
  display: block;
  width:100%;
}

/*canvas*/
#conteneur_graphique{
  display:grid;
  grid-template-columns: 1fr 370px;
  height:calc(100vh - 150px); 
}

#canvas{ 
  display:block; 
  width:100%; 
  height:calc(100vh - 150px); 
}

#fantome{
  height:calc(100vh - 150px);
  
}

footer{
  text-align:center; 
  font-size:.7rem; 
  color:#475569; 
  padding:.5rem; 
  border-top:1px solid #e5e7eb; 
  background:#fafafa;
}

footer a { 
  color:inherit; 
  text-decoration:underline dotted; 
}
footer span { 
  font-variant: small-caps; 
}


/*menu*/
.menu {
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background:var(--panel);
}

.menu #separateur_enonce{
  width:45px;
  border-bottom: 1px solid #b3b3b3;
}

.menu .bt_menu{
  margin:0.5em 0.5em 0.5em 0.5em;
  border-bottom: 1px solid #00000000;
}


.menu .bt_menu:hover{
  cursor:grab;
  border-bottom:  1px solid #000000ff;
}


.menu .bt_menu2{
  background-color: white;
  margin:0.5em 0.5em 0.5em 0.5em;
  padding:3px 3px 3px 3px ;
  border:1px solid #d1d5db; 
  border-radius:5px;
  display: flex;
  justify-content: center;
  align-items: center; 
}

.menu .bt_menu2:hover, button:hover{ 
  border:1px solid #000000;
}

/*Slider*/ 
#conteneur_slider{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width:100%;
  height:70px;
  border-bottom: 1px solid #C4C4C4;
}

input[type="range"] {
    appearance: none;
    background: #a5a5a5;
    width:300px;
    height: 10px;
    border-radius: 50px;
    background-image: linear-gradient(#0078af,#2bb8fa);
    background-size: 50% 100%;
    background-repeat: no-repeat;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 16px;
  width: 16px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  /*margin-top: -14px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  border: 1px solid #000000;
  height: 16px;
  width: 16px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
  border: 1px solid #000000;
  height: 16px;
  width: 16px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

#txt_variable{
  margin-left: 0.5em;
  padding-bottom: 0.3em;
  width:60px;
  user-select: none;
}

/*Tableau*/
.conteneur_tableau{
  position: absolute;
  top: 100px;
  right:20px;
  z-index: 2;
  width : 350px;
  height:calc(100vh - 200px);
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:5px;
  overflow-y:scroll ;
}

.conteneur_tableau1{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height:100%;
  min-height:460px;
  padding:0.75em;
}

table{
  padding:2em;
}

caption{
  margin-bottom: 25px;
  font-size: 1.1em;
  font-style: italic;
  user-select: none;
}

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
  text-align: center;
  vertical-align: middle;
  user-select: none;
}

th{
  background-color: lightgray;
}

td{
  min-width:40px;
}

input {
  box-sizing: border-box;
  text-align: center;
  border: none;
  font-size: 1em;
  width:120px;
}

input:focus{
  outline:none;
}

input:disabled{
  background-color: #dee2e6;
}

.bordure{
  border-bottom: 3px solid black;
}

.expression, #exp{
  background-color:antiquewhite;
  min-height:40px;
}

.texte_exp1{
  font-size: 1.4em;
}

.texte_exp2{
  color: #0077b6;
  font-size: 1em;
}

.texte_exp3{
  color: #000000;
  font-size: 1em;
}

/*énoncé*/
.image_menu{
  position: absolute;
  top: 0em;
  left:0em;
  resize:inline;
  overflow:auto ;
  direction: ltr;
  z-index: 1;
  width: 300px;
  min-width: 180px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

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

.image_menu img{
width: 100%;
height: auto;
}

#titre_enonce{
  font-weight: bold;
  user-select: none;

}

#texte_enonce{
  margin-top: 1em;
  margin-bottom: 1em;
  user-select: none;
}

/*menu canvas*/
#bt_enonce2{
  position: absolute;
  top:0.75em;
  left:0.75em;
  z-index:1;
}

#menu_canvas_haut{
  position: absolute;
  top: 0em;
  right:0em;
  z-index: 1;
  margin:.75rem .75rem 0.75rem .75rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}


#menu_canvas_bas{
  position: absolute;
  bottom: 0.1em;
  right:0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width:calc(100vw - 60px);
}

.bt_menu{
  margin:0.5em 0.5em 0.5em 0.5em;
}


#menu_aide{
  font-size: 0.85em;
}

#menu_aide h2{
  margin-bottom: 0;
}

.card{ 
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:14px; 
  padding:.75rem; 
  margin-bottom:.75rem; 
}

.card h2{ 
  margin:.25rem 0 .5rem; 
  font-size:1rem; 
  font-weight:600;
  text-align:center;
  margin-bottom:1rem; 
}

/*boutons*/
.btn, button{ 
  background:#fff; 
  color:var(--ink); 
  border:1px solid #d1d5db; 
  border-radius:10px; 
  padding:.32rem .48rem; 
  font-size:.85rem; 
  cursor:pointer; 
  transition:.15s; 
}

.btn:hover, button:hover{ 
  border-color:#2B6CD6;
}

.btn[aria-pressed="true"]{ 
  border:1px solid #2B6CD6; 
  background-color: var(--accent); 
}



.btn_niveau:hover, button:hover{ 
  border-color:#279C16;
}

.btn_niveau[aria-pressed="true"]{
  border:1px solid #279C16;
  background-color: var(--accent2);
}

.danger{ 
  background:#fff5f5; 
  border-color:#fecaca; 
}

.muted{ 
  background:#f8fafc; 
}

.small{ 
  font-size:.8rem; 
  opacity:.85; 
}


.aide_menu{
  position: absolute;
  top: 0em;
  left:0em;
  resize:inline;
  overflow:auto ;
  direction: ltr;
  z-index: 2;
  width: 300px;
  min-width: 180px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

.row{ 
  display:flex; 
  flex-wrap:wrap; 
  align-items:center;
 }


.centrer{
  justify-content: space-around;
}

.export_menu{
  position: absolute;
  top: 0em;
  left:0em;
  z-index: 2;
  width: 300px;
  min-width: 180px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

/*bouton switch*/
 .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.bt_switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196F3;
  -webkit-transition: .4s;
  transition: .4s;
}

.bt_switch:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .bt_switch {
  background-color: #ccc;
}

input:focus + .bt_switch {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .bt_switch:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded bt_switchs */
.bt_switch.round {
  border-radius: 24px;
}

.bt_switch.round:before {
  border-radius: 50%;
}

#texte_switch {
  font-size: 0.8em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

#texte_switch_etat{
  font-size: 0.7em;
  margin-bottom: 0.5em;
}

#bt_qualite{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*fenetre dimension*/
#conteneur_dim{
  position: absolute;
  bottom: 0.5em;
  left:0.5em;
  z-index: 2;
  background-color: rgba(150, 150, 150, 0.6);
  border-radius: 5px;
}

#dim_fenetre{
  font-size: 0.8em;
  margin:0.5em;
}


/*disposition adptative*/
@media (max-width:586px) {
  header h1{ 
    font-size:1rem; 
    letter-spacing:0px;
  }
  .logo_irem img{
    height:30px;
  }
}

@media (max-width:450px) {
  .conteneur_tableau{
    right:0;
     width : 300px;
  }
  input[type="range"] {
   width:200px;
 }
 table{
  padding:0;
  }
}

@media (max-width:500px) {
.logo_irem img{
  display:none;
}

@media (max-width:319px) {
#application{ 
  height: calc(100vh - 95px); 
}
