/* ============================================================
   Single post / page statique
   ============================================================ */

/* ─── Article ─────────────────────────────────────────────── */

.vc-article {
  padding-top: var(--vc-space-10);
}

.vc-article-thumbnail {
  margin-bottom: var(--vc-space-10);
  border-radius: var(--vc-radius-lg);
  overflow: hidden;
  max-height: 520px;
}

.vc-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-article-inner {
  max-width: 760px;
}

/* ─── Header article ──────────────────────────────────────── */

.vc-article-header {
  margin-bottom: var(--vc-space-10);
}

.vc-article-title {
  font-family: var(--vc-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: var(--vc-tracking-display);
  color: var(--vc-color-ink);
  line-height: var(--vc-line-height-tight);
  margin-top: var(--vc-space-4);
  margin-bottom: var(--vc-space-5);
}

.vc-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--vc-space-2);
  font-size: var(--vc-font-size-sm);
  color: var(--vc-color-grey-500);
}

.vc-meta-separator { color: var(--vc-color-grey-400); }

.vc-reading-time {
  display: inline-flex;
  align-items: center;
  gap: var(--vc-space-1);
}

/* ─── Contenu ─────────────────────────────────────────────── */

.vc-article-content {
  font-size: var(--vc-font-size-md);
  line-height: var(--vc-line-height-loose);
  color: var(--vc-color-grey-700);
}

/* ─── Page pleine largeur (page.php, modèle par défaut) ──────
   La bannière avec image (.vc-page-banner) reste sur toute la largeur du
   conteneur — c'est le seul élément qui a intérêt à déborder. Le titre sans
   image (.vc-page-header) et le texte partagent la même colonne recentrée :
   les deux DOIVENT avoir la même largeur, sinon le titre plaqué à gauche du
   conteneur et un texte recentré plus étroit ne s'alignent plus — la page
   semble bancale, chaque bloc semblant appartenir à une mise en page
   différente. */
.vc-page-full .vc-container {
  padding-top: var(--vc-space-12);
  padding-bottom: var(--vc-section-py);
}

.vc-article--full .vc-page-header,
.vc-article--full .vc-article-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Idem pour le titre en incrustation sur bannière : centré sur la même
   colonne que le texte qui suit, pas plaqué au bord du conteneur. */
.vc-article--full .vc-page-banner-overlay {
  justify-content: center;
}

.vc-article--full .vc-page-banner-title {
  width: 100%;
  max-width: 900px;
}

/* Premier paragraphe : une accroche un peu plus présente, dans le ton
   éditorial du reste du site (voir .vc-post-card-excerpt), plutôt qu'un mur
   de texte uniforme dès la première ligne. */
.vc-article--full .vc-article-content > p:first-of-type {
  font-family: var(--vc-font-heading);
  font-size: var(--vc-font-size-lg);
  font-weight: 400;
  line-height: var(--vc-line-height-snug);
  color: var(--vc-color-ink);
}

/* Les photos : une présence plus soignée qu'un fichier posé tel quel, et une
   hauteur plafonnée pour qu'un portrait natif ne prenne pas tout l'écran. */
.vc-article--full .entry-content img {
  box-shadow: var(--vc-shadow-md);
  max-height: 70vh;
  width: auto;
  max-width: 100%;
}

/* ─── Footer article ──────────────────────────────────────── */

.vc-article-footer {
  margin-top: var(--vc-space-12);
  padding-top: var(--vc-space-8);
  border-top: 1px solid var(--vc-color-border);
  display: flex;
  flex-direction: column;
  gap: var(--vc-space-4);
}

.vc-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vc-space-2);
  font-size: var(--vc-font-size-sm);
}
.vc-article-tags a {
  padding: var(--vc-space-1) var(--vc-space-3);
  border: 1px solid var(--vc-color-border);
  border-radius: var(--vc-radius-full);
  color: var(--vc-color-grey-700);
  text-decoration: none;
  transition: all var(--vc-duration-fast) var(--vc-ease);
}
.vc-article-tags a:hover {
  border-color: var(--vc-color-primary);
  color: var(--vc-color-primary);
}

/* ─── Page bannière ───────────────────────────────────────── */

.vc-page-banner {
  position: relative;
  height: clamp(280px, 40vh, 460px);
  overflow: hidden;
  border-radius: var(--vc-radius-lg);
  margin-bottom: var(--vc-space-12);
}

.vc-page-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,11,.78) 0%, rgba(13,13,11,.15) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--vc-space-10) var(--vc-container-padding);
}

.vc-page-banner-title {
  font-family: var(--vc-font-heading);
  font-size: var(--vc-font-size-3xl);
  font-weight: 500;
  letter-spacing: var(--vc-tracking-display);
  color: var(--vc-color-white);
  margin: 0;
}

.vc-page-header {
  padding-top: var(--vc-space-6);
  padding-bottom: var(--vc-space-10);
  border-bottom: 1px solid var(--vc-color-border-soft);
  margin-bottom: var(--vc-space-12);
}

.vc-page-title {
  font-family: var(--vc-font-heading);
  font-size: var(--vc-font-size-3xl);
  font-weight: 500;
  letter-spacing: var(--vc-tracking-display);
  color: var(--vc-color-ink);
  margin: 0;
}
