/*
 * BlizzCMS Advanced News Glass Detail
 * Scope volontaire : toutes les règles commencent par .news-glass
 * Objectif : harmoniser la page news avec l'accueil Glass Cards sans toucher au thème global.
 */

.news-glass-page {
  padding-top: 24px;
  padding-bottom: 42px;
}

.news-glass-container {
  max-width: 1380px;
}

.news-glass-grid {
  align-items: flex-start;
}

.news-glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(210, 170, 80, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 174, 255, 0.13), transparent 38%),
    linear-gradient(135deg, rgba(5, 14, 35, 0.88), rgba(3, 9, 23, 0.94));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.news-glass-card:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 216, 120, 0.07), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%);
}

.news-glass-card-inner {
  position: relative;
  z-index: 1;
}

.news-glass-article-hero {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  min-height: 255px;
  border-bottom: 1px solid rgba(80, 145, 210, 0.24);
}

.news-glass-article-image {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.news-glass-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-glass-article-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 42%, rgba(3, 9, 23, 0.72)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.40), transparent 58%);
}

.news-glass-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  color: #071021;
  background: linear-gradient(180deg, #ffd269, #c88724);
  box-shadow: 0 0 18px rgba(240, 194, 102, 0.28);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-glass-article-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.news-glass-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  color: #94a9c7;
  font-size: 12px;
  font-weight: 700;
}

.news-glass-meta i {
  color: #f0c266;
  margin-right: 5px;
}

.news-glass-title {
  margin: 0;
  color: #ffffff;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(0, 174, 255, 0.20);
}

.news-glass-body {
  padding: 28px;
  color: #d7e3f7;
  font-size: 15px;
  line-height: 1.78;
}

.news-glass-body p {
  margin-top: 0;
}

.news-glass-body a {
  color: #f0c266;
  font-weight: 800;
}

.news-glass-body strong,
.news-glass-body b {
  color: #ffffff;
}

.news-glass-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.news-glass-side-card,
.news-glass-comment-card,
.news-glass-reply-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(80, 145, 210, 0.28);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 174, 255, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(5, 14, 35, 0.78), rgba(2, 8, 24, 0.90));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.news-glass-side-card:before,
.news-glass-comment-card:before,
.news-glass-reply-card:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%);
}
.news-glass-side-head,
.news-glass-reply-head {
  position: relative;
  z-index: 1;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.news-glass-side-head h5,
.news-glass-reply-head h3 {
  margin: 0;
  color: #f4f7ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.news-glass-side-head h5 {
  font-size: 15px;
}
.news-glass-reply-head h3 {
  font-size: 20px;
  text-align: center;
  text-transform: none;
}
.news-glass-side-head i,
.news-glass-reply-head i {
  color: #f0c266;
  margin-right: 7px;
}

.news-glass-side-body,
.news-glass-comment-body,
.news-glass-reply-body {
  position: relative;
  z-index: 1;
  padding: 17px;
}

.news-glass-latest-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-glass-latest-list li + li {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-glass-latest-list a {
  display: flex;
  gap: 8px;
  color: #9ecbff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.news-glass-latest-list a:hover {
  color: #f0c266;
  text-decoration: none;
}

.news-glass-latest-list i {
  color: #f0c266;
  margin-top: 2px;
}

.news-glass-comments {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.news-glass-comment-layout {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
}

.news-glass-author {
  text-align: center;
}

.news-glass-author-avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 9px;
  overflow: hidden;
  border: 1px solid rgba(240, 194, 102, 0.46);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.30);
  box-shadow: 0 0 22px rgba(240, 194, 102, 0.12);
}

.news-glass-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-glass-author-name {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.news-glass-staff {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffd269;
  background: rgba(240, 194, 102, 0.10);
  border: 1px solid rgba(240, 194, 102, 0.26);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-glass-comment-date {
  margin: 0 0 10px;
  color: #94a9c7;
  font-size: 12px;
  font-weight: 700;
}

.news-glass-comment-content {
  color: #d7e3f7;
  font-size: 14px;
  line-height: 1.7;
}

.news-glass-comment-content a {
  color: #f0c266;
}

.news-glass-action-danger {
  border: 1px solid rgba(255, 87, 87, 0.45);
  border-radius: 10px;
  color: #ffb0b0;
  background: rgba(190, 35, 35, 0.18);
  font-weight: 800;
}

.news-glass-action-danger:hover {
  color: #fff;
  background: rgba(190, 35, 35, 0.34);
}

.news-glass-login-box {
  padding: 18px;
  border: 1px solid rgba(80, 145, 210, 0.26);
  border-radius: 12px;
  background: rgba(2, 10, 28, 0.45);
  color: #d7e3f7;
  text-align: center;
}

.news-glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(240, 194, 102, 0.62);
  border-radius: 12px;
  color: #f0c266;
  background: rgba(240, 194, 102, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.news-glass-button:hover {
  color: #071021;
  background: linear-gradient(180deg, #ffd269, #c88724);
  text-decoration: none;
}

.news-glass-submit {
  width: 100%;
}

.news-glass-reply-editor {
  margin-bottom: 12px;
}

.news-glass-reply-editor textarea {
  border-radius: 12px;
  border-color: rgba(80, 145, 210, 0.34);
  background: rgba(2, 10, 28, 0.58);
  color: #ffffff;
}

.news-glass-reply-editor .jodit-container {
  border-radius: 12px !important;
  overflow: hidden;
  border-color: rgba(80, 145, 210, 0.34) !important;
}

@media (max-width: 1200px) {
  .news-glass-container {
    max-width: 1140px;
  }

  .news-glass-article-hero {
    grid-template-columns: 1fr;
  }

  .news-glass-article-image {
    min-height: 260px;
  }

  .news-glass-article-image:after {
    background: linear-gradient(0deg, rgba(3, 9, 23, 0.72), transparent 58%);
  }
}

@media (max-width: 960px) {
  .news-glass-title {
    font-size: 24px;
  }

  .news-glass-comment-layout {
    grid-template-columns: 1fr;
  }

  .news-glass-author {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
  }

  .news-glass-author-avatar {
    width: 64px;
    height: 64px;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .news-glass-page {
    padding-top: 14px;
  }

  .news-glass-article-head,
  .news-glass-body,
  .news-glass-side-body,
  .news-glass-comment-body,
  .news-glass-reply-body {
    padding: 15px;
  }

  .news-glass-article-image {
    min-height: 190px;
  }

  .news-glass-title {
    font-size: 20px;
  }

  .news-glass-meta {
    gap: 8px;
  }

  .news-glass-author {
    grid-template-columns: 54px 1fr;
  }

  .news-glass-author-avatar {
    width: 50px;
    height: 50px;
  }
}

/* === News list page v1 START === */
.news-glass-list-page .news-glass-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.news-glass-list-page .news-glass-list-head .news-glass-title {
    margin: 12px 0 0 0;
}

.news-glass-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-glass-list-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(210, 170, 80, 0.26);
    border-radius: 20px;
    background:
        radial-gradient(circle at 0% 0%, rgba(240, 194, 102, 0.08), transparent 35%),
        linear-gradient(135deg, rgba(5, 14, 35, 0.86), rgba(3, 9, 23, 0.94));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.news-glass-list-image {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    text-decoration: none;
}

.news-glass-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.news-glass-list-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.news-glass-list-card:hover .news-glass-list-image img {
    transform: scale(1.045);
    opacity: 0.92;
}

.news-glass-list-image .news-glass-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
}

.news-glass-list-body {
    padding: 18px;
}

.news-glass-list-title {
    margin: 12px 0 10px 0;
    font-size: 20px;
    line-height: 1.25;
}

.news-glass-list-title a {
    color: #f4d27a;
    text-decoration: none;
    text-shadow: 0 2px 4px #000;
}

.news-glass-list-title a:hover {
    color: #ffffff;
    text-decoration: none;
}

.news-glass-list-excerpt {
    min-height: 70px;
    margin: 0 0 16px 0;
    color: #bfd1ec;
    line-height: 1.55;
}

.news-glass-list-readmore {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1100px) {
    .news-glass-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .news-glass-list-page .news-glass-list-head {
        display: block;
    }

    .news-glass-list-page .news-glass-list-head .news-glass-button {
        margin-top: 14px;
    }

    .news-glass-list-grid {
        grid-template-columns: 1fr;
    }

    .news-glass-list-image {
        height: 165px;
    }
}
/* === News list page v1 END === */

/* === News list card layout v2 START === */
/*
 * Correction affichage liste /news :
 * - le badge "News" doit rester compact sur les cartes liste ;
 * - le bouton Lire la suite doit rester dans la carte ;
 * - les cartes doivent respirer et ne pas écraser le contenu.
 * Scope strict : .news-glass-list-page uniquement.
 */

.news-glass-list-page .news-glass-container {
    max-width: 1220px;
}

.news-glass-list-page .news-glass-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 390px));
    justify-content: center;
    align-items: stretch;
    gap: 26px;
}

.news-glass-list-page .news-glass-list-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.news-glass-list-page .news-glass-list-image {
    height: 190px;
    flex: 0 0 auto;
}

.news-glass-list-page .news-glass-list-image .news-glass-badge {
    top: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 26px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.news-glass-list-page .news-glass-list-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px;
}

.news-glass-list-page .news-glass-list-title {
    margin: 12px 0 10px 0;
    overflow-wrap: anywhere;
}

.news-glass-list-page .news-glass-list-excerpt {
    flex: 1 1 auto;
    min-height: 0;
    overflow-wrap: anywhere;
}

.news-glass-list-page .news-glass-list-readmore {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

.news-glass-list-page .news-glass-list-readmore i {
    flex: 0 0 auto;
}

@media (max-width: 680px) {
    .news-glass-list-page .news-glass-list-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .news-glass-list-page .news-glass-list-card {
        width: 100%;
    }

    .news-glass-list-page .news-glass-list-image {
        height: 165px;
    }
}
/* === News list card layout v2 END === */

/* === News list compact cards v3 START === */
/*
 * Liste /news compacte :
 * la carte affiche image + date/commentaires + titre + bouton.
 * Le contenu complet reste dans l'article.
 * Scope strict : .news-glass-list-page uniquement.
 */

.news-glass-list-page .news-glass-list-card {
    max-width: 390px;
}

.news-glass-list-page .news-glass-list-body {
    min-height: 210px;
}

.news-glass-list-page .news-glass-list-title {
    flex: 1 1 auto;
    min-height: 78px;
    display: flex;
    align-items: flex-start;
}

.news-glass-list-page .news-glass-list-title a {
    display: inline-block;
}

.news-glass-list-page .news-glass-list-excerpt {
    display: none;
}

.news-glass-list-page .news-glass-list-readmore {
    margin-top: 18px;
}

@media (max-width: 680px) {
    .news-glass-list-page .news-glass-list-card {
        max-width: none;
    }

    .news-glass-list-page .news-glass-list-body {
        min-height: 190px;
    }

    .news-glass-list-page .news-glass-list-title {
        min-height: 62px;
    }
}
/* === News list compact cards v3 END === */

/* === News list remove back button v4 START === */
/*
 * Le bouton Retour de /news a été supprimé :
 * la navigation se fait via la navbar globale.
 * Scope strict : .news-glass-list-page uniquement.
 */

.news-glass-list-page .news-glass-list-head {
    justify-content: flex-start;
}

.news-glass-list-page .news-glass-list-head > div {
    width: 100%;
}
/* === News list remove back button v4 END === */


/* BCA_NEWS_PUBLIC_LAYOUT_V2 START */
.bca-public-news-page .news-glass-container {
  max-width: 1220px;
}

.bca-public-news-page .bca-public-head--news {
  margin-bottom: 18px;
}

.bca-public-news-page .bca-news-public-layout {
  align-items: flex-start;
}

.bca-public-news-page .bca-news-public-main {
  min-width: 0;
}

.bca-public-news-page .news-glass-list-grid {
  justify-content: flex-start;
}

.bca-public-news-page .news-glass-badge,
.bca-public-news-page .news-glass-list-head {
  display: none !important;
}

@media (max-width: 959px) {
  .bca-public-news-page .bca-news-public-sidebar {
    margin-bottom: 14px;
  }
}
/* BCA_NEWS_PUBLIC_LAYOUT_V2 END */
