/* Styles spécifiques au site statique (articles, entêtes de page) */
/* Colonne de lecture (titre, image, corps) */
.page-header.container,
.page-image,
.article-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-header.container {
  padding-top: 2rem;
}

.page-image {
  text-align: center;
}

.cover-image {
  margin: 0;
}

.page-image.cover-image {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-image.cover-image:not(.cover-image--crop) {
  display: flex;
  justify-content: center;
}

.cover-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-image.cover-image:not(.cover-image--crop) img {
  margin-left: auto;
  margin-right: auto;
}

.cover-image--crop {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  display: block;
}

.cover-image--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Cartes actualités : image pleine largeur, ratio uniforme */
.article-card-media {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.article-card-media .cover-image {
  margin: 0;
  border-radius: 0;
}

.article-card-media .cover-image--crop {
  border-radius: 0;
}

.article-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #555;
}

.article-card-more {
  color: #281ee5;
  font-weight: 500;
}

/* Contenu d'article (équivalent gh-content) */
.article-content {
  padding-bottom: 4rem;
}

.article-content img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-content blockquote {
  border-left: 4px solid #281ee5;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
}

.article-content hr {
  margin: 2rem 0;
}

.article-content figcaption {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
}

.article-meta {
  color: #777;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content .table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid #ddd;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: #f4f4f8;
  font-weight: 600;
}

/* Nav desktop : tout sur une ligne, liens légèrement resserrés sous 1200px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-desktop-row a.p-2 {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    font-size: 0.9rem;
  }
}

/* Language switcher */
.lang-switcher {
  display: inline-block;
}

.lang-switcher-btn {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.lang-switcher .dropdown-menu {
  min-width: 9rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.lang-switcher .dropdown-item {
  padding: 0.35rem 0.85rem;
}

.lang-switcher .dropdown-item.active {
  font-weight: 600;
  background-color: var(--bs-dropdown-link-active-bg, #e9ecef);
  color: inherit;
}
