/* ========================================
   📊 STYLE-ETUDE-PERSONNALISEE.CSS - VERSION NETTOYÉE
   Styles spécifiques à la page d'étude personnalisée
   SANS DOUBLONS avec style-calcul-numerologique.css
   
   SOMMAIRE :
   1. Variables spécifiques à l'étude
   2. Styles des mondes (spirituel/psychique/physique) 
   3. Responsive spécifique au calculateur
   4. Animations et transitions
   5. Utilitaires pour l'étude
   ======================================== */

/* ========================================
   🎨 1. VARIABLES SPÉCIFIQUES À L'ÉTUDE
   Couleurs et valeurs pour la page d'étude personnalisée
   ======================================== */
:root {
    /* Couleurs des mondes géo-numérologiques */
    --monde-spirituel: #F59E0B; /* Orange spirituel (1-2-3) */
    --monde-psychique: #E91E63; /* Fuchsia psychique (4-5-6) */
    --monde-physique: #06B6D4;  /* Cyan physique (7-8-9) */
    
    /* Nuances pour les fonds */
    --monde-spirituel-light: rgba(245, 158, 11, 0.1);
    --monde-psychique-light: rgba(233, 30, 99, 0.1);
    --monde-physique-light: rgba(6, 182, 212, 0.1);
    
    /* Couleurs pour les positions topologiques */
    --topo-personnel: #8B5CF6;     /* Violet */
    --topo-relationnel: #10B981;   /* Vert */
    --topo-universel: #F59E0B;     /* Orange */
    
    /* Couleurs fonctionnelles */
    --etude-primary: #f59e0b;
    --etude-success: #10B981;
    --etude-warning: #F59E0B;
    --etude-info: #3B82F6;
    --etude-border: #e5e7eb;
    --etude-bg-gray: #f8fafc;
}

/* ========================================
   🌍 2. STYLES DES MONDES
   Couleurs et styles spécifiques aux 3 mondes
   ======================================== */

/* Bordures et accents selon les mondes */
.monde-spirituel .symbole-detail {
    border-left-color: var(--monde-spirituel);
}

.monde-psychique .symbole-detail {
    border-left-color: var(--monde-psychique);
}

.monde-physique .symbole-detail {
    border-left-color: var(--monde-physique);
}

/* Couleurs des positions dans la croix */
.position-intime { border-color: var(--monde-psychique); }
.position-hereditaire { border-color: var(--monde-physique); }
.position-expression { border-color: var(--monde-psychique); }
.position-actif { border-color: var(--monde-spirituel); }
.position-realisation { border-color: var(--monde-spirituel); }

/* Badges topologiques spécifiques à l'étude */
.topo-badge.physique.personnel { 
    background: var(--monde-physique-light); 
    color: var(--monde-physique); 
}
.topo-badge.spirituel.universel { 
    background: var(--monde-spirituel-light); 
    color: var(--monde-spirituel); 
}
.topo-badge.psychique.relationnel { 
    background: var(--monde-psychique-light); 
    color: var(--monde-psychique); 
}
.topo-badge.psychique.personnel { 
    background: var(--monde-psychique-light); 
    color: var(--monde-psychique); 
}
.topo-badge.spirituel.relationnel { 
    background: var(--monde-spirituel-light); 
    color: var(--monde-spirituel); 
}

/* Valeurs des mondes dans l'analyse */
.monde-value.spirituel {
    background: var(--monde-spirituel-light);
    color: var(--monde-spirituel);
}

.monde-value.psychique {
    background: var(--monde-psychique-light);
    color: var(--monde-psychique);
}

.monde-value.physique {
    background: var(--monde-physique-light);
    color: var(--monde-physique);
}

/* Barres de progression par monde */
.monde-fill.spirituel { background: var(--monde-spirituel); }
.monde-fill.psychique { background: var(--monde-psychique); }
.monde-fill.physique { background: var(--monde-physique); }

/* Note vue d'ensemble */
.vue-ensemble-note {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #92400e;
}

.vue-ensemble-cta {
    color: var(--etude-primary);
    font-weight: 600;
    text-decoration: none;
}

.vue-ensemble-cta:hover {
    text-decoration: underline;
}

/* ========================================
   📱 3. RESPONSIVE SPÉCIFIQUE À L'ÉTUDE
   Adaptations pour la page d'étude uniquement
   ======================================== */

/* ========================================
   ✨ 4. ANIMATIONS ET TRANSITIONS
   Effets visuels pour améliorer l'expérience
   ======================================== */
@keyframes resultAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes worldColorShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
    100% { filter: hue-rotate(0deg); }
}

/* Application des animations */
.monde-fill {
    animation: worldColorShift 2s ease-in-out infinite;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--etude-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

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

/* ========================================
   🔧 5. UTILITAIRES POUR L'ÉTUDE
   Classes d'aide spécifiques aux calculs
   ======================================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--etude-primary);
}

.bg-primary {
    background-color: var(--etude-primary);
}

.border-primary {
    border-color: var(--etude-primary);
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.p-4 {
    padding: 1rem;
}

.rounded {
    border-radius: 0.375rem;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Classes spécifiques à l'étude */
.etude-highlight {
    background: linear-gradient(135deg, var(--etude-primary), #d97706);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.etude-badge {
    background: var(--etude-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.etude-card {
    background: white;
    border: 1px solid var(--etude-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.etude-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--etude-border), transparent);
    margin: 30px 0;
}


/* CORRECTION URGENTE DÉBORDEMENT SECTION PAIEMENT */
.payment-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.payment-grid.grid2 {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.payment-visual-content,
.payment-info {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body {
    overflow-x: hidden !important;
}


/* CORRECTION CIBLÉE UNIQUEMENT POUR LA SECTION PAIEMENT */
#commander {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

#commander .payment-grid.grid2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#commander .payment-visual-content,
#commander .payment-info {
    min-width: 0;
    overflow: hidden;
}

/* Si ça ne suffit pas, cette règle plus agressive */
section[id="commander"] {
    contain: layout;
    isolation: isolate;
}

/* SOLUTION D'URGENCE MOBILE */
@media screen and (max-width: 768px) {
    .calculateur-results,
    .tableau-nombres,
    .analyse-grid-complete {
        overflow-x: auto !important;
        max-width: 100vw !important;
    }
    
    /* Masquer complètement le débordement */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}
/* ========================================
   📚 FIN DU FICHIER NETTOYÉ
   
   UTILISATION :
   - Ce fichier doit être utilisé AVEC style-calcul-numerologique.css
   - Il ne contient QUE les styles spécifiques à l'étude
   - Tous les styles du calculateur sont dans style-calcul-numerologique.css
   - Les couleurs des mondes sont définies dans les variables CSS
   
   MAINTENANCE :
   - Ne plus ajouter de styles du calculateur ici
   - Utiliser les variables CSS pour les couleurs
   - Chaque section est modulaire
   ========================================



   MIGRÉ DU HTML */

   .payment-badge {
    background: var(--etude-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

   .payment-grid.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.payment-visual-content {
    display: flex;
    flex-direction: column;
}

.etude-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.etude-content-features {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.etude-features-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.etude-features-subtitle {
    color: #666;
    margin-bottom: 20px;
}

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

.etude-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-content strong {
    color: #333;
    margin-bottom: 4px;
}

.feature-content span {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .payment-grid.grid2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.payment-grid.grid2,
.payment-visual-content,
.payment-info {
    overflow: visible !important;
}