/* EconollamaAI V8.1 : interface sobre, contraste renforcé, aucune ancienne carte bleu marine. */
:root{--v81-ink:#172c20;--v81-green:#0a5a32;--v81-muted:#3b5142;--v81-pale:#f3f8f2;--v81-line:#d9e6d9;--v81-gold:#b18b39;color-scheme:light}
html,body{background:#fff!important;color:var(--v81-ink)!important}
body .v6-header{background:#fff!important;border-bottom:2px solid #d6bf87!important}
body .v6-header nav{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important}
body .v6-header nav>a{color:#164a2d!important;background:transparent!important}
body .v6-header nav>a:hover,body .v6-header nav>a[aria-current=page]{background:#e9f4e9!important;color:#0a4d29!important}
.v81-auth-actions{display:inline-flex;gap:7px;align-items:center;margin-left:auto}
.v81-auth-actions [hidden]{display:none!important}
body .v6-header .v81-auth-actions .v81-login,body .v6-header .v81-auth-actions .v81-logout{font:600 13px Arial,sans-serif!important;display:inline-flex;align-items:center;justify-content:center;padding:9px 13px!important;border-radius:8px!important;text-decoration:none!important;min-width:91px;line-height:1.2!important}
body .v6-header .v81-auth-actions .v81-login{background:#eff7ef!important;color:#09542b!important;border:1px solid #b7d5bb!important}
body .v6-header .v81-auth-actions .v81-logout{background:#0a6035!important;color:#fff!important;border:1px solid #0a6035!important}
body main,body main.shell,body main.auth-shell{background:#fff!important;color:var(--v81-ink)!important}
body main h1{color:#103e25!important;letter-spacing:-.02em;line-height:1.2}
body main h1::before{content:"";display:inline-block;vertical-align:middle;width:44px;height:44px;margin:0 15px 5px 0;background:#eef6ec center/29px no-repeat;border:1px solid #d5e4d2;border-radius:12px;background-image:url('/assets/v81/book.svg')}
body[data-v81-page="atlas"] main h1::before{background-image:url('/assets/v81/globe.svg')}
body[data-v81-page="chronologie"] main h1::before{background-image:url('/assets/v81/calendar.svg')}
body[data-v81-page="quiz"] main h1::before{background-image:url('/assets/v81/quiz.svg')}
body[data-v81-page="consultation"] main h1::before{background-image:url('/assets/v81/chat.svg')}
body[data-v81-page="economistes"] main h1::before,body[data-v81-page="biographie"] main h1::before{background-image:url('/assets/v81/people.svg')}
body[data-v81-page="courants"] main h1::before,body[data-v81-page="courant"] main h1::before{background-image:url('/assets/v81/columns.svg')}
body[data-v81-page="login"] main h1::before{background-image:url('/assets/v81/key.svg')}
body[data-v81-page="account"] main h1::before{background-image:url('/assets/v81/user.svg')}
body[data-v81-page="index"] main h1::before{display:none}
body main p,body main li,body main label,body main small,body main td,body main th,body main summary,body main span:not(.v6-home-icon):not(.v6-mark),body main strong{color:#25372b!important;text-shadow:none!important;opacity:1!important}
body main h2,body main h3,body main h4{color:#104a2c!important;text-shadow:none!important}
body main .lead,body main .muted,body main .v4-source{color:#344b3c!important}
/* Old themes frequently apply blue gradients to nested cards and controls. */
body main :is(.v4-panel,.v5-card,.v4-card,.panel,.card,.box,.v6-note,.v7-section,.v7-bio-panel,.event,.entry,.result,.dictionary,.dictionary-entry,.dictionary-result,.admin-panel,.auth-card,.consult-panel,.quiz-card,.question,.answer,.notice,.info,.callout,.definition,.v4-toolbar,.v5-toolbar,.filters,.tabs,.section-heading,.v5-grid>*,.cards>*,.v4-cards>*,.timeline>article,.v4-timeline>article){background:#f7fbf6!important;background-image:none!important;color:#213b2b!important;border-color:#d6e5d6!important;box-shadow:0 3px 14px rgba(18,66,35,.06)!important}
body main :is(.v4-panel,.v5-card,.v4-card,.panel,.card,.box,.v6-note,.v7-section,.v7-bio-panel,.event,.entry,.result,.dictionary,.dictionary-entry,.admin-panel,.auth-card,.consult-panel,.quiz-card,.v5-grid>*,.cards>*){border-radius:12px!important}
body main :is(.v4-panel,.v5-card,.v4-card,.panel,.card,.v6-note,.v7-section,.v7-bio-panel,.event,.entry,.result,.dictionary,.admin-panel,.auth-card,.consult-panel) :is(p,span,li,small,strong,label){color:#263e2e!important;text-shadow:none!important}
body main :is(.v4-panel,.v5-card,.v4-card,.panel,.card,.v6-note,.v7-section,.v7-bio-panel,.event,.entry,.result,.dictionary,.admin-panel,.auth-card,.consult-panel) :is(h2,h3,h4){color:#104c2c!important}
body main :is(.v5-grid>*,.cards>*,.v4-cards>*){border:1px solid #d5e4d5!important;border-bottom:3px solid #87b18b!important;padding:18px!important;transition:transform .18s ease,box-shadow .18s ease}
body main :is(.v5-grid>*,.cards>*,.v4-cards>*):hover{transform:translateY(-2px);box-shadow:0 7px 20px rgba(13,70,38,.11)!important}
body main :is(.v4-toolbar,.v5-toolbar,.filters,.tabs){background:#eff7ee!important;border:1px solid #d7e5d7!important;border-radius:10px!important;padding:12px!important}
body main input:not([type=checkbox]):not([type=radio]),body main textarea,body main select{background:#fff!important;color:#1b3526!important;border:1px solid #afc9b2!important;border-radius:8px!important}
body main input::placeholder,body main textarea::placeholder{color:#54695a!important;opacity:1!important}
body main :is(button,.btn,[type=submit]){background:#0b6337!important;color:#fff!important;border:1px solid #0b6337!important;border-radius:8px!important}
body main :is(button,.btn,[type=submit]):hover{background:#084d2b!important}
body main :is(button,.btn,[type=submit]) :is(span,strong){color:#fff!important}
body main :is(.tabs button:not(.selected):not([aria-selected=true])){background:#e7f1e6!important;color:#164b2c!important;border-color:#bfd7c1!important}
body main .tabs button.selected,body main .tabs button[aria-selected=true]{background:#0b6337!important;color:#fff!important}
body main :is(table,thead,tbody,tr,td,th){color:#203b29!important;border-color:#dce8dc!important}
body main th{background:#e7f2e7!important}body main td{background:#fff!important}
body main a:not(.btn):not(.v6-home-card){color:#075a31!important}
body main a:focus-visible,body main button:focus-visible{outline:3px solid #b78e34!important;outline-offset:2px}
body main :is(.v6-home-card){background:#f8fbf7!important;border:1px solid #d7e5d7!important;border-bottom:3px solid #9dbb9c!important}
body main .v6-home-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;background:#eaf4e9;border-radius:12px;font-size:0!important}
body main .v6-home-card:nth-child(1) .v6-home-icon{background:#eaf4e9 url('/assets/v81/book.svg') center/31px no-repeat}
body main .v6-home-card:nth-child(2) .v6-home-icon{background:#eaf4e9 url('/assets/v81/people.svg') center/31px no-repeat}
body main .v6-home-card:nth-child(3) .v6-home-icon{background:#eaf4e9 url('/assets/v81/columns.svg') center/31px no-repeat}
body main .v6-home-card:nth-child(4) .v6-home-icon{background:#eaf4e9 url('/assets/v81/globe.svg') center/31px no-repeat}
body main .v6-home-card:nth-child(5) .v6-home-icon{background:#eaf4e9 url('/assets/v81/calendar.svg') center/31px no-repeat}
body main .v6-home-card:nth-child(6) .v6-home-icon{background:#eaf4e9 url('/assets/v81/quiz.svg') center/31px no-repeat}
body main .v6-home-card:nth-child(7) .v6-home-icon{background:#eaf4e9 url('/assets/v81/chat.svg') center/31px no-repeat}
body[data-v81-page="index"] .v6-home-hero{position:relative;background:#fff!important}
body[data-v81-page="index"] .v6-home-hero::after{content:"";display:block;width:min(330px,80%);height:145px;margin:12px auto 0;background:url('/assets/v81/books-globe.svg') center/contain no-repeat;opacity:.9}
body[data-v81-page="index"] .v6-search{display:none!important}
body[data-v81-page="login"] .auth-card,body[data-v81-page="account"] #profile{max-width:680px;margin-inline:auto;padding:25px!important;border:1px solid #d8e6d8!important;border-radius:14px;background:#f8fbf7!important}
body[data-v81-page="account"] main>section{max-width:680px;margin:20px auto;padding:22px;border:1px solid #e8d5ce!important;border-radius:12px;background:#fffaf8!important}
body[data-v81-page="consultation"] #panel-dictionary,body[data-v81-page="consultation"] #panel-chat{background:#f8fbf7!important;color:#1d3828!important}
/* Keep maps, SVG charts, and data visualizations intact */
body main :is(.leaflet-container,.leaflet-pane,.leaflet-tile-pane,.leaflet-map-pane,.leaflet-layer,.leaflet-tile,.leaflet-marker-icon,canvas,svg){background-image:initial}
@media(max-width:850px){.v81-auth-actions{margin-left:0}body main h1::before{width:36px;height:36px;background-size:24px}}
