/* 1.4.4: scoped reading controls, contact and history. Baseline corrections.css unchanged. */
.afemise-test-home.afemise-v4-test .af-nav-home,
.afemise-test-home.afemise-v4-test .af-desktop-nav .af-nav-disclosure>summary {white-space:nowrap;overflow-wrap:normal;word-break:normal;}
/* Tablet portrait uses the same proven disclosure menu as mobile. */
@media(max-width:1100px) {
 .afemise-test-home.afemise-v4-test .af-desktop-nav {display:none!important;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu {display:block!important;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu>summary {padding:14px 0;font-weight:600;display:flex;justify-content:space-between;align-items:center;list-style:none;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu .af-menu-list {display:block;padding-bottom:12px;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu .af-menu-list>li {border-top:1px solid var(--af-line);}
 .afemise-test-home.afemise-v4-test .af-mobile-menu :is(.af-nav-home,.af-nav-disclosure>summary) {font-size:1em;padding:13px 0;white-space:normal;overflow-wrap:normal;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu .af-submenu {position:static;width:100%;max-width:none;max-height:none;box-shadow:none;border-radius:8px;margin-bottom:10px;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu .af-submenu a {padding:12px;font-size:.95em;}
 .afemise-test-home.afemise-v4-test .af-mobile-menu[open] {max-height:calc(100dvh - 80px);overflow-y:auto;}
}

.afemise-test-home.afemise-v4-test .afc-reading-bar {background:var(--af-paper);border-top:1px solid var(--af-line);border-bottom:1px solid var(--af-line);}
.afemise-test-home.afemise-v4-test .afc-reading-settings>summary {display:list-item;padding:12px 0;min-height:44px;list-style:disclosure-closed;font-size:.9em;font-weight:600;}
.afemise-test-home.afemise-v4-test .afc-reading-settings[open]>summary {list-style:disclosure-open;}
.afemise-test-home.afemise-v4-test .afc-reading-controls {display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding-block:6px 12px;}
.afemise-test-home.afemise-v4-test .afc-reading-controls label {display:flex;align-items:center;gap:10px;min-height:44px;flex-wrap:wrap;}
.afemise-test-home.afemise-v4-test .afc-reading-controls input {width:20px;height:20px;accent-color:var(--af-brand);flex:none;}
.afemise-test-home.afemise-v4-test .afc-reading-settings p {font-size:.85em;margin:0 0 12px;}
.afemise-test-home.afemise-v4-test :is(.afc-reading-controls select,.afc-reading-controls button,.afc-social-load) {font:inherit;min-height:44px;background:var(--af-paper);color:var(--af-ink);border:1px solid var(--af-line);border-radius:8px;padding:8px 12px;max-width:100%;}
.afemise-test-home.afemise-v4-test .afc-read-time {font-size:.82em!important;line-height:1.6;margin:8px 0 22px!important;color:var(--af-muted);}
.afemise-test-home.afemise-v4-test .afc-read-time span {display:inline;}
.afemise-test-home.afemise-v4-test .afc-rdv-history {margin-top:24px;padding-top:18px;border-top:1px solid #38525940;}
.afemise-test-home.afemise-v4-test .afc-rdv-history h4 {font:600 1em/1.5 Montserrat,Arial,sans-serif;margin:0 0 14px;}
.afemise-test-home.afemise-v4-test .afc-rdv-history ul {margin:0;padding-inline-start:1.5em;}
.afemise-test-home.afemise-v4-test .afc-rdv-history li {margin:0 0 14px;font-size:.9em;line-height:1.65;}
.afemise-test-home.afemise-v4-test .afc-contact-form {max-width:850px;}
.afemise-test-home.afemise-v4-test .afc-contact-form label {display:block;font-weight:600;margin:0 0 20px;}
.afemise-test-home.afemise-v4-test .afc-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.afemise-test-home.afemise-v4-test .afc-contact-form :is(input:not([type=hidden]),select,textarea) {display:block;width:100%;max-width:100%;font:400 1em/1.5 Helvetica,Arial,sans-serif;color:var(--af-ink);background:var(--af-paper);border:1px solid #748e92;border-radius:8px;min-height:48px;margin-top:8px;padding:12px;}
.afemise-test-home.afemise-v4-test .afc-contact-form textarea {resize:vertical;min-height:180px;}
.afemise-test-home.afemise-v4-test .afc-contact-form button {background:var(--af-navy);color:#fff;border:2px solid transparent;border-radius:8px;padding:12px 20px;min-height:48px;font:600 1em/1.5 Helvetica,Arial,sans-serif;}
.afemise-test-home.afemise-v4-test .afc-contact-form button:disabled {opacity:.7;}
.afemise-test-home.afemise-v4-test .afc-form-note {font-size:.85em;}
.afemise-test-home.afemise-v4-test .afc-form-status {margin:18px 0 0;}
.afemise-test-home.afemise-v4-test .afc-form-links {margin:12px 0 0!important;font-size:.9em;}
.afemise-test-home.afemise-v4-test :is(input,select,textarea,button,summary):focus-visible {outline:3px solid var(--af-navy);outline-offset:4px;}
@media(max-width:760px) {.afemise-test-home.afemise-v4-test .afc-form-grid {grid-template-columns:1fr;gap:0;}.afemise-test-home.afemise-v4-test .afc-read-time span {display:block;}}
/* Dark mode is independent from low-energy mode. Images and credits stay intact. */
html.afc-dark {color-scheme:dark;background:#142326;}
html.afc-dark body {background:#142326;}
html.afc-dark .afemise-test-home.afemise-v4-test {--af-ink:#e6f1f1;--af-muted:#c0d3d4;--af-paper:#1c3033;--af-canvas:#142326;--af-line:#54777a;--af-blue:#213747;--af-pink:#3e2931;--af-green:#293c2c;--af-yellow:#403820;--af-cream:#283237;--af-navy:#8bc9ce;color:var(--af-ink);background:var(--af-canvas);}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af-header,.af-nav-bar,.af-submenu,.afemise-v1-card,.afemise-v1-visual-card,.af41-card,.afc-card,.afc-partner,.af-partner-card,.afc-photo,.af5-doc-cover,.af41-faq,.af41-faq>div,.af41-note,.af-key-note,.afc-explanation,.af41-table td,.af41-table th) {background:var(--af-paper)!important;color:var(--af-ink)!important;border-color:var(--af-line);}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.afemise-v1-section,.af-page-intro,.afemise-v1-hero,.af-footer,.af-resource-filters,.af41-toc) {background:var(--af-canvas)!important;color:var(--af-ink)!important;border-color:var(--af-line);}
html.afc-dark .afemise-test-home.afemise-v4-test :is(h1,h2,h3,h4,p,li,dt,dd,figcaption,.afc-credit-line,.afc-sources,.afemise-v1-eyebrow,.af41-table caption,.af41-ref,.af-photo-credit) {color:inherit!important;}
html.afc-dark .afemise-test-home.afemise-v4-test a {color:#9cdae0!important;}
html.afc-dark .afemise-test-home.afemise-v4-test .afc-read-time {color:var(--af-muted)!important;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af-topbar,.af-small-button,.wp-block-button__link,.af-social-icon,.af-video-load span,.afc-contact-form button) {background:#30526a!important;color:#fff!important;}
html.afc-dark .afemise-test-home.afemise-v4-test .af-donate-link {color:var(--af-ink)!important;background:var(--af-paper)!important;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af-nav-home:hover,.af-nav-disclosure[open]>summary,.af-submenu a:hover) {background:#294347!important;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.afc-severity,.afc-abcd)>div {background:var(--af-paper)!important;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af41-urgence,.afc-license-note) {background:#403820!important;color:var(--af-ink)!important;}
html.afc-dark .afemise-test-home.afemise-v4-test .afc-pause-list dt {color:#9cdae0!important;}
html.afc-dark .afemise-test-home.afemise-v4-test .af5-network-icon {background:var(--af-paper);color:#9cdae0;}
html.afc-low-energy .afemise-test-home.afemise-v4-test *,
html.afc-low-energy .afemise-test-home.afemise-v4-test *::before,
html.afc-low-energy .afemise-test-home.afemise-v4-test *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;box-shadow:none!important;}
html.afc-low-energy .afemise-test-home.afemise-v4-test .afemise-v1-card:hover {transform:none!important;}
html.afc-low-energy .afemise-test-home.afemise-v4-test .af-hero-visual::before {display:none;}
@media(prefers-reduced-motion:reduce) {html.afc-reader-view {scroll-behavior:auto;}}
@media print {.afc-reading-bar,.afc-contact-form,.afc-social-load {display:none!important;}html.afc-dark .afemise-test-home.afemise-v4-test {--af-ink:#385259;--af-muted:#4d646a;--af-paper:#fff;--af-canvas:#fff;--af-line:#d4e3e3;color-scheme:light;}html.afc-dark .afemise-test-home.afemise-v4-test a {color:#30526a!important;}}
/* Button contrast remains readable in each display mode, including hover. */
.afemise-test-home.afemise-v4-test .afemise-v1-secondary .wp-block-button__link {background:var(--af-paper)!important;color:var(--af-ink)!important;border-color:var(--af-line);}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af-copy-email,.af-resource-filters button,.af-video-load) {background:var(--af-paper)!important;color:var(--af-ink)!important;border-color:var(--af-line)!important;}
html.afc-dark .afemise-test-home.afemise-v4-test .afemise-v1-secondary .wp-block-button__link {background:var(--af-paper)!important;color:#9cdae0!important;}
.afemise-test-home.afemise-v4-test [hidden] {display:none!important;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.afemise-v1-quick,.afemise-v1-note,.af41-table,.af41-table caption,.af-resource-filters input,.af-resource-filters select) {background:var(--af-paper)!important;color:var(--af-ink)!important;border-color:var(--af-line);}
html.afc-reader-view .afemise-test-home.afemise-v4-test .wp-block-button__link {transition:box-shadow .18s ease;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af-project-feature,.af-project-split,.af-project-copy,.af-photo-credit) {background:var(--af-paper)!important;color:var(--af-ink)!important;border-color:var(--af-line);}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.af-bank-image,.af-instagram-placeholder) {background:var(--af-paper)!important;color:var(--af-ink)!important;}
@media print {html.afc-dark .afemise-test-home.afemise-v4-test {color:#385259!important;}html.afc-dark .afemise-test-home.afemise-v4-test :is(a,.afemise-v1-secondary .wp-block-button__link) {color:#30526a!important;}}

.afemise-test-home.afemise-v4-test .afc-reading-panel {width:360px;padding:18px;max-height:min(75vh,650px);}
.afemise-test-home.afemise-v4-test .afc-reading-controls {display:grid;grid-template-columns:1fr;gap:12px;margin:0;padding:0;}
.afemise-test-home.afemise-v4-test .afc-reading-controls label {margin:0;min-height:44px;}
.afemise-test-home.afemise-v4-test .afc-reading-controls select {width:100%;}
.afemise-test-home.afemise-v4-test .afc-reading-controls button {justify-self:start;}
.afemise-test-home.afemise-v4-test .afc-reader-help {position:relative;display:flex;justify-content:flex-end;margin-top:12px;}
.afemise-test-home.afemise-v4-test .afc-reader-info {display:grid;place-items:center;width:44px;height:44px;flex:none;background:var(--af-paper);color:var(--af-ink);border:1px solid var(--af-line);border-radius:50%;cursor:pointer;}
.afemise-test-home.afemise-v4-test .afc-reader-tip {position:absolute;right:0;bottom:calc(100% + 8px);width:min(100%,440px);max-width:none!important;margin:0!important;padding:16px;font-size:.9em;line-height:1.65;background:var(--af-paper);color:var(--af-ink);border:1px solid var(--af-line);border-radius:10px;box-shadow:0 8px 24px #193b4220;z-index:12;}
.afemise-test-home.afemise-v4-test .afc-reader-menu>details>summary {white-space:nowrap;}
@media(max-width:1100px) {
 .afemise-test-home.afemise-v4-test .af-mobile-menu .afc-reading-panel {width:100%;max-height:none;padding:18px;}
}

.afemise-test-home.afemise-v4-test .afc-reading-settings>summary {display:flex;align-items:center;gap:8px;list-style:none;padding:17px 12px;font-size:.87em;min-height:0;background:#edf5f5;color:#30526a;border-inline-start:3px solid #288c8f;}
.afemise-test-home.afemise-v4-test .afc-reading-settings[open]>summary {list-style:none;}
.afemise-test-home.afemise-v4-test .afc-reader-symbol {flex:none;}
.afemise-test-home.afemise-v4-test .afc-reader-menu {margin-inline-end:8px;}
.afemise-test-home.afemise-v4-test .af-mobile-menu .afc-reading-settings>summary {font-size:1em;padding:13px 12px;}
.afemise-test-home.afemise-v4-test .afc-contact-form {width:100%;max-width:none;}
.afemise-test-home.afemise-v4-test .afc-contact-form p {max-width:none!important;margin:0 0 22px;}
.afemise-test-home.afemise-v4-test .afc-contact-form .afc-form-note {margin:22px 0 26px!important;}
.afemise-test-home.afemise-v4-test .afc-contact-form .afc-form-status {margin:20px 0 0!important;}
.afemise-test-home.afemise-v4-test .afc-form-status:empty {display:none;}
.afemise-test-home.afemise-v4-test .afc-direct-email-help {margin-block:0 26px!important;}
.afemise-test-home.afemise-v4-test .afc-rdv-history {margin-top:22px;padding:0;border:1px solid #38525940;border-radius:10px;background:#ffffff60;}
.afemise-test-home.afemise-v4-test .afc-rdv-history details>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;list-style:none;cursor:pointer;font-weight:600;font-size:.9em;}
.afemise-test-home.afemise-v4-test .afc-rdv-count {font-size:.85em;font-weight:400;margin-inline-start:auto;white-space:nowrap;}
.afemise-test-home.afemise-v4-test .afc-rdv-history ol {list-style:none;margin:0;padding:0 16px 12px;}
.afemise-test-home.afemise-v4-test .afc-rdv-history li {display:grid;grid-template-columns:6.4em minmax(0,1fr);gap:14px;margin:0;padding:12px 0;border-top:1px solid #38525930;font-size:.9em;line-height:1.5;}
.afemise-test-home.afemise-v4-test .afc-rdv-history time {font-size:.9em;font-variant-numeric:tabular-nums;white-space:nowrap;}
.afemise-test-home.afemise-v4-test .afc-rdv-title {font-weight:600;display:block;}
.afemise-test-home.afemise-v4-test .afc-rdv-speaker {display:block;margin-top:4px;font-size:.9em;}
html.afc-dark .afemise-test-home.afemise-v4-test {--af-dark:#9cdae0;--af-soft:#213747;}
html.afc-dark .afemise-test-home.afemise-v4-test :is(.afc-reading-settings>summary,.af-nav-home[aria-current=page]) {background:#294347!important;color:#e6f1f1;}
html.afc-dark .afemise-test-home.afemise-v4-test .afc-rdv-history {background:var(--af-paper);border-color:var(--af-line);}
html.afc-dark .afemise-test-home.afemise-v4-test .afc-rdv-history li {border-color:var(--af-line);}
@media(max-width:480px) {.afemise-test-home.afemise-v4-test .afc-rdv-history li {grid-template-columns:1fr;gap:5px;}}
@media print {.afc-reader-menu{display:none!important;}}
/* Preserve standard 1.4.3 link styling; distinguish text links in the new dark mode. */
html.afc-dark .afemise-test-home.afemise-v4-test :is(.afemise-v1-section,.af-page-intro,.af-footer) :is(p,li,td,dd) a:not(.wp-block-button__link):not(.af-social-icon) {text-decoration:underline;text-underline-offset:.22em;}
.afemise-test-home.afemise-v4-test .afc-reading-settings>summary>span:first-of-type {flex:1;}
/* Let enlarged action labels retain their padding without changing standard buttons. */
