/* Poppins Font Faces */
/*@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}*/

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/*@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}*/

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/*@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}*/

/* Manrope Font Faces */
/*@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}*/

/*@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}*/

/*@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope/Manrope-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}*/

:root{
  --exportTitleColor: #115058;
}

html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-family: 'poppins';
    color: #575757;
}
td{
  text-align: center;
}
tbody tr:hover {
  background-color: CadetBlue;
  color: #eee;
  cursor: pointer;
}

kbd.keys {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
  color: #333;
  display: inline-block;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}
kbd.functions_list {
  background-color: rgb(230,235,255);
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
  color: #333;
  display: inline-block;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

.helpSubTitle{
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
}

#renderCanvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor:pointer;
}

.fonction_title{
  font-weight: 500;
}

.hr_line_help{
  height: 10px;
	border: 0;
	box-shadow: 0 10px 10px -10px #8c8b8b inset;
}

#exportTitle{
  text-align: center; 
  color: var(--exportTitleColor);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0px;
  cursor: pointer;
}

.checkbox input {
  
}

.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  transition: all 0.2s;
}

.checkboxesHorizontalContainer{
  display: flex;
}

#optShaderTitle{
  color: #b4b4b4;
}

/* Masquer la checkbox native */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #999;
  border-radius: 3px;
  background-color: white;
  cursor: pointer;
}

/* État coché */
input[type="checkbox"]:checked {
  background-color: #2196F3;
  border-color: #2196F3;
}

/* Coche visible (optionnel) */
input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  display: block;
  text-align: center;
  line-height: 18px;
}

/* ============================================================
   Materialize replacements — lightweight vanilla CSS
   ============================================================ */

/* --- Modal overlay & panel --------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  display: none;
  position: fixed;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 4px;
  z-index: 1000;
  max-height: 80vh;
  width: 55%;
  max-width: 700px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  overflow-y: auto;
}
.modal.open { display: block; }
.modal.overflow-hidden { overflow: hidden; }

.modal-content { padding: 24px; }
.modal-footer {
  padding: 4px 24px;
  text-align: right;
  border-top: 1px solid #e0e0e0;
}

/* --- Help modal ------------------------------------------- */
#helpModal {
  width: 85%;
  max-width: 1100px;
  max-height: 85vh;
  overflow: hidden;
}
#helpModal .modal-content { padding: 0; height: 100%; }

.help-layout {
  display: flex;
  height: calc(85vh - 10px);
}

.help-sidebar {
  width: 200px;
  min-width: 200px;
  background: #1a1a2e;
  padding: 16px 0;
  overflow-y: auto;
  border-right: 1px solid #333;
}
.help-sidebar h2 {
  color: #fff;
  font-size: 20px;
  text-align: center;
  margin: 0 0 16px;
  padding: 0 12px 12px;
  border-bottom: 1px solid #333;
}
.help-sidebar a {
  display: block;
  padding: 10px 20px;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.help-sidebar a:hover { background: #16213e; color: #ddd; }
.help-sidebar a.active {
  background: #16213e;
  color: #fff;
  border-left-color: #4fc3f7;
  font-weight: 600;
}

.help-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px;
  background: #0f0f23;
  color: #ccc;
}
.help-body h3 {
  color: #4fc3f7;
  font-size: 22px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222;
}
.help-body h4 {
  color: #e0e0e0;
  font-size: 16px;
  margin: 20px 0 8px;
}
.help-body p, .help-body li {
  font-size: 14px;
  line-height: 1.7;
  color: #bbb;
}
.help-body ul { padding-left: 18px; }
.help-body li { margin-bottom: 4px; }

.help-section { display: none; }
.help-section.active { display: block; }

.help-func-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}
.help-func-table th {
  text-align: left;
  padding: 8px 12px;
  background: #1a1a2e;
  color: #4fc3f7;
  border-bottom: 2px solid #333;
  font-weight: 600;
}
.help-func-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #1a1a2e;
  vertical-align: top;
}
.help-func-table tr:hover td { background: rgba(79,195,247,.05); }

.help-func-table kbd {
  background: #1a1a2e;
  color: #7ecbf5;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  border: 1px solid #2a2a4e;
}

.help-shortcut-key {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  border: 1px solid #444;
  min-width: 24px;
  text-align: center;
}

.help-note {
  background: #1a1a2e;
  border-left: 3px solid #4fc3f7;
  padding: 10px 16px;
  margin: 12px 0;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #aaa;
}

.help-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.help-close-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* --- Grid (minimal) --------------------------------------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.row::after { content: ''; display: table; clear: both; }
.col { padding: 0 0.75rem; box-sizing: border-box; }
.s4  { width: 33.333%; } .s8  { width: 66.666%; } .s12 { width: 100%; }
@media (min-width: 601px) {
  .m6  { width: 50%; } .m10 { width: 83.333%; }
  .offset-m1 { margin-left: 8.333%; }
}

/* --- Buttons ---------------------------------------------- */
.btn, .btn-small, .btn-flat, .btn-floating {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 2px;
  cursor: pointer; text-decoration: none;
  font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
  transition: background .2s, box-shadow .2s;
  color: #fff; line-height: 1;
  vertical-align: middle;
}
.btn, .btn-small { padding: 0 16px; height: 36px; }
.btn-small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-flat {
  background: transparent; color: #343434;
  box-shadow: none; padding: 0 16px; height: 36px;
}
.btn-flat:hover { background: rgba(0,0,0,.07); }
.btn-floating {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
}
.btn-floating.btn-small { width: 30px; height: 30px; }

/* icon alignment inside buttons */
.btn i.material-icons.left,
.btn-flat i.material-icons.left,
.btn-small i.material-icons.left { margin-right: 6px; font-size: 18px; }

/* colour helpers */
.blue    { background-color: #2196F3 !important; }
.red     { background-color: #f44336 !important; }
.green   { background-color: #4CAF50 !important; }
.teal    { background-color: #009688 !important; }
.orange  { background-color: #ff9800 !important; }
.purple  { background-color: #9c27b0 !important; }
.btn:hover, .btn-small:hover, .btn-floating:hover { filter: brightness(1.12); }

/* --- Form elements ---------------------------------------- */
.input-field { position: relative; margin-top: 1rem; margin-bottom: 1rem; }
.input-field label { font-size: 0.9rem; color: #9e9e9e; }
.input-field input[type=text],
.input-field select {
  width: 100%; box-sizing: border-box;
  border: none; border-bottom: 1px solid #9e9e9e;
  background: transparent;
  font-size: 1rem; padding: 6px 0;
  outline: none; transition: border-color .2s;
}
.input-field input[type=text]:focus,
.input-field select:focus { border-bottom-color: #2196F3; }

/* file-field */
.file-field { display: flex; align-items: center; gap: 12px; }
.file-field .btn {
  flex-shrink: 0; position: relative; overflow: hidden;
  height: 36px; padding: 0 16px; background: #26a69a; color: #fff;
}
.file-field .btn input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.file-field .file-path-wrapper { flex: 1; }
.file-field .file-path-wrapper input { width: 100%; border: none; border-bottom: 1px solid #9e9e9e; padding: 6px 0; outline: none; font-size: 1rem; }

/* --- Toast notification ----------------------------------- */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10000; pointer-events: none;
}
.toast {
  background: #323232; color: #fff; padding: 12px 24px;
  border-radius: 4px; margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  pointer-events: auto; font-size: 14px;
  animation: toastIn .3s ease;
}
.toast.red.darken-2 { background: #c62828; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Utility classes -------------------------------------- */
.center-align { text-align: center; }
.browser-default { -webkit-appearance: auto; appearance: auto; }