/* BDH — newsletter, design sombre, production. */
.bdh-newsletter-slot{width:100%;max-width:1160px;margin:30px auto;padding:0 18px;box-sizing:border-box;clear:both}
.bdh-newsletter{--bdhnl-text:#f6f1e9;--bdhnl-muted:#c8c1b6;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.82fr);gap:30px;align-items:center;max-width:100%;padding:32px 36px!important;border:1px solid #46433f!important;border-radius:14px!important;background:#1e2427!important;background-image:linear-gradient(120deg,#1e2427,#293238)!important;color:var(--bdhnl-text)!important;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.bdh-newsletter__copy,.bdh-newsletter__form{min-width:0}
.bdh-newsletter__eyebrow{display:block;margin:0 0 12px;font-size:10px;font-weight:750;letter-spacing:.12em;color:#e0b38f!important}
.bdh-newsletter h2,.bdh-newsletter-afterpost h2{font:500 clamp(25px,2.6vw,37px)/1.16 Newsreader,Georgia,serif!important;letter-spacing:-.018em!important;color:#fff9f0!important;margin:0 0 12px!important}
.bdh-newsletter__copy p{font-size:13.5px;line-height:1.7;color:var(--bdhnl-muted)!important;margin:0!important}
.bdh-newsletter :is(.tnp,.tnp-subscription){margin:0!important;padding:0!important;max-width:none!important;background:transparent!important}
.bdh-newsletter .tnp form{margin:0!important}
.bdh-newsletter .tnp-field{margin:0 0 9px!important}
.bdh-newsletter .tnp-field-firstname{display:none!important}
.bdh-newsletter .tnp-field label{font-size:12px!important;font-weight:600!important;line-height:1.45!important;color:#ede8df!important;margin:0 0 5px!important}
.bdh-newsletter .tnp-field :is(input[type=email],input[type=text]){width:100%!important;min-height:44px!important;box-sizing:border-box!important;padding:10px 13px!important;background:#f6f5f2!important;color:#252525!important;border:1px solid #e4ddd0!important;border-radius:7px!important;box-shadow:none!important;font-size:14px!important}
.bdh-newsletter .tnp-field input:focus-visible{outline:2px solid #e0b38f!important;outline-offset:3px!important}
.bdh-newsletter .tnp-field-button{text-align:left!important;margin-top:10px!important}
.bdh-newsletter .tnp-field-button .tnp-submit{min-height:43px!important;border:0!important;border-radius:7px!important;background:#c9684e!important;color:#fff!important;padding:11px 24px!important;cursor:pointer!important;font-weight:700!important;font-size:13px!important;transition:background .2s ease!important}
.bdh-newsletter .tnp-field-button .tnp-submit:hover{background:#ad4e36!important}
.bdh-newsletter .tnp-privacy-field label{display:flex!important;gap:8px!important;align-items:flex-start!important;margin-top:6px!important;font-size:11px!important;font-weight:400!important;line-height:1.5!important;color:#d2cbc1!important}
.bdh-newsletter .tnp-privacy-field input[type=checkbox]{flex:0 0 auto;margin:2px 0 0!important;accent-color:#d58670}
.bdh-newsletter .tnp-privacy-field a{color:#f5bf9c!important;text-decoration:underline!important;text-underline-offset:2px}
.bdh-newsletter-slot[data-bdh-newsletter=home]{max-width:1210px;margin:42px auto}
.bdh-newsletter-slot[data-bdh-newsletter=vestige]{width:100%;padding:0;margin:25px 0}
.bdh-newsletter-slot[data-bdh-newsletter=vestige] .bdh-newsletter{display:block;padding:23px!important}
.bdh-newsletter-slot[data-bdh-newsletter=vestige] .bdh-newsletter__copy{margin-bottom:17px}
.bdh-newsletter-slot[data-bdh-newsletter=vestige] h2{font-size:27px!important}
.bdh-newsletter-slot[data-bdh-newsletter=vestige] .bdh-newsletter__eyebrow{font-size:9px}
.bdh-newsletter-slot[data-bdh-newsletter=balade]{max-width:1050px;margin:35px auto}
.bdh-newsletter-afterpost{margin:38px auto 20px!important;padding:27px 30px!important}
.bdh-newsletter-afterpost h2{font-size:27px!important}
.bdh-newsletter-afterpost .bdh-newsletter__copy p{margin-bottom:0!important}
/* Formulaire automatique « After posts » de l'extension, si elle l'insère elle-même. */
#tnp-subscription-posts,.tnp-subscription-posts{display:block;max-width:900px;margin:35px auto;padding:24px 30px;border:1px solid #46433f;border-radius:12px;background:#20282b;color:#f6f1e9}
#tnp-subscription-posts :is(h2,h3,p),.tnp-subscription-posts :is(h2,h3,p){color:#f6f1e9}
#tnp-subscription-posts input[type=email],.tnp-subscription-posts input[type=email]{background:#f7f6f4;color:#1e2427;border-radius:6px}
#tnp-subscription-posts .tnp-submit,.tnp-subscription-posts .tnp-submit{background:#c9684e;color:#fff;border-radius:6px}
/* Popup native Newsletter : sombre, discrète, lisible, et sans sortir des écrans. */
#tnp-modal{background:rgba(9,14,17,.77)!important;backdrop-filter:blur(3px)}
#tnp-modal-content{width:calc(100% - 40px)!important;max-width:460px!important;margin:min(13vh,110px) auto 20px!important;border-radius:15px!important;overflow:hidden;box-shadow:0 25px 75px rgba(0,0,0,.35)!important;background:linear-gradient(135deg,#1e2529,#2b3538)!important;border:1px solid #586064!important;color:#f5f2ed!important}
#tnp-modal-body{padding:30px!important;color:#f5f2ed!important}
#tnp-modal-body :is(h1,h2,h3){font:500 28px/1.2 Newsreader,Georgia,serif!important;color:#fff9f0!important;margin:0 0 12px!important}
#tnp-modal-body p{color:#d3cec6!important;line-height:1.6}
#tnp-modal .tnp-field-firstname{display:none!important}
#tnp-modal .tnp-field label{color:#eee9e1!important}
#tnp-modal .tnp-field input[type=email]{background:#f7f6f2!important;color:#202427!important;border-radius:7px!important}
#tnp-modal .tnp-submit{background:#c9684e!important;color:#fff!important;border:0!important;border-radius:7px!important}
#tnp-modal .tnp-privacy-field a{color:#f5c2a4!important}
#tnp-modal-close{z-index:3!important;top:9px!important;right:15px!important;color:#f2e9df!important;font-size:30px!important}
#tnp-modal-close:hover{color:#fff!important}
@media(max-width:740px){.bdh-newsletter-slot{padding:0 15px;margin:25px auto}.bdh-newsletter{display:block!important;padding:24px 22px!important;gap:0!important;border-radius:11px!important}.bdh-newsletter__copy{margin-bottom:20px}.bdh-newsletter h2{font-size:29px!important}.bdh-newsletter__copy p{font-size:13px}.bdh-newsletter .tnp-field-button .tnp-submit{width:100%!important}.bdh-newsletter-slot[data-bdh-newsletter=vestige]{padding:0!important}.bdh-newsletter-afterpost{margin:30px auto!important}#tnp-modal-content{margin:4vh auto!important}}
@media(prefers-reduced-motion:reduce){.bdh-newsletter .tnp-submit{transition:none!important}}

/* Popup contextuelle BDH : présentation distincte des encarts. */
.bdh-nl-popup[hidden]{display:none!important}
.bdh-nl-popup{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:22px;box-sizing:border-box}
.bdh-nl-popup__backdrop{position:absolute;inset:0;background:rgba(8,13,17,.79);backdrop-filter:blur(5px)}
.bdh-nl-popup__dialog{position:relative;z-index:1;width:100%;max-width:480px;max-height:calc(100dvh - 44px);overflow:auto;display:block!important;box-sizing:border-box;padding:36px!important}
.bdh-nl-popup__dialog .bdh-newsletter__copy{margin:0 0 20px}
.bdh-nl-popup__dialog h2{font-size:32px!important;padding-right:20px}
.bdh-nl-popup__close{position:absolute;right:12px;top:8px;background:transparent!important;border:0!important;color:#fff9f0!important;font-size:30px!important;line-height:1!important;cursor:pointer;padding:9px!important}
.bdh-nl-popup__close:focus-visible{outline:2px solid #f5bf9c;outline-offset:3px}
@media(max-width:740px){.bdh-nl-popup__dialog{padding:25px!important}.bdh-nl-popup__dialog h2{font-size:28px!important}}



/* Sur les articles, le formulaire de fin de lecture remplace celui du footer. */
.single-post .bdh-footer-newsletter{display:none!important}
