@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

/* CRITICAL: Force horizontal text for everything - MUST be first! */
html, body, div, p, h1, h2, h3, h4, h5, h6, ul, li, span, a, strong, em {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
    text-orientation: mixed !important;
    -webkit-tap-highlight-color: transparent;
}

/* Amélioration du touch sur mobile */
button, a, .nav-btn, .menu-item {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Éviter le zoom sur les inputs mobile */
input, select, textarea {
    font-size: 16px;
}

/* Optimisations mobile - Performance */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    canvas {
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Custom Scrollbar - All browsers */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 213, 53, 0.5) rgba(30, 35, 41, 0.8);
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(30, 35, 41, 0.8);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(252, 213, 53, 0.5);
    border-radius: 4px;
    border: 2px solid rgba(30, 35, 41, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 213, 53, 0.7);
}

*::-webkit-scrollbar-thumb:active {
    background: rgba(252, 213, 53, 0.9);
}

body {
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    overflow: hidden;
    height: 100vh;
    writing-mode: horizontal-tb !important;
}

body *,
body *::before,
body *::after {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* Force horizontal text for ALL elements */
*, *::before, *::after {
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    direction: ltr !important;
}

/* Specific fix for Chinese text */
[lang="zh-CN"],
[lang="zh-CN"] *,
.welcome-lang-column[lang="zh-CN"],
.welcome-lang-column[lang="zh-CN"] * {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
    text-combine-upright: none !important;
    text-orientation: mixed !important;
    display: inline-block;
    vertical-align: baseline;
}

/* Force inline display for text elements */
.welcome-lang-column p,
.welcome-lang-column h2,
.welcome-lang-column h3,
.welcome-lang-column li {
    display: block !important;
    width: 100%;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

/* Conteneur horizontal pour le menu et la langue */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1004;
}

/* Bouton langue */
.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(45deg, #1e2329, #2b3139);
    border: 2px solid rgba(252, 213, 53, 0.4);
    border-radius: 10px;
    color: #fcd535;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.language-btn:hover {
    background: linear-gradient(45deg, #2b3139, #3a4149);
    border-color: rgba(252, 213, 53, 0.6);
    box-shadow: 0 6px 20px rgba(252, 213, 53, 0.3);
    transform: translateY(-2px);
}

.language-label {
    font-size: 11px;
}

/* Bouton Menu Principal */
.menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(45deg, #1e2329, #2b3139);
    border: 2px solid rgba(252, 213, 53, 0.4);
    border-radius: 10px;
    color: #fcd535;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-btn:hover {
    background: linear-gradient(45deg, #2b3139, #3a4149);
    border-color: rgba(252, 213, 53, 0.6);
    box-shadow: 0 6px 20px rgba(252, 213, 53, 0.3);
    transform: translateY(-2px);
}

.menu-btn.active {
    background: linear-gradient(45deg, #fcd535, #f3ba2f);
    color: #1e2329;
    border-color: #fcd535;
}

.menu-icon {
    font-size: 16px;
}

.menu-label {
    font-size: 11px;
}

/* Menu Dropdown */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: linear-gradient(135deg, #1e2329 0%, #2b3139 100%);
    border: 2px solid rgba(252, 213, 53, 0.4);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

.dropdown-menu.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Items du menu */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: rgba(30, 35, 41, 0.5);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 8px;
    color: #fcd535;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.2s ease;
    text-align: center;
}

.menu-item:hover {
    background: rgba(252, 213, 53, 0.2);
    border-color: rgba(252, 213, 53, 0.6);
    transform: translateX(5px);
}

.item-label {
    font-size: 12px;
    font-weight: 500;
}

/* Contrôle audio - maintenant dans top-controls */

/* Bouton TURN COLOR en évidence */
.turn-color-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Bouton Toggle UI - maintenant dans top-controls */

.turn-color-btn {
    background: linear-gradient(45deg, #f3ba2f, #ffffff);
    color: #0B0E11;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(243, 186, 47, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.turn-color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 186, 47, 0.6);
    background: linear-gradient(45deg, #ffd700, #ffffff);
}

.turn-color-icon {
    font-size: 16px;
}

.turn-color-label {
    font-family: 'Orbitron', monospace;
}

.toggle-ui-btn {
    background: linear-gradient(45deg, #1e2329, #1e2329);
    color: #fcd535;
    border: 2px solid rgba(252, 213, 53, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(252, 213, 53, 0.2);
    font-family: 'Orbitron', monospace;
}

.toggle-ui-btn:hover {
    background: linear-gradient(45deg, #fcd535, #fcd535);
    color: #1e2329;
    border-color: rgba(252, 213, 53, 0.6);
    box-shadow: 0 0 20px rgba(252, 213, 53, 0.4);
    transform: translateY(-2px);
}

.toggle-ui-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Styles pour le bouton stream */
.stream-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #1e2329;
    border: 2px solid rgba(252, 213, 53, 0.3);
    border-radius: 8px;
    color: #fcd535;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-btn:hover {
    border-color: rgba(252, 213, 53, 0.6);
    box-shadow: 0 0 15px rgba(252, 213, 53, 0.3);
    transform: translateY(-2px);
}

.stream-icon {
    font-size: 14px;
}

.stream-label {
    font-size: 9px;
}

/* Classes pour masquer/afficher l'UI */
.ui-hidden .controls,
.ui-hidden .info,
.ui-hidden .turn-color-container {
    display: none !important;
}

.ui-hidden .top-controls {
    display: flex !important;
}

/* Mode stream */
.stream-mode {
    zoom: 2;
}

.stream-mode .controls,
.stream-mode .info,
.stream-mode .turn-color-container {
    display: none !important;
}

.stream-mode .top-controls {
    display: flex !important;
}

.stream-mode .audio-btn,
.stream-mode .toggle-ui-btn,
.stream-mode .turn-color-btn {
    display: none !important;
}

.stream-mode .stream-btn {
    display: flex !important;
}

/* Styles pour le bouton Token Simulation */
.token-sim-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 10, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    color: #00ff00;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.token-sim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 25px rgba(0, 255, 0, 0.4),
        inset 0 0 25px rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.6);
}

.token-sim-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 20, 40, 0.95) 100%);
    border-color: rgba(0, 255, 0, 0.5);
    color: #00ff00;
}

.token-sim-icon {
    font-size: 14px;
    transition: all 0.3s ease;
}

.token-sim-label {
    font-size: 10px;
    opacity: 0.9;
}

/* Styles pour les contrôles désactivés */
.controls input:disabled,
.controls button:disabled,
.controls select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.controls input:disabled {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(252, 213, 53, 0.1) !important;
}

.controls button:disabled {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(252, 213, 53, 0.1) !important;
    color: rgba(252, 213, 53, 0.3) !important;
}

.controls select:disabled {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(252, 213, 53, 0.1) !important;
    color: rgba(252, 213, 53, 0.3) !important;
}

/* Token simulation status */
.token-sim-status {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 20, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
    animation: pulse-green 2s ease-in-out infinite;
}

/* Token Address Section */
.token-address-section {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 10px;
}

.address-label {
    color: #fcd535;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.token-address-text {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(252, 213, 53, 0.1);
    border-radius: 4px;
    padding: 8px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    word-break: break-all;
    user-select: all;
    cursor: text;
}

/* Market Data */
.market-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.market-item {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 10px;
}

.market-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 6px;
}

.market-label {
    color: #fcd535;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trading Activity */
.trading-activity {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 10px;
}

.activity-title {
    color: #fcd535;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.activity-data {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.activity-item {
    text-align: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(252, 213, 53, 0.1);
    border-radius: 4px;
    min-width: 60px;
}

.activity-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.activity-label {
    color: #fcd535;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Simulation Parameters */
.simulation-params {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 10px;
}

.params-title {
    color: #fcd535;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.param-item {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(252, 213, 53, 0.1);
    border-radius: 4px;
}

.param-label {
    color: #fcd535;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.param-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.param-source {
    color: #fcd535;
    font-size: 8px;
    font-style: italic;
    opacity: 0.7;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
}

.status-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.status-text {
    color: #00ff00;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.status-subtext {
    color: rgba(0, 255, 0, 0.7);
    font-size: 10px;
    opacity: 0.8;
}

/* Styles pour les effets de force */
.force-effect-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.effect-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.effect-group label {
    color: #fcd535;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.color-selector {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 213, 53, 0.3);
    border-radius: 6px;
    color: #fcd535;
    padding: 6px 10px;
    font-size: 11px;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
}

.color-selector:focus {
    outline: none;
    border-color: rgba(252, 213, 53, 0.6);
    box-shadow: 0 0 10px rgba(252, 213, 53, 0.3);
}

.effect-buttons {
    display: flex;
    gap: 10px;
}

.effect-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid rgba(252, 213, 53, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fcd535;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.effect-btn:hover {
    border-color: rgba(252, 213, 53, 0.6);
    box-shadow: 0 0 15px rgba(252, 213, 53, 0.3);
    transform: translateY(-2px);
}

.attraction-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.5);
}

.repulsion-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
}

.effect-icon {
    font-size: 16px;
}

.effect-label {
    font-size: 9px;
}

/* Styles pour les contrôles de force */
.force-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
}

.force-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.force-group label {
    color: #fcd535;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.force-slider {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.force-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #fcd535, #fcd535);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(252, 213, 53, 0.5);
    transition: all 0.3s ease;
}

.force-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(252, 213, 53, 0.8);
}

.force-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #fcd535, #fcd535);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(252, 213, 53, 0.5);
    transition: all 0.3s ease;
}

.force-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(252, 213, 53, 0.8);
}

.force-value {
    color: #fcd535;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    min-width: 50px;
    text-align: right;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(252, 213, 53, 0.3);
}

.audio-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 10, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(252, 213, 53, 0.3);
    border-radius: 8px;
    color: #fcd535;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(252, 213, 53, 0.2),
        inset 0 0 15px rgba(252, 213, 53, 0.1);
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 25px rgba(252, 213, 53, 0.4),
        inset 0 0 25px rgba(252, 213, 53, 0.2);
    border-color: rgba(252, 213, 53, 0.6);
}

.audio-btn.playing {
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.2) 0%, rgba(0, 20, 40, 0.95) 100%);
    border-color: rgba(252, 213, 53, 0.5);
    color: #fcd535;
}

.audio-btn.playing:hover {
    box-shadow: 
        0 5px 25px rgba(252, 213, 53, 0.4),
        inset 0 0 25px rgba(252, 213, 53, 0.2);
}

.audio-icon {
    font-size: 14px;
    transition: all 0.3s ease;
}

.audio-btn.playing .audio-icon {
    color: #fcd535;
}

.audio-label {
    font-size: 10px;
    opacity: 0.9;
}

.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(30, 35, 41, 0.95) 0%, rgba(30, 35, 41, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(252, 213, 53, 0.3);
    box-shadow: 
        0 0 30px rgba(252, 213, 53, 0.2),
        inset 0 0 30px rgba(252, 213, 53, 0.1);
    z-index: 1000;
    width: 380px;
    min-width: 300px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'Orbitron', monospace;
    box-sizing: border-box;
    position: relative;
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

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

.welcome-content {
    background: linear-gradient(135deg, rgba(30, 35, 41, 0.98) 0%, rgba(20, 25, 31, 0.98) 100%);
    border: 2px solid rgba(252, 213, 53, 0.4);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    width: 90%;
    box-shadow: 
        0 0 50px rgba(252, 213, 53, 0.3),
        inset 0 0 30px rgba(252, 213, 53, 0.1);
    position: relative;
    animation: slideIn 0.5s ease;
}

.welcome-bilingual {
    display: flex;
    flex-direction: row;
    gap: 30px;
    position: relative;
    writing-mode: horizontal-tb !important;
    align-items: flex-start;
}

.welcome-bilingual * {
    writing-mode: horizontal-tb !important;
}

.welcome-bilingual::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(252, 213, 53, 0.3) 20%,
        rgba(252, 213, 53, 0.3) 80%,
        transparent
    );
}

.welcome-lang-column {
    padding: 0 10px;
    flex: 1;
    min-width: 0;
}

.welcome-lang-column h2,
.welcome-lang-column h3,
.welcome-lang-column p,
.welcome-lang-column li,
.welcome-lang-column ul,
.welcome-lang-column strong,
.welcome-lang-column span {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    direction: ltr !important;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .welcome-bilingual {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-bilingual::before {
        display: none;
    }
    
    .welcome-content {
        max-width: 500px;
    }
}

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

.welcome-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(252, 213, 53, 0.1);
    border: 1px solid rgba(252, 213, 53, 0.3);
    color: #fcd535;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: 300;
    padding: 0;
    line-height: 1;
}

.welcome-close:hover {
    background: rgba(252, 213, 53, 0.3);
    border-color: rgba(252, 213, 53, 0.5);
    transform: scale(1.1);
}

.welcome-content h2 {
    color: #fcd535;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 15px rgba(252, 213, 53, 0.5);
}

.welcome-description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Exo 2', sans-serif;
}

.welcome-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 213, 53, 0.5), transparent);
    margin: 20px 0;
}

.welcome-content h3 {
    color: #fcd535;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    text-align: center;
}

.welcome-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.welcome-list li {
    color: #ffffff;
    font-size: 13px;
    line-height: 2;
    padding-left: 25px;
    position: relative;
    font-family: 'Exo 2', sans-serif;
}

.welcome-list .bullet {
    position: absolute;
    left: 0;
    color: #fcd535;
    font-weight: bold;
    font-style: normal;
}

.welcome-list strong {
    color: #fcd535;
    font-weight: 600;
}

.welcome-start {
    width: auto;
    min-width: 200px;
    margin: 0 auto;
    display: block;
    background: linear-gradient(45deg, #f3ba2f, #fcd535);
    color: #1e2329;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(252, 213, 53, 0.4);
}

.welcome-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 213, 53, 0.6);
    background: linear-gradient(45deg, #fcd535, #ffffff);
}

.controls h2 {
    color: #fcd535;
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(252, 213, 53, 0.5);
    letter-spacing: 1px;
}

.control-section {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(252, 213, 53, 0.2);
}

.control-section h3 {
    color: #fcd535;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.particle-control {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.force-control {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(252, 213, 53, 0.2);
}

.force-label {
    flex: 1;
    font-size: 10px;
    color: #aaaaaa;
    font-weight: 400;
    min-width: 80px;
}

.force-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff6b6b 0%, #333 50%, #fcd535 100%);
    outline: none;
    margin: 0 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.force-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fcd535, #fcd535);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(252, 213, 53, 0.6);
    transition: all 0.3s ease;
}

.force-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(252, 213, 53, 0.8);
}

.force-value {
    width: 40px;
    text-align: center;
    font-size: 10px;
    color: #fcd535;
    background: rgba(252, 213, 53, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(252, 213, 53, 0.3);
    font-family: 'Orbitron', monospace;
}

.particle-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: block;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.particle-label {
    flex: 1;
    font-size: 12px;
    color: #cccccc;
    font-weight: 400;
}

.slider-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    outline: none;
    margin: 0 10px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fcd535, #fcd535);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(252, 213, 53, 0.6);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(252, 213, 53, 0.8);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #fcd535, #fcd535);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(252, 213, 53, 0.6);
}

.value-display {
    width: 50px;
    text-align: center;
    font-size: 12px;
    color: #fcd535;
    background: rgba(252, 213, 53, 0.1);
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid rgba(252, 213, 53, 0.3);
    font-family: 'Orbitron', monospace;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

button {
    flex: 1;
    padding: 8px 12px;
    min-width: 120px;
    background: linear-gradient(45deg, #fcd535, #fcd535);
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 213, 53, 0.4);
    background: linear-gradient(45deg, #fcd535, #fcd535);
}

.reset-btn {
    background: linear-gradient(45deg, #fcd535, #fcd535);
    color: #1e2329;
    font-weight: 600;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #fcd535, #fcd535);
    box-shadow: 0 5px 20px rgba(252, 213, 53, 0.4);
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(252, 213, 53, 0.2);
}

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

.stat-value {
    color: #fcd535;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(30, 35, 41, 0.95) 0%, rgba(30, 35, 41, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(252, 213, 53, 0.3);
    box-shadow: 
        0 0 30px rgba(252, 213, 53, 0.2),
        inset 0 0 30px rgba(252, 213, 53, 0.1);
    z-index: 1003;
    width: 400px;
    min-width: 300px;
    max-width: 90vw;
    font-size: 13px;
    box-sizing: border-box;
}

.info h3 {
    color: #fcd535;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(252, 213, 53, 0.5);
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
}

.info p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info ul {
    color: #aaaaaa;
    margin-left: 20px;
    margin-bottom: 15px;
}

.info li {
    margin-bottom: 5px;
}

.info strong {
    color: #fcd535;
}

.matrix-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(252, 213, 53, 0.2);
    margin-top: 15px;
}

.color-square {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(252, 213, 53, 0.3);
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.matrix-title {
    color: #fcd535;
    text-align: center;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.matrix-direction {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 10px;
}

.direction-text {
    color: #fcd535;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(252, 213, 53, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
}

th, td {
    border: 1px solid rgba(252, 213, 53, 0.3);
    padding: 4px;
    text-align: center;
}

th {
    background: rgba(252, 213, 53, 0.1);
    color: #fcd535;
    font-weight: 600;
}

td {
    color: #ffffff;
}

.positive {
    color: #fcd535;
}

.negative {
    color: #ff6b6b;
}

.neutral {
    color: #ffffff;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(252, 213, 53, 0.3); }
    50% { box-shadow: 0 0 30px rgba(252, 213, 53, 0.6); }
    100% { box-shadow: 0 0 20px rgba(252, 213, 53, 0.3); }
}

.controls, .info {
    animation: pulse 3s ease-in-out infinite;
}

/* Effet de particules en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(252, 213, 53, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(252, 213, 53, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(252, 213, 53, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(252, 213, 53, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: twinkle 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Styles pour la modal d'information - Thème du site */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

/* Navigation des pages d'information */
.info-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(252, 213, 53, 0.3);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-btn:hover {
    color: #fcd535;
    background: rgba(252, 213, 53, 0.1);
}

.nav-btn.active {
    color: #fcd535;
    background: rgba(252, 213, 53, 0.2);
    border-bottom: 2px solid #fcd535;
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #fcd535, #fcd535);
}

.nav-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.nav-label {
    font-size: 9px;
    opacity: 0.9;
}

/* Pages d'information */
.info-page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 213, 53, 0.5) rgba(30, 35, 41, 0.8);
    position: relative;
}

.info-page::-webkit-scrollbar {
    width: 8px;
}

.info-page::-webkit-scrollbar-track {
    background: rgba(30, 35, 41, 0.8);
    border-radius: 4px;
}

.info-page::-webkit-scrollbar-thumb {
    background: rgba(252, 213, 53, 0.5);
    border-radius: 4px;
    border: 2px solid rgba(30, 35, 41, 0.8);
}

.info-page::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 213, 53, 0.7);
}

.info-page.active {
    display: block;
}

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

/* Grilles de configuration */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.4;
}

.config-item {
    padding: 6px 8px;
    background: rgba(252, 213, 53, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(252, 213, 53, 0.2);
}

/* Grilles de corrélation */
.correlation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.correlation-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    border: 1px solid rgba(252, 213, 53, 0.2);
}

.correlation-item strong {
    color: #fcd535;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.correlation-item p {
    color: #ccc;
    font-size: 12px;
    margin: 0;
}

/* Grilles d'informations du token */
.token-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.token-info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(252, 213, 53, 0.2);
    text-align: center;
}

.token-info-item h4 {
    color: #fcd535;
    margin-bottom: 8px;
    font-size: 14px;
}

.token-address {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: #fcd535;
    background: rgba(252, 213, 53, 0.1);
    padding: 6px;
    border-radius: 4px;
    word-break: break-all;
    margin: 8px 0;
}

.token-value {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fcd535;
    margin: 8px 0;
}

.token-info-item small {
    color: #888;
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

/* Grilles de métriques */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.metric-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(252, 213, 53, 0.2);
    text-align: center;
}

.metric-item strong {
    color: #fcd535;
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.metric-item p {
    color: #ccc;
    font-size: 11px;
    margin: 0;
}

/* Grilles de liens - Layout en grid */
.modal-body .links-grid,
.lang-content .links-grid,
div.links-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .modal-body .links-grid,
    .lang-content .links-grid,
    div.links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .modal-body .links-grid,
    .lang-content .links-grid,
    div.links-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Link Cards */
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(30, 35, 41, 0.6);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 8px;
    padding: 20px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    height: 100%;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(252, 213, 53, 0.6), transparent);
    transition: left 0.4s ease;
}

.link-card:hover {
    background: rgba(30, 35, 41, 0.8);
    border-color: rgba(252, 213, 53, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(252, 213, 53, 0.15);
}

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

.link-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.link-card:hover .link-card-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.link-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-card-title {
    color: rgba(252, 213, 53, 0.95);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.link-card-subtitle {
    color: rgba(252, 213, 53, 0.6);
    font-size: 11px;
    font-weight: 400;
}

.link-card:hover .link-card-title {
    color: #fcd535;
}

.link-card:hover .link-card-subtitle {
    color: rgba(252, 213, 53, 0.8);
}

.link-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.link-text {
    flex: 1;
}

/* Informations de contact */
.contact-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(252, 213, 53, 0.2);
    margin: 15px 0;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 10px;
}

.contact-info ul {
    margin: 0;
    padding-left: 20px;
}

.contact-info li {
    color: #aaa;
    margin-bottom: 4px;
    font-size: 13px;
}

.modal-content {
    background: linear-gradient(135deg, #1e2329 0%, #1e2329 50%, #1e2329 100%);
    margin: 2% auto;
    padding: 0;
    border: 2px solid rgba(252, 213, 53, 0.3);
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    writing-mode: horizontal-tb !important;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0 50px rgba(252, 213, 53, 0.2),
        inset 0 1px 0 rgba(252, 213, 53, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(252, 213, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(252, 213, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(252, 213, 53, 0.04) 0%, transparent 50%);
    border-radius: 8px;
    pointer-events: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e2329 0%, #1e2329 100%);
    color: #fff;
    padding: 20px;
    border-radius: 7px 7px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(252, 213, 53, 0.3);
    position: relative;
    flex-shrink: 0;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #fcd535, #fcd535, #fcd535, #fcd535);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fcd535;
    text-shadow: 0 0 10px rgba(252, 213, 53, 0.3);
}

.close {
    color: #fcd535;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #fcd535;
    background: rgba(252, 213, 53, 0.1);
    text-shadow: 0 0 10px rgba(252, 213, 53, 0.5);
}

.modal-body {
    padding: 30px;
    color: #ccc;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    writing-mode: horizontal-tb !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
}

.modal-body *, 
.modal-body *::before, 
.modal-body *::after {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
}

.lang-content {
    writing-mode: horizontal-tb !important;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.lang-content.hidden-lang {
    display: none !important;
}

.lang-content * {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    box-sizing: border-box;
    max-width: 100%;
}

.lang-content h3,
.lang-content p,
.lang-content ul,
.lang-content div {
    display: block !important;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lang-content ul {
    padding-left: 20px;
}

.lang-content li {
    display: list-item !important;
    width: 100%;
}

.lang-content strong,
.lang-content span,
.lang-content a {
    display: inline !important;
    width: auto !important;
}

.intro-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(252, 213, 53, 0.05);
    border: 1px solid rgba(252, 213, 53, 0.2);
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(252, 213, 53, 0.1),
        inset 0 0 20px rgba(252, 213, 53, 0.05);
}

.intro-text {
    color: #fcd535;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(252, 213, 53, 0.3);
}

.intro-text:last-child {
    margin-bottom: 0;
}

.modal-body h3 {
    color: #fcd535;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(252, 213, 53, 0.3);
    padding-bottom: 8px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.modal-body h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #fcd535, transparent);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #bbb;
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    position: relative;
}

.modal-body li::marker {
    color: #fcd535;
}

.modal-body strong {
    color: #fcd535;
    text-shadow: 0 0 5px rgba(252, 213, 53, 0.3);
}

/* Responsive */
/* ===== RESPONSIVE DESIGN ===== */

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
    .controls {
        width: 320px;
        font-size: 13px;
    }
    
    .stats {
        width: 200px;
    }
    
    .matrix-container {
        padding: 10px;
    }
    
    .force-matrix table {
        font-size: 11px;
    }
}

/* Tablette portrait et mobile landscape (768px) */
@media (max-width: 768px) {
    /* Modal */
    .modal-content {
        width: 95%;
        height: 90vh;
        margin: 2vh auto;
    }
    
    .modal-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    /* Contrôles - cachés sur mobile */
    .controls {
        display: none;
    }
    
    .control-section {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .controls h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Stats - compact, en bas à droite */
    .stats {
        width: auto;
        max-width: 200px;
        right: 10px;
        left: auto;
        transform: none;
        bottom: 10px;
        padding: 10px;
        opacity: 0.9;
        font-size: 11px;
    }
    
    /* Cacher les stats quand UI est cachée */
    .ui-hidden .stats {
        display: none;
    }
    
    .stat-item {
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .stat-value {
        font-size: 13px;
    }
    
    /* Top controls - zone tactile optimisée */
    .top-controls {
        gap: 10px;
        padding: 10px;
    }
    
    .menu-btn,
    .language-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Zone tactile recommandée iOS */
        min-width: 44px;
    }
    
    .dropdown-menu {
        min-width: 150px;
        right: 0;
    }
    
    .menu-item {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Zone tactile optimisée */
    }
    
    /* Matrix - cachée sur mobile */
    .matrix-container {
        display: none;
    }
    
    /* Welcome popup - optimisé pour tablette */
    .welcome-popup {
        padding: 10px;
    }
    
    .welcome-content {
        max-width: 95vw;
        max-height: 90vh;
        padding: 25px 20px;
        overflow-y: auto;
        border-radius: 15px;
    }
    
    .welcome-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .welcome-content h3 {
        font-size: 16px;
        margin: 15px 0 10px 0;
    }
    
    .welcome-content p,
    .welcome-content li {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .welcome-bilingual {
        flex-direction: column;
        gap: 25px;
    }
    
    .welcome-bilingual::before {
        display: none;
    }
    
    .welcome-lang-column {
        width: 100%;
    }
    
    .welcome-close {
        width: 38px;
        height: 38px;
        font-size: 26px;
        top: 12px;
        right: 12px;
    }
    
    .welcome-start {
        padding: 12px 30px;
        font-size: 15px;
        margin-top: 20px;
    }
    
    /* Info nav */
    .info-nav {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        flex: 1 1 30%;
        min-width: 80px;
        padding: 10px 6px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    /* Links */
    .links-grid {
        gap: 15px;
    }
    
    .link-category {
        padding: 15px;
    }
    
    .external-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    /* Modal */
    .modal-content {
        width: 98%;
        height: 95vh;
        margin: 2.5vh auto;
    }
    
    .modal-body {
        padding: 12px;
        font-size: 13px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    /* Contrôles - cachés sur mobile */
    .controls {
        display: none;
    }
    
    .control-section {
        margin-bottom: 12px;
        padding: 10px;
    }
    
    .controls h2 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    /* Stats - compact, en bas à droite */
    .stats {
        width: auto;
        max-width: 180px;
        right: 8px;
        left: auto;
        transform: none;
        padding: 8px;
        font-size: 10px;
    }
    
    .stat-item {
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    /* Top controls - zone tactile optimisée */
    .top-controls {
        gap: 8px;
        padding: 8px;
    }
    
    .menu-btn,
    .language-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .menu-icon {
        font-size: 18px;
    }
    
    .menu-label,
    .language-label {
        font-size: 12px;
    }
    
    .dropdown-menu {
        min-width: 160px;
    }
    
    .menu-item {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    /* Matrix - cachée sur mobile */
    .matrix-container {
        display: none;
    }
    
    /* Welcome popup - optimisé pour mobile */
    .welcome-popup {
        padding: 0;
        align-items: flex-start;
        padding-top: 5vh;
    }
    
    .welcome-content {
        max-width: 92vw;
        max-height: 85vh;
        padding: 15px 12px;
        border-radius: 10px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(252, 213, 53, 0.5) rgba(30, 35, 41, 0.8);
    }
    
    .welcome-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .welcome-content::-webkit-scrollbar-track {
        background: rgba(30, 35, 41, 0.8);
        border-radius: 3px;
    }
    
    .welcome-content::-webkit-scrollbar-thumb {
        background: rgba(252, 213, 53, 0.5);
        border-radius: 3px;
    }
    
    .welcome-content::-webkit-scrollbar-thumb:hover {
        background: rgba(252, 213, 53, 0.7);
    }
    
    .welcome-content h2 {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .welcome-content h3 {
        font-size: 13px;
        margin: 10px 0 6px 0;
    }
    
    .welcome-content p,
    .welcome-content li {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .welcome-content ul {
        padding-left: 16px;
        margin-bottom: 10px;
    }
    
    .welcome-list {
        margin: 8px 0;
    }
    
    .welcome-list .bullet {
        margin-bottom: 4px;
    }
    
    .welcome-bilingual {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .welcome-lang-column {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
    
    .welcome-divider {
        height: 1px;
        width: 70%;
        margin: 10px auto;
        background: linear-gradient(90deg, transparent 0%, rgba(252, 213, 53, 0.4) 50%, transparent 100%);
    }
    
    .welcome-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 10px;
        right: 10px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .welcome-start {
        padding: 10px 20px;
        font-size: 13px;
        margin-top: 12px;
        width: auto;
        max-width: 180px;
        min-height: 40px;
    }
    
    /* Info pages */
    .info-page h3 {
        font-size: 15px;
        margin-top: 18px;
        margin-bottom: 10px;
    }
    
    .info-page p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .info-page li {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    /* Navigation buttons */
    .nav-btn {
        padding: 8px 4px;
    }
    
    .nav-icon {
        font-size: 16px;
    }
    
    .nav-label {
        font-size: 8px;
    }
    
    /* Links */
    .link-category h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .external-link {
        padding: 10px;
        font-size: 12px;
    }
    
    /* Market data */
    .market-data,
    .trading-activity {
        padding: 10px;
    }
    
    .market-item,
    .activity-item {
        padding: 8px;
    }
    
    .market-label,
    .activity-label {
        font-size: 10px;
    }
    
    .market-value,
    .activity-value {
        font-size: 13px;
    }
}

/* Très petit mobile (360px) */
@media (max-width: 360px) {
    .modal-header h2 {
        font-size: 14px;
    }
    
    .controls,
    .stats {
        font-size: 11px;
    }
    
    /* Matrix déjà cachée par media query 480px */
    
    .menu-btn,
    .language-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    /* Welcome popup - très petit écran */
    .welcome-content {
        max-width: 95vw;
        max-height: 80vh;
        padding: 12px 10px;
    }
    
    .welcome-content h2 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .welcome-content h3 {
        font-size: 12px;
        margin: 8px 0 5px 0;
    }
    
    .welcome-content p,
    .welcome-content li {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .welcome-start {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 36px;
    }
}

