/* Essai 26 — 18 novembre 2026 */
body.bbpress{background:#f7f2e6;color:#101e35}
body.bbpress header.wp-block-template-part,body.bbpress footer.wp-block-template-part{display:none}
body.bbpress main{padding:32px 20px;max-width:1000px;margin-inline:auto}
body.bbpress #bbpress-forums{font-size:17px;line-height:1.7;overflow-wrap:anywhere}
body.bbpress #bbpress-forums input[type=text],body.bbpress #bbpress-forums textarea{font-size:18px;padding:12px;max-width:100%}
body.bbpress .bbp-breadcrumb{display:none}
body.bbpress .ldqc-forum-nav{padding:20px;margin-bottom:24px;background:#fffcf6;border:1px solid #101e3526;border-radius:8px}
.ldqc-forum-back{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.ldqc-forum-back a{display:inline-block;padding:10px 16px;background:#f3cf72;color:#101e35;border-radius:5px;text-decoration:none;font-size:18px;font-weight:600;min-height:48px}
.ldqc-forum-nav h2{font:32px/1.3 Georgia,serif;margin:16px 0}
.ldqc-forum-salons{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:24px 0}
.ldqc-forum-salons a{display:block;padding:16px;border:1px solid #768499;border-radius:8px;font-size:17px;line-height:1.5;text-decoration:none;color:#193d66}
.ldqc-forum-salons a[aria-current=page]{background:#101e35;color:#fff;border-color:#101e35}
.ldqc-forum-guide{font-size:16px;line-height:1.7}
body.bbpress #bbpress-forums .bbp-form p:has(#bbp_stick_topic_select),body.bbpress #bbpress-forums .bbp-form p:has(#bbp_topic_status_select),body.bbpress #bbpress-forums .bbp-form p:has(#bbp_topic_tags),body.bbpress #bbpress-forums .quicktags-toolbar,body.bbpress #bbpress-forums .bbp-form>.bbp-template-notice.info{display:none}
body.bbpress #bbpress-forums fieldset.bbp-form{background:#fffcf6;border-radius:8px;padding:24px}
body.bbpress #bbpress-forums fieldset.bbp-form legend{font-size:21px;font-weight:600}
body.bbpress #bbpress-forums fieldset.bbp-form .bbp-template-notice:not(.error):not(.info){display:none}
body.bbpress #bbp_topic_title,body.bbpress #bbp_reply_content{scroll-margin-top:80px}
body.bbpress #bbpress-forums button[type=submit]{padding:12px 20px;min-height:48px;font-size:18px;background:#f3cf72;color:#101e35;border:1px solid #c39c43}
body:has(.ldqc-reader){background:#f7f2e6;color:#101e35}
body:has(.ldqc-reader) header.wp-block-template-part,body:has(.ldqc-reader) footer.wp-block-template-part{display:none}
body:has(.ldqc-reader) main{padding-top:32px;padding-bottom:40px}
body:has(.ldqc-reader) .wp-block-post-content,body:has(.ldqc-reader) .wp-block-post-title{max-width:900px;margin-inline:auto}
.ldqc-reader{font-size:18px;line-height:1.75;letter-spacing:.012em;overflow-wrap:anywhere}
.ldqc-reader *{box-sizing:border-box}
.ldqc-reader .ldqc-brand{font-size:14px;letter-spacing:.14em;font-weight:700}
.ldqc-reader .ldqc-lead{font-size:21px;max-width:48ch}
.ldqc-nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin:24px 0 32px}
.ldqc-reader a{color:#193d66;text-underline-offset:4px}
.ldqc-card{background:#fffcf6;border:1px solid #101e3526;border-radius:12px;padding:clamp(20px,4vw,36px);margin:24px 0;scroll-margin-top:48px}
.ldqc-card h2{font-family:Georgia,serif;font-size:clamp(27px,5vw,36px);line-height:1.25;margin:0 0 20px}
.ldqc-reader .ldqc-small{font-size:15px;line-height:1.65;color:#435167}
.ldqc-reader .ldqc-eyebrow{font-size:13px;letter-spacing:.14em;font-weight:700;margin:0 0 8px}
.ldqc-reader label{display:block;font-weight:600;margin:20px 0 8px}
.ldqc-reader input[type=number],.ldqc-reader textarea,.ldqc-reader select{width:100%;font:inherit;line-height:1.5;padding:12px;border:1px solid #788697;border-radius:5px;background:#fff;color:#101e35;min-height:48px}
.ldqc-reader textarea{resize:vertical}
.ldqc-reader input[type=number]{max-width:180px}
.ldqc-reader button,.ldqc-reader .ldqc-button{display:inline-block;font:inherit;line-height:1.4;background:#f3cf72;color:#101e35;border:1px solid #c39c43;border-radius:5px;padding:12px 18px;margin-top:14px;text-decoration:none;cursor:pointer;min-height:48px}
.ldqc-reader .ldqc-secondary{background:#fff;border-color:#788697;font-size:16px}
.ldqc-reader button:hover,.ldqc-reader .ldqc-button:hover{background:#ffe4a0}
.ldqc-reader :focus-visible{outline:3px solid #205c9c;outline-offset:4px}
.ldqc-reader .ldqc-check{display:flex;gap:10px;align-items:center;font-weight:400}
.ldqc-reader .ldqc-check input{width:22px;height:22px;flex-shrink:0}
.ldqc-reader .ldqc-notice{border-left:5px solid #2d7045;background:#eaf4e9;padding:16px}
.ldqc-reader details{padding:16px 0;border-top:1px solid #101e3526}
.ldqc-reader summary{cursor:pointer;font-weight:600}
.ldqc-reader .ldqc-text{white-space:pre-wrap}
.ldqc-question{margin-top:28px;border-top:1px solid #101e3526;padding-top:16px}
.ldqc-reading-gate{border-left:5px solid #d2a23c;background:#fff7df;padding:20px;border-radius:5px}
.ldqc-reading-gate h3{font-size:23px;line-height:1.35}
.ldqc-reader .ldqc-reading-gate input[type=text]{width:100%;font:inherit;line-height:1.5;padding:12px;border:1px solid #788697;border-radius:5px;background:#fff;color:#101e35;min-height:48px}
.ldqc-reader button:disabled{opacity:.6;cursor:not-allowed}
.ldqc-exit-nav{margin:40px 0 24px;padding:28px;background:#101e35;color:#fff;border-radius:10px;clear:both}
.ldqc-exit-nav h2{font:28px/1.3 Georgia,serif;color:#fff;margin:0 0 20px}
.ldqc-exit-links{display:flex;flex-wrap:wrap;gap:12px}
.ldqc-exit-links a,.ldqc-reader .ldqc-exit-links a{display:inline-flex;align-items:center;min-height:48px;padding:12px 16px;background:#f3cf72;color:#101e35;border:1px solid #f3cf72;border-radius:5px;font-size:17px;line-height:1.5;text-decoration:none}
.ldqc-exit-links a.ldqc-exit-logout{background:transparent;color:#fff;border-color:#c4d0e0}
.ldqc-exit-nav .ldqc-small{color:#e0e8f4}
.ldqc-exit-links a:focus-visible{outline:3px solid #fff;outline-offset:4px}
@media(max-width:600px){.ldqc-exit-nav{padding:20px}.ldqc-exit-links a{width:100%}}
@media(max-width:600px){.ldqc-reader{font-size:18px}.ldqc-reader .ldqc-lead{font-size:20px}.ldqc-reader button{width:100%}.ldqc-nav{gap:10px 16px}.ldqc-card{border-radius:8px;margin:18px 0}body:has(.ldqc-reader) main{padding-top:12px}}

.ldqc-salon-locked{padding:16px;border:1px dashed #788697;border-radius:8px;font-size:17px;line-height:1.5}

.ldqc-history-item summary{line-height:1.65}.ldqc-history-item[open]{padding-bottom:24px}

/* Essai 27 — 18 novembre 2026 : lecture sur téléphone, sans cadres imbriqués. */
@media(max-width:600px){
 body:has(.ldqc-reader) main{box-sizing:border-box;width:100%;max-width:none;margin-inline:0!important;padding:16px 12px 28px!important}
 body:has(.ldqc-reader) main>.wp-block-group{padding-inline:0!important}
 body:has(.ldqc-reader) main .wp-block-post-content,body:has(.ldqc-reader) main .wp-block-post-title{box-sizing:border-box;width:100%;max-width:100%!important;margin-inline:0!important;padding-inline:0!important}
 .ldqc-reader{width:100%;max-width:100%;margin-inline:0;font-size:18px;line-height:1.7}
 .ldqc-reader .ldqc-card{border:0;border-radius:0;background:transparent;padding:20px 0;margin:12px 0;border-top:1px solid #101e3526}
 .ldqc-reader .ldqc-card:first-of-type{border-top:0}
 .ldqc-reader .ldqc-reading-gate{padding:14px 12px;border-left-width:3px;border-radius:3px}
 .ldqc-reader .ldqc-notice{padding:12px;border-left-width:3px}
 .ldqc-reader h2{font-size:28px;line-height:1.3}
 .ldqc-reader h3,.ldqc-reader .ldqc-reading-gate h3{font-size:22px;line-height:1.4}
 .ldqc-reader input,.ldqc-reader textarea,.ldqc-reader select{max-width:100%;font-size:18px}
 .ldqc-reader .ldqc-check{align-items:flex-start;gap:10px}
 .ldqc-reader .ldqc-check input{margin-top:4px}
 .ldqc-reader .ldqc-exit-nav{padding:18px 12px}
 .ldqc-reader .ldqc-forum-salons{grid-template-columns:minmax(0,1fr)}
 body:has(.ldqc-screen) .ldqc-screen{box-sizing:border-box;padding-inline:14px!important}
 body:has(.ldqc-screen) #lire{padding-inline:12px!important}
 body:has(.ldqc-screen) #lire .wp-block-details{padding-inline:0!important;margin-inline:0!important;border-inline:0!important}
 body:has(.ldqc-screen) #lire .wp-block-details>.wp-block-group{padding-inline:0!important}
 body:has(.ldqc-screen) #lire .wp-block-details p{font-size:19px;line-height:1.8}
 body:has(.ldqc-screen) .ldqc-screen .wp-block-group.has-background{padding-inline:14px!important}
 body:has(.ldqc-screen) .ldqc-portrait-note{padding:16px 12px}
}

/* Essai 28 — 18 novembre 2026 : neutraliser les marges négatives alignfull du thème. */
@media(max-width:600px){
 body:has(.ldqc-reader) main>.wp-block-group,
 body:has(.ldqc-reader) main .wp-block-post-content.alignfull{box-sizing:border-box;width:100%!important;min-width:0;max-width:100%!important;margin-left:0!important;margin-right:0!important;margin-inline:0!important;padding-left:0!important;padding-right:0!important}
 body:has(.ldqc-reader) main .wp-block-post-title{font-size:28px!important;line-height:1.3}
 .ldqc-reader{font-size:17px;line-height:1.65}
 .ldqc-reader .ldqc-lead{font-size:18px;line-height:1.65}
 .ldqc-reader h2{font-size:25px}
 .ldqc-reader h3,.ldqc-reader .ldqc-reading-gate h3{font-size:21px}
 .ldqc-reader input,.ldqc-reader textarea,.ldqc-reader select,.ldqc-reader button,.ldqc-reader .ldqc-button{font-size:16px}
 .ldqc-reader .ldqc-nav{font-size:16px;line-height:1.5;gap:8px 14px}
 .ldqc-reader .ldqc-small{font-size:14px}
 .ldqc-reader .ldqc-reading-gate{padding:12px 10px}
 body:has(.ldqc-screen) #lire .wp-block-details p{font-size:18px;line-height:1.75}
}
