/* Convertisseurs Salaires Styles */
.convertisseurs-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.convertisseurs-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.convertisseurs-header h1 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 18px;
    color: #718096;
}

/* Navigation */
.calculators-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.calc-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
}

.calc-nav-btn i {
    font-size: 24px;
    color: #10b981;
}

.calc-nav-btn:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.calc-nav-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.calc-nav-btn.active i {
    color: white;
}

/* Calculateur Card */
.calculator-section {
    display: none;
}

.calculator-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calc-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.calc-header h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.calc-header h2 i {
    color: #10b981;
}

.calc-header p {
    font-size: 16px;
    color: #718096;
}

.calc-body {
    max-width: 900px;
    margin: 0 auto;
}

/* Input Groups */
.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-btn {
    flex: 1;
    min-width: 120px;
}

.radio-btn input[type="radio"] {
    display: none;
}

.radio-btn span {
    display: block;
    padding: 12px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #4a5568;
}

.radio-btn input[type="radio"]:checked + span {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.radio-btn:hover span {
    border-color: #10b981;
}

/* Conversion Container */
.conversion-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
}

.salary-input-box {
    flex: 1;
}

.salary-input-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-with-icon .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

.conversion-arrow {
    font-size: 32px;
    color: #10b981;
    flex-shrink: 0;
}

/* Result Details */
.result-details,
.result-grid {
    margin: 30px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.detail-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 5px;
}

.detail-info {
    font-size: 12px;
    color: #a0aec0;
}

/* Result Cards */
.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.result-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.result-card.highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.result-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-card.highlight .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

.result-card.highlight .result-value {
    color: white;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    margin-top: 30px;
}

.info-box i {
    font-size: 20px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
    margin: 0;
}

/* Dual Input Row */
.dual-input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Range Input */
input[type="range"] {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.range-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.range-value .percentage {
    color: #10b981;
}

/* Comparison SMIC */
.comparison-smic {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.smic-info {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}

#smic_comparison {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

#smic_comparison .positive {
    color: #10b981;
}

#smic_comparison .negative {
    color: #ef4444;
}

/* Regions Comparison */
.regions-comparison {
    margin: 30px 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 30px;
}

.comparison-header h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 8px;
}

.comparison-header p {
    font-size: 15px;
    color: #718096;
}

.regions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.region-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.region-item:hover {
    border-color: #10b981;
    transform: translateX(5px);
}

.region-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.region-icon {
    font-size: 28px;
}

.region-info {
    flex: 1;
}

.region-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.region-indice {
    font-size: 13px;
    color: #718096;
}

.region-salary {
    font-size: 20px;
    font-weight: 700;
}

.region-salary.higher {
    color: #ef4444;
}

.region-salary.lower {
    color: #10b981;
}

.region-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.region-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.region-note {
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

/* Chart Container */
.chart-container {
    height: 400px;
    margin: 40px 0;
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
}

/* Evolution Cards */
.evolution-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.evolution-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.evolution-card.highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.evolution-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.evolution-card.highlight .evolution-label {
    color: rgba(255, 255, 255, 0.9);
}

.evolution-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.evolution-card.highlight .evolution-value {
    color: white;
}

.evolution-info {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.evolution-card.highlight .evolution-info {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .convertisseurs-container {
        padding: 15px;
    }

    .calculator-card {
        padding: 25px 20px;
    }

    .conversion-container {
        flex-direction: column;
        gap: 20px;
    }

    .conversion-arrow {
        transform: rotate(90deg);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .dual-input-row {
        grid-template-columns: 1fr;
    }

    .evolution-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculators-nav {
        gap: 8px;
    }

    .calc-nav-btn {
        padding: 12px 15px;
        font-size: 12px;
    }

    .calc-nav-btn i {
        font-size: 20px;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }
}
