/* === VARIABLES === */
:root {
    --color-light: #fbe3cb;
    --color-primary: #bf9469;
    --color-secondary: #7d5f41;
    --color-dark: #3e2e1f;
    --color-text: #5c4b3a;
    --color-white: #ffffff;
    --color-bg: #f9f7f4;
    --color-border: #e8dfd5;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.tag-small {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    display: block;
}

/* === HEADER === */
header {
    background-color: var(--color-white);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(62, 46, 31, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-container img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--color-secondary);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--color-dark);
}

nav ul li a:hover::after {
    width: 100%;
}

/* === HERO === */
.hero {
    position: relative;
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--color-light) 0%, rgba(251, 246, 240, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, var(--color-white) 0%, transparent 70%);
    opacity: 0.8;
    z-index: 0;
}

.hero-content {
    max-width: 50%;
    position: relative;
    z-index: 1;
}

.tagline {
    display: inline-block;
    background-color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-light);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--color-secondary);
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-image {
    width: 45%;
    position: relative;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.3s;
}

.hero-image:hover::after {
    transform: translate(-10px, -10px);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(62, 46, 31, 0.15);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* === QUICK LATEST (12 articles) === */
.quick-latest {
    padding: 4rem 5%;
    background-color: var(--color-white);
    max-width: 1400px;
    margin: 0 auto;
}

.quick-latest h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-decoration: none;
    cursor: pointer;
}

.quick-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.quick-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.quick-card:hover .quick-img img {
    transform: scale(1.05);
}

.quick-card h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--color-dark);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.quick-card:hover h3 {
    color: var(--color-primary);
}

/* === SEARCH BAR === */
.search-bar {
    display: flex;
    background: var(--color-white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(62, 46, 31, 0.08);
    max-width: 500px;
    border: 1px solid rgba(191, 148, 105, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    color: var(--color-dark);
    font-family: 'Inter', sans-serif;
    background: transparent;
}

.search-bar button {
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.search-bar button:hover {
    background-color: var(--color-secondary);
}

/* === A PROPOS === */
.about-section {
    padding: 6rem 5%;
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-images {
    flex: 1;
    position: relative;
}

.img-main {
    width: 85%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.img-sub {
    width: 50%;
    position: absolute;
    bottom: -10%;
    right: 0;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 8px solid var(--color-bg);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--color-dark);
}

.checklist-icon {
    color: var(--color-dark);
    background-color: var(--color-light);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === THEMES SECTION === */
.themes-section {
    padding: 6rem 5%;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.themes-section h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.theme-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.theme-image {
    width: 100%;
    height: 250px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.theme-card:hover .theme-image img {
    transform: scale(1.05);
}

.theme-info {
    background-color: var(--color-white);
    width: 85%;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(62, 46, 31, 0.06);
    margin-top: -60px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-card:hover .theme-info {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(62, 46, 31, 0.1);
}

.theme-icon {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.theme-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.theme-info p {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* === CATEGORY BAND === */
.category-band {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.band-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.band-header h2 {
    font-size: 2.2rem;
}

.band-link {
    font-weight: 600;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.band-link:hover {
    color: var(--color-primary);
}

.band-link svg {
    transition: transform 0.3s;
}

.band-link:hover svg {
    transform: translateX(4px);
}

.articles-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.article-card {
    display: flex;
    flex-direction: column;
}

.article-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 15px;
}

.article-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.article-card:hover h3 {
    color: var(--color-primary);
}

.article-card p {
    font-size: 0.95rem;
    color: var(--color-text);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === FOOTER === */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    color: var(--color-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: rgba(251, 227, 203, 0.7);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(251, 227, 203, 0.1);
    color: rgba(251, 227, 203, 0.5);
    font-size: 0.9rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-section {
        flex-direction: column;
        gap: 3rem;
    }

    .img-sub {
        bottom: -5%;
        width: 40%;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }

    .articles-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 3rem;
        text-align: center;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .search-bar {
        margin: 0 auto;
    }

    .hero-image {
        width: 90%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-content h2,
    .themes-section h2 {
        font-size: 2.2rem;
    }

    .band-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        gap: 4rem 0;
    }

    .articles-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }

    .cat-hero h1 {
        font-size: 2.2rem;
    }

    .archive-card {
        flex-direction: column;
    }

    .archive-img {
        width: 100%;
        height: 220px;
    }

    .bottom-interlink-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CATEGORY ARCHIVE PAGE
   ===================================================== */

/* --- Category Hero --- */
.cat-hero {
    padding: 5rem 5% 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
}

.cat-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.cat-hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 0.8rem;
    line-height: 1.15;
}

.cat-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 1rem;
}

.cat-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb svg {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span {
    color: var(--color-white);
    font-weight: 600;
}

/* --- Interlinking (top) --- */
.cat-interlink {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.2rem 5%;
}

.interlink-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.interlink-label {
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.interlink-chip {
    display: inline-block;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    background-color: var(--color-bg);
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.interlink-chip:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* --- Article Listing --- */
.cat-listing {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.no-articles {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-secondary);
    padding: 4rem 0;
}

.archive-card {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.archive-card:first-child {
    padding-top: 0;
}

.archive-card:hover {
    transform: translateX(6px);
}

.archive-img {
    width: 340px;
    min-width: 340px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.archive-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-img img {
    transform: scale(1.05);
}

.archive-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.archive-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.archive-date,
.archive-reading {
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.archive-card:hover .archive-content h2 {
    color: var(--color-primary);
}

.archive-content p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-secondary);
    transition: color 0.3s, gap 0.3s;
}

.archive-card:hover .archive-read-more {
    color: var(--color-primary);
    gap: 10px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-secondary);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.page-link.active {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

.page-prev,
.page-next {
    font-size: 0.9rem;
}

/* --- Bottom Interlinking --- */
.cat-bottom-interlink {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.cat-bottom-interlink h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.bottom-interlink-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bottom-interlink-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-decoration: none;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bottom-interlink-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bottom-interlink-icon {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.bottom-interlink-card h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.bottom-interlink-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
}

/* --- Category page responsive --- */
@media (max-width: 1024px) {
    .archive-img {
        width: 280px;
        min-width: 280px;
        height: 190px;
    }

    .bottom-interlink-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-hero {
        min-height: 260px;
        padding: 3rem 5%;
    }

    .cat-hero h1 {
        font-size: 2.2rem;
    }

    .archive-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .archive-img {
        width: 100%;
        min-width: unset;
        height: 220px;
    }

    .bottom-interlink-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* =====================================================
   ARTICLE SINGLE PAGE
   ===================================================== */

/* --- Hero Article --- */
.article-hero {
    padding: 6rem 5% 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(62, 46, 31, 0.2) 0%, rgba(62, 46, 31, 0.85) 100%);
    z-index: 1;
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.article-hero .breadcrumb {
    justify-content: center;
    margin-bottom: 2rem;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.article-tag {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.article-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Corps de l'article --- */
.article-container {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(62, 46, 31, 0.05);
    min-width: 0;
}

.article-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content strong {
    color: var(--color-dark);
    font-weight: 700;
}

/* --- Titres H2 / H3 --- */
.article-content h2 {
    font-size: 2.2rem;
    color: var(--color-dark);
    margin: 3.5rem 0 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.6rem;
    color: var(--color-dark);
    margin: 2.5rem 0 1rem;
}

/* --- TL;DR Box --- */
.tldr-box {
    background-color: #faf3eb;
    border-left: 4px solid var(--color-primary);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 3rem;
}

.tldr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.tldr-header svg {
    color: var(--color-primary);
}

.tldr-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tldr-box li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 22px;
    color: var(--color-dark);
    line-height: 1.7;
}

.tldr-box li::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

/* --- Table of Contents (TOC) --- */
.toc-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.toc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.toc-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-box li {
    margin-bottom: 1rem;
}

.toc-box a {
    color: var(--color-text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.toc-box a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* --- Listes à puces --- */
.custom-list {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.custom-list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf9469' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
}

/* --- Tableaux HTML --- */
.table-responsive {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--color-white);
}

.content-table th {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 1.2rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.content-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-dark);
    font-size: 1.05rem;
}

.content-table tbody tr:nth-child(even) {
    background-color: #fcfaf8;
}

.content-table tbody tr:hover {
    background-color: rgba(191, 148, 105, 0.05);
}

/* --- Images in-text --- */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.img-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* --- Citation (Blockquote) --- */
.article-blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: #faf3eb;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-dark);
    border-radius: 0 12px 12px 0;
}

/* --- Conclusion Box --- */
.conclusion-box {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.conclusion-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
}

.conclusion-box h3 {
    color: var(--color-white);
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.conclusion-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* --- Responsive Article --- */
@media (max-width: 1024px) {
    .article-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        min-height: 400px;
        padding-top: 4rem;
    }

    .article-hero h1 {
        font-size: 2.2rem;
    }

    .article-container {
        margin-top: -2rem;
        padding: 2.5rem 5%;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .tldr-box,
    .toc-box,
    .conclusion-box {
        padding: 1.5rem;
    }

    .article-blockquote {
        font-size: 1.15rem;
        padding: 1.2rem;
    }
}

/* =====================================================
   ARTICLE 3-COLUMN LAYOUT
   ===================================================== */

.article-layout {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 2.5rem;
    max-width: 1600px;
    margin: -3rem auto 5rem;
    padding: 0 2%;
    position: relative;
    z-index: 10;
}

/* --- Sidebar Shared --- */
.sidebar-sticky {
    /* scrolls with page, no sticky */
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-primary);
}

/* --- Left Sidebar: Categories --- */
.sidebar-left {
    padding-top: 4rem;
}

.sidebar-cat-card {
    display: block;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sidebar-cat-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.sidebar-cat-name {
    display: block;
    padding: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-dark);
    background: var(--color-white);
    text-align: center;
}

/* --- Right Sidebar: Articles --- */
.sidebar-right {
    padding-top: 4rem;
}

.sidebar-block {
    margin-bottom: 2.5rem;
}

.sidebar-article-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-article-card:first-of-type {
    padding-top: 0;
}

.sidebar-article-card:hover {
    transform: translateX(3px);
}

.sidebar-article-card:hover span {
    color: var(--color-primary);
}

.sidebar-article-card img {
    width: 65px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-article-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

/* --- Similar Articles (below conclusion) --- */
.similar-articles {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.similar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.similar-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.similar-card:hover {
    transform: translateY(-4px);
}

.similar-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.similar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.similar-card:hover .similar-img img {
    transform: scale(1.05);
}

.similar-card h4 {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.4;
    transition: color 0.3s;
}

.similar-card:hover h4 {
    color: var(--color-primary);
}

/* --- Responsive: 3-column to 1-column --- */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }

    .sidebar-left {
        display: none;
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding: 0 3%;
    }

    .sidebar-right {
        order: 2;
    }

    .sidebar-left {
        display: none;
    }

    .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   LEGAL / INFO PAGES (À propos, Contact, Mentions, etc.)
   ===================================================== */

.legal-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
    padding: 5rem 5% 3.5rem;
    text-align: center;
}

.legal-hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.8rem;
}

.legal-hero-content p {
    color: rgba(251, 227, 203, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.legal-container {
    max-width: 860px;
    margin: 3rem auto 5rem;
    background: var(--color-white);
    padding: 3.5rem 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(62, 46, 31, 0.05);
}

.legal-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-primary);
}

.legal-container h2:first-of-type {
    margin-top: 0;
}

.legal-container p {
    color: var(--color-text);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.legal-container a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-container a:hover {
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .legal-hero-content h1 {
        font-size: 2rem;
    }

    .legal-container {
        margin: 2rem 3%;
        padding: 2rem 1.5rem;
    }
}