/**
 * Home Page Specific Styles
 * Complément au style.css global - Thème Pastel
 * ============================================
 */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--gradient-hero);
    color: var(--bg-white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--bg-white);
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat {
        padding: 0.75rem 1rem;
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.section-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.section-link i {
    transition: transform var(--transition-fast);
}

.section-link:hover i {
    transform: translateX(3px);
}

/* ============================================
   TOP 3 SECTION
   ============================================ */
.top3-section {
    padding: 4rem 0;
    background: var(--bg-body);
}

.top3-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-base);
}

.top3-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.top3-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.top3-badge.gold {
    background: linear-gradient(135deg, #E8C87C 0%, #F5E4B3 100%);
    color: var(--secondary);
}

.top3-badge.silver {
    background: linear-gradient(135deg, #B8C5CC 0%, #DDE4E9 100%);
    color: var(--secondary);
}

.top3-badge.bronze {
    background: linear-gradient(135deg, #D4A574 0%, #E8C5A0 100%);
    color: var(--secondary);
}

.top3-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-soft) 100%);
    border-radius: var(--radius-md);
}

.top3-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.top3-card:hover .top3-image img {
    transform: scale(1.05);
}

.top3-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.top3-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.top3-name a {
    color: inherit;
    text-decoration: none;
}

.top3-name a:hover {
    color: var(--primary);
}

.top3-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.top3-rating-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.top3-rating-stars {
    color: var(--warning);
    font-size: 0.9rem;
}

.top3-pros {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}

.top3-pros li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.top3-pros li:last-child {
    border-bottom: none;
}

.top3-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.top3-price {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.top3-price span {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.top3-price small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.review-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-base);
}

.review-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-soft) 100%);
}

.review-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.review-card:hover .review-card-image img {
    transform: scale(1.08);
}

.review-card-body {
    padding: 1rem;
    text-align: center;
}

.review-card-brand {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.review-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.review-card-title a {
    color: inherit;
    text-decoration: none;
}

.review-card-title a:hover {
    color: var(--primary);
}

.review-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.review-card-rating .stars {
    color: var(--warning);
    font-size: 0.8rem;
}

.review-card-rating .value {
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   VERSUS SECTION
   ============================================ */
.versus-section {
    padding: 4rem 0;
    background: var(--secondary);
    color: var(--bg-white);
}

.versus-section .section-title {
    color: var(--bg-white);
}

.versus-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.versus-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: 100%;
    transition: all var(--transition-base);
}

.versus-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.versus-products {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.versus-product {
    flex: 1;
    text-align: center;
}

.versus-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-base);
}

.versus-card:hover .versus-product img {
    transform: scale(1.08);
}

.versus-product-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.versus-vs {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    padding: 0 0.75rem;
    background: rgba(232, 165, 152, 0.2);
    border-radius: var(--radius-full);
    line-height: 2;
}

.versus-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.versus-title a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.versus-title a:hover {
    color: var(--accent-light);
}

/* ============================================
   BEST LISTS SECTION
   ============================================ */
.bestlists-section {
    padding: 4rem 0;
    background: var(--bg-body);
}

.bestlist-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-base);
}

.bestlist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.bestlist-card-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bestlist-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.bestlist-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--bg-white);
    flex: 1;
}

.bestlist-card-title a {
    color: inherit;
    text-decoration: none;
}

.bestlist-card-title a:hover {
    opacity: 0.9;
}

.bestlist-card-body {
    padding: 1.25rem;
}

.bestlist-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bestlist-card-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bestlist-card-updated i {
    color: var(--primary);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    height: 160px;
    overflow: hidden;
    background: var(--bg-soft);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--secondary);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-meta img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.blog-card-meta a {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-soft) 100%);
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--secondary);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-value {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.about-value:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.about-value-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.about-value-title {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.about-value-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.team-member {
    text-align: center;
    padding: 1rem;
}

.team-member-avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.team-member:hover .team-member-avatar {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.team-member-name {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.team-member-name a {
    color: inherit;
    text-decoration: none;
}

.team-member-name a:hover {
    color: var(--primary);
}

.team-member-role {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-section {
    padding: 2.5rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.brands-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.brand-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-white);
}

.brand-link small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   CTA BUTTONS (Home specific)
   ============================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: var(--bg-white);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-cta:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 165, 152, 0.4);
}

.btn-cta.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-cta.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* For versus section (dark background) */
.versus-section .btn-cta {
    background: var(--accent);
    border-color: var(--accent);
}

.versus-section .btn-cta:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
    .top3-section,
    .reviews-section,
    .versus-section,
    .bestlists-section,
    .blog-section,
    .about-section,
    .team-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .top3-section,
    .reviews-section,
    .versus-section,
    .bestlists-section,
    .blog-section,
    .about-section,
    .team-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .top3-image {
        height: 150px;
    }
    
    .versus-product img {
        width: 60px;
        height: 60px;
    }
    
    .team-member-avatar {
        width: 70px;
        height: 70px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.top3-card,
.review-card,
.versus-card,
.bestlist-card,
.blog-card,
.about-value {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
