/* IMAGES DES SYMBOLES - APPROCHE ALTERNATIVE DANS LE FLUX */
.nombre-header {
    padding: 2rem 2rem 1rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nombre-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Container pour l'image du symbole */
.symbole-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.symbole-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

/* MINI-SYMBOLES IMAGES DANS LE TABLEAU - Comme dans l'analyse détaillée */
.symbole-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.symbole-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.symbole-nom {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
}

/* Suppression des styles SVG inutiles */,40 Q 60,60 50,50 Q 40,60 30,40 Z"/><circle cx="35" cy="45" r="8"/><circle cx="65" cy="45" r="8"/><circle cx="50" cy="65" r="8"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
}

.nombre-bloc:nth-of-type(4) .nombre-header::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad4" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffd700;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffb300;stop-opacity:1" /></radialGradient></defs><circle cx="50" cy="50" r="45" fill="url(%23grad4)" stroke="%23333" stroke-width="2"/><g fill="%23333"><rect x="47" y="20" width="6" height="60" rx="3"/><rect x="20" y="47" width="60" height="6" rx="3"/><rect x="35" y="15" width="30" height="4" rx="2"/><rect x="35" y="81" width="30" height="4" rx="2"/><rect x="15" y="35" width="4" height="30" rx="2"/><rect x="81" y="35" width="4" height="30" rx="2"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    border: 2px solid rgba(51, 51, 51, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
}

.nombre-bloc:nth-of-type(5) .nombre-header::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad5" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffd700;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffb300;stop-opacity:1" /></radialGradient></defs><circle cx="50" cy="50" r="45" fill="url(%23grad5)" stroke="%23333" stroke-width="2"/><g fill="none" stroke="%23333" stroke-width="2"><circle cx="50" cy="50" r="20"/><circle cx="50" cy="30" r="6"/><circle cx="67" cy="40" r="6"/><circle cx="67" cy="60" r="6"/><circle cx="50" cy="70" r="6"/><circle cx="33" cy="60" r="6"/><circle cx="33" cy="40" r="6"/><circle cx="50" cy="50" r="3" fill="%23333"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    border: 2px solid rgba(51, 51, 51, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
}/* ========================================
   🎨 STYLES CONSOLIDÉS - NUMÉROLOGIE COMPLÈTE
   Intégration harmonieuse du calculateur et des styles existants
   ======================================== */

/* ========================================
   🎨 VARIABLES CSS GLOBALES
   ======================================== */
:root {
    /* Couleurs principales existantes */
    --primary-purple: #8b5cf6;
    --secondary-purple: #7c3aed;
    --light-purple: #a78bfa;
    
    /* Variables pour les nombres personnels - Couleurs modifiées selon demande */
    --hereditaire-primary: #48bb78;
    --hereditaire-secondary: #38a169;
    --hereditaire-light: #68d391;
    --hereditaire-bg: rgba(72, 187, 120, 0.1);
    
    --actif-primary: #48bb78;
    --actif-secondary: #38a169;
    --actif-light: #68d391;
    --actif-bg: rgba(72, 187, 120, 0.1);
    
    --expression-primary: #ed64a6;
    --expression-secondary: #d53f8c;
    --expression-light: #f687b3;
    --expression-bg: rgba(237, 100, 166, 0.1);
    
    --intime-primary: #ffd700;
    --intime-secondary: #ffb300;
    --intime-light: #ffe55c;
    --intime-bg: rgba(255, 215, 0, 0.1);
    
    --realisation-primary: #ffd700;
    --realisation-secondary: #ffb300;
    --realisation-light: #ffe55c;
    --realisation-bg: rgba(255, 215, 0, 0.1);
    
    /* Trois Mondes */
    --monde-spirituel: #f59e0b;
    --monde-psychique: #ed64a6;
    --monde-physique: #06b6d4;
    
    /* Variables pour harmonisation */
    --border-color: rgba(139, 92, 246, 0.1);
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(139, 92, 246, 0.1);
    --transition-smooth: all 0.3s ease;
}

/* ========================================
   🧮 CALCULATEUR DES 5 NOMBRES PERSONNELS
   ======================================== */

.calculateur-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.calculateur-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculateur-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.calculateur-subtitle {
    font-size: 1.1rem;
    color: var(--primary-purple);
    font-weight: 500;
}

/* FORMULAIRE CALCULATEUR */
.form-group-calcul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-wrapper-calcul {
    position: relative;
}

.input-wrapper-calcul input {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    background: white;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.input-wrapper-calcul input:focus {
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.input-wrapper-calcul label {
    position: absolute;
    top: -10px;
    left: 16px;
    background: white;
    padding: 0 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-purple);
    letter-spacing: 0.025em;
}

.calculate-button-main {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: 2rem 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.calculate-button-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.reset-calculator-btn {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid rgba(139, 92, 246, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    margin-top: 2rem;
    font-size: 1rem;
}

.reset-calculator-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

/* RÉSULTATS CALCULATEUR */
.calculateur-results {
    display: none;
    animation: fadeInUp 0.8s ease-out;
}


/* CROIX DES 5 NOMBRES */
.croix-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin: 2rem auto; /* Changé: ajout de 'auto' pour centrer */
    max-width: 800px; /* Ajouté: limite la largeur */
    border: 2px solid var(--border-color);
}

.croix-container h4 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
}

.croix-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.nombre-position {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.nombre-position:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

/* POSITIONS SPÉCIFIQUES DANS LA CROIX - Or royal pour Intime et Réalisation */
.position-intime { 
    grid-column: 2; 
    grid-row: 1;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    font-weight: 700;
}
.position-hereditaire { 
    grid-column: 1; 
    grid-row: 2;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}
.position-expression { 
    grid-column: 2; 
    grid-row: 2;
    background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%);
    color: white;
    transform: scale(1.1);
}
.position-actif { 
    grid-column: 3; 
    grid-row: 2;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}
.position-realisation { 
    grid-column: 2; 
    grid-row: 3;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    font-weight: 700;
}

.nombre-value {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
    color: inherit;
}

.nombre-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    color: inherit;
}

.nombre-description {
    font-size: 0.75rem;
    opacity: 0.8;
    color: inherit;
}

/* TABLEAUX DÉTAILLÉS */
.resultats-tableau {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.resultats-tableau h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tableau-nombres {
    display: grid;
    gap: 0.5rem;
}

.tableau-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr 2fr;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, #667eea 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tableau-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr 2fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    align-items: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.tableau-row:hover {
    background: #f1f5f9;
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.col-nom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.nombre-icon {
    font-size: 1.2rem;
}

.valeur-display, .source-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-align: center;
}

.symbole-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.symbole-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.symbole-nom {
    font-size: 0.9rem;
    font-weight: 500;
}

/* BADGES TOPOLOGIQUES */
.topo-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.topo-badge.spirituel { background: linear-gradient(135deg, var(--monde-spirituel), #fbbf24); color: white; }
.topo-badge.psychique { background: linear-gradient(135deg, var(--monde-psychique), #be185d); color: white; }
.topo-badge.physique { background: linear-gradient(135deg, var(--monde-physique), #0891b2); color: white; }

/* ANALYSE DÉTAILLÉE */
.analyse-grid-complete {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.analyse-card-large {
    grid-row: span 1;
}

.analyse-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.analyse-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* MINI CROIX */
.mini-croix {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0.25rem;
    max-width: 150px;
    margin: 1rem auto 2rem;
}

.mini-position {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.mini-intime { 
    grid-column: 2; 
    grid-row: 1; 
    background: linear-gradient(135deg, var(--intime-primary), var(--intime-secondary)); 
    color: white; 
}
.mini-hereditaire { 
    grid-column: 1; 
    grid-row: 2; 
    background: linear-gradient(135deg, var(--hereditaire-primary), var(--hereditaire-secondary)); 
    color: white; 
}
.mini-expression { 
    grid-column: 2; 
    grid-row: 2; 
    background: linear-gradient(135deg, var(--expression-primary), var(--expression-secondary)); 
    color: white; 
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(237, 100, 166, 0.3);
}
.mini-actif { 
    grid-column: 3; 
    grid-row: 2; 
    background: linear-gradient(135deg, var(--actif-primary), var(--actif-secondary)); 
    color: white; 
}
.mini-realisation { 
    grid-column: 2; 
    grid-row: 3; 
    background: linear-gradient(135deg, var(--realisation-primary), var(--realisation-secondary)); 
    color: white; 
}

.mini-position:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* IMAGES DANS LES DÉTAILS DES SYMBOLES - Section analyse */
.symbole-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.symbole-detail-header .symbole-icon {
    font-size: 1.3rem;
}

/* Image du symbole dans le header des détails */
.symbole-detail-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 0.5rem;
}

.symbole-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    flex: 1;
}

.symbole-analyse {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analyse-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.analyse-ligne:last-child {
    border-bottom: none;
}

.analyse-ligne strong {
    color: #4b5563;
    font-size: 0.8rem;
    min-width: 45%;
}

.corps-value, .energie-value, .relationnel-value, .decision-value {
    font-weight: 600;
    color: var(--primary-purple);
    text-align: right;
    font-size: 0.8rem;
}

.monde-value {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.monde-value.spirituel { 
    background: linear-gradient(135deg, var(--monde-spirituel), #fbbf24); 
    color: white; 
}
.monde-value.psychique { 
    background: linear-gradient(135deg, var(--monde-psychique), #be185d); 
    color: white; 
}
.monde-value.physique { 
    background: linear-gradient(135deg, var(--monde-physique), #0891b2); 
    color: white; 
}

/* RÉPARTITION PAR MONDES */
.monde-stat {
    margin-bottom: 1rem;
}

.monde-nom {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}

.monde-count {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.monde-barre {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.monde-fill {
    height: 100%;
    transition: width 1s ease;
}

.monde-fill.spirituel { background: linear-gradient(135deg, var(--monde-spirituel), #fbbf24); }
.monde-fill.psychique { background: linear-gradient(135deg, var(--monde-psychique), #be185d); }
.monde-fill.physique { background: linear-gradient(135deg, var(--monde-physique), #0891b2); }

/* TENDANCES */
.tendances-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.tendances-section h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tendance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tendance-icon {
    font-size: 1.1rem;
}

.tendance-text {
    font-weight: 500;
    color: #374151;
}

/* ÉTAPES DE CALCUL */
.etapes-calcul {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.etapes-calcul h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.etape-item {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary-purple);
}

/* ========================================
   📊 STYLES EXISTANTS CONSERVÉS
   ======================================== */

/* TABLEAU ALPHANUMÉRIQUE */
.tableau-final {
    text-align: center;
    margin: 2rem 0;
    background: rgba(248, 250, 252, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.alphabet-final {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    margin: 0.5rem 0;
    justify-items: center;
}

.lettre {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 6px;
    color: #4a5568;
    transition: var(--transition-smooth);
}

/* BLOCS NOMBRES PERSONNELS */
.nombres-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.nombre-bloc {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.nombre-bloc:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.nombre-header {
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nombre-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nombre-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}
.nombre-badge2 {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}


.nombre-content {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: flex-start;
}

.nombre-image {
    flex: 0 0 auto;
    text-align: center;
}

.nombre-image img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    border: 4px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
}

.nombre-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.nombre-summary {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.nombre-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.05rem;
}

.nombre-calcul {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 5px solid;
    font-style: normal;
    color: #495057;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* COULEURS SPÉCIFIQUES PAR NOMBRE */
.nombre-bloc:nth-of-type(1) {
    border-color: var(--hereditaire-light);
}
.nombre-bloc:nth-of-type(1) .nombre-header {
    background: linear-gradient(135deg, var(--hereditaire-primary) 0%, var(--hereditaire-secondary) 100%);
}
.nombre-bloc:nth-of-type(1) .nombre-summary {
    color: var(--hereditaire-primary);
}
.nombre-bloc:nth-of-type(1) .nombre-calcul {
    background: var(--hereditaire-bg);
    border-left-color: var(--hereditaire-primary);
}
.nombre-bloc:nth-of-type(1) .nombre-image img {
    border-color: var(--hereditaire-light);
}

.nombre-bloc:nth-of-type(2) {
    border-color: var(--actif-light);
}
.nombre-bloc:nth-of-type(2) .nombre-header {
    background: linear-gradient(135deg, var(--actif-primary) 0%, var(--actif-secondary) 100%);
}
.nombre-bloc:nth-of-type(2) .nombre-summary {
    color: var(--actif-primary);
}
.nombre-bloc:nth-of-type(2) .nombre-calcul {
    background: var(--actif-bg);
    border-left-color: var(--actif-primary);
}
.nombre-bloc:nth-of-type(2) .nombre-image img {
    border-color: var(--actif-light);
}

.nombre-bloc:nth-of-type(3) {
    border-color: var(--expression-light);
}
.nombre-bloc:nth-of-type(3) .nombre-header {
    background: linear-gradient(135deg, var(--expression-primary) 0%, var(--expression-secondary) 100%);
}
.nombre-bloc:nth-of-type(3) .nombre-summary {
    color: var(--expression-primary);
}
.nombre-bloc:nth-of-type(3) .nombre-calcul {
    background: var(--expression-bg);
    border-left-color: var(--expression-primary);
}
.nombre-bloc:nth-of-type(3) .nombre-image img {
    border-color: var(--expression-light);
}

.nombre-bloc:nth-of-type(4) {
    border-color: var(--intime-light);
}
.nombre-bloc:nth-of-type(4) .nombre-header {
    background: linear-gradient(135deg, var(--intime-primary) 0%, var(--intime-secondary) 100%);
}
.nombre-bloc:nth-of-type(4) .nombre-summary {
    color: var(--intime-primary);
}
.nombre-bloc:nth-of-type(4) .nombre-calcul {
    background: var(--intime-bg);
    border-left-color: var(--intime-primary);
}
.nombre-bloc:nth-of-type(4) .nombre-image img {
    border-color: var(--intime-light);
}

.nombre-bloc:nth-of-type(5) {
    border-color: var(--realisation-light);
}
.nombre-bloc:nth-of-type(5) .nombre-header {
    background: linear-gradient(135deg, var(--realisation-primary) 0%, var(--realisation-secondary) 100%);
}
.nombre-bloc:nth-of-type(5) .nombre-summary {
    color: var(--realisation-primary);
}
.nombre-bloc:nth-of-type(5) .nombre-calcul {
    background: var(--realisation-bg);
    border-left-color: var(--realisation-primary);
}
.nombre-bloc:nth-of-type(5) .nombre-image img {
    border-color: var(--realisation-light);
}

/* TABLEAU H.A.I.R.E */
.haire-container-compact {
    margin: 2rem 0;
    text-align: center;
    background: rgba(248, 250, 252, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.haire-grid-container-compact {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.haire-grid-compact {
    display: grid;
    grid-template-columns: repeat(6, 40px);
    grid-template-rows: repeat(6, 40px);
    gap: 4px;
}

.haire-grid-compact .cell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    border: 2px solid #e2e8f0;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.haire-legend-compact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
}

.legend-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Types de cellules HAIRE */
.header {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #cbd5e0;
    font-weight: 700;
}

.empty {
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.diagonale {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid #5a67d8;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 700;
}

.imitation {
    background: #3182ce;
    color: white;
    border: 2px solid #2c5aa0;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.creation {
    background: #e53e3e;
    color: white;
    border: 2px solid #c53030;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.pragmatisme {
    background: #38a169;
    color: white;
    border: 2px solid #2f855a;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

/* Badges de combinaisons */
.combinations {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.combo-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    border: 2px solid;
    transition: var(--transition-smooth);
}

.combo-badge:hover {
    transform: scale(1.1);
}

.combo-badge.imitation {
    background: #3182ce;
    border-color: #2c5aa0;
}

.combo-badge.creation {
    background: #e53e3e;
    border-color: #c53030;
}

.combo-badge.pragmatisme {
    background: #38a169;
    border-color: #2f855a;
}

/* CTA ET ÉLÉMENTS FONCTIONNELS */
.cta-contextuel {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(167, 139, 250, 0.05));
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-cta-primary {
    background: var(--primary-purple);
    color: white;
}

.btn-cta-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-cta-primary:hover,
.btn-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* LISTES ET PROPRIÉTÉS */
.nombre-proprietes {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.nombre-proprietes li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.8rem 0;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition-smooth);
}

.nombre-proprietes li:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(8px);
}

.symbole {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* ========================================
   🎨 ANIMATIONS
   ======================================== */

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Classes d'animation réutilisables */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.bounce-hover:hover {
    animation: bounce 1s ease-in-out;
}

/* ========================================
   📱 RESPONSIVE DESIGN CONSOLIDÉ
   ======================================== */

/* Tablettes */
@media (max-width: 1200px) {
    .analyse-grid-complete {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .analyse-card-large {
        grid-column: 1 / -1;
    }
    
    .calculateur-container {
        padding: 2.5rem 2rem;
    }
}


/* ========================================
   🎯 UTILITAIRES ET HELPER CLASSES
   ======================================== */

/* Visibilité */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Espacements */
.mt-small { margin-top: 1rem; }
.mt-medium { margin-top: 2rem; }
.mt-large { margin-top: 3rem; }

.mb-small { margin-bottom: 1rem; }
.mb-medium { margin-bottom: 2rem; }
.mb-large { margin-bottom: 3rem; }

/* Texte */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-purple); }
.text-secondary { color: var(--secondary-purple); }
.text-muted { color: #6b7280; }

/* Backgrounds */
.bg-gradient-purple {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
}

.bg-light {
    background: rgba(248, 250, 252, 0.8);
}

/* Bordures */
.border-purple {
    border: 1px solid var(--primary-purple);
}

.border-light {
    border: 1px solid var(--border-color);
}

/* Ombres */
.shadow-light {
    box-shadow: var(--shadow-light);
}

.shadow-heavy {
    box-shadow: var(--shadow-heavy);
}

/* Transitions */
.transition-smooth {
    transition: var(--transition-smooth);
}

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Focus states pour l'accessibilité */
.focus-purple:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* États disabled */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid var(--primary-purple);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* ========================================
   🔧 OPTIMISATIONS PERFORMANCE
   ======================================== */

/* Optimisation GPU pour les animations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Préchargement des images */
.preload-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preload-image.loaded {
    opacity: 1;
}

/* Amélioration de la lisibilité sur petits écrans */
@media (max-width: 320px) {
    :root {
        font-size: 14px;
    }
    
    .calculateur-title {
        font-size: 1.5rem;
    }
    
    .nombre-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   🎨 THÈME SOMBRE (OPTIONNEL)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --border-dark: rgba(255, 255, 255, 0.1);
    }
    
    .dark-theme .calculateur-container {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        color: var(--text-primary);
    }
    
    .dark-theme .nombre-bloc {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .dark-theme .input-wrapper-calcul input {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-dark);
    }
}

/* ========================================
   📋 PRINT STYLES
   ======================================== */
@media print {
    .calculateur-container,
    .nombre-bloc,
    .croix-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .calculate-button-main,
    .reset-calculator-btn,
    .btn-cta-primary,
    .btn-cta-secondary {
        display: none;
    }
    
    .nombre-image img {
        max-width: 150px;
        height: auto;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* ========================================
   ♿ ACCESSIBILITÉ RENFORCÉE
   ======================================== */

/* Amélioration du contraste pour les daltoniens */
@media (prefers-contrast: high) {
    .topo-badge.spirituel {
        background: #b45309;
        border: 2px solid #000;
    }
    
    .topo-badge.psychique {
        background: #be185d;
        border: 2px solid #000;
    }
    
    .topo-badge.physique {
        background: #0369a1;
        border: 2px solid #000;
    }
}

/* Support pour reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour navigation clavier */
.nombre-position:focus,
.mini-position:focus,
.calculate-button-main:focus {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Amélioration de la lisibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ÉGALISATION LETTRES ET NOMBRES */
.tableau-final .alphabet-final .nombre,
.tableau-final .alphabet-final .lettre {
    width: 40px !important;
    height: 40px !important;
    font-size: 13px !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

/* Mobile - même taille pour tous */
@media (max-width: 667px) {
    .tableau-final .alphabet-final .nombre,
    .tableau-final .alphabet-final .lettre {
        width: 35px !important;
        height: 35px !important;
        font-size: 11px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
}

/* RÉDUCTION DE L'ESPACEMENT */
.tableau-final .alphabet-final {
    gap: 4px !important; /* au lieu de 8px */
    margin: 0.25rem 0 !important; /* au lieu de 0.5rem */
}

.tableau-final .alphabet-final .nombre,
.tableau-final .alphabet-final .lettre {
    margin: 1px !important; /* au lieu de 2px */
}

/* CORRECTION SPÉCIFIQUE TABLEAU H.A.I.R.E */
.haire-container-compact .haire-grid-compact {
    display: grid !important;
    grid-template-columns: repeat(6, 40px) !important;
    grid-template-rows: repeat(6, 40px) !important;
    gap: 4px !important;
    place-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    margin: 0 auto !important;
}

.haire-container-compact .haire-grid-compact .cell {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
}

/* Empêcher responsive.css de casser la grille */
@media (max-width: 667px) {
    .haire-container-compact .haire-grid-compact {
        display: grid !important;
        grid-template-columns: repeat(6, 35px) !important;
        grid-template-rows: repeat(6, 35px) !important;
        gap: 3px !important;
    }
    
    .haire-container-compact .haire-grid-compact .cell {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.7rem !important;
    }
}
/* ========================================
   🎯 FIN DU FICHIER CSS CONSOLIDÉ
   ======================================== */