/* ============================================================
   HOMÉOSPIRITS — Le Journal (refonte 2026)
   Effets uniques aux pages blog : masthead gazette à filets
   doublés, chronique à la une, cartes-chroniques numérotées,
   rubriques soulignées, prose éditoriale (lettrine, citations
   gazette), fil de lecture doré.
   Primitives partagées dans css/global.css. JS : js/blog.js.
   ============================================================ */

/* ---- Masthead gazette : double filet + folio ---- */
.jo-masthead { border-bottom: 1px solid rgba(146, 110, 60, 0.35); position: relative; }
.jo-masthead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: rgba(146, 110, 60, 0.2); }
.jo-folio { display: flex; align-items: center; justify-content: center; gap: 1.1rem; font-family: var(--f-sans); font-size: 0.54rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--hs-ink-soft); opacity: 0.75; }
.jo-folio i { width: 4px; height: 4px; border-radius: 50%; background: var(--hs-gold); }

/* ---- Rubriques (filtres catégories) ---- */
.jo-rubriques { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.2rem; }
.jo-rub { position: relative; font-family: var(--f-sans); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hs-ink-soft); transition: color 0.3s; padding-bottom: 0.35rem; white-space: nowrap; }
.jo-rub .n { font-size: 0.5rem; color: var(--hs-sage); margin-left: 0.3rem; letter-spacing: 0.1em; }
.jo-rub::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hs-gold-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.jo-rub:hover { color: var(--hs-gold-deep); }
.jo-rub:hover::after { transform: scaleX(1); }
.jo-rub.is-active { color: var(--hs-ink); }
.jo-rub.is-active::after { transform: scaleX(1); }

/* ---- Images gazette : sépia léger qui se colore au survol ---- */
.jo-photo { overflow: hidden; position: relative; background: var(--hs-sand); }
.jo-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) sepia(0.14); transform: scale(1.02); transition: filter 0.8s var(--ease), transform 0.9s var(--ease); }
a:hover .jo-photo img, .jo-card:hover .jo-photo img { filter: none; transform: scale(1.06); }

/* ---- La Une : grande entrée de gazette ---- */
.jo-une { position: relative; display: grid; grid-template-columns: 0.4fr 0.6fr; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: center; }
.jo-une__fig { position: relative; max-width: 30rem; }
.jo-une__fig .framed__img { aspect-ratio: 3 / 2; }
.jo-une__vcap { position: absolute; top: 0; right: -2.3rem; height: 100%; display: flex; align-items: center; z-index: 1; }
.jo-une__vcap span { writing-mode: vertical-rl; font-family: var(--f-sans); font-size: 0.52rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--hs-sage); white-space: nowrap; }
.jo-une__copy { position: relative; }
.jo-une__ghost { position: absolute; top: -3.4rem; left: -0.8rem; z-index: 0; pointer-events: none; font-family: var(--f-display); font-weight: 600; font-style: italic; line-height: 0.8; font-size: clamp(4.5rem, 8.5vw, 7.2rem); color: transparent; -webkit-text-stroke: 1.3px rgba(146, 110, 60, 0.22); letter-spacing: -0.02em; }
.jo-une__inner { position: relative; z-index: 1; }
.jo-une__kicker { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--f-sans); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hs-gold-deep); }
.jo-une__kicker .badge { background: var(--hs-forest); color: var(--hs-cream); padding: 0.32rem 0.75rem; border-radius: 40px; letter-spacing: 0.2em; }
.jo-une__t { font-family: var(--f-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; color: var(--hs-ink); margin-top: 1.1rem; transition: color 0.4s var(--ease); }
a:hover .jo-une__t { color: var(--hs-gold-deep); }
.jo-une__x { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.62; color: var(--hs-ink-soft); margin-top: 1.2rem; max-width: 30rem; text-wrap: pretty; }
.jo-une__x::first-letter { font-family: var(--f-display); font-style: italic; font-size: 3em; line-height: 0.72; float: left; margin: 0.08em 0.16em 0 0; color: var(--hs-gold-deep); }
@media (max-width: 860px) {
  .jo-une { grid-template-columns: 1fr; gap: 2rem; }
  .jo-une__vcap { display: none; }
  .jo-une__ghost { top: -2.8rem; font-size: clamp(4rem, 16vw, 6rem); }
}

/* ---- Le sommaire : entrées horizontales filetées, alternées ---- */
.jo-rows { border-bottom: 1px solid rgba(38, 52, 42, 0.16); }
.jo-row { position: relative; display: grid; grid-template-columns: 0.44fr 0.56fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; padding: 2.4rem 0; border-top: 1px solid rgba(38, 52, 42, 0.16); }
.jo-row:nth-child(even) .jo-row__fig { order: 2; }
.jo-row:nth-child(even) .jo-row__copy { text-align: right; }
.jo-row:nth-child(even) .jo-row__copy .jo-row__cat { justify-content: flex-end; }
.jo-row:nth-child(even) .jo-row__copy .jo-row__f { flex-direction: row-reverse; }
.jo-row:nth-child(even) .jo-row__x { margin-left: auto; }
.jo-row__fig { aspect-ratio: 3 / 2; border: 1px solid rgba(179, 139, 83, 0.3); padding: 8px; transition: border-color 0.5s var(--ease); }
.jo-row:hover .jo-row__fig { border-color: var(--hs-gold); }
.jo-row__fig .jo-photo { height: 100%; }
.jo-row__copy { position: relative; }
.jo-row__no { position: absolute; top: -2.1rem; z-index: 0; pointer-events: none; font-family: var(--f-display); font-weight: 600; font-style: italic; line-height: 0.8; font-size: clamp(3.4rem, 7vw, 5.4rem); color: transparent; -webkit-text-stroke: 1.1px rgba(146, 110, 60, 0.26); transition: -webkit-text-stroke-color 0.5s var(--ease); }
.jo-row:nth-child(odd) .jo-row__no { left: -0.4rem; }
.jo-row:nth-child(even) .jo-row__no { right: -0.4rem; }
.jo-row:hover .jo-row__no { -webkit-text-stroke-color: rgba(146, 110, 60, 0.5); }
.jo-row__inner { position: relative; z-index: 1; }
.jo-row__cat { display: flex; align-items: center; gap: 0.8rem; font-family: var(--f-sans); font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hs-gold-deep); }
.jo-row__cat .rule { width: 26px; }
.jo-row__t { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.18; color: var(--hs-ink); margin-top: 0.8rem; transition: color 0.4s var(--ease); }
.jo-row:hover .jo-row__t { color: var(--hs-gold-deep); }
.jo-row__x { font-family: var(--f-serif); font-size: 1.08rem; line-height: 1.55; color: var(--hs-ink-soft); margin-top: 0.8rem; max-width: 30rem; text-wrap: pretty; }
.jo-row__f { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.2rem; }
.jo-row__d { font-family: var(--f-serif); font-style: italic; font-size: 0.98rem; color: var(--hs-ink-soft); opacity: 0.75; }
.jo-row .go-line { font-size: 0.56rem; color: var(--hs-gold-deep); }
.jo-row:hover .go-line .ln { width: 2.8rem; }
@media (max-width: 760px) {
  .jo-row { grid-template-columns: 1fr; gap: 1.3rem; padding: 2rem 0; }
  .jo-row:nth-child(even) .jo-row__fig { order: 0; }
  .jo-row:nth-child(even) .jo-row__copy { text-align: left; }
  .jo-row:nth-child(even) .jo-row__copy .jo-row__cat { justify-content: flex-start; }
  .jo-row:nth-child(even) .jo-row__copy .jo-row__f { flex-direction: row; }
  .jo-row:nth-child(even) .jo-row__x { margin-left: 0; }
  .jo-row__no { top: -1.6rem; }
  .jo-row:nth-child(even) .jo-row__no { right: auto; left: -0.2rem; }
}

/* ---- Cartes-chroniques déboîtées (suite d'édition + chroniques liées) ---- */
.jo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.8rem; }
@media (max-width: 1023px) { .jo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .jo-grid { grid-template-columns: 1fr; } }
.jo-card { position: relative; display: flex; flex-direction: column; }
.jo-card__img { aspect-ratio: 3/2; overflow: hidden; position: relative; background: var(--hs-sand); }
.jo-card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) sepia(0.14); transform: scale(1.02); transition: filter 0.8s var(--ease), transform 0.9s var(--ease); }
.jo-card:hover .jo-card__img img { filter: none; transform: scale(1.06); }
.jo-card__no { position: absolute; right: 0.2rem; top: 0.55rem; z-index: 2; font-family: var(--f-display); font-weight: 600; font-style: italic; font-size: 2.1rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(253, 250, 245, 0.85); text-shadow: 0 1px 14px rgba(20, 29, 23, 0.35); }
.jo-card__flag { position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2; font-family: var(--f-sans); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hs-cream); background: rgba(38, 52, 42, 0.85); padding: 0.3rem 0.6rem; border-radius: 40px; }
.jo-card__b { display: flex; flex-direction: column; flex: 1; border-top: 1px solid rgba(146, 110, 60, 0.3); margin-top: 1.1rem; padding-top: 1.1rem; position: relative; }
.jo-card__b::before { content: ''; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: var(--hs-gold-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease); }
.jo-card:hover .jo-card__b::before { transform: scaleX(1); }
.jo-card__cat { font-family: var(--f-sans); font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hs-gold-deep); margin-bottom: 0.65rem; }
.jo-card__t { font-family: var(--f-display); font-size: 1.42rem; line-height: 1.22; color: var(--hs-ink); margin-bottom: 0.65rem; transition: color 0.4s var(--ease); }
.jo-card:hover .jo-card__t { color: var(--hs-gold-deep); }
.jo-card__x { font-family: var(--f-serif); font-size: 1.04rem; line-height: 1.5; color: var(--hs-ink-soft); flex: 1; }
.jo-card__f { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; }
.jo-card__d { font-family: var(--f-serif); font-style: italic; font-size: 0.95rem; color: var(--hs-ink-soft); opacity: 0.75; }
.jo-card .go-line { font-size: 0.56rem; color: var(--hs-gold-deep); }
.jo-card:hover .go-line .ln { width: 2.6rem; }

/* ---- Intertitre d'édition (Sommaire / Suite de l'édition) ---- */
.jo-section-head { display: flex; align-items: center; gap: 1.2rem; margin: 3.5rem 0 0.4rem; }
.jo-section-head .t { font-family: var(--f-sans); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hs-gold-deep); white-space: nowrap; }
.jo-section-head .l { flex: 1; height: 1px; background: rgba(146, 110, 60, 0.3); }
.jo-section-head .folio { font-family: var(--f-serif); font-style: italic; font-size: 0.98rem; color: var(--hs-ink-soft); opacity: 0.75; white-space: nowrap; }

/* ---- Pagination éditoriale ---- */
.jo-pager { display: flex; align-items: center; justify-content: center; gap: 2.4rem; margin-top: 3.5rem; }
.jo-pager__folio { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--hs-ink-soft); }
.jo-pager .go-line { color: var(--hs-gold-deep); }
.jo-pager .go-line.prev .ln { transform: scaleX(-1); }
.jo-pager .go-line:hover .ln { width: 2.6rem; }

/* ============================================================
   PAGE ARTICLE
   ============================================================ */

/* ---- Fil de lecture doré (rappel de la ligne de sève) ---- */
.jo-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.jo-progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--hs-gold-light), var(--hs-gold)); box-shadow: 0 0 10px rgba(203, 165, 107, 0.55); }

/* ---- Tête d'article ---- */
.jo-art__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem; font-family: var(--f-serif); font-style: italic; font-size: 1.02rem; color: var(--hs-ink-soft); }
.jo-art__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--hs-gold); flex: none; }
.jo-art__hero { position: relative; max-width: 980px; margin: 3rem auto 0; }
.jo-art__hero .framed__img { aspect-ratio: 16 / 9; }

/* ---- Prose éditoriale : la typographie du contenu vit dans css/ck_editor.css
   (.ck-content, partagé rendu public + éditeur). Ici : uniquement la lettrine,
   réservée au rendu public (le wrapper jo-prose n'existe pas dans l'éditeur). ---- */
.jo-prose > p:first-of-type::first-letter { font-family: var(--f-display); font-style: italic; font-size: 3.4em; line-height: 0.72; float: left; margin: 0.07em 0.16em 0 0; color: var(--hs-gold-deep); }

/* ---- Signature de fin d'article ---- */
.jo-sign { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 3.5rem; text-align: center; }
.jo-sign__mark { height: 44px; width: auto; opacity: 0.9; }
.jo-sign__name { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--f-sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hs-gold-deep); }
.jo-sign__name .rule { width: 26px; }

/* ---- Vidéo embarquée ---- */
.jo-video { position: relative; aspect-ratio: 16 / 9; margin: 2.4rem 0; box-shadow: 0 24px 50px rgba(35, 29, 23, 0.16); }
.jo-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
