
.article-label {
    opacity: 0;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.article-title {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.article-cover-wrapper {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.article-cover-img {
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.05);
}

.article-cover-wrapper:hover .article-cover-img {
    filter: grayscale(0%);
    transform: scale(1);
}


.scroll-line-article {
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}


.article-content {
    font-family: 'Inter', sans-serif;
}

.article-content-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.8s;
}


.prose p:first-of-type::first-letter {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    line-height: 0.8;
    float: left;
    font-weight: 900;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    color: #dc2626;
}

/* Désactiver first-letter si le paragraphe commence par une mention */
.prose p.has-mention-first::first-letter {
    font-size: inherit !important;
    float: none !important;
    font-weight: inherit !important;
    margin: 0 !important;
    line-height: inherit !important;
}

.prose h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin: 3rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #000;
    position: relative;
    padding-left: 2rem;
}

.prose h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc2626;
}

.prose h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 2.5rem 0 1.25rem 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #000;
    position: relative;
    padding-left: 2rem;
}

.prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #dc2626;
}

.prose h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #000;
}

.prose p {
    margin: 1.75rem 0;
    line-height: 1.9;
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 400;
}

.prose ul, .prose ol {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.prose li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: #dc2626;
    transform: rotate(45deg);
}

.prose a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.prose a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #dc2626;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.prose a:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

.prose blockquote {
    border: none;
    background: rgba(220, 38, 38, 0.05);
    padding: 2rem 2rem 2rem 3rem;
    margin: 3rem 0;
    position: relative;
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.7);
}

.prose blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #dc2626;
}

.prose blockquote::after {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #dc2626;
    opacity: 0.3;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.prose code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 0;
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.prose pre {
    background: #000;
    color: #fff;
    padding: 2rem;
    border-radius: 0;
    overflow-x: auto;
    margin: 3rem 0;
    position: relative;
}

.prose pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #dc2626;
}

.prose pre code {
    background: transparent;
    color: #fff;
    border: none;
    padding: 0;
}

.prose hr {
    border: none;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4rem 0;
    position: relative;
}

.prose hr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #dc2626;
    transform: translate(-50%, -50%) rotate(45deg);
}

.prose img {
    width: 100%;
    height: auto;
    margin: 3rem 0;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.prose img:hover {
    filter: grayscale(0%);
}


@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #dc2626;
    z-index: 9999;
    transition: width 0.1s ease;
}


/* Smooth scroll pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Smooth scroll optimisé pour les performances */
* {
    scroll-behavior: smooth;
}

.share-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.3s ease;
}

.share-sidebar.hidden-on-hero {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .share-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .share-sidebar {
        display: none !important;
    }
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #000;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.share-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.1);
}

.share-btn svg,
.share-btn i {
    transition: all 0.3s ease;
}

.share-btn:hover svg,
.share-btn:hover i {
    color: white !important;
    fill: white !important;
}

.share-btn:hover #like-count {
    color: white !important;
}

.share-tooltip {
    position: absolute;
    left: 60px;
    background: #000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-btn:hover .share-tooltip {
    opacity: 1;
}

#like-icon {
    transition: all 0.2s ease;
}

#like-count {
    transition: color 0.3s ease;
}

#like-btn:hover #like-icon {
    transform: scale(1.1);
}

#like-btn:hover #like-count {
    color: #dc2626;
}

.language-selector-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-selector-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.language-selector-btn.active {
    border-color: #dc2626;
    background: #dc2626;
    color: white;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Styles pour le scroll infini */
.infinite-article-section {
    border-top: 8px solid #dc2626;
}

.infinite-article-hero {
    position: relative;
    min-height: 70vh;
}

.infinite-article-hero .gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.infinite-article-content .prose {
    font-size: 1.125rem;
    line-height: 1.8;
}

.infinite-article-content .prose p {
    margin-bottom: 1.5rem;
}

.infinite-article-content .prose img {
    border-radius: 0.5rem;
    margin: 2rem auto;
}

.infinite-article-content .prose h2,
.infinite-article-content .prose h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.scroll-to-next {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


/* Style pour les mentions de personnalités */
.personality-mention {
    color: #dc2626 !important;
    font-weight: 600 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    float: none !important;
    line-height: inherit !important;
    margin: 0 !important;
    cursor: pointer;
    text-decoration: none;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline;
}

.personality-mention::after {
    display: none !important;
}

.personality-mention:hover {
    background: rgba(220, 38, 38, 0.2);
    text-decoration: none;
}

/* Mentions dans les titres */
h1 .personality-mention,
h2 .personality-mention,
h3 .personality-mention,
.prose h1 .personality-mention,
.prose h2 .personality-mention,
.prose h3 .personality-mention,
.article-title .personality-mention {
    font-size: inherit !important;
    font-family: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
    background: rgba(220, 38, 38, 0.15);
    padding: 0 0.2em;
}

.prose .personality-mention {
    font-size: 1.125rem !important;
    font-family: 'Inter', sans-serif !important;
    float: none !important;
    line-height: 1.9 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
}

.prose .personality-mention::after {
    display: none !important;
}

/* Empêcher first-letter sur les mentions */
.prose p:first-of-type .personality-mention:first-child {
    font-size: 1.125rem !important;
    float: none !important;
    margin: 0 !important;
}
