/* Category Digital et Marketing - Styles Spécialisés */

/* Body spacing */
body {
    padding-top: 40px;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2C5282 0%, #1A365D 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

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

.hero-text {
    flex: 1;
}

.hero-section h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

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

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

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Expertise Overview */
.expertise-overview {
    padding: 80px 0;
    background: #F8F9FA;
}

.expertise-overview h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2C5282;
    margin-bottom: 60px;
    font-weight: 700;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-icon {
    margin-bottom: 24px;
}

.card-icon img {
    width: 60px;
    height: 60px;
}

.expertise-card h3 {
    font-size: 1.4em;
    color: #2C5282;
    margin-bottom: 16px;
    font-weight: 600;
}

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

/* Performance Metrics */
.performance-metrics {
    padding: 80px 0;
}

.performance-metrics h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2C5282;
    margin-bottom: 50px;
    font-weight: 700;
}

.metrics-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

/* Tableaux responsive obligatoires */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

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

.metrics-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.metrics-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #E2E8F0;
}

.metrics-table tbody tr:hover {
    background: #F8F9FA;
}

.metrics-table td:first-child {
    font-weight: 600;
    color: #2C5282;
}

.metrics-table td:not(:first-child) {
    text-align: center;
    font-weight: 500;
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background: #F8F9FA;
}

.resources-section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2C5282;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

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

.resource-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-content {
    padding: 30px;
}

.resource-title {
    margin-bottom: 16px;
}

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

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

.resource-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.publish-date {
    color: #888;
    font-size: 0.9em;
}

.read-more a {
    color: #F56565;
    text-decoration: none;
    font-weight: 500;
}

.read-more a:hover {
    color: #E53E3E;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid #E2E8F0;
}

.total-count {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.load-more-btn {
    background: #F56565;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #E53E3E;
}

/* Strategy Calculator */
.strategy-calculator {
    padding: 80px 0;
}

.strategy-calculator h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2C5282;
    margin-bottom: 50px;
    font-weight: 700;
}

.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.calculator-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #F56565;
}

.calculate-btn {
    width: 100%;
    background: #F56565;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    background: #E53E3E;
}

.calculator-results {
    background: #F8F9FA;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #F56565;
}

.calculator-results h3 {
    color: #2C5282;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Trends Analysis */
.trends-analysis {
    padding: 80px 0;
    background: #F8F9FA;
}

.trends-analysis h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2C5282;
    margin-bottom: 60px;
    font-weight: 700;
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trend-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.trend-priority {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
}

.priority-high .trend-priority {
    background: #F56565;
}

.priority-medium .trend-priority {
    background: #F6AD55;
}

.trend-card h3 {
    color: #2C5282;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.trend-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.adoption-rate,
.growth-rate {
    background: #E2E8F0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    color: #2C5282;
}

.trend-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact CTA */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2C5282 0%, #1A365D 100%);
    color: white;
    text-align: center;
}

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

.cta-content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #F56565;
    color: white;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #E53E3E;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Tableaux responsive */
    .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: 10px;
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }

    /* Hero Section Mobile */
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-stats {
        justify-content: center;
        gap: 30px;
    }

    /* Expertise Grid Mobile */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .expertise-card {
        padding: 30px 20px;
    }

    /* Calculator Mobile */
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Trends Grid Mobile */
    .trends-grid {
        grid-template-columns: 1fr;
    }

    /* Resources Grid Mobile */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* Typography Mobile */
    .expertise-overview h2,
    .performance-metrics h2,
    .resources-section h2,
    .strategy-calculator h2,
    .trends-analysis h2 {
        font-size: 2.2em;
    }

    .cta-content h2 {
        font-size: 2em;
    }

    .hero-description {
        font-size: 1.1em;
    }

    /* Padding Mobile */
    .expertise-overview,
    .performance-metrics,
    .resources-section,
    .strategy-calculator,
    .trends-analysis,
    .contact-cta {
        padding: 60px 0;
    }

    .hero-section {
        padding: 60px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablette */
    .hero-content {
        gap: 40px;
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    /* Desktop */
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}