/* ==========================================================================
   Easter Egg Hunt - Styles
   ========================================================================== */

/* --- Reset curseur custom du theme --- */
#eeh-popup-overlay,
#eeh-popup-overlay *,
#eeh-basket,
#eeh-basket * {
    cursor: auto !important;
}

#eeh-popup-overlay a,
#eeh-popup-overlay button,
#eeh-basket button,
#eeh-basket a,
#eeh-basket.eeh-basket--complete,
#eeh-basket.eeh-basket--complete * {
    cursor: pointer !important;
}

/* --- Oeuf cache --- */
.eeh-egg {
    position: absolute;
    cursor: pointer !important;
    width: 220px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    animation: eeh-float 3s ease-in-out infinite;
}

.eeh-egg:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.eeh-egg:focus-visible {
    outline: 3px solid #ff6b35;
    outline-offset: 4px;
    border-radius: 50%;
}

.eeh-egg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Animation de flottement subtile */
@keyframes eeh-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Animation de collecte */
.eeh-egg--collected {
    animation: eeh-collect 0.6s ease-out forwards !important;
}

@keyframes eeh-collect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(20deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* --- Panier / Compteur --- */
.eeh-basket {
    position: fixed;
    bottom: 20px;
    right: 10px;
    background: #fff;
    border-radius: 70px;
    padding: 3rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10), 0 0 25px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer !important;
    z-index: 98;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
    user-select: none;
}

.eeh-basket:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15), 0 0 25px 3px rgba(0, 0, 0, 0.08);
}

.eeh-basket-icon {
    line-height: 1;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background-color: #000;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
}

.eeh-basket-icon svg {
    width: 60%;
}

.eeh-basket-icon .egg {
    fill: white;
    transition: fill 0.3s ease;
}

.eeh-basket-icon .egg.founded {
    fill: #e73c43;
}

.eeh-basket-label {
    color: #000;
    text-align: center;
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
}

.eeh-basket-label--highlight {
    color: #000;
    font-style: italic;
    font-weight: 700;
    line-height: 112%;
    display: block;
}

.eeh-basket-counter {
    display: flex;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 48px;
    background: #FAFAFA;
    color: #000;
    text-align: center;
    font-family: "Helvetica Neue";
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 20px */
}

/* --- Popup --- */
.eeh-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.eeh-popup-overlay.eeh-popup--visible {
    opacity: 1;
}

.eeh-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.eeh-popup--visible .eeh-popup {
    transform: scale(1) translateY(0);
}

.eeh-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #000;
    background-color: transparent !important;
    cursor: pointer !important;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.eeh-popup-close:hover {
    color: #c36;
    background-color: transparent !important;
}

.eeh-popup-icon {
    font-size: 60px;
    margin-bottom: 1rem;
    line-height: 1;
}

.eeh-popup-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.eeh-popup-text {
    font-size: 1rem;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.eeh-popup-btn {
    display: inline-block;
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-b8bdf67) !important;
    text-decoration: none !important;
    padding: 15px 30px;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 500 !important;
}


/* --- Panier compact (classe OU mobile via JS) --- */

/* Etat compact */
.eeh-basket.eeh-basket--compact {
    bottom: 20px;
    /* right: 12px; */
    right: auto;
    left: 50%;;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    flex-direction: row;
    gap: 8px;
    transform: translateX(-50%);
}

.eeh-basket.eeh-basket--compact:hover {
    box-shadow: none;
}

.eeh-basket.eeh-basket--compact .eeh-basket-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 6rem;
    height: 6rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10), 0 0 25px 3px rgba(0, 0, 0, 0.05);
}

.eeh-basket.eeh-basket--compact .eeh-basket-label {
    display: none;
}

.eeh-basket.eeh-basket--compact .eeh-basket-counter {
    position: absolute;
    top: -2px;
    right: -2px;
    padding: 2px 5px;
    font-size: 0.7rem;
    border-radius: 20px;
    background: #e73c43;
    color: #fff;
    gap: 2px;
}

/* Etat expanded */
.eeh-basket.eeh-basket--compact.eeh-basket--expanded {
    flex-direction: column;
    padding: 4rem 2rem 1.5rem;
    border-radius: 70px;
    gap: 10px;
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10), 0 0 25px 3px rgba(0, 0, 0, 0.05);
}

.eeh-basket.eeh-basket--compact.eeh-basket--expanded .eeh-basket-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6rem;
    height: 6rem;
    box-shadow: none;
}

.eeh-basket.eeh-basket--compact.eeh-basket--expanded .eeh-basket-label {
    display: block;
}

.eeh-basket.eeh-basket--compact.eeh-basket--expanded .eeh-basket-counter {
    position: relative;
    top: auto;
    right: auto;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 48px;
    background: #FAFAFA;
    color: #000;
}

#easterEggHuntValidation .elementor-icon-wrapper{
    display: flex;
}
#easterEggHuntValidation .customCloseModal a{
    padding: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .eeh-egg {
        width: 100px;
        height: auto;
    }

    .eeh-popup {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .eeh-popup-icon {
        font-size: 48px;
    }

    .eeh-popup-title {
        font-size: 20px;
    }

    .eeh-popup-text {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .eeh-basket.eeh-basket--compact.eeh-basket--expanded .eeh-basket-icon,
    .eeh-basket-icon {
        width: 6rem !important;
        height: 6rem !important;
    }
    
    .eeh-basket-label {
        font-size: 1.5rem;
    }
    
}

@media (min-width: 1200px) {
    .eeh-basket.eeh-basket--compact {
        left: auto;
        right: 12px;
        transform: none;
    }
    /* .eeh-basket.eeh-basket--compact.eeh-basket--expanded .eeh-basket-icon,
    .eeh-basket-icon {
        width: 6rem !important;
        height: 6rem !important;
    } */
    
    .eeh-basket:not(.eeh-basket--compact),
    .eeh-basket.eeh-basket--compact.eeh-basket--expanded {        
        border-radius: 70px;
        padding: 4rem 3rem 2rem;
        gap: 20px;
    }
    
    .eeh-basket-label {
        font-size: 1.8rem;
    }
    
    .eeh-basket.eeh-basket--compact.eeh-basket--expanded .eeh-basket-counter,
    .eeh-basket-counter{
        font-size: 1rem !important;
    }
}
