.md-grid {
  max-width: 85rem;
}
.md-typeset h1 {
  margin: 0 0 0.25em;
}
.md-typeset h2 {
  margin: 0.6em 0 .64em;
}

.mdx-content__footer {
  margin-top: 20px;
  text-align: center;
}

.mdx-content__footer a {
  display: inline-block;
  transition: transform 250ms cubic-bezier(0.1, 0.7, 0.1, 1), color 125ms;
}

.mdx-content__footer a:focus,
.mdx-content__footer a:hover {
  transform: scale(1.2);
}

.mdx-content__footer hr {
  display: inline-block;
  width: 40px;
  margin: 16px;
  vertical-align: middle;
  background-color: currentColor;
  border: none;
}

/* ✅ Header background (barre du haut) */
[data-md-color-scheme="default"] .md-header,
[data-md-color-scheme="default"] .md-header__inner {
  background-color: #01a982 !important;
}

/* ✅ Tabs navigation (barre en-dessous) */
[data-md-color-scheme="default"] .md-tabs {
  background-color: #01a982 !important;
}

/* ✅ Texte actif dans les tabs (optionnel) */
[data-md-color-scheme="default"] .md-tabs__item--active > .md-tabs__link {
  color: white !important;
}

/* ✅ Autres éléments pour unifier (hover, etc.) */
[data-md-color-scheme="default"] .md-tabs__link:hover {
  color: white;
}

/* ✅ Idem pour le mode sombre */
[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-header__inner,
[data-md-color-scheme="slate"] .md-tabs {
  background-color: #008567 !important;
}

[data-md-color-scheme="slate"] .md-tabs__item--active > .md-tabs__link {
  color: white !important;
}

/* ✅ Footer couleur personnalisée */
[data-md-color-scheme="default"] .md-footer {
  background-color: #01a982 !important;
  color: white !important;
}

/* ✅ Pied de page mode sombre */
[data-md-color-scheme="slate"] .md-footer {
  background-color: #008567 !important;
  color: white !important;
}

/* ✅ Liens dans le footer (ex: "made with ❤️") */
.md-footer a {
  color: white !important;
}

/* Base style */
.custom-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #00739d;
  color: white !important;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-radius: 999px; /* fully pill-shaped */
}

.custom-button svg.svg-inline--fa {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  margin-right: 0.4em;
  transform: translateY(2px); /* fine-tune vertical alignment */
  color: white; /* optional: force icon color */
}

/* Hover effect */
.custom-button:hover {
  background-color: #00739d;
}

/* Optional: adjust for dark mode if needed */
[data-md-color-scheme="slate"] .custom-button {
  background-color: #00739d;
}

.card {
  display: flex;
  width: 500px;                /* Fixed width for consistency */
  height: 150px;               /* Optional: set fixed height too */
  align-items: center;
  gap: 1rem;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #00739d;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-md-color-scheme="slate"] .card {
  background-color: #00739d;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 144px;
  height: 144px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-title {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}