/* ==========================================================================
   DREAD — Style d'horreur pour MkDocs Material
   Fond quasi-noir, rouge sang, typographie serif littéraire
   Se greffe sur le scheme "slate" de Material
   ========================================================================== */

/* --- Palette — surcharge globale sur slate --- */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0d0d0d;
  --md-default-fg-color: #c8c0b8;
  --md-default-fg-color--light: #9e9589;
  --md-default-fg-color--lighter: #6e665d;
  --md-default-fg-color--lightest: #3e3830;

  --md-primary-fg-color: #8b0000;
  --md-primary-bg-color: #0d0d0d;
  --md-accent-fg-color: #cc2200;

  --md-typeset-color: #c8c0b8;
  --md-typeset-a-color: #cc4444;

  --md-code-bg-color: #1a1410;
  --md-code-fg-color: #c8c0b8;

  --md-footer-bg-color: #0a0a0a;
  --md-footer-bg-color--dark: #050505;
  --md-footer-fg-color: #6e665d;
  --md-footer-fg-color--light: #9e9589;
  --md-footer-fg-color--lighter: #4e463d;
}

/* --- Typographie --- */

/* Corps : serif littéraire */
.md-typeset {
  font-family: "Lora", "Georgia", "Times New Roman", serif;
  font-size: 0.82rem;
  line-height: 1.75;
}

/* Titres : capitales décoratives */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: "Cinzel", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.md-typeset h1 {
  color: #cc2200;
  font-size: 2em;
  border-bottom: 2px solid #3a1010;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

.md-typeset h2 {
  color: #d4a574;
  font-size: 1.4em;
  border-bottom: 1px solid #2a1a10;
  padding-bottom: 0.2em;
}

.md-typeset h3 {
  color: #b89070;
  font-size: 1.15em;
}

.md-typeset h4 {
  color: #9e7858;
  font-size: 1em;
  font-style: italic;
}

/* --- Liens --- */
.md-typeset a {
  color: #cc4444;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.md-typeset a:hover {
  color: #ee5544;
  border-bottom-color: #ee5544;
}

/* --- Blockquotes (encadrés moelle/chair) --- */
.md-typeset blockquote {
  background: #1a1410;
  border-left: 4px solid #8b0000;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #b0a898;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.md-typeset blockquote h4 {
  font-style: normal;
  color: #cc6644;
  margin-top: 0;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.1em;
}

/* --- Italique (vignettes narratives) --- */
.md-typeset em {
  color: #a89888;
}

/* --- Gras --- */
.md-typeset strong {
  color: #ddd0c4;
  font-weight: 700;
}

/* --- Listes --- */
.md-typeset ul > li::marker,
.md-typeset ol > li::marker {
  color: #8b0000;
}

/* --- Ligne de séparation --- */
.md-typeset hr {
  border-color: #2a1a10;
}

/* --- Header --- */
.md-header {
  background-color: #0a0808 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.md-header__title {
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
}

/* --- Sidebar / Navigation --- */
.md-sidebar {
  background-color: #0d0d0d;
}

.md-nav__link {
  font-family: "Lora", serif;
  font-size: 0.78rem;
}

.md-nav__link:hover {
  color: #cc4444;
}

.md-nav__link--active,
.md-nav__item--active > .md-nav__link {
  color: #cc2200 !important;
  font-weight: 700;
}

.md-nav__item--nested > .md-nav__link {
  color: #d4a574;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Search --- */
.md-search__form {
  background-color: #1a1410 !important;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #3a1010;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b0000;
}
