/* ========================================================
   ARTICLES CSS - Broc Music
   Design moderne cohérent avec le site principal
   ======================================================== */

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Container ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Design Tokens ========== */
:root {
    /* Brand Colors Broc Music */
    --red: #FA3A10;
    --red-dark: #D1310A;
    --red-light: #FF6B47;
    --black: #1a1a1a;
    --black-dark: #0f0f0f;
    --gray: #666;
    --gray-light: #f5f5f5;
    --gray-border: #e5e5e5;
    --white: #fff;

    /* Typography */
    --ff-title: 'Raleway', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* Spacing & Layout */
    --gutter: clamp(16px, 3vw, 40px);
    --radius: 12px;
    --radius-sm: 8px;
    --maxw: 1400px;

    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,.18);

    /* Motion */
    --easing: cubic-bezier(.4, 0, .2, 1);
    --speed: 300ms;
}

/* ========== Articles Hero ========== */
.articles-hero {
    position: relative;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    text-align: center;
    overflow: hidden;
}

.articles-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 30% 20%, rgba(250, 58, 16, 0.15), transparent 60%),
        radial-gradient(600px 300px at 70% 60%, rgba(250, 58, 16, 0.1), transparent 50%);
    z-index: 0;
}

.articles-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.articles-hero h1 {
    font-family: var(--ff-title);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 20px;
    letter-spacing: -1px;
}

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

.articles-hero-sub {
    font-family: var(--ff-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #ccc;
    margin: 0;
    line-height: 1.7;
}

/* ========== Articles Section ========== */
.articles-section {
    padding: clamp(50px, 8vw, 80px) 0;
    background: var(--gray-light);
}

.articles-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ========== Articles Grid ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ========== Article Card ========== */
.article-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--easing), box-shadow var(--speed) var(--easing);
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

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

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    transform: scaleY(0);
    transition: transform var(--speed) var(--easing);
    z-index: 2;
}

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

/* Article Card Image */
.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--easing);
}

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

.article-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--speed) var(--easing);
}

.article-card:hover .article-card-overlay {
    opacity: 1;
}

/* Article Card Content */
.article-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    font-family: var(--ff-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px;
    line-height: 1.4;
    max-height: 85px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-card-content p {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0 0 16px;
    line-height: 1.6;
    flex: 1;
    max-height: 75px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-read-more {
    color: var(--red);
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap var(--speed) var(--easing);
}

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

.article-read-more i {
    transition: transform var(--speed) var(--easing);
}

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

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

.articles-empty i {
    font-size: 4rem;
    color: var(--red);
    margin-bottom: 24px;
    opacity: .5;
}

.articles-empty h3 {
    font-family: var(--ff-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--black);
}

.articles-empty p {
    font-family: var(--ff-body);
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== Single Article Page ========== */
.article-header {
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.article-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.6) 40%,
        rgba(26, 26, 26, 0.85) 70%,
        rgba(26, 26, 26, 0.95) 100%
    );
    z-index: 1;
}

.article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 20% 30%, rgba(250, 58, 16, 0.15), transparent 60%),
        radial-gradient(600px 300px at 80% 50%, rgba(250, 58, 16, 0.1), transparent 50%);
    z-index: 2;
}

.article-header .wrap {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: 24px;
    transition: all var(--speed) ease;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

/* Article Title */
.article-header h1 {
    font-family: var(--ff-title);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.article-header h2 {
    font-family: var(--ff-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

/* Article Main Content */
.article-main {
    padding: clamp(40px, 6vw, 70px) 0;
    background: var(--gray-light);
}

.article-main .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

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

/* Article Content Box */
.article-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(30px, 5vw, 50px);
    margin: 0 0 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
}

.article-content pre {
    font-family: var(--ff-body);
    font-size: 1.05rem;
    color: var(--black);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.8;
}

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

.article-content h2 {
    font-family: var(--ff-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--black);
    margin: 2rem 0 1rem;
    border-left: 4px solid var(--red);
    padding-left: 16px;
}

.article-content p {
    margin: 0 0 1.2rem;
    line-height: 1.8;
}

/* CTA Box */
.article-cta {
    background: linear-gradient(135deg, rgba(250, 58, 16, 0.08) 0%, rgba(250, 58, 16, 0.03) 100%);
    border: 2px solid rgba(250, 58, 16, 0.2);
    border-radius: var(--radius);
    padding: clamp(30px, 5vw, 45px);
    text-align: center;
    margin: 0 0 40px;
}

.article-cta h3 {
    font-family: var(--ff-title);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--black);
}

.article-cta p {
    font-family: var(--ff-body);
    color: var(--gray);
    margin: 0 0 24px;
    line-height: 1.6;
}

.article-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 14px 30px;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(250, 58, 16, 0.35);
    transition: all var(--speed) ease;
}

.article-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(250, 58, 16, 0.45);
    background: var(--red-dark);
}

/* ========== Suggested Articles Section ========== */
.suggested-articles {
    padding: clamp(50px, 8vw, 80px) 0;
    background: var(--white);
}

.suggested-articles-title {
    font-family: var(--ff-title);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 40px;
    color: var(--black);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.suggested-articles-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.suggested-articles-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articles-hero {
        padding: 60px 16px 50px;
    }

    .article-header {
        padding: 80px 16px 50px;
        min-height: 300px;
    }

    .article-card-image {
        height: 200px;
    }

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

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

    .article-cta {
        padding: 24px 20px;
    }

    .suggested-articles-grid {
        flex-direction: column;
    }
}
