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

/* ===== WIDGET COMPACT 310×400px ===== */
.pierre-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;
}

.pierre-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 */
.pierre-header {
    text-align: center;
    margin-bottom: 5px;
}

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

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

/* Animation cristaux */
.pierre-cristaux-anim {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.cristal {
    position: absolute;
    font-size: 36px;
    animation: cristalScintille 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(154, 98, 74, 0.3));
}

.cristal:nth-child(1) {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.cristal:nth-child(2) {
    top: 40px;
    left: 20%;
    animation-delay: 0.5s;
}

.cristal:nth-child(3) {
    top: 40px;
    right: 20%;
    animation-delay: 1s;
}

.cristal:nth-child(4) {
    bottom: 20px;
    left: 30%;
    animation-delay: 1.5s;
}

.cristal:nth-child(5) {
    bottom: 20px;
    right: 30%;
    animation-delay: 2s;
}

.cristal:nth-child(6) {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.5s;
}

@keyframes cristalScintille {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
        filter: drop-shadow(0 0 8px rgba(154, 98, 74, 0.3));
    }
    50% { 
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(154, 98, 74, 0.6));
    }
}

/* Description */
.pierre-description {
    text-align: center;
    font-size: 12px;
    color: #6e4636;
    margin: 10px 0;
    font-style: italic;
}

/* Bouton */
.pierre-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #9a624a 0%, #b8856a 100%);
    color: white;
    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;
    text-decoration: none;
    margin: 10px 0;
}

.pierre-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;
}

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

/* ===== PAGE ORACLE COMPLÈTE ===== */
.pierre-oracle-page {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Georgia', serif;
}

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

.oracle-section {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.oracle-section.active {
    display: block;
    opacity: 1;
}

/* Header oracle */
.oracle-header-pierre {
    text-align: center;
    margin-bottom: 40px;
}

.oracle-header-pierre h2 {
    font-size: 2.5rem;
    color: #9a624a;
    margin-bottom: 10px;
    font-weight: 400;
}

.oracle-subtitle-pierre {
    font-size: 1rem;
    color: #6e4636;
    font-style: italic;
    opacity: 0.8;
}

/* Sélection mode */
.mode-question {
    text-align: center;
    font-size: 1.3rem;
    color: #6e4636;
    margin: 30px 0;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.mode-card {
    background: linear-gradient(135deg, #f5efe8, #faf6f0);
    border: 3px solid #9a624a;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(154, 98, 74, 0.3);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.mode-card h3 {
    color: #6e4636;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mode-card p {
    color: #6e4636;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-mode {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-mode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.4);
}

/* Section header */
.section-header-pierre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-retour {
    padding: 10px 20px;
    background: white;
    color: #9a624a;
    border: 2px solid #9a624a;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retour:hover {
    background: #9a624a;
    color: white;
}

/* Cristaux en cercle */
.cristaux-cercle {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 40px auto;
}

.cristal-cercle {
    position: absolute;
    font-size: 2rem;
    left: 50%;
    top: 50%;
    transform-origin: center;
    animation: cristalRotation 20s linear infinite;
}

.cristal-cercle {
    transform: rotate(calc(var(--i) * 30deg)) translateY(-100px);
}

@keyframes cristalRotation {
    from { transform: rotate(calc(var(--i) * 30deg)) translateY(-100px) rotate(0deg); }
    to { transform: rotate(calc(var(--i) * 30deg + 360deg)) translateY(-100px) rotate(360deg); }
}

/* Formulaire calcul */
.form-calcul {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.form-intro {
    font-size: 1.2rem;
    color: #6e4636;
    margin-bottom: 20px;
}

.date-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.date-inputs select {
    flex: 1;
    padding: 12px;
    border: 2px solid #9a624a;
    border-radius: 10px;
    font-size: 16px;
    color: #6e4636;
    background: white;
}

.btn-tirer-pierre,
.btn-calculer-pierre {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(154, 98, 74, 0.3);
}

.btn-tirer-pierre:hover,
.btn-calculer-pierre:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(154, 98, 74, 0.5);
}

.invitation-pierre {
    text-align: center;
    font-size: 1.1rem;
    color: #6e4636;
    margin: 30px 0;
    font-style: italic;
}

/* Loading */
.loading-cristal {
    text-align: center;
    padding: 80px 20px;
}

.cristal-rotation {
    font-size: 5rem;
    animation: rotation360 3s linear infinite;
}

@keyframes rotation360 {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    to { transform: rotate(360deg) scale(1); }
}

/* Résultat pierre */
.pierre-resultat-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
}

.resultat-header-pierre {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 3px solid #9a624a;
    background: linear-gradient(135deg, #f5efe8, #faf6f0);
    margin: -40px -40px 30px -40px;
    padding: 40px;
    border-radius: 17px 17px 0 0;
}

.pierre-emoji-display {
    font-size: 90px;
    margin-bottom: 20px;
    animation: pierreApparait 1s ease-out;
}

@keyframes pierreApparait {
    from { opacity: 0; transform: scale(0) rotate(-180deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.pierre-nom-display {
    font-size: 2.5rem;
    color: #6e4636;
    margin: 15px 0 10px;
    font-weight: 400;
}

.pierre-mineralogique {
    font-size: 1rem;
    color: #999;
    font-style: italic;
}

/* Badges */
.pierre-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

.badge-pierre {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(154, 98, 74, 0.2);
    color: #9a624a;
}

/* Boxes contenu */
.pierre-box {
    margin: 25px 0;
    padding: 25px;
    background: #FAFAFA;
    border-left: 5px solid #9a624a;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pierre-box:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #FFFFFF;
}

.pierre-box h4 {
    color: #6e4636;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.pierre-box ul {
    list-style: none;
    padding: 0;
}

.pierre-box li {
    padding: 8px 0;
    color: #2F2F2F;
    line-height: 1.6;
}

/* Affirmation box spécial */
.affirmation-box {
    background: linear-gradient(135deg, #9a624a, #b8856a);
    border: none;
    text-align: center;
}

.affirmation-box h4 {
    color: white;
}

.affirmation-box p {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
}

/* Actions */
.pierre-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-action-pierre {
    padding: 15px 30px;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-action-pierre:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.4);
    background: linear-gradient(135deg, #b8856a, #9a624a);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .pierre-karmique-widget {
        width: 100%;
        max-width: 310px;
        height: auto;
        min-height: 400px;
    }
    
    .oracle-container-pierre {
        padding: 25px;
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .pierre-emoji-display {
        font-size: 70px;
    }
    
    .pierre-nom-display {
        font-size: 2rem;
    }
    
    .pierre-actions {
        flex-direction: column;
    }
    
    .btn-action-pierre {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pierre-karmique-widget {
        max-width: 100%;
        padding: 15px;
    }
}
