 /*page*/
:root{
  --bg:#ffffff;
  --panel:#f3f4f6; 
  --muted:#e5e7eb; 
  --ink:#0f172a; 
  --accent:#BBD4FC; 
  --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;
  height:100vh;
  width:100vw;
  }

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;
  user-select: none;
}

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

}

.left{ 
  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: calc(100vw - 70px);
  height: calc(100vh - 80px);
}

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



#conteneur_svg{ 
  width:100%; 
  height: 100%; 
}

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

.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;
}

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; 
}

/*Slider*/ 
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.5em;
  min-width:60px;
  user-select: none;
}


/*Tableau*/
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:150px;
}

input:focus{
  outline:none;
}

.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;
}

/*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;
}


/*énoncé*/
.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; 
}

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

.image_menu{
  position: absolute;
  top: 3em;
  left:3.6em;
  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 .conteneur .titre{
  font-weight: bold;
}

.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;
}

.image p{white-space: nowrap;overflow: hidden; text-overflow: ellipsis;}

/*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: 3em;
  left:3.6em;
  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: 3em;
  left:3.6em;
  z-index: 2;
  width: 300px;
  min-width: 180px;
  height:auto;
  max-height:calc(100vh - 100px) ;
  margin:.75rem;
}

/*outils zoom pan*/
#conteneur_outils_zoom_pan{
  position: absolute;
  bottom: 20px;
  left:70px;
  z-index: 1;
  width: auto;
  height:auto;
  margin-right: -1em;
}


/*disposition adptative*/
@media (max-width:586px) {
  .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:420px) {
.logo_irem img{
  display:none;
}


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