/* escale-meditations/public/popup.css v1.4.0 */

#escale-med-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(62, 15, 30, 0.72);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
#escale-med-overlay.em-active {
    display: flex;
    animation: emOverlayIn 0.25s ease both;
}
@keyframes emOverlayIn { from { opacity: 0; } to { opacity: 1; } }

#escale-med-box {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(62, 15, 30, 0.4);
    position: relative;
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    animation: emBoxIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes emBoxIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Bouton fermeture */
#escale-med-close {
    position: absolute; top: 12px; right: 14px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(253,240,246,0.9); border: none; cursor: pointer;
    font-size: 13px; color: #7A3050;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background 0.2s; line-height: 1;
}
#escale-med-close:hover { background: #F0ADCA; }

/* Header dégradé bordeaux → rose */
.em-header {
    background: linear-gradient(135deg, #5C1A2E 0%, #8B1040 50%, #C8185A 100%);
    padding: 28px 32px 22px;
    text-align: center;
}
.em-gift {
    font-size: 28px; margin-bottom: 8px; color: #F9D6E8;
}
.em-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px; font-weight: 600;
    color: #ffffff; line-height: 1.25; margin: 0 0 6px;
}
.em-header h2 em { color: #F9D6E8; font-style: italic; }
.em-header p { font-size: 12px; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.55; }

/* Pills des 5 méditations */
.em-pills {
    display: flex; flex-wrap: wrap; gap: 5px;
    justify-content: center; padding: 14px 28px 0;
    background: #FDF0F6;
}
.em-pill {
    background: #ffffff; border: 1px solid #F0ADCA;
    border-radius: 20px; padding: 3px 10px;
    font-size: 11px; font-weight: 600; color: #7A3050;
}

/* Corps */
.em-body {
    padding: 16px 28px 24px;
    background: #FDF0F6;
}
.em-body > p {
    font-size: 13px; color: #7A3050; line-height: 1.6;
    margin: 0 0 16px; text-align: center;
}

/* Champs */
.em-group { margin-bottom: 12px; }
.em-group label {
    display: block; font-size: 11px; font-weight: 700;
    color: #5C1A2E; margin-bottom: 5px; letter-spacing: 0.05em;
}
.em-group input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #F0ADCA; border-radius: 10px;
    font-family: inherit; font-size: 14px; color: #5C1A2E;
    background: #ffffff; outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.em-group input:focus { border-color: #C8185A; }
.em-group input::placeholder { color: #C4A0B0; }
.em-honeypot { display: none !important; }

/* Bouton principal — !important pour neutraliser les overrides du thème WP */
.em-btn-submit {
    width: 100% !important;
    padding: 14px 18px !important;
    background: #C8185A !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 32px !important;
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center !important;
    margin-top: 4px;
    transition: background 0.2s, transform 0.15s;
    white-space: normal !important;
    word-break: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    box-sizing: border-box;
}
.em-btn-submit:hover:not(:disabled) { background: #A81249 !important; transform: translateY(-1px); }
.em-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* Réassurance */
.em-reassurance {
    display: flex; justify-content: center; gap: 12px;
    flex-wrap: wrap; margin-top: 12px;
}
.em-reassurance span { font-size: 11px; color: #9A6070; }

/* RGPD */
.em-rgpd {
    font-size: 10px; color: #9A6070; text-align: center;
    margin-top: 10px; line-height: 1.5;
}
.em-rgpd a { color: #7A3050; }

/* Erreur */
.em-error {
    font-size: 12px; color: #C8185A; text-align: center;
    margin-top: 8px; display: none; font-weight: 600;
}

/* Succès */
#escale-med-success { display: none; padding: 36px 32px; text-align: center; background: #FDF0F6; }
.em-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #ffffff; border: 2px solid #F0ADCA;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px;
    animation: emPulse 2s ease infinite;
}
@keyframes emPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(200, 24, 90, 0.2); }
    50%      { box-shadow: 0 0 0 10px rgba(200, 24, 90, 0); }
}
#escale-med-success h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px; font-weight: 600;
    color: #5C1A2E; margin: 0 0 10px; line-height: 1.3;
}
#escale-med-success h3 em { color: #C8185A; font-style: italic; }
#escale-med-success p { font-size: 13px; color: #7A3050; line-height: 1.7; margin: 0 0 10px; }
.em-spam-note {
    background: #ffffff; border: 1px solid #F0ADCA;
    border-radius: 10px; padding: 12px 16px;
    font-size: 12px; color: #5C1A2E; line-height: 1.6; margin: 14px 0;
}
.em-btn-close {
    display: inline-block; background: #C8185A; color: #ffffff;
    border: none; border-radius: 24px; padding: 10px 28px;
    font-family: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; margin-top: 6px; transition: background 0.2s;
}
.em-btn-close:hover { background: #A81249; }

/* Bouton shortcode */
.escale-med-btn {
    display: inline-block;
    background: #C8185A; color: #ffffff;
    border: none; border-radius: 32px; padding: 14px 30px;
    font-family: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.03em;
    transition: background 0.2s;
}
.escale-med-btn:hover { background: #A81249; }

@media (max-width: 520px) {
    #escale-med-box { border-radius: 14px; }
    .em-header { padding: 20px 22px 16px; }
    .em-header h2 { font-size: 22px; }
    .em-body { padding: 12px 18px 18px; }
    .em-pills { padding: 10px 18px 0; }
    .em-btn-submit { font-size: 12px; padding: 12px 14px; }
}
