/* ============================================================
   PAGE D'ACCUEIL : ESPACE MAGAZINE (ENQUÊTES & DÉCRYPTAGES)
   ============================================================ */
.cp-mag-section {
  background: #ffffff;
}

.cp-mag-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .cp-mag-layout {
    grid-template-columns: 1fr;
  }
}

/* Mode mono-article équilibré (évite une colonne vide si 1 seul article) */
.cp-mag-layout--single {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .cp-mag-featured-card--single {
    flex-direction: row;
    align-items: stretch;
  }

  .cp-mag-featured-card--single .cp-mag-featured-thumb {
    width: 46%;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .cp-mag-featured-card--single .cp-mag-featured-body {
    width: 54%;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.cp-mag-featured-card {
  background: #ffffff;
  border: 1px solid var(--cp-color-border, #E2E8F0);
  border-radius: var(--cp-radius-md, 16px);
  overflow: hidden;
  box-shadow: var(--cp-shadow-subtle, 0 1px 3px rgba(15, 23, 42, 0.05));
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cp-mag-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.cp-mag-featured-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0F172A;
  overflow: hidden;
  display: block;
}

.cp-mag-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cp-mag-featured-card:hover .cp-mag-featured-thumb img {
  transform: scale(1.03);
}

.cp-mag-featured-body {
  padding: 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .cp-mag-featured-body {
    padding: 1.25rem 1.15rem;
  }
}

.cp-mag-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cp-mag-date {
  font-size: var(--cp-meta-size);
  color: #64748B;
  font-weight: 600;
}

.cp-mag-featured-title {
  font-size: var(--cp-h3-size);
  font-weight: 800;
  color: var(--cp-color-primary, #20467B);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.cp-mag-featured-title a {
  color: inherit;
  text-decoration: none;
}

.cp-mag-featured-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 1.25rem;
}

.cp-mag-read-link {
  color: var(--cp-color-secondary, #EB7630);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cp-mag-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.cp-mag-side-item {
  background: #ffffff;
  border: 1px solid var(--cp-color-border, #E2E8F0);
  border-radius: var(--cp-radius-md, 16px);
  padding: 1rem 1.15rem;
  box-shadow: var(--cp-shadow-subtle, 0 1px 3px rgba(15, 23, 42, 0.05));
  display: flex;
  gap: 1.15rem;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 640px) {
  .cp-mag-side-item {
    padding: 0.85rem 0.95rem;
    gap: 0.85rem;
  }
}

.cp-mag-side-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.cp-mag-side-thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--cp-radius-sm, 8px);
  overflow: hidden;
  flex-shrink: 0;
  background: #F1F5F9;
  display: block;
}

@media (max-width: 640px) {
  .cp-mag-side-thumb {
    width: 76px;
    height: 64px;
  }
}

.cp-mag-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-mag-side-content {
  flex: 1;
}

.cp-mag-side-date {
  font-size: var(--cp-meta-size);
  color: #64748B;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.cp-mag-side-title {
  font-size: var(--cp-h4-size);
  font-weight: 700;
  color: var(--cp-color-primary, #20467B);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.cp-mag-side-title a {
  color: inherit;
  text-decoration: none;
}

.cp-mag-side-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cp-color-secondary, #EB7630);
  text-decoration: none;
}

.cp-mag-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .cp-mag-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cp-mag-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.cp-empty-state {
  background: #ffffff;
  border: 1px solid var(--cp-color-border, #E2E8F0);
  border-radius: var(--cp-radius-md, 16px);
  padding: 3rem;
  text-align: center;
  color: #64748B;
}
