/* ============================================================
   HACCP Newsletter — formulaire intégré [brigade_haccp_form]
   Couleurs du site : bleu #1e5fa6, crème #f7f4e9, filet #e7e3d6
   ============================================================ */

.brigade-nl {
    background: #f7f4e9;
    border: 1px solid #e7e3d6;
    border-radius: 14px;
    padding: 28px 30px;
    margin: 2rem 0;
}

.brigade-nl__titre {
    font-family: var(--wp--preset--font-family--platypi, Georgia, serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e5fa6;
    margin: 0 0 8px;
    line-height: 1.25;
}

.brigade-nl__texte {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.55;
    color: #1b1b1b;
}

.brigade-nl__ligne {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brigade-nl__ligne input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 11px 18px;
    border: 1px solid #d9d4c3;
    border-radius: 999px;
    background: #fff;
    font-size: 1rem;
    color: #1b1b1b;
}
.brigade-nl__ligne input[type="email"]:focus {
    outline: none;
    border-color: #1e5fa6;
}
.brigade-nl__ligne input[type="email"].is-error {
    border-color: #b3261e;
}

.brigade-nl__bouton {
    flex: 0 0 auto;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #1e5fa6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.brigade-nl__bouton:hover { background: #164a82; }
.brigade-nl__bouton:disabled { background: #8a8571; cursor: not-allowed; }

.brigade-nl__note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b6656;
}

.brigade-nl__rgpd {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    cursor: pointer;
}
.brigade-nl__rgpd input { margin-top: 3px; flex-shrink: 0; accent-color: #1e5fa6; }
.brigade-nl__rgpd span { font-size: 0.78rem; line-height: 1.5; color: #6b6656; }
.brigade-nl__rgpd a { color: #1e5fa6; }

.brigade-nl__erreur {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdf3f2;
    color: #b3261e;
    font-size: 0.9rem;
}

.brigade-nl__succes,
.brigade-nl__deja {
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    border-left: 4px solid #1e5fa6;
}
.brigade-nl__succes p,
.brigade-nl__deja p { margin: 0; font-size: 0.95rem; line-height: 1.55; }

.brigade-nl__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.brigade-nl [hidden] { display: none !important; }

/* Variante pied de page : le bandeau fournit déjà le fond et le cadre. */
.brigade-nl--footer {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
.brigade-nl--footer .brigade-nl__ligne { flex-wrap: nowrap; }
.brigade-nl--footer .brigade-nl__ligne input[type="email"] {
    flex-basis: 0;
    padding: 9px 16px;
    font-size: 15px;
}
.brigade-nl--footer .brigade-nl__bouton { padding: 10px 20px; }
.brigade-nl--footer .brigade-nl__note { margin-top: 8px; }
/* La case de consentement apparaît dès que le visiteur commence à saisir son adresse. */
.brigade-nl--footer .brigade-nl__rgpd { display: none; margin-top: 10px; }
.brigade-nl--footer.is-open .brigade-nl__rgpd { display: flex; }

@media (max-width: 540px) {
    .brigade-nl { padding: 22px 18px; }
    .brigade-nl--footer { padding: 0; }
    .brigade-nl__bouton { width: 100%; }
    .brigade-nl--footer .brigade-nl__bouton { width: auto; }
}
