/**
 * @file
 * Briques éditoriales réutilisables : surtitres, méta, cartes, titres de
 * section, images de substitution. Ces classes sont posées par les gabarits
 * node--article--*.html.twig.
 */

/* --- Surtitre de rubrique --- */
.kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--ccd-red);
  font-family: var(--ccd-font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.kicker--chip {
  margin-bottom: 11px;
  padding: 4px 9px;
  background: var(--ccd-red);
  color: #fff;
}

.kicker--outline {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* --- Méta-données --- */
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ccd-grey-600);
  font-size: 12px;
}

.meta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ccd-grey-400);
}

/* --- Carte générique --- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: var(--ccd-rule);
  background: var(--ccd-white);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card__body .meta {
  margin-top: auto;
  padding-top: 14px;
}

.card a:hover h2,
.card a:hover h3,
.card a:hover h4 {
  color: var(--ccd-red);
}

/* --- Titre de section --- */
.sechead {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ccd-black);
}

.sechead h2 {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Deuxième moitié du titre en rouge (« Poli/tique »). */
.sechead h2 em {
  color: var(--ccd-red);
  font-style: normal;
}

.sechead__more {
  margin-left: auto;
  padding-bottom: 3px;
  color: var(--ccd-grey-600);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sechead__more:hover {
  color: var(--ccd-red);
}

.sechead--light {
  border-bottom-color: var(--ccd-dark-line);
}

.sechead--light h2 {
  color: #fff;
}

.sechead--light .sechead__more {
  color: var(--ccd-grey-400);
}

/* --- Image de substitution (champ image vide) --- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, #35353c 0%, transparent 60%),
    linear-gradient(145deg, #232329 0%, #15151a 60%, #0e0e10 100%);
}

.ph::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 46%, rgba(207, 46, 46, 0.22) 50%, transparent 54%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
  content: "";
}

.ph--16x9 {
  aspect-ratio: 16 / 9;
}

.ph--4x3 {
  aspect-ratio: 4 / 3;
}

.ph--1x1 {
  aspect-ratio: 1 / 1;
}

/* Les images réelles reprennent les mêmes proportions. */
.media--16x9 img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media--4x3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media--1x1 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* --- Teaser « liste illustrée » (vignette carrée + titre) --- */
.teaser-list article,
.teaser-list .node {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: var(--ccd-rule);
}

.teaser-list article:first-child,
.teaser-list .node:first-child {
  padding-top: 0;
  border-top: 0;
}

.teaser-list .teaser__media {
  flex: none;
  width: 94px;
}

.teaser-list h4 {
  font-size: 15.5px;
  line-height: 1.3;
}

/* --- Teaser « brève » (titre seul, filet rouge) --- */
.teaser-brief {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.teaser-brief li {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-top: var(--ccd-rule);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.teaser-brief li::before {
  flex: none;
  width: 3px;
  margin: 3px 0;
  background: var(--ccd-red);
  content: "";
}

.teaser-brief li:hover {
  color: var(--ccd-red);
}

/* --- Teaser vedette --- */
.teaser-feature h3 {
  margin-top: 16px;
  font-size: 27px;
  line-height: 1.1;
}

.teaser-feature p {
  margin-top: 11px;
  color: var(--ccd-grey-600);
  font-size: 15px;
}
