/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: white;
    color: #333;
    line-height: 1.6;
}

/* Bordure en haut - Style original de Neal.fun */
.border-top {
    background: url('https://neal.fun/printing-money/border.png') repeat-x;
    background-size: auto 50px;
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 50px; /* Espace pour la bordure fixe */
}

/* Sections de métiers */
.job-section {
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.job-section:last-child {
    border-bottom: none;
}

.job-section h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.source-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* Slider personnalisé */
.custom-salary {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.slider-container {
    margin: 15px 0;
}

#salary-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

#salary-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#salary-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

/* Animation inverse pour les pertes */
.dollar-bills.reverse {
    animation-direction: reverse;
}

/* Stream d'argent */
.money-stream {
    width: 100%;
    height: 80px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
}

.dollar-bills {
    display: flex;
    height: 100%;
    animation: scrollMoney linear infinite;
    animation-duration: var(--animation-duration, 10s);
}

/* Billets d'un dollar authentiques avec vraies images */
.dollar-bill {
    width: 155px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    margin-right: 3px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* Animation de défilement vraiment infinie */
@keyframes scrollMoney {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Vitesses ULTRA RALENTIES et TRÈS VISIBLES selon le salaire */
.job-section[data-salary="-0.36"] .dollar-bills {
    --animation-duration: 60s; /* Ultra lent pour les pertes */
}

.job-section[data-salary="7.25"] .dollar-bills {
    --animation-duration: 50s;
}

.job-section[data-salary="13.27"] .dollar-bills {
    --animation-duration: 40s;
}

.job-section[data-salary="28.16"] .dollar-bills {
    --animation-duration: 30s;
}

.job-section[data-salary="67.63"] .dollar-bills {
    --animation-duration: 20s;
}

.job-section[data-salary="2080"] .dollar-bills {
    --animation-duration: 15s; /* Lent - bon salaire */
}

.job-section[data-salary="41667"] .dollar-bills {
    --animation-duration: 8s; /* Plus lent - très bon salaire */
}

.job-section[data-salary="9088"] .dollar-bills {
    --animation-duration: 12s; /* Lent - CEO */
}

.job-section[data-salary="25"] .dollar-bills {
    --animation-duration: 25s; /* Valeur par défaut pour le slider */
}

.job-section[data-salary="91324"] .dollar-bills {
    --animation-duration: 6s; /* Plus lent que CEO - gros revenus */
}

.job-section[data-salary="331055"] .dollar-bills {
    --animation-duration: 4s; /* Ultra lent - énormes revenus */
}

.job-section[data-salary="408653"] .dollar-bills {
    --animation-duration: 3s; /* Maximum lent - dépenses gouvernementales */
}

.job-section[data-salary="865385"] .dollar-bills {
    --animation-duration: 2s; /* Ultra maximum lent - déficit national */
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 50px 0 30px 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-top: 20px;
}

.logo-section h1 {
    font-size: 3rem;
    color: #333;
    margin: 0 0 40px 0;
    font-family: '48X pt Serif', serif;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Contact Info Top */
.contact-info-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info-top .solana-address h4,
.contact-info-top .social-links h4 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
    font-family: 'PT Serif', serif;
}

.contact-info-top .address-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-info-top .address-box input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
}

.contact-info-top .address-box input:focus {
    outline: none;
    border-color: #007bff;
}

.contact-info-top .copy-btn {
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-top .copy-btn:hover {
    background: #0056b3;
}

.contact-info-top .twitter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1da1f2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.contact-info-top .twitter-link:hover {
    background: #0d8bd9;
}

.btn-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* Responsive */
@media (max-width: 768px) {
    .logo-section h1 {
        font-size: 2.5rem;
    }
    
    .btn-logo {
        width: 18px;
        height: 18px;
    }
    
    .contact-info-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info-top .address-box {
        flex-direction: column;
    }
    
    .contact-info-top .address-box input {
        width: 100%;
    }
    
    .job-section {
        padding: 20px 15px;
    }
    
    .job-section h2 {
        font-size: 1.2rem;
    }
    
    .money-stream {
        height: 60px;
    }
    
    .dollar-bill {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .job-section {
        padding: 15px 10px;
    }
    
    .job-section h2 {
        font-size: 1rem;
    }
    
    .money-stream {
        height: 50px;
    }
    
    .dollar-bill {
        width: 100px;
    }
}
