/* ==========================================================================
   MODALS PROFESSIONNELLES - NEWSLETTER, PREMIUM, CONTACT
   ========================================================================== */

/* Liens premium dans le header */
.premium-link,
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.premium-link {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.contact-link {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.login-link {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.premium-link:hover,
.contact-link:hover,
.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.premium-link i {
    animation: shine 2s infinite;
}

@keyframes shine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Modal : plus compact, ne s'affiche pas trop long */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    overflow-y: auto;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.modal-content.premium {
    max-width: 640px;
}

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

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-family: 'Merriweather', serif;
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Forms */
.newsletter-form,
.contact-form,
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-form {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    flex: 0 0 auto;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.375rem;
    cursor: pointer;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff !important;
    border: 2px solid #1e8449;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-submit i {
    font-size: 1.25rem;
    color: #fff;
}

.btn-submit.btn-send {
    margin-top: 1rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff !important;
    border: 2px solid #1e8449;
}

/* Premium Plans */
.premium-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    border-color: #f39c12;
    border-width: 4px;
}

.plan-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 0.375rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.plan-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
}

.plan-card .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: 'Merriweather', serif;
}

.plan-card .price span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
}

.plan-card .savings {
    background: #e8f8f5;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.plan-card .features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.plan-card .features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.plan-card .features li:last-child {
    border-bottom: none;
}

.plan-card .features i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-subscribe {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-subscribe:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.plan-card.featured .btn-subscribe {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.plan-card.featured .btn-subscribe:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

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

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3498db;
}

.notification i {
    font-size: 1.5rem;
}

.notification.success i {
    color: #27ae60;
}

.notification.error i {
    color: #e74c3c;
}

.notification.info i {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 0.75rem;
    }
    
    .modal-content {
        padding: 1.25rem 1.25rem;
        max-width: 100%;
    }
    
    .modal-header i {
        font-size: 1.75rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .premium-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card .price {
        font-size: 1.75rem;
    }
    
    .premium-link span,
    .contact-link span,
    .login-link span {
        display: none;
    }
    
    .premium-link,
    .contact-link,
    .login-link {
        padding: 0.375rem 0.625rem;
    }
    
    .checkbox-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
    }
    
    .btn-submit {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
    
    .notification {
        max-width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
