/**
 * GEREJE V2 — Page article / news detail
 * Hero éditorial, prose lisible, suggestions d'articles
 */

.page-article {
    --gj-font-serif: 'Trajan Pro', serif;
    --gj-font-body: 'Crimson Text', Georgia, serif;
}

.page-article h1,
.page-article h2,
.page-article h3,
.page-article .gj-article-hero__title,
.page-article .gj-article-related__title,
.page-article .gj-article-card__title {
    font-family: var(--gj-font-serif);
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ─── Hero ─── */
.page-article .gj-article-hero {
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(420px, 62vh, 620px);
    padding: clamp(120px, 14vw, 150px) 0 clamp(48px, 6vw, 72px);
    text-align: left;
}

.page-article .gj-article-hero__inner {
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 48px);
}

.page-article .gj-article-hero__bg {
    background-position: center 35%;
}

.page-article .gj-article-hero .gj-page-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(15, 15, 18, 0.52) 0%,
        rgba(92, 0, 22, 0.58) 48%,
        rgba(25, 25, 25, 0.88) 100%
    );
}

.page-article .gj-article-hero__top {
    position: absolute;
    top: clamp(96px, 11vw, 118px);
    left: 0;
    right: 0;
    z-index: 2;
}

.page-article .gj-article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}

.page-article .gj-article-hero__back:hover,
.page-article .gj-article-hero__back:focus-visible {
    color: #fff;
    gap: 12px;
}

.page-article .gj-article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 18px;
}

.page-article .gj-article-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.page-article .gj-article-hero__date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.page-article .gj-article-hero__title {
    margin: 0 0 18px;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.22;
    text-transform: uppercase;
    text-wrap: balance;
    color: #fff;
}

.page-article .gj-article-hero__lead {
    margin: 0;
    max-width: 640px;
    font-family: var(--gj-font-body);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-style: italic;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.86);
    text-transform: none;
}

/* ─── Body shell ─── */
.page-article .gj-article__body {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem);
    background: linear-gradient(180deg, #fff 0%, #faf9f7 12%, #f4f2ef 100%);
}

.page-article .gj-article__body::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(140px, 24vw);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gj-brand), transparent);
    opacity: 0.55;
    content: '';
}

.page-article .gj-container--article {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

/* ─── Prose ─── */
.page-article .gj-article__prose {
    font-family: var(--gj-font-body);
    font-size: clamp(1.05rem, 1.4vw, 1.125rem);
    line-height: 1.8;
    color: #3a3836;
    text-transform: none;
}

.page-article .gj-article__prose > *:first-child {
    margin-top: 0;
}

.page-article .gj-article__prose > p:first-of-type {
    font-size: clamp(1.12rem, 1.6vw, 1.22rem);
    line-height: 1.75;
    color: #2a2826;
}

.page-article .gj-article__prose p {
    margin: 0 0 1.15em;
    text-transform: none;
}

.page-article .gj-article__prose h2,
.page-article .gj-article__prose h3,
.page-article .gj-article__prose h4 {
    font-family: var(--gj-font-serif);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gj-ink);
    margin: 2em 0 0.65em;
}

.page-article .gj-article__prose h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.page-article .gj-article__prose h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.page-article .gj-article__prose a {
    color: var(--gj-brand);
    text-decoration: underline;
    text-decoration-color: rgba(134, 0, 33, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-article .gj-article__prose a:hover {
    color: var(--gj-brand-dark);
    text-decoration-color: var(--gj-brand-dark);
}

.page-article .gj-article__prose ul,
.page-article .gj-article__prose ol {
    margin: 0 0 1.25em;
    padding-left: 1.35em;
}

.page-article .gj-article__prose li {
    margin-bottom: 0.55em;
    text-transform: none;
}

.page-article .gj-article__prose li::marker {
    color: var(--gj-brand);
}

.page-article .gj-article__prose img {
    width: 100%;
    height: auto;
    margin: 1.75em 0;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(25, 25, 25, 0.1);
}

.page-article .gj-article__prose blockquote {
    margin: 1.75em 0;
    padding: 1.1em 1.35em;
    border-left: 3px solid var(--gj-brand);
    background: rgba(134, 0, 33, 0.04);
    font-style: italic;
}

.page-article .gj-article__prose strong,
.page-article .gj-article__prose b {
    font-weight: 700;
    color: var(--gj-ink);
}

/* ─── Footer CTA ─── */
.page-article .gj-article-footer {
    padding: 0 0 clamp(3rem, 6vw, 4.5rem);
    background: #f4f2ef;
}

.page-article .gj-article-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid rgba(25, 25, 25, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(25, 25, 25, 0.05);
}

.page-article .gj-article-footer__text {
    margin: 0;
    font-family: var(--gj-font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    color: #5c5956;
    text-transform: none;
}

/* ─── Related articles ─── */
.page-article .gj-article-related {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5rem) clamp(20px, 4vw, 48px) clamp(4rem, 8vw, 5.5rem);
    background: #fff;
}

.page-article .gj-article-related__line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(140px, 24vw);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gj-brand), transparent);
    opacity: 0.55;
}

.page-article .gj-article-related__head {
    max-width: 1200px;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

.page-article .gj-article-related .sub {
    font-family: 'Trajan Pro', serif;
    font-size: 11px;
    margin-bottom: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--gj-brand);
}

.page-article .gj-article-related .sub::before,
.page-article .gj-article-related .sub::after {
    position: relative;
    top: -4px;
    width: 28px;
    height: 1px;
    display: inline-block;
    content: '';
}

.page-article .gj-article-related .sub::before {
    margin-right: 12px;
    background: linear-gradient(90deg, transparent, rgba(134, 0, 33, 0.35));
}

.page-article .gj-article-related .sub::after {
    margin-left: 12px;
    background: linear-gradient(90deg, rgba(134, 0, 33, 0.35), transparent);
}

.page-article .gj-article-related__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-wrap: balance;
}

.page-article .gj-article-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 2.5vw, 28px);
    max-width: 1200px;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .page-article .gj-article-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .page-article .gj-article-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-article .gj-article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(25, 25, 25, 0.07);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-article .gj-article-card:hover,
.page-article .gj-article-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(134, 0, 33, 0.15);
    box-shadow: 0 18px 44px rgba(25, 25, 25, 0.1);
}

.page-article .gj-article-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gj-ink);
}

.page-article .gj-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
    filter: grayscale(15%) brightness(0.95);
}

.page-article .gj-article-card:hover .gj-article-card__media img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.page-article .gj-article-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: var(--gj-brand);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}

.page-article .gj-article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 26px;
}

.page-article .gj-article-card__date {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gj-brand);
}

.page-article .gj-article-card__title {
    margin: 0 0 18px;
    font-size: clamp(1rem, 1.4vw, 1.0625rem);
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-wrap: balance;
    transition: color 0.3s ease;
}

.page-article .gj-article-card:hover .gj-article-card__title {
    color: var(--gj-brand);
}

.page-article .gj-article-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0afae;
    transition: color 0.3s ease, gap 0.3s ease;
}

.page-article .gj-article-card:hover .gj-article-card__cta {
    color: var(--gj-brand);
    gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .page-article .gj-article-card,
    .page-article .gj-article-card__media img,
    .page-article .gj-article-hero__back {
        transition: none;
    }
}

/* ─── Hero vidéo ─── */
.page-article .gj-article-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ─── Blocs éditoriaux ─── */
.page-article .gj-article-block {
    margin: 2rem 0;
}

.page-article .gj-article-block--image {
    margin: 2.5rem 0;
}

.page-article .gj-article-block--image img,
.page-article .gj-article-block--image picture,
.page-article .gj-article-block--image picture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.page-article .gj-article-block--image figcaption {
    margin-top: 0.75rem;
    font-family: var(--gj-font-body);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--gj-muted, #6b6560);
    text-align: center;
}

.page-article .gj-article-block--gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 2.5rem 0;
}

.page-article .gj-article-block--gallery img,
.page-article .gj-article-block--gallery picture,
.page-article .gj-article-block--gallery picture img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

@media (max-width: 640px) {
    .page-article .gj-article-block--gallery {
        grid-template-columns: 1fr;
    }
}

.page-article .gj-article-block--video {
    margin: 2.75rem 0;
}

.page-article .gj-article-block--video video {
    display: block;
    width: 100%;
    height: auto;
    background: #111;
    aspect-ratio: 16 / 9;
}

.page-article .gj-article-block--quote {
    margin: 2.75rem 0;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-left: 3px solid var(--gj-brand, #860021);
    background: transparent;
}

.page-article .gj-article-block--quote p {
    margin: 0;
    font-family: var(--gj-font-body);
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--gj-ink, #191919);
    font-style: italic;
}

.page-article .gj-article-block--quote cite {
    display: block;
    margin-top: 0.85rem;
    font-family: 'Trajan Pro', serif;
    font-size: 0.75rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gj-brand, #860021);
}
