/* Conjugaison — page principale */

.container {
    max-width: 1400px;
        margin: 0 auto;
        background: white;
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    
    .search-section {
        padding: 20px;
        background: #f8f9fa;
    }
    
    .search-box {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        align-items: center;
    }
    
    /* Styles spécifiques à la conjugaison (les styles de recherche sont maintenant dans base_TifKeyBoard_search.html) */
    
    .results-section {
        padding: 20px;
    }
    
    .conjugation-card {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .conjugation-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .verb-word {
        font-size: 2.5em;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .verb-translations {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
    }

    .translation-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .translation-label {
        font-size: 0.8em;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .translation-text {
        font-size: 1.1em;
        font-weight: 500;
        color: #2c3e50;
    }

    .translation-text.french {
        color: #2980b9;
    }

    .translation-text.arabic {
        color: #8e44ad;
        direction: rtl;
    }
    
    .conjugation-source {
        background: #4caf50;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9em;
        font-weight: 600;
    }
    
    .conjugation-source.ircam {
        background: #2196f3;
    }
    
    .conjugation-source.generated {
        background: #ff9800;
    }
    
    .tense-section {
        margin-bottom: 30px;
    }
    
    .tense-title {
        font-size: 1.3em;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 15px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #667eea;
    }
    
    .conjugation-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .conjugation-table th,
    .conjugation-table td {
        padding: 12px;
        text-align: center;
        border: 1px solid #e9ecef;
    }
    
    .conjugation-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .conjugation-table td {
        background: white;
        font-size: 1.1em;
    }
    
    .person-label {
        font-weight: 600;
        color: #667eea;
    }
    
    .loading {
        text-align: center;
        padding: 60px;
        color: #6c757d;
        font-size: 1.2em;
    }
    
    .loading::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .no-results {
        text-align: center;
        padding: 60px;
        color: #6c757d;
        font-size: 1.2em;
    }
    
    .error-message {
        text-align: center;
        padding: 40px;
        background: #fff5f5;
        border: 2px solid #feb2b2;
        border-radius: 10px;
        color: #c53030;
        font-size: 1.2em;
        font-weight: 600;
        margin: 20px 0;
        box-shadow: 0 4px 12px rgba(245, 101, 101, 0.15);
    }
    
    .error-message::before {
        content: "⚠️ ";
        font-size: 1.5em;
        margin-right: 10px;
    }
    
    .error-message {
        background: #ffebee;
        border: 1px solid #f44336;
        border-radius: 8px;
        padding: 20px;
        margin: 20px;
        text-align: center;
        color: #c62828;
    }
    
    .success-message {
        background: #e8f5e8;
        border: 1px solid #4caf50;
        border-radius: 8px;
        padding: 20px;
        margin: 20px;
        text-align: center;
        color: #2e7d32;
    }


    .multilingual-stats-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .multilingual-stats-title .tifinagh {
        display: block;
        font-size: 1.2em;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 8px;
    }

    .multilingual-stats-title .languages {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        font-size: 0.8em;
        color: #7f8c8d;
        font-weight: normal;
    }

    .multilingual-stats-title .french {
        color: #2c3e50;
        font-weight: 500;
    }

    .multilingual-stats-title .arabic {
        color: #2c3e50;
        font-weight: 500;
        direction: rtl;
    }

    .multilingual-stats-title .separator {
        color: #2c3e50;
        font-weight: 300;
    }

    /* Règles responsive pour mobile */
    @media (max-width: 768px) {
        
        .search-section {
            padding: 15px;
        }
        
        .search-box {
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .search-input {
            padding: 12px 15px;
            font-size: 1em;
        }
        
        .search-button {
            padding: 12px 20px;
            font-size: 1em;
            min-width: 120px;
        }
        
        .keyboard-toggle-btn {
            padding: 10px 14px;
            font-size: 1.1em;
            height: 48px;
            min-width: 55px;
        }
        
        .results-section {
            padding: 15px;
        }
        
        .conjugation-table {
            font-size: 0.9em;
        }
        
        .conjugation-table th,
        .conjugation-table td {
            padding: 8px 6px;
        }
    }
    
    @media (max-width: 480px) {
        
        .search-section {
            padding: 12px;
        }
        
        .search-box {
            flex-direction: column;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .search-input-container {
            width: 100%;
        }
        
        .search-input {
            padding: 10px 12px;
            font-size: 0.95em;
        }
        
        .search-button {
            padding: 10px 15px;
            font-size: 0.95em;
            min-width: 100px;
            width: 100%;
        }
        
        .keyboard-toggle-btn {
            padding: 8px 12px;
            font-size: 1em;
            height: 44px;
            min-width: 50px;
        }
        
        .results-section {
            padding: 12px;
        }
        
        .conjugation-table {
            font-size: 0.8em;
        }
        
        .conjugation-table th,
        .conjugation-table td {
            padding: 6px 4px;
        }
    }
