/* Logo dans la navbar */
.navbar-logo {
    height: 32px;
    width: 32px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
    background-color: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Réduire la hauteur de l'en-tête sur la page d'accueil */
.masthead {
    padding-top: 100px !important;
    padding-bottom: 50px !important;
    min-height: auto !important;
    height: auto !important;
}

.page-heading {
    padding: 20px 0 !important;
}

/* Réduire la hauteur de l'en-tête des articles - règles plus agressives */
.post-heading {
    padding: 20px 0 !important;
    margin: 0 !important;
}

.post-heading h1 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.post-heading .subheading {
    margin-bottom: 10px !important;
}

.post-heading .meta {
    margin-bottom: 0 !important;
}

/* S'assurer que le CSS s'applique aussi aux pages générées par Polyglot */
header.masthead .post-heading {
    padding: 20px 0 !important;
    margin: 0 !important;
}

header.masthead .post-heading h1 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Categories and Tags styling */
.post-meta-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.post-categories,
.post-tags {
    margin-bottom: 10px;
}

.post-tags:last-child {
    margin-bottom: 0;
}

.post-meta-info strong {
    color: #212529;
    margin-right: 8px;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-primary {
    background-color: #0085A1;
}

.badge-secondary {
    background-color: #6c757d;
}

.badge:hover {
    opacity: 0.8;
    cursor: default;
}

/* Logo dans la navbar */
.navbar-logo {
    height: 32px;
    width: 32px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Logo dans le footer */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* Logo à côté de l'auteur dans les articles */
.author-logo {
    height: 20px;
    width: 20px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* Améliorer le contraste des boutons pour l'accessibilité */
.btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #ffffff !important;
}

.btn-primary.float-right,
.btn-primary.float-left {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #ffffff !important;
}

/* Series Header Badge - In post header between subtitle and meta */
.series-header-badge {
  margin: 1rem 0 0.75rem 0;
  padding: 0;
  font-size: 0.9rem;
  color: #868e96;
}

.series-header-badge .series-icon {
  margin-right: 0.35rem;
  opacity: 0.8;
}

.series-header-badge .series-info {
  color: rgba(255, 255, 255, 0.9);
}

.series-header-badge strong {
  color: #ffffff;
  font-weight: 600;
}

.series-header-badge .series-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-left: 0.25rem;
}
/* Series List Info - Above post meta in article lists */
.series-list-info {
  font-size: 0.9rem;
  color: #868e96;
  margin: 0.5rem 0;
  font-style: italic;
}

.series-list-info strong {
  color: #212529;
  font-weight: 600;
}


/* Series Navigation - Minimal Clean Blog style */
.series-navigation {
  margin: 2rem 0;
  padding: 0;
}

.series-header {
  font-size: 1.1rem;
  color: #868e96;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.series-header strong {
  color: #212529;
  font-weight: 600;
  font-size: 1.3rem;
}

.series-icon {
  margin-right: 0.5rem;
  opacity: 0.7;
  font-size: 1.2rem;
}

.series-progress {
  font-size: 1rem;
  color: #868e96;
  margin-bottom: 1.25rem;
}

.series-description {
  font-size: 1.1rem;
  color: #212529;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.series-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem 0;
}

.series-item {
  padding: 0.25rem 0;
  line-height: 1.65;
  color: #212529;
}

.series-item a {
  color: #212529;
  text-decoration: none;
}

.series-item a:hover {
  color: #0085A1;
  text-decoration: underline;
}

.series-item.current strong {
  color: #0085A1;
}

.current-label {
  font-size: 0.85rem;
  color: #0085A1;
  font-style: italic;
  font-weight: 400;
}

.series-navigation-buttons {
  margin-top: 1.5rem;
}

.series-navigation-buttons .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  font-weight: 400;
}

/* Series Badge - Small inline badge next to title */
.series-badge {
  display: inline-block;
  color: #868e96;
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .series-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
    font-size: 0.7rem;
  }
}
