/* Thème pluie matricielle pour MkDocs */

:root {
  --vert: #00ff41;
  --vert-doux: #7dff9c;
  --texte: #d8ffe0;
  --fond-cadre: rgba(2, 10, 4, 0.9);
}

html, body {
  background: #000;
  color: var(--texte);
  font-family: "Fira Code", "Consolas", "Courier New", monospace;
}

#pluie {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Barre de navigation */
.navbar {
  background: rgba(0, 0, 0, 0.85) !important;
  border-bottom: 1px solid var(--vert);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.navbar-brand,
.navbar .nav-link {
  color: var(--vert) !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.7);
}

/* Cadre central qui contient le texte */
.container {
  position: relative;
  z-index: 1;
  background: var(--fond-cadre);
  border: 1px solid var(--vert);
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.25), inset 0 0 18px rgba(0, 255, 65, 0.08);
  padding: 28px 32px;
  margin-top: 90px;
  margin-bottom: 24px;
  max-width: 1000px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Le fond de la page reste visible autour du cadre */
.row, .col-md-9, .col-md-3 {
  background: transparent;
}

/* Titres et texte */
h1, h2, h3, h4 {
  color: var(--vert);
  font-family: inherit;
}
h1 {
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}
h2 {
  border-bottom: 1px dashed rgba(0, 255, 65, 0.4);
  padding-bottom: 4px;
}
p, li {
  line-height: 1.6;
  color: var(--texte);
}

/* Liens */
a {
  color: var(--vert-doux);
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 255, 156, 0.4);
}
a:hover,
a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

/* Code */
code {
  background: rgba(0, 255, 65, 0.1);
  color: var(--vert-doux);
  padding: 1px 5px;
  border-radius: 3px;
}
pre {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
}

/* Tableaux */
table {
  color: var(--texte);
  border-color: rgba(0, 255, 65, 0.3);
}

/* Pied de page */
footer {
  position: relative;
  z-index: 1;
  color: var(--texte);
  padding: 0 16px 16px;
}
footer hr {
  border-color: rgba(0, 255, 65, 0.3);
}

/* Téléphone */
@media (max-width: 600px) {
  .container {
    padding: 20px 18px;
    margin-top: 80px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pluie {
    opacity: 0.35;
  }
}
