/* =================================================================
   CULTURENOUSHI - LAYOUT BBC - HOMEPAGE
   Fichier : neve-child/assets/css/layout-bbc.css
================================================================= */

/* -----------------------------------------------------------------
   CONTENEUR GLOBAL
----------------------------------------------------------------- */
.cn-homepage {
  max-width: 100%;
  background: #f5f5f5;
}

.cn-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -----------------------------------------------------------------
   BARRE BREAKING / À LA UNE
----------------------------------------------------------------- */
.cn-breaking-bar {
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.cn-breaking-label {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cn-breaking-text {
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -----------------------------------------------------------------
   SECTION DIVIDER BBC (bande noire avec titre)
----------------------------------------------------------------- */
.cn-section-divider {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 100%;
}

.cn-section-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-left: 4px solid #ffffff;
  padding-left: 10px;
}

.cn-section-more {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
}

.cn-section-more:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* -----------------------------------------------------------------
   SECTION GÉNÉRALE
----------------------------------------------------------------- */
.cn-section {
  background: #fff;
  padding: 20px 0;
  margin-bottom: 4px;
}

/* -----------------------------------------------------------------
   LABEL CATÉGORIE
----------------------------------------------------------------- */
.cn-cat-label {
  display: inline-block;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 2px 8px;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.6;
}

.cn-cat-label:hover {
  background: #ffffff;
  text-decoration: none;
  color: #1a1a1a;
}

/* Catégorie rouge pour Actualités */
.cn-cat-label[href*="actualites"],
.cn-cat-label[href*="actu-"] {
  background: #c00;
  color: #fff;
}

/* -----------------------------------------------------------------
   HÉRO GRID : 1 grand + 2 secondaires
----------------------------------------------------------------- */
.cn-hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #e0e0e0;
}

/* Article hero principal : couvre toute la colonne gauche */
.cn-hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.cn-hero-img-wrap {
  display: block;
  overflow: hidden;
  height: 380px;
}

.cn-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cn-hero-main:hover .cn-hero-img {
  transform: scale(1.03);
}

.cn-hero-content {
  padding: 18px 20px 20px;
}

.cn-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}

.cn-hero-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.cn-hero-title a:hover {
  color: #ffffff;
}

.cn-hero-excerpt {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0 0 12px;
}

.cn-hero-meta {
  font-size: 0.78rem;
  color: #777;
}

.cn-sep {
  margin: 0 5px;
}

/* Articles secondaires (colonne droite) */
.cn-hero-secondary {
  grid-column: 2;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cn-sec-img-wrap {
  display: block;
  overflow: hidden;
  height: 140px;
  flex-shrink: 0;
}

.cn-sec-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cn-hero-secondary:hover .cn-sec-img-wrap img {
  transform: scale(1.04);
}

.cn-sec-content {
  padding: 12px 14px;
  flex: 1;
}

.cn-sec-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

.cn-sec-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.cn-sec-title a:hover {
  color: #ffffff;
}

.cn-sec-date {
  font-size: 0.75rem;
  color: #888;
  display: block;
}

/* -----------------------------------------------------------------
   GRILLE PRINCIPALE 3 COLONNES + SIDEBAR
----------------------------------------------------------------- */
.cn-main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Grille 3 colonnes */
.cn-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: #e0e0e0;
}

/* -----------------------------------------------------------------
   CARD ARTICLE
----------------------------------------------------------------- */
.cn-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cn-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.cn-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cn-card:hover .cn-card-img-wrap img {
  transform: scale(1.04);
}

.cn-card-no-img .cn-card-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.cn-card-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cn-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  flex: 1;
}

.cn-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.cn-card-title a:hover {
  color: #ffffff;
}

.cn-card-excerpt {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.45;
  margin: 0 0 8px;
}

.cn-card-date {
  font-size: 0.74rem;
  color: #999;
  display: block;
  margin-top: auto;
}

/* Bouton voir plus */
.cn-load-more-wrap {
  text-align: center;
  padding: 24px 0 8px;
  grid-column: 1;
}

.cn-load-more {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 30px;
  text-decoration: none;
  transition: background 0.2s;
}

.cn-load-more:hover {
  background: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
}

/* -----------------------------------------------------------------
   SIDEBAR BBC
----------------------------------------------------------------- */
.cn-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cn-widget {
  background: #fff;
  margin-bottom: 4px;
  padding: 16px;
}

.cn-widget-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: #1a1a1a;
  margin: -16px -16px 14px;
  padding: 8px 14px;
  border-left: 4px solid #ffffff;
}

/* Articles populaires */
.cn-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cn-popular-item:last-child {
  border-bottom: none;
}

.cn-popular-rank {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e0e0e0;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.cn-popular-link {
  font-size: 0.87rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  text-decoration: none;
}

.cn-popular-link:hover {
  color: #ffffff;
}

/* Liste catégories sidebar */
.cn-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cn-cat-list li {
  border-bottom: 1px solid #eee;
}

.cn-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.cn-cat-link:hover {
  color: #ffffff;
}

.cn-cat-count {
  background: #f0f0f0;
  color: #666;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Articles sidebar avec thumbnail */
.cn-sidebar-article {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cn-sidebar-article:last-child {
  border-bottom: none;
}

.cn-sidebar-thumb {
  display: block;
  flex-shrink: 0;
  width: 70px;
  height: 52px;
  overflow: hidden;
}

.cn-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cn-sidebar-text {
  flex: 1;
}

.cn-sidebar-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
}

.cn-sidebar-title:hover {
  color: #ffffff;
}

/* -----------------------------------------------------------------
   STRIP DE CATÉGORIE (Chroniques, Interviews)
----------------------------------------------------------------- */
.cn-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: #e0e0e0;
}

.cn-strip-card {
  background: #fff;
  overflow: hidden;
}

.cn-strip-card > a {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.cn-strip-card > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cn-strip-card:hover > a img {
  transform: scale(1.04);
}

.cn-strip-card .cn-card-body {
  padding: 10px 12px 14px;
}

.cn-strip-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.cn-strip-card h4 a {
  color: #1a1a1a;
  text-decoration: none;
}

.cn-strip-card h4 a:hover {
  color: #ffffff;
}

.cn-strip-card time {
  font-size: 0.74rem;
  color: #999;
}

/* -----------------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cn-main-content {
    grid-template-columns: 1fr 260px;
  }

  .cn-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .cn-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cn-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .cn-hero-main {
    grid-column: 1;
    grid-row: 1;
  }

  .cn-hero-secondary {
    grid-column: 1;
  }

  .cn-hero-img-wrap {
    height: 220px;
  }

  .cn-hero-title {
    font-size: 1.2rem;
  }

  .cn-main-content {
    grid-template-columns: 1fr;
  }

  .cn-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .cn-grid-3col {
    grid-template-columns: 1fr;
  }

  .cn-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cn-sidebar {
    grid-template-columns: 1fr;
  }

  .cn-strip-grid {
    grid-template-columns: 1fr;
  }

  .cn-breaking-text {
    display: none;
  }
}
