/* Articles Styles - The Ninth Club - Version Noir & Blanc avec Module Ninth Club */

/* Styles for category links */
.category-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.category-link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transform: translateY(-1px);
}

.box-categories .category-link {
    color: #ffffff;
}

.box-categories .category-link:hover {
    color: #cccccc;
}

.article-categories .category-link {
    color: #666666;
}

.article-categories .category-link:hover {
    color: #333333;
}

/* Add subtle underline effect on hover */
.category-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.category-link:hover::after {
    width: 100%;
}

/* NOUVEAU : Container d'intégration avec le module Ninth Club */
.integrated-hero-container {
    max-width: 1400px;
    margin: 40px auto 20px auto;
    display: flex;
    gap: 20px;
    align-items: stretch;
    overflow: visible;
}

/* Ombres individuelles pour chaque module */
.ninth-club-module,
.latest-article-box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* NOUVEAU : Module Ninth Club à gauche */
.ninth-club-module {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ninth-club-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.ninth-club-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ninth-club-text {
    padding: 40px 35px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.ninth-club-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ninth-club-text-content {
    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #cccccc;
    margin: 20px 0;
    position: relative;
    padding: 12px 0;
    text-align: center;
}

.ninth-club-text-content::before {
    content: '"';
    font-size: 50px;
    position: absolute;
    top: -10px;
    left: -20px;
    color: #555555;
    font-weight: 300;
    z-index: 1;
}

.ninth-club-text-content::after {
    content: '"';
    font-size: 50px;
    position: absolute;
    bottom: -30px;
    right: -10px;
    color: #555555;
    font-weight: 300;
    z-index: 1;
}

.ninth-club-signature {
    text-align: center;
    margin-top: 0;
}

.signature-text {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    font-weight: 600;
    color: #cccccc;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transform: rotate(-1deg);
    opacity: 0.95;
}

.signature-line {
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #666666 50%, transparent 100%);
    margin: 6px auto 0;
    opacity: 0.8;
}

/* Styles for latest article box - MODIFIÉ pour s'intégrer */
.latest-article-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

.latest-article-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.box-content {
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.box-text {
    flex: 0 0 calc(100% - 250px);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box-categories {
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 15px;
}

.box-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: white;
}

.box-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 20px;
}

.box-separator {
    color: #666;
}

.box-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0 0 30px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.box-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.box-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    color: white;
    text-decoration: none;
}

.box-social {
    display: flex;
    gap: 15px;
}

.box-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.box-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.box-social a svg {
    fill: white;
}

.box-social a[aria-label*="Email"] svg {
    fill: none;
    stroke: white;
}

.box-image {
    flex: 0 0 250px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: grayscale(100%) contrast(1.1);
}

.latest-article-box:hover .box-image img {
    transform: scale(1.05);
}

/* Styles for articles list */
.articles-list-categories {
    margin: 40px 0;
}

.articles-list-container {
    display: grid;
    gap: 30px;
}

.article-item {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #d0d0d0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease, max-height 0.5s ease;
    display: flex;
    align-items: stretch;
    min-height: 200px;
}

.article-item.article-hidden {
    display: none;
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.article-item.article-hidden.article-shown {
    display: flex;
    opacity: 1;
    max-height: 1000px;
    margin-bottom: 30px;
    animation: slideInFromBottom 0.6s ease forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #666666;
}

.article-image {
    flex: 0 0 250px;
    background: #ddd;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: grayscale(100%) contrast(1.1);
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 30px;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-categories {
    font-size: 11px;
    letter-spacing: 1px;
    color: #666666;
    margin-bottom: 12px;
}

.article-title {
    margin: 0 0 15px 0;
}

.article-title a {
    font-size: 22px;
    line-height: 1.3;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #666666;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
}

.article-separator {
    color: #999;
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 25px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.1);
    color: #333;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 26, 26, 0.2);
}

.article-link:hover {
    background: rgba(26, 26, 26, 0.2);
    transform: translateX(3px);
    color: #1a1a1a;
    text-decoration: none;
}

.article-social {
    display: flex;
    gap: 10px;
}

.article-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-social a:hover {
    background: rgba(26, 26, 26, 0.2);
    color: #333;
    transform: translateY(-2px);
}

.article-social a svg {
    fill: #333;
}

.article-social a[aria-label*="Email"] svg {
    fill: none;
    stroke: #333;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #111111;
    color: white;
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    background: #111111;
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* NOUVEAU : Responsive Design pour l'intégration */
@media (max-width: 1200px) {
    .ninth-club-module {
        flex: 0 0 350px;
    }
    
    .ninth-club-text {
        padding: 35px 30px;
    }
    
    .ninth-club-title {
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .integrated-hero-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .ninth-club-module {
        flex: none;
        min-height: 280px;
    }
    
    .box-content {
        flex-direction: column;
    }
    
    .box-text {
        flex: 1;
        padding: 30px 25px;
    }
    
    .box-title {
        font-size: 24px;
    }
    
    .box-image {
        flex: none;
        height: 200px;
    }
    
    .box-actions {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .ninth-club-text {
        padding: 30px 25px;
    }
    
    .ninth-club-title {
        font-size: 20px;
    }
    
    .ninth-club-text-content {
        font-size: 12px;
        margin: 0 0 15px 0;
    }
    
    .ninth-club-text-content::before,
    .ninth-club-text-content::after {
        font-size: 35px;
    }
    
    .ninth-club-text-content::before {
        top: -6px;
        left: -12px;
    }
    
    .ninth-club-text-content::after {
        bottom: -20px;
        right: -6px;
    }
    
    .signature-text {
        font-size: 18px;
    }
    
    .signature-line {
        width: 70px;
    }
    
    .article-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .article-image {
        flex: none;
        height: 180px;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .article-title a {
        font-size: 18px;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .integrated-hero-container {
        margin: 20px auto;
        gap: 15px;
    }
    
    .ninth-club-module {
        min-height: 250px;
    }
    
    .ninth-club-text {
        padding: 20px 15px;
    }
    
    .ninth-club-title {
        font-size: 18px;
    }
    
    .ninth-club-text-content {
        font-size: 11px;
    }
    
    .signature-text {
        font-size: 16px;
    }
    
    .articles-list-container {
        gap: 20px;
    }
    
    .box-text {
        padding: 25px 20px;
    }
    
    .box-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 20px 15px;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .box-social {
        gap: 10px;
    }
    
    .box-social a {
        width: 35px;
        height: 35px;
    }
    
    .article-social a {
        width: 28px;
        height: 28px;
    }
}

/* NOUVEAU : Animations pour le module Ninth Club */
.ninth-club-text-content {
    animation: fadeInUp 1.5s ease-out;
}

.ninth-club-signature {
    animation: fadeInRight 1.8s ease-out;
}

/* Loading animations */
.latest-article-box,
.article-item:not(.article-hidden) {
    animation: fadeInUp 0.6s ease forwards;
}

.article-item:nth-child(even):not(.article-hidden) {
    animation-delay: 0.1s;
}

.article-item:nth-child(odd):not(.article-hidden) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.box-link:focus,
.article-link:focus,
.load-more-btn:focus,
.category-link:focus {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

.box-social a:focus,
.article-social a:focus {
    outline: 2px solid #666666;
    outline-offset: 2px;
}