/* ==========================================================================
   Coloration syntaxique
   ========================================================================== */
   
   .keyword { color: #569CD6; font-weight: bold; }
   .type { color: #4EC9B0; }
   .function { color: #DCDCAA; }
   .variable { color: #ffffff; }
   .operator { color: #D4D4D4; }
   .number { color: #cfa555; }
   .string { color: #CE9178; }
   .parentheses { color: #808080; }
   .rand { color: #C586C0; }
   .comment { color: #df7c7c; }
   
/* ==========================================================================
   Reset et Styles Globaux
   ========================================================================== */
   
* {
    overflow-anchor: none;
}

body {
    background-color: #1e1e1e;
    color: #fff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
   
.navbar {
    background-color: #252525;
    border-bottom: 1px solid #3d3d3d;
    padding: 0.5rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar-nav {
    gap: 1rem;
    flex-direction: row;
}

.nav-link {
    color: #d4d4d4 !important;
    font-size: 0.9rem;
    transition: font-size 0.4s ease, color 0.4s ease, font-weight 0.4s ease;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link.active {
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.vh-75 {
    height: 75vh !important;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
#highlightBtn {
    background-color: #0d6efd;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

#highlightBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#highlightBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Sections Guide
   ========================================================================== */

.guide-section {
    scroll-margin-top: 40px;
    min-height: 25vh;
    margin-top: 50px;
    margin-bottom: 50px;
}

.configuration-section {
    scroll-margin-top: 50px;
    min-height: 25vh;
    margin-top: 50px;
    margin-bottom: 50px;
}

.options-section {
    scroll-margin-top: 50px;
    min-height: 50vh;
    margin-top: 50px;
    margin-bottom: 50px;
}

.guide-chapter {
    scroll-margin-top: 60px;
}

.guide-content {
    padding: 2rem 0;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card.bg-dark {
    background-color: #2d2d2d !important;
    border: 1px solid #3d3d3d;
}

.card-body {
    color: #d4d4d4;
}

.card-body h3,
.card-body h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.card-body ul {
    padding-left: 1.5rem;
}

.card-body li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Table des matières
   ========================================================================== */

.toc {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid #3d3d3d;
    margin-top: 90px;
}

.toc-title {
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #3d3d3d;
}

.toc .nav-link {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #d4d4d4 !important;
}

.toc .nav-link:hover {
    color: #fff !important;
    text-decoration: none;
    padding-left: 0.5rem;
}

.toc .nav-link.active {
    color: #0d6efd !important;
    background-color: transparent;
}

/* ==========================================================================
   Éléments d'interface
   ========================================================================== */

kbd {
    background-color: #3d3d3d;
    color: #fff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #4d4d4d;
}

/* ==========================================================================
   Section Éditeur
   ========================================================================== */

.editor-section .container {
    margin: 0 auto;
}

.editor-section .row {
    justify-content: center;
}

.editor-section .col-6 {
}

.display-container {
    position: relative;
    height: 100%;
    display: flex;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.code-display {
    flex: 1;
    background-color: #2d2d2d;
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    padding: 15px;
    line-height: 1.6;
    border: none;
    white-space: pre-wrap;
}

.code-area {
    resize: none;
    outline: none;
    transition: background-color 0.2s;
}

.code-area:focus {
    color: #d4d4d4;
}

.div-editor {
    height: auto !important;
}

.configuration-editor {
    height: auto !important;
    padding: 30px;
}

.editor-container,
.display-container {
    width: 100%;
    max-width: 1000px;
    background-color: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin: 0 auto;
}

.codeExamples-container {
    width: 100%;
    max-width: 800px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin: 0 auto;
}

.grammar-container {
    width: 100%;
    max-width: 800px;
    background-color: #1e1e1e !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin: 0 auto;
}

.codeExample {
    width: 100%;
    max-width: 800px;
    background-color: #1e1e1e !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin: 0 auto;
}

.editor-header {
    background-color: #3d3d3d;
    color: #fff;
    padding: 10px;
    font-weight: 600;
    border-bottom: 1px solid #4d4d4d;
    min-height: 52px;
}

.editor-content {
    display: flex;
    position: relative;
    height: 500px;
    overflow: auto;
}

.configuration-content {
    display: flex;
    position: relative;
    height: 650px;
    overflow: auto;
    display: flex;
    position: relative;
    min-height: 500px;
}

.editor-footer {
    color: #fff;
    padding: 10px;
    font-weight: 600;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: right;
}

.line-numbers {
    padding: 12px 8px;
    background-color: #252525;
    color: #666;
    text-align: right;
    user-select: none;
    border-right: 1px solid #3d3d3d;
    white-space: pre;
    font-size: 14px;
    min-width: 40px;
    position: sticky;
    left: 0;
    line-height: 1.5;
}

.code-area {
    flex: 1;
    padding: 12px;
    color: #fff;
    background-color: #2d2d2d;
    outline: none;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    tab-size: 4;
    -moz-tab-size: 4;
    min-height: 100%;
    caret-color: #fff;
}

.code-area br {
    line-height: 1.5;
}

#config-input:empty:before {
    content: 'Start typing your code here...';
    color: #666;
    position: absolute;
}

.editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px;
    background-color: #3d3d3d;
    border-top: 1px solid #4d4d4d;
}

.editor-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
}

.editor-button:hover {
    background-color: #4d4d4d;
}

.editor-button svg {
    width: 16px;
    height: 16px;
}

.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 4px;
}

.pr-1 {
    padding-right: 0.25rem !important;
    padding: 0%;
}

.pl-1 {
    padding-left: 0.25rem !important;
    padding: 0%;
}

.editor-section {
    padding-top: 56px;
    width: 100%;
    height: auto !important;
}

.editor-section .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.editor-section .row {
    width: 100%;
    margin: 0;
}

.editor-section .col-6 {
    flex: auto;
}

.editor-content {
    display: flex;
    position: relative;
    min-height: 550px;
    overflow: auto;
}

.configuration-content {
    display: flex;
    height: auto;
    min-height: 500px;
    overflow: visible;
}

.code-area {
    height: auto;
    overflow: visible;
    min-height: 100%;
}

.fitCtt {
    height: fit-content;
    min-height: -webkit-fill-available;
}

@-moz-document url-prefix() {
    .fitCtt {
      height: fit-content;
      min-height: 85dvh;
    }
  }

.fitCtt2 {
    height: auto;
    min-height: -webkit-fill-available;
}



hr {
    margin: 40px 0;
  }
  
.hr3 {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, transparent, #CCC, transparent);  
  }

  
/* STYLE POUR LES OPTIONS  */


#options-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0 auto;
    min-height: 850px;
  }
  
  .option-item {
    background-color: #3d3d3d;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease-in-out;
  }
  
  .option-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  /* Styles spécifiques pour les types de commandes */
  .option-item:has(select.booleanArgument) .option-command {
    color: #2563eb; /* Bleu pour les booléens */
    border-left: 3px solid #2563eb;
    padding-left: 0.5rem;
    background-color: #1e1e1e;
  }
  
.option-item:has(select.explicitBooleanArgument) .option-command {
    color: #b26337; /* Bleu pour les booléens */
    border-left: 3px solid #b26337;
    padding-left: 0.5rem;
    background-color: #1e1e1e;
  }
  
  .option-item:has(input[type="text"]) .option-command {
    color: #16a34a; /* Vert pour les strings */
    border-left: 3px solid #16a34a;
    padding-left: 0.5rem;
    background-color: #1e1e1e;
  }
  
  .option-item:has(input[type="number"]) .option-command {
    color: #9333ea; /* Violet pour les numériques */
    border-left: 3px solid #9333ea;
    padding-left: 0.5rem;
    background-color: #1e1e1e;
  }
  
  .option-command {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0;
  }
  
  .option-description {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  
  /* Style pour les selects */
  select.booleanArgument , select.explicitBooleanArgument {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
  }
  
  select.booleanArgument:hover {
    border-color: #2563eb;
  }
  
  select.booleanArgument:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
  }

  select.explicitBooleanArgument:hover {
    border-color: #1b356c;
  }
  
  select.booleanArgument:focus {
    border-color: #1b356c;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
  }
  
  /* Style pour les inputs */
  input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  input[type="text"]:hover {
    border-color: #16a34a;
  }
  
  input[type="text"]:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);
  }
  
  input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  input[type="number"]:hover {
    border-color: #9333ea;
  }
  
  input[type="number"]:focus {
    border-color: #9333ea;
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(147, 51, 234, 0.25);
  }

  #finalCommand:empty {
    display: none;
    padding: 0;
    border: none;
  }

  .option-item:hover  {
    background-color: #6f7072;
  }

      
  .option-item:hover > .option-description {
    font-weight: 700;
}


.booleanArgument, .explicitBooleanArgument {
    color: rgb(134 20 20);
  }

  
  /* Media queries pour la responsivité */
  @media (max-width: 768px) {
    #options-display {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      padding: 1rem;
      gap: 1rem;
    }
    
    .option-item {
      padding: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    #options-display {
      grid-template-columns: 1fr;
      padding: 0.75rem;
      gap: 0.75rem;
    }
  }

  
@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1468px;
    }
}

@media (min-width: 1992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1868px;
    }
}

@media (min-width: 768px) {
    .separator {
        display: inline !important;
        margin: 0 15px;
    }
}


  #fileSelector{
    width: 160px;
    height: 31px;
    font-weight: 500;
    padding: 0%;
    color: #212529;
    padding-left: 0.5rem !important ;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;

  }
  #config-selector{
    width: 200px;
    height: 31px;
    font-weight: 600;
    padding: 0%;
    padding-left: 0.5rem !important ;

  }

  


/* Styles pour la commande finale */

#finalCommand {
    background-color: #252525;
    color: #df7c7c;
    font-family: monospace;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    margin: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 1rem;
    min-height: 57px;
  }
  
  #finalCommand::before {
    color: #94a3b8;
    user-select: none;
  }
  


  
