/* Variables et reset */
:root {
    --blue-dark: #0A1A3A;
    --gold: #D4AF37;
    --green-trading: #00C853;
    --red-trading: #FF3D00;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #8C8C8C;
    --gray-dark: #333333;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--white);
    background-color: var(--blue-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

.section-light h2:after {
    background-color: var(--blue-dark);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--blue-dark);
}

.btn-primary:hover {
    background-color: #e6c34d;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 26, 58, 0.95);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(10, 26, 58, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--gold);
}

.logo span {
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a.active {
    color: var(--gold);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(10, 26, 58, 0.85), rgba(10, 26, 58, 0.9)), url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--gold);
}

/* Cards communes */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.intro-card {
    background-color: var(--white);
    color: var(--gray-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.intro-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.intro-card h3 {
    margin-bottom: 1rem;
}

.intro-card .number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 10px 0;
}

/* Page Concepts */
.concepts-details {
    padding: 80px 0;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tab.active {
    background-color: var(--gold);
    color: var(--blue-dark);
}

.tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.concept-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.concept-text h3 {
    margin-bottom: 1.5rem;
}

.concept-chart {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.quiz-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-top: 3rem;
}

.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
}

.quiz-option {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.quiz-option.selected {
    background-color: var(--green-trading);
    color: var(--blue-dark);
    font-weight: 600;
}

.quiz-result {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

/* Page Stratégies */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.strategy-card {
    background-color: var(--white);
    color: var(--gray-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.strategy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.strategy-header {
    padding: 25px;
    background-color: var(--blue-dark);
    color: var(--white);
}

.strategy-header h3 {
    margin-bottom: 0.5rem;
}

.strategy-body {
    padding: 25px;
}

.strategy-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    font-size: 1.2rem;
}

.risk-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.risk-level {
    height: 100%;
    border-radius: 4px;
}

/* Page Outils */
.tools-slider {
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
}

.tools-container {
    display: flex;
    transition: transform 0.5s ease;
}

.tool-card {
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-right: 30px;
    text-align: center;
}

.tool-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

.tool-card h4 {
    margin-bottom: 1rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--gold);
    transform: scale(1.2);
}

.simulator {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-top: 3rem;
}

.simulator-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.control-group input, .control-group select {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
}

.simulator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.result-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.result-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
}

/* Page Formation */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--gold);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--gold);
    border-radius: 50%;
    z-index: 1;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.pricing-card {
    background-color: var(--white);
    color: var(--gray-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.pricing-card.popular {
    border: 2px solid var(--gold);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background-color: var(--gold);
    color: var(--blue-dark);
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background-color: var(--blue-dark);
    color: var(--white);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--green-trading);
    margin-right: 10px;
}

/* Page Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 3rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.newsletter {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-top: 3rem;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
}

.faq {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--gold);
    color: var(--blue-dark);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: #06122e;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Page spécifique styles */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(10, 26, 58, 0.9), rgba(10, 26, 58, 0.95)), url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .strategies-grid,
    .intro-cards,
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .concept-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--blue-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .strategies-grid,
    .intro-cards,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .quiz-options,
    .simulator-controls,
    .simulator-results {
        grid-template-columns: 1fr;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        height: 40vh;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    
    .btn {
        padding: 12px 25px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* ==================== */
/* ÉMULATEUR DE TRADING */
/* ==================== */

.trading-emulator {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-top: 3rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.emulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 15px;
}

.market-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.market-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.market-label {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
}

.market-value.positive {
    color: var(--green-trading);
}

.market-value.negative {
    color: var(--red-trading);
}

.emulator-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .emulator-container {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 15px;
    height: 420px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-controls {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group-full {
    grid-column: span 2;
}

.order-type-selector {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-type {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.order-type.active {
    background-color: var(--gold);
    color: var(--blue-dark);
}

.order-type:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.trading-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--green-trading), #00a844);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sell {
    background: linear-gradient(135deg, var(--red-trading), #cc2900);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover, .btn-sell:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.portfolio-summary {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .portfolio-stats {
        grid-template-columns: 1fr;
    }
}

.portfolio-stat {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    margin: 10px 0;
    letter-spacing: -0.5px;
}

.trade-history {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.history-table th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.trade-type.buy {
    color: var(--green-trading);
    font-weight: 700;
}

.trade-type.sell {
    color: var(--red-trading);
    font-weight: 700;
}

.trade-profit {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
}

.trade-profit.positive {
    color: var(--green-trading);
}

.trade-profit.negative {
    color: var(--red-trading);
}

.reset-emulator {
    margin-top: 25px;
    text-align: center;
}

/* Styles pour le graphique */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeframe-selector {
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeframe-btn {
    padding: 6px 12px;
    background-color: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--gray-medium);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.timeframe-btn.active {
    background-color: var(--gold);
    color: var(--blue-dark);
}

.timeframe-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.chart-title {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
}

/* Styles pour les indicateurs techniques */
.indicators-selector {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.indicator-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.indicator-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.indicator-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--gold);
}

.indicator-checkbox span {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.indicator-checkbox.active {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.indicator-checkbox.active span {
    color: var(--gold);
    font-weight: 600;
}

/* Styles pour les contrôles de trading */
.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-medium);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group input, .control-group select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    transition: var(--transition);
}

.control-group input:focus, .control-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

/* Styles pour la barre de risque */
.risk-bar-container {
    margin-top: 10px;
}

.risk-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.risk-level {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green-trading), #00a844);
    transition: width 0.3s ease;
}

/* Styles pour les boutons de contrôle */
.control-btn {
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}

/* Tooltip pour le graphique */
.chart-tooltip {
    background-color: rgba(10, 26, 58, 0.95);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 10px 15px;
    color: white;
    font-size: 0.85rem;
    pointer-events: none;
    position: absolute;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.tooltip-price {
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
}

.tooltip-time {
    color: var(--gray-medium);
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .emulator-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .market-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .market-item {
        min-width: 100px;
    }
    
    .chart-container {
        height: 350px;
    }
    
    .control-row {
        grid-template-columns: 1fr;
    }
    
    .control-group-full {
        grid-column: span 1;
    }
    
    .trading-buttons {
        grid-template-columns: 1fr;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
    }
    
    .indicators-selector {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 300px;
    }
    
    .market-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .market-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        min-width: auto;
    }
    
    .timeframe-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Styles pour les prix dans le formulaire */
.price-input-group {
    position: relative;
}

.price-input-group span {
    position: absolute;
    right: 12px;
    top: 40px;
    color: var(--gray-medium);
    font-size: 0.85rem;
    font-family: 'Roboto Mono', monospace;
}

/* Animation pour les changements de prix */
@keyframes priceUp {
    0% { background-color: transparent; }
    50% { background-color: rgba(0, 200, 83, 0.2); }
    100% { background-color: transparent; }
}

@keyframes priceDown {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 61, 0, 0.2); }
    100% { background-color: transparent; }
}

.price-up {
    animation: priceUp 1s ease;
}

.price-down {
    animation: priceDown 1s ease;
}

/* Scrollbar personnalisée pour l'historique */
.trade-history::-webkit-scrollbar {
    width: 8px;
}

.trade-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.trade-history::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.trade-history::-webkit-scrollbar-thumb:hover {
    background: #e6c34d;
}

/* Badge pour les positions ouvertes */
.position-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 5px;
}

.position-badge.buy {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--green-trading);
}

.position-badge.sell {
    background-color: rgba(255, 61, 0, 0.2);
    color: var(--red-trading);
}