/* Category Business Styles - Responsive Design */

/* Padding intelligent pour header */
body {
    padding-top: 40px;
}

.category-container {
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero Section Business */
.category-hero {
    background: linear-gradient(135deg, #2E86AB 0%, #1a5f7a 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text {
    flex: 1;
}

.category-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F24236;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-image {
    flex: 0 0 400px;
}

.hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Business Expertise Section */
.business-expertise {
    padding: 60px 0;
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 60px;
}

.business-expertise h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2E86AB;
    margin-bottom: 50px;
    font-weight: 700;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 134, 171, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 1.4rem;
    color: #2E86AB;
    margin-bottom: 15px;
    font-weight: 600;
}

.expertise-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Business Comparison Tables */
.business-comparison {
    padding: 60px 0;
    margin-bottom: 60px;
}

.business-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2E86AB;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Tableaux responsive obligatoires */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.responsive-table th {
    background: #2E86AB;
    color: white;
    padding: 20px 15px;
    font-weight: 600;
    text-align: left;
    border-bottom: 3px solid #F24236;
}

.responsive-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.responsive-table tr:nth-child(even) {
    background: #f8fafc;
}

.responsive-table tr:hover {
    background: #e0f2fe;
}

/* Business Calculator */
.business-calculator {
    background: linear-gradient(135deg, #F24236 0%, #d63031 100%);
    color: white;
    padding: 60px 0;
    border-radius: 20px;
    margin-bottom: 60px;
}

.business-calculator h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white;
    font-weight: 700;
}

.calculator-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.calc-btn {
    background: white;
    color: #F24236;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.calc-btn:hover {
    transform: translateY(-2px);
}

.result-display {
    background: rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.result-label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.result-analysis {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Articles Grid */
.category-articles {
    padding: 60px 0;
    margin-bottom: 60px;
}

.category-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2E86AB;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card.featured {
    grid-column: span 2;
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #F24236;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: #2E86AB;
    text-decoration: none;
    font-weight: 600;
}

.article-content h3 a:hover {
    color: #F24236;
}

.article-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.category-summary {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
}

.summary-stats {
    font-size: 1.1rem;
    color: #475569;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 20px;
}

.no-articles h3 {
    font-size: 2rem;
    color: #2E86AB;
    margin-bottom: 20px;
}

.no-articles p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-home-btn {
    background: #2E86AB;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.back-home-btn:hover {
    background: #1a5f7a;
}

/* Business CTA */
.business-cta {
    background: linear-gradient(135deg, #2E86AB 0%, #1a5f7a 100%);
    color: white;
    padding: 80px 0;
    border-radius: 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s;
}

.cta-primary {
    background: #F24236;
    color: white;
}

.cta-secondary {
    background: white;
    color: #2E86AB;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 20px;
    }
    
    .category-container {
        padding-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }
    
    .hero-image {
        flex: none;
        max-width: 100%;
    }
    
    .category-hero {
        padding: 50px 0;
        margin-bottom: 40px;
    }
    
    .category-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card.featured {
        grid-column: span 1;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    /* Tableaux responsive mobile */
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }
    
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }
    
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 15px;
        border-radius: 8px;
        background: white;
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #2E86AB;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .calculator-box {
        gap: 30px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-card.featured {
        grid-column: span 2;
    }
}