/*------------------------------------------------------------------------------ 
* PALETTE ORANGE TERMINAL
------------------------------------------------------------------------------*/
:root {
  --text-color: rgb(255, 170, 60);
  --background-color: #1a1a1a;
  --accent-color-links: #A864FF;
  --accent-color-buttons: #4A3B33;
  --panel-bg-color: #2a2a2a;
}

/*------------------------------------------------------------------------------ 
* ANIMATIONS
------------------------------------------------------------------------------*/
@keyframes flicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 2px var(--text-color); }
  50% { opacity: 0.97; text-shadow: none; }
  75% { opacity: 1; text-shadow: 0 0 2px var(--text-color), 0 0 4px var(--text-color); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-right-color: transparent }
  50% { border-right-color: var(--text-color); }
}

/*------------------------------------------------------------------------------ 
* EFFET CRT SCANLINES
------------------------------------------------------------------------------*/
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 170, 60, 0.05) 0px,
    rgba(0, 0, 0, 0.15) 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.25;
  z-index: 9999;
}

/*------------------------------------------------------------------------------ 
* BASE
------------------------------------------------------------------------------*/
body {
  background-color: var(--background-color) !important;
  color: var(--text-color) !important;
  font-family: "VT323", monospace, sans-serif !important;
  animation: flicker 6s infinite alternate;
  text-shadow: 0 0 1px var(--text-color), 0 0 3px var(--text-color);
}

/*------------------------------------------------------------------------------ 
* TEXTE
------------------------------------------------------------------------------*/
h1, h2, h3, p, label, a, .brand, .footer-link {
  color: var(--text-color) !important;
  text-shadow: 0 0 2px var(--text-color), 0 0 6px rgba(255,170,60,0.6);
  animation: flicker 5s infinite alternate;
}

h1 {
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid var(--text-color);
  animation: typing 2.5s steps(30, end), blink-caret 1.2s step-end infinite;
  animation-delay: 0.5s;
}

/*------------------------------------------------------------------------------ 
* PANELS & CARDS
------------------------------------------------------------------------------*/
.panel, .card, .hero-section, .cta-section, .apps-section {
  background-color: var(--panel-bg-color) !important;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow:
    inset 0 0 8px rgba(255,170,60,0.1),
    0 0 12px rgba(255,170,60,0.2);
}

/*------------------------------------------------------------------------------ 
* BOUTONS
------------------------------------------------------------------------------*/
.btn-primary, .btn-secondary, button {
  background-color: var(--accent-color-buttons) !important;
  border: 1px solid var(--text-color) !important;
  color: var(--text-color) !important;
  text-shadow: 0 0 2px var(--text-color);
  box-shadow: 0 0 6px rgba(255,170,60,0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover, button:hover {
  background-color: var(--text-color) !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(255,170,60,0.6);
}

/*------------------------------------------------------------------------------ 
* LIENS
------------------------------------------------------------------------------*/
a {
  color: var(--accent-color-links) !important;
  text-shadow: 0 0 2px var(--accent-color-links);
}

a:hover {
  color: var(--text-color) !important;
}

/*------------------------------------------------------------------------------ 
* FORMULAIRES
------------------------------------------------------------------------------*/
.form-control, .input-group-text {
  background-color: var(--panel-bg-color) !important;
  color: var(--text-color) !important;
  border: 1px solid rgba(255,170,60,0.4) !important;
  box-shadow: inset 0 0 6px rgba(255,170,60,0.2);
}

.form-control:focus {
  outline: none !important;
  box-shadow: 0 0 6px rgba(255,170,60,0.8);
}

/*------------------------------------------------------------------------------ 
* ICONES
------------------------------------------------------------------------------*/
.ynh-icon {
  fill: var(--text-color) !important;
}