/* ============================================
   ECHO POPUPS — FRONT CSS
   ============================================ */

/* Overlay : couvre toute la fenêtre */
.echo-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: epFadeIn .3s ease;
}

@keyframes epFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Fenêtre popup */
.echo-popup-box {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    overflow: auto;
    padding: 32px;
    box-sizing: border-box;
    animation: epSlideIn .3s ease;
}

@keyframes epSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Contenu */
.echo-popup-content {
    /* Laisse le contenu s'exprimer librement */
    line-height: 1.6;
}

/* Bouton de fermeture — × */
.echo-popup-close--x {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #d4af37;
    padding: 0;
    transition: color .2s, transform .2s;
    z-index: 2;
}
.echo-popup-close--x:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Bouton de fermeture — lien */
.echo-popup-close--link {
    display: block;
    text-align: right;
    margin-bottom: 12px;
    color: #d4af37;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}
.echo-popup-close--link:hover {
    color: #fff;
}

/* Bouton de fermeture — bouton stylisé */
.echo-popup-close--button {
    display: block;
    margin: 0 0 16px auto;
    padding: 8px 24px;
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
    text-decoration: none;
}
.echo-popup-close--button:hover {
    background: #c4a030;
    color: #1a1a1a;
}

/* ============================================
   BARRE DE PROGRESSION
   ============================================ */

.echo-popup-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.15);
    overflow: hidden;
}

.echo-popup-progress-bar {
    height: 100%;
    width: 0%;
    /* La transition est gérée en JS pour être synchronisée avec le délai exact */
    will-change: width;
}
