/* DIALOG */
#cpe-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: none;
    padding: 42px 55px 100px;
    background: #f8f9fb;
    color: inherit;
    width: 950px;
    max-width: calc(100% - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
    isolation: isolate;
    animation: cpe-appear .5s ease-out;
}

/* FOND SOMBRE */
#cpe-dialog::backdrop {
    background: rgba(15, 35, 70, .78);
    backdrop-filter: blur(5px);
}

/* CARTE */
.cpe-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 950px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #f8f9fb;
    border-radius: 24px;
    padding: 42px 55px 100px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
    animation: cpe-appear .5s ease-out;
}

@keyframes cpe-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* LOGOS */
.cpe-toplogo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.cpe-logo-pret {
    width: 200px;
    max-height: 65px;
    object-fit: contain;
}

.cpe-logo-target {
    width: 200px;
    max-height: 65px;
    object-fit: contain;
}

.cpe-arrow {
    width: 30px;
    height: 30px;
    color: #18386f;
    flex-shrink: 0;
}

/* TEXTE */
.cpe-text {
    position: relative;
    z-index: 2;
}

.cpe-card h1 {
    color: #142850;
    font-size: 43px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 14px;
}

.cpe-card h1 em {
    color: #55b52b;
    font-style: normal;
}

.cpe-card h2 {
    color: #18386f;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 18px;
}

.cpe-intro {
    max-width: 690px;
    margin: 0 auto;
    color: #555f70;
    font-size: 16px;
    line-height: 1.7;
}

/* AVANTAGES */
.cpe-benefits {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 25px;
    padding: 0;
    margin: 35px 0;
    list-style: none;
}

.cpe-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 200px;
    color: #18386f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.cpe-benefit svg {
    width: 45px;
    height: 45px;
    color: #55b52b;
}

/* BOUTON */
.cpe-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #55b52b;
    color: #fff !important;
    text-decoration: none !important;
    padding: 17px 35px;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 700;
    transition: all .25s ease;
    box-shadow: 0 5px 15px rgba(85,181,43,.2);
}

.cpe-btn:hover {
    background: #449b20;
    color: #fff !important;
    transform: translateY(-2px);
}

.cpe-btn svg {
    width: 22px;
    height: 22px;
}

/* COUNTDOWN */
.cpe-countdown {
    position: relative;
    z-index: 2;
    margin: 22px 0 12px;
    color: #18386f;
    font-size: 14px;
}

#cpe-count {
    display: inline-block;
    background: #e5eaf1;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    min-width: 30px;
}

/* PROGRESSION */
.cpe-progress {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 100%;
    height: 5px;
    background: #dce2e9;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

#cpe-progress-bar {
    width: 0;
    height: 100%;
    background: #55b52b;
    border-radius: 10px;
}

/* VAGUES */
.cpe-wave {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 700px) {

    #cpe-dialog {
        padding: 30px 20px 85px;
        max-width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .cpe-card {
        padding: 30px 20px 85px;
        border-radius: 18px;
        max-height: calc(100dvh - 24px);
    }

    .cpe-toplogo {
        gap: 12px;
        margin-bottom: 25px;
    }

    .cpe-logo-pret,
    .cpe-logo-target {
        width: 35%;
        max-height: 48px;
    }

    .cpe-arrow {
        width: 22px;
        height: 22px;
    }

    .cpe-card h1 {
        font-size: 29px;
    }

    .cpe-card h2 {
        font-size: 16px;
    }

    .cpe-intro {
        font-size: 14px;
    }

    .cpe-benefits {
        gap: 10px;
        margin: 28px 0;
    }

    .cpe-benefit {
        font-size: 12px;
        flex: 1;
    }

    .cpe-benefit svg {
        width: 36px;
        height: 36px;
    }

    .cpe-partner {
        padding: 14px;
        gap: 12px;
    }

    .cpe-partner svg {
        width: 34px;
        height: 34px;
    }

    .cpe-partner strong {
        font-size: 14px;
    }

    .cpe-partner p {
        font-size: 12px;
    }

    .cpe-btn {
        font-size: 16px;
        padding: 15px 22px;
    }

    .cpe-countdown {
        font-size: 12px;
    }

    .cpe-wave {
        height: 65px;
    }
}

@media (max-width: 380px) {
    .cpe-card h1 {
        font-size: 25px;
    }

    .cpe-benefit {
        font-size: 11px;
    }

    .cpe-benefit svg {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpe-card {
        animation: none;
    }

    .cpe-btn {
        transition: none;
    }
}