/* Ask Age Modal */

#ask-age {
    position: fixed;
    inset: 0;
    background: var(--purple);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#ask-age.show {
    opacity: 1;
    pointer-events: auto;
}

#ask-age .ask-age-container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: var(--purple);
    padding: 48px 40px;
    border-radius: 50px;
    width: 420px;
    overflow: visible;
    box-shadow: 0 0 35px rgba(132, 76, 170, 1);
}

#ask-age .ask-age-notice {
    position: relative;
    z-index: 3;
}

#ask-age .ask-age-notice img {
    width: 120px;
    height: 120px;
}

#ask-age p {
    font-family: var(--font-body);
    color: var(--green);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 24px auto 0;
    line-height: 1.3;
    max-width: 190px;
    left: auto;
    position: relative;
}

#ask-age .ask-age-selection {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    left: auto;
}

#ask-age button {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 25px;
    border-radius: 9999px;
    cursor: pointer;
    min-width: 110px;
    height: 46px;
    margin: 0;
    width: auto;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#ask-age button:active { transform: scale(0.97); }

#ask-age .age-major {
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
}

#ask-age .age-major:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--green);
}

#ask-age .age-minor {
    background: transparent;
    color: #fff;
    border: 2px solid var(--green);
}

#ask-age .age-minor:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* Feuilles décoratives — épousent les côtés du modal, décalées vers le haut */
#ask-age .ask-age-decoration-gauche,
#ask-age .ask-age-decoration-droite {
    position: absolute;
    top: 160px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    height: 115%;
    width: auto;
    color: var(--green);
}

#ask-age .ask-age-decoration-gauche {
    right: calc(100% - 67px);
}

#ask-age .ask-age-decoration-droite {
    left: calc(100% - 90px);
}

@media (max-width: 480px) {
    #ask-age .ask-age-container {
        padding: 40px 24px;
    }

    #ask-age .ask-age-decoration-gauche {
        right: calc(100% - 40px);
    }

    #ask-age .ask-age-decoration-droite {
        left: calc(100% - 50px);
    }
}
