/* ============================================
   NEWSLETTER — FORMULAIRE FLUENT FORMS
   Cible le formulaire portant la classe « mmt-newsletter »
   (à saisir dans Fluent Forms → Réglages → Classe CSS du formulaire)
   ============================================ */

.mmt-newsletter {
    background: #FCE4E7;
    border-radius: 10px;
    padding: 32px 30px 34px;
    /*box-shadow: 0 10px 30px rgba(176, 29, 88, 0.08);*/
}

.mmt-newsletter .fluentform .ff-el-group {
    margin-bottom: 10px;
}

.mmt-newsletter .mmt-nl__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #E64C5B;
}

.mmt-newsletter .mmt-nl__intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #4A3A3F;
}

/* Champs */
.mmt-newsletter .ff-el-group {
    margin-bottom: 18px;
}

.mmt-newsletter .ff-el-input--label {
    /* Libellés masqués visuellement mais lus par les lecteurs d'écran :
       le placeholder porte le sens, comme sur la maquette. */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mmt-newsletter .ff-el-form-control {
    width: 100%;
    height: 52px;
    padding: 0 26px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    color: #333;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.mmt-newsletter .ff-el-form-control::placeholder {
    color: #9A9A9A;
}

.mmt-newsletter .ff-el-form-control:focus {
    outline: none;
    border-color: #E64C5B;
}

/* Case de consentement */
.mmt-newsletter .ff-el-form-check {
    margin-top: 4px;
}

.mmt-newsletter .ff-el-form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #4A3A3F;
    cursor: pointer;
}

.mmt-newsletter .ff-el-form-check-label a {
    color: #E64C5B;
    text-decoration: underline;
}

.mmt-newsletter .ff-el-form-check-input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: #E64C5B;
}

/* Bouton */
.mmt-newsletter .ff-btn-submit {
    width: 100%;
    height: 52px;
    margin-top: 6px;
    border: none;
    border-radius: 26px;
    background: #E64C5B;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mmt-newsletter .ff-btn-submit:hover,
.mmt-newsletter .ff-btn-submit:focus-visible {
    background: #B01D58;
}

.mmt-newsletter .ff-btn-submit:disabled,
.mmt-newsletter .ff-btn-submit.ff-working {
    background: #E88A94;
    cursor: wait;
}

/* Erreurs de validation Fluent Forms */
.mmt-newsletter .ff-el-is-error .ff-el-form-control {
    border-color: #C62828;
}

.mmt-newsletter .error,
.mmt-newsletter .text-danger {
    color: #C62828;
    font-size: 13px;
    margin-top: 6px;
}

/* Mention sous le formulaire */
.mmt-newsletter .mmt-nl__note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6B5A60;
}

/* ============================================
   MESSAGES APRÈS SOUMISSION
   ============================================ */

.mmt-newsletter .ff-message-success {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.mmt-nl-msg {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.mmt-nl-msg--ok {
    background: #E6F4EA;
    border-left: 4px solid #2E7D32;
    color: #1B5E20;
}

.mmt-nl-msg--warn {
    background: #FFF4E5;
    border-left: 4px solid #EF6C00;
    color: #7A3E00;
}

/* ============================================
   PAGE DE CONFIRMATION
   ============================================ */

.mmt-nl-confirm {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 10px;
    text-align: center;
}

.mmt-nl-confirm h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.mmt-nl-confirm p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.mmt-nl-confirm--ok {
    background: #E6F4EA;
    color: #1B5E20;
}

.mmt-nl-confirm--ok h2 {
    color: #2E7D32;
}

.mmt-nl-confirm--warn {
    background: #FFF4E5;
    color: #7A3E00;
}

.mmt-nl-confirm--warn h2 {
    color: #EF6C00;
}

.mmt-nl-confirm a {
    color: #E64C5B;
    font-weight: 600;
}

@media (max-width: 600px) {
    .mmt-newsletter {
        padding: 24px 20px 26px;
    }

    .mmt-newsletter .mmt-nl__title {
        font-size: 24px;
    }
}
