/* Calculateur Nombre d'Expression - Styles harmonisés */

.expression-calculator {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expression-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expression-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.expression-label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.expression-name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expression-input {
    width: 240px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
    text-transform: uppercase;
    text-align: center;
}

.expression-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.expression-info-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    border: 1px solid #e2e8f0;
}

.expression-info-box p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.expression-calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.expression-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.expression-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 16px;
    border-left: 4px solid #667eea;
    display: none;
    animation: expressionSlideIn 0.5s ease;
}

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

.expression-result-number {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.expression-result-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.expression-result-description {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.expression-steps {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
}

.expression-steps-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.expression-step {
    color: #718096;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 0.9rem;
}

.expression-correspondence-table {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
}

.expression-table-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.expression-correspondence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

.expression-letter-number {
    padding: 0.3rem;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.expression-error {
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* ⚠️ SUPPRIMÉ TOUS LES STYLES CTA ANCIENS QUI CRÉAIENT LE CONFLIT */
/* Les CTA utilisent maintenant les styles de style-unifie.css */

/* Responsive */
@media (max-width: 600px) {
    .expression-calculator {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .expression-title {
        font-size: 1.6rem;
    }
    
    .expression-name-inputs {
        grid-template-columns: 1fr;
        gap: 0.8rem;

    }
    
    .expression-result-number {
        font-size: 2.5rem;
    }
    
    .expression-correspondence-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        font-size: 0.7rem;
    }
}