:root {
  --neon-cyan: rgba(0, 240, 255, 0.8);
  --neon-magenta: rgba(247, 0, 255, 0.8);
  --neon-yellow: rgba(255, 204, 0, 0.8);
  --dark-bg: #121419;
  --cyberpunk-accent: #f700ff;
  --cyberpunk-secondary: #00f0ff;
  --cyberpunk-glow: 0 0 10px;
}

@keyframes headerSeparator {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes textGlitch {
  0% {
    opacity: 0;
    transform: translateY(-2px);
    text-shadow: none;
  }
  10% {
    opacity: 0.3;
    transform: translateY(2px);
    text-shadow: -2px 0 var(--cyberpunk-accent), 2px 0 var(--cyberpunk-secondary);
  }
  20% {
    opacity: 0.6;
    transform: translateY(-1px);
    text-shadow: 2px 0 var(--cyberpunk-accent), -2px 0 var(--cyberpunk-secondary);
  }
  30% {
    opacity: 0.4;
    transform: translateY(0);
    text-shadow: none;
  }
  40% {
    opacity: 0.8;
    transform: translateY(0);
    text-shadow: 1px 0 var(--cyberpunk-secondary), -1px 0 var(--cyberpunk-accent);
  }
  50% {
    opacity: 0.5;
    transform: translateY(0);
    text-shadow: none;
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0.5px 0 var(--cyberpunk-secondary), -0.5px 0 var(--cyberpunk-accent);
  }
  70% {
    opacity: 0.8;
    transform: translateY(0);
    text-shadow: none;
  }
  80%, 100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

::selection {
  background: rgba(247, 0, 255, 0.3);
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cyberpunk-accent), var(--cyberpunk-secondary));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--cyberpunk-secondary), var(--cyberpunk-accent));
}

pre {
  background: linear-gradient(to right, rgba(25, 25, 35, 0.9), rgba(40, 35, 65, 0.9)) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-left: 3px solid #f700ff !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: 0 0 15px rgba(247, 0, 255, 0.2) !important;
  position: relative;
  overflow: auto !important;
  margin: 2em 0 !important;
  max-width: 100% !important;
  padding: 1.5em !important;
}

pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: rgba(20, 20, 35, 0.6);
}

pre::-webkit-scrollbar-track {
  background: rgba(30, 30, 45, 0.5);
  border-radius: 0 0 8px 0;
}

pre::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f700ff, #00f0ff);
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #00f0ff, #f700ff);
}

pre code {
  color: #f0f0f0 !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  text-shadow: 0 0 5px rgba(10, 255, 255, 0.2) !important;
  background: transparent !important;
}

div.code-toolbar > .toolbar {
  top: 0.3em !important;
  right: 0.3em !important;
  z-index: 10 !important;
}

div.code-toolbar > .toolbar .toolbar-item > button,
div.code-toolbar > .toolbar .toolbar-item > a,
div.code-toolbar > .toolbar .toolbar-item > span {
  background: linear-gradient(to right, rgba(247, 0, 255, 0.8), rgba(0, 240, 255, 0.8)) !important;
  color: #000 !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.7rem !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

div.code-toolbar > .toolbar .toolbar-item > button:hover,
div.code-toolbar > .toolbar .toolbar-item > a:hover {
  background: linear-gradient(to left, rgba(247, 0, 255, 0.9), rgba(0, 240, 255, 0.9)) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5) !important;
}

.token.comment, .token.prolog, .token.doctype, .token.cdata {
  color: #787878 !important;
  font-style: italic !important;
}

.token.punctuation {
  color: #00e6e6 !important;
}

.token.tag, .token.boolean, .token.number, .token.deleted {
  color: #ff7edb !important;
}

.token.keyword, .token.property, .token.selector, .token.constant, .token.symbol, .token.builtin {
  color: #ffcc00 !important;
  text-shadow: 0 0 2px rgba(255, 204, 0, 0.3) !important;
}

.token.string, .token.char, .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string, .token.variable, .token.inserted {
  color: #00ff9c !important;
}

.token.function {
  color: #36f9f6 !important;
  font-weight: bold !important;
}

.token.regex, .token.important {
  color: #ff7edb !important;
}

.token.important, .token.bold {
  font-weight: bold !important;
}

.token.italic {
  font-style: italic !important;
}

.post + hr,
.posts + hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyberpunk-accent), var(--cyberpunk-accent), transparent);
  box-shadow: 0 0 10px var(--cyberpunk-accent), 0 0 5px var(--cyberpunk-accent);
  margin: 40px auto;
  width: 80%;
}

hr {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyberpunk-accent), transparent);
  border: none;
  box-shadow: 0 0 8px var(--cyberpunk-accent), 0 0 4px var(--cyberpunk-accent);
  margin: 25px auto;
  width: 90%;
}

a {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

h1,
h2 {
  color: inherit;
}

.logo__cursor {
  background: transparent !important;
  border: 2px solid var(--cyberpunk-accent) !important;
  box-shadow: 0 0 10px var(--cyberpunk-accent), inset 0 0 5px var(--cyberpunk-secondary);
}

.button,
button,
a.button {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.button:hover,
button:hover,
a.button:hover {
  border-color: var(--cyberpunk-secondary);
  box-shadow: 0 0 10px var(--cyberpunk-secondary);
  transform: translateY(-2px);
}

blockquote {
  border-left: 3px solid var(--cyberpunk-accent) !important;
  background: rgba(18, 20, 25, 0.7);
  box-shadow: 0 0 10px rgba(247, 0, 255, 0.2);
  border-radius: 0 8px 8px 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

blockquote:hover {
  box-shadow: 0 0 15px rgba(247, 0, 255, 0.3);
}

table {
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  border-radius: 8px;
}

th {
  background: linear-gradient(to right, rgba(25, 25, 35, 0.9), rgba(40, 35, 65, 0.9)) !important;
  color: var(--cyberpunk-secondary) !important;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

td {
  border-bottom: 1px solid rgba(0, 240, 255, 0.2) !important;
  transition: all 0.3s ease;
}

tr:hover td {
  background: rgba(247, 0, 255, 0.05);
}

.menu a {
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

.menu a:hover {
  color: var(--cyberpunk-secondary);
  text-shadow: 0 0 5px var(--cyberpunk-secondary);
  text-decoration: none;
}

.menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--cyberpunk-accent), var(--cyberpunk-secondary));
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--cyberpunk-secondary);
}

.menu a:hover::after {
  width: 100%;
}

.menu__inner .active {
  color: var(--cyberpunk-accent);
  text-shadow: 0 0 5px var(--cyberpunk-accent);
}

.header {
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.3), rgba(0, 240, 255, 0.7), rgba(247, 0, 255, 0.7), rgba(0, 240, 255, 0.7), rgba(0, 240, 255, 0.3), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: headerSeparator 2s ease-out forwards;
}

.footer {
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer__content a:hover {
  color: var(--cyberpunk-secondary);
  text-shadow: 0 0 5px var(--cyberpunk-secondary);
}

.tag {
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 2px 5px;
}

.tag:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.post-title a {
  transition: all 0.3s ease;
  position: relative;
}

.post-title a:hover {
  color: var(--cyberpunk-accent);
  text-shadow: 0 0 10px rgba(247, 0, 255, 0.3);
}

.post .post-title {
  animation: textGlitch 1.5s forwards;
}

.pagination__buttons {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.pagination__buttons a {
  transition: all 0.3s ease;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--cyberpunk-accent);
  box-shadow: 0 0 10px rgba(247, 0, 255, 0.3);
  color: inherit;
  position: relative;
  overflow: hidden;
}

.pagination__buttons a:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 5px var(--cyberpunk-secondary);
}

.pagination__buttons .button__icon {
  color: var(--cyberpunk-accent);
  transition: all 0.3s ease;
}

.pagination__buttons a:hover .button__icon {
  color: var(--cyberpunk-secondary);
  transform: scale(1.2);
}

/* Cacher le bouton de changement de thème */
.theme-toggle {
  display: none !important;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  margin: 1.5em 0;
}

.post-content ul {
  list-style-type: none;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 0.5em;
  position: relative;
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: -1.2em;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--cyberpunk-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyberpunk-accent);
}

.post-content ol {
  counter-reset: item;
  list-style: none;
}

.post-content ol li {
  counter-increment: item;
}

.post-content ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: -1.5em;
  color: var(--cyberpunk-accent);
  font-weight: bold;
  text-shadow: 0 0 3px var(--cyberpunk-accent);
}

.posts-list .post-item {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.posts-list .post-item:nth-child(1) { animation-delay: 0.1s; }
.posts-list .post-item:nth-child(2) { animation-delay: 0.2s; }
.posts-list .post-item:nth-child(3) { animation-delay: 0.3s; }
.posts-list .post-item:nth-child(4) { animation-delay: 0.4s; }
.posts-list .post-item:nth-child(5) { animation-delay: 0.5s; }
.posts-list .post-item:nth-child(6) { animation-delay: 0.6s; }
.posts-list .post-item:nth-child(7) { animation-delay: 0.7s; }
.posts-list .post-item:nth-child(8) { animation-delay: 0.8s; }
.posts-list .post-item:nth-child(9) { animation-delay: 0.9s; }
.posts-list .post-item:nth-child(10) { animation-delay: 1.0s; }
.posts-list .post-item:nth-child(11) { animation-delay: 1.1s; }
.posts-list .post-item:nth-child(12) { animation-delay: 1.2s; }
.posts-list .post-item:nth-child(13) { animation-delay: 1.3s; }
.posts-list .post-item:nth-child(14) { animation-delay: 1.4s; }
.posts-list .post-item:nth-child(15) { animation-delay: 1.5s; }

.post-info {
  margin: 15px 0 25px;
}

.post-info p {
  animation: textGlitch 1.5s forwards;
  margin: 12px 0;
  position: relative;
  padding-left: 30px;
}

.post-info svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyberpunk-secondary);
  filter: drop-shadow(0 0 3px var(--cyberpunk-secondary));
  opacity: 0.9;
}

code:not([class*="language-"]) {
  color: var(--cyberpunk-secondary) !important;
  background: rgba(0, 240, 255, 0.1) !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
  border-bottom: 1px solid var(--cyberpunk-accent) !important;
  transition: all 0.3s ease;
}

code:not([class*="language-"]):hover {
  background: rgba(0, 240, 255, 0.15) !important;
  text-shadow: 0 0 3px rgba(0, 240, 255, 0.5);
}

strong {
  color: transparent !important;
  background: linear-gradient(to right, #ff45e9, #ff70fe);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 2px;
  text-shadow: 0 0 8px rgba(247, 0, 255, 0.6);
  position: relative;
}

strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyberpunk-accent), transparent);
  box-shadow: 0 0 5px var(--cyberpunk-accent);
  opacity: 0.7;
}

[data-theme=dark] body {
  background-color: var(--dark-bg);
  background-image: radial-gradient(circle at 25% 25%, rgba(247, 0, 255, 0.05) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
}

img.circle {
  transition: all 0.5s ease;
  border: 2px solid transparent;
}

img.circle:hover {
  border: 2px solid var(--cyberpunk-secondary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}