@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}



/* ═══════════════════════════
   SETUP 
   ═══════════════════════════ */
/* ⎼⎼⎼ FONTS ⎼⎼⎼ */
@font-face {
  font-family: 'Minitel';
  src: url('/assets/Minitel-PRdq0UoJ.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* ⎼⎼⎼ COLORS ⎼⎼⎼ */
:root {
  --color-primary: #9BD0E1;
  --color-dark: #0f0f21;
  --error: #F46464;
  --warning: #F4C664;
  --success: #00FF80;
  --success-dark: #0A9751;

}
html {
  overflow-y: scroll;
}
body {
  display: flex;
  flex-direction: row;
  justify-items: start;
  align-items: start;
  justify-content: center;
  background-color: var(--color-dark);
}
/* ⎼⎼⎼ TEXT STYLES ⎼⎼⎼ */
.text-body {
font-family: 'Minitel';
font-size: 14px;
font-style: normal;
font-weight: normal;
line-height: normal;
}
.text-header {
font-family: 'jersey 10', sans-serif;
font-style: normal;
font-weight: normal;
line-height: 0;
margin: 0px;
}
h2 {
  font-size: 1.5em;
  color: inherit;
}
/* APP */
.app-container {
  display: block;
  margin: 0 auto;
}
.interface-container {
  margin-top: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.database-container {
  display: flex;
  flex-direction: column;
  width: 25vw;
  gap: 8px;
}
.query-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.main-container {
  display: flex;
  flex-direction: column;
  width: 65vw;
  gap: 24px;
}
.sub-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-wrapper {
  display: flex;
  gap: 8px;
}
/* BACKGROUND AND CURSOR */
body {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: row;
  justify-items: start;
  align-items: start;
  justify-content: center;
  overflow: hidden;
    /* cursor:
    url("cursor_1.png") 4 12,
    auto;
  cursor:
    url("cursor_2.png") 2 2,
    pointer; */
}
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998; 
  pointer-events: none;

 background: repeating-linear-gradient(
  to top,
  rgba(5, 85, 82, 0.7) 0px,
  rgba(5, 85, 82, 0.7) 2px,
  transparent 2px,
  transparent 4px
  );

  opacity: 0.5;
  animation:
  flicker 6.5s infinite cubic-bezier(.4,0,.6,1);
  animation-delay: -0.3s;

  transform: scale(1.01) perspective(800px) translateZ(0) 
             translateY(-1px) 
             scaleX(1.005) scaleY(1.01);
  transform-origin: center;

  filter: contrast(1.2) brightness(1.1) saturate(1.2);
  
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 1);
}
@keyframes flicker {
  0%   { opacity: 0.45; }
  5%   { opacity: 0.4; }
  10%  { opacity: 0.5; }
  15%  { opacity: 0.35; }
  20%  { opacity: 0.55; }
  25%  { opacity: 0.3; }
  30%  { opacity: 0.5; }
  35%  { opacity: 0.45; }
  100% { opacity: 0.4; }
}
.scanLine {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(0, 229, 255);
  pointer-events: none;
  z-index: 99999;
  animation: scanLine 10s linear infinite;
  opacity: 0;
  mix-blend-mode: screen;
}
@keyframes scanLine {
  0% {transform: translateY(-10px); opacity: 0;}
  1% {opacity: 0.5;}
  39% {opacity: 0.5;}
  40% {transform: translateY(100vh); opacity: 0;}
}
/* Utils */
.no-select {
  user-select: none;
}.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.logo {
  font-size: 18px;
  font-family: 'Minitel';
}

.game-info-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.medal-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-number {
color: var(--color-primary); 
font-size: 2em;
}.animationContainer {
    border: 2px solid var(--color-primary);
    width: 50%;
    height: 5%;
}

.loadingBar {
    width: 0%;
    height: 60%;
    background-color: var(--color-primary);
    padding: 2px;
    animation: load 0.7s forwards;
}

@keyframes load {
    0% {
        width: 0%;
    }
    100% {
        width: 100%
    }
}.query-editor {
  padding-top: 8px;
  padding-bottom: 8px;
  box-sizing: border-box;
  border: 2px solid var(--color-primary);
}.btn {
  display: flex;
  padding: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary); 
  background-color: transparent;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}.sectionHeader {
  display: flex;
  height: auto;
  padding: 8px;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: var(--color-dark);
  border: 1px solid var(--color-primary);
}

.sectionHeader .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0; 
  color: var(--color-dark);
}

.sectionHeader .label  {
  flex: 1 0 0; 
  display: block;
}.accordion-header {
  display: flex;
  padding: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--color-primary);
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  color: var(--color-primary); 
  background-color: transparent;
  cursor: pointer;
}

.accordion-header:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.left-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: flex-start;
}.table-column {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  gap: 8px;
  color: var(--color-primary)
}.accordion {
  box-sizing: border-box;
  border: 1px solid var(--color-primary);
  border-width: 2px 2px 0 2px;
  border-radius: 0px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.open-accordion {
  border-width: 2px;
}

.accordion p{
  color : var(--color-primary);
  margin : 8px
}/* --- RESULT TABLES --- */

/* Pour le wrapper, au cas ou le tableau déborde */
.table-wrapper {
  overflow-x: auto;
}

/* Style du tableau */
.componentTable {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid var(--color-primary);
  overflow: hidden;
}

/* En-têtes */
.componentTable thead th{
  background-color: var(--color-primary);
  color: var(--color-dark);
  padding: 8px 8px;
  text-align: left;
  font-family: 'jersey 10', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: normal;
  margin: 0px;
}

/* Cells */
.componentTable td {
  padding: 12px 8px;
  font-family: 'Minitel';
  font-size: 14px;
  font-style: normal;
  font-weight: normal;
  line-height: normal;
  color: var(--color-primary);
  
}

/* pas de séparations horizontales */
.componentTable tr {
  border: none;
}

.componentTable thead .dataNumber {
  text-align: end;
}

.dataNumber {
  text-align: end;
}/* ⎼⎼⎼ Alert ⎼⎼⎼ */

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid transparent;
  flex: 1;
}

.alert .icon {
  width: 24px;  
  height: 24px;
  flex-shrink: 0;
}

.alert .label {
  flex: 1 0 0;
  display: block;
  font-family: 'Minitel';
  font-size: 14px;
}

/* Pour l'alert success qui doit contenir l'alert + un bouton */
.alertwrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: stretch; /* pour que le bouton prenne la même hauteur */
  overflow: hidden;
}

/* Bouton next(affiché que pour "success") */
.alert-btn {
  background-color: var(--success);
  border: 1px solid var(--success);
  border-width: 1px 1px 1px 0px;
  color: var(--color-dark);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 600;
}

.alert-btn:hover {
  background-color: var(--success-dark);
  border: 1px solid var(--success);
  border-width: 1px 1px 1px 0px;
  color: var(--color-dark);
}

/* Colorshemes des états */

.alert[data-type="success"] {
  border-color: var(--success);
  color: var(--success);
}

.alert[data-type="error"] {
  border-color: var(--error);
  color: var(--error);
}

.alert[data-type="warning"] {
  border-color: var(--warning);
  color: var(--warning);
}

.alert[data-type="waiting"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
}.tbc-container {
  display: flex;
  margin: 0 auto;
  margin-top: 40%;
  color: var(--color-primary);
  fill: var(--color-primary);
}

.tbc-text {
  font-size: xx-large;
  margin-bottom: 5%;
  align-self: center;
}

.tbc-flexbox {
  display: flex;
  flex-direction: row;
}

.socials {
  display: flex;
  flex-flow: row;
  justify-content: center;
  gap: 10%;
}

.social-container {
  display: flex;
  flex-flow: row;
}