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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.hidden {
    display: none !important;
}

/* Section Upload */
.upload-section {
    background: #000000;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(255, 255, 0, 0.3);
    border: 2px solid #ffff00;
}

.upload-section h1 {
    text-align: center;
    color: #ffff00;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #ffff00;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.upload-zone {
    border: 3px dashed #ffff00;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #1a1a1a;
}

.upload-zone:hover,
.upload-zone.dragover {
    background: #2a2a2a;
    border-color: #ffff00;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-zone h2 {
    color: #ffff00;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.upload-zone p {
    color: #ffff00;
    margin: 10px 0;
}

.btn-upload {
    background: #ffff00;
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.btn-upload:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.4);
}

.file-types {
    font-size: 0.9em;
    color: #ffff00;
}

.manual-input {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #ffff00;
}

.manual-input p {
    color: #ffff00;
    margin-bottom: 15px;
    font-size: 1.1em;
}

#text-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #ffff00;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    background: #1a1a1a;
    color: #ffff00;
}

#text-input:focus {
    outline: none;
    border-color: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.btn-primary {
    background: #ffff00;
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.btn-primary:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.4);
}

/* Section Lecteur */
.reader-section {
    background: #000000;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(255, 255, 0, 0.3);
    border: 2px solid #ffff00;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.navigation-info {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffff00;
}

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

.btn-control {
    background: #ffff00;
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-control:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 255, 0, 0.4);
}

.btn-control:active {
    transform: translateY(0);
}

.reader-display {
    background: #000000;
    border-radius: 15px;
    padding: 80px 40px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 5px 20px rgba(255, 255, 0, 0.2);
    border: 3px solid #ffff00;
}

.text-container {
    width: 100%;
    text-align: center;
}

.word {
    color: #ffff00;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(255, 255, 0, 0.5);
    animation: fadeIn 0.2s ease;
    line-height: 1.4;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border-left: 4px solid #ffff00;
}

.instructions p {
    color: #ffff00;
    line-height: 1.8;
    font-size: 1em;
}

.instructions strong {
    color: #ffff00;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-section,
    .reader-section {
        padding: 20px;
    }
    
    .upload-section h1 {
        font-size: 2em;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .reader-display {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .word {
        font-size: 60px !important;
    }
}
