/* ============================================
   BLOG.CSS - Pages Blog & Articles
   ============================================ */

/* ============================================
   HERO BLOG
   ============================================ */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, var(--jaune-oeuf) 0%, #FFD966 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    color: var(--noir-olive);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    color: rgba(11, 11, 9, 0.8);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ============================================
   LISTE DES ARTICLES
   ============================================ */
.blog-list-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--creme-fouettee);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category.vert-persil {
    background: var(--vert-persil);
    color: white;
}

.blog-category.jaune-oeuf {
    background: var(--jaune-oeuf);
    color: var(--noir-olive);
}

.blog-category.rouge-tomate {
    background: var(--rouge-tomate);
    color: white;
}

.blog-category.rose-bonbon {
    background: var(--rose-bonbon);
    color: white;
}

.blog-card h3 {
    color: var(--noir-olive);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-card-info {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.85rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vert-persil);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.blog-card-link:hover {
    color: var(--rouge-tomate);
    gap: 0.8rem;
}

/* ============================================
   PAGE ARTICLE
   ============================================ */
.article-hero {
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 5% 3rem;
    background: linear-gradient(135deg, var(--vert-persil) 0%, #1a5a2e 100%);
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: rgba(255, 241, 220, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--jaune-oeuf);
}

.article-breadcrumb span {
    color: rgba(255, 241, 220, 0.5);
}

.article-hero .blog-categories {
    margin-bottom: 1rem;
}

.article-hero h1 {
    color: var(--creme-fouettee);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 241, 220, 0.8);
    font-size: 0.9rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   CONTENU ARTICLE
   ============================================ */
.article-content-section {
    padding: 4rem 5%;
    background: var(--creme-fouettee);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

/* Typographie de l'article */
.article-content h2 {
    color: var(--vert-persil);
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    color: var(--noir-olive);
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    color: var(--noir-olive);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-content a {
    color: var(--vert-persil);
    text-decoration: underline;
    text-decoration-color: var(--jaune-oeuf);
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--rouge-tomate);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    color: var(--noir-olive);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.article-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.article-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vert-persil);
    font-weight: bold;
}

.article-content ol li {
    padding-left: 0.5rem;
}

/* Encadrés et mise en avant */
.article-highlight {
    background: linear-gradient(135deg, var(--jaune-oeuf) 0%, #FFE4A0 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-highlight p {
    margin-bottom: 0;
    font-weight: 600;
}

.article-tip {
    background: rgba(38, 104, 54, 0.08);
    border-left: 4px solid var(--vert-persil);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.article-tip-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--vert-persil);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-warning {
    background: rgba(211, 78, 78, 0.08);
    border-left: 4px solid var(--rouge-tomate);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

/* En bref - Résumé */
.article-summary {
    background: var(--vert-persil);
    color: var(--creme-fouettee);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.article-summary h4 {
    color: var(--jaune-oeuf);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-summary ol {
    margin: 0;
    padding-left: 1.5rem;
}

.article-summary li {
    color: var(--creme-fouettee);
    margin-bottom: 0.5rem;
}

.article-summary li::marker {
    color: var(--jaune-oeuf);
}

/* Image dans l'article */
.article-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-image figcaption {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Sources */
.article-sources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.article-sources h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--noir-olive);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-sources ul {
    margin: 0;
    padding: 0;
}

.article-sources li {
    padding-left: 0;
    font-size: 0.9rem;
    color: #666;
}

.article-sources li::before {
    display: none;
}

.article-sources a {
    color: var(--vert-persil);
}

/* ============================================
   CTA ARTICLE
   ============================================ */
.article-cta {
    background: linear-gradient(135deg, var(--rouge-tomate) 0%, #c43c3c 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-cta .btn {
    background: white;
    color: var(--rouge-tomate);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================================
   ARTICLES SIMILAIRES
   ============================================ */
.related-articles {
    padding: 4rem 5%;
    background: white;
}

.related-articles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-articles h2 {
    text-align: center;
    color: var(--vert-persil);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-hero h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-hero h1 {
        font-size: 1.75rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .article-cta {
        padding: 2rem 1.5rem;
    }
}
