/* ========================================
   PAGE BLOG - STYLE PADELNOW
   ======================================== */

/* HERO SECTION */
.blog-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 48, 163, 0.85) 0%, rgba(29, 30, 122, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff !important;
}

/* COMPTEUR ARTICLES */
.articles-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.author-avatars {
    display: flex;
    margin-left: -10px;
}

.author-avatars img,
.author-avatars .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #3730A3;
    margin-left: -10px;
    object-fit: cover;
}

.articles-count p {
    font-size: 1.1rem;
    font-weight: 400;
}

.articles-count strong {
    font-size: 1.3rem;
    font-weight: 700;
}

/* BARRE DE RECHERCHE HERO */
.search-box-hero {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-box-hero form {
    display: flex;
    width: 100%;
}

.search-box-hero input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-box-hero input::placeholder {
    color: #999;
}

.search-btn {
    padding: 1.5rem 3rem;
    background: #3730A3;
    color: #FACC15;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.search-btn:hover {
    background: #2D1E7A;
    color: #FDE047;
}

/* TAGS POPULAIRES */
.popular-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag-label {
    font-weight: 600;
    font-size: 1rem;
}

.tag-btn {
    background: #FACC15;
    color: #3730A3;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tag-btn:hover {
    background: #FDE047;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.4);
}

/* SECTION CONTENU */
.blog-content-section {
    background: white;
    padding: 4rem 0;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* GRID PRINCIPALE */
.articles-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.articles-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3730A3;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SLIDER D'ARTICLES */
.articles-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ARTICLE CARD */
.article-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.article-card-dark {
    background: #3730A3;
    color: white;
}

.article-card-dark .card-body {
    background: #3730A3;
}

.article-card-dark .card-title,
.article-card-dark .card-excerpt {
    color: white;
}

.card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* IMAGE CARD */
.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-wrapper img,
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #FACC15;
    color: #3730A3;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
}

.category-badge.tests {
    background: #EF4444;
    color: white;
}

/* BODY CARD */
.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3730A3;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-excerpt {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* CTA CARD */
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #3730A3;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.card-cta svg {
    width: 40px;
    height: 40px;
    padding: 10px;
    background: #3730A3;
    color: #FACC15;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.card-cta:hover {
    gap: 1rem;
}

.card-cta:hover svg {
    transform: translateX(3px);
}

.cta-yellow {
    color: #FACC15;
}

.cta-yellow svg {
    background: #FACC15;
    color: #3730A3;
}

/* NAVIGATION SLIDER */
.slider-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    background: white;
    color: #6B7280;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    border-color: #3730A3;
    color: #3730A3;
    background: #F8FAFC;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-progress {
    flex: 1;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 33%;
    height: 100%;
    background: #3730A3;
    transition: width 0.3s ease;
}

/* SIDEBAR */
.blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3730A3;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ARTICLE RÉCENT */
.recent-article {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.recent-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.recent-article img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.recent-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3730A3;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.recent-content time {
    font-size: 0.85rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* RESPONSIVE BLOG */
@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .articles-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-box-hero {
        flex-direction: column;
        border-radius: 1rem;
    }
    
    .search-box-hero input {
        padding: 1rem 1.5rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .popular-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-container {
        padding: 0 1rem;
    }
    
    .articles-slider {
        grid-template-columns: 1fr;
    }
    
    .articles-count {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ok dernier test */