/* Fiscalité Category Styles */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    padding-top: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 60px;
}

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

.hero-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(44, 82, 130, 0.9), rgba(245, 101, 101, 0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F56565;
}

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

/* Introduction Section */
.intro-section {
    padding: 60px 0;
    background: #f8fafc;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: #2C5282;
    margin-bottom: 30px;
    text-align: center;
}

.intro-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: #4a5568;
}

.fiscal-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pillar {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(44, 82, 130, 0.1);
    border-top: 4px solid #2C5282;
}

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

.pillar h3 {
    color: #2C5282;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.pillar p {
    color: #718096;
    line-height: 1.7;
}

/* Calculateur Section */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2C5282, #3182ce);
    color: white;
}

.calculator-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.fiscal-calculator {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    color: #2d3748;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C5282;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.calc-button {
    background: linear-gradient(135deg, #F56565, #e53e3e);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.3);
}

.calculator-results {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #2C5282;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #4a5568;
}

.result-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2C5282;
}

.result-value.highlight {
    color: #F56565;
    font-size: 1.4rem;
}

/* Tableaux Responsive */
.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2C5282;
    margin-bottom: 50px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.responsive-table th {
    background: #2C5282;
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
}

.responsive-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

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

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

@media (max-width: 768px) {
    .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 #e2e8f0;
        margin-bottom: 15px;
        padding: 20px;
        border-radius: 10px;
        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: 15px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #2C5282;
    }
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: #f8fafc;
}

.articles-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2C5282;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

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

.article-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(44, 82, 130, 0.1);
    border-top: 4px solid #F56565;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-category {
    background: linear-gradient(135deg, #2C5282, #3182ce);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-date {
    color: #718096;
    font-size: 0.9rem;
}

.card-title {
    margin-bottom: 15px;
}

.card-title a {
    color: #2C5282;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.card-title a:hover {
    color: #F56565;
}

.card-excerpt {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: #F56565;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.card-link:hover {
    color: #e53e3e;
}

.load-more-section {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: linear-gradient(135deg, #2C5282, #3182ce);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.3);
}

.count {
    opacity: 0.8;
    font-weight: 400;
}

/* Expertise Section */
.expertise-section {
    padding: 80px 0;
    background: white;
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.expertise-text h2 {
    font-size: 2.5rem;
    color: #2C5282;
    margin-bottom: 25px;
}

.expertise-text p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 40px;
}

.expertise-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #F56565, #e53e3e);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #2C5282;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-content p {
    color: #718096;
    margin: 0;
    font-size: 1rem;
}

.expertise-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.15);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2C5282;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(44, 82, 130, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C5282;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    font-size: 1.5rem;
    color: #F56565;
    font-weight: 300;
}

.faq-answer {
    padding: 0 30px 25px 30px;
    color: #4a5568;
    line-height: 1.7;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .fiscal-calculator {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .expertise-image {
        order: -1;
    }
    
    .pillar {
        padding: 30px 20px;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fiscal-calculator {
        max-width: 700px;
    }
    
    .expertise-content {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .container {
        padding: 0 40px;
    }
}