/* ========================================================
   ARTICLES CSS - MAS-K-RAD Hydrafacial Marseille
   Design cohérent avec le site principal (navy/gold)
   ======================================================== */

/* ========== Design Tokens ========== */
:root {
    /* Articles - aligned with main site palette */
    --art-primary: #0f172a;
    --art-primary-light: #1e293b;
    --art-accent: #c4b5fd;
    --art-gold: #d4af37;
    --art-text: #0f172a;
    --art-muted: #64748b;
    --art-border: #e2e8f0;
    --art-bg: #f8fafc;
    --art-bg-alt: #FAF8F6;
    --art-white: #FFFFFF;
    --art-radius: 12px;
    --art-radius-lg: 20px;
    --art-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --art-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --art-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --art-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --art-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Main Layout ========== */
main.article-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: var(--art-bg);
}

main.article-main .wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Article Header ========== */
.article-header {
    padding-top: 140px;
    padding-bottom: 40px;
    background: linear-gradient(180deg, var(--art-bg-alt) 0%, var(--art-bg) 100%);
}

.article-header .wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-header h1 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--art-primary);
    line-height: 1.15;
    max-width: 100%;
    margin-bottom: 14px;
}

.article-header h2 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--art-muted);
    font-weight: 400;
    max-width: 100%;
    margin-top: 0;
    line-height: 1.6;
}

/* ========== Back Button ========== */
.art-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--art-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid var(--art-border);
    border-radius: 9999px;
    margin-bottom: 24px;
    transition: var(--art-transition);
    background: var(--art-white);
    text-decoration: none;
}

.art-back-btn:hover {
    background: var(--art-primary);
    color: var(--art-white);
    border-color: var(--art-primary);
    opacity: 1;
}

/* ========== Article Image ========== */
.article-image {
    margin: 40px 0;
    border-radius: var(--art-radius-lg);
    overflow: hidden;
    box-shadow: var(--art-shadow-md);
    border: 2px solid var(--art-border);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* ========== Article Content ========== */
.article-content {
    background: var(--art-white);
    border-radius: var(--art-radius);
    padding: 48px;
    margin: 40px 0;
    box-shadow: var(--art-shadow-sm);
    border: 1px solid var(--art-border);
}

.article-content pre {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--art-text);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content strong {
    color: var(--art-primary);
    font-weight: 700;
}

.article-content h2 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.6em;
    margin: 30px 0 15px;
    color: var(--art-primary);
    border-left: 4px solid var(--art-gold);
    padding-left: 16px;
}

/* ========== CTA Box ========== */
.art-cta-box {
    background: linear-gradient(135deg, var(--art-bg-alt) 0%, var(--art-white) 100%);
    border: 2px solid var(--art-border);
    border-radius: var(--art-radius-lg);
    padding: 48px;
    text-align: center;
    margin: 48px 0;
}

.art-cta-box h3 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 12px;
    color: var(--art-primary);
}

.art-cta-box p {
    color: var(--art-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.art-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--art-primary);
    color: var(--art-white);
    border: none;
    border-radius: 9999px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    transition: var(--art-transition);
    text-decoration: none;
}

.art-cta-btn:hover {
    background: var(--art-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.25);
    opacity: 1;
}

/* ========== Suggested Articles Section ========== */
.suggested-articles-section {
    background: var(--art-bg-alt);
    padding: clamp(48px, 8vw, 80px) 0;
}

.suggested-articles-section .wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.suggested-articles-section h2 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--art-primary);
}

.suggested-articles-section h2 span {
    color: var(--art-gold);
}

/* ========== Articles Grid (index + suggested) ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.article-card {
    background: var(--art-white);
    border: 1px solid var(--art-border);
    border-radius: var(--art-radius);
    overflow: hidden;
    box-shadow: var(--art-shadow-sm);
    transition: transform 0.36s ease, box-shadow 0.36s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--art-shadow-lg);
    opacity: 1;
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--art-gold);
    transform: scaleY(0);
    transition: transform 0.36s cubic-bezier(.17, .67, .2, 1);
    z-index: 2;
}

.article-card {
    position: relative;
}

.article-card:hover::before {
    transform: scaleY(1);
}

.article-card .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--art-bg);
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.17, .67, .2, 1);
}

.article-card:hover .card-image img {
    transform: scale(1.06);
}

.article-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-body h3 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--art-primary);
    line-height: 1.3;
}

.article-card .card-body p {
    color: var(--art-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.article-card .card-body .read-more {
    color: var(--art-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.article-card:hover .read-more {
    gap: 12px;
}

.article-card:hover .read-more svg {
    transform: translateX(2px);
}

.article-card .read-more svg {
    transition: transform 0.3s ease;
}

/* ========== Articles Hero (index page) ========== */
.articles-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    background: linear-gradient(180deg, var(--art-bg-alt) 0%, var(--art-bg) 100%);
}

.articles-hero .wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.articles-hero h1 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.1;
    color: var(--art-primary);
}

.articles-hero h1 span {
    color: var(--art-gold);
}

.articles-hero .hero-sub {
    color: var(--art-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 600px;
    margin-top: 16px;
    line-height: 1.7;
}

/* ========== Articles List Section ========== */
.articles-list-section {
    padding: clamp(40px, 8vw, 80px) 0;
}

.articles-list-section .wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Empty State ========== */
.articles-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--art-white);
    border-radius: var(--art-radius);
    border: 1px solid var(--art-border);
    box-shadow: var(--art-shadow-sm);
}

.articles-empty svg {
    color: var(--art-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.articles-empty h3 {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    margin-bottom: 12px;
    color: var(--art-primary);
    font-size: 1.4rem;
}

.articles-empty p {
    color: var(--art-muted);
    max-width: 450px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* ========== Scroll Reveal ========== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articles-hero,
    .article-header {
        padding-top: 120px;
    }

    .article-content {
        padding: 28px 20px;
    }

    .art-cta-box {
        padding: 32px 20px;
    }

    .article-image {
        margin: 24px 0;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-content pre {
        font-size: 0.95rem;
    }
}
