/* Box d'inscription en bas de page */
.mynewsletterplugin-box {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.mynewsletterplugin-box.hidden {
    transform: translateY(100%);
}

.mynewsletterplugin-box-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.mynewsletterplugin-box-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px 10px;
}

.mynewsletterplugin-box-close:hover {
    color: #333;
}

.mynewsletterplugin-box h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.mynewsletterplugin-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mynewsletterplugin-email-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mynewsletterplugin-email-input:focus {
    outline: none;
    border-color: #0073aa;
}

.mynewsletterplugin-submit {
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mynewsletterplugin-submit:hover {
    background-color: #005a87;
}

.mynewsletterplugin-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.mynewsletterplugin-privacy {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.mynewsletterplugin-privacy a {
    color: #0073aa;
    text-decoration: none;
}

.mynewsletterplugin-privacy a:hover {
    text-decoration: underline;
}

.mynewsletterplugin-message {
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.mynewsletterplugin-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mynewsletterplugin-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modale exit popup */
.mynewsletterplugin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mynewsletterplugin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mynewsletterplugin-modal-content {
    position: relative;
    background-color: #fff;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

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

.mynewsletterplugin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px 10px;
}

.mynewsletterplugin-modal-close:hover {
    color: #333;
}

.mynewsletterplugin-modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.mynewsletterplugin-modal .mynewsletterplugin-form {
    flex-direction: column;
}

.mynewsletterplugin-modal .mynewsletterplugin-email-input {
    width: 100%;
}

.mynewsletterplugin-modal .mynewsletterplugin-submit {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .mynewsletterplugin-box-content {
        padding: 15px;
    }
    
    .mynewsletterplugin-form {
        flex-direction: column;
    }
    
    .mynewsletterplugin-email-input {
        width: 100%;
    }
    
    .mynewsletterplugin-submit {
        width: 100%;
    }
    
    .mynewsletterplugin-modal-content {
        padding: 30px 20px;
    }
}

