/* =============================================
   Contact & Newsletter Plugin — Styles
   ============================================= */

.mcn-wrap {
    max-width: 560px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mcn-titre {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.mcn-desc {
    color: #666;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* Rows */
.mcn-row {
    margin-bottom: 14px;
}

/* Inputs & Textarea */
.mcn-wrap input[type="text"],
.mcn-wrap input[type="email"],
.mcn-wrap textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.mcn-wrap input[type="text"]:focus,
.mcn-wrap input[type="email"]:focus,
.mcn-wrap textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.mcn-wrap textarea {
    resize: vertical;
    min-height: 120px;
}

/* Bouton */
.mcn-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.mcn-btn:hover  { opacity: 0.9; }
.mcn-btn:active { transform: scale(0.98); }
.mcn-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Messages de retour */
.mcn-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.93rem;
    font-weight: 500;
}

.mcn-message.success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.mcn-message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Honeypot — toujours caché */
.mcn-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Newsletter inline */
.mcn-nl-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mcn-nl-inline input[type="text"],
.mcn-nl-inline input[type="email"] {
    flex: 1;
    min-width: 160px;
}

.mcn-nl-inline .mcn-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 480px) {
    .mcn-nl-inline {
        flex-direction: column;
    }
    .mcn-nl-inline input,
    .mcn-nl-inline .mcn-btn {
        width: 100%;
    }
}
