:root {
  --bg-color: #f0f2f5;
  --pill-color: #3e7099;
  --text-active: #ffffff;
  --text-idle: #4a4a4a;
  --orange: #f78f28;
  --dark-orange: #ff9500de;
  --gap-element: 10px
}

#wrapper-scene {
  position: relative;
  width: 100%;
  height: 600px;
}

#c {
  display: block;
  width: 100%;
  height: 100vh;
}

.wrapper-menu {
  position: absolute;
  z-index: 1000;
  display: flex;
  gap: 0;
}

/* Menu de configuration */

.menu {
  width: min-content;
  border: 1px solid;
  border-right-color: lightgray;
  border-left: none;
  border-top: none;
  border-bottom: none;
  background-color: var(--bg-color);
  border-radius: 0 0 0.5em 0;
  padding: 1.25em;
}

#reduce-button {
  height: 100px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0.5em 0.5em 0;
  border: 0;
  background-color: var(--bg-color)
}

#chevron,
#chevron-right {
  display: flex;
  flex-shrink: 0;
}

p {
  margin-bottom: 0.25em;
}

.input-number {
  border: 1px solid;
  padding: 5px;
  border-color: lightgray;
  border-radius: 0.5em;
  width: 100px;
  background-color: white;
}

.magnifying-glass {
  background-color: var(--orange);
  border-radius: 10px 0 0 10px;
  padding: 0.25em;
  justify-content: center;
}

.magnifying-glass:hover {
  cursor: pointer;
  background-color: var(--dark-orange);
}

.searchbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#search-failed {
  user-select: none;
  margin-top: 2px;
  margin-bottom: 2px;
  align-self: flex-end;
}

.hidden-box {
  visibility: hidden;
}

.svg-input {
  display: flex;
  gap: 0;
  margin: 2px;
  width: 100%;
}

.svg-input:hover {
  outline: 1px solid;
  outline-color: var(--dark-orange);
  border-radius: 10px;
}

#searchbar-input {
  border: 1px solid;
  border-color: var(--orange);
  border-radius: 0 10px 10px 0;
  width: 100%;

}

#searchbar-input:focus {
  outline: none;
}

.label-and-input {
  display: flex;
  flex-direction: column;
  padding: 5px;
  font-size : xx-small;
}

.values-to-change-box {
  display: flex;
  flex-direction: column;
}



#point-name {
  border-radius: 0.5em;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}

.point-name-box {
  margin-bottom: var(--gap-element)
}

.config-boxes {
  display: flex;
}

.button-config-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.config-box {
  display: flex;
  flex-direction: column;
  border: 1px solid;
  padding: 5px;
  border-color: lightgray;
  border-radius: 0.5em;
}

/* inputs des valeurs réelles et corrigées*/
#diff-g.inactive,
#diff-d.inactive,
#c-g.inactive,
#c-d.inactive {
  color: black;
  background-color: white;
}

#diff-g.active,
#diff-d.active,
#c-g.active,
#c-d.active {
  color: white;
  background-color: var(--orange);
}

h4 {
  margin: 0;
  font-weight: bold;
}

h5 {
  margin: 0;
  font-weight: bold;
  font-size : xx-small;
}

#diff-box {
  display: flex;
  flex-direction: column;
  margin-right: var(--gap-element)
}

.lab-box {
  display: flex;
  flex-direction: column;
}

.toggle-button {
  cursor: pointer;
  display: inline-block;
}

#state-toggle {
  display: none;
}

.segmented-control {
  display: flex;
  position: relative;
  width: 200px;
  background: #f0f2f5;
  border: 1px solid #ccc;
  margin-top: var(--gap-element);
  margin-bottom: var(--gap-element);
  border-radius: 50px;
  user-select: none;
  cursor: pointer;
}

.label-text {
  flex: 1;
  text-align: center;
  z-index: 2;
  line-height: 32px;
  color: #4a4a4a;
  transition: color 0.3s;
}

/* Bouton central */
.selection-pill {
  position: absolute;
  width: 100px;
  height: 32px;
  background: var(--orange);
  border-radius: 40px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#state-toggle:checked+.segmented-control .selection-pill {
  transform: translateX(100px);
}

#state-toggle:not(:checked)+.segmented-control .label-text:nth-child(1),
#state-toggle:checked+.segmented-control .label-text:nth-child(2) {
  color: white;
}

/* Bouton central position */
.toggle-button-glider {
  position: absolute;
  z-index: 1000;
  display: flex;
  gap: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Menu de style */

.wrapper-menu-style {
  position: absolute;
  z-index: 1000;
  display: flex;
  gap: 0;
  right: 0;
}

#menu-style {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  border: 1px solid;
  border-left-color: lightgray;
  border-right: none;
  border-top: none;
  border-bottom: none;
  border-radius: 0 0 0 0.5em;
  padding: 1.25em;
}

#reset-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--gap-element);
  margin-left: auto;
  font-size: 1em;
  border-radius: 0.5em;
  border: none;
  cursor: pointer;
  background-color: var(--orange);
  padding: 4px;
  user-select: none;
  width: 36px;
  height: 36px;
}

.style-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid;
  margin-bottom: var(--gap-element);
  border-color: lightgray;
  border-radius: 0.5em;
  padding: 2px;

}

.switch-button-contener {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 5px;
}

.switch-button {
  display: flex;
  justify-content: center;
  margin: 5px;
  font-size: 1em;
  border-radius: 1em;
  border: none;
  cursor: pointer;
  background-color: var(--orange);
  padding: 4px;
  user-select: none;
  width: 75px;
  height: 30px;

}

.switch-button:hover {
  background-color: var(--dark-orange)
}

.switch-button .icon-hidden {
  display: none;
}

.switch-button.actif .icon-not-hidden {
  display: none;
}

.switch-button.actif .icon-hidden {
  display: block;
}

.sliders {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: var(--gap-element);
  border: 1px solid;
  border-color: lightgray;
  border-radius: 0.5em;
  padding: var(--gap-element);
  padding-bottom: 0;
}

.sliders-numbers {
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}

.slider-number {
  display: flex;
  align-items: center;
}

.sliders-colors,
.sliders-colors-n {
  display: flex;
  flex-direction: column;
  gap: var(--gap-element);
}

#input-hidden {
  visibility: hidden;
}

.slider-colors-contener {
  display: flex;
  align-items: center;
  gap: var(--gap-element);
}

.slider-colors-contener-n {
  display: flex;
  align-items: center;
  gap: var(--gap-element);
}

.slider-colors-contener-n-p {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signs {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
}

.p-sign {
  margin: 0;
  font-weight: bold;
  font-size: 0.9em;
}

.slider-contener {
  display: flex;
  margin: var(--gap-element);
  align-items: center;
  justify-content: space-between;
}

#reduce-button-right {
  height: 100px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5em 0 0 0.5em;
  border: 0;
  gap: 0;
  background-color: rgb(243 244 246);
}