:root {
    --bg-color: rgb(235, 227, 206);
    --ink: rgb(78, 56, 39);
    --accent: #a18402;
    --accent-rgb: 161, 132, 2;
    --border-color: #333333;
    --light-border: #cccccc;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Shadows Into Light', cursive, 'Playfair Display', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 20px 40px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
    min-height: 100vh;
}

/* Typography Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    margin: 20px auto;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-image {
    margin: 40px 0;
    width: 100%;
}

.article-image img {
    width: 100%;
    border: 1px solid var(--light-border);
}

figcaption {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}

.placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    font-family: var(--font-script);
    font-size: 1.5rem;
    border: 1px solid #ccc;
    width: 75%;
    margin: 0 auto;
}

/* Text content */
p {
    text-align: justify;
    margin-bottom: 1em;
}

/* Long article multi-column layout for A4 length reading comfort */
.article-long-text {
    column-width: 350px;
    column-gap: 40px;
    column-rule: 1px solid var(--border-color);
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

.article-long-text p {
    text-align: justify;
}

/* Sketchy Text Lines classes mimicking the sketch squiggles */
.excerpt {
    color: #333;
    font-size: 0.95rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    padding-top: 10px;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    position: relative;
}

.logo-area {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 250px;
    display: flex;
    align-items: flex-start;
}

.site-tag {
    font-family: var(--font-script);
    font-size: 16px;
    position: absolute;
    top: -10px;
    left: 5px;
    transform: rotate(-5deg);
    color: #555;
}

.logo-img {
    width: 100px;
    height: 100px;
    mix-blend-mode: multiply;
}

.title-area {
    text-align: center;
}

.site-title {
    font-size: 4rem;
    font-style: italic;
}

.search-area {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 250px;
    display: flex;
    justify-content: flex-end;
}

.search-box {
    display: flex;
    border: 1px solid var(--ink);
    padding: 5px 10px;
    background: transparent;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: var(--font-script);
    font-size: 1rem;
}

.search-icon {
    font-size: 1.2rem;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    /* Double border effect */
}

.main-nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 15px 10px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav li {
    border-right: 1px solid #ccc;
    flex: 1;
    text-align: center;
    position: relative;
}

.main-nav li:last-child {
    border-right: none;
}

/* Dropdown Menu Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    top: 100%;
    left: 0;
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 10px 0;
}

.dropdown-content a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 8px 16px;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Common Dividers */
hr.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

hr.sub-divider {
    border: none;
    border-top: 1px solid var(--light-border);
    margin: 30px 0;
}

hr.section-divider-thick {
    border: none;
    border-top: 2px solid var(--ink);
    margin: 40px 0;
}

hr.article-divider {
    border: none;
    border-top: 1px solid var(--ink);
    margin-top: 15px;
    width: 80%;
}

/* Category Headers */
.category-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.category-header h2 {
    font-style: italic;
    font-size: 2rem;
    display: inline-block;
}

/* Featured Article (A la Une) */
.a-la-une .featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-content h2 {
    font-size: 4rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--ink);
}

.featured-img-wrapper .featured-img {
    aspect-ratio: 16/10;
    width: 100%;
}

/* Actualites Grids */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.news-card {
    border-right: 1px solid var(--border-color);
    padding: 0 30px;
    text-align: center;
}

.news-card:first-child {
    padding-left: 0;
}

.news-card:last-child {
    border-right: none;
    padding-right: 0;
}

.news-card h3 {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 15px;
}

.news-card p {
    text-align: left;
}

/* Category Split Section */
.category-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.left-categories {
    padding-right: 40px;
    border-right: 1px solid var(--border-color);
}

/* Idées Grid */
.idees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sub-article:first-child {
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.sub-article:last-child {
    padding-left: 20px;
}

.sub-article h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Sport */
.sport-article {
    display: flex;
    gap: 20px;
}

.sport-img-wrapper {
    width: 180px;
    flex-shrink: 0;
}

.sport-img {
    height: 120px;
}

.sport-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Societe Container Height */
.societe-content {
    min-height: 150px;
}

/* Right Categories - Culture */
.right-categories {
    padding-left: 40px;
}

.culture-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.culture-card .culture-img {
    aspect-ratio: 1;
    margin-bottom: 15px;
}

.culture-card .placeholder-img {
    aspect-ratio: 1;
    margin-bottom: 15px;
}

.culture-main-card .culture-img-large {
    aspect-ratio: 21/7;
    margin-bottom: 15px;
}

.culture-section h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Bottom Sections */
.bottom-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bottom-col {
    border-right: 1px solid var(--border-color);
    padding: 20px 30px;
    min-height: 200px;
}

.bottom-col:last-child {
    border-right: none;
}

.bottom-col h3 {
    text-align: center;
    font-style: italic;
    font-size: 1.5rem;
}

/* Footer Pattern */
.site-footer {
    padding: 0 0 40px 0;
}

.footer-decoration {
    width: 100%;
    margin: 0 auto;
}

/* Hover Animations */
.featured-img-wrapper,
.culture-img-wrapper,
.culture-img-large-wrapper {
    overflow: hidden;
}

img,
.placeholder-img {
    transition: transform 0.4s ease;
}

article:hover img,
article:hover .placeholder-img {
    transform: scale(1.03);
}
/* Article Page Specific Styles */
.article-breadcrumb { 
    max-width: 800px; 
    margin: 0 auto 30px auto; 
    font-family: var(--font-body); 
    font-size: 0.9rem; 
    color: #888; 
    letter-spacing: 0.5px; 
}
.article-breadcrumb a { color: #888; text-decoration: none; transition: color 0.2s ease; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb span { margin: 0 6px; }
.article-header { 
    max-width: 800px; 
    margin: 0 auto 50px auto; 
    border-bottom: 2px solid var(--ink); 
    padding-bottom: 40px; 
    text-align: center; 
}
.article-header h1 { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 20px; font-style: italic; }
.article-header .article-subtitle { font-family: var(--font-script); font-size: 1.5rem; color: var(--accent); margin-top: 10px; }
.article-meta { 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    font-family: var(--font-body); 
    font-size: 0.9rem; 
    color: #777; 
}
.article-meta .meta-tag { background: var(--ink); color: var(--bg-color); padding: 3px 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.article-body { max-width: 800px; margin: 0 auto; font-family: var(--font-body); font-size: 1.15rem; line-height: 1.8; color: var(--ink); text-align: justify; }
.article-body p { margin-bottom: 1.5em; }
.article-body > p:first-of-type::first-letter { 
    font-family: var(--font-heading); 
    font-size: 3.5rem; 
    float: left; 
    line-height: 1; 
    padding-right: 12px; 
    color: var(--accent); 
    font-weight: 700;
}
.article-decoration { display: flex; align-items: center; justify-content: center; margin: 60px 0; }
.article-decoration::before { content: ""; width: 80px; height: 1px; background-color: var(--accent); }
.quote-block { 
    background: rgba(var(--accent-rgb), 0.03); 
    padding: 40px; 
    border-left: 4px solid var(--accent); 
    margin: 50px 0; 
    font-family: var(--font-heading);
    font-style: italic; 
    font-size: 1.25rem; 
    line-height: 1.6;
    position: relative;
}
.quote-block::after {
    content: "”";
    position: absolute;
    bottom: 0;
    right: 20px;
    font-size: 5rem;
    color: rgba(var(--accent-rgb), 0.1);
    font-family: var(--font-heading);
    line-height: 1;
}
.article-footer-tags { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 25px 0; border-top: 1px solid var(--light-border); margin-top: 60px; flex-wrap: wrap; }
.article-footer-tags .tag-label { font-family: var(--font-body); font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.article-footer-tags .tag { font-family: var(--font-body); font-size: 0.85rem; padding: 4px 14px; border: 1px solid var(--light-border); color: var(--ink); }
.related-articles { 
    border-top: 1px solid var(--light-border); 
    padding-top: 40px; 
    max-width: 800px; 
    margin: 60px auto 0 auto; 
}
.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #888;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.related-card { border: 1px solid var(--light-border); padding: 20px; text-decoration: none; color: inherit; transition: all 0.3s ease; }
.related-card:hover { border-color: var(--ink); background-color: rgba(78, 56, 39, 0.02); }
.related-card h4 { font-family: var(--font-heading); font-size: 1.2rem; font-style: italic; margin-bottom: 8px; }
.related-card p { font-family: var(--font-body); font-size: 0.85rem; color: #777; line-height: 1.6; }
.related-meta { font-size: 0.75rem; color: #aaa; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.5px; display: block; } 

/* Category Headers */
.category-header {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 20px;
    margin-bottom: 40px;
    text-align: center;
}
.category-header h2 {
    font-size: 3rem;
    font-style: italic;
    margin-top: 20px;
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
} 

/* --- Comic Specific Styles (BD Guerre) --- */
.comic-container {
    max-width: 800px; /* Constrained to match article-body for consistency */
    margin: 40px auto;
    position: relative;
}

.comic-row {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 20px;
    align-items: center;
    margin: 60px 0;
}

.character {
    width: 100%;
    aspect-ratio: 0.8;
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    color: #aaa;
    font-style: italic;
    font-size: 0.8rem;
    background: transparent;
}

.dialogue-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bubble {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 20px;
    padding: 18px;
    position: relative;
    font-family: var(--font-script);
    font-size: 1.1rem;
    line-height: 1.4;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.bubble.from-left::after {
    content: "";
    position: absolute;
    left: -15px;
    top: 20px;
    border-width: 10px 15px 10px 0;
    border-style: solid;
    border-color: transparent var(--ink) transparent transparent;
}

.bubble.from-right::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 20px;
    border-width: 10px 0 10px 15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--ink);
}

.comic-info-box {
    grid-column: 1 / span 3;
    border: 1px solid var(--accent);
    padding: 40px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin: 40px 0;
}

.comic-info-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    font-style: italic;
}

.bullet-points {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

@media (max-width: 850px) {
    .comic-row { grid-template-columns: 1fr; }
    .bubble::after { display: none; }
    .character { display: none; }
}
