/* === Fleur Matrice du Destin — Plugin WordPress === */

.matrice-du-destin {
    font-family: inherit;
    color: inherit;
}

/* Conteneur flex fleur + panneau résultat */
.mfw {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Conteneur SVG */
.mfc {
    position: relative;
    width: 380px;
    max-width: 100%;
    height: 400px;
    flex-shrink: 0;
}

.mfs {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Animation rotation au survol */
@keyframes mSpinOnce {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.mfleur-group {
    transform-origin: 281px 275px;
    transform-box: fill-box;
}

.mfs:hover .mfleur-group {
    animation: mSpinOnce 0.6s cubic-bezier(0.4, 0, 0.6, 1) 1 forwards;
}

/* Pétales */
.mpg {
    cursor: pointer;
}

.mpg.on circle {
    filter: brightness(1.15) saturate(1.2);
}

/* Panneau résultat */
.mzt {
    width: 100%;
    max-width: 560px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.34s ease, transform 0.34s ease;
    padding: 0;
    margin-top: 16px;
}

.mzt.vis {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mzi {
    border-left: none;
    border-top: 3px solid #c8a84b;
    padding: 16px 0;
    transition: border-color 0.3s ease;
}

.mzl {
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    font-family: sans-serif;
}

.mzb {
    font-size: 16px;
    line-height: 1.7;
    color: inherit;
    margin-bottom: 15px;
}

/* Bouton CTA */
.matrice-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c8a84b;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.matrice-cta-btn:hover {
    background-color: #a88a35;
    color: #fff !important;
}

/* Champ date */
.matrice-ddn-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.matrice-ddn-label {
    display: block;
    color: #888;
    margin-bottom: 6px;
}

.matrice-ddn-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    transition: border-color .2s, box-shadow .2s;
}

.matrice-ddn-part {
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: monospace;
    letter-spacing: .05em;
    text-align: center;
    outline: none;
    width: 2.2em;
    color: inherit;
}

.matrice-ddn-annee {
    width: 3.6em;
}

.matrice-ddn-sep {
    font-size: 16px;
    color: #999;
    user-select: none;
}

.matrice-ddn-group.matrice-ddn-error {
    border-color: #e84b33 !important;
    box-shadow: 0 0 0 3px rgba(232, 75, 51, .18);
}

@keyframes matrice-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.matrice-ddn-shake {
    animation: matrice-shake .42s ease;
}

/* Info-bulle */
.matrice-tip {
    position: fixed;
    pointer-events: none;
    background: rgba(20, 20, 20, .84);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    padding: 6px 10px;
    border-radius: 5px;
    max-width: 210px;
    z-index: 9999;
    display: none;
    white-space: normal;
}

.matrice-tip.vis {
    display: block;
}

/* Mobile */
@media (max-width: 767px) {
    .mfc {
        width: 100%;
        height: 300px;
    }

    .matrice-tip {
        display: none !important;
    }

    .matrice-ddn-group {
        width: 100%;
        justify-content: center;
    }
}
