/* Category Emploi - Styles spécialisés */

/* Container principal avec padding intelligent */
.category-container {
    padding-top: 40px; /* Padding intelligent selon header */
    min-height: calc(100vh - 140px);
}

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

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 134, 171, 0.1);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

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

/* Statistiques Emploi */
.employment-stats {
    padding: 60px 0;
    background: #f8f9fa;
}

.employment-stats h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2E86AB;
    margin-bottom: 50px;
}

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

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #F24236;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Guides Emploi */
.employment-guides {
    padding: 80px 0;
}

.employment-guides h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

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

.guide-card:hover {
    transform: translateY(-8px);
}

.guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 100%;
}

.guide-card h3 {
    font-size: 1.5rem;
    color: #2E86AB;
    margin: 20px 20px 15px;
}

.guide-card p {
    color: #666;
    line-height: 1.6;
    margin: 0 20px 20px;
}

.guide-features {
    padding: 0 20px 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature {
    background: #e8f4f8;
    color: #2E86AB;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Calculateur Salaire */
.salary-calculator {
    background: linear-gradient(135deg, #2E86AB 0%, #1a5c7a 100%);
    color: white;
    padding: 80px 0;
}

.salary-calculator h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.salary-calculator > .container > p {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 50px;
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

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

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
}

.calculate-btn {
    background: #F24236;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background 0.3s ease;
}

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

.salary-result {
    margin-top: 30px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.salary-result.hidden {
    display: none;
}

.salary-result h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.salary-range {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
}

/* Secteurs d'Emploi */
.job-sectors {
    padding: 80px 0;
    background: #f8f9fa;
}

.job-sectors h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

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

.responsive-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.responsive-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

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

.sector-info strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.sector-info span {
    color: #666;
    font-size: 0.9rem;
}

.growth {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.growth.high {
    background: #d4edda;
    color: #155724;
}

.growth.medium {
    background: #fff3cd;
    color: #856404;
}

@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 #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
    }
    .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;
    }
}

/* Articles Section */
.category-articles {
    padding: 80px 0;
}

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

.article-count {
    color: #666;
    font-size: 1.5rem;
    font-weight: normal;
}

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

.article-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.article-card.featured {
    border-top: 4px solid #F24236;
}

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

.article-category {
    background: #2E86AB;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
}

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

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

.article-title a:hover {
    color: #2E86AB;
}

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

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-time {
    color: #999;
    font-size: 0.9rem;
}

.read-more {
    color: #F24236;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #F24236 0%, #d63626 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

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

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

.cta-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .category-container {
        padding-top: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .employment-stats h2,
    .employment-guides h2,
    .salary-calculator h2,
    .job-sectors h2,
    .category-articles h2 {
        font-size: 2rem;
    }

    .stats-grid,
    .guides-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calculator-form {
        padding: 25px;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 20px;
    }
}