/* ============================================
   ARTICLE SPECIFIC STYLES
   Styles spécifiques aux articles de blog
   ============================================ */

/* Protection absolue pour les logos sociaux dans la sidebar - PRIORITÉ MAXIMALE */
.sidebar img,
aside img,
.sidebar .widget img,
aside .widget img,
.sidebar .widget-social-compact img,
aside .widget-social-compact img,
.sidebar .social-links-compact img,
aside .social-links-compact img {
    max-width: 32px !important;
    max-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Exception pour les images qui ne sont PAS des logos sociaux */
.sidebar .widget:not(.widget-social-compact) img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
}

/* Main Content */
.article-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.article-main {
    background: rgba(30, 30, 50, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-main);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-header {
    margin-bottom: 2rem;
    position: static !important;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    position: static !important;
}

.article-featured-image {
    width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--c-rose);
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--c-rose);
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--c-rose);
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content a {
    color: var(--c-rose);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.article-content a:hover {
    color: var(--c-blue);
}

.article-content > img,
.article-content figure img,
.article-content p img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Exclure explicitement les logos sociaux */
.article-content .social-links img {
    max-width: 48px !important;
    max-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.article-content .social-links-compact img {
    max-width: 32px !important;
    max-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* S'assurer que les logos sociaux ne sont pas affectés par les styles des images d'article */
footer .social-links img,
.social-links img {
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

aside .social-links-compact img,
.social-links-compact img {
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: 32px !important;
    max-height: 32px !important;
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    text-align: center;
}

.article-content blockquote {
    border-left: 4px solid var(--c-rose);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.article-content strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.article-content em {
    font-style: italic;
}

/* Rating Section */
.rating-section {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-main);
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.rating-section h3 {
    margin-bottom: 1rem;
    color: var(--c-rose);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-size: 2rem;
}

.star {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
    user-select: none;
}

.star:hover,
.star.active {
    color: #ffd700;
    transform: scale(1.2);
}

.star.filled {
    color: #ffd700;
}

.rating-display {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.rating-display strong {
    color: var(--c-rose);
}

/* Comments Section */
.comments-section {
    background: rgba(30, 30, 50, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-main);
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--c-rose);
}

.comment-form {
    background: rgba(20, 20, 35, 0.6);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
    color: white;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.comment-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background: rgba(20, 20, 35, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--c-rose);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--c-rose);
}

.comment-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.comment-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Share Section */
.share-section {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.share-button {
    padding: 0.8rem 1.5rem;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--c-blue);
}

/* Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.nav-link {
    background: rgba(30, 30, 50, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-link-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.nav-link-title {
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }
}

/* Masquer les widgets catégories et suivez-moi en mobile */
@media (max-width: 768px) {
    .widget-categories,
    .widget-social-compact {
        display: none !important;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-main {
        padding: 2rem 1.5rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }
}

/* Widget social compact */
.widget-social-compact {
    padding: 1.5rem !important;
    overflow: hidden !important;
}

/* Protection absolue pour les logos dans la sidebar */
.sidebar .widget-social-compact .social-links-compact,
aside .widget-social-compact .social-links-compact {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.sidebar .widget-social-compact .social-links-compact a,
aside .widget-social-compact .social-links-compact a {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 48px !important;
    overflow: hidden !important;
    position: relative !important;
}

.sidebar .widget-social-compact .social-links-compact a img,
aside .widget-social-compact .social-links-compact a img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: contain !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-links-compact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 50%;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    text-decoration: none;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.social-links-compact a:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--c-blue);
    transform: translateY(-2px) scale(1.1);
}

.sidebar .widget-social-compact .social-links-compact a:hover,
aside .widget-social-compact .social-links-compact a:hover {
    transform: translateY(-2px) scale(1.1) !important;
}

.sidebar .widget-social-compact .social-links-compact a:hover img,
aside .widget-social-compact .social-links-compact a:hover img {
    transform: translate(-50%, -50%) scale(1.1) !important;
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
}

.social-links-compact img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: contain !important;
    opacity: 0.9;
    transition: var(--transition-fast);
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.social-links-compact a:hover img {
    opacity: 1;
}

.social-links-compact a[title="LinkedIn"] img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Styles pour les iframes et embeds (Facebook, YouTube, etc.) */
.article-content iframe,
.article-content .facebook-embed-container iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 436px;
    margin: 2rem auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.facebook-embed-container {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
    display: block;
}

.facebook-embed-container iframe {
    width: 100% !important;
    height: 436px !important;
    min-height: 436px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none;
    overflow: hidden;
}

/* Responsive pour les iframes */
@media (max-width: 600px) {
    .facebook-embed-container {
        max-width: 100%;
    }
    
    .facebook-embed-container iframe {
        height: auto !important;
        min-height: 300px !important;
    }
}

