/* Une inscription toujours explicitement simulée tant que le service n'est pas raccordé. */
.mb-newsletter-inline { width: 100%; padding: 40px 5vw 52px; border-top: 1px solid var(--mb-line); background: #fff; text-align: center; }
.mb-newsletter-inline h2 { max-width: 780px; margin: 0 auto 20px; font-size: var(--mb-h1-size); }
.mb-newsletter-inline > p { max-width: 680px; margin: 0 auto 28px; color: var(--mb-muted); }
.mb-newsletter-inline form { width: 100%; max-width: 360px; margin: auto; }
.mb-newsletter-inline fieldset, .mb-newsletter-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mb-newsletter-field { position: relative; min-width: 0; box-shadow: 0 3px 6px -3px #1212123d; }
.mb-newsletter-field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 52px 12px 15px; border: 1px solid var(--mb-muted); border-radius: 0; background: #fff; color: var(--mb-ink); font-size: 16px; line-height: 24px; letter-spacing: .4px; }
.mb-newsletter-field button { position: absolute; top: 0; right: 0; bottom: 0; width: 48px; padding: 0; border: 0; background: transparent; color: var(--mb-accent); font-size: 24px; }
.mb-newsletter-invite, .mb-newsletter-panel { position: fixed; z-index: 130; bottom: 24px; left: 24px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; box-shadow: 0 7px 28px #29272d0a; }
.mb-newsletter-invite { display: flex; align-items: center; gap: 13px; width: auto; min-height: 66px; max-width: calc(100vw - 50px); left: 25px; bottom: 25px; padding: 20px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 1px #0003, 0 26px 80px #0003; }
.mb-newsletter-invite > button:first-child { display: flex; align-items: center; min-height: 26px; margin: 0; padding: 0; border: 0; background: transparent; color: #000; text-align: left; }
.mb-newsletter-invite strong { color: #000; font: 700 17.6px/26px Helvetica, Arial, sans-serif; letter-spacing: 0; }
.mb-newsletter-dismiss, .mb-newsletter-close { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--mb-muted); font-size: 24px; }
.mb-newsletter-invite .mb-newsletter-dismiss { position: relative; display: block; flex: 0 0 12px; min-width: 12px; width: 12px; min-height: 12px; height: 12px; margin: 0; padding: 0; color: #000; }
.mb-newsletter-dismiss::after { content: ''; position: absolute; inset: -16px; }
.mb-newsletter-dismiss svg { display: block; width: 12px; height: 12px; }
.mb-newsletter-panel { width: 360px; max-width: calc(100vw - 48px); max-height: calc(100dvh - var(--mb-header-height) - var(--mb-admin-height) - 32px); overflow: auto; overscroll-behavior: contain; padding: 30px 28px 26px; }
.mb-newsletter-close { position: absolute; right: 5px; top: 5px; }
.mb-newsletter-panel h2 { margin: 15px 0 18px; }
.mb-newsletter-panel > p:not(.mb-eyebrow) { color: var(--mb-muted); }
.mb-newsletter-panel .mb-button { width: 100%; }
.mb-subnav button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; white-space: nowrap; }
.mb-subnav button:hover { background: var(--mb-surface); color: var(--mb-accent); }
body:has(.mb-nav.is-open) .mb-newsletter-invite { display: none; }
@media (max-width: 700px) { .mb-newsletter-inline { padding: 36px 24px 44px; } .mb-newsletter-inline h2 { margin-bottom: 16px; } .mb-newsletter-inline > p { margin-bottom: 24px; } }
@media (max-width: 400px) { .mb-newsletter-panel { padding: 30px 20px 22px; } }
@media (max-width: 490px) {
    .mb-newsletter-invite { left: 16px; bottom: 16px; min-height: 52px; max-width: calc(100vw - 32px); padding: 16px; gap: 8px; }
    .mb-newsletter-invite > button:first-child { min-height: 20px; }
    .mb-newsletter-invite strong { line-height: 20px; }
}

/* Formulaire ouvert : composition inspirée de Claire Desjardins. */
#mb-newsletter-panel { left:27px; bottom:27px; width:397px; max-width:calc(100vw - 54px); max-height:calc(100dvh - var(--mb-admin-height,0px) - 54px); padding:35px 30px; border:0; border-radius:10px; background:#fff; color:#000; text-align:center; box-shadow:0 0 1px #0003,0 26px 80px #0003; }
#mb-newsletter-panel, #mb-newsletter-panel * { font-family:Helvetica,Arial,sans-serif; letter-spacing:0; }
#mb-newsletter-panel .mb-newsletter-heading { margin:5px 0 25px; padding:0; }
#mb-newsletter-panel h2 { margin:0 0 5px; padding:0; }
#mb-newsletter-panel .mb-newsletter-heading p { margin:0; color:#000; font-size:14px; line-height:20px; }
#mb-newsletter-panel form { margin:0; padding:12px 2px 0; }
#mb-newsletter-panel .mb-newsletter-popup-field { position:relative; margin:0 0 12px; }
#mb-newsletter-panel .mb-newsletter-popup-field input { display:block; box-sizing:border-box; width:100%; height:47px; min-height:47px; margin:0; padding:22.5px 15px 7.5px; border:0; border-radius:5px; background:transparent; color:#202020; box-shadow:0 0 0 1px rgb(32 32 32 / 20%); font-size:14px; line-height:17px; outline:none; }
#mb-newsletter-panel .mb-newsletter-popup-field label { position:absolute; left:15px; top:16.5px; margin:0; color:rgb(32 32 32 / 65%); font-size:14px; line-height:14px; pointer-events:none; transition:top .12s,font-size .12s; }
#mb-newsletter-panel .mb-newsletter-popup-field input:is(:focus,:not(:placeholder-shown))+label { top:8px; font-size:11.9px; line-height:12px; }
#mb-newsletter-panel .mb-newsletter-popup-field input:focus { box-shadow:0 0 0 2px #535963; }
#mb-newsletter-panel button[type=submit] { display:block; width:100%; min-height:45.4px; padding:15px; border:0; border-radius:5px; background:#fff; color:#000; font-size:14px; line-height:15.4px; font-weight:400; box-shadow:none; }
#mb-newsletter-panel button[type=submit]:hover { background:#fafafa; color:#000; text-decoration:none; }
#mb-newsletter-panel .mb-newsletter-consent { margin:12px 0 0; padding:0 13px; color:#000; font-size:10px; line-height:14px; }
#mb-newsletter-panel .mb-newsletter-close { display:grid; place-items:center; top:19px; right:19px; width:44px; height:44px; margin:0; padding:0; color:#000; font:24px/1 Helvetica,Arial,sans-serif; }
#mb-newsletter-panel .mb-newsletter-close span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#fff; }
@media(max-width:600px) { #mb-newsletter-panel { left:2px; bottom:auto; top:50%; transform:translateY(-50%); width:calc(100% - 4px); max-width:none; max-height:calc(100dvh - 32px); } }

/* Détail du fond peint du Pinson des arbres de Muriel Barrat.
   Le cadrage en haut à gauche ne montre que le bokeh, sous un voile blanc. */
#mb-newsletter-panel {
    background-color:#e3e9d7;
    background-image:linear-gradient(rgb(255 255 255 / 80%),rgb(255 255 255 / 80%)),url("images/newsletter-bokeh-pinson.jpg");
    background-size:100% 100%,420% auto;
    background-position:center,left top;
    background-repeat:no-repeat;
}
#mb-newsletter-panel .mb-newsletter-popup-field input {
    background:rgb(255 255 255 / 58%);
    box-shadow:0 0 0 1px rgb(61 79 55 / 45%);
}
#mb-newsletter-panel .mb-newsletter-popup-field label { color:#4d554a; }
#mb-newsletter-panel .mb-newsletter-popup-field input:focus { box-shadow:0 0 0 2px #465d3d; }
#mb-newsletter-panel button[type=submit]:hover { background:#f4f7ef; }
#mb-newsletter-panel button[type=submit]:focus-visible,
#mb-newsletter-panel .mb-newsletter-close:focus-visible { outline:2px solid #465d3d; outline-offset:3px; }

/* Cadeau de bienvenue, après acceptation réelle du formulaire par Brevo. */
#mb-newsletter-panel [data-newsletter-success] h2 { margin:0 16px 16px; }
#mb-newsletter-panel .mb-newsletter-code { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0; margin:0 0 12px; border:0; background:none; color:var(--mb-accent); font-size:26px; line-height:32px; font-weight:700; cursor:pointer; }
#mb-newsletter-panel [data-newsletter-success] > p { margin:0 0 16px; color:#000; font-size:18px; line-height:25px; }
#mb-newsletter-panel [data-newsletter-success] .mb-newsletter-confirmation { font-size:13px; line-height:19px; }
#mb-newsletter-panel [data-newsletter-success] .mb-button { display:block; margin-top:16px; padding:12px; font-size:14px; }
#mb-newsletter-panel .mb-newsletter-code:focus-visible { outline:2px solid #535963; outline-offset:4px; }
@media(max-width:400px) { #mb-newsletter-panel [data-newsletter-success] > p { font-size:17px; line-height:24px; } }

#mb-newsletter-panel h2 { font: 400 var(--mb-h2-size)/1.2727272727 Assistant, sans-serif; color: #121212; letter-spacing: .66px; }
/* Titre d'accueil : style calculé du popup de Claire, relevé le 25 octobre 2026. */
#mb-newsletter-panel .mb-newsletter-heading h2 {
    margin:0 0 5px;
    padding:0;
    font:normal 700 22px/26px Helvetica,Arial,sans-serif;
    letter-spacing:.6px;
    text-transform:none;
    text-align:center;
    color:#000;
}

/* Confidentialité : lecture sur place, sans perdre la saisie de la newsletter. */
.mb-newsletter-privacy { position:fixed; inset:0; box-sizing:border-box; width:640px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:36px; overflow:auto; overscroll-behavior:contain; border:0; border-radius:10px; background:#fff; color:#121212; text-align:left; box-shadow:0 26px 80px #0003; font:16px/1.6 Assistant,Arial,sans-serif; }
.mb-newsletter-privacy:not([open]) { display:none; }
.mb-newsletter-privacy::backdrop { background:rgb(0 0 0 / 35%); }
html:has(.mb-newsletter-privacy[open]), body:has(.mb-newsletter-privacy[open]) { overflow:hidden; }
.mb-newsletter-privacy h2 { margin:0 36px 20px 0; font-size:28px; line-height:1.25; }
.mb-newsletter-privacy h3, .mb-privacy-page h3 { margin:24px 0 8px; font-size:20px; line-height:1.35; }
.mb-newsletter-privacy p { margin:0 0 14px; }
.mb-newsletter-privacy a { color:inherit; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.mb-privacy-close { position:sticky; float:right; top:0; width:44px; height:44px; margin:-16px -16px 0 0; padding:0; border:0; border-radius:50%; background:#fff; color:#121212; font:28px/1 Arial,sans-serif; cursor:pointer; }
.mb-newsletter-privacy :focus-visible { outline:2px solid #535963; outline-offset:3px; }
.mb-newsletter-privacy h2:focus { outline:none; }
.mb-privacy-page { max-width:780px; margin:auto; }
@media(max-width:600px) { .mb-newsletter-privacy { padding:28px 24px; } .mb-newsletter-privacy h2 { font-size:25px; } }
