/* ===== SIMULATEUR INDEMNITÉ LICENCIEMENT - CSS ===== */

/* === STYLES GLOBAUX === */

* {
    font-family: 'Roboto', sans-serif !important;
    box-sizing: border-box;
}

/* === CONTENEUR PRINCIPAL === */

.sil-wrapper {
    max-width: 900px;
    margin: 30px auto !important;
    padding: 0 20px;
}

.sil-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.sil-container {
    max-width: 100%;
}

/* === TITRES === */

.sil-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-align: left;
    line-height: 1.3;
}

.sil-highlight {
    color: #d1a594;
}

.sil-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 35px 0;
    text-align: left;
    line-height: 1.5;
}

/* === SECTIONS DU FORMULAIRE === */

.sil-form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
}

.sil-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sil-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #d1a594;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

/* === CHAMPS DE FORMULAIRE === */

.sil-form-group {
    margin-bottom: 20px;
}

.sil-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.sil-required {
    color: #e74c3c;
    margin-left: 3px;
}

.sil-info-icon {
    color: #95a5a6;
    font-size: 0.9rem;
    cursor: help;
    margin-left: 5px;
    transition: color 0.2s;
}

.sil-info-icon:hover {
    color: #d1a594;
}

.sil-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    color: #2c3e50;
    transition: all 0.3s;
    background: white;
}

.sil-input:focus {
    outline: none;
    border-color: #d1a594;
    box-shadow: 0 0 0 3px rgba(209, 165, 148, 0.1);
}

.sil-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sil-input-wrapper .sil-input {
    padding-right: 45px;
}

.sil-input-suffix {
    position: absolute;
    right: 15px;
    color: #95a5a6;
    font-weight: 500;
    pointer-events: none;
}

/* === AFFICHAGE ANCIENNETÉ === */

.sil-anciennete-display,
.sil-salaire-display {
    margin-top: 20px;
}

.sil-anciennete-card,
.sil-salaire-card {
    background: linear-gradient(135deg, #d1a594 0%, #c19584 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(209, 165, 148, 0.3);
}

.sil-anciennete-label,
.sil-salaire-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.sil-anciennete-value,
.sil-salaire-value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* === BOX D'INFORMATION === */

.sil-info-box {
    background: #fff8f5;
    border: 1px solid #f5d9cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.sil-info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.sil-info-box strong {
    color: #d1a594;
}

.sil-info-box div {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* === BOUTON SUBMIT === */

.sil-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #d1a594 0%, #c19584 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(209, 165, 148, 0.3);
}

.sil-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 165, 148, 0.4);
}

.sil-btn-submit:active {
    transform: translateY(0);
}

/* === SECTION RÉSULTAT === */

.sil-resultat-section {
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sil-resultat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #d1a594;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(209, 165, 148, 0.15);
}

.sil-resultat-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 25px 0;
    text-align: center;
}

.sil-resultat-montant {
    background: linear-gradient(135deg, #d1a594 0%, #c19584 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(209, 165, 148, 0.3);
}

.sil-resultat-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.95;
}

.sil-resultat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.sil-resultat-details {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sil-resultat-details p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.sil-resultat-details strong {
    color: #2c3e50;
}

.sil-resultat-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: start;
    margin-bottom: 20px;
}

.sil-resultat-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.sil-resultat-warning p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.sil-resultat-warning strong {
    color: #f57c00;
}

/* === BOUTON RESET === */

.sil-btn-reset {
    width: 100%;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sil-btn-reset:hover {
    background: #f8f9fa;
    border-color: #d1a594;
    color: #d1a594;
}

/* === SECTION INFORMATIONS LÉGALES === */

.sil-info-legale {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    margin-top: 40px;
    overflow: hidden;
}

.sil-info-toggle {
    width: 100%;
    background: white;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s;
}

.sil-info-toggle:hover {
    background: #fafafa;
}

.sil-toggle-icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: #d1a594;
}

.sil-info-content {
    display: none;
    padding: 30px 25px;
}

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

.sil-info-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
}

.sil-info-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.sil-info-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 10px 0;
}

.sil-info-item ul {
    margin: 10px 0;
    padding-left: 20px;
}

.sil-info-item li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 8px 0;
}

.sil-info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.sil-reference a,
.sil-info-item a {
    color: #d1a594;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sil-reference a:hover,
.sil-info-item a:hover {
    color: #b88a79;
    text-decoration: underline;
}

.sil-info-warning {
    background: #fff8f5;
    border-left: 4px solid #d1a594;
    padding: 12px;
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
}

.sil-disclaimer {
    background: #fff8e1;
    border: 2px solid #ffe082;
    border-radius: 12px;
    padding: 20px;
}

.sil-disclaimer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f57c00;
    margin: 0 0 10px 0;
}

.sil-disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .sil-wrapper {
        margin: 15px auto !important;
        padding: 0 15px;
    }

    .sil-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .sil-title {
        font-size: 1.6rem;
    }

    .sil-subtitle {
        font-size: 0.95rem;
    }

    .sil-form-section {
        padding: 20px;
    }

    .sil-resultat-value {
        font-size: 2rem;
    }

    .sil-info-grid {
        grid-template-columns: 1fr;
    }

    .sil-anciennete-card,
    .sil-salaire-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sil-info-toggle {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .sil-info-content {
        padding: 20px 15px;
    }
}

/* === TOOLTIPS === */

.sil-info-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: tooltipFadeIn 0.3s ease-out;
}

.sil-info-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 117%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1001;
    animation: tooltipFadeIn 0.3s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}