/* Popup Newsletter Styles */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

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

.newsletter-popup-container {
    position: relative;
    background: white;
    border-radius: 0px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.newsletter-popup-close:hover {
    color: #bf8b00;
}

.newsletter-popup-close span {
    line-height: 1;
}

.newsletter-popup-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.newsletter-popup-image {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.newsletter-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newsletter-popup-image-mobile {
    display: none !important;
}

.newsletter-popup-image-desktop {
    display: block !important;
}

.newsletter-popup-form {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.newsletter-popup-title {
    font-size: 31px;
    font-weight: bold;
    margin: 0 0 28px 0;
    color: #333;
    line-height: 1.2;
}

.newsletter-popup-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.newsletter-popup-form-element {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-popup-form-element input[type="email"] {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 16px;
    background-color: #f5f5f5;
    color: #333;
    transition: border-color 0.2s ease;
}

.newsletter-popup-form-element input[type="email"]:focus {
    outline: none;
    border-color: #bf8b00;
    background-color: #fff;
}

.newsletter-popup-form-element input[type="email"]::placeholder {
    color: #999;
}

.newsletter-popup-submit {
    padding: 15px 30px;
    background-color: #bf8b00;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-popup-submit:hover {
    background-color: #a67a00;
}

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

.newsletter-popup-message {
    margin-top: 0px;
    padding: 10px;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
    border-radius: 0px;
    font-size: 14px;
    text-align: center;
}

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

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

#newsletter-popup-email::placeholder {
    font-size: 14px;
}

.newsletter-popup-submit {
    font-size: 14px;
}

/* Bouton flottant pour rouvrir la popup */
.newsletter-floating-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #bf8b00;
    color: white;
    border: none;
    border-radius: 0px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out;
    font-family: 'Bebas Neue', sans-serif;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.newsletter-floating-button:hover {
    background-color: #a67a00;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.newsletter-floating-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-popup-content {
        flex-direction: column;
    }

    .newsletter-popup-image {
        max-height: 200px;
    }

    .newsletter-popup-image-mobile {
        display: block !important;
    }

    .newsletter-popup-image-desktop {
        display: none !important;
    }

    .newsletter-popup-form {
        padding: 25px 20px;
        padding-bottom: 0px !important;
    }

    .newsletter-popup-title {
        font-size: 20px;
        margin: 0 0 15px 0;
    }

    .newsletter-popup-text {
        font-size: 12px;
        margin: 0 0 15px 0;
        line-height: 1.4;
    }

    #newsletter-popup-email:placeholder {
        font-size: 12px;
    }
    #newsletter-popup-email::placeholder {
        font-size: 12px;
    }

    .newsletter-popup-form-element {
        gap: 12px;
    }

    .newsletter-popup-form-element input[type="email"] {
        padding: 12px;
        font-size: 14px;
    }

    .newsletter-popup-submit {
        padding: 12px 20px;
        font-size: 12px;
    }

    .newsletter-popup-container {
        width: 75%;
        border-radius: 0px;
    }

    #newsletter-popup-message {
        padding-bottom: 25px !important;
    }

    .newsletter-floating-button {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 14px;
        font-family: 'Bebas Neue', sans-serif;
    }

    .newsletter-popup-close {
        color: white;
        top: -4px;
        right: -8px;
    }
}

