/* ─── Custom brand color ─────────────────────────────── */
:root {
  --md-primary-fg-color:        #d51130;
  --md-primary-fg-color--light: #e8314f;
  --md-primary-fg-color--dark:  #a50d25;
  --md-primary-bg-color:        #ffffff;
}

/* ─── Agrandir le logo dans la navbar ───────────────── */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2.5rem;
  width: auto;
}

/* ─── Supprimer le gap entre navbar et vidéo ─────────── */
.md-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.md-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ─── Forcer le plein écran sur la homepage ─────────── */
.md-content__inner {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Restaurer le padding normal pour les autres pages */
.md-content__inner:has(.content-section) {
  padding: 0 !important;
}

.content-section .md-content__inner {
  max-width: 61rem !important;
  padding: 0 0.8rem !important;
  margin: 0 auto !important;
}

/* ─── Hero Video Fullscreen ────────────────────────────── */
.hero-video-fullscreen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  margin-top: -2rem;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-video-fullscreen video {
  position: absolute;
  top: 55%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay avec texte centré */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 100%;
  padding: 2rem;
  margin-top: 10rem;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
  font-size: 1.5rem;
  margin: 0 0 0 0;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Indicateur de scroll */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Section de contenu */
.content-section {
  background: var(--md-default-bg-color);
  padding: 3rem 0.8rem;
  max-width: 61rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

img.center {
  display: block;
  margin: 2rem auto;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}
.badge-latest  { background: #4caf50; color: white; }
.badge-stable  { background: #2196f3; color: white; }
.badge-old     { background: #9e9e9e; color: white; }
.badge-fixed   { background: #4caf50; color: white; }
.badge-open    { background: #f44336; color: white; }

/* Version cards in list */
.version-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.version-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.version-card h3 { margin: 0 0 6px 0; }
.version-card p  { margin: 0; font-size: 0.9rem; opacity: 0.75; }
/* Download tables: small signature link next to its file (a click on the file fetches both) */
.md-typeset a.dl-sig {
  margin-left: 0.4em;
  font-size: 0.75em;
  opacity: 0.6;
  white-space: nowrap;
}

/* Feature videos in version pages (lighter than GIFs, same autoplay/loop feel) */
.md-typeset video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.6em 0 1em;
  border-radius: 4px;
}
