/* 1Conscient.fr - Design System v2 - Enhanced */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --beige-light: #f7f3e9;
    --beige-main: #e8dcc0;
    --beige-dark: #d4c4a0;
    --green-soft: #a8b8a0;
    --green-main: #7d8471;
    --green-dark: #5a6147;
    --brown-text: #4a3728;
    --cream: #faf8f3;
    --accent-warm: #c49a6c;
    --accent-rose: #c4a0a0;
    --accent-gold: #b8963e;
    --shadow-sm: 0 4px 12px rgba(90, 97, 71, 0.08);
    --shadow-md: 0 12px 30px rgba(90, 97, 71, 0.12);
    --shadow-lg: 0 20px 50px rgba(90, 97, 71, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(160deg, var(--beige-light) 0%, #e4ddd0 40%, var(--green-soft) 100%);
    background-attachment: fixed;
    color: var(--brown-text);
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); transition: all 0.3s ease; }
a:hover { color: var(--accent-warm); }

::selection { background: rgba(168, 184, 160, 0.35); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.container { max-width: 860px; margin: 0 auto; padding: 20px; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(90, 97, 71, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled { box-shadow: 0 4px 20px rgba(90, 97, 71, 0.12); }

.navbar-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.navbar-logo:hover { color: var(--green-main); transform: none; }

.navbar-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.navbar-links a {
    color: var(--green-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.2px;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-dark), var(--accent-warm));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.navbar-links a:hover { color: var(--green-dark); }
.navbar-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--green-dark);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 18px 0 8px;
    font-size: 0.88rem;
    color: var(--green-main);
    animation: fadeIn 0.6s ease-out;
}

.breadcrumb a {
    color: var(--green-main);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb span { margin: 0 8px; opacity: 0.4; font-size: 0.8rem; }

/* ===== ARTICLE HEADER ===== */
.article-header {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 55px 50px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232, 220, 192, 0.5);
    animation: fadeInUp 0.7s ease-out;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 184, 160, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(196, 154, 108, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.article-header .category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    color: var(--cream);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--green-dark);
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.article-header .subtitle {
    font-size: 1.15rem;
    color: var(--green-main);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 22px;
    font-size: 0.88rem;
    color: var(--green-main);
    position: relative;
    z-index: 1;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== INTRO TEXT (before TOC) ===== */
.intro-text {
    font-size: 1.12rem;
    line-height: 1.9;
    color: var(--brown-text);
    margin-bottom: 30px;
    text-align: justify;
}

.intro-text a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--green-soft);
    transition: all 0.3s ease;
}

.intro-text a:hover {
    border-bottom-color: var(--accent-warm);
    color: var(--accent-warm);
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: linear-gradient(135deg, var(--beige-light), var(--beige-main));
    border-radius: var(--radius-md);
    padding: 28px 35px;
    margin-bottom: 35px;
    border: 1px solid var(--beige-dark);
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.toc h3 {
    color: var(--green-dark);
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 600;
}

.toc ol { margin-left: 20px; }
.toc li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.toc a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.toc a:hover {
    color: var(--accent-warm);
    border-bottom-color: var(--accent-warm);
}

/* ===== SECTIONS ===== */
.section {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 48px 45px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(232, 220, 192, 0.4);
    animation: fadeInUp 0.7s ease-out;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: 1.85rem;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 16px;
    position: relative;
    line-height: 1.3;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--accent-warm), var(--green-soft));
    border-radius: 2px;
}

.section h3 {
    color: var(--green-dark);
    font-size: 1.3rem;
    margin: 32px 0 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.section p {
    margin-bottom: 20px;
    font-size: 1.04rem;
    text-align: justify;
    line-height: 1.85;
}

.section p a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--green-soft);
    transition: all 0.3s ease;
}

.section p a:hover {
    border-bottom-color: var(--accent-warm);
    color: var(--accent-warm);
}

.section ul, .section ol {
    margin-left: 25px;
    margin-bottom: 22px;
}

.section li {
    margin-bottom: 12px;
    font-size: 1.04rem;
    line-height: 1.75;
}

.section blockquote {
    border-left: 4px solid var(--accent-warm);
    padding: 20px 25px;
    margin: 25px 0;
    background: rgba(196, 154, 108, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--green-dark);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
    background: linear-gradient(135deg, var(--beige-light), rgba(232, 220, 192, 0.6));
    border-radius: var(--radius-md);
    padding: 26px 30px;
    margin: 28px 0;
    border-left: 5px solid var(--green-main);
    box-shadow: var(--shadow-sm);
    font-size: 1.02rem;
    line-height: 1.75;
}

.highlight-box strong { color: var(--green-dark); }

.highlight-box.info {
    border-left-color: var(--green-soft);
    background: linear-gradient(135deg, rgba(168,184,160,0.12), rgba(168,184,160,0.22));
}

.highlight-box.important {
    border-left-color: var(--green-dark);
    background: linear-gradient(135deg, rgba(90,97,71,0.08), rgba(90,97,71,0.15));
}

.highlight-box.warm {
    border-left-color: var(--accent-warm);
    background: linear-gradient(135deg, rgba(196,154,108,0.08), rgba(196,154,108,0.18));
}

.highlight-box.exercise {
    border-left-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(184, 150, 62, 0.08), rgba(184, 150, 62, 0.15));
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.stat-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(232, 220, 192, 0.5);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--green-dark);
    display: block;
    margin-bottom: 6px;
    line-height: 1.1;
}

.stat-label {
    color: var(--green-main);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== RELATED ARTICLES / CARDS ===== */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.related-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 26px;
    border: 1px solid rgba(232, 220, 192, 0.5);
    text-decoration: none;
    color: var(--brown-text);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-soft);
}

.related-card .card-emoji {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.related-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-card .card-desc {
    font-size: 0.9rem;
    color: var(--green-main);
    line-height: 1.55;
    flex-grow: 1;
}

.related-card .card-tag {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--accent-warm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== CTA BOX ===== */
.cta-box {
    background: linear-gradient(135deg, var(--green-dark) 0%, #4a5a3d 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: var(--cream);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(168,184,160,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h3 { color: var(--beige-light); margin-bottom: 12px; font-size: 1.4rem; font-family: 'Playfair Display', serif; position: relative; z-index: 1; }
.cta-box p { color: rgba(250,248,243,0.8); margin-bottom: 22px; position: relative; z-index: 1; }
.cta-box a {
    display: inline-block;
    background: var(--cream);
    color: var(--green-dark);
    padding: 14px 34px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.cta-box a:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, var(--green-dark) 0%, #3d4a35 100%);
    color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 50px 45px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h4 {
    color: var(--beige-light);
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-col p {
    color: rgba(247, 243, 233, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: rgba(247, 243, 233, 0.7);
    text-decoration: none;
    font-size: 0.93rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--cream);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 243, 233, 0.12);
    padding-top: 28px;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(247, 243, 233, 0.5);
}

.footer-bottom a {
    color: rgba(247, 243, 233, 0.65);
    text-decoration: none;
}

.footer-bottom a:hover { color: var(--cream); }

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--green-dark);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    width: 46px; height: 46px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(90, 97, 71, 0.35);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-warm); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .article-header { padding: 40px 28px; }
    .article-header h1 { font-size: 2rem; }
    .section { padding: 32px 26px; }
    .navbar-links { display: none; }
    .hamburger { display: flex; }
    .navbar-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(250,248,243,0.98);
        backdrop-filter: blur(20px);
        padding: 20px 25px;
        box-shadow: 0 15px 40px rgba(90,97,71,0.15);
        gap: 16px;
        border-top: 1px solid var(--beige-main);
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .footer-legal { flex-direction: column; align-items: center; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .related-articles { grid-template-columns: 1fr; }
    .article-meta { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
    .article-header h1 { font-size: 1.7rem; }
    .section h2 { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
