/* Enhanced Simulator Styles */
/* Styles généraux pour les sections de simulateurs */
.simulator-section, .simulator-links-section {
    position: relative;
    overflow: hidden;
}

.simulator-section::before, .simulator-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dark-texture.png');
    opacity: 0.05;
    pointer-events: none;
}

/* Fond animé pour la section des simulateurs */
.simulator-links-section {
    position: relative;
    background: linear-gradient(135deg, #050505, #151515);
}

.simulator-links-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.algorithm-simulator {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8), rgba(26, 26, 26, 0.9));
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.algorithm-simulator:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Animations pour les cartes de simulateurs */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes glowBorder {
    0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 rgba(212, 175, 55, 0.1); }
    50% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.5); }
    100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 rgba(212, 175, 55, 0.1); }
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles améliorés pour les cartes de simulateurs */
.simulator-link-card {
    position: relative;
    background: linear-gradient(145deg, var(--card-bg), var(--card-premium-bg));
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 rgba(212, 175, 55, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease;
    z-index: 1;
    overflow: hidden;
}

.simulator-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.simulator-link-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.simulator-link-card:nth-child(1) {
    animation: pulse 6s infinite ease-in-out;
}

.simulator-link-card:nth-child(2) {
    animation: pulse 6s infinite ease-in-out 3s;
}

.simulator-link-icon {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.5s ease;
    overflow: hidden;
}

.simulator-link-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.simulator-link-card:hover .simulator-link-icon {
    transform: scale(1.1);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.simulator-link-card:hover .simulator-link-icon::after {
    opacity: 1;
}

.simulator-link-card:hover .simulator-link-icon i {
    animation: floatIcon 3s infinite ease-in-out;
}

.simulator-link-card h3 {
    position: relative;
    display: inline-block;
}

.simulator-link-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: width 0.5s ease;
}

.simulator-link-card:hover h3::after {
    width: 80%;
}

.simulator-features {
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.simulator-link-card:hover .simulator-features {
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.05);
}

.simulator-link-card .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #151515, #0a0a0a);
}

.simulator-link-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.7s ease;
}

.simulator-link-card:hover .btn {
    background: linear-gradient(135deg, var(--accent-color), #1a1a1a);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.simulator-link-card:hover .btn::before {
    left: 100%;
}

/* Slider styles */
.slider-container {
    width: 100%;
    margin: 1rem 0;
    position: relative;
}

.investment-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(to right, #111111, #d4af37);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.investment-slider:hover {
    opacity: 1;
}

.investment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.investment-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.investment-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.investment-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 10px;
}

.slider-markers span {
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.7);
}

/* Input group animation */
.input-group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
}

.input-group:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Results animation */
.simulator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.result-item {
    background: rgba(17, 17, 17, 0.5);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 5px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.result-item h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.result-item p {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.result-updated {
    animation: resultUpdate 0.5s ease;
}

@keyframes resultUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #ffffff; }
    100% { transform: scale(1); }
}

/* Risk warning styling */
.risk-warning {
    background: rgba(48, 48, 48, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    border-left: 3px solid var(--warning-color);
    transition: transform 0.3s ease;
}

.risk-warning:hover {
    transform: translateX(5px);
}

.risk-warning p {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.risk-warning i {
    margin-right: 0.5rem;
}

/* Performance selector styling */
.performance-selector {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

.performance-selector select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: rgba(17, 17, 17, 0.8);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23d4af37" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.performance-selector select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.performance-visual {
    margin-top: 1rem;
    height: 10px;
    background-color: rgba(17, 17, 17, 0.5);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.performance-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(to right, #d4af37, #e5c158);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Result icon styling */
.result-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.result-item:hover .result-icon {
    color: rgba(212, 175, 55, 0.8);
    transform: scale(1.2);
}

.result-item {
    position: relative;
}

/* Animations for Algorithme GG simulator */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.7); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

.algorithm-simulator {
    animation: glow 3s infinite alternate;
}

.algorithm-simulator .result-item p {
    position: relative;
    z-index: 1;
}

.algorithm-simulator .result-item p::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(212, 175, 55, 0.5);
    transition: width 0.3s ease;
    z-index: -1;
}

.algorithm-simulator .result-item:hover p::after {
    width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .simulator-results {
        grid-template-columns: 1fr;
    }
    
    .algorithm-simulator {
        padding: 1rem;
    }
}
