/* new GUI 2026 for MopsConstruction editor&player */
/* Poppins Regular */
@font-face {
  font-family: "Poppins";
  src: url("Poppins-Regular.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Poppins Medium */
@font-face {
  font-family: "Poppins";
  src: url("Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Poppins Bold */
@font-face {
  font-family: "Poppins";
  src: url("Poppins-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue-lite: #87aac5;
  --blue-litmed: #6492b4;
  --blue-medium: #34546c;
  --blue-dark: #213545;
  --blue-key: #35bdf5;
  --blue-very-dark: #162129;
  --blue-ultra-dark: #080d0f;
  --blue-ultra-dark-hover: rgba(116, 163, 185, 0.3);
  --blue-border: #47515a;
  --orange-mops: #ff8011;
  --red-mops: #f14e23;
  --font-color: #555;
  --font-hover-color: orange;
  --max-gui-width: 1284px;
  --min-gui-width: 760px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  background: var(--blue-medium);
  color: #cccccc;
  background-image: url(bg.png);
  background-position: center top;
  background-repeat: repeat;
  /* overflow: hidden; */
  text-align: center;
}

.hide {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.show {
  visibility: visible;
  opacity: 1;
  outline-color: transparent;
}
/* --------------------------------------------------------- */
/* -----------------------Modal ---------------------------- */
.mce_modal {
  display: block; /* Hidden by default */
  position: fixed; /*fixed;  Stay in place */
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}
/* Modal Header */
.mce_modal-header {
  padding: 2px 16px;
  background-color: #2d2d2d;
  color: #cccccc;
}

/* Modal Body */
.mce_modal-body {
  padding: 2px 16px;
}

/* Modal Footer */
.mce_modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Modal Content */
.mce_modal-content {
  position: relative;
  background-color: #2d2d2d;
  margin: 150px auto;
  padding: 0;
  border: 4px solid rgb(48, 10, 10);
  width: 20%;
  min-width: 400px;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.3s;
}
.mce_modal_but_box {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  /* justify-content: center; */
  /* align-items: start;
  align-content: center; */
  /* flex-wrap: nowrap; */
  margin: 2px auto;
}
/* --------------------------------------------------------- */
.mcep_gui {
  display: grid;
  width: clamp(
    calc(var(--min-gui-width) / 0.75 + 6px),
    86dvw,
    calc(var(--max-gui-width) / 0.75 + 8px)
  );
  margin: 5px auto;
  grid-template-columns: 75% 25%;
  gap: 2px;
  padding: 3px;
  background-color: rgb(22, 33, 41, 0.65);
  border-radius: 6px 6px 6px 6px;
}
.mcep_right {
  border: 2px solid #05080a;
  background-color: #162129a6;
  border-radius: 6px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  /* overflow: hidden;  */
  font-size: clamp(0.65rem, 0.95dvw, 0.8rem);
  height: calc(
    clamp(
        calc(var(--min-gui-width) / 0.75 + 6px),
        86dvw,
        calc(var(--max-gui-width) / 0.75 + 8px)
      ) *
      0.75 * 9 / 16 + 120px + 60px
  );
}
.mcep_gui_off {
  display: grid;
  width: clamp(
    calc(var(--min-gui-width) / 0.75 + 6px),
    75dvw,
    calc(var(--max-gui-width) / 0.75 + 8px)
  );
  margin: 5px auto;
  grid-template-columns: 100%;
  gap: 2px;
  padding: 3px;
  background-color: rgb(22, 33, 41, 0.65);
  border-radius: 6px 6px 6px 6px;
}
/* .mcep_gui div {
  border: 2px solid #05080a;
  background-color: #162129a6;
  border-radius: 6px 6px 6px 6px;
} */
.mcep_top {
  display: grid;
  grid-template-columns: 70px auto 240px;
  /* flex-wrap: nowrap; */
  height: 60px;
  align-items: center;
}
.mcep_top_title {
  margin: auto 5px;
  color: var(--blue-lite);
  font-weight: bolder;
  flex-grow: 1;
  height: 100%;
  display: flex;
  font-size: 1.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.mcep_top_icon {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}
.mcep_top_icon img {
  /* width:50px;
    height: auto;
  display: block;   */
  height: 100%;
  width: auto;
  object-fit: contain;
  padding: 5px;
}
.mcep_top_icon a {
  display: flex; /* ou block */
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.title_ed {
  color: var(--orange-mops);
}
.mcep_p5box {
  padding: 0px;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto; /* IMPORTANT */
  display: flex;
  justify-content: center;
  align-items: center;
}
.mcep_left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* indispensable */
}
.mcep_left > div {
  border: 2px solid #05080a;
  background-color: #162129a6;
  border-radius: 6px 6px 6px 6px;
}

.pan {
  flex: 0 0 auto; /* hauteur selon contenu */
}
.panScroll {
  flex: 1 1 auto; /* occupe tout l’espace disponible */
  overflow-y: auto; /* scroll si contenu dépasse */
  min-height: 0; /* indispensable pour que le scroll fonctionne */
  /* border-bottom: 3px solid #05080a; */
  padding: 5px 3px;
}
.panScroll::-webkit-scrollbar {
  width: 8px;
}
.panScroll::-webkit-scrollbar-track {
  background: rgb(55, 55, 55);
  border-radius: 4px;
}
.panScroll::-webkit-scrollbar-thumb {
  background: rgb(91, 91, 91, 0.5);
  border-radius: 4px;
}
.panScroll::-webkit-scrollbar-thumb:hover {
  background: rgb(91, 91, 91);
  border-radius: 4px;
}

/* .mcep_right {
  font-size: clamp(0.65rem, 0.95dvw, 0.8rem);
  height: calc(
    clamp(
        calc(var(--min-gui-width) / 0.75 + 6px),
        98dvw,
        calc(var(--max-gui-width) / 0.75 + 8px)
      ) *
      0.75 * 9 / 16 + 125px + 60px
  );

  grid-row: 1 / 4;
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

.mcep_right_title {
  font-size: 0.9rem;
  margin: 2px auto;
} */
.neip-title {
  margin: auto 5px;
  color: var(--blue-lite);
  font-weight: bolder;
  font-size: 1rem;
  justify-content: center;
  align-items: center;
}
/* -------------- hr --------------------------------*/
.hrstop {
  height: 3px;
  border-width: 0;
  color: rgb(0, 0, 0);
  background-color: rgb(0, 0, 0);
  margin: 2px 0px;
}
.hrlite {
  height: 1px;
  border-width: 0;
  color: rgb(0, 0, 0);
  background-color: rgb(0, 0, 0);
  margin: 2px 20px;
}
/* ---------elements du panneau de droite ---------------- */
/* .pan-grid {
  height: 100%;
  display: grid;
  grid-template-rows: max-content auto max-content max-content;
}
.pan-top {
  padding: 3px;
  height: max-content;
  margin-top: 12px;
}
.pan-content {
  padding: 0px 3px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}
.pan-footer {
  padding: 5px;
  height: max-content;
  margin-top: auto;
}
.pan-help {
  padding: 5px;
  height: max-content;
} */
/* ----------------------------------------------------- */
/* .pan-content::-webkit-scrollbar {
  width: 8px;
}
.pan-content::-webkit-scrollbar-track {
  background: rgb(55, 55, 55);
  border-radius: 4px;
}
.pan-content::-webkit-scrollbar-thumb {
  background: rgba(129, 129, 129, 0.5);
  border-radius: 4px;
}
.pan-content::-webkit-scrollbar-thumb:hover {
  background: rgb(91, 91, 91);
  border-radius: 4px;
} */
/* new ntoggle ------------------------------------------*/
.ntoggle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 0px 10px;
}
/* garder l'input accessible mais invisible */
.ntoggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* style texte par défaut */
.ntoggle .text {
  color: #999;
  transition: color 0.18s ease;
}
.nleft {
  text-align: right;
}
.nright {
  text-align: left;
}
/* état non coché : gauche active, droite atténuée */
.ntoggle input:not(:checked) ~ .nleft {
  color: #2196f3;
  font-weight: 600;
  font-size: 1.2rem;
}
.ntoggle input:not(:checked) ~ .nright {
  color: #999;
}

/* état coché : droite active, gauche atténuée */
.ntoggle input:checked ~ .nleft {
  color: #999;
}
.ntoggle input:checked ~ .nright {
  color: #ff8011;
  font-weight: 600;
  font-size: 1.2rem;
}
/* slider visuel simple */
.ntoggle .nslider {
  width: 60px;
  height: 26px;
  background: #2196f3;
  display: inline-block;
  border-radius: 999px;
  position: relative;
  margin: auto;
}
.ntoggle .nslider::after {
  content: "";
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.18s ease;
}
.ntoggle input:checked ~ .nslider {
  background: #ff8011;
}
.ntoggle input:checked ~ .nslider::after {
  left: 37px;
}
/* --------- pbox ----------------------------------- */
.mcep_p5box > canvas {
  width: 100% !important;
  height: 100% !important;
  /* aspect-ratio: 16 / 9 !important; */
  /* display: block; */
}
/* ------------------Boutons---------------------- */
.mcep_5but_box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  width: 85%;
  margin: 20px auto 5px auto;
}
.mcep_2but_box {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mcep_3but_box {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}
.mcep_5butbis_box {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
  width: 95%;
  margin: 10px auto 10px auto;
}
.mcep_but_box {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: start;
  align-content: center;
  flex-wrap: nowrap;
  margin: 3px auto;
}
.bottom_but_box{
  display: grid;
  grid-template-columns: auto max-content;
  width: 95%;
}
/* --------------------------------------------------- */
.btn {
  display: block;
  position: relative;
  padding: 0px;
  cursor: pointer;
  margin: auto;
  /* width: clamp(28px, 2.5dvw, 42px); */
  color: #fff;
  background-color: var(--blue-ultra-dark);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--blue-border);
  margin: 3px auto;
}
.btnOn {
  background-color: #f14e23;
}
.btn:enabled:hover {
  background-color: var(--blue-ultra-dark-hover);
}
.btn:disabled {
  cursor: auto;
  color: #1c1b1b;
}
.btnKey {
  font-weight: bold;
  color: #35bdf5;
}
/* ---------- Bouton simple avec tooltip------------- */
.nbtn {
  display: block;
  position: relative;
  padding: 0px;
  cursor: pointer;
  margin: auto;
  /* width: clamp(28px, 2.5dvw, 42px); */
  color: #fff;
}
.nbtnOn {
  background-color: #f14e23;
}
.nbtn > img {
  width: clamp(32px, 2.5dvw, 42px);
  min-width: 32px;
  display: block;
  margin: 3px;
  background-color: var(--blue-ultra-dark);
  border-radius: 3px;
}
.nbtn:enabled:hover > img {
  background-color: var(--blue-ultra-dark-hover);
}
.nbtn:disabled {
  cursor: auto;
  color: #1c1b1b;
}
/* Tooltip */
.nbtn:enabled::after {
  content: attr(data-tip);
  position: absolute;
  top: -20px; /* position initiale */
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform-origin: bottom center;
}

/* Flèche */
.nbtn:enabled::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333; /* 333*/
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Animation au survol */
.nbtn:enabled:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* petit slide vers le haut */
}

.nbtn:enabled:hover::before {
  opacity: 1;
}
/* ------------------------------------------------ */
/* ---------- Bouton rond simple avec tooltip------------- */
.rbtn {
  display: block;
  position: relative;
  padding: 0px;
  cursor: pointer;
  margin: auto;
  /* width: clamp(28px, 2.5dvw, 42px); */
  color: #fff;
}
.rbtnOn {
  background-color: #f14e23;
}
.rbtn > img {
  width: clamp(18px, 1.5dvw, 24px);
  min-width: 18px;
  display: block;
  margin: 3px;
  background-color: var(--blue-ultra-dark);
  border-radius: 50%;
}
.rbtn:enabled:hover > img {
  background-color: var(--blue-ultra-dark-hover);
}
.rbtn:disabled {
  cursor: auto;
  color: #1c1b1b;
}
/* Tooltip */
.rbtn:enabled::after {
  content: attr(data-tip);
  position: absolute;
  top: -20px; /* position initiale */
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform-origin: bottom center;
}

/* Flèche */
.rbtn:enabled::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333; /* 333*/
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Animation au survol */
.rbtn:enabled:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* petit slide vers le haut */
}

.rbtn:enabled:hover::before {
  opacity: 1;
}
/* ----------------- Bouton large avec tool type ---------- */
.nbtnlg {
  display: block;
  position: relative;
  padding: 0px;
  margin: auto;
  cursor: pointer;
  /* width: clamp(64px, 7dvw, 84px); */
  color: #fff;
  /* line-height: 0; */
}
.nbtnlg > img {
  width: clamp(64px, 6dvw, 84px);
  display: block;
  margin: 3px;
  background-color: var(--blue-ultra-dark);
  border-radius: 3px;
}
.nbtnlg:disabled {
  cursor: auto;
  color: #1c1b1b;
}
.nbtnlg:enabled:hover > img {
  background-color: #2d4152;
}

/* Tooltip */
.nbtnlg:enabled::after {
  content: attr(data-tip);
  position: absolute;
  top: -20px; /* position initiale */
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform-origin: bottom center;
}

/* Flèche */
.nbtnlg:enabled::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333; /* 333*/
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Animation au survol */
.nbtnlg:enabled:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* petit slide vers le haut */
}

.nbtnlg:enabled:hover::before {
  opacity: 1;
}
.num {
  font-size: 11px;
  position: absolute;
  right: 5px;
  bottom: 8px;
  color: #ccc;
}
.num_off {
  font-size: 11px;
  position: absolute;
  right: 5px;
  bottom: 8px;
  color: #1c1b1b;
}

/* ---------------------------------------------- */
.EditPanScroll {
  /* background: transparent; */
  overflow-y: auto;
  overflow-x: hidden;
  /* height: max-content; */
}
.EditPanScroll::-webkit-scrollbar {
  width: 8px;
}
.EditPanScroll::-webkit-scrollbar-track {
  background: rgb(55, 55, 55);
  border-radius: 4px;
}
.EditPanScroll::-webkit-scrollbar-thumb {
  background: rgb(91, 91, 91, 0.5);
  border-radius: 4px;
}
.EditPanScroll::-webkit-scrollbar-thumb:hover {
  background: rgb(91, 91, 91);
  border-radius: 4px;
}
.input_cont::-webkit-scrollbar {
  width: 8px;
}
.input_cont::-webkit-scrollbar-track {
  background: rgb(55, 55, 55);
  border-radius: 4px;
}
.input_cont::-webkit-scrollbar-thumb {
  background: rgb(91, 91, 91, 0.5);
  border-radius: 4px;
}
.input_cont::-webkit-scrollbar-thumb:hover {
  background: rgb(91, 91, 91);
  border-radius: 4px;
}
/* ----------------------------------------------------- */
.input_cont {
  font-size: clamp(0.64rem, 1dvw, 0.8rem);
}
.key {
  font-weight: bold;
  color: #35bdf5;
}
/* ----------------------------------------------------- */
.inptxt {
  /* width: 50%; */
  font-size: 1em;
  text-align: center;
  padding: 0px;
  color: #000;
  /* margin: 0px auto;01 */
  color: #000000;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #000;
}
.inptxt:focus {
  outline: #ff8011 solid 1px;
}
.inptxt:disabled {
  color: #3e3e3e;
  background: #a7a7a7;
}
.inputValueBox {
  display: grid;
  grid-template-columns: auto max-content;
  align-items: center;
  padding: 2px 20px 2px 2px;
  width: 100%;
  margin: auto;
  /* background-color: rgba(255, 105, 180, 0.2); */
  column-gap: 5px;
  /* margin: 0 0 0 10px */
}
.inputValueBox3 {
  display: grid;
  grid-template-columns: auto max-content;
  align-items: center;
  padding: 2px 5px;
  width: 90%;
  margin: auto;
  /* background-color: rgba(255, 105, 180, 0.2); */
  column-gap: 5px;
  /* margin: 0 0 0 10px */
}
.inputValueBox2 {
  display: grid;
  grid-template-columns: 70px calc(100% - 70px);
  align-items: center;
  padding: 2px 5px;
  width: 90%;
  margin: auto;
  /* background-color: rgba(255, 105, 180, 0.2); */
  column-gap: 5px;
}
/* --------------------------------------------------- */
.inpColTrBox {
  display: grid;
  /* height:20px; */
  grid-template-columns: 50px auto;
  padding: 0 14px;
  margin: 0 auto;
  column-gap: 5px;
}
.inpColTrBoxLine {
  display: grid;
  /* height:20px; */
  grid-template-columns: 50% 50px auto;
  padding: 0 6px 0 0;
  margin: -2px auto;
  column-gap: 4px;
}
input[type="color"].inpCol {
  width: 40px;
  height: 30px;
  margin: 1px auto;
  border: none;
  background-color: transparent;
}
.inpColTrBoxTitle {
  font-size: 0.8em;
  grid-column-end: span 2;
}
.inpColTrBoxLineTitle {
  text-align: right;
  margin: auto 0;
}
.inpTrans {
  width: 95%;
  height: 10px;
  margin: auto;
  /* padding: 0 10px;  */
  /* background: rgba(192, 192, 192,0.2) */
  background-image: linear-gradient(
    to right,
    rgba(85, 84, 84, 0),
    rgb(7, 7, 7)
  );
  outline: 1px solid var(--blue-ultra-dark);
  border-radius: 10px;
  overflow: hidden;
}
.inpTrans:focus {
  outline: #34546c solid 1px; /*7c7c7c*/
}
.inpTrans:hover {
  outline: #34546c solid 1px; /*7c7c7c*/
}
.inpTrans::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  /* background: #000000; */
  background: #34546c;
  border-radius: 50%;
  cursor: pointer;
}
.rangeColValueBox {
  display: grid;
  height: 20px;
  grid-template-columns: auto 50px;
  padding: 0 4px;
  margin: 2px auto;
}
.rangeCol {
  width: 90%;
  height: 10px;
  margin: auto;
  /* padding: 0 10px;  */
  background: #858585;
  outline: none;
  border-radius: 10px;
  overflow: hidden;
}
.rangeCol:focus {
  outline: #7c7c7c solid 1px; /*7c7c7c*/
}
.rangeCol:hover {
  outline: #7c7c7c solid 1px; /*7c7c7c*/
}
.rangeCol::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  /* background: #000000; */
  background: #34546c;
  border-radius: 50%;
  box-shadow: -205px 0 0 200px #3d3d3d;
  cursor: pointer;
}
.rangeCol:disabled::-webkit-slider-thumb {
  cursor: auto;
}
/* --------------------------------------------------- */
.nNeIconBox {
  display: grid;
  width: 85%;
  margin: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}
/* ---------------------------------------------------- */
.idvis {
  display: grid;
  column-gap: 5px;
  grid-template-columns: 32% 32% 32%;
  margin: auto;
  /* width: fit-content; */
}
/* -------- CheckBox ------------------------ */
.contCkbBox {
  display: flex;
  justify-content: center;
  padding: 3px;
}

/* Ligne checkbox + texte */
.checkBox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}

/* Cache la checkbox native */
.checkBox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style du carré custom */
.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid #fff;
  background-color: #fff;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.1s ease;
  flex-shrink: 0;
}

/* Effet hover */
.checkBox:hover .checkmark {
  border-color: #8f8f8f;
  background-color: #4d4d4d;
}
.checkBox input:disabled + .checkmark {
  border-color: #8f8f8f;
  background-color: #a7a7a7;
  cursor: auto;
}

/* Style quand cochée */
.checkBox input:checked + .checkmark {
  background-color: var(--blue-ultra-dark);
  border-color: var(--blue-border);
}
.checkBox input:checked + .checkmark:hover {
  border-color: #8f8f8f;
  background-color: #4d4d4d;
}
.checkBox input:checked + .checkmark + .checkTitle {
  font-weight: 700;
}
/* Le petit "check" */
.checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* Affiche le check quand cochée */
.checkBox input:checked + .checkmark::after {
  opacity: 1;
}

/* Style du texte */
.checkTitle {
  /* font-size: 16px; */
  user-select: none;
}

/* ---------entrée d'une valeur ------------------------- */
.inpValBox {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 96%;
  margin: 0px auto;
  padding: 2px 5px;
  white-space: nowrap;
}

.inpLabel {
  text-align: right;
  /* font-size: 0.9em; */
  flex-shrink: 0; /* ne se réduit jamais */
}

.inptext {
  /*width: 60px;  ou 100% si tu veux flexible */
  /* min-width: 40px;
  width: clamp(40px, 10vw, 120px); */
  /* font-size: 1em; */
  width: 100%;
  text-align: center;
  padding: 2px 4px;
  color: #000;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #000;
  box-sizing: border-box;
  transition: all 0.15s ease-in-out;
}

/* Hover moderne */
.inptext:enabled:hover {
  outline: 1px solid #ff8011;
  background: #fff;
}

/* Focus */
.inptext:focus {
  outline: 1px solid #ff8011;
  background: #fff;
}

/* Disabled */
.inptext:disabled {
  color: #3e3e3e;
  background: #a7a7a7;
  border-color: #666;
}

.afftext {
  width: 100%;
  text-align: center;
  padding: 2px 4px;
  color: #000;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #000;
  box-sizing: border-box;
  transition: all 0.15s ease-in-out;
}

/* ------------------------------------------------ */
.line-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px auto;
  /* font-family: sans-serif; */
}

/* Titre */
.line-title {
  margin-bottom: 4px;
  /* font-weight: bold; */
}

/* Bloc principal */
.line-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  overflow: hidden;
}

/* Boutons */
.line-btn {
  padding: 2px 4px;
  border: none;
  background: var(--blue-ultra-dark); /* <<< couleur demandée */
  color: #fff; /* texte lisible sur fond sombre */
  cursor: pointer;
  display: flex; /* important */
  align-items: center; /* centre verticalement */
  justify-content: center;
}
.line-btn:disabled {
  cursor: auto;
}

.line-btn:enabled:hover {
  background: var(
    --blue-ultra-dark-hover
  ); /* léger éclaircissement au survol */
}
.line-btn img {
  width: 18px;
  height: 16px;
  display: block; /* supprime le décalage vertical */
}
/* Numéro centré sur fond blanc */
.line-value {
  min-width: 40px;
  text-align: center;
  background: #fff;
  padding: 10 10px;
  color: #000;
  display: flex;
  align-items: center; /* centre le texte verticalement */
  justify-content: center;
}
/* ------DropZone----------------------------- */
.dropzone {
  margin: 10px auto;
  vertical-align: middle;
  border-style: dashed;
  border-color: antiquewhite;
  min-height: 40px;
  border-radius: 10px;
  background-color: var(--blue-ultra-dark);
  color: var(--blue-lite);
  font-weight: bolder;
  flex-grow: 1;
  /* height: 100%; */
  width: fit-content;
  max-width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.dropzone p {
  margin: auto;
  color: #35bdf5;
  font-size: clamp(0.7rem, 0.75dvw, 1rem);
  white-space: nowrap;
  padding: 3px 50px;
}
.dropOff {
  margin: 5px 50px;
  vertical-align: middle;
  border-style: dashed;
  border-color: rgb(61, 56, 49);
  min-height: 40px;
  border-radius: 10px;
  background-color: #0b0b0b;
}

.dropOff p {
  margin: 10px auto;
  color: #000000;
}
/* ========================================================== */
.selectBox {
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  padding: 0 0 0 5px;
  width: 90%;
  margin: 10px auto;
  gap: 5px;
  background-color: var(--blue-ultra-dark);
  border-radius: 4px;
  border: 1px solid var(--blue-border);
}

.selectBoxTitle {
  text-align: right;
}

.select select:enabled {
  /* Reset Select */
  appearance: none;
  border: 0;
  box-shadow: none;
  flex: 1;
  padding: 4px 10px;
  color: var(--blue-very-dark);
  background-color: #fff;
  background-image: none;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  font-size: 0.8rem;
}
.select select:disabled {
  /* Reset Select */
  appearance: none;
  border: 0;
  box-shadow: none;
  flex: 1;
  padding: 4px 10px;
  color: var(--blue-dark);
  background-color: #a7a7a7;
  background-image: none;
  cursor: auto;
  text-align: left;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Remove IE arrow */
.select::-ms-expand {
  display: none;
}
/* Custom Select wrapper */
.select {
  position: relative;
  display: flex;
  width: 100%;
  margin: auto;
  height: 1.6rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #000;
}
.select:enabled:hover {
  background-color: rgb(143, 143, 143);
  border-color: var(--orange-mops);
}
/* Arrow */
.select::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  background-color: var(--blue-medium);
  border-radius: 0 4px 4px 0;
  pointer-events: none;
  z-index: 1;
}
.select::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}
/* Transition */
/* .select2:hover::after {
  background-color: var(--blue-very-dark);
} */
.select:enabled:hover::before {
  border-right: 2px solid var(--orange-mops);
  border-bottom: 2px solid var(--orange-mops);
}

/* -------------------------------------------------- */
.NeIconTitle {
  display: grid;
  grid-template-columns: clamp(38px, 2.5dvw, 48px) auto clamp(
      26px,
      1.75dvw,
      32px
    );
  padding: 2px 0;
  width: 95%;
  margin: auto;
  gap: 3px;
}
.NeIconImg {
  width: clamp(32px, 2.5dvw, 42px);
  min-width: 32px;
  display: block;
  margin: 3px;
  background-color: var(--blue-ultra-dark);
  border-radius: 3px;
}
.NeIconTitle > p {
  width: 100%;
  margin: auto;
  padding: 0px 2px 0px 2px;
  font-size: clamp(0.9rem, 1.5dvw, 1.1rem);
  color: var(--blue-lite);
  overflow: hidden;
  font-weight: bolder;
}
/* -------------------------------------------------- */
.ToolIconTitle {
  display: grid;
  grid-template-columns: clamp(70px, 5dvw, 90px) auto clamp(26px, 1.75dvw, 32px);
  padding: 2px 0;
  width: 95%;
  margin: auto;
  gap: 3px;
}
.ToolIconImg {
  width: clamp(70px, 5dvw, 90px);
  min-width: 64px;
  display: block;
  margin: 3px;
  background-color: var(--blue-ultra-dark);
  border-radius: 3px;
}
.ToolIconTitle > p {
  width: 100%;
  margin: auto;
  padding: 0px 2px 0px 2px;
  font-size: clamp(0.65rem, 1dvw, 1.1rem);
  color: var(--orange-mops);
  overflow: hidden;
  font-weight: bolder;
}
/* --------------------------------------------------- */
.getPt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 3px;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.getPt .inpValBox {
  justify-content: left;
  align-items: left;
}
.getPt .inptext {
  max-width: 80%;
}
.getPt_title {
  grid-column: 1 / 3;
  font-weight: 300;
  font-size: 1.1em;
  padding-left: 5px;
  color: #fff;
}

.getPtL {
  grid-column: 1;
}

.getPtR {
  grid-column: 2;
  /*display: flex;
  flex-direction: column;
  gap: 3px;
  flex-wrap: nowrap;  */
  display: grid;
  grid-template-columns: max-content auto;
  border-left: 2px solid var(--blue-border);
  padding: 0px 0px 0px 6px;
}

.getPt_com {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.6rem;
  text-align: left;
  padding: 0px 10px;
}
.getPt_com p .key {
  font-size: 0.7rem;
}
.getPt > * {
  min-width: 0;
}

/* ===========================
   SUBGRID XY + CHECKBOX
   =========================== */

.getxy {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 3px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
}

.ckbCoord {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
}

.inpx {
  grid-row: 1;
}

.inpy {
  grid-row: 2;
}
.get2Obs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 3px;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.get2ObsL {
  grid-column: 1;
  display: grid;
  grid-template-columns: max-content auto;
  padding: 0px 0px 0px 6px;
}
.get2ObsR {
  grid-column: 2;
  display: grid;
  grid-template-columns: max-content auto;
  border-left: 2px solid var(--blue-border);
  padding: 0px 0px 0px 6px;
}
.get2Obs .inpValBox {
  justify-content: left;
  align-items: left;
}
.get2Obs .inptext {
  max-width: 80%;
}
.getOb {
  display: grid;
  grid-template-columns: max-content auto;
  width: 50%;
  margin: auto;
  padding: 0px 0px 0px 6px;
}
.txt_com {
  /* display: flex; */
  /* flex-direction: column; */
  /* gap: 4px; */
  font-size: 0.6rem;
  text-align: left;
  padding: 0px 10px;
  /* white-space: nowrap; */
}
.txt_com p .key {
  font-size: 0.75rem;
}

.get_inps {
  width: 90%;
}
.get_inps .inpValBox {
  justify-content: right;
  align-items: right;
}
.verBox .inpValBox {
  justify-content: right;
  align-items: right;
  padding: 0px 50px 0px 0px;
  margin: 3px 0px;
}
.verBox .inptext {
  width: 50px;
}
/* ---------------------------------------------------- */
.ckbGetValBox {
  display: flex;
  flex-wrap: nowrap;
  padding: 3px 30px;
}
.ckbGetValBox .inptext {
  width: 50px;
}
/* Ligne contenant checkbox + input + range */
.lineCtrl {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Range cohérent avec ton style inptext */
.rangeCtrl {
  flex: 1; /* prend la place restante */
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

/* Curseur */
.rangeCtrl::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--blue-ultra-dark);
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  transition: all 0.15s ease-in-out;
}

.rangeCtrl::-webkit-slider-thumb:hover {
  background: #ff8011;
  border-color: #000;
}
.inpValRange {
  display: grid;
  grid-template-columns: max-content auto;
}
/* ------------------------------------- */
.getValRangeBox {
  display: flex;
  flex-wrap: nowrap;
  padding: 3px 10px;
}
.getValRangeBox .inpValBox .inptext {
  width: 60px;
}
.range {
  width: 80%;
  height: 10px;
  margin: auto 5px;
  /* padding: 0 10px;  */
  background: #858585;
  outline: none;
  border-radius: 10px;
  overflow: hidden;
}
.range:focus {
  outline: #7c7c7c solid 1px; /*7c7c7c*/
}
.range:hover {
  outline: #7c7c7c solid 1px; /*7c7c7c*/
}
.range::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  /* background: #000000; */
  background: #34546c;
  border-radius: 50%;
  box-shadow: -205px 0 0 200px #3d3d3d;
  cursor: pointer;
}
.range:disabled::-webkit-slider-thumb {
  cursor: auto;
}
/* -------------------------------------- */
input[type="checkbox"].smlSwitch {
  position: relative;
  width: 36px;
  height: 12px;
  appearance: none;
  background: #858585;
  outline: none;
  border-radius: 6px;
  transition: 0.15s;
  /* box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.21); */
  cursor: pointer;
}
input:checked[type="checkbox"].smlSwitch {
  background: #3d3d3d;
}
input[type="checkbox"].smlSwitch:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  top: 0;
  left: 0;
  background: #34546c;
  transform: scale(0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: 0.15s;
}
input:checked[type="checkbox"].smlSwitch:before {
  left: 22px;
}
.smlSwitchBox {
  /* height: 10px;
  margin: 3px auto 0px 15px; */
  margin-left: 10px; /* ou 0 si tu veux vraiment collé */
  height: auto; /* laisse le contenu décider */
  display: flex;
  align-items: center; /* aligne verticalement avec afftxt */
}
.valSwitchBox {
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 200px; */
}
.valBox {
  display: flex;
  align-items: center;
  gap: 6px; /* optionnel */
}
.inpAreaBox {
  display: grid;
  grid-template-columns: max-content auto;
}
.mceTextarea {
  width: 95%;
  font-size: clamp(0.6rem, 0.95dvw, 0.7rem);
  height: 2.5rem;
  /* font-size: 1em; */
  padding: 1px 4px;
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 3px;
  background-color: #fff;
  color: var(--blue-very-dark);
  resize: none;
  transition: all 0.15s ease-in-out;
  text-align: left;
  text-indent: 0;
  margin: 3px 6px 3px 6px;
}

/* Hover */
.mceTextarea:hover {
  border-color: #ff8011;
  background: #fff7ef;
}

/* Focus */
.mceTextarea:focus {
  outline: 1px solid #ff8011;
  background: #fff3e0;
}

/* Disabled */
.mceTextarea:disabled {
  color: #3e3e3e;
  background: #a7a7a7;
  border-color: #666;
}
/* --------------------------------------------- */
.ToolIconBox {
  display: grid;
  width: 96%;
  margin: auto;
  column-gap: 10px;
  row-gap: 10px;
  grid-template-columns: 1fr 1fr 1fr;
}
.ToolIconBox .nbtnlg > img {
  width: clamp(68px, 8dvw, 110px);
  /* min-width: 60px; */
  /* width: 110px; */
}

.message {
  min-width: 240px;
  width: 80%;
  margin: 20px auto;
  display: none;
}
.message > p {
  color: #87aac5;
  padding: 10px;
  font-size: clamp(1rem, 2dvw, 1.5rem);
  background: rgb(22, 33, 41, 0.5);
  border: 3px solid var(--red-mops);
}
.message p > span {
  font-size: clamp(1rem, 3dvw, 1.65rem);
  color: var(--orange-mops);
  font-weight: bolder;
}

/* @media screen and (max-width: 1020px) {
  .message {
    display: block;
  }
  .mcep_gui {
    display: none;
  }
} */
/* ----------------------------------------------- */
.mcep_footer {
  flex: 1 1 auto; /* occupe tout l’espace disponible */
  min-height: 0; /* indispensable pour que le scroll fonctionne */
  overflow-y: auto;
  display: flex;
  justify-content: center;
}
.afflines {
  display: flex;
  flex-direction: column;
  margin: 6px auto;
  justify-content: center;
  /*align-items: center;*/
  position: relative;
  width: 98%;
}

.npLi {
  font-size: clamp(0.6rem, 1.1dvw, 0.8rem);
  text-align: left;
  padding: 2px 40px;
  margin: 3px 3px;
  background: #2c2c2c;
  color: #747474;
  white-space: nowrap;
  overflow: hidden;
}
.curLi {
  font-size: clamp(0.7rem, 1.1dvw, 0.9rem);
  text-align: left;
  padding: 2px 20px;
  margin: 3px 3px;
  background: #2c2c2c;
  color: #cccccc;
}

.popup {
  position: absolute;
  background: rgb(206, 32, 32, 0.5);
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  transform: translateY(-8px);
  left: 20%;
}

/* flèche */
.popup::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgb(206, 32, 32, 0.5); /* 333 */
}

.side-popup {
  position: absolute;
  right: 0;
  font-size: 0.8rem;
  /* hauteur relative */
  height: 60%;

  /* centrage vertical */
  top: 50%;
  transform: translateY(-50%);

  /* contenu centré */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px;
  background: rgba(206, 32, 32, 0.35);
  color: white;
  border-radius: 4px 0 0 4px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10; /* passe au-dessus des lignes */
}
.side-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  /* On place la flèche *à gauche du popup* */
  right: 100%; /* se colle au bord gauche du popup */
  margin-right: 0px; /* petit espace entre flèche et popup */

  /* Flèche triangulaire */
  border: 10px solid transparent;
  border-right-color: rgba(206, 32, 32, 0.4);
}
/*
#rightPan > div:nth-child(6n+1) { background: #ff767566; }
#rightPan > div:nth-child(6n+2) { background: #74b9ff66; }
#rightPan > div:nth-child(6n+3) { background: #55efc466; }
#rightPan > div:nth-child(6n+4) { background: #ffeaa766; }
#rightPan > div:nth-child(6n+5) { background: #a29bfe66; }
#rightPan > div:nth-child(6n+6) { background: #fab1a066; }

*/
/* Fond semi-transparent */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: block;
}

/* Fenêtre flottante */
.popup_info {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  min-width: 150px;
  text-align: center;
}

.overlay2 {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
}

/* Fenêtre flottante */
.popup_info2 {
  display: none;
  position: absolute;
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  max-height: 80%;
  overflow: auto; /* si image énorme */
}

.popup_info2 img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
}
/* Image */

/* Bouton de fermeture */
.close_info-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #080d0f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
}

.close_info-btn:hover {
  background: #2d4152;
}
/* // Temp=============================================== */
/* Overlay centré */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.35); /* optionnel : léger voile */
  pointer-events: none; /* laisse passer les clics si tu veux */
}

/* Ton spinner */
.dual-spinner {
  position: relative;
  width: 128px;
  height: 128px;
}

.dual-spinner .outer,
.dual-spinner .inner {
  position: absolute;
  border-radius: 50%;
  border: 8px solid transparent;
}

.dual-spinner .outer {
  width: 128px;
  height: 128px;
  border-top-color: #ff9800;
  border-right-color: #ff9800;
  animation: spin-slow 1.4s linear infinite;
}

.dual-spinner .inner {
  top: 24px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-bottom-color: #03a9f4;
  border-left-color: #03a9f4;
  animation: spin-fast 0.8s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-fast {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
