/* ============================================
   LIMELogic Custom Styles
   ============================================ */

/* HERO */
.hero-section {
    position: relative;
    padding: 200px 4vmin 180px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.65),rgba(0,0,0,0.7)),url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(4.5rem, 9vw, 7rem);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ABOUT */
.about-section {
    padding: 80px 4vmin;
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
}

.about-inner {
    max-width: 720px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
}

.about-label {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(164,208,55,0.15);
    color: #6b8f1f;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 700;
    color: #15171a;
    margin: 0 0 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.about-text {
    color: #515151;
    font-size: 1.6rem;
    line-height: 1.8;
}

.about-text p {
    margin: 0 0 1.2em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 20px;
}

.section-header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #15171a;
    letter-spacing: -0.02em;
    margin: 0;
    white-space: nowrap;
}

.section-header-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, #a4d037 0%, transparent 100%);
    border-radius: 1px;
}

/* POST CARDS */
.post-feed {
    gap: 28px 24px;
    padding-top: 20px;
}

.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.post-card-image-link {
    display: block;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.post-card-image-link:after {
    content: "";
    display: block;
    padding-bottom: 50%;
}

.post-card-image {
    background: #f1f1f1;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-image {
    transform: scale(1.03);
}

.post-card-content {
    padding: 20px 22px 18px;
}

.post-card-content-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.post-card-content-link:hover {
    text-decoration: none;
}

.post-card-header {
    margin-bottom: 0;
}

.post-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.post-card-primary-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(164,208,55,0.12);
    color: #6b8f1f;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.post-card:hover .post-card-primary-tag {
    background: rgba(164,208,55,0.18);
}

.post-card-featured {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #a4d037;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-card-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #15171a;
    transition: color 0.2s;
}

.post-card-content-link:hover .post-card-title {
    color: #a4d037;
}

.post-card-excerpt {
    color: #738a94;
    font-size: 1.45rem;
    line-height: 1.55;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
    color: #979797;
    font-size: 1.25rem;
}

.post-card-meta-date,
.post-card-meta-length {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card-meta > * + *:before {
    content: "";
    display: block;
    width: 3px;
    height: 3px;
    background: #d0d0d0;
    border-radius: 50%;
}

/* FEATURED ARTICLE (1st) - Image left, text right */
.post-card-large {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    border-radius: 18px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #ececec;
    background: #fff;
    gap: 0 !important;
    border-top: none !important;
    margin-bottom: 0 !important;
}

.post-card-large .post-card-image-link {
    border-radius: 18px 0 0 18px;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    grid-column: auto !important;
    order: 0 !important;
}

.post-card-large .post-card-image-link:after {
    content: "";
    display: block;
    padding-bottom: 0 !important;
}

.post-card-large .post-card-image {
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-large:hover .post-card-image {
    transform: scale(1.04);
}

.post-card-large .post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px;
    background: #fff;
    grid-column: auto !important;
    order: 1 !important;
}

.post-card-large .post-card-header {
    margin-top: 0 !important;
}

.post-card-large .post-card-tags {
    margin-bottom: 16px;
    gap: 10px;
}

.post-card-large .post-card-primary-tag {
    font-size: 0.82rem;
    padding: 5px 14px;
}

.post-card-large .post-card-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem) !important;
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-top: 0 !important;
}

.post-card-large .post-card-excerpt {
    font-size: 1.55rem;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    margin-top: 0 !important;
    color: #515151;
}

.post-card-large .post-card-meta {
    margin-top: 20px;
    padding-top: 16px;
    font-size: 1.3rem;
}

/* ARTICLES 2 & 3 - Beautiful medium cards */
.post-card.dynamic {
    grid-column: span 3 !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.post-card.dynamic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.post-card.dynamic .post-card-image-link {
    display: block;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
}

.post-card.dynamic .post-card-image-link:after {
    content: "";
    display: block;
    padding-bottom: 55%;
}

.post-card.dynamic .post-card-image {
    background: #f1f1f1;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card.dynamic:hover .post-card-image {
    transform: scale(1.04);
}

.post-card.dynamic .post-card-content {
    padding: 22px 24px 20px;
}

.post-card.dynamic .post-card-header {
    margin-bottom: 0;
    margin-top: 0 !important;
}

.post-card.dynamic .post-card-tags {
    margin-bottom: 12px;
}

.post-card.dynamic .post-card-primary-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
}

.post-card.dynamic .post-card-title {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem) !important;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #15171a;
    transition: color 0.2s;
}

.post-card.dynamic .post-card-content-link:hover .post-card-title {
    color: #a4d037;
}

.post-card.dynamic .post-card-excerpt {
    color: #738a94;
    font-size: 1.4rem;
    line-height: 1.55;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card.dynamic .post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
    color: #979797;
    font-size: 1.25rem;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    /* Grille 1 : désactiver le grid du post-feed */
    .post-feed {
        display: block !important;
    }

    /* Grille 3 : désactiver le flex du contenu qui crée le vide */
    .post-card-large .post-card-content {
        display: block !important;
        min-height: 0 !important;
    }

    /* Réinitialiser la hauteur min de la carte */
    .post-card-large {
        display: block !important;
        min-height: 0 !important;
    }

    .post-card-large .post-card-image-link {
        border-radius: 18px 18px 0 0;
        display: block;
    }

    .post-card-large .post-card-image-link:after {
        padding-bottom: 55% !important;
    }

    .post-card-large .post-card-image {
        position: absolute !important;
        height: 100% !important;
    }

    .post-card.dynamic {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 140px 4vmin 120px;
    }

    .about-section {
        padding: 60px 4vmin;
    }

    .section-header {
        gap: 12px;
        margin-bottom: 28px;
    }

    .section-header-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .post-feed {
        gap: 20px;
    }

    .post-card {
        border-radius: 10px;
    }

    .post-card-content {
        padding: 16px 18px 14px;
    }

    .post-card-title {
        font-size: 1.7rem;
    }

    .post-card-excerpt {
        font-size: 1.3rem;
        -webkit-line-clamp: 2;
    }

    .post-card-meta {
        font-size: 1.15rem;
        margin-top: 12px;
        padding-top: 10px;
    }

    .post-card-large {
        border-radius: 12px;
    }

    .post-card-large .post-card-image-link {
        border-radius: 12px 12px 0 0;
    }

    .post-card-large .post-card-image {
        height: 200px;
    }

    .post-card-large .post-card-content {
        padding: 24px 22px;
    }

    .post-card-large .post-card-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
    }

    .post-card-large .post-card-excerpt {
        font-size: 1.4rem;
        -webkit-line-clamp: 2;
    }

    .post-card.dynamic {
        grid-column: span 1 !important;
        border-radius: 10px;
    }

    .post-card.dynamic .post-card-content {
        padding: 18px 20px 16px;
    }

    .post-card.dynamic .post-card-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem) !important;
    }

    .post-card.dynamic .post-card-excerpt {
        font-size: 1.3rem;
        -webkit-line-clamp: 2;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
    background: #15171a;
    color: #fff;
    margin-top: 80px;
    padding: 60px 4vmin 0;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer-col {
    display: flex;
    flex-direction: column;
}

.site-footer-logo {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: 0.05em;
    color: #fff;
}

.site-footer-logo-img {
    max-height: 48px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.site-footer-tagline {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

.site-footer-heading {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a4d037;
    margin: 0 0 20px;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-links li {
    margin-bottom: 14px;
}

.site-footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.site-footer-links a:hover {
    color: #a4d037;
}

.site-footer-bottom {
    padding: 20px 0;
}

.site-footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 4vmin 0;
        margin-top: 50px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .site-footer-logo {
        font-size: 1.6rem;
    }

    .site-footer-heading {
        margin-bottom: 12px;
    }
}

/* ============================================
   FORM STYLES (Contact & Signaler)
   ============================================ */

.contact-form-wrapper,
.report-form-wrapper {
    margin-top: 40px;
    padding: 32px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.contact-intro,
.report-intro {
    font-size: 1.6rem;
    color: #515151;
    margin-bottom: 24px;
    line-height: 1.6;
}

.report-note {
    font-size: 1.4rem;
    color: #738a94;
    margin-bottom: 24px;
}

.contact-form,
.report-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #15171a;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1.5rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a4d037;
    box-shadow: 0 0 0 3px rgba(164,208,55,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #a4d037;
}

.form-checkbox label {
    font-size: 1.3rem;
    font-weight: 400;
    color: #515151;
    line-height: 1.5;
}

.form-submit {
    align-self: flex-start;
    padding: 14px 32px;
    background: #a4d037;
    color: #15171a;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.form-submit:hover {
    background: #b8e04a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164,208,55,0.3);
}

@media (max-width: 768px) {
    .contact-form-wrapper,
    .report-form-wrapper {
        padding: 24px 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1.4rem;
        padding: 10px 14px;
    }

    .form-submit {
        width: 100%;
        text-align: center;
    }
}

/* Turnstile Captcha */
.cf-turnstile {
    margin: 8px 0;
}

/* Subscribe Button - White text on green */
.gh-head-button {
    background: #a4d037 !important;
    color: #fff !important;
    border: 2px solid #a4d037 !important;
    transition: all 0.2s !important;
}

.gh-head-button:hover {
    background: #b8e04a !important;
    border-color: #b8e04a !important;
}

.gh-head-link {
    color: #a4d037 !important;
}

/* Search icon - white for visibility */
.gh-search svg {
    stroke: #fff !important;
}

.gh-search:hover svg {
    stroke: #a4d037 !important;
}

/* ============================================
   PRISM.JS THEME OVERRIDES
   ============================================ */

.gh-content pre[class*="language-"] {
    background: #15171a;
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 1.35rem;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin-top: max(3.2vmin, 24px);
    overflow-x: auto;
}

.gh-content code[class*="language-"] {
    font-size: 1.3rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

html.dark-mode .gh-content pre[class*="language-"] {
    background: #0d0e10;
}

/* ============================================
   ARTICLE LAYOUT (sidebar + content)
   ============================================ */

.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--gap, 4vmin);
    align-items: start;
    width: 100%;
    grid-column: full-start / full-end !important;
}

.article-layout .gh-content {
    grid-column: auto !important;
    max-width: var(--content-width, 720px);
}

.article-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */

.toc-wrapper {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px 24px;
}

.toc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    color: #15171a;
    padding: 0;
    width: 100%;
    text-align: left;
}

.toc-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.toc-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.toc-content {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e1e1e1;
}

.toc-content.is-open {
    display: block;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 8px 0;
}

.toc-item a {
    color: #515151;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.toc-item a.is-active,
.toc-item a:hover {
    color: #a4d037;
}

.toc-h3 {
    padding-left: 16px;
}

/* ============================================
   SOCIAL SHARE BAR
   ============================================ */

.share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    margin: 32px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.share-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #515151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e1e1e1;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
    color: #515151;
    text-decoration: none;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.share-twitter:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-copy.copied {
    background: #a4d037;
    border-color: #a4d037;
    color: #fff;
}

.share-copy.copied svg {
    display: none;
}

.share-copy.copied::after {
    content: "✓";
    font-size: 14px;
    font-weight: 700;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    font-size: 1.3rem;
    color: #738a94;
    margin-bottom: 20px;
    line-height: 1.4;
}

.breadcrumbs a {
    color: #738a94;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #a4d037;
}

.breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumbs .breadcrumb-current {
    color: #515151;
    font-weight: 500;
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #15171a;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.related-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #a4d037;
    margin-top: 8px;
    border-radius: 2px;
}

/* ============================================
   CODE COPY BUTTON
   ============================================ */

.code-block-wrapper {
    position: relative;
}

.code-block-wrapper pre {
    margin: 0;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
    z-index: 2;
}

.code-block-wrapper:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.code-copy-btn.copied {
    background: #a4d037;
    border-color: #a4d037;
    color: #fff;
    opacity: 1;
}

.code-copy-btn.copied svg {
    display: none;
}

.code-copy-btn.copied::after {
    content: "✓";
    font-size: 12px;
    font-weight: 700;
}

.code-copy-btn svg {
    pointer-events: none;
    width: 14px;
    height: 14px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .gh-head,
    .site-footer,
    .share-bar,
    .toc-toggle,
    .footer-cta,
    .read-more-wrap,
    .article-comments,
    .gh-search,
    .gh-burger,
    .gh-head-members,
    .code-copy-btn {
        display: none !important;
    }

    .article {
        padding: 0 !important;
    }

    .article-title {
        font-size: 28pt !important;
        color: #000 !important;
    }

    .gh-content {
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
    }

    .gh-content a {
        color: #000 !important;
        text-decoration: underline;
    }

    .gh-content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    .gh-content pre[class*="language-"] {
        background: #f5f5f5 !important;
        color: #000 !important;
        border: 1px solid #ccc;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
    }

    .toc-wrapper {
        position: static !important;
        float: none !important;
        width: auto !important;
        page-break-after: avoid;
    }

    .toc-content {
        display: block !important;
    }

    .article-image {
        max-width: 100%;
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 2cm;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    pre, blockquote, img {
        page-break-inside: avoid;
    }
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */

html.dark-mode .toc-wrapper {
    background: #1a1c1f;
    border-color: #2a2d32;
}

html.dark-mode .toc-toggle {
    color: #e0e0e0;
}

html.dark-mode .toc-content {
    border-top-color: #2a2d32;
}

html.dark-mode .toc-item a {
    color: #aaa;
}

html.dark-mode .breadcrumbs {
    color: #888;
}

html.dark-mode .breadcrumbs a {
    color: #888;
}

html.dark-mode .breadcrumb-current {
    color: #ccc;
}

html.dark-mode .share-bar {
    border-color: #2a2d32;
}

html.dark-mode .share-label {
    color: #ccc;
}

html.dark-mode .share-btn {
    background: #1a1c1f;
    border-color: #2a2d32;
    color: #aaa;
}

html.dark-mode .related-heading {
    color: #e0e0e0;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #a4d037, #b8e04a);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   ARTICLE PREV/NEXT NAVIGATION
   ============================================ */

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 48px auto;
    max-width: 1200px;
    padding: 0 4vmin;
}

.article-nav-item {
    display: block;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.article-nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #a4d037;
}

.article-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: #738a94;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.article-nav-label svg {
    width: 16px;
    height: 16px;
    stroke: #738a94;
    transition: stroke 0.2s;
}

.article-nav-item:hover .article-nav-label svg {
    stroke: #a4d037;
}

.article-nav-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #15171a;
    line-height: 1.3;
    transition: color 0.2s;
}

.article-nav-item:hover .article-nav-title {
    color: #a4d037;
}

.article-nav-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(164,208,55,0.12);
    color: #6b8f1f;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.article-nav-item.next {
    text-align: right;
}

.article-nav-item.next .article-nav-label {
    justify-content: flex-end;
}

.article-nav-item.next .article-nav-label svg {
    order: 1;
}

/* ============================================
   CONTENT COMPONENTS (for article body)
   ============================================ */

/* Citation stylée */
.quote-block {
    background: linear-gradient(135deg, #15171a, #1a1c1f);
    color: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.6;
    position: relative;
    border-left: 4px solid #a4d037;
}

.quote-block::before {
    content: '\201C';
    font-size: 5rem;
    font-family: Georgia, serif;
    position: absolute;
    top: -12px;
    left: 24px;
    opacity: 0.2;
    color: #a4d037;
}

.quote-block p {
    margin: 0;
    color: #fff;
}

.quote-block .quote-author {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 1.3rem;
    color: #a4d037;
    font-weight: 600;
}

/* Bloc d'information / Astuce */
.info-block {
    background: rgba(164,208,55,0.08);
    border: 1px solid rgba(164,208,55,0.25);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
}

.info-block::before {
    content: '💡';
    font-size: 2rem;
    position: absolute;
    top: -16px;
    left: 20px;
    background: #f8f9fa;
    padding: 0 8px;
}

html.dark-mode .info-block::before {
    background: #15171a;
}

.info-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b8f1f;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.info-block p {
    margin: 0;
    color: #515151;
    font-size: 1.45rem;
    line-height: 1.6;
}

html.dark-mode .info-block p {
    color: #ccc;
}

/* Bloc d'avertissement */
.warning-block {
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.25);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
}

.warning-block::before {
    content: '⚠️';
    font-size: 2rem;
    position: absolute;
    top: -16px;
    left: 20px;
    background: #f8f9fa;
    padding: 0 8px;
}

html.dark-mode .warning-block::before {
    background: #15171a;
}

.warning-block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e94560;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.warning-block p {
    margin: 0;
    color: #515151;
    font-size: 1.45rem;
    line-height: 1.6;
}

html.dark-mode .warning-block p {
    color: #ccc;
}

/* Cartes d'information (grid) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #a4d037;
}

.info-card-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #15171a;
    margin: 0 0 8px;
}

.info-card p {
    margin: 0;
    color: #738a94;
    font-size: 1.35rem;
    line-height: 1.5;
}

html.dark-mode .info-card {
    background: #1a1c1f;
    border-color: #2a2d32;
}

html.dark-mode .info-card h4 {
    color: #e0e0e0;
}

html.dark-mode .info-card p {
    color: #aaa;
}

/* Liste améliorée avec bordure verte */
.feature-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.feature-list li {
    padding: 14px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #a4d037;
    font-size: 1.45rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.feature-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background: #fff;
}

.feature-list li strong {
    color: #15171a;
    display: block;
    margin-bottom: 4px;
}

html.dark-mode .feature-list li {
    background: #1a1c1f;
}

html.dark-mode .feature-list li:hover {
    background: #22252a;
}

html.dark-mode .feature-list li strong {
    color: #e0e0e0;
}

/* Liste numérotée stylisée */
.numbered-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    counter-reset: numbered-list;
}

.numbered-list li {
    counter-increment: numbered-list;
    padding: 16px 20px 16px 60px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.45rem;
    line-height: 1.5;
    position: relative;
    transition: all 0.2s;
}

.numbered-list li:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.numbered-list li::before {
    content: counter(numbered-list);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #a4d037;
    color: #15171a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.numbered-list li strong {
    color: #15171a;
    display: block;
    margin-bottom: 4px;
}

html.dark-mode .numbered-list li {
    background: #1a1c1f;
}

html.dark-mode .numbered-list li:hover {
    background: #22252a;
}

html.dark-mode .numbered-list li strong {
    color: #e0e0e0;
}

/* Séparateur de section */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a4d037, transparent);
    margin: 40px 0;
}

/* ============================================
   RESPONSIVE PREV/NEXT NAV
   ============================================ */

@media (max-width: 768px) {
    .article-nav {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px auto;
    }

    .article-nav-item.next {
        text-align: left;
    }

    .article-nav-item.next .article-nav-label {
        justify-content: flex-start;
    }

    .article-nav-item.next .article-nav-label svg {
        order: 0;
    }

    .article-nav-title {
        font-size: 1.4rem;
    }

    .quote-block {
        padding: 24px 20px;
        font-size: 1.4rem;
    }

    .info-block,
    .warning-block {
        padding: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-list li,
    .numbered-list li {
        font-size: 1.35rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-sidebar {
        position: static;
        max-height: none;
        order: -1;
    }

    .toc-toggle svg {
        display: inline-flex;
    }
}

/* ============================================
   DARK MODE SIDEBAR
   ============================================ */

html.dark-mode .article-sidebar .toc-wrapper {
    background: #1a1c1f;
    border-color: #2a2d32;
}

html.dark-mode .article-sidebar .toc-toggle {
    color: #e0e0e0;
}

html.dark-mode .article-sidebar .toc-content {
    border-top-color: #2a2d32;
}
