/* =========================
   TYPOGRAPHIE
========================= */

.md-typeset h1 {
  font-weight: 800;
  color: black;
}
h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: black;
  border-left: 6px solid #2563eb;
  padding-left: 16px;
  margin-bottom: 1rem;
}
.md-typeset h2 {
  font-weight: 700;
}

.md-typeset h3 {
  font-weight: 600;
}

.md-typeset {
  font-size: 16px;
  line-height: 1.6;
}
.md-typeset p,
.md-typeset li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* =========================
   IMAGES + FIGURES
========================= */

/* Centrer les images */
.md-typeset p > img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  height: auto;
}

/* Centrer les légendes */
.md-typeset p > em {
  display: block;
  text-align: center;
  font-size: 0.9em;
  color: gray;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

/* =========================
   CODE
========================= */

.md-typeset pre {
  border-radius: 10px;
  padding: 1em;
  font-size: 14px;
}

.md-typeset code {
  font-weight: 500;
}

/* =========================
   ADMONITIONS
========================= */

.md-typeset .admonition {
  border-radius: 10px;
}

/* =========================
   TABLES
========================= */

.md-typeset table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Header */
.md-typeset th {
  background: #1e293b; /* bleu foncé / cyber */
  color: white;
  text-align: left;
  padding: 12px;
  font-weight: 600;
}

/* Cells */
.md-typeset td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

/* Zebra effect */
.md-typeset tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Hover effect */
.md-typeset tr:hover {
  background-color: #eef2ff;
  transition: 0.2s;
}

.md-nav__title {
  display: none;
}

/* Supprime le premier lien (le H1 de la page) */
.md-nav--primary .md-nav__item--section > .md-nav__link {
  display: none;
}
/* Cards layout */
.md-typeset .grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.md-typeset .grid.cards > * {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 1.2rem;
  border-radius: 12px;
  background: var(--md-default-bg-color);
  transition: all 0.2s ease;
}

.md-typeset .grid.cards > *:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Dark mode fix */
[data-md-color-scheme="slate"] .md-typeset .grid.cards > * {
  border: 1px solid rgba(255,255,255,0.1);
}