/* ===== CONTENEUR CENTRÉ ===== */
.chat-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 0 auto;
}

/* ===== WIDGET COMPACT 310×400px ===== */
.chat-karmique-widget {
    width: 310px;
    height: 400px;
    background: #f5efe8;
    border: 3px solid #9a624a;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-karmique-widget:hover {
    box-shadow: 0 0 20px rgba(154, 98, 74, 0.4),
                0 0 40px rgba(154, 98, 74, 0.2),
                0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Header */
.chat-header {
    text-align: center;
    margin-bottom: 5px;
}

.chat-header h3 {
    color: #6e4636;
    font-size: 20px;
    margin: 0 0 3px 0;
    font-weight: bold;
}

.chat-subtitle {
    font-size: 10px;
    color: #6e4636;
    margin: 0;
    font-style: italic;
    opacity: 0.7;
}

/* Sphère animée */
.chat-sphere {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.chat-circle-anim {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: rotateSvg 20s linear infinite;
}

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

.circle-path {
    fill: none;
    stroke: rgba(154, 98, 74, 0.3);
    stroke-width: 2;
}

.circle-inner {
    fill: none;
    stroke: rgba(154, 98, 74, 0.2);
    stroke-width: 1.5;
    stroke-dasharray: 5, 5;
}

.paw-icon {
    font-size: 40px;
    position: relative;
    z-index: 2;
    animation: pulsePaw 3s ease-in-out infinite;
}

@keyframes pulsePaw {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Description */
.chat-description {
    text-align: center;
    font-size: 13px;
    color: #6e4636;
    line-height: 1.4;
    margin: 10px 0;
    font-style: italic;
}

/* Bouton */
.chat-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #9a624a 0%, #b8856a 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(154, 98, 74, 0.3);
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 10px 0;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.5);
    background: linear-gradient(135deg, #b8856a 0%, #9a624a 100%);
    color: white;
}

/* Info */
.chat-info {
    text-align: center;
    font-size: 9px;
    color: #6e4636;
    margin: 5px 0 0 0;
    font-style: italic;
    opacity: 0.7;
}

/* ===== GÉNÉRATEUR PAGE DÉDIÉE ===== */
.chat-karmique-generateur {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.generateur-container {
    background: #f5efe8;
    border: 3px solid #9a624a;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(154, 98, 74, 0.2);
}

.generateur-header {
    text-align: center;
    margin-bottom: 40px;
}

.generateur-title {
    color: #6e4636;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.generateur-subtitle {
    color: #6e4636;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

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

.chat-visuel {
    margin-bottom: 30px;
}

.image-container {
    position: relative;
    display: inline-block;
}

.chat-image-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #9a624a;
    box-shadow: 0 0 30px rgba(154, 98, 74, 0.4);
    animation: pulseImage 2s ease-in-out infinite;
}

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

.chat-energy {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #9a624a;
    border-radius: 50%;
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.generateur-btn {
    background: linear-gradient(135deg, #9a624a, #b8856a);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 18px 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.generateur-btn:hover {
    background: linear-gradient(135deg, #b8856a, #9a624a);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(154, 98, 74, 0.6);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    white-space: nowrap;
}

/* Résultat */
.resultat-container {
    margin-top: 40px;
    animation: fadeInUp 0.6s ease;
}

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

.resultat-content {
    background: transparent;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(154, 98, 74, 0.15);
    border: 2px solid #9a624a;
}

.chat-resultat {
    text-align: center;
    margin-bottom: 25px;
}

.chat-image-result {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #9a624a;
    box-shadow: 0 0 20px rgba(154, 98, 74, 0.4);
    margin-bottom: 15px;
}

.chat-race {
    color: #6e4636;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.message-bubble {
    background: transparent;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    border: 2px solid #9a624a;
    text-align: center;
}

.message-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #9a624a;
}

.chat-message {
    color: #6e4636;
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.actions-container {
    margin-top: 30px;
}

.nouveau-message {
    background: linear-gradient(135deg, #9a624a, #b8856a);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nouveau-message:hover {
    background: linear-gradient(135deg, #b8856a, #9a624a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(154, 98, 74, 0.4);
}

.action-icon {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-karmique-widget {
        width: 100%;
        max-width: 310px;
        height: auto;
        min-height: 400px;
    }
    
    .chat-karmique-generateur {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .generateur-container {
        padding: 30px 20px;
    }
    
    .generateur-title {
        font-size: 24px;
    }
    
    .generateur-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .chat-image-large {
        width: 120px;
        height: 120px;
    }
    
    .resultat-content {
        padding: 20px;
    }
    
    .chat-image-result {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 340px) {
    .chat-karmique-widget {
        max-width: 100%;
        padding: 15px;
    }
    
    .chat-header h3 {
        font-size: 18px;
    }
    
    .chat-circle-anim {
        width: 80px;
        height: 80px;
    }
    
    .paw-icon {
        font-size: 32px;
    }
}
