/* OAcom Template - Perspectives category listing page
   Brought into the OAcom design system (tokens, PolicePrincipale titles,
   yellow accent). Structure mirrors page-grandeslignes.css. */

:root {
    --p-yellow: #FFC635;
    --p-dark: #4A5458;
    --p-text: #495057;
    --p-grey-blue: #717F85;
    --p-beige: #D4CFC1;
    --p-white: #FFFFFF;
    --p-border: rgba(74, 84, 88, 0.15);
    --p-card-bg: #FFFFFF;

    --font-display: 'PolicePrincipale', sans-serif;
    --font-body: 'New Atten', sans-serif;
    --font-accent: 'Meutas', sans-serif;
}

/* Page Texture */
.page-texture {
    position: fixed;
    top: 0;
    left: 0px;
    width: 1920px;
    height: 1120px;
    pointer-events: none;
    z-index: -2;
}

.texture-image {
    width: 1920px;
    height: 1120px;
    background-image: url('/images/maj/413eacfbb03b509dd7e3fa2a0b5030242f610297.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: sticky;
    top: 0;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1120px;
    background-color: var(--p-beige);
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

/* Container */
.perspectives-blog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.perspectives-header {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--p-border);
    margin-bottom: 60px;
}

.perspectives-header h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.perspectives-intro {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--p-text);
    max-width: 600px;
}

/* Sidebar */
.perspectives-sidebar {
    position: sticky;
    top: 100px;
    padding-right: 40px;
}

.perspectives-description {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--p-dark);
    margin-bottom: 40px;
}

/* Subcategories */
.subcategories-section {
    margin-bottom: 40px;
}

.subcategories-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--p-dark);
}

.subcategory-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--p-dark);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--p-border);
}

.subcategory-link:hover {
    color: var(--p-yellow);
    padding-left: 10px;
}

.subcategory-count {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 10px;
}

/* Blog Cards - Featured */
.featured-articles {
    margin-bottom: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--p-card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--p-grey-blue) 0%, var(--p-dark) 100%);
}

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

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

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-family: var(--font-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--p-yellow);
}

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--p-text);
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--p-dark);
    color: var(--p-white);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-card-read-more:hover {
    background: var(--p-yellow);
    color: var(--p-dark);
    transform: translateX(5px);
}

.blog-card-read-more::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.blog-card-read-more:hover::after {
    transform: translateX(3px);
}

/* Regular Articles List */
.articles-list {
    margin-bottom: 60px;
}

.article-list-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    background: var(--p-card-bg);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.article-list-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.article-list-image {
    width: 240px;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--p-grey-blue) 0%, var(--p-dark) 100%);
}

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

.article-list-item:hover .article-list-image img {
    transform: scale(1.05);
}

.article-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.article-list-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-list-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-list-content h3 a:hover {
    color: var(--p-yellow);
}

.article-list-excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--p-text);
    margin-bottom: 15px;
}

.article-list-excerpt p {
    margin: 0;
}

/* Pagination */
.perspectives-pagination {
    margin: 60px 0;
    padding: 30px 0;
    border-top: 1px solid var(--p-border);
}

.pagination {
    justify-content: center;
    gap: 8px;
}

.page-link {
    border-radius: 8px;
    padding: 10px 18px;
    border: 1px solid var(--p-border);
    color: var(--p-dark);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--p-dark);
    color: var(--p-white);
    border-color: var(--p-dark);
}

.page-item.active .page-link {
    background: var(--p-yellow);
    border-color: var(--p-yellow);
    color: var(--p-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .perspectives-blog {
        padding: 0 20px;
    }

    .perspectives-sidebar {
        position: static;
        padding-right: 0;
        margin-bottom: 40px;
    }

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

    .article-list-item {
        grid-template-columns: 1fr;
    }

    .article-list-image {
        width: 100%;
        height: 200px;
        min-height: 200px;
    }

    .article-list-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .perspectives-header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }

    .perspectives-header h1 {
        font-size: 36px;
    }

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

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

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