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

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

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

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

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

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

.rune {
    position: absolute;
    font-size: 42px;
    color: #9a624a;
    animation: runeGlow 4s ease-in-out infinite;
    font-weight: bold;
}

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

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

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

.rune:nth-child(4) {
    bottom: 20px;
    left: 25%;
    animation-delay: 2.1s;
}

.rune:nth-child(5) {
    bottom: 20px;
    right: 25%;
    animation-delay: 2.8s;
}

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

@keyframes runeGlow {
    0%, 100% { 
        opacity: 0.4;
        filter: drop-shadow(0 0 5px rgba(154, 98, 74, 0.3));
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(154, 98, 74, 0.7));
        transform: scale(1.15);
    }
}

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

/* Bouton */
.ogham-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;
}

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

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

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

.oracle-container-ogham {
    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-ogham {
    text-align: center;
    margin-bottom: 40px;
}

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

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

/* Forêt en cercle */
.foret-cercle {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 40px auto;
}

.arbre-centre {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    animation: arbrePulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(154, 98, 74, 0.4));
}

@keyframes arbrePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.rune-cercle {
    position: absolute;
    font-size: 2rem;
    color: #9a624a;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform-origin: center;
    animation: runeRotation 30s linear infinite;
}

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

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

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

/* Bouton tirage */
.btn-tirer-ogham {
    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-ogham:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(154, 98, 74, 0.5);
}

.oracle-stats {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    margin-top: 20px;
}

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

.arbre-pousse {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.tronc-anim {
    width: 20px;
    height: 120px;
    background: linear-gradient(180deg, #6e4636, #9a624a);
    margin: 0 auto;
    border-radius: 10px;
    animation: troncCroissance 2s ease-out infinite;
}

@keyframes troncCroissance {
    0% { height: 0; }
    100% { height: 120px; }
}

.feuille-anim {
    position: absolute;
    top: 40px;
    left: 50%;
    font-size: 3rem;
    animation: feuillePousse 2s ease-out infinite;
}

@keyframes feuillePousse {
    0%, 50% { opacity: 0; transform: translateX(-50%) scale(0); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

.arbre-symbole {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    animation: arbreApparait 2s ease-out infinite;
}

@keyframes arbreApparait {
    0%, 60% { opacity: 0; transform: translateX(-50%) scale(0); }
    100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

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

.resultat-header-ogham {
    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;
}

.ogham-lettre-display {
    font-size: 90px;
    font-weight: bold;
    color: #9a624a;
    margin-bottom: 20px;
    animation: lettreApparait 1s ease-out;
}

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

.ogham-nom-display {
    font-size: 2.2rem;
    color: #6e4636;
    margin: 15px 0 20px;
    font-weight: 400;
}

.ogham-motcle-badge {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Interprétation */
.ogham-interpretation-box {
    margin: 30px 0;
}

.interpretation-titre {
    text-align: center;
    font-size: 1.8rem;
    color: #9a624a;
    margin-bottom: 30px;
    font-weight: 400;
    font-style: italic;
}

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

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

.message-court-box h4,
.explication-box h4 {
    color: #6e4636;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.message-court-box p,
.explication-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2F2F2F;
    margin: 0;
}

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

.btn-action-ogham {
    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-ogham: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) {
    .ogham-karmique-widget {
        width: 100%;
        max-width: 310px;
        height: auto;
        min-height: 400px;
    }
    
    .oracle-container-ogham {
        padding: 25px;
    }
    
    .foret-cercle {
        width: 220px;
        height: 220px;
    }
    
    .arbre-centre {
        font-size: 4rem;
    }
    
    .ogham-lettre-display {
        font-size: 70px;
    }
    
    .ogham-nom-display {
        font-size: 1.8rem;
    }
    
    .ogham-actions {
        flex-direction: column;
    }
    
    .btn-action-ogham {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ogham-karmique-widget {
        max-width: 100%;
        padding: 15px;
    }
    
    .rune {
        font-size: 36px;
    }
}
