/* ===========================================
   Simulateur Délai de Carence Chômage - CSS
   Style adapté au thème du site (vert/moderne)
   =========================================== */

.scc-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.scc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.scc-title span {
    color: #22c55e;
}

/* Petit label au-dessus du titre */
.scc-label-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.scc-label-top::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid #22c55e;
    border-radius: 50%;
    display: inline-block;
}

/* Introduction */
.scc-intro {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
}

.scc-intro p {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.scc-intro ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.scc-intro li {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.scc-intro li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* Form */
.scc-form {
    margin-bottom: 30px;
}

.scc-form-group {
    margin-bottom: 24px;
}

.scc-form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1rem;
}

.scc-required {
    color: #ef4444;
}

.scc-form-group input[type="date"],
.scc-form-group input[type="number"],
.scc-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.scc-form-group input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.scc-form-group input::placeholder {
    color: #9ca3af;
}

.scc-form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Checkbox */
.scc-checkbox {
    background: #f9fafb;
    padding: 18px 20px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s;
}

.scc-checkbox:has(input:checked) {
    border-color: #22c55e;
    background: #f0fdf4;
}

.scc-checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
}

.scc-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #22c55e;
    border-radius: 4px;
}

.scc-checkbox small {
    margin-left: 32px;
}

/* Buttons */
.scc-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.scc-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.scc-btn-primary {
    background: #22c55e;
    color: white;
    flex: 1;
}

.scc-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.scc-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.scc-btn-secondary:hover {
    background: #e5e7eb;
}

/* Results */
.scc-results {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.scc-results h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.scc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .scc-container {
        padding: 25px;
    }
    
    .scc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .scc-form-actions {
        flex-direction: column;
    }
}

.scc-result-item {
    background: #f9fafb;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.scc-result-item .scc-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.scc-result-item .scc-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
}

.scc-result-total {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.scc-result-total .scc-value {
    color: #16a34a;
    font-size: 1.25rem;
}

.scc-result-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    padding: 25px;
}

.scc-result-highlight .scc-label {
    color: rgba(255, 255, 255, 0.85);
}

.scc-result-highlight .scc-value {
    color: white;
    font-size: 1.5rem;
}

/* Detail */
.scc-detail {
    margin-top: 25px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #166534;
}

.scc-detail h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #15803d;
    font-weight: 600;
}

.scc-detail ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.scc-detail li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.scc-detail li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* Disclaimer */
.scc-disclaimer {
    margin-top: 25px;
    padding: 18px 20px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #fcd34d;
}

.scc-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

/* CTA Button */
.scc-cta {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 2px solid #22c55e;
    text-align: center;
}

.scc-cta-text {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #166534;
    font-weight: 500;
}

.scc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: #22c55e;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
}

.scc-cta-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    color: white;
}

.scc-cta-btn svg {
    flex-shrink: 0;
}

/* Share buttons */
.scc-share {
    margin-top: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.scc-share-title {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    text-decoration: none;
}

.scc-share-btn svg {
    flex-shrink: 0;
}

.scc-share-facebook {
    background: #1877F2;
}

.scc-share-facebook:hover {
    background: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.scc-share-whatsapp {
    background: #25D366;
}

.scc-share-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.scc-share-email {
    background: #EA4335;
}

.scc-share-email:hover {
    background: #d33426;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}

@media (max-width: 500px) {
    .scc-share-buttons {
        flex-direction: column;
    }
    
    .scc-share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation */
.scc-results {
    animation: sccFadeIn 0.4s ease-out;
}

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