/* ==========================================================================
   SINGLE ARTICLE STYLES - JurojinNet
   ========================================================================== */

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

/* Fond blanc pour toute la page single */
body.single-post {
    background: #ffffff;
}

body.single-post .site-content {
    background: #ffffff;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   ARTICLE HEADER
   ========================================================================== */

.article-header {
    background: #ffffff;
}

.article-header__top {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.article-header__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.article-header__breadcrumb a {
    color: #6b7280;
    transition: color 0.15s;
}

.article-header__breadcrumb a:hover {
    color: #6366f1;
}

.article-header__breadcrumb svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.article-header__main {
    padding: 2.5rem 0;
}

/* Contenu centré */
.article-header__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-header__category {
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.3rem 0.625rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: background 0.15s, color 0.15s;
}

.article-header__category:hover {
    background: #6366f1;
    color: #ffffff;
}

.article-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 100%;
}

.article-header__excerpt {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.article-header__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-header__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-header__author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-header__author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.article-header__author:hover .article-header__author-name {
    color: #6366f1;
}

.article-header__date {
    font-size: 0.8125rem;
    color: #6b7280;
}

.article-header__stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.article-header__stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-header__stat svg {
    width: 15px;
    height: 15px;
    color: #9ca3af;
}

/* Featured Image - Centrée */
.article-header__image {
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header__image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

.article-header__caption {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
}

/* ==========================================================================
   ARTICLE LAYOUT
   ========================================================================== */

.article-main {
    padding: 3rem 0 4rem;
    background: #ffffff;
}

.article-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.article-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.article-toc__title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.article-toc__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
}

.article-toc__item {
    position: relative;
}

.article-toc__link {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 0.375rem 0 0.375rem 0.875rem;
    border-left: 2px solid #e5e7eb;
    transition: all 0.15s;
}

.article-toc__link:hover {
    color: #6366f1;
    border-left-color: #c7d2fe;
}

.article-toc__link.active {
    color: #6366f1;
    border-left-color: #6366f1;
    font-weight: 500;
}

.article-toc__link--h3 {
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

/* Mobile TOC */
.article-toc-mobile {
    display: none;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
}

.article-toc-mobile__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
}

.article-toc-mobile__toggle svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 0.2s;
}

.article-toc-mobile.open .article-toc-mobile__toggle svg {
    transform: rotate(180deg);
}

.article-toc-mobile__list {
    display: none;
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 1rem 0 0 0;
    border-top: 1px solid #e5e7eb;
}

.article-toc-mobile.open .article-toc-mobile__list {
    display: block;
}

.article-toc-mobile__list li {
    margin-bottom: 0.5rem;
}

.article-toc-mobile__list a {
    font-size: 0.875rem;
    color: #4b5563;
}

.article-toc-mobile__list a:hover {
    color: #6366f1;
}

/* ==========================================================================
   ARTICLE CONTENT
   ========================================================================== */

.article-content {
    max-width: 680px;
}

.article-body p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 80px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 80px;
}

.article-body h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-body a {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: #4f46e5;
}

.article-body strong {
    font-weight: 600;
    color: #111827;
}

.article-body em {
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    font-size: 1.0625rem;
    color: #4b5563;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    color: #6b7280;
}

.article-body pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #1f2937;
    border-radius: 8px;
    overflow-x: auto;
}

.article-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.article-body pre code {
    color: #e5e7eb;
}

.article-body p code {
    background: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.article-body img {
    margin: 2rem 0;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.article-body figure {
    margin: 2rem 0;
}

.article-body figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

.article-body hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
}

/* ==========================================================================
   SHORTCODE STYLES - Callouts
   ========================================================================== */

.article-body .callout {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.article-body .callout svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.article-body .callout p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.article-body .callout--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.article-body .callout--info svg {
    color: #3b82f6;
}

.article-body .callout--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.article-body .callout--success svg {
    color: #10b981;
}

.article-body .callout--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.article-body .callout--warning svg {
    color: #f59e0b;
}

.article-body .callout--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.article-body .callout--danger svg {
    color: #ef4444;
}

/* ==========================================================================
   SHORTCODE STYLES - Read Also
   ========================================================================== */

.article-body .read-also {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.article-body .read-also__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    margin-bottom: 0.375rem;
}

.article-body .read-also__link {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.article-body .read-also__link:hover {
    color: #6366f1;
}

/* ==========================================================================
   SHORTCODE STYLES - Download
   ========================================================================== */

.article-body .download-box {
    margin: 2rem 0;
    padding: 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-body .download-box__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 8px;
    color: #6366f1;
}

.article-body .download-box__icon svg {
    width: 24px;
    height: 24px;
    margin: 0;
}

.article-body .download-box__content {
    flex: 1;
}

.article-body .download-box__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.125rem;
}

.article-body .download-box__meta {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

.article-body .download-box__btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: #6366f1;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.article-body .download-box__btn:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* ==========================================================================
   SHORTCODE STYLES - Video
   ========================================================================== */

.article-body .video-embed {
    margin: 2rem 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.article-body .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   SHORTCODE STYLES - Steps
   ========================================================================== */

.article-body .steps {
    margin: 2rem 0;
    counter-reset: step-counter;
}

.article-body .step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    counter-increment: step-counter;
}

.article-body .step__number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
}

.article-body .step__number::before {
    content: counter(step-counter);
}

.article-body .step__content {
    flex: 1;
    padding-top: 0.25rem;
}

.article-body .step__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.375rem;
}

.article-body .step__text {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0;
}

/* ==========================================================================
   SHORTCODE STYLES - Definition
   ========================================================================== */

.article-body .definition {
    margin: 2rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
    border-radius: 8px;
}

.article-body .definition__term {
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.article-body .definition__text {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0;
}

/* ==========================================================================
   SHORTCODE STYLES - Gallery
   ========================================================================== */

.article-body .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.article-body .gallery--3 {
    grid-template-columns: repeat(3, 1fr);
}

.article-body .gallery img {
    margin: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ==========================================================================
   SHORTCODE STYLES - Keyboard
   ========================================================================== */

.article-body kbd {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #1f2937;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 1px 0 #d1d5db;
}

/* ==========================================================================
   SHORTCODE STYLES - Table
   ========================================================================== */

.article-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.article-body th,
.article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-body th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.article-body tr:hover td {
    background: #f9fafb;
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.article-share__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

.article-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.article-share__btn:hover {
    background: #6366f1;
    color: #ffffff;
}

.article-share__btn svg {
    width: 16px;
    height: 16px;
}

.article-share__btn:hover svg {
    fill: #ffffff;
}

/* ==========================================================================
   ARTICLE FOOTER
   ========================================================================== */

.article-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.article-tags__item {
    font-size: 0.8125rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.article-tags__item:hover {
    background: #eef2ff;
    color: #6366f1;
}

/* Author bio */
.article-author {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.article-author__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author__content {
    flex: 1;
}

.article-author__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.article-author__name {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
}

.article-author__name:hover {
    color: #6366f1;
}

.article-author__bio {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

.article-author__social {
    display: flex;
    gap: 0.625rem;
}

.article-author__social-link {
    color: #9ca3af;
    transition: color 0.15s;
}

.article-author__social-link:hover {
    color: #6366f1;
}

.article-author__social-link svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.article-nav__item {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #eaeef3;
    border-radius: 10px;
    transition: all 0.2s;
}

.article-nav__item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.article-nav__item--prev {
    text-align: left;
}

.article-nav__item--next {
    text-align: right;
}

.article-nav__label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.article-nav__item--next .article-nav__label {
    justify-content: flex-end;
}

.article-nav__label svg {
    width: 14px;
    height: 14px;
}

.article-nav__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav__item:hover .article-nav__title {
    color: #6366f1;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
    background: #ffffff;
    border-top: 1px solid #eaeef3;
    padding: 3rem 0 4rem;
}

.related-posts__header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eaeef3;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.related-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-card__image img {
    transform: scale(1.03);
}

.related-card__tag {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: rgba(99, 102, 241, 0.92);
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    transition: background 0.15s;
}

.related-card__tag:hover {
    background: rgba(79, 70, 229, 1);
}

.related-card__content {
    padding: 1rem 1.125rem 1.125rem;
}

.related-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__title a {
    color: inherit;
}

.related-card__title:hover,
.related-card__title a:hover {
    color: #6366f1;
}

.related-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ==========================================================================
   COMMENTS SECTION - Repliable (style sommaire)
   ========================================================================== */

.jn-comments {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* Toggle Header */
.jn-comments__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.jn-comments__toggle:hover,
.jn-comments__toggle:focus {
    background: none;
    outline: none;
}

.jn-comments__toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jn-comments__toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

.jn-comments__toggle-icon svg {
    width: 20px;
    height: 20px;
}

.jn-comments__toggle-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jn-comments__toggle-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.jn-comments__toggle-count {
    font-size: 0.8125rem;
    color: #6b7280;
}

.jn-comments__toggle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.2s;
}

.jn-comments__toggle-arrow svg {
    width: 20px;
    height: 20px;
}

/* État ouvert */
.jn-comments.open .jn-comments__toggle-arrow {
    transform: rotate(180deg);
}

/* Contenu dépliable */
.jn-comments__content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.jn-comments.open .jn-comments__content {
    display: block;
}

/* Liste des commentaires */
.jn-comments__list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.jn-comments__list .comment {
    margin: 0 0 1rem 0;
    padding: 0;
}

.jn-comments__list .comment:last-child {
    margin-bottom: 0;
}

/* Réponses */
.jn-comments__list .children {
    list-style: none;
    margin: 0.875rem 0 0 2.5rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.jn-comments__list .children .comment {
    margin-bottom: 0.875rem;
}

.jn-comments__list .children .comment:last-child {
    margin-bottom: 0;
}

/* Item commentaire */
.comment-item {
    display: flex;
    gap: 0.75rem;
}

.comment-item__avatar {
    flex-shrink: 0;
}

.comment-item__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-item__body {
    flex: 1;
}

.comment-item__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-item__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.comment-item__badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6366f1;
    background: #eef2ff;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.comment-item__date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.comment-item__text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}

.comment-item__text p {
    margin: 0 0 0.5rem 0;
}

.comment-item__text p:last-child {
    margin-bottom: 0;
}

.comment-item__actions {
    margin-top: 0.375rem;
}

.comment-item__actions .comment-reply-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6366f1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
}

.comment-item__actions .comment-reply-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.comment-awaiting-moderation {
    font-size: 0.8125rem;
    color: #f59e0b;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Séparateur */
.jn-comments__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

/* Navigation commentaires */
.jn-comments__nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.jn-comments__nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
}

.jn-comments__nav a:hover {
    text-decoration: underline;
}

/* État vide */
.jn-comments__empty {
    text-align: center;
    padding: 1rem 0;
}

.jn-comments__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: #e5e7eb;
    border-radius: 50%;
    color: #9ca3af;
}

.jn-comments__empty-icon svg {
    width: 24px;
    height: 24px;
}

.jn-comments__empty-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Message fermé */
.jn-comments__closed {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    padding: 1rem 0;
}

/* ==========================================================================
   FORMULAIRE COMMENTAIRES
   ========================================================================== */

.jn-form__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.jn-form__cancel {
    font-weight: 400;
    margin-left: 0.5rem;
}

.jn-form__cancel a {
    color: #ef4444;
    font-size: 0.8125rem;
}

.jn-form__cancel a:hover {
    text-decoration: underline;
}

.jn-form__logged-in {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.jn-form__logged-in a {
    color: #6366f1;
}

.jn-form__logged-in a:hover {
    text-decoration: underline;
}

.jn-form__group {
    margin-bottom: 1rem;
}

.jn-form__textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jn-form__textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.jn-form__textarea::placeholder {
    color: #9ca3af;
}

.jn-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.jn-form__input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jn-form__input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.jn-form__input::placeholder {
    color: #9ca3af;
}

.jn-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jn-form__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jn-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    cursor: pointer;
}

.jn-form__checkbox label {
    font-size: 0.75rem;
    color: #6b7280;
    cursor: pointer;
}

.jn-form__submit {
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: #6366f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.jn-form__submit:hover {
    background: #4f46e5;
}

/* Responsive commentaires */
@media (max-width: 480px) {
    .jn-form__row {
        grid-template-columns: 1fr;
    }

    .jn-comments__list .children {
        margin-left: 1.5rem;
        padding-left: 0.75rem;
    }

    .jn-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .jn-form__cookies {
        order: 2;
    }
    
    .jn-form__checkbox {
        justify-content: center;
    }

    .jn-form__submit {
        order: 1;
        width: 100%;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .article-toc {
        display: none;
    }

    .article-toc-mobile {
        display: block;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .article-header__title {
        font-size: 1.75rem;
    }

    .article-header__excerpt {
        font-size: 1rem;
    }

    .article-header__meta {
        gap: 1rem;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-body .gallery {
        grid-template-columns: 1fr;
    }

    .article-body .gallery--3 {
        grid-template-columns: 1fr;
    }

    .article-body .download-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-header__main {
        padding: 1.5rem 0;
    }

    .article-header__title {
        font-size: 1.5rem;
    }

    .article-header__meta {
        flex-direction: column;
        align-items: center;
    }
    
    .article-header__author-info {
        text-align: center;
    }

    .article-body p,
    .article-body li {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
    }

    .article-body h3 {
        font-size: 1.125rem;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
    }

    .article-author__avatar {
        margin: 0 auto;
    }

    .article-author__social {
        justify-content: center;
    }

    .article-share {
        flex-wrap: wrap;
        justify-content: center;
    }
}