/*
Theme Name:   Hello Elementor Child
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --ink:        #111118;
  --ink-soft:   #3a3a46;
  --ink-muted:  #7a7a8a;
  --cream:      #faf9f6;
  --white:      #ffffff;
  --accent:     #1a2744;
  --accent-mid: #2c3f6e;
  --gold:       #b8975a;
  --gold-light: #d4b87a;
  --rule:       #d8d4cc;

  --col-text:   680px;
  --col-wide:   900px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'EB Garamond', Garamond, serif;
  --font-label:   'Cormorant SC', Georgia, serif;
}

/* ─── BASE PAGE ARTICLE ──────────────────────────────── */
body.single-post {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Progress bar */
.vox-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── HERO ───────────────────────────────────────────── */
.vox-hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
}

.vox-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 12s ease-out;
}

.vox-hero:hover .vox-hero__img {
  transform: scale(1.03);
}

.vox-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(15,20,35,0.72) 75%,
    rgba(15,20,35,0.92) 100%
  );
}

.vox-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 2.5rem 3.5rem;
  max-width: calc(var(--col-text) + 6rem);
  margin: 0 auto;
  animation: voxFadeUp 0.8s ease 0.15s both;
}

.vox-hero__region {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.vox-hero__region::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.vox-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  max-width: 680px;
  margin: 0 0 1.6rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.28);
}

.vox-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.vox-hero__author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.vox-hero__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.65rem;
  color: var(--white);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  overflow: hidden;
}

.vox-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vox-hero__author-name {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.95);
}

.vox-hero__date {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.vox-hero__sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.2);
}

.vox-hero__reading {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ─── ARTICLE LAYOUT ─────────────────────────────────── */
.vox-article {
  display: grid;
  grid-template-columns: 1fr min(var(--col-text), calc(100% - 3rem)) 1fr;
  row-gap: 0;
}

.vox-article > * {
  grid-column: 2;
}

.vox-article > .vox-wide {
  grid-column: 1 / -1;
  max-width: var(--col-wide);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ─── CHAPEAU / LEDE ─────────────────────────────────── */
.vox-lede {
  padding-top: 3.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.8rem;
}

.vox-lede__label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vox-lede__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.18;
}

.vox-lede p {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ─── CORPS ──────────────────────────────────────────── */
.vox-body {
  padding-bottom: 1.5rem;
}

/* Le contenu WP injecte des <p> directement */
.vox-body p,
.entry-content p {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

/* Drop cap sur le premier paragraphe */
.vox-body > p:first-of-type::first-letter,
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 0.78;
  float: left;
  margin-right: 0.1em;
  margin-top: 0.12em;
  color: var(--accent);
}

/* Intertitres */
.vox-body h2,
.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1.1rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--rule);
}

.vox-body h2::before,
.entry-content h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.1rem;
}

.vox-body h3,
.entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* H6 utilisés comme légendes dans l'article actuel */
.vox-body h6,
.entry-content h6 {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: -0.8rem;
  margin-bottom: 1.6rem;
  border-left: 2px solid var(--gold);
  padding-left: 0.7rem;
}

/* Listes ordonnées */
.vox-body ol,
.entry-content ol {
  counter-reset: vox-list;
  list-style: none;
  margin: 1.8rem 0;
  padding: 0;
}

.vox-body ol li,
.entry-content ol li {
  counter-increment: vox-list;
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
}

.vox-body ol li::before,
.entry-content ol li::before {
  content: counter(vox-list);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--gold);
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Listes non-ordonnées */
.vox-body ul,
.entry-content ul {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
}

.vox-body ul li,
.entry-content ul li {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.vox-body ul li::before,
.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

/* Blockquote */
.vox-body blockquote,
.entry-content blockquote {
  margin: 2.5rem 0;
  padding: 1.6rem 1.8rem 1.6rem 2.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(184,151,90,0.06);
}

.vox-body blockquote p,
.entry-content blockquote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Images dans le corps */
.vox-body figure,
.entry-content figure {
  margin: 2.8rem 0;
}

.vox-body figure img,
.entry-content figure img {
  width: 100%;
  height: auto;
  display: block;
}

.vox-body figcaption,
.entry-content figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.vox-body figcaption::before,
.entry-content figcaption::before {
  content: 'Photo';
  font-family: var(--font-label);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Séparateur ornemental */
.vox-body hr,
.entry-content hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
  overflow: visible;
}

.vox-body hr::after,
.entry-content hr::after {
  content: '· · ·';
  font-family: var(--font-body);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  opacity: 0.7;
}

/* ─── FOOTER ARTICLE ─────────────────────────────────── */
.vox-article-footer {
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 2px solid var(--ink);
}

/* Carte auteur */
.vox-author-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: var(--accent);
  color: var(--white);
  margin-bottom: 3rem;
}

.vox-author-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.95rem;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}

.vox-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vox-author-card__label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.vox-author-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.vox-author-card__bio {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* Sources */
.vox-sources__label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.vox-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vox-sources li {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}

.vox-sources a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Navigation précédent/suivant */
.vox-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 3rem;
  margin-bottom: 0;
}

.vox-post-nav__item {
  background: var(--cream);
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  transition: background 0.2s;
}

.vox-post-nav__item:hover { background: var(--white); }

.vox-post-nav__item--next { text-align: right; }

.vox-post-nav__dir {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.vox-post-nav__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ─── ARTICLES SUGGÉRÉS ──────────────────────────────── */
.vox-more {
  padding: 4rem 2rem 5rem;
  max-width: var(--col-wide);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.vox-more__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.vox-more__label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.vox-more__all {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vox-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.vox-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.vox-card__thumb {
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 0.9rem;
}

.vox-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vox-card:hover .vox-card__thumb img {
  transform: scale(1.04);
}

.vox-card__region {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.vox-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.vox-card:hover .vox-card__title { color: var(--accent); }

.vox-card__date {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* ─── ANIMATION ──────────────────────────────────────── */
@keyframes voxFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 860px) {
  .vox-more__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .vox-hero { height: 72vh; }
  .vox-hero__content { padding: 1.8rem 1.2rem 2.2rem; }
  .vox-article { grid-template-columns: 1fr min(var(--col-text), calc(100% - 2.4rem)) 1fr; }
  .vox-more { padding: 3rem 1.2rem 4rem; }
  .vox-more__grid { grid-template-columns: 1fr; }
  .vox-post-nav { grid-template-columns: 1fr; }
  .vox-author-card { flex-direction: column; gap: 1rem; }
}
