

/* Override spécifique */
.image-zen img[src*="22_lettres_hebreu"] {
    width: 500px !important;
    height: 500px !important;
    object-fit: cover !important;
     display: block !important;
    margin: 0 auto !important;


}
       
div.image-zen img.image-small {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    max-width: 200px !important;
    max-height: 200px !important;
}

.matrice-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;

}
.matrice-container {
    width: fit-content !important;
    margin: 0 auto !important;
}
.matrice-nombres {
    text-align: center !important;
    margin: 1rem auto;
    max-width: fit-content;
    /* Le bloc reste centré grâce à margin: auto */
}

.matrice-nombres > div {
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

/* Conteneur de la matrice - style cohérent avec votre design */
.matrice-container {
   background: rgba(139, 92, 246, 0.05);
   border: 2px solid rgba(139, 92, 246, 0.2);
   border-radius: 20px;
   padding: 2rem;
   box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
   transition: all 0.3s ease;
   height: 300px;
   width: 300px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

.matrice-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

/* Grille 3x3 des nombres - BOUTONS RONDS */
.matrice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

/* Boutons ronds colorés - EXACTEMENT comme votre version */
.matrice .nombre {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    border: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Couleurs par défaut des nombres - dégradés */
.matrice .nombre-1 { 
    background: linear-gradient(135deg, #ef4444, #dc2626) !important; 
}
.matrice .nombre-2 { 
    background: linear-gradient(135deg, #f97316, #ea580c) !important; 
}
.matrice .nombre-3 { 
    background: linear-gradient(135deg, #eab308, #ca8a04) !important; 
    color: #1f2937 !important;
}
.matrice .nombre-4 { 
    background: linear-gradient(135deg, #22c55e, #16a34a) !important; 
}
.matrice .nombre-5 { 
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important; 
}
.matrice .nombre-6 { 
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important; 
}
.matrice .nombre-7 { 
    background: linear-gradient(135deg, #1e40af, #1d4ed8) !important; 
}
.matrice .nombre-8 { 
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; 
}
.matrice .nombre-9 { 
    background: linear-gradient(135deg, #7c2d12, #581c87) !important; 
}

/* Effets au survol */
.matrice .nombre:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    filter: brightness(1.1);
}

/* États de configuration - comme votre version */
.matrice .nombre.disabled {
    opacity: 0.3 !important;
    transform: scale(0.9) !important;
}

.matrice .nombre.highlighted {
    animation: pulse 2s infinite !important;
    transform: scale(1.05) !important;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 3px rgba(139, 92, 246, 0.3);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 6px rgba(139, 92, 246, 0.1);
    }
}

/* Panneaux de configuration - style cohérent avec content-enhanced */
.config-panel h2 {
    color: #8b5cf6;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.config-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.config-item {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.config-item:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.config-item.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.config-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.config-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Boutons de contrôle */
.controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #64748b, #475569);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Responsive pour la matrice */
@media (max-width: 1024px) {
    .matrice {
        width: 200px;
        height: 200px;
        gap: 8px;
    }
    
    .matrice .nombre {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
    }
    
    .matrice-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .matrice {
        width: 180px;
        height: 180px;
        gap: 6px;
    }
    
    .matrice .nombre {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .matrice-container {
        padding: 1rem;
    }
    
    .config-item {
        padding: 0.75rem;
    }
    
    .config-desc {
        font-size: 0.8rem;
    }
}

/* Correction alignement - sélecteurs plus précis */
.content-enhanced .matrice-nombres > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    margin-bottom: 0.5rem !important;
}

.content-enhanced .matrice-nombres .nombre {
    margin: 0 !important;
    flex-shrink: 0 !important;
}




/* Correspondances ÅÅÅ*/


        .tableau-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        h2 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
        }

        .description {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
            font-size: 14px;
        }

        /* Ligne de correspondances */
        .ligne-correspondances {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            max-width: 340px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Cases lettres */
        .lettre {
            width: 34px;
            height: 34px;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
            background: #f8f9fa;
        }

        /* Pastilles nombres */
        .nombre {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 13px;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        /* Couleurs des pastilles */
 /* Couleurs des pastilles - style numérologie sacrée */
.nombre-1 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.nombre-2 { background: linear-gradient(135deg, #ffa726, #ff8f00); }
.nombre-3 { background: linear-gradient(135deg, #ffeb3b, #fbc02d); color: #37474f; }
.nombre-4 { background: linear-gradient(135deg, #66bb6a, #43a047); }
.nombre-5 { background: linear-gradient(135deg, #26c6da, #00acc1); }
.nombre-6 { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.nombre-7 { background: linear-gradient(135deg, #5c6bc0, #3949ab); }
.nombre-8 { background: linear-gradient(135deg, #ab47bc, #8e24aa); }
.nombre-9 { background: linear-gradient(135deg, #7e57c2, #5e35b1); }
.nombre-0 { background: #e2e8f0; color: #64748b; }

        /* Flèches de réduction */
.fleche {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

        /* Espacement entre les groupes */
        .groupe {
            margin-bottom: 25px;
        }

        /* Tableau final simplifié */
        .tableau-final {
            background: #f0f8ff;
            padding: 20px;
            border-radius: 12px;
            margin-top: 30px;
        }

        .tableau-final h3 {
            text-align: center;
            color: #333;
            margin-bottom: 15px;
        }

        .alphabet-final {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            max-width: 340px;
            margin-left: auto;
            margin-right: auto;
        }

        /* À ajouter dans style-numerologie-pythagore.css */

.nombres-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 667px) {
    .nombres-row {
        gap: 0.375rem;
    }
    
    .matrice-nombres .nombre {
        min-width: 26px !important;
        min-height: 26px !important;
        width: 26px !important;
        height: 26px !important;
        font-size: 0.8rem !important;
        margin: 0.1rem !important;
        flex-shrink: 0 !important;
    }
}

/* Corrections responsive pour iPhone */
@media (max-width: 667px) {
    .grid-2 {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .monde-card {
        margin-bottom: 2rem !important;
    }
    
    /* SEULEMENT pour le tableau des correspondances (celui avec les flèches) */
    .monde-psychique .alphabet-final {
        gap: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .monde-psychique .lettre, 
    .monde-psychique .nombre {
        min-width: 30px !important;
        min-height: 30px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
    }
    
    .monde-psychique .tableau-container {
        overflow-x: auto !important;
        padding: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .monde-psychique .lettre, 
    .monde-psychique .nombre {
        min-width: 25px !important;
        min-height: 25px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 0.6rem !important;
    }
    
    .monde-psychique .alphabet-final {
        gap: 0.125rem !important;
    }
}
    @media (max-width: 480px) {
    .monde-psychique .lettre, 
    .monde-psychique .nombre {
        min-width: 25px !important;
        min-height: 25px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 0.6rem !important;
    }
    
    .monde-psychique .alphabet-final {
        gap: 0.125rem !important;
    }
}

/* Style des 29 nombres sources - copié depuis numerologie sacrée */
.nombre {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin: 2px;
    transition: all 0.2s ease;
}

/* Couleurs exactes des nombres */
.nombre-1 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.nombre-2 { background: linear-gradient(135deg, #ffa726, #ff8f00); }
.nombre-3 { background: linear-gradient(135deg, #ffeb3b, #fbc02d); color: #37474f; }
.nombre-4 { background: linear-gradient(135deg, #66bb6a, #43a047); }
.nombre-5 { background: linear-gradient(135deg, #26c6da, #00acc1); }
.nombre-6 { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.nombre-7 { background: linear-gradient(135deg, #5c6bc0, #3949ab); }
.nombre-8 { background: linear-gradient(135deg, #ab47bc, #8e24aa); }
.nombre-9 { background: linear-gradient(135deg, #7e57c2, #5e35b1); }
.nombre-0 { background: #e2e8f0; color: #64748b; }

/* Conteneur des lignes de nombres */
div[style*="text-align: center"] {
    margin-bottom: 0.5rem;
}

/* Cases vides (span.nombre sans contenu) */
.nombre:empty {
    background: transparent;
    border: none;
    visibility: hidden;
}

/* Responsive pour iPhone */
@media (max-width: 667px) {
    .nombre {
        width: 32px;
        height: 32px;
        font-size: 11px;
        margin: 1px;
    }
}

@media (max-width: 480px) {
    .nombre {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Cases vides (span.nombre sans contenu) */
.nombre:empty {
    background: transparent !important;
    border: none !important;
    visibility: hidden !important;
}

/* Style inline div avec text-align center */
div[style*="text-align: center"] {
    margin-bottom: 0.5rem;
}

/* Responsive pour les spans nombre dans les divs inline */
@media (max-width: 667px) {
    div[style*="text-align: center"] .nombre {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
        margin: 1px !important;
    }
}

@media (max-width: 480px) {
    div[style*="text-align: center"] .nombre {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
    }
}

/* CORRECTION IPHONE PAYSAGE UNIQUEMENT */
@media (max-width: 896px) and (orientation: landscape) {
    div[style*="text-align: center"] .nombre {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
        margin: 1px !important;
    }
    
    div[style*="text-align: center"] .lettre {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
        margin: 1px !important;
    }
}

.lettre {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    background: #f8f9fa;
    color: #333;
    margin: 2px;
    border-radius: 4px;
}

/* =============================================
   SOLUTION FINALE MATRICE - BASÉE SUR LE TEST QUI FONCTIONNE
   ============================================= */

/* SUPPRESSION DES STYLES CONFLICTUELS */
.matrice-container .matrice {
    /* Reset complet */
    all: unset !important;
    
    /* Reconstruction avec le code qui fonctionne */
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    border-radius: 10px !important;
    
    /* Style de votre design */
    background: rgba(139, 92, 246, 0.05) !important;
    border: 2px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15) !important;
}

/* BOUTONS NOMBRES - Code du test qui fonctionne */
.matrice .nombre {
    /* Reset */
    all: unset !important;
    
    /* Reconstruction */
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: white !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* COULEURS - Vos couleurs originales */
.matrice .nombre-1,
.matrice .nombre[data-number="1"] { 
    background: linear-gradient(135deg, #ef4444, #dc2626) !important; 
}
.matrice .nombre-2,
.matrice .nombre[data-number="2"] { 
    background: linear-gradient(135deg, #f97316, #ea580c) !important; 
}
.matrice .nombre-3,
.matrice .nombre[data-number="3"] { 
    background: linear-gradient(135deg, #eab308, #ca8a04) !important; 
    color: #1f2937 !important;
}
.matrice .nombre-4,
.matrice .nombre[data-number="4"] { 
    background: linear-gradient(135deg, #22c55e, #16a34a) !important; 
}
.matrice .nombre-5,
.matrice .nombre[data-number="5"] { 
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important; 
}
.matrice .nombre-6,
.matrice .nombre[data-number="6"] { 
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important; 
}
.matrice .nombre-7,
.matrice .nombre[data-number="7"] { 
    background: linear-gradient(135deg, #1e40af, #1d4ed8) !important; 
}
.matrice .nombre-8,
.matrice .nombre[data-number="8"] { 
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; 
}
.matrice .nombre-9,
.matrice .nombre[data-number="9"] { 
    background: linear-gradient(135deg, #7c2d12, #581c87) !important; 
}

/* CONTENEUR PARENT - Simplifié */
.matrice-container {
    /* Garde juste l'essentiel */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* RESPONSIVE - Basé sur le test qui fonctionne */
@media (max-width: 667px) {
    .matrice {
        max-width: 250px !important;
        gap: 8px !important;
        padding: 15px !important;
    }
    
    .matrice .nombre {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.1rem !important;
    }
    
    .matrice-container {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .matrice {
        max-width: 220px !important;
        gap: 6px !important;
        padding: 12px !important;
    }
    
    .matrice .nombre {
        width: 55px !important;
        height: 55px !important;
        font-size: 1rem !important;
    }
}

/* EFFETS - Préservés */
.matrice .nombre:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    filter: brightness(1.1) !important;
}

.matrice .nombre.disabled {
    opacity: 0.3 !important;
    transform: scale(0.9) !important;
}

.matrice .nombre.highlighted {
    animation: pulse 2s infinite !important;
    transform: scale(1.05) !important;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
    }
    50% { 
        box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 6px rgba(139, 92, 246, 0.1) !important;
    }
}

/* Dans votre CSS */
.orientation-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #667eea);
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
}

   .orientation-message h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
        font-weight: 600 !important;
    }
    
    .orientation-message p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        padding: 0 2rem !important;
        line-height: 1.6 !important;
        opacity: 0.9 !important;
    }
    
    .orientation-icon {
        font-size: 4rem !important;
        margin-bottom: 1.5rem !important;
        animation: rotate 3s infinite ease-in-out !important;
    }
    
    @keyframes rotate {
        0% { transform: rotate(0deg); }
        25% { transform: rotate(90deg); }
        50% { transform: rotate(90deg); }
        75% { transform: rotate(0deg); }
        100% { transform: rotate(0deg); }
    }
@media screen and (max-width: 667px) and (orientation: portrait) {
    .orientation-message {
        display: flex !important;
    }
}

