/* ============================================================
   ARTICLE.CSS — Template éditorial Journal AdLucem
   ============================================================ */

/* ---------- Variables & base ---------- */
.art {
    --art-warm: #ffffff;
    --art-dark: #0e0e0e;
    --art-brown: #1a1a1a;
    --art-brown-light: #555555;
    --art-muted: #6b6560;
    --art-border: rgba(14, 14, 14, 0.1);
    --art-max-body: 760px;
    --art-max-layout: 1200px;
    background: var(--art-warm);
    color: var(--art-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.art * {
    box-sizing: border-box;
}

/* ---------- HERO ---------- */
.art-hero {
    position: relative;
    min-height: 88vh;
    background: var(--art-dark);
    color: var(--art-warm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.art-hero-bg {
    position: absolute;
    inset: 0;
}

.art-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.art-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14, 14, 14, 0.25) 0%,
        rgba(14, 14, 14, 0.15) 35%,
        rgba(14, 14, 14, 0.9) 100%
    );
}

.art-hero-num {
    position: absolute;
    right: -0.04em;
    bottom: -0.1em;
    font-family: 'Playfair Display', serif;
    font-size: clamp(10rem, 22vw, 26rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.art-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--art-max-layout);
    margin: 0 auto;
    width: 100%;
    padding: clamp(7rem, 14vh, 11rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vh, 5rem);
}

/* Breadcrumb */
.art-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    font-size: 0.75rem;
    color: rgba(240, 237, 232, 0.45);
}

.art-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.6rem;
    opacity: 0.4;
}

.art-breadcrumb a {
    color: rgba(240, 237, 232, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.art-breadcrumb a:hover {
    color: var(--art-warm);
}

/* Hero tag row */
.art-hero-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.art-tag {
    display: inline-block;
    padding: 0.28em 0.85em;
    background: rgba(240, 237, 232, 0.12);
    border: 1px solid rgba(240, 237, 232, 0.22);
    color: var(--art-warm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}

.art-issue {
    font-size: 0.78rem;
    color: rgba(240, 237, 232, 0.4);
    letter-spacing: 0.06em;
}

/* Hero title */
.art-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0 0 1.1rem;
    max-width: 14ch;
}

.art-hero-title em {
    font-style: italic;
    color: rgba(240, 237, 232, 0.7);
}

.art-hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 300;
    color: rgba(240, 237, 232, 0.62);
    max-width: 54ch;
    margin: 0 0 2.2rem;
    line-height: 1.65;
}

/* Hero meta */
.art-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.78rem;
    color: rgba(240, 237, 232, 0.42);
}

.art-hero-meta svg {
    vertical-align: -2px;
    margin-right: 0.3em;
    opacity: 0.65;
}

.art-meta-sep {
    opacity: 0.25;
}

/* ---------- PROGRESS BAR ---------- */
.art-progress {
    position: sticky;
    top: 0;
    z-index: 90;
    height: 2px;
    background: rgba(14, 14, 14, 0.07);
}

.art-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--art-brown) 0%, var(--art-brown-light) 100%);
    transition: width 0.08s linear;
}

/* ---------- LAYOUT (sidebar + content) ---------- */
.art-layout {
    max-width: var(--art-max-layout);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1fr clamp(170px, 18%, 220px);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
}

/* ---------- SIDEBAR TOC ---------- */
.art-toc {
    position: sticky;
    top: 74px;
    align-self: start;
}

.art-toc-inner {
    padding: 1.4rem 1.4rem 1.4rem 1.2rem;
    border-left: 2px solid rgba(14, 14, 14, 0.18);
    background: rgba(14, 14, 14, 0.02);
}

.art-toc-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--art-brown);
    margin: 0 0 1.1rem;
}

.art-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.art-toc-list li {
    margin-bottom: 0.4rem;
}

.art-toc-list a {
    font-size: 0.8rem;
    color: var(--art-muted);
    text-decoration: none;
    line-height: 1.45;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s, padding-left 0.2s;
}

.art-toc-list a:hover {
    color: var(--art-dark);
}

.art-toc-list a.active {
    color: var(--art-dark);
    font-weight: 600;
    padding-left: 0.5rem;
    border-left: 2px solid var(--art-brown);
    margin-left: -2px;
}

/* ---------- ARTICLE CONTENT ---------- */
.art-content {
    min-width: 0;
}

/* Lead figure */
.art-fig {
    margin: 0 0 2rem;
}

.art-fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.art-fig figcaption {
    font-size: 0.76rem;
    color: var(--art-muted);
    margin-top: 0.6rem;
    font-style: italic;
    line-height: 1.55;
}

.art-fig--hero img {
    max-height: 520px;
    object-fit: cover;
}

.art-fig--full {
    margin: 3.5rem -2rem;
}

.art-fig--full img {
    max-height: 460px;
    object-fit: cover;
    border-radius: 0;
}

/* Lead paragraph */
.art-lead {
    font-size: clamp(1.08rem, 1.8vw, 1.22rem);
    line-height: 1.75;
    font-weight: 300;
    color: #191919;
    margin: 0 0 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--art-border);
}

.art-lead strong {
    font-weight: 600;
    color: var(--art-dark);
}

/* Sections */
.art-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--art-border);
}

/* Section headings */
.art-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    color: var(--art-dark);
}

.art-h2-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--art-brown);
    flex-shrink: 0;
}

.art-h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: var(--art-dark);
}

/* Body text */
.art-content p {
    font-size: 1rem;
    line-height: 1.82;
    font-weight: 300;
    color: #1c1c1c;
    margin: 0 0 1.3rem;
}

.art-content p strong {
    font-weight: 600;
    color: var(--art-dark);
}

.art-content a {
    color: var(--art-dark);
    text-decoration-color: rgba(14, 14, 14, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.art-content a:hover {
    text-decoration-color: var(--art-brown);
}

/* ---------- SPECS GRID ---------- */
.art-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--art-border);
    border: 1px solid var(--art-border);
    margin: 2.5rem 0;
}

.art-spec {
    background: var(--art-warm);
    padding: 1.4rem 1rem;
    text-align: center;
}

.art-spec-val {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--art-dark);
    line-height: 1.1;
}

.art-spec-key {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--art-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.45rem;
}

/* ---------- CALLOUT ---------- */
.art-callout {
    padding: 1.3rem 1.6rem;
    margin: 1.75rem 0;
    border-radius: 2px;
}

.art-callout--info {
    background: rgba(14, 14, 14, 0.04);
    border-left: 3px solid var(--art-brown);
}

.art-callout .art-callout-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--art-brown);
    margin: 0 0 0.55rem;
    display: block;
}

.art-callout p {
    font-size: 0.92rem !important;
    margin: 0 !important;
}

/* ---------- TWO-COLUMN ---------- */
.art-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin: 1.75rem 0;
}

.art-two-col--rev .art-two-col-text {
    order: 0;
}

.art-two-col--rev .art-fig {
    order: 1;
}

/* ---------- TIP BOX ---------- */
.art-tip {
    background: rgba(14, 14, 14, 0.04);
    border: 1px solid rgba(14, 14, 14, 0.08);
    padding: 0.9rem 1.1rem;
    border-radius: 2px;
    margin-top: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #2a2a2a;
}

/* ---------- LIST ---------- */
.art-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
}

.art-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.6rem;
    font-size: 0.96rem;
    line-height: 1.65;
    font-weight: 300;
    color: #1c1c1c;
}

.art-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--art-brown);
    font-weight: 400;
}

.art-list li strong {
    font-weight: 600;
}

/* ---------- STEPS ---------- */
.art-steps {
    margin: 2.5rem 0;
    counter-reset: step;
}

.art-step {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--art-border);
}

.art-step:last-child {
    border-bottom: none;
}

.art-step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(14, 14, 14, 0.1);
    line-height: 1;
    text-align: center;
    padding-top: 0.05em;
    flex-shrink: 0;
}

.art-step-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.65rem;
    font-family: 'Inter', sans-serif;
    color: var(--art-dark);
}

.art-step-body p {
    font-size: 0.95rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.75 !important;
}

.art-step-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 14, 14, 0.04);
    padding: 0.4rem 0.85rem;
    border-radius: 2px;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--art-muted);
    line-height: 1.5;
}

/* ---------- PULL QUOTE ---------- */
.art-quote {
    border: none;
    margin: 3.5rem 0;
    padding: 2.5rem 3rem;
    background: var(--art-dark);
    color: var(--art-warm);
    position: relative;
    overflow: hidden;
}

.art-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.15em;
    left: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    line-height: 1;
    opacity: 0.1;
    pointer-events: none;
    color: var(--art-warm);
}

.art-quote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem) !important;
    font-style: italic;
    line-height: 1.6 !important;
    font-weight: 400;
    color: var(--art-warm) !important;
    margin: 0 0 1.1rem !important;
    position: relative;
    z-index: 1;
}

.art-quote cite {
    font-size: 0.78rem;
    font-style: normal;
    color: rgba(240, 237, 232, 0.42);
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

/* ---------- FINITIONS GRID ---------- */
.art-finitions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--art-border);
    border: 1px solid var(--art-border);
    margin: 2rem 0;
}

.art-finition {
    background: var(--art-warm);
}

.art-finition-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.art-finition-body {
    padding: 1.3rem;
}

.art-finition-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--art-dark);
}

.art-finition-body p {
    font-size: 0.87rem !important;
    color: var(--art-muted) !important;
    margin: 0 0 0.8rem !important;
    line-height: 1.6 !important;
}

.art-finition-usage {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--art-brown);
}

/* ---------- WARNINGS / ERREURS ---------- */
.art-warnings {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--art-border);
    border: 1px solid var(--art-border);
    margin: 1.75rem 0;
}

.art-warning {
    display: flex;
    gap: 0;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: var(--art-warm);
    border-left: 2px solid rgba(14, 14, 14, 0.15);
}

.art-warning strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--art-dark);
}

.art-warning p {
    font-size: 0.87rem !important;
    color: var(--art-muted) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ---------- IMAGE ROW ---------- */
.art-img-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--art-border);
    border: 1px solid var(--art-border);
    margin: 3.5rem 0;
}

.art-img-row .art-fig {
    margin: 0;
}

.art-img-row .art-fig img {
    height: 210px;
    object-fit: cover;
    border-radius: 0;
}

/* ---------- BUTTON ---------- */
.art-btn {
    display: inline-block;
    padding: 0.72em 1.8em;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 2px;
    transition: opacity 0.2s, background 0.2s;
    cursor: pointer;
    background: var(--art-dark);
    color: var(--art-warm);
    margin-top: 1.2rem;
}

.art-btn:hover {
    opacity: 0.78;
}

/* Inside the article, .art-content a would turn the button text dark on dark */
.art-content a.art-btn {
    color: var(--art-warm);
}

/* ---------- TAGS ---------- */
.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--art-border);
}

.art-tags-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--art-muted);
    margin-right: 0.25rem;
}

.art-tag-link {
    display: inline-block;
    padding: 0.26em 0.85em;
    border: 1px solid rgba(14, 14, 14, 0.14);
    font-size: 0.74rem;
    color: var(--art-muted);
    text-decoration: none;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.art-tag-link:hover {
    border-color: var(--art-dark);
    color: var(--art-dark);
}

/* ---------- CTA (full-width, outside art-layout) ---------- */
.art-cta {
    background: var(--art-dark);
    color: var(--art-warm);
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
}

.art-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.4);
    margin: 0 0 1.1rem;
}

.art-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--art-warm);
    letter-spacing: -0.02em;
}

.art-cta-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 300;
    color: rgba(240, 237, 232, 0.58);
    max-width: 52ch;
    margin: 0 auto 2.8rem;
    line-height: 1.72;
}

.art-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.art-btn--primary {
    background: var(--art-warm);
    color: var(--art-dark);
}

.art-btn--primary:hover {
    opacity: 0.88;
}

.art-btn--secondary {
    background: transparent;
    color: var(--art-warm);
    border: 1px solid rgba(240, 237, 232, 0.28);
}

.art-btn--secondary:hover {
    border-color: rgba(240, 237, 232, 0.6);
    opacity: 1;
}

/* ---------- RELATED ARTICLES ---------- */
.art-related {
    background: #0e0e0e;
    color: var(--art-warm);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.art-related-inner {
    max-width: var(--art-max-layout);
    margin: 0 auto;
}

.art-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.art-related-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0;
    color: var(--art-warm);
}

.art-related-all {
    font-size: 0.82rem;
    color: rgba(240, 237, 232, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.art-related-all:hover {
    color: var(--art-warm);
}

.art-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(240, 237, 232, 0.06);
    border: 1px solid rgba(240, 237, 232, 0.06);
}

.art-rel-card {
    display: block;
    text-decoration: none;
    color: var(--art-warm);
    background: #0e0e0e;
    transition: background 0.25s;
}

.art-rel-card:hover {
    background: #161616;
}

.art-rel-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    filter: grayscale(25%);
    transition: filter 0.35s;
}

.art-rel-card:hover .art-rel-img img {
    filter: grayscale(0%);
}

.art-rel-body {
    padding: 1.4rem;
}

.art-rel-body .art-tag {
    margin-bottom: 0.7rem;
    display: inline-block;
}

.art-rel-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.4rem 0 0.5rem;
    color: var(--art-warm);
    line-height: 1.35;
}

.art-rel-num {
    font-size: 0.78rem;
    color: rgba(240, 237, 232, 0.3);
    font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .art-layout {
        grid-template-columns: 1fr;
    }

    .art-toc {
        display: none;
    }

    .art-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .art-two-col,
    .art-two-col--rev {
        grid-template-columns: 1fr;
    }

    .art-two-col--rev .art-two-col-text {
        order: 1;
    }

    .art-two-col--rev .art-fig {
        order: 0;
    }

    .art-fig--full {
        margin: 3rem 0;
    }
}

@media (max-width: 768px) {
    .art-hero-title {
        max-width: 100%;
    }

    .art-quote {
        padding: 1.75rem 1.5rem;
    }

    .art-finitions-grid {
        grid-template-columns: 1fr;
    }

    .art-related-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .art-img-row {
        grid-template-columns: 1fr 1fr;
    }

    .art-img-row .art-fig img {
        height: 160px;
    }

    .art-step {
        grid-template-columns: 2.8rem 1fr;
        gap: 1rem;
    }

    .art-step-num {
        font-size: 1.6rem;
    }

    .art-cta-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }

    .art-related-head {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .art-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .art-img-row {
        grid-template-columns: 1fr;
    }

    .art-warning {
        padding: 1rem;
    }
}
