/* COMUNITY — bandeau de page : le bandeau blanc natif de FluentCommunity, avec fil d'Ariane (disposition A validée par Cédric).
   .com64-bandeau : tout bandeau qui porte le fil d'Ariane (portail et nos pages).
   .com64-bandeau-cadre : le bandeau rendu par nos pages WordPress, qui reprend les mesures du natif.
   Couleurs : variables natives --fcom-*, qui suivent le mode clair ou sombre du portail. */

/* ---------- Bandeau de nos pages, aux mesures du natif ---------- */
.feed_layout .fhr_content_layout_header.com64-bandeau-cadre {
  position: sticky;
  /* Collé sous la barre du haut, collante elle aussi (55 px, 53 px de 768 à 1 024 px) : bandeau.js donne sa hauteur réelle. */
  top: var(--com64-haut-barre, 55px);
  z-index: 90;
  min-height: 52px;
  padding: 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.4;
  background: var(--fcom-primary-bg, #fff);
  border-bottom: 1px solid var(--fcom-primary-border, #dadde1);
  color: var(--fcom-primary-text, #050505);
}
.feed_layout .fhr_content_layout_header.com64-bandeau-cadre .com64-bandeau-titre {
  margin: 0;
  font-family: inherit;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fcom-primary-text, #050505);
}

/* ---------- Disposition commune : fil, titre, actions à droite ---------- */
.feed_layout .fhr_content_layout_header.com64-bandeau {
  justify-content: flex-start;
  gap: 8px;
}
.feed_layout .fhr_content_layout_header.com64-bandeau > h1,
.feed_layout .fhr_content_layout_header.com64-bandeau > .com64-bandeau-titre,
.feed_layout .fhr_content_layout_header.com64-bandeau > .el-breadcrumb {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4; /* sans quoi le titre natif du portail, rogné, perd le bas de ses lettres */
}
.feed_layout .fhr_content_layout_header.com64-bandeau > .fhr_page_actions {
  margin-left: auto;
}
.feed_layout .fhr_content_layout_header.com64-bandeau-cadre > .fhr_page_actions:empty {
  display: none;
}

/* Fil d'Ariane : maillons parents en gris secondaire natif, chevrons discrets. */
.com64-bandeau .com64-ariane {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.com64-bandeau .com64-ariane ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.com64-bandeau .com64-ariane li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}
.com64-bandeau .com64-ariane a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Cible d'au moins 24 px (WCAG 2.5.8), la maison comprise. */
  min-width: 24px;
  min-height: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fcom-secondary-text, #65676b);
  text-decoration: none;
  border-radius: 4px;
}
.com64-bandeau .com64-ariane a:hover {
  color: var(--fcom-text-link, #2438ff);
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.dark .com64-bandeau .com64-ariane a:hover {
  color: var(--fcom-primary-text, #f0f3f5);
}
.com64-bandeau .com64-ariane a:focus-visible,
.com64-bandeau .el-breadcrumb a:focus-visible {
  outline: 2px solid var(--fcom-text-link, #2438ff);
  outline-offset: 2px;
}
.com64-bandeau .com64-ariane-chevron {
  flex-shrink: 0;
  color: var(--fcom-secondary-border, #a5a9ad);
}
.com64-bandeau .com64-ariane a.com64-ariane-retour {
  display: none;
}

/* Fil natif du portail (« Formations / cours », « Membres / profil ») : parents en gris, page en cours en titre. */
.com64-bandeau > .el-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
}
.com64-bandeau > .el-breadcrumb .el-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  float: none;
}
.com64-bandeau > .el-breadcrumb .el-breadcrumb__inner,
.com64-bandeau > .el-breadcrumb .el-breadcrumb__inner a,
.com64-bandeau > .el-breadcrumb .el-breadcrumb__inner.is-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--fcom-secondary-text, #65676b);
  text-decoration: none;
}
.com64-bandeau > .el-breadcrumb .el-breadcrumb__inner a:hover {
  color: var(--fcom-text-link, #2438ff);
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.dark .com64-bandeau > .el-breadcrumb .el-breadcrumb__inner a:hover {
  color: var(--fcom-primary-text, #f0f3f5);
}
.com64-bandeau > .el-breadcrumb .el-breadcrumb__item:last-child .el-breadcrumb__inner,
.com64-bandeau > .el-breadcrumb .el-breadcrumb__item:last-child .el-breadcrumb__inner * {
  font-size: 17.6px;
  font-weight: 600;
  color: var(--fcom-primary-text, #050505);
}
/* Séparateur « / » remplacé par le chevron du fil. */
.com64-bandeau > .el-breadcrumb .el-breadcrumb__separator {
  width: 14px;
  height: 14px;
  margin: 0 8px;
  font-size: 0;
  background-color: var(--fcom-secondary-border, #a5a9ad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.com64-bandeau > .el-breadcrumb .el-breadcrumb__item:last-child .el-breadcrumb__separator {
  display: none;
}

/* ---------- Téléphone et tablette étroite : les parents se replient en un bouton retour ---------- */
@media (max-width: 768px) {
  .feed_layout .fhr_content_layout_header.com64-bandeau-cadre {
    min-height: 48px;
    padding: 0 10px;
  }
  .feed_layout .fhr_content_layout_header.com64-bandeau {
    gap: 4px;
  }
  .com64-bandeau .com64-ariane ol,
  .com64-bandeau > .el-breadcrumb .el-breadcrumb__item:not(:last-child) {
    display: none;
  }
  /* Le titre reste sur la ligne du bouton retour (32 px + 4 px d'écart) ; quand la place manque, les actions passent
     dessous, comme dans le bandeau natif. */
  .feed_layout .fhr_content_layout_header.com64-bandeau > h1,
  .feed_layout .fhr_content_layout_header.com64-bandeau > .com64-bandeau-titre,
  .feed_layout .fhr_content_layout_header.com64-bandeau > .el-breadcrumb {
    flex: 1 1 auto;
    max-width: calc(100% - 36px);
  }
  .com64-bandeau .com64-ariane a.com64-ariane-retour {
    display: inline-flex;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--fcom-primary-text, #050505);
  }
}
/* Petit téléphone : un titre long passe sur deux lignes au lieu d'être coupé. */
@media (max-width: 480px) {
  .feed_layout .fhr_content_layout_header.com64-bandeau > h1,
  .feed_layout .fhr_content_layout_header.com64-bandeau > .com64-bandeau-titre {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    line-height: 1.25;
    padding: 6px 0;
  }
}

/* ---------- Espace entre le bandeau et le contenu de nos pages : 32 px, comme dans le portail ---------- */
.feeds_main:has(> .com64-bandeau-cadre) .gs-page.gs-page {
  margin-top: var(--decalage-cadre, -64px);
}
/* Mises en page du Site Builder (fiche produit, 404, recherche) : pas de marge d'Astra à compenser. */
.feeds_main:has(> .com64-bandeau-cadre) > .gs-page.gs-page {
  margin-top: 0;
}

/* ---------- Fond dégradé de nos pages sur toute la hauteur visible, même quand la page est courte ----------
   Le dégradé lui-même vit dans les styles globaux de Spectra Blocks (règle .feeds_main:has(.gs-page)) ; seule sa
   hauteur minimale est ici, parce qu'elle suit les seuils du portail (55 px de barre du haut, menu bas sous 1 024 px). */
.feeds_main:has(.gs-page) {
  min-height: calc(100vh - 55px);
  min-height: calc(100dvh - 55px);
}
/* Jusqu'à 1 024 px, le portail ajoute en bas un menu fixe de 65 px. */
@media (max-width: 1024px) {
  .feeds_main:has(.gs-page) {
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
  }
}
