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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Pages */
.page {
    display: none;
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* Page d'accueil */
#home-page header {
    text-align: center;
    margin-bottom: 40px;
}

#home-page h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#home-page p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.category-card p {
    color: #718096;
    font-size: 1rem;
}

.sub-categories {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-category-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #667eea;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sub-category-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Styles pour les pages intermédiaires */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.page-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sub-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sub-category-card:hover::before {
    opacity: 1;
}

/* Styles pour la sélection multiple */
.sub-category-card.selected {
    border: 3px solid #ffd700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.sub-category-card .selection-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
    font-weight: bold;
}

.sub-category-card.selected .selection-checkbox {
    background: #8b4513;
    border-color: #8b4513;
    color: white;
}

.sub-category-card.selected .selection-checkbox::after {
    content: '✓';
}

/* Bouton lancer le quiz */
.launch-quiz-btn {
    position: sticky;
    top: 0;
    padding: 50px;
    font-size: 20px;
    bottom: 20px !important;
    background: linear-gradient(135deg, #a0aec0, #718096);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
    margin-top: 20px;

}

.launch-quiz-btn.visible {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

.launch-quiz-btn.visible:hover {
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.launch-quiz-btn.visible:active {
    transform: translateX(-50%) translateY(0) !important;
}

.launch-quiz-btn:disabled {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
    transform: translateX(-50%) !important;
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
}

/* S'assurer qu'il n'y a pas de conflits avec les styles de page */
.page {
    padding-bottom: 80px; /* Espace pour le bouton sticky */
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .launch-quiz-btn {
        bottom: 15px;
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .page {
        padding-bottom: 70px;
    }
}

.sub-category-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0.9;
}

.sub-category-chars {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sub-category-chars:empty {
    display: none;
}

.sub-category-desc {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.sub-category-info {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive pour les pages intermédiaires */
@media (max-width: 768px) {
    .sub-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .sub-category-card {
        padding: 20px;
    }
    
    .sub-category-number {
        font-size: 1.5rem;
    }
    
    .sub-category-chars {
        font-size: 1.4rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .sub-category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sub-category-card {
        min-width: 280px;
        min-height: 125px;
        padding: 15px;
    }
    
    .sub-category-number {
        font-size: 1.3rem;
    }
    
    .sub-category-chars {
        font-size: 1.2rem;
    }
}

/* Page de quiz */
.quiz-header {
    margin-bottom: 40px;
    position: relative;
}

.home-btn {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.home-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.acquired-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.6;
}

.acquired-btn:hover {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
    opacity: 1;
}

.study-btn {
    position: absolute;
    top: 0;
    right: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.6;
}

.study-btn:hover {
    background: #f6ad55;
    border-color: #f6ad55;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 173, 85, 0.3);
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 60px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-info {
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    gap: 10px;
}

.category-name {
    display: none;
}

.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 20px;
}

.card-container {
    margin-bottom: 30px;
}

.word-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.word-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.word-display {
    font-size: 3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.word-answer {
    font-size: 2.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-answer-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.show-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.word-type {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.word-type::before {
    content: "ℹ️";
    font-size: 0.7rem;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    font-size: 2.1rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
}

.option-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.option-btn.correct {
    border-color: #48bb78;
    background: #48bb78;
    color: white;
}

.option-btn.incorrect {
    border-color: #f56565;
    background: #f56565;
    color: white;
}

.quiz-controls {
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.feedback-content {
    display: none;
}

/* Page de résultats */
#results-page header {
    text-align: center;
    margin-bottom: 40px;
}

#results-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.results-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.score-display {
    text-align: center;
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.score-circle span:first-child {
    font-size: 3rem;
    font-weight: 700;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

#score-percentage {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
}

.results-breakdown {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 15px 25px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item.correct {
    border-left: 4px solid #48bb78;
}

.result-item.incorrect {
    border-left: 4px solid #f56565;
}

.result-icon {
    font-size: 1.5rem;
}

.detailed-results {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.detailed-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-container {
    margin-bottom: 15px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    background: #f7fafc;
    border-left: 4px solid #e2e8f0;
}

.result-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.result-detail.correct {
    border-left-color: #48bb78;
    background: #f0fff4;
}

.result-detail.incorrect {
    border-left-color: #f56565;
    background: #fff5f5;
}

.result-word {
    font-weight: 500;
    color: #2d3748;
}

.result-translation {
    color: #718096;
}

.result-status {
    font-weight: 600;
}

.result-status.correct {
    color: #48bb78;
}

.result-status.incorrect {
    color: #f56565;
}

.correct-answer {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(72, 187, 120, 0.15);
    border-radius: 10px;
    border: 2px solid #48bb78;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.correct-label {
    font-size: 0.9rem;
    color: #48bb78;
    font-weight: 700;
    margin-right: 10px;
    display: block;
    margin-bottom: 4px;
}

.correct-text {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
    display: block;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.btn-success:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.btn-danger:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.3);
}

/* Popup de confirmation */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.popup-content p {
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.5;
}

.popup-note {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Actions de la page d'accueil */
.home-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Page des acquis */
.acquired-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.acquired-category {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.acquired-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acquired-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.acquired-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5568;
}

.acquired-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.acquired-words {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.acquired-word {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.acquired-word-text {
    color: #2d3748;
    font-weight: 500;
}

.acquired-word-translation {
    color: #718096;
    font-size: 0.8rem;
}

.acquired-word-actions {
    display: flex;
    gap: 5px;
}

.transfer-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transfer-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.transfer-btn.study-to-acquired {
    background: #48bb78;
}

.transfer-btn.study-to-acquired:hover {
    background: #38a169;
}

.transfer-btn.acquired-to-study {
    background: #f6ad55;
}

.transfer-btn.acquired-to-study:hover {
    background: #ed8936;
}

.acquired-actions {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page {
        padding: 25px;
        border-radius: 15px;
    }
    
    #home-page h1 {
        font-size: 2.2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 25px;
    }
    
    .word-display {
        font-size: 2.2rem;
    }
    
    .word-card {
        padding: 40px 25px;
        min-width: 250px;
    }
    
    .quiz-content {
        padding-top: 10px;
    }
    
    .home-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .acquired-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .study-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        right: 50px;
    }
    
    .progress-bar {
        margin-top: 55px;
    }
    
    .options-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .results-breakdown {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-circle span:first-child {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 20px;
    }
    
    #home-page h1 {
        font-size: 1.8rem;
    }
    
    .word-display {
        font-size: 1.8rem;
    }
    
    .word-card {
        padding: 30px 20px;
        min-width: 200px;
    }
    
    .option-btn {
        padding: 15px;
        font-size: 1rem;
    }
}

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

.page.active {
    animation: fadeIn 0.5s ease-out;
}

.category-card {
    animation: fadeIn 0.5s ease-out;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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