/* Le Courrier de Pologne — Static Site */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #C41E3A;
    --red-dark: #9B1B30;
    --red-light: #E8435A;
    --accent: #1B2A4A;
    --accent-light: #2D4A7A;
    --gold: #D4A847;
    --gold-light: #F5E6C8;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --max-width: 1200px;
    --content-width: 800px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* === Header === */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.logo img { height: 60px; width: auto; }

.tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* === Navigation === */
.main-nav { border-top: 1px solid var(--gray-200); }

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-list > li > a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-800);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.nav-list > li > a:hover,
.nav-list > li:hover > a {
    color: var(--white);
    background: var(--red);
}

.has-submenu { position: relative; }
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    list-style: none;
    z-index: 50;
    border-top: 2px solid var(--red);
}

.has-submenu:hover .submenu { display: block; }

.submenu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--gray-800);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.submenu li a:hover { background: var(--gray-50); color: var(--red); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-800);
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* === Articles Grid === */
.articles-grid { padding: 3rem 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.article-card a { color: inherit; display: block; }

.card-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content { padding: 1.25rem; }

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--gray-900);
}

/* === Article Single === */
.article-single { padding: 3rem 0; }
.article-single .container { max-width: var(--content-width); }

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-category {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}

.article-numero {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.article-author {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.article-hero {
    margin: 2rem -2rem;
    border-radius: 4px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-chapo {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-800);
    font-weight: 400;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-left: 4px solid var(--red);
    border-radius: 0 4px 4px 0;
}

.article-chapo p { margin-bottom: 0.75rem; }
.article-chapo p:last-child { margin-bottom: 0; }

.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2, .article-body h3 {
    font-family: var(--font-heading);
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}
.article-body h3.spip {
    font-size: 1.4rem;
    color: var(--red-dark);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.article-body img {
    margin: 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-body dl {
    margin: 1.5rem 0;
}

.article-body dl.spip_documents_left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.article-body dl.spip_documents_center {
    text-align: center;
    margin: 2rem auto;
}

.article-body dt { margin-bottom: 0.5rem; }
.article-body .spip_doc_titre {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.4;
}

.article-body blockquote, .article-body .spip_quote {
    border-left: 4px solid var(--red);
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    margin: 1.5rem 0;
    font-style: italic;
}

/* === Page Header === */
.page-header {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
}

/* === Page Content === */
.page-content {
    padding: 3rem 0;
}

.page-content .container { max-width: var(--content-width); }

.category-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.category-list li a {
    display: block;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid var(--gray-200);
}

.category-list li a:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* === Footer === */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--gray-300); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }

    .menu-toggle { display: block; }

    .nav-list {
        display: none;
        flex-direction: column;
    }

    .nav-list.active { display: flex; }

    .nav-list > li > a {
        padding: 0.75rem;
        text-align: center;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: var(--gray-50);
    }

    .has-submenu:hover .submenu { display: block; }

    .hero h1 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
    .article-title { font-size: 1.6rem; }
    .article-hero { margin: 1rem 0; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.5rem; }
    .article-title { font-size: 1.3rem; }
    .article-body { font-size: 1rem; }
}


/* === Additional styles for v2 === */

.card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.card-category:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.5rem;
}

.section-title a {
    color: inherit;
    text-decoration: none;
}

.section-title a:hover {
    color: var(--red);
}

.article-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-600);
}

.see-all {
    text-align: center;
    padding: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--red);
}

.page-header p {
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Active nav indicator */
.nav-list > li > a.active {
    color: var(--white);
    background: var(--red);
}


/* === Editorial Summary === */
.editorial-summary {
    background: var(--color-bg-alt, #F5F5F5);
    border-left: 4px solid var(--red, #C41E3A);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    border-radius: 0 6px 6px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-800, #424242);
}

/* === FAQ Section === */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200, #EEE);
}

.faq-section h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900, #212121);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--color-bg-alt, #F5F5F5);
    border-radius: 8px;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red, #C41E3A);
    margin-bottom: 0.5rem;
    font-family: var(--font-body, 'Lato', sans-serif);
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-800, #424242);
    margin: 0;
}

/* === Related Articles === */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200, #EEE);
}

.related-articles h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--color-bg-alt, #F5F5F5);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-card a {
    display: block;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.related-card h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--gray-900, #212121);
}

.related-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red, #C41E3A);
    font-weight: 700;
}
