/* Bonjour Newsletter — formulaire */
.bc-nl-form {
    max-width: 32rem;
    padding: 1rem 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Titre principal : doit rester nettement au-dessus des libellés de champs (1rem) */
.bc-nl-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f3b57;
    margin: 0 0 1.25rem;
}

.bc-nl-field {
    margin-bottom: 1rem;
}

.bc-nl-field label,
.bc-nl-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #1f2937;
}

.bc-nl-field input[type="text"],
.bc-nl-field input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.bc-nl-fieldset {
    border: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

.bc-nl-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 1rem;
    font-weight: normal;
    cursor: pointer;
}

.bc-nl-categories {
    margin-top: 0.35rem;
}

.bc-nl-cat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bc-nl-cat-item input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
    accent-color: #1f3b57;
}

.bc-nl-cat-item label {
    display: inline-block;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.bc-nl-loading {
    color: #64748b;
    font-size: 0.95rem;
}

.bc-nl-error {
    color: #b91c1c;
}

.bc-nl-messages {
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.bc-nl-messages--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.bc-nl-messages--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.bc-nl-form--two-step .bc-nl-step[hidden] {
    display: none !important;
}

.bc-nl-step-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #475569;
}

.bc-nl-submit-wrap--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.bc-nl-back.button {
    background: #e2e8f0;
    color: #1f2937;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.bc-nl-back.button:hover {
    background: #cbd5e1;
}

.bc-nl-submit.button,
.bc-nl-form--two-step [data-bc-nl-next].bc-nl-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #1f3b57;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.bc-nl-submit.button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.bc-nl-submit .bc-nl-spinner[hidden] {
    display: none;
}

.required {
    color: #b91c1c;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute;
    word-wrap: normal !important;
}

/* Encart flottant (shortcode floating="1" ou injection admin) */
.bc-nl-floating-wrap {
    position: fixed;
    width: calc(100% - 2rem);
    box-sizing: border-box;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
}

.bc-nl-floating-wrap--hidden {
    display: none !important;
}

.bc-nl-floating-inner {
    position: relative;
    padding-top: 0.25rem;
}

.bc-nl-floating-close {
    position: absolute;
    top: 0.6rem;
    right: 0.35rem;
    z-index: 2;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border: none;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    border-radius: 4px;
}

.bc-nl-floating-close:hover,
.bc-nl-floating-close:focus {
    color: #1f3b57;
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

.bc-nl-floating-wrap .bc-nl-form {
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
}

/* Encart compact : titre quand même plus grand que les libellés (1rem) */
.bc-nl-floating-wrap .bc-nl-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    padding-right: 5.8rem;
}
