/*
Theme Name: theme_999
Theme URI: https://example.com
Author: theme_999
Author URI: https://example.com
Description: Thème vitrine simple avec Bootstrap pour présenter une équipe et un jeu.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme_999
Tags: custom-background, custom-menu, featured-images, one-column, blog
*/

/* test */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Bebas+Neue&display=swap');

@font-face {
  font-family: "octosquares";
  src: url("./assets/font/octosquares.ttf") format("truetype");
}

@font-face {
  font-family: "glacialIndifference";
  src: url("./assets/font/glacialIndifference.otf") format("opentype");
}


/* =============================================================
   VARIABLES
   ============================================================= */

:root {
  --main-background: #5293ff;
  --main-background-center: rgba(190, 225, 255, 0.20);
  --main-background-center2: rgba(170, 210, 255, 0.16);
  --main-background-center3: rgba(140, 185, 255, 0.14);
  --main-background-around: #072060;

  --main-color-text: #f4f8ff;
  --link-color-text: #9fd0ff;
  --link-hover-color-text: #ffffff;
  --link-hover-color-shadow: rgba(120, 190, 255, 0.28);

  --accent-color: #7fc8ff;
  --btn-principal: #072060;
  --btn-hue: #7ffff9;

  --font-size-header: 1.5rem;
}

.darkmode {
  --main-background: #25365f;
  --main-background-center: rgba(70, 110, 180, 0.18);
  --main-background-center2: rgba(90, 130, 210, 0.14);
  --main-background-center3: rgba(120, 160, 255, 0.10);
  --main-background-around: #04116961;

  --main-color-text: #eaf2ff;
  --link-color-text: #9fc4ff;
  --link-hover-color-text: #ffffff;
  --link-hover-color-shadow: rgba(120, 170, 255, 0.25);

  --accent-color: #7fb3ff;

  --font-size-header: 1.5rem;
}


/* =============================================================
   RESET / BASE
   ============================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'glacialIndifference', Tahoma, sans-serif;
  color: var(--main-color-text);
  margin: 0;
  background-color: var(--main-background);
}

a {
  text-decoration: none !important;
  font-weight: 800;
}

h1 {
  font-family: 'octosquares', Tahoma, sans-serif;
}


/* =============================================================
   BACKGROUND
   ============================================================= */

.backgroundBlur {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("assets/img/bg.png");
  background-position: cover;
  filter: blur(60px);
  opacity: 0.9;
}

/* Scanlines VHS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.25;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}


/* =============================================================
   HEADER / NAVBAR
   ============================================================= */

.navbarCss {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-branding {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page_item a {
  color: var(--link-color-text);
  font-size: var(--font-size-header);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 300ms cubic-bezier(.47, 1.64, .41, .8);
}

.page_item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--link-hover-color-text);
  transition: width 300ms ease;
}

.page_item a:hover {
  color: var(--link-hover-color-text);
  text-shadow: 0 0 6px var(--link-hover-color-shadow);
}

.page_item a:hover::after {
  width: 100%;
}

.page_item a .logofa {
  opacity: 0;
  transform: translateX(-6px) scale(0.5);
  transition: all 250ms cubic-bezier(.47, 1.64, .41, .8);
  display: inline-flex;
  color: var(--link-hover-color-text);
}

.page_item a:hover .logofa {
  opacity: 1;
  transform: translateX(0) scale(1.25);
  filter: drop-shadow(0 0 6px var(--link-hover-color-text));
}


/* =============================================================
   SOCIAL SIDEBAR
   ============================================================= */

.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  margin: 1rem;
  transform: translateY(-50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#carouselExample .carousel-item img {
    height: 400px;
    object-fit: cover;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;   
  height: 50px;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  transition: width 0.3s ease, padding-right 0.3s ease;
}

.social-sidebar a img {
  width: 50px;   
  height: 50px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .social-sidebar { display: none; }
}


/* =============================================================
   CARDS
   ============================================================= */

.card {
  background-color: transparent;
  border-radius: 18px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(15, 193, 224, 0.15);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: slideInCard 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.card:hover {
  transform: translateY(-6px) rotateX(5deg);
  box-shadow: 0 12px 35px rgba(15, 193, 224, 0.3), 0 0 20px rgba(15, 193, 224, 0.2);
}

.card-body    { border-radius: 15px; }
.card-img,
.card-img-top { border-radius: 15px; }

.col-12:nth-child(1) .card { animation-delay: 0.1s; }
.col-12:nth-child(2) .card { animation-delay: 0.2s; }
.col-12:nth-child(3) .card { animation-delay: 0.3s; }
.col-12:nth-child(4) .card { animation-delay: 0.4s; }
.col-12:nth-child(5) .card { animation-delay: 0.5s; }
.col-12:nth-child(6) .card { animation-delay: 0.6s; }

.card-title {
  animation: pixelPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.col-12:nth-child(1) .card-title { animation-delay: 0.3s; }
.col-12:nth-child(2) .card-title { animation-delay: 0.4s; }
.col-12:nth-child(3) .card-title { animation-delay: 0.5s; }

.cardStyle a {
  font-family: 'octosquares', Tahoma, sans-serif;
  color: var(--accent-color);
}

.card-custom-img {
  height: 70%;
  width: 100%;
  object-fit: cover;
}

.card-custom-style {
  width: 18rem;
  height: 21rem;
}

.card-custom-style .card-img-top {
  border-radius: 15px 15px 0 0;
}

.hero-card {
  min-height: 280px;
}

.image-rounded {
  border-radius: 15px;
}

.dynamic-display .modal-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  border: 1px solid var(--accent-color);
  overflow: hidden;
}

.dynamic-display .modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
}


/* =============================================================
   BUTTONS
   ============================================================= */

.btn-primary {
  transition: all 0.2s ease !important;
  position: relative;
}

.btn-primary:active { transform: scale(0.95); }
.btn-primary:hover  { box-shadow: 0 0 15px rgba(15, 193, 224, 0.4); }

.buttonFuturistic,
.buttonFuturistic::after {
  width: 10rem;
  height: auto;
  font-size: 1.5rem;
  background: linear-gradient(45deg, transparent 5%, transparent 5%);
  border: 0;
  color: #fff;
  letter-spacing: 3px;
  line-height: 88px;
  position: relative;
}

.buttonFuturistic::after {
  --slice-btn-0: inset(50% 50% 50% 50%);
  --slice-btn-1: inset(80% -6px 0 0);
  --slice-btn-2: inset(50% -6px 30% 0);
  --slice-btn-3: inset(10% -6px 85% 0);
  --slice-btn-4: inset(40% -6px 43% 0);
  --slice-btn-5: inset(80% -6px 5% 0);
  content: "999";
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 3%, transparent 5%);
  clip-path: var(--slice-btn-0);
  transform: translate(-20px, 20px);
}

.buttonFuturistic:hover::after {
  animation: shadowAppear 1s infinite alternate;
  animation-timing-function: steps(5, end);
}

.btn {
  --clip: polygon(11% 0, 95% 0, 100% 25%, 90% 90%, 95% 90%, 85% 90%, 85% 100%, 7% 100%, 0 80%);
  --border: 5px;
  --shimmy-distance: 5;
  --clip-one:   polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  --clip-two:   polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
  --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
  --clip-four:  polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-five:  polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-six:   polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
  --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
  color: var(--color);
  text-transform: uppercase;
  font-size: var(--font-size);
  letter-spacing: 3px;
  position: relative;
  font-weight: 900;
  width: 100%;
  height: 100%;
  line-height: 25px;
  text-align: center;
  transition: background 0.2s, 0.3s;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.btn::before { background: var(--shadow-primary); transform: translate(var(--border), 0); }
.btn::after  { background: var(--primary); }

.btn__tag {
  position: absolute;
  padding: 1px 4px;
  letter-spacing: 1px;
  line-height: 1;
  bottom: -5%;
  right: 5%;
  font-weight: normal;
  color: hsl(0, 0%, 0%);
  font-size: var(--label-size);
}

.btn__glitch {
  position: absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
  clip-path: var(--clip);
  animation: glitch 2s infinite;
  display: none;
}

.btn__glitch::before {
  content: "";
  position: absolute;
  top: calc(var(--border) * 1);
  right: calc(var(--border) * 1);
  bottom: calc(var(--border) * 1);
  left: calc(var(--border) * 1);
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

.input:hover + .btn .btn__glitch   { display: block; color: var(--btn-hue); }
.input:checked + .btn .btn__glitch { display: block; animation: glitch 5s infinite; }
.input:checked + .btn { --primary: --btn-principal; --shadow-primary: #000000; }
.input:hover + .btn   { --primary: --btn-hue; --font-size: 110%; }

.number {
  background: var(--shadow-primary);
  color: #323232;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 1px;
  position: absolute;
  width: 15px;
  height: 6px;
  top: 0;
  left: 81%;
  line-height: 6.2px;
}

.radio-wrapper {
  position: relative;
  height: 38px;
  width: 86px;
  margin: 3px;
}

.radio-wrapper .input {
  position: absolute;
  height: 100%;
  width: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
}


/* =============================================================
   TOGGLE DARK MODE
   ============================================================= */

.form-check-input {
  width: 3.5rem !important;
  height: 1.8rem;
  cursor: pointer;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.form-switch .form-check-input {
  background-color: #377aff;
  background-image: url('assets/img/soleil.png') !important;
  background-size: 20px;
  filter: invert();
  background-repeat: no-repeat;
  background-position: left 6px center;
  transition: 0.5s all ease;
  box-shadow: 0 0 6px rgba(135, 206, 235, 0.5) !important;
}

.form-switch .form-check-input:checked {
  background-color: #2d03d5;
  background-image: url('assets/img/lune.png') !important;
  background-size: 18px;
  filter: none;
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: 0.5s all ease;
  box-shadow: 0 0 8px rgba(100, 80, 200, 0.6) !important;
}

.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3) !important;
}


/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  background: transparent;
  color: rgba(255, 255, 255, .8);
  border-top: solid 0.4px rgba(255, 255, 255, 0.248);
}

.site-footer a       { color: rgba(255, 255, 255, .9); }
.site-footer a:hover { color: #fff; }


/* =============================================================
   GAMES SLIDER / CAROUSEL
   ============================================================= */





.games-slider {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.slider-title {
  color: #fff;
  font-size: 4rem;
  font-weight: 300;
}

.carousel-inner {
  overflow: hidden;
  border-radius: 22px;
}

.carousel-item {
  transition: opacity 0.5s ease, filter 0.5s ease;
  opacity: 0;
  filter: brightness(0.4) blur(4px);
}

.carousel-fade .carousel-item {
  
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.carousel-item.active {
  opacity: 1;
  filter: brightness(1) blur(0);
  
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
  opacity: 1;
  filter: brightness(1) blur(0);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.active.carousel-item-start,
.active.carousel-item-end {
  opacity: 0;
  filter: brightness(0.4) blur(4px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.carousel-fade .carousel-item-next.carousel-item-start, 
.carousel-fade .carousel-item-prev.carousel-item-end, 
.carousel-fade .carousel-item.active
{
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.game-slide {
  padding: 2rem 0;
  min-height: 420px;
}

.game-slide__img-wrap {
  flex: 0 0 55%;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}

.game-slide__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-slide__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
}

.game-slide__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.game-slide__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.game-slide__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.game-slide__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.game-slide__btn:hover {
  background: #e0e0e0;
  color: #000;
  transform: translateX(3px);
}

.game-slide__arrows {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.game-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.game-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.game-indicators {
  position: static;
  margin: 1rem 0 0;
  justify-content: flex-start;
}

.game-indicators button {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  transition: background 0.3s, width 0.3s;
  opacity: 1;
}

.game-indicators button.active {
  background: #fff;
  width: 48px;
}

@media (max-width: 768px) {
  .game-slide         { flex-direction: column; }
  .game-slide__img-wrap { flex: none; width: 100%; }
  .game-slide__arrows { justify-content: center; }
  .game-indicators    { justify-content: center; }
}

/* =============================================================
   ANIMATIONS
   ============================================================= */

@keyframes slideInCard {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pixelPop {
  0%   { opacity: 0; transform: scale(0.8); letter-spacing: -2px; }
  100% { opacity: 1; transform: scale(1);   letter-spacing: inherit; }
}

@keyframes bgPulse {
  0%   { filter: hue-rotate(0deg)   contrast(1); }
  25%  { filter: hue-rotate(20deg)  contrast(1.6); }
  50%  { filter: hue-rotate(-50deg) contrast(1.2); }
  75%  { filter: hue-rotate(10deg)  contrast(1.6); }
  100% { filter: hue-rotate(0deg)   contrast(1); }
}

@keyframes vhsFlicker {
  0%, 100% { opacity: 0.93; }
  10%       { opacity: 0.92; }
  20%       { opacity: 0.91; }
  50%       { opacity: 0.93; }
  70%       { opacity: 0.93; }
}

@keyframes shadowAppear {
  0%   { clip-path: var(--slice-btn-2); transform: translate(10px, 10px); }
  10%  { clip-path: var(--slice-btn-1); transform: translate(-10px, -10px); }
  20%  { clip-path: var(--slice-btn-4); transform: translate(0, 5px); }
  30%  { clip-path: var(--slice-btn-5); transform: translate(-2px, 0px); }
  40%  { clip-path: var(--slice-btn-2); transform: translate(15px, 5px); }
  50%  { clip-path: var(--slice-btn-1); transform: translate(8px, 0px); }
  60%  { clip-path: var(--slice-btn-3); transform: translate(-5px, 0px); }
  70%  { clip-path: var(--slice-btn-5); transform: translate(14px, 8px); }
  80%  { clip-path: var(--slice-btn-3); transform: translate(-8px, 3px); }
  90%  { clip-path: var(--slice-btn-1); transform: translate(5px, 10px); }
  100% { clip-path: var(--slice-btn-2); transform: translate(0); }
}

@keyframes glitch {
  0%        { clip-path: var(--clip-one); }
  2%, 8%    { clip-path: var(--clip-two);   transform: translate(calc(var(--shimmy-distance) * -1%), 0); }
  6%        { clip-path: var(--clip-two);   transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  9%        { clip-path: var(--clip-two);   transform: translate(0, 0); }
  10%       { clip-path: var(--clip-three); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  13%       { clip-path: var(--clip-three); transform: translate(0, 0); }
  14%, 21%  { clip-path: var(--clip-four);  transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  25%       { clip-path: var(--clip-five);  transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  30%       { clip-path: var(--clip-five);  transform: translate(calc(var(--shimmy-distance) * -1%), 0); }
  35%, 45%  { clip-path: var(--clip-six);   transform: translate(calc(var(--shimmy-distance) * -1%)); }
  40%       { clip-path: var(--clip-six);   transform: translate(calc(var(--shimmy-distance) * 1%)); }
  50%       { clip-path: var(--clip-six);   transform: translate(0, 0); }
  55%       { clip-path: var(--clip-seven); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  60%       { clip-path: var(--clip-seven); transform: translate(0, 0); }
  31%, 61%, 100% { clip-path: var(--clip-four); }
}

@keyframes scanlines {
  from { background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.5) 51%); background-size: 100% 4px; }
  to   { background: linear-gradient(to bottom, rgba(0,0,0,.5) 50%, transparent 51%); background-size: 100% 4px; }
}

@keyframes rgbText {
  0%  { text-shadow: -1px 1px 8px rgba(255,255,255,0.6), 1px -1px 8px rgba(255,255,235,0.7), 0 0 1px rgba(251,0,231,0.8), 0 0 3px rgba(0,233,235,0.8), 0 0 3px rgba(0,242,14,0.8), 0 0 3px rgba(244,45,0,0.8), 0 0 3px rgba(59,0,226,0.8); }
  45% { text-shadow: -1px 1px 8px rgba(255,255,255,0.6), 1px -1px 8px rgba(255,255,235,0.7), 5px 0 1px rgba(251,0,231,0.8), 0 5px 1px rgba(0,233,235,0.8), -5px 0 1px rgba(0,242,14,0.8), 0 -5px 1px rgba(244,45,0,0.8), 5px 0 1px rgba(59,0,226,0.8); }
  50% { text-shadow: -1px 1px 8px rgba(255,255,255,0.6), 1px -1px 8px rgba(255,255,235,0.7), -5px 0 1px rgba(251,0,231,0.8), 0 -5px 1px rgba(0,233,235,0.8), 5px 0 1px rgba(0,242,14,0.8), 0 5px 1px rgba(244,45,0,0.8), -5px 0 1px rgba(59,0,226,0.8); }
  100%{ text-shadow: -1px 1px 8px rgba(255,255,255,0.6), 1px -1px 8px rgba(255,255,235,0.7), 5px 0 1px rgba(251,0,231,0.8), 0 -5px 1px rgba(0,233,235,0.8), -5px 0 1px rgba(0,242,14,0.8), 0 5px 1px rgba(244,45,0,0.8), -5px 0 1px rgba(59,0,226,0.8); }
}

@keyframes type {
  0%, 19% { opacity: 0; }
  20%, 100%{ opacity: 1; }
}

@keyframes noise {
  0%, 100% { background-position: 0 0; }
  10%  { background-position: -5% -10%; }
  30%  { background-position: 7% -25%; }
  50%  { background-position: -25% 10%; }
  70%  { background-position: 0 15%; }
  90%  { background-position: -10% 10%; }
}

@keyframes opacity {
  0%   { opacity: .6; }
  20%  { opacity: .3; }
  50%  { opacity: .8; }
  80%  { opacity: .7; }
  100% { opacity: .6; }
}
/* =============================================================
   CYBER FILTERS
   ============================================================= */
/* =============================================================
   CYBER FILTERS
   ============================================================= */

.cyber-bar {
    margin-bottom: 2.5rem;
}

.cyber-bar__top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cyber-bar__title {
    font-family: 'octosquares', Tahoma, sans-serif;
    font-size: 1rem;
    color: var(--accent-color);
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.cyber-bar__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    opacity: 0.3;
}

.cyber-bar__count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(127, 200, 255, 0.4);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.cyber-bar__count-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
    animation: pulse-dot 2s infinite;
}

.cyber-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(127, 200, 255, 0.15);
    border-left: 2px solid var(--accent-color);
    background: rgba(127, 200, 255, 0.04);
    backdrop-filter: blur(6px);
}

/* Tags catégories */
.cyber-bar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cyber-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(127, 200, 255, 0.2);
    color: rgba(127, 200, 255, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    background: transparent;
    transition: all 0.18s ease;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.cyber-tag__bar {
    width: 2px;
    height: 10px;
    background: currentColor;
    opacity: 0.5;
    transition: opacity 0.18s ease;
}

.cyber-tag:hover {
    color: #fff;
    border-color: rgba(127, 200, 255, 0.5);
    background: rgba(127, 200, 255, 0.07);
}

.cyber-tag.is-active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(127, 200, 255, 0.08);
    box-shadow: inset 0 0 10px rgba(127, 200, 255, 0.06),
                0 0 8px rgba(127, 200, 255, 0.1);
}

.cyber-tag.is-active .cyber-tag__bar {
    opacity: 1;
    box-shadow: 0 0 4px var(--accent-color);
}

/* Tri */
.cyber-bar__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cyber-bar__sort-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(127, 200, 255, 0.3);
    margin-right: 0.25rem;
}

.cyber-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.28rem 0.7rem;
    border: 1px solid rgba(127, 200, 255, 0.15);
    color: rgba(127, 200, 255, 0.45);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.18s ease;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}

.cyber-sort-btn input[type="radio"] {
    display: none;
}

.cyber-sort-btn:hover {
    color: #fff;
    border-color: rgba(127, 200, 255, 0.4);
}

.cyber-sort-btn.is-active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(127, 200, 255, 0.06);
}

/* Pagination */
.cyber-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.cyber-pagination .page-numbers {
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(127, 200, 255, 0.18);
    color: rgba(127, 200, 255, 0.55);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    transition: all 0.18s ease;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}

.cyber-pagination .page-numbers:hover {
    color: #fff;
    border-color: rgba(127, 200, 255, 0.5);
}

.cyber-pagination .page-numbers.current {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(127, 200, 255, 0.15);
}

/* Empty */
.cyber-empty {
    text-align: center;
    padding: 5rem 0;
}

.cyber-empty__code {
    font-family: 'octosquares', Tahoma, sans-serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin: 0;
    letter-spacing: 0.1em;
}

.cyber-empty__msg {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(127, 200, 255, 0.3);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .cyber-bar__row { flex-direction: column; align-items: flex-start; }
    .cyber-bar__sort { width: 100%; justify-content: flex-start; }
}

