/**
 * BAROMÈTRE EMPLOI - Styles
 */

/* Hero Section */
.barometre-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 4rem 0 5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.barometre-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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");
    pointer-events: none;
}

.barometre-hero .hero-content {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.barometre-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.barometre-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.barometre-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* Global Stats Grid */
.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .global-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .global-stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.stat-total .stat-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card.stat-week .stat-icon { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.stat-evolution .stat-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card.stat-companies .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Sections communes */
.barometre-page section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: #3b82f6;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Chart Container */
.section-trends {
    background: #f8fafc;
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 350px;
}

/* Regions Grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.region-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.region-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.evolution-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.region-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.region-stat .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.region-stat .label {
    font-size: 11px;
    color: #64748b;
    display: block;
}

.region-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.region-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: width 0.6s ease-out;
}

/* Contrats Section */
.section-contrats {
    background: #f8fafc;
}

.contrats-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 800px) {
    .contrats-wrapper {
        grid-template-columns: 1fr;
    }
}

.contrats-chart {
    height: 300px;
}

.contrats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contrat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contrat-info {
    min-width: 140px;
}

.contrat-name {
    font-weight: 600;
    color: #0f172a;
    display: block;
}

.contrat-count {
    font-size: 12px;
    color: #64748b;
}

.contrat-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.contrat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

.contrat-pct {
    font-weight: 700;
    color: #3b82f6;
    min-width: 50px;
    text-align: right;
}

/* Remote Section */
.remote-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .remote-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.remote-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.remote-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: white;
}

.remote-full .remote-icon { background: linear-gradient(135deg, #10b981, #059669); }
.remote-hybrid .remote-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.remote-onsite .remote-icon { background: linear-gradient(135deg, #6b7280, #4b5563); }
.remote-evolution .remote-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.remote-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.remote-label {
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.25rem;
}

.remote-count {
    font-size: 13px;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Metiers Table */
.section-metiers {
    background: #f8fafc;
}

.metiers-table-wrapper {
    overflow-x: auto;
}

.metiers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.metiers-table th {
    background: #0f172a;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metiers-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.metiers-table tr:hover {
    background: #f8fafc;
}

.metiers-table .rank {
    font-weight: 700;
    color: #3b82f6;
    width: 50px;
}

.metiers-table .metier-name {
    font-weight: 600;
    color: #0f172a;
}

.metiers-table .metier-count {
    font-weight: 700;
}

.metiers-table .badge-week {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.metiers-table .metier-salary {
    font-weight: 700;
    color: #10b981;
}

.metiers-table .btn-search {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.metiers-table .btn-search:hover {
    background: #3b82f6;
    color: white;
}

/* Salaires Section */
.salaires-overview {
    text-align: center;
    margin-bottom: 3rem;
}

.salaire-global {
    display: inline-block;
    padding: 2rem 4rem;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: 20px;
    color: white;
}

.salaire-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.salaire-value {
    font-size: 3rem;
    font-weight: 800;
}

.salaire-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title i {
    color: #f59e0b;
}

.top-salaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.top-salaire-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
}

.top-salaire-card .top-rank {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #f59e0b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.top-salaire-card .top-metier {
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.5rem;
    font-size: 14px;
    line-height: 1.4;
}

.top-salaire-card .top-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    margin-top: 0.5rem;
}

.top-salaire-card .top-count {
    font-size: 12px;
    color: #64748b;
}

/* Newsletter CTA */
.section-newsletter-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 3rem 0;
}

.newsletter-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.newsletter-cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.newsletter-cta-text h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.newsletter-cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.btn-white {
    background: white;
    color: #1d4ed8;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
}

/* Dark mode */
[data-theme="dark"] .section-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .section-header p {
    color: #94a3b8;
}

[data-theme="dark"] .region-card,
[data-theme="dark"] .contrat-item,
[data-theme="dark"] .remote-card,
[data-theme="dark"] .metiers-table,
[data-theme="dark"] .top-salaire-card,
[data-theme="dark"] .chart-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .region-header h3,
[data-theme="dark"] .contrat-name,
[data-theme="dark"] .remote-value,
[data-theme="dark"] .remote-label,
[data-theme="dark"] .metiers-table .metier-name,
[data-theme="dark"] .region-stat .value,
[data-theme="dark"] .top-salaire-card .top-metier {
    color: #e2e8f0;
}

[data-theme="dark"] .section-trends,
[data-theme="dark"] .section-contrats,
[data-theme="dark"] .section-metiers {
    background: #0f172a;
}

[data-theme="dark"] .metiers-table td {
    border-color: #334155;
}

[data-theme="dark"] .metiers-table tr:hover {
    background: #334155;
}
