/* ============================================
   ARTICLES & ARCHIVE STYLES
   Agence IA Aix - Dynamic Creative
   ============================================ */

/* ============================================
   ARTICLE SINGLE
   ============================================ */

.article-header {
    padding: 150px 5% 80px;
    background: var(--dark);
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.article-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.article-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--primary);
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.article-date-header,
.article-location {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-tag-header {
    background: var(--gradient-ai);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Article Content */
.article-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 5% 100px;
}

/* Article Hero Image */
.article-hero {
    max-width: 1000px;
    margin: -40px auto 0;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.article-hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Layout 2 colonnes */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

.article-primary {
    min-width: 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-ai);
    border-radius: 2px;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-article {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sidebar-article:hover {
    transform: translateX(5px);
}

.sidebar-article-thumb {
    width: 80px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-article:hover .sidebar-article-thumb img {
    transform: scale(1.1);
}

.sidebar-article-content {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar-article:hover .sidebar-article-title {
    color: var(--primary);
}

.sidebar-article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar CTA */
.sidebar-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(0, 240, 255, 0.2);
}

.sidebar-cta-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.sidebar-cta h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-sidebar-cta {
    display: inline-block;
    background: var(--gradient-ai);
    color: var(--dark);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 50px 0 25px;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 35px 0 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: var(--text);
    font-weight: 600;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary);
}

/* CTA Box */
.article-cta-box {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ai);
}

.article-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.article-cta-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.btn-cta {
    display: inline-block;
    background: var(--gradient-ai);
    color: var(--dark);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* Related Articles */
.related-articles {
    margin-top: 80px;
}

.related-articles h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
}

.related-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-card h4 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h4 a:hover {
    color: var(--primary);
}

.related-card .related-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   ARCHIVE PAGE
   ============================================ */

.archive-header {
    padding: 150px 5% 80px;
    background: var(--dark);
    text-align: center;
    position: relative;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.archive-header-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.archive-header .section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
}

.archive-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.archive-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.archive-stats span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.archive-stats strong {
    color: var(--primary);
    font-weight: 700;
}

/* Filters - Centré */
.archive-filters {
    background: var(--dark-lighter);
    padding: 25px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filters-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.filter-group select {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 180px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Articles Grid */
.archive-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5% 100px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ai);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 25px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.article-card .article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card .article-tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card .article-zone {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: var(--primary);
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card .article-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.article-card .article-link:hover {
    opacity: 0.8;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.no-results button {
    background: var(--gradient-ai);
    color: var(--dark);
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

/* Archive CTA */
.archive-cta {
    background: var(--dark-lighter);
    padding: 100px 5%;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.archive-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.archive-cta p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.btn-cta-large {
    display: inline-block;
    background: var(--gradient-ai);
    color: var(--dark);
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .article-header {
        padding: 120px 5% 60px;
    }
    
    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .article-main {
        padding: 40px 5% 80px;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-cta-box {
        padding: 35px 25px;
    }
    
    .archive-header {
        padding: 120px 5% 60px;
    }
    
    .archive-stats {
        gap: 25px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-group {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
    
    .filter-group select {
        flex: 1;
    }
    
    .btn-reset {
        width: 100%;
        max-width: 350px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card-content {
        padding: 20px 25px 25px;
    }
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
        gap: 35px;
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
}
