@font-face {
  font-family: 'DIN Next LT Pro';
  src: url('fonts/din-next-lt-pro-light.woff2') format('woff2'),
       url('fonts/din-next-lt-pro-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Next LT Pro';
  src: url('fonts/din-next-lt-pro-medium.woff2') format('woff2'),
       url('fonts/din-next-lt-pro-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body,
.mw-page-container,
.vector-body,
.vector-body .mw-body,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement),
.vector-body .mw-content-container,
.vector-body .mw-content-ltr,
.vector-body .mw-content-rtl {
  background: #000 !important;
  color: #fff !important;
}

:root,
body,
.mw-page-container,
.mw-content-container,
.vector-body,
.mw-body,
#content,
#bodyContent {
  /*--background-color-base: #000 !important;*/
  --background-color-neutral-subtle: #111 !important;
  --background-color-page-container: #000 !important;
  --color-base: #fff !important;
  --background-color-progressive: #00ff5a !important;
  --background-color-progressive--active: #0dee10 !important;
  background: #000 !important;
  color: #fff !important;
}

.mw-body,
#content,
#bodyContent,
.mw-content-container,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) {
  background: #000 !important;
  color: #fff !important;
}

body:not(.action-edit) *[style*="background"]:not(.oo-ui-dialog):not(.ve-ui-overlay-global):not(.ve-ui-overlay):not(.ve-ui-overlay *):not(.oo-ui-windowManager-modal):not(.oo-ui-windowManager-modal *):not(.ve-init-mw-desktopArticleTarget):not(.ve-init-mw-desktopArticleTarget *):not(.ve-init-target):not(.ve-init-target *):not(.ext-discussiontools-ui-targetWidget):not(.ext-discussiontools-ui-targetWidget *):not(.ext-discussiontools-ui-newTopic):not(.ext-discussiontools-ui-newTopic *):not(.ext-discussiontools-ui-newTopic-sectionTitle):not(.ext-discussiontools-ui-newTopic-sectionTitle *):not(.ve-ce-documentNode):not(.ve-ce-documentNode *):not(.ve-ui-mwPreviewElement):not(.oo-ui-buttonElement-button):not(.cdx-button):not(.cdx-checkbox__icon):not(.cdx-text-input__icon):not(.cdx-icon):not(.vector-icon):not(.mw-pas-charter-dialog__iframe):not(.oo-ui-inputWidget-input):not(.oo-ui-textInputWidget-input):not(.cdx-text-input__input):not(textarea):not(.oo-ui-dropdownWidget-handle):not(.oo-ui-dropdownWidget-handle *):not(.mw-prefs-tabs-wrapper):not(.mw-prefs-tabs-wrapper *):not(#preferences):not(#preferences *):not(.pas-footer-logo-link):not(.mw-message-box):not(.mw-message-box *):not(.cdx-message):not(.cdx-message *):not(.successbox):not(.successbox *):not(.warningbox):not(.warningbox *):not(.mw-warning-with-logexcerpt):not(.mw-warning-with-logexcerpt *):not(.errorbox):not(.errorbox *):not(.vector-dropdown-content):not(.vector-dropdown-content *):not(.uls-menu):not(.uls-menu *):not(.oo-ui-toolbar-bar):not(.oo-ui-toolbar-bar *):not(.oo-ui-toolbar):not(.oo-ui-toolbar *):not(.oo-ui-toolGroup):not(.oo-ui-toolGroup *):not(.oo-ui-toolGroup-tools):not(.oo-ui-toolGroup-tools *):not(.ve-ui-toolbar):not(.ve-ui-toolbar *):not(.mw-notification):not(.mw-notification *):not(.mw-notification-area):not(.mw-notification-area *) {
  background: #000 !important;
  color: #fff !important;
}

html {
  overflow-x: clip;
}

body {
  font-family: 'DIN Next LT Pro', Arial, sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* Layout Vector — padding inclus dans la largeur (évite scroll horizontal) */
.vector-header-container,
.mw-page-container,
.mw-page-container-inner,
.vector-header,
.mw-header {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.vector-header-container {
  width: 100% !important;
}

.pas-header {
  background: #000;
  color: #00ff5a;
  padding: 2rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 2px solid #00ff5a;
}
.pas-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.pas-site-title {
  font-size: 2rem;
  font-weight: 500;
  color: #00ff5a;
}
.pas-nav {
  margin-top: 1.2rem;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}
.pas-nav a {
  color: #00ff5a !important;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.pas-nav a:hover {
  color: #fff !important;
  border-bottom: 2px solid #00ff5a;
}
.pas-main {
  background: #000;
  min-height: 80vh;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}
.pas-content {
  background: #111;
  color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  padding: 2.5rem 2.2rem;
  max-width: 900px;
  width: 100%;
}
.pas-content a {
  color: #00ff5a !important;
  text-decoration: underline;
}
.pas-content a:hover {
  color: #fff !important;
}
.pas-footer {
  background: #000;
  color: #fff;
  padding: 2rem 0 1rem 0;
  text-align: center;
}
.pas-footer-links a {
  color: #111 !important;
  background: none !important;
  text-decoration: underline !important;
  margin: 0 0.5em;
}
.pas-footer-links a:hover {
  color: #00ff5a !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DIN Next LT Pro', Arial, sans-serif;
  font-weight: 500;
  color: #fff;
}

@media (max-width: 800px) {
  .pas-content {
    padding: 1.2rem 0.7rem;
  }
  .pas-header, .pas-footer {
    padding: 1rem 0;
  }
}

/* Suppression du style de diagnostic */
html, body, .mw-body, .vector-body, .vector-page-container {
  background: #000 !important;
  color: #fff !important;
}

/* Sélecteur universel pour écraser tout style inline de background */
body:not(.action-edit) *[style*="background"]:not(.oo-ui-dialog):not(.ve-ui-overlay-global):not(.ve-ui-overlay):not(.ve-ui-overlay *):not(.oo-ui-windowManager-modal):not(.oo-ui-windowManager-modal *):not(.ve-init-mw-desktopArticleTarget):not(.ve-init-mw-desktopArticleTarget *):not(.ve-init-target):not(.ve-init-target *):not(.ext-discussiontools-ui-targetWidget):not(.ext-discussiontools-ui-targetWidget *):not(.ext-discussiontools-ui-newTopic):not(.ext-discussiontools-ui-newTopic *):not(.ext-discussiontools-ui-newTopic-sectionTitle):not(.ext-discussiontools-ui-newTopic-sectionTitle *):not(.ve-ce-documentNode):not(.ve-ce-documentNode *):not(.ve-ui-mwPreviewElement):not(.oo-ui-buttonElement-button):not(.cdx-button):not(.cdx-checkbox__icon):not(.cdx-text-input__icon):not(.cdx-icon):not(.vector-icon):not(.mw-pas-charter-dialog__iframe):not(.oo-ui-inputWidget-input):not(.oo-ui-textInputWidget-input):not(.cdx-text-input__input):not(textarea):not(.oo-ui-dropdownWidget-handle):not(.oo-ui-dropdownWidget-handle *):not(.mw-prefs-tabs-wrapper):not(.mw-prefs-tabs-wrapper *):not(#preferences):not(#preferences *):not(.pas-footer-logo-link):not(.mw-message-box):not(.mw-message-box *):not(.cdx-message):not(.cdx-message *):not(.successbox):not(.successbox *):not(.warningbox):not(.warningbox *):not(.mw-warning-with-logexcerpt):not(.mw-warning-with-logexcerpt *):not(.errorbox):not(.errorbox *):not(.vector-dropdown-content):not(.vector-dropdown-content *):not(.uls-menu):not(.uls-menu *):not(.oo-ui-toolbar-bar):not(.oo-ui-toolbar-bar *):not(.oo-ui-toolbar):not(.oo-ui-toolbar *):not(.oo-ui-toolGroup):not(.oo-ui-toolGroup *):not(.oo-ui-toolGroup-tools):not(.oo-ui-toolGroup-tools *):not(.ve-ui-toolbar):not(.ve-ui-toolbar *):not(.mw-notification):not(.mw-notification *):not(.mw-notification-area):not(.mw-notification-area *) {
  background: #000 !important;
  color: #fff !important;
}

/* Application répétée sur les containers MediaWiki Vector 2022 */
html, body, .mw-page-container, .mw-page-container-inner, .vector-body, .vector-body .mw-body, .vector-body .mw-body-content:not(.ve-ui-mwPreviewElement), .vector-body .mw-content-container, .vector-body .mw-content-ltr, .vector-body .mw-content-rtl, .mw-content-container, .mw-content-ltr, .mw-content-rtl, .mw-body, .mw-content, #content, #bodyContent, .vector-body-before-content, .vector-body-after-content, .vector-header-container, .vector-header, .vector-header-start, .vector-header-end, .vector-main-menu-container, .vector-main-menu, .vector-main-menu-content, .vector-main-menu-pinned-container, .vector-main-menu-unpinned-container, .vector-column-start, .vector-column-end, .vector-sticky-header-container, .vector-sticky-header, .vector-sticky-header-start, .vector-sticky-header-end, .vector-sticky-header-context-bar, .vector-sticky-header-context-bar-primary, .vector-sticky-header-context-bar-secondary, .vector-menu, .vector-menu-content, .vector-menu-content-list, .vector-menu-heading, .vector-pinned-container, .vector-unpinned-container, .vector-appearance-landmark, .vector-appearance, .vector-appearance-pinned-container, .vector-appearance-unpinned-container, .vector-appearance-pinnable-header, .vector-appearance-pinnable-header-pinned, .vector-appearance-pinnable-header-unpinned, .vector-appearance-pinnable-header-pin-button, .vector-appearance-pinnable-header-unpin-button, .vector-footer, .mw-footer, .mw-footer-container, #footer {
  background: #000 !important;
  color: #fff !important;
}

a,
a:visited {
  color: #00ff5a !important;
}
a:hover,
a:active {
  color: #fff !important;
}

/* Liens rendus comme boutons OOUI — pas de soulignement au survol */
a.oo-ui-buttonElement-button,
a.oo-ui-buttonElement-button:hover,
a.oo-ui-buttonElement-button:focus,
a.oo-ui-buttonElement-button:active,
a.oo-ui-buttonElement-button:visited,
a.oo-ui-buttonElement-button:visited:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.cdx-button:not(.cdx-button--weight-quiet),
.cdx-button--fake-button:not(.cdx-button--weight-quiet) {
  background: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}
.cdx-button:not(.cdx-button--weight-quiet):hover,
.cdx-button--fake-button:not(.cdx-button--weight-quiet):hover {
  background: #111 !important;
  color: #00ff5a !important;
  border-color: #00ff5a !important;
}

/* Boutons icône seuls du header — fond vert (loupe, hamburger) */
.vector-header .cdx-button--icon-only.search-toggle,
.vector-header-end .cdx-button--icon-only.search-toggle,
#vector-main-menu-dropdown .vector-dropdown-label.cdx-button--icon-only {
  background: #00ff5a !important;
  color: #000 !important;
  border: 1px solid #00ff5a !important;
}

#vector-main-menu-dropdown .vector-dropdown-label.cdx-button--icon-only:hover,
#vector-main-menu-dropdown .vector-dropdown-label.cdx-button--icon-only:focus {
  background: #111 !important;
  color: #00ff5a !important;
  border-color: #00ff5a !important;
}

/* --------------------------------------------------------------------------
   Recherche (Codex TypeaheadSearch) — couleurs + menu, sans casser le layout
   -------------------------------------------------------------------------- */
.cdx-typeahead-search {
  position: relative;
}

.cdx-search-input .cdx-text-input__input {
  background: #111 !important;
  color: #fff !important;
  border-color: #00ff5a !important;
}

.cdx-search-input .cdx-text-input__input::placeholder {
  color: #aaa !important;
}

/* Icônes de recherche — SVG Codex (currentColor), fond transparent */
.vector-search-box .cdx-icon,
.cdx-typeahead-search .cdx-icon {
  color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
}

.cdx-typeahead-search .cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__icon,
.cdx-typeahead-search .cdx-menu-item[aria-selected="true"] .cdx-typeahead-search__search-footer__icon {
  color: #00ff5a !important;
}

/* No-JS : icône CSS mask (span sans .cdx-icon) */
.cdx-search-input .cdx-text-input__icon:not(.cdx-icon),
.cdx-search-input .cdx-text-input__start-icon:not(.cdx-icon) {
  color: #fff !important;
  background-color: #fff !important;
}

.cdx-search-input .cdx-search-input__end-button {
  background: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
  font-weight: 600;
}

.cdx-search-input .cdx-search-input__end-button:hover,
.cdx-search-input .cdx-search-input__end-button:focus {
  background: #fff !important;
  color: #00ff5a !important;
  border-color: #fff !important;
}

/* Fond noir et texte blanc sur les pages de connexion/inscription */
body.page-Special_Connexion,
body.page-Special_Login,
body.page-Special_CreateAccount,
body.page-Special_UserLogin,
body.page-Special_UserLogout,
body.page-Special_Inscription,
body.page-Special_Register,
body.page-Special_ChangePassword,
body.page-Special_ResetPassword,
body.page-Special_PasswordReset,
body.page-Special_ConfirmEmail,
body.page-Special_ChangeEmail,
body.page-Special_ChangeCredentials,
body.page-Special_ChangeUserPassword,
body.page-Special_ChangeUserEmail,
body.page-Special_ChangeUserCredentials,
body.page-Special_ChangeUserRegistration,
body.page-Special_ChangeUserSettings,
body.page-Special_ChangeUserProfile,
body.page-Special_ChangeUserPreferences,
body.page-Special_ChangeUserOptions,
body.page-Special_ChangeUserNotifications,
body.page-Special_ChangeUserWatchlist,
body.page-Special_ChangeUserContributions,
body.page-Special_ChangeUserRights,
body.page-Special_ChangeUserGroups,
body.page-Special_ChangeUserBlock,
body.page-Special_ChangeUserUnblock,
body.page-Special_ChangeUserDelete,
body.page-Special_ChangeUserRestore,
body.page-Special_ChangeUserProtect,
body.page-Special_ChangeUserUnprotect,
body.page-Special_ChangeUserMove,
body.page-Special_ChangeUserRename,
body.page-Special_ChangeUserMerge,
body.page-Special_ChangeUserSplit,
body.page-Special_ChangeUserImport,
body.page-Special_ChangeUserExport,
body.page-Special_ChangeUserPurge,
body.page-Special_ChangeUserPurgeCache,
body.page-Special_ChangeUserPurgeLinks,
body.page-Special_ChangeUserPurgeImages,
body.page-Special_ChangeUserPurgeTemplates,
body.page-Special_ChangeUserPurgeCategories,
body.page-Special_ChangeUserPurgeRedirects,
body.page-Special_ChangeUserPurgeRevisions,
body.page-Special_ChangeUserPurgeLogs,
body.page-Special_ChangeUserPurgeRecentChanges,
body.page-Special_ChangeUserPurgeWatchlist,
body.page-Special_ChangeUserPurgeContributions,
body.page-Special_ChangeUserPurgeDeletedContributions,
body.page-Special_ChangeUserPurgeDeletedLogs,
body.page-Special_ChangeUserPurgeDeletedPages,
body.page-Special_ChangeUserPurgeDeletedRevisions,
body.page-Special_ChangeUserPurgeDeletedWatchlist {
  background: #000 !important;
  color: #fff !important;
}

.vector-pinnable-header-toggle-button {
  display: inline-block;
  border: none !important;
  padding: 0.2rem 0.45rem;
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  cursor: pointer;
  text-align: left;
  font-size: 0.7rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.vector-pinnable-header-toggle-button:hover,
.vector-pinnable-header-toggle-button:focus {
  background-color: rgba(0, 255, 90, 0.12) !important;
  color: #00ff5a !important;
}

.vector-menu-content-list .vector-menu-content-item a,
.vector-page-titlebar .mw-portlet-lang .vector-dropdown-content .vector-menu-content-item a,
.vector-page-titlebar .mw-portlet-lang .vector-dropdown-content a {
  background: transparent !important;
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
}
.vector-menu-content-list .vector-menu-content-item a:hover,
.vector-page-titlebar .mw-portlet-lang .vector-dropdown-content .vector-menu-content-item a:hover,
.vector-page-titlebar .mw-portlet-lang .vector-dropdown-content a:hover {
  background: #eaecf0 !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

/* Pour les éléments sélectionnés/actifs dans les menus déroulants */
.vector-menu-content-item.selected > a,
.vector-menu-content-item.selected,
.vector-menu-content-item.active > a,
.vector-menu-content-item.active,
.cdx-menu-item--selected,
.cdx-menu-item--active,
.cdx-menu-item[aria-selected="true"],
.cdx-menu-item[aria-current="true"] {
  background: #00ff5a !important;
  color: #000 !important;
}

/* Forcer fond noir et texte blanc sur toutes les options de menu Codex/OOUI */
.cdx-menu,
.cdx-menu-item,
[role="listbox"],
[role="option"] {
  /* background supprimé */
}

/* Option sélectionnée ou survolée : fond vert, texte noir (recherche Codex uniquement) */
.cdx-typeahead-search .cdx-menu-item[aria-selected="true"],
.cdx-typeahead-search .cdx-menu-item[aria-current="true"],
.cdx-typeahead-search [role="option"][aria-selected="true"],
.cdx-typeahead-search [role="option"]:hover,
.cdx-typeahead-search .cdx-menu-item:hover {
  background: #00ff5a !important;
  color: #000 !important;
}

/* Typeahead recherche — surcharge les règles globales des menus (après) */
.cdx-typeahead-search .cdx-menu {
  background: #111 !important;
  border: 1px solid #00ff5a !important;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.cdx-typeahead-search .cdx-menu-item,
.cdx-typeahead-search .cdx-typeahead-search__search-footer,
.cdx-typeahead-search [role="option"] {
  background: #111 !important;
  color: #fff !important;
}

.cdx-typeahead-search .cdx-menu-item__text,
.cdx-typeahead-search .cdx-menu-item__content,
.cdx-typeahead-search .cdx-typeahead-search__search-footer {
  color: #fff !important;
}

.cdx-typeahead-search .cdx-menu-item:hover,
.cdx-typeahead-search .cdx-menu-item[aria-selected="true"],
.cdx-typeahead-search .cdx-menu-item--active,
.cdx-typeahead-search .cdx-menu-item--selected,
.cdx-typeahead-search .cdx-typeahead-search__search-footer:hover,
.cdx-typeahead-search .cdx-typeahead-search__search-footer[aria-selected="true"] {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #fff !important;
}

.cdx-typeahead-search .cdx-typeahead-search__search-footer__query {
  color: #00ff5a !important;
}

.cdx-typeahead-search .cdx-thumbnail__placeholder,
.cdx-typeahead-search .cdx-thumbnail__image {
  background: #222 !important;
  border-color: #00ff5a !important;
}

.cdx-typeahead-search .cdx-thumbnail__placeholder .cdx-icon {
  color: #fff !important;
  background: transparent !important;
}

.vector-menu-tabs .mw-list-item.selected a {
  color: #00ff5a !important;
}

.ve-ce-surface,
.ve-ce-documentNode,
.ve-ui-surface,
.ve-init-mw-desktopArticleTarget .ve-ce-surface,
.ve-init-mw-desktopArticleTarget .ve-ce-documentNode,
.ve-init-mw-desktopArticleTarget .ve-ui-surface {
  --color-base: #202122 !important;
  --color-emphasized: #000 !important;
  --color-subtle: #54595d !important;
  --cdx-color-base: #202122 !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
}

.ve-init-mw-desktopArticleTarget .ve-ce-paragraphNode,
.ve-init-mw-desktopArticleTarget .ve-ce-contentBranchNode,
.ve-init-mw-desktopArticleTarget .mw-parser-output.ve-ce-documentNode p,
.ve-init-mw-desktopArticleTarget .mw-parser-output.ve-ce-documentNode li,
.ve-init-mw-desktopArticleTarget .mw-parser-output.ve-ce-documentNode span {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.ve-ce-documentNode a,
.ve-ce-documentNode a:visited,
.ve-ce-documentNode a:active,
.ve-ce-documentNode a:hover {
  color: #000 !important;
  text-decoration: underline;
}

/* Justification par défaut du contenu des pages */
.mw-body-content .mw-parser-output,
.ve-ce-documentNode {
  text-align: justify;
  hyphens: auto;
}

/* Pages de contenu — lisibilité sur fond noir (hors éditeur visuel) */
body:not(.ve-active) .mw-body-content .mw-parser-output,
body:not(.ve-active) .mw-body-content .mw-parser-output p,
body:not(.ve-active) .mw-body-content .mw-parser-output li,
body:not(.ve-active) .mw-body-content .mw-parser-output dd,
body:not(.ve-active) .mw-body-content .mw-parser-output dt,
body:not(.ve-active) .mw-body-content .mw-parser-output .mw-heading-title,
body:not(.ve-active) .mw-body-content .mw-parser-output .mw-heading h1,
body:not(.ve-active) .mw-body-content .mw-parser-output .mw-heading h2,
body:not(.ve-active) .mw-body-content .mw-parser-output .mw-heading h3,
body:not(.ve-active) .mw-body-content .mw-parser-output .mw-heading h4,
body:not(.ve-active) .mw-body-content .mw-parser-output h1,
body:not(.ve-active) .mw-body-content .mw-parser-output h2,
body:not(.ve-active) .mw-body-content .mw-parser-output h3,
body:not(.ve-active) .mw-body-content .mw-parser-output h4,
body:not(.ve-active) .mw-body-content .mw-parser-output h5,
body:not(.ve-active) .mw-body-content .mw-parser-output h6 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.mw-body-content .mw-parser-output a[href^="mailto:"] {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  word-break: break-all;
}

/* Liens du contenu des articles — vert, soulignés (hors éditeur visuel) */
body:not(.ve-active) .mw-body-content .mw-parser-output a[href],
body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:visited {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-underline-offset: 0.1em;
}

body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:hover,
body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:focus,
body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-underline-offset: 0.1em;
}

/* Grand public : masquer édition, source, historique et liens de section */
body:not(.mw-user-logged-in) #ca-viewsource,
body:not(.mw-user-logged-in) #ca-edit,
body:not(.mw-user-logged-in) #ca-history,
body:not(.mw-user-logged-in) #ca-more-viewsource,
body:not(.mw-user-logged-in) #ca-more-history,
body:not(.mw-user-logged-in) #ca-viewsource-sticky-header,
body:not(.mw-user-logged-in) #ca-edit-sticky-header,
body:not(.mw-user-logged-in) #ca-history-sticky-header,
body:not(.mw-user-logged-in) .mw-editsection,
body:not(.mw-user-logged-in) .mw-editsection-like {
  display: none !important;
}

/* Contributeur·rices et profils supérieurs (compte connecté) */
body.mw-user-logged-in #ca-viewsource,
body.mw-user-logged-in #ca-edit,
body.mw-user-logged-in #ca-history,
body.mw-user-logged-in #ca-more-viewsource,
body.mw-user-logged-in #ca-more-history,
body.mw-user-logged-in #ca-viewsource-sticky-header,
body.mw-user-logged-in #ca-edit-sticky-header,
body.mw-user-logged-in #ca-history-sticky-header,
body.mw-user-logged-in .mw-editsection,
body.mw-user-logged-in .mw-editsection-like {
  display: revert !important;
}

/* Exclusions : titres, tableaux, boîtes techniques */
.mw-body-content .mw-parser-output h1,
.mw-body-content .mw-parser-output h2,
.mw-body-content .mw-parser-output h3,
.mw-body-content .mw-parser-output h4,
.mw-body-content .mw-parser-output h5,
.mw-body-content .mw-parser-output h6,
.mw-body-content .mw-parser-output .mw-heading1,
.mw-body-content .mw-parser-output .mw-heading2,
.mw-body-content .mw-parser-output .mw-heading3,
.mw-body-content .mw-parser-output .mw-heading4,
.mw-body-content .mw-parser-output .mw-heading5,
.mw-body-content .mw-parser-output .mw-heading6,
.mw-body-content .mw-parser-output table,
.mw-body-content .mw-parser-output th,
.mw-body-content .mw-parser-output td,
.mw-body-content .mw-parser-output .navbox,
.mw-body-content .mw-parser-output .infobox,
.mw-body-content .mw-parser-output .sidebar,
.mw-body-content .mw-parser-output .metadata,
.ve-ce-documentNode h1,
.ve-ce-documentNode h2,
.ve-ce-documentNode h3,
.ve-ce-documentNode h4,
.ve-ce-documentNode h5,
.ve-ce-documentNode h6,
.ve-ce-documentNode table,
.ve-ce-documentNode th,
.ve-ce-documentNode td {
  text-align: left;
}

.oo-ui-window-frame .oo-ui-toolbar,
.oo-ui-window-frame .oo-ui-toolbar-bar,
.oo-ui-processDialog-content .oo-ui-toolbar-bar {
  background: #fff !important;
}

.oo-ui-tool,
.oo-ui-tool-title {
  border: none !important;
}

.oo-ui-tool-active,
.oo-ui-tool:hover,
.oo-ui-tool:focus {
  background: #00ff5a !important;
  color: #000 !important;
}

.oo-ui-tool-disabled {
  background: #000 !important;
  color: #888 !important;
}

/* VE toolbars — formulaire discussion (ns-talk) : fond sombre */
html body.ns-talk .oo-ui-toolbar-bar,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonElement-button,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool-disabled,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-widget-disabled,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool,
html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool:hover,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool-active,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool:focus {
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.ns-talk .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path {
  color: #fff !important;
  fill: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

/* VE toolbars — autres pages action=edit : fond clair */
.oo-ui-toolbar-bar .oo-ui-tool,
.oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonElement-button,
.oo-ui-toolbar-bar .oo-ui-tool-disabled,
.oo-ui-toolbar-bar .oo-ui-tool.oo-ui-widget-disabled,
.ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool,
.ve-init-target .oo-ui-toolbar-bar .oo-ui-tool {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  color: #202122 !important;
  opacity: 1 !important;
}

.oo-ui-toolbar-bar .oo-ui-tool:hover,
.oo-ui-toolbar-bar .oo-ui-tool-active,
.oo-ui-toolbar-bar .oo-ui-tool:focus {
  background: #eaecf0 !important;
  background-color: #eaecf0 !important;
  color: #202122 !important;
}

.oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon {
  color: #202122 !important;
  fill: #202122 !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

.oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
.oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path {
  fill: #202122 !important;
  color: #202122 !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

/* Bouton principal d'action (ex: Enregistrer la page...) */
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget,
.oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button {
  background: #00ff5a !important;
  color: #000 !important;
  border: none !important;
  font-weight: bold;
}

/* Survol du bouton principal */
.oo-ui-processDialog-actions-primary .oo-ui-actionWidget:hover,
.oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button:hover {
  background: #000 !important;
  color: #00ff5a !important;
}

.oo-ui-popupWidget-popup,
.oo-ui-popupWidget-body,
.oo-ui-popupWidget {
  background: #fff !important;
}

.oo-ui-popupWidget-popup a,
.oo-ui-popupWidget-body a,
.oo-ui-popupWidget a,
.oo-ui-popupWidget-popup a:visited,
.oo-ui-popupWidget-body a:visited,
.oo-ui-popupWidget a:visited,
.oo-ui-popupWidget-popup a:active,
.oo-ui-popupWidget-body a:active,
.oo-ui-popupWidget a:active,
.oo-ui-popupWidget-popup a:hover,
.oo-ui-popupWidget-body a:hover,
.oo-ui-popupWidget a:hover {
  color: #000 !important;
  text-decoration: underline !important;
}

.oo-ui-menuSelectWidget,
.oo-ui-menuSelectWidget *,
.oo-ui-menuOptionWidget,
.oo-ui-menuOptionWidget *,
.oo-ui-menuOptionWidget .oo-ui-label,
.oo-ui-menuOptionWidget .oo-ui-labelElement,
.oo-ui-menuOptionWidget .oo-ui-iconElement,
.oo-ui-menuOptionWidget a,
.oo-ui-menuOptionWidget a:visited,
.oo-ui-menuOptionWidget a:active,
.oo-ui-menuOptionWidget a:hover {
  color: #000 !important;
  fill: #000 !important;
  text-shadow: none !important;
}

.oo-ui-menuLayout-content {
  background: #f0f1fa !important;
  color: #000 !important;
  border-left: 1px solid #ccc !important;
}

.oo-ui-menuLayout-content .oo-ui-label-disabled,
.oo-ui-menuLayout-content .oo-ui-label .oo-ui-labelElement-disabled,
.oo-ui-menuLayout-content .oo-ui-label[aria-disabled="true"],
.oo-ui-menuLayout-content .oo-ui-label[disabled] {
  color: #888 !important;
  opacity: 1 !important;
}

.oo-ui-toolbar-bar {
  --color-progressive: #000 !important;
  --color-link: #000 !important;
  --color-link--visited: #000 !important;
  --color-link--hover: #000 !important;
  --color-link--active: #000 !important;
}

.oo-ui-toolbar-bar .oo-ui-menuSelectWidget,
.oo-ui-toolbar-bar .oo-ui-menuSelectWidget *,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget *,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget .oo-ui-label,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget .oo-ui-labelElement,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget .oo-ui-iconElement,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget a,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget a:visited,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget a:active,
.oo-ui-toolbar-bar .oo-ui-menuOptionWidget a:hover {
  color: #000 !important;
  fill: #000 !important;
  text-shadow: none !important;
}

.oo-ui-toolGroup-tools,
.oo-ui-toolGroup-enabled-tools,
.oo-ui-clippableElement-clippable,
.oo-ui-floatableElement-floatable,
.oo-ui-popupToolGroup-tools,
.oo-ui-listToolGroup-tools,
.oo-ui-popupToolGroup-active-tools,
.oo-ui-toolGroup-tools *,
.oo-ui-toolGroup-enabled-tools *,
.oo-ui-clippableElement-clippable *,
.oo-ui-floatableElement-floatable *,
.oo-ui-popupToolGroup-tools *,
.oo-ui-listToolGroup-tools *,
.oo-ui-popupToolGroup-active-tools * {
  color: #000 !important;
  fill: #000 !important;
  text-shadow: none !important;
  --color-progressive: #000 !important;
  --color-link: #000 !important;
  --color-link--visited: #000 !important;
  --color-link--hover: #000 !important;
  --color-link--active: #000 !important;
}

/* VE : libellés barre d'outils — voir section « En-tête Vector » en fin de fichier */

.wikitable.mw-page-info,
.wikitable.mw-page-info th,
.wikitable.mw-page-info td {
  background: #000 !important;
  color: #fff !important;
}

/* Pages spéciales (Special:Version, droits, etc.) */
body.ns-special .mw-body-content .wikitable,
body.ns-special .mw-body-content .wikitable th,
body.ns-special .mw-body-content .wikitable td {
  background: #111 !important;
  color: #fff !important;
  border-color: rgba(0, 255, 90, 0.35) !important;
}

body.ns-special .mw-body-content .wikitable th {
  background: #1a1a1a !important;
  color: #fff !important;
}

body.ns-special .mw-body-content .wikitable tr:nth-child(even) td {
  background: #0d0d0d !important;
}

body.ns-special .mw-body-content .wikitable a,
body.ns-special .mw-body-content .wikitable a:visited {
  color: #00ff5a !important;
}

body.ns-special .mw-body-content .wikitable a:hover {
  color: #fff !important;
}

body.ns-special .mw-body-content code,
body.ns-special .mw-body-content pre,
body.ns-special .mw-body-content kbd,
body.ns-special .mw-body-content samp,
body.ns-special .mw-body-content tt,
body.ns-special .mw-body-content bdi code {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 3px;
}

body.ns-special .mw-body-content bdi {
  color: #fff !important;
}

/* Filets horizontaux — une seule ligne, sans effet « double bordure » du navigateur */
.mw-body hr,
.mw-body-content hr,
#bodyContent hr,
.mw-parser-output hr {
  display: block;
  box-sizing: border-box;
  height: 0 !important;
  max-height: 0 !important;
  margin: 1em 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 255, 90, 0.45) !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  clear: both;
}

body.ns-special .mw-body-content .mw-version-ext-col-icon,
body.ns-special .mw-body-content .mw-version-ext-col-icon + td {
  vertical-align: top;
}

.oo-ui-dropdownWidget-menu,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-label,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-labelElement,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-iconElement,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget a {
  background: #f0f1fa !important;
  color: #000 !important;
  fill: #000 !important;
}

.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:hover,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:focus {
  background: #e0e2ea !important;
  color: #000 !important;
}

.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-label,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-labelElement,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-iconElement,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget a {
  background: #f0f1fa !important;
  color: #000 !important;
  fill: #000 !important;
}

.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:hover,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:focus {
  background: #e0e2ea !important;
  color: #000 !important;
}

.oo-ui-dropdownWidget-menu .oo-ui-labelElement-label,
.oo-ui-fieldLayout-body .oo-ui-dropdownWidget-menu .oo-ui-labelElement-label {
  background: #f0f1fa !important;
  color: #000 !important;
}

.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted .oo-ui-labelElement-label,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:hover .oo-ui-labelElement-label,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:focus .oo-ui-labelElement-label {
  background: #e0e2ea !important;
  color: #000 !important;
}

/* --------------------------------------------------------------------------
   Formulaires OOUI (protection, préférences, pages spéciales) — menus déroulants
   -------------------------------------------------------------------------- */
.mw-htmlform-ooui .oo-ui-panelLayout-framed,
.mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed {
  background: #fff !important;
  color: #202122 !important;
}

html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .oo-ui-panelLayout-framed,
html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 8px !important;
}

html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .oo-ui-labelElement-label,
html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label {
  color: #fff !important;
  background: transparent !important;
}

html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .mw-htmlform-field-HTMLCheckField,
html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .oo-ui-checkboxInputWidget,
html body.ns-special:not(
  .page-Special_PasswordReset,
  .page-Special_ResetPassword,
  .page-Special_ChangePassword,
  .page-Special_ChangeEmail,
  .page-Special_ConfirmEmail,
  .page-Special_CreateAccount,
  .page-Special_UserLogin,
  .page-Special_Preferences
) .mw-htmlform-ooui .oo-ui-checkboxMultioptionWidget {
  background: transparent !important;
  color: #fff !important;
}

body.mw-special-PasswordReset .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.mw-special-ResetPassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.mw-special-ChangePassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_PasswordReset .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ResetPassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ChangePassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ChangeEmail .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ConfirmEmail .mw-htmlform-ooui .oo-ui-panelLayout-framed {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.mw-htmlform-ooui .oo-ui-labelElement-label,
.mw-htmlform-ooui .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label {
  color: #202122 !important;
}

.mw-htmlform-ooui .oo-ui-dropdownInputWidget select.oo-ui-inputWidget-input,
.mw-htmlform-ooui .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
  background: #fff !important;
  color: #202122 !important;
  border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
  min-height: 2.375em !important;
  box-sizing: border-box !important;
}

.mw-htmlform-ooui .oo-ui-dropdownInputWidget select.oo-ui-inputWidget-input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 2.375em !important;
  padding: 0.375em 2em 0.375em 0.5em !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
}

.mw-htmlform-ooui .oo-ui-dropdownInputWidget:not(.oo-ui-dropdownInputWidget-php) select.oo-ui-inputWidget-input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.oo-ui-menuSelectWidget.oo-ui-element-hidden,
.oo-ui-dropdownWidget-menu.oo-ui-element-hidden {
  display: none !important;
}

.oo-ui-menuSelectWidget,
.oo-ui-dropdownWidget-menu {
  background: #fff !important;
  border: 1px solid #a2a9b1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  z-index: 450 !important;
}

.oo-ui-menuSelectWidget .oo-ui-menuOptionWidget,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget {
  background: #fff !important;
  color: #202122 !important;
}

.oo-ui-menuSelectWidget .oo-ui-menuOptionWidget .oo-ui-labelElement-label,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget .oo-ui-labelElement-label {
  background: transparent !important;
  color: #202122 !important;
}

.oo-ui-menuSelectWidget .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected,
.oo-ui-menuSelectWidget .oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.oo-ui-menuSelectWidget .oo-ui-menuOptionWidget:hover,
.oo-ui-menuSelectWidget .oo-ui-menuOptionWidget:focus,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-selected,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:hover,
.oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget:focus {
  background: #e0e2ea !important;
  color: #000 !important;
}

.mw-changeslist-legend {
  background: #f0f1fa !important;
  color: #000 !important;
}

.oo-ui-buttonWidget,
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-frameless.oo-ui-iconElement.oo-ui-labelElement.oo-ui-buttonWidget {
  color: #00ff5a !important;
  border: none !important;
  font-weight: bold;
}

/* action=edit : toolbar VE = icônes sombres, pas vert fluo */
html body.action-edit .oo-ui-toolbar-bar .oo-ui-buttonWidget,
html body.action-edit .oo-ui-toolbar-bar .oo-ui-tool,
html body.action-edit .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.oo-ui-buttonWidget:hover,
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-frameless.oo-ui-iconElement.oo-ui-labelElement.oo-ui-buttonWidget:hover {
  background: #00ff5a !important;
  color: #000 !important;
}

/* Exclure la toolbar VE embarquée du vert global frameless */
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget:hover,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget:hover,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget:hover {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  border: none !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover {
  background: #eaecf0 !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path {
  fill: #202122 !important;
  color: #202122 !important;
  opacity: 1 !important;
}

/* Exclure la toolbar VE page complète (action=edit) du vert global frameless */
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget:hover {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  border: none !important;
}

/* Exclure la toolbar VE page complète (action=edit) du vert global frameless */
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget,
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget:hover,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget:hover {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  border: none !important;
}

/* Fenêtres modales — boutons primaires/secondaires (évite le vert global frameless) */
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonWidget,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonWidget,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button .oo-ui-labelElement-label {
  --background-color-progressive: #00ff5a !important;
  --color-base: #000 !important;
  --color-inverted: #000 !important;
  background: #00ff5a !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  border: 1px solid #00ff5a !important;
}

.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonWidget,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button .oo-ui-labelElement-label {
  --color-base: #00ff5a !important;
  background: transparent !important;
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  border: 1px solid rgba(0, 255, 90, 0.55) !important;
}

/* Masquer uniquement le titre promotionnel en haut de la page d'inscription */
.mw-createacct-benefits-heading {
  display: none !important;
}

/* Champs de saisie — inscription / connexion (texte noir sur fond clair, lisible) */
body.page-Special_CreateAccount .oo-ui-inputWidget-input,
body.page-Special_CreateAccount .oo-ui-textInputWidget-input,
body.page-Special_CreateAccount .oo-ui-textInputWidget textarea,
body.page-Special_UserLogin .oo-ui-inputWidget-input,
body.page-Special_UserLogin .oo-ui-textInputWidget-input,
body.page-Special_UserLogin .oo-ui-textInputWidget textarea,
body.page-Special_PasswordReset .oo-ui-inputWidget-input,
body.page-Special_PasswordReset .oo-ui-textInputWidget-input,
body.page-Special_PasswordReset .oo-ui-textInputWidget textarea,
body.page-Special_ResetPassword .oo-ui-inputWidget-input,
body.page-Special_ResetPassword .oo-ui-textInputWidget-input,
body.page-Special_ResetPassword .oo-ui-textInputWidget textarea,
body.page-Special_ChangePassword .oo-ui-inputWidget-input,
body.page-Special_ChangePassword .oo-ui-textInputWidget-input,
body.page-Special_ChangePassword .oo-ui-textInputWidget textarea,
body.ns-special.page-Special_CreateAccount input,
body.ns-special.page-Special_CreateAccount textarea,
body.ns-special.page-Special_UserLogin input,
body.ns-special.page-Special_UserLogin textarea,
body.ns-special.page-Special_PasswordReset input,
body.ns-special.page-Special_PasswordReset textarea,
body.ns-special.page-Special_ResetPassword input,
body.ns-special.page-Special_ResetPassword textarea,
body.ns-special.page-Special_ChangePassword input,
body.ns-special.page-Special_ChangePassword textarea,
#userloginForm input,
#userloginForm textarea,
#passwordreset input,
#passwordreset textarea,
form[name="passwordreset"] input,
form[name="passwordreset"] textarea,
.mw-createacct-form input,
.mw-createacct-form textarea,
.mw-createacct-form .oo-ui-inputWidget-input,
.mw-createacct-form .oo-ui-textInputWidget-input,
.mw-createacct-form .oo-ui-textInputWidget textarea,
body.page-Special_CreateAccount .cdx-text-input__input,
body.page-Special_UserLogin .cdx-text-input__input,
body.page-Special_PasswordReset .cdx-text-input__input,
body.page-Special_ResetPassword .cdx-text-input__input,
body.page-Special_ChangePassword .cdx-text-input__input,
body.page-Special_CreateAccount input[type="text"],
body.page-Special_CreateAccount input[type="email"],
body.page-Special_CreateAccount input[type="password"],
body.page-Special_UserLogin input[type="text"],
body.page-Special_UserLogin input[type="email"],
body.page-Special_UserLogin input[type="password"],
body.page-Special_PasswordReset input[type="text"],
body.page-Special_PasswordReset input[type="email"],
body.page-Special_PasswordReset input[type="password"],
body.page-Special_ResetPassword input[type="text"],
body.page-Special_ResetPassword input[type="email"],
body.page-Special_ResetPassword input[type="password"],
body.page-Special_ChangePassword input[type="text"],
body.page-Special_ChangePassword input[type="email"],
body.page-Special_ChangePassword input[type="password"],
body.page-Special_CreateAccount textarea,
body.page-Special_UserLogin textarea,
body.page-Special_PasswordReset textarea,
body.page-Special_ResetPassword textarea,
body.page-Special_ChangePassword textarea {
  --color-base: #000 !important;
  --background-color-base: #fff !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
  border: 1px solid #00ff5a !important;
}

body.page-Special_CreateAccount .oo-ui-textInputWidget,
body.page-Special_UserLogin .oo-ui-textInputWidget,
body.page-Special_PasswordReset .oo-ui-textInputWidget,
body.page-Special_ResetPassword .oo-ui-textInputWidget,
body.page-Special_ChangePassword .oo-ui-textInputWidget,
body.page-Special_CreateAccount .cdx-text-input,
body.page-Special_UserLogin .cdx-text-input,
body.page-Special_PasswordReset .cdx-text-input,
body.page-Special_ResetPassword .cdx-text-input,
body.page-Special_ChangePassword .cdx-text-input,
.mw-createacct-form .oo-ui-textInputWidget,
.mw-createacct-form .cdx-text-input {
  background: transparent !important;
}

body.page-Special_CreateAccount .cdx-text-input__input-wrapper,
body.page-Special_UserLogin .cdx-text-input__input-wrapper,
body.page-Special_PasswordReset .cdx-text-input__input-wrapper,
body.page-Special_ResetPassword .cdx-text-input__input-wrapper,
body.page-Special_ChangePassword .cdx-text-input__input-wrapper,
.mw-createacct-form .cdx-text-input__input-wrapper {
  background: #fff !important;
  border-color: #00ff5a !important;
}

body.page-Special_CreateAccount .oo-ui-inputWidget-input::placeholder,
body.page-Special_CreateAccount .oo-ui-textInputWidget-input::placeholder,
body.page-Special_CreateAccount .oo-ui-textInputWidget textarea::placeholder,
body.page-Special_UserLogin .oo-ui-inputWidget-input::placeholder,
body.page-Special_UserLogin .oo-ui-textInputWidget-input::placeholder,
body.page-Special_UserLogin .oo-ui-textInputWidget textarea::placeholder,
.mw-createacct-form .oo-ui-inputWidget-input::placeholder,
.mw-createacct-form .oo-ui-textInputWidget-input::placeholder,
.mw-createacct-form .oo-ui-textInputWidget textarea::placeholder,
body.page-Special_CreateAccount .cdx-text-input__input::placeholder,
body.page-Special_UserLogin .cdx-text-input__input::placeholder {
  color: #888 !important;
  -webkit-text-fill-color: #888 !important;
  opacity: 1;
}

body.page-Special_CreateAccount .oo-ui-inputWidget-input:-webkit-autofill,
body.page-Special_CreateAccount .oo-ui-textInputWidget-input:-webkit-autofill,
body.page-Special_UserLogin .oo-ui-inputWidget-input:-webkit-autofill,
body.page-Special_UserLogin .oo-ui-textInputWidget-input:-webkit-autofill,
.mw-createacct-form .oo-ui-inputWidget-input:-webkit-autofill,
.mw-createacct-form .oo-ui-textInputWidget-input:-webkit-autofill,
#userloginForm input:-webkit-autofill {
  -webkit-text-fill-color: #000 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  border: 1px solid #00ff5a !important;
}

/* Bouton s'inscrire sur la page de création de compte */
.mw-createaccount-join:hover,
.mw-createaccount-join:focus {
  background: #fff !important;
  color: #00ff5a !important;
  text-decoration: none !important;
}

/* Correction bouton s'inscrire par ID */
#mw-createaccount-join {
  background: #00ff5a !important;
  color: #000 !important;
  font-weight: bold !important;
  text-align: center !important;
  padding: 0.7em 1em !important;
  border: none !important;
  border-radius: 16px !important;
  font-size: 1.1em !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 auto 1.5em auto !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.3 !important;
}

#mw-createaccount-join:focus {
  background: #fff !important;
  color: #00ff5a !important;
  text-decoration: none !important;
}

/* Réinitialisation / changement de mot de passe — thème vert noir blanc */
body.page-Special_PasswordReset .mw-body-content,
body.page-Special_ResetPassword .mw-body-content,
body.page-Special_ChangePassword .mw-body-content,
body.page-Special_ChangeEmail .mw-body-content,
body.page-Special_ConfirmEmail .mw-body-content {
  color: #fff !important;
}

body.page-Special_PasswordReset .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_PasswordReset .mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed,
body.page-Special_ResetPassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ResetPassword .mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed,
body.page-Special_ChangePassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ChangePassword .mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed,
body.page-Special_ChangeEmail .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ChangeEmail .mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed,
body.page-Special_ConfirmEmail .mw-htmlform-ooui .oo-ui-panelLayout-framed,
body.page-Special_ConfirmEmail .mw-htmlform-ooui .oo-ui-fieldsetLayout-group .oo-ui-panelLayout-framed {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.page-Special_PasswordReset .mw-htmlform-ooui .oo-ui-labelElement-label,
body.page-Special_PasswordReset .mw-htmlform-ooui .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label,
body.page-Special_PasswordReset .mw-htmlform label,
body.page-Special_ResetPassword .mw-htmlform-ooui .oo-ui-labelElement-label,
body.page-Special_ResetPassword .mw-htmlform-ooui .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label,
body.page-Special_ResetPassword .mw-htmlform label,
body.page-Special_ChangePassword .mw-htmlform-ooui .oo-ui-labelElement-label,
body.page-Special_ChangePassword .mw-htmlform-ooui .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label,
body.page-Special_ChangePassword .mw-htmlform label {
  color: #fff !important;
}

body.page-Special_PasswordReset .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
body.page-Special_PasswordReset input[type="submit"],
body.page-Special_ResetPassword .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
body.page-Special_ResetPassword input[type="submit"],
body.page-Special_ChangePassword .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
body.page-Special_ChangePassword input[type="submit"] {
  background: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #000 !important;
  border: 1px solid #00ff5a !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

body.page-Special_PasswordReset .mw-htmlform-submit-buttons .oo-ui-labelElement-label,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-labelElement-label,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
body.page-Special_ResetPassword .mw-htmlform-submit-buttons .oo-ui-labelElement-label,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-labelElement-label,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
body.page-Special_ChangePassword .mw-htmlform-submit-buttons .oo-ui-labelElement-label,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-labelElement-label,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

body.page-Special_PasswordReset .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover,
body.page-Special_PasswordReset input[type="submit"]:hover,
body.page-Special_ResetPassword .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover,
body.page-Special_ResetPassword input[type="submit"]:hover,
body.page-Special_ChangePassword .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover,
body.page-Special_ChangePassword input[type="submit"]:hover {
  background: #fff !important;
  background-color: #fff !important;
  color: #00ff5a !important;
  border-color: #00ff5a !important;
}

body.page-Special_PasswordReset .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
body.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
body.page-Special_ResetPassword .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
body.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
body.page-Special_ChangePassword .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
body.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

/* Case à cocher — acceptation de la charte (inscription, Codex) */
body.page-Special_CreateAccount .cdx-checkbox,
body.page-Special_UserLogin .cdx-checkbox,
.mw-createacct-form .cdx-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.625rem !important;
  margin: 1rem 0 !important;
  position: relative;
  z-index: 2;
}

body.page-Special_CreateAccount .cdx-checkbox__input,
body.page-Special_UserLogin .cdx-checkbox__input,
.mw-createacct-form .cdx-checkbox__input {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

body.page-Special_CreateAccount .cdx-checkbox__icon,
body.page-Special_UserLogin .cdx-checkbox__icon,
.mw-createacct-form .cdx-checkbox__icon,
.mw-accept-pas-charter.cdx-checkbox__input + .cdx-checkbox__icon {
  background: #111 !important;
  border: 2px solid #00ff5a !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
}

body.page-Special_CreateAccount .cdx-checkbox__input:checked + .cdx-checkbox__icon,
body.page-Special_UserLogin .cdx-checkbox__input:checked + .cdx-checkbox__icon,
.mw-createacct-form .cdx-checkbox__input:checked + .cdx-checkbox__icon {
  background-color: #00ff5a !important;
  border-color: #00ff5a !important;
}

body.page-Special_CreateAccount .cdx-checkbox__label,
body.page-Special_UserLogin .cdx-checkbox__label,
.mw-createacct-form .cdx-checkbox__label,
.mw-accept-pas-charter + .cdx-checkbox__icon + .cdx-checkbox__label {
  color: #fff !important;
  display: inline !important;
  flex: 1 1 auto !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

body.page-Special_CreateAccount .cdx-checkbox__label a,
body.page-Special_UserLogin .cdx-checkbox__label a,
.mw-createacct-form .cdx-checkbox__label a,
.mw-pas-charter-link {
  color: #00ff5a !important;
  text-decoration: underline;
  margin-left: 0.25em;
  display: inline !important;
}

body.page-Special_CreateAccount .cdx-checkbox__label a:hover,
.mw-pas-charter-link:hover {
  color: #fff !important;
}

/* Messages d'erreur / champs obligatoires — liens lisibles sur fond clair */
.mw-message-box-error,
.cdx-message--error,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout-messages,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout__messages,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout-messages .oo-ui-labelWidget,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout__messages .oo-ui-labelWidget,
body.page-Special_CreateAccount .oo-ui-fieldLayout-messages,
body.page-Special_CreateAccount .oo-ui-fieldLayout__messages,
body.page-Special_CreateAccount .oo-ui-fieldLayout-messages .oo-ui-labelWidget,
body.page-Special_CreateAccount .oo-ui-fieldLayout__messages .oo-ui-labelWidget {
  background: #fce8e8 !important;
  color: #3d1010 !important;
  border-color: #d33 !important;
}

.mw-message-box-error a,
.mw-message-box-error a:visited,
.cdx-message--error a,
.cdx-message--error a:visited,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout-messages a,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout__messages a,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout-messages a:visited,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout__messages a:visited,
body.page-Special_CreateAccount .oo-ui-fieldLayout-messages a,
body.page-Special_CreateAccount .oo-ui-fieldLayout__messages a,
body.page-Special_CreateAccount .oo-ui-fieldLayout-messages a:visited,
body.page-Special_CreateAccount .oo-ui-fieldLayout__messages a:visited {
  color: #8b1a1a !important;
  text-decoration: underline !important;
}

.mw-message-box-error a:hover,
.cdx-message--error a:hover,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout-messages a:hover,
.oo-ui-fieldLayout.oo-ui-flaggedElement-error .oo-ui-fieldLayout__messages a:hover,
body.page-Special_CreateAccount .oo-ui-fieldLayout-messages a:hover,
body.page-Special_CreateAccount .oo-ui-fieldLayout__messages a:hover {
  color: #c62828 !important;
}

/* Boîtes d'avertissement / ancienne révision — texte lisible sur fond clair */
.warningbox,
.mw-message-box-warning,
.cdx-message--warning,
.mw-revision,
#mw-revision-nav,
.mw-body-content .previewnote,
.mw-body-content .mw-warning-with-logexcerpt {
  background: #fef6e7 !important;
  color: #202122 !important;
  border: 1px solid #ca8b0e !important;
  border-radius: 4px;
  padding: 0.75rem 1rem !important;
  margin: 0.75rem 0 !important;
}

.warningbox,
.warningbox p,
.warningbox div,
.warningbox ul,
.warningbox li,
.warningbox span,
.mw-message-box-warning,
.mw-message-box-warning p,
.mw-message-box-warning div,
.mw-message-box-warning ul,
.mw-message-box-warning li,
.mw-message-box-warning span,
.cdx-message--warning,
.cdx-message--warning .cdx-message__content,
.cdx-message--warning p,
.cdx-message--warning div,
.cdx-message--warning ul,
.cdx-message--warning li,
.cdx-message--warning span,
.mw-body-content .mw-warning-with-logexcerpt,
.mw-body-content .mw-warning-with-logexcerpt p,
.mw-body-content .mw-warning-with-logexcerpt div,
.mw-body-content .mw-warning-with-logexcerpt ul,
.mw-body-content .mw-warning-with-logexcerpt li,
.mw-body-content .mw-warning-with-logexcerpt span,
.mw-revision,
.mw-revision p,
.mw-revision div,
#mw-revision-nav,
.mw-body-content .previewnote,
.mw-body-content .previewnote p,
.mw-body-content .previewnote div {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.warningbox a,
.warningbox a:visited,
.mw-message-box-warning a,
.mw-message-box-warning a:visited,
.cdx-message--warning a,
.cdx-message--warning a:visited,
.mw-revision a,
.mw-revision a:visited,
#mw-revision-nav a,
#mw-revision-nav a:visited,
.mw-body-content .previewnote a,
.mw-body-content .previewnote a:visited {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
  text-decoration: underline !important;
}

.warningbox a:hover,
.warningbox a:focus,
.mw-message-box-warning a:hover,
.mw-message-box-warning a:focus,
.cdx-message--warning a:hover,
.cdx-message--warning a:focus,
.mw-revision a:hover,
.mw-revision a:focus,
#mw-revision-nav a:hover,
#mw-revision-nav a:focus,
.mw-body-content .previewnote a:hover,
.mw-body-content .previewnote a:focus {
  color: #0b0080 !important;
  -webkit-text-fill-color: #0b0080 !important;
}

/* Boîtes de succès / info système — fond clair */
.successbox,
.mw-message-box-success,
.cdx-message--success {
  background: #eaf3ff !important;
  color: #202122 !important;
  border: 1px solid #36c !important;
  border-radius: 4px;
  padding: 0.75rem 1rem !important;
}

.successbox a,
.successbox a:visited,
.mw-message-box-success a,
.mw-message-box-success a:visited,
.cdx-message--success a,
.cdx-message--success a:visited {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
  text-decoration: underline !important;
}

/* Boîtes de confirmation / info — fond clair (pas le noir du thème) */
.mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success),
.mw-message-box-notice,
.cdx-message:not(.cdx-message--warning):not(.cdx-message--error):not(.cdx-message--success),
.mw-body-content .success:not(.successbox),
.mw-body-content .mw-notify-success {
  background: #eaf3ff !important;
  background-color: #eaf3ff !important;
  color: #202122 !important;
  border: 1px solid #36c !important;
  border-radius: 4px;
  padding: 0.75rem 1rem !important;
  margin: 0.75rem 0 !important;
}

.mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success),
.mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success) p,
.mw-message-box-notice,
.mw-message-box-notice p,
.cdx-message:not(.cdx-message--warning):not(.cdx-message--error):not(.cdx-message--success),
.cdx-message:not(.cdx-message--warning):not(.cdx-message--error):not(.cdx-message--success) .cdx-message__content,
.mw-body-content .success:not(.successbox),
.mw-body-content .mw-notify-success {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success) a,
.mw-message-box-notice a,
.cdx-message:not(.cdx-message--warning):not(.cdx-message--error):not(.cdx-message--success) a,
.mw-body-content .success:not(.successbox) a,
.mw-body-content .mw-notify-success a {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
  text-decoration: underline !important;
}

/* Dialogues de confirmation OOUI (hors VE) */
html body .oo-ui-windowManager-modal .oo-ui-window-frame,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog-content,
html body .oo-ui-windowManager-modal .oo-ui-processDialog-content {
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body .oo-ui-windowManager-modal .oo-ui-messageDialog-content .oo-ui-labelElement-label,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog-content p {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

/* Précisions sous les champs d'inscription — light, plus lisibles */
body.page-Special_CreateAccount .mw-createacct-form .oo-ui-fieldLayout-help,
body.page-Special_CreateAccount .mw-createacct-form .oo-ui-fieldLayout__help,
body.page-Special_CreateAccount .mw-createacct-form .oo-ui-labelElement-help,
body.page-Special_CreateAccount .mw-createacct-form .cdx-field__help-text,
.mw-createacct-form .oo-ui-fieldLayout-help,
.mw-createacct-form .oo-ui-fieldLayout__help,
.mw-createacct-form .oo-ui-labelElement-help,
.mw-createacct-form .cdx-field__help-text,
.mw-pas-profile-bio .oo-ui-fieldLayout-help,
.mw-pas-profile-bio .cdx-field__help-text {
  color: #f0f0f0 !important;
  font-size: 1.1em !important;
  font-weight: 300 !important;
  font-style: normal !important;
  line-height: 1.55 !important;
}

body.page-Special_CreateAccount .mw-createacct-form .oo-ui-fieldLayout:has( #wpPassword ) .oo-ui-fieldLayout-help,
body.page-Special_CreateAccount .mw-createacct-form .oo-ui-fieldLayout:has( #wpPassword ) .oo-ui-labelElement-help,
body.page-Special_CreateAccount .mw-createacct-form .oo-ui-fieldLayout:has( #wpRetype ) .oo-ui-fieldLayout-help,
body.page-Special_CreateAccount .mw-createacct-form .oo-ui-fieldLayout:has( #wpRetype ) .oo-ui-labelElement-help {
  color: #fafafa !important;
  font-size: 1.12em !important;
}

/* Bio auteur sur contributions, historique et modifications récentes */
.pas-contributor-bio {
  display: block;
  margin: 0.25rem 0 0.5rem 0;
  padding-left: 0.5rem;
  border-left: 2px solid #00ff5a;
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
}

.pas-contributor-bio-label {
  color: #00ff5a;
  font-weight: 600;
}

.pas-contributor-bio-text {
  color: #ddd;
}

/* Bouton loupe (recherche mobile) — centrage de l'icône ; masqué sur desktop (≥1000px) */
@media ( max-width: 999px ) {
  .vector-header .search-toggle.cdx-button--icon-only,
  .vector-header-end .search-toggle.cdx-button--icon-only {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    box-sizing: border-box !important;
  }

  .vector-header .search-toggle .vector-icon,
  .vector-header-end .search-toggle .vector-icon {
    margin: 0 !important;
    position: static !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    background-position: center center !important;
    -webkit-mask-position: center center !important;
    mask-position: center center !important;
    background-size: contain !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
  }

  .vector-header .search-toggle > span:not(.vector-icon),
  .vector-header-end .search-toggle > span:not(.vector-icon) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

@media ( min-width: 1000px ) {
  .vector-header .search-toggle,
  .vector-header-end .search-toggle,
  .vector-header .search-toggle.cdx-button--icon-only,
  .vector-header-end .search-toggle.cdx-button--icon-only,
  .mw-header .search-toggle {
    display: none !important;
  }
}

/* Formulaire d'édition wikicode — lisibilité complète */
body.action-edit #mw-content-text,
body.action-submit #mw-content-text,
body.action-edit .mw-editform,
body.action-submit .mw-editform {
  color: #fff !important;
}

body.action-edit .mw-editform,
body.action-submit .mw-editform,
body.action-edit .editOptions,
body.action-submit .editOptions,
body.action-edit #editpage-copywarn,
body.action-edit .mw-editTools,
body.action-edit #mw-edittools {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
}

body.action-edit.pas-talk-edit-isolated .editOptions .oo-ui-fieldLayout,
body.action-edit.pas-talk-edit-isolated .editOptions .oo-ui-fieldLayout-body,
body.action-edit.pas-talk-edit-isolated .editOptions .oo-ui-fieldLayout-header,
body.action-edit.pas-talk-edit-isolated .mw-editform .oo-ui-fieldLayout,
body.action-edit.pas-talk-edit-isolated #wpSummaryWidget .oo-ui-fieldLayout-header {
  background: #111 !important;
  background-color: #111 !important;
  box-shadow: inset 0 0 0 1000px #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.action-edit .mw-editform .oo-ui-fieldLayout,
body.action-edit .mw-editform .oo-ui-fieldLayout-body,
body.action-edit .mw-editform .oo-ui-fieldLayout-field,
body.action-edit .mw-editform .oo-ui-panelLayout,
body.action-edit .mw-editform .oo-ui-panelLayout-content,
body.action-edit .editOptions .oo-ui-fieldLayout,
body.action-edit .editOptions .oo-ui-fieldLayout-body,
body.action-edit .editOptions .oo-ui-panelLayout,
body.action-edit .editOptions .oo-ui-panelLayout-content,
body.action-edit .editOptions .oo-ui-fieldsetLayout,
body.action-edit .editOptions .oo-ui-fieldsetLayout-group {
  background: transparent !important;
  color: #fff !important;
}

body.action-edit #editpage-copywarn,
body.action-edit #editpage-copywarn p,
body.action-edit .mw-editform p,
body.action-edit .editOptions,
body.action-edit .editOptions p,
body.action-edit .mw-editTools,
body.action-edit #mw-edittools,
body.action-edit .editOptions .oo-ui-labelElement-label,
body.action-edit .editOptions .oo-ui-fieldLayout-label {
  color: #ddd !important;
}

body.action-edit #editpage-copywarn a,
body.action-edit .editOptions a,
body.action-edit .mw-editTools a {
  color: #00ff5a !important;
}

body.action-edit .cdx-checkbox__label,
body.action-edit .oo-ui-checkboxInputWidget .oo-ui-labelElement-label,
body.action-edit .oo-ui-fieldLayout-label,
body.action-edit label {
  color: #fff !important;
}

body.action-edit .cdx-checkbox__icon {
  background: #111 !important;
  border: 2px solid #00ff5a !important;
}

body.action-edit .cdx-checkbox__input:checked + .cdx-checkbox__icon {
  background-color: #00ff5a !important;
}

/* Zone de saisie wikicode + résumé des modifications */
body.action-edit #wpTextbox1,
body.action-edit #wpSummary,
body.action-edit .wikiEditor-text,
body.action-edit .CodeMirror,
body.action-edit .CodeMirror-scroll,
body.action-edit .CodeMirror-lines,
body.action-edit .CodeMirror-code,
body.action-edit .CodeMirror-line,
body.action-edit .mw-editform .oo-ui-inputWidget-input:not(.oo-ui-buttonInputWidget-input):not([type="submit"]):not([name="wpSave"]),
body.action-edit .mw-editform .oo-ui-textInputWidget-input:not([type="submit"]),
body.action-edit .editOptions .oo-ui-inputWidget-input:not(.oo-ui-buttonInputWidget-input):not([type="submit"]),
body.action-edit .editOptions .oo-ui-textInputWidget-input:not([type="submit"]),
body.action-edit .editOptions .cdx-text-input__input {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #00ff5a !important;
  border: 1px solid #00ff5a !important;
}

body.action-edit .CodeMirror-gutters {
  background: #0a0a0a !important;
  border-right: 1px solid rgba(0, 255, 90, 0.35) !important;
}

body.action-edit .CodeMirror-linenumber {
  color: #888 !important;
}

/* Boutons Enregistrer / Prévisualiser / Voir les modifications */
body.action-edit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
body.action-submit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
body.action-edit #wpSave,
body.action-submit #wpSave {
  background: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}

body.action-edit .mw-editform .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-buttonElement-button,
body.action-submit .mw-editform .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-buttonElement-button,
body.action-edit #wpPreview,
body.action-edit #wpDiff,
body.action-submit #wpPreview,
body.action-submit #wpDiff {
  background: #111 !important;
  color: #00ff5a !important;
  border: 1px solid #00ff5a !important;
}

body.action-edit .mw-editform .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-buttonElement-button:hover,
body.action-edit #wpPreview:hover,
body.action-edit #wpDiff:hover {
  background: #00ff5a !important;
  color: #000 !important;
}

/* Boutons liens : Annuler, Aide pour la modification */
body.action-edit .oo-ui-buttonElement-frameless .oo-ui-buttonElement-button,
body.action-edit .oo-ui-buttonElement-frameless .oo-ui-labelElement-label {
  color: #00ff5a !important;
  background: transparent !important;
}

body.action-edit .oo-ui-buttonElement-frameless .oo-ui-buttonElement-button:hover,
body.action-edit .oo-ui-buttonElement-frameless .oo-ui-buttonElement-button:focus {
  color: #fff !important;
  background: rgba(0, 255, 90, 0.12) !important;
}

/* Évite le chevauchement des menus latéraux sur les formulaires spéciaux */
@media (max-width: 1119px) {
  body.page-Special_CreateAccount .vector-page-toolbar-container,
  body.page-Special_UserLogin .vector-page-toolbar-container {
    margin-bottom: 1.25rem;
    clear: both;
  }

  body.page-Special_CreateAccount .vector-column-end,
  body.page-Special_UserLogin .vector-column-end {
    position: relative;
    z-index: 1;
  }

  body.page-Special_CreateAccount #mw-content-text,
  body.page-Special_UserLogin #mw-content-text {
    position: relative;
    z-index: 2;
  }
}

.ve-init-mw-desktopArticleTarget .oo-ui-iconElement-icon svg,
.ve-init-mw-desktopArticleTarget .oo-ui-iconElement-icon path {
  fill: #000 !important;
  color: #000 !important;
}

.ve-init-mw-desktopArticleTarget .oo-ui-tool-active,
.ve-init-mw-desktopArticleTarget .oo-ui-tool:hover,
.ve-init-mw-desktopArticleTarget .oo-ui-tool:focus {
  background: #00ff5a !important;
  color: #000 !important;
  fill: #000 !important;
}

.ve-init-mw-desktopArticleTarget .oo-ui-tool-disabled {
  background: #fff !important;
  color: #888 !important;
  fill: #888 !important;
}

.oo-ui-processDialog-actions-safe .oo-ui-widget-enabled.oo-ui-iconElement:not(.oo-ui-labelElement) > .oo-ui-buttonElement-button {
  background: #fff !important;
}

.oo-ui-widget.oo-ui-widget-enabled.oo-ui-selectWidget.oo-ui-outlineSelectWidget.oo-ui-selectWidget-unpressed {
  color: #000 !important;
}

.oo-ui-tool.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive > .oo-ui-tool-link {
  background: #fff !important;
}

.oo-ui-window-frame,
.oo-ui-window-frame .oo-ui-processDialog-content,
.oo-ui-window-frame .oo-ui-processDialog-navigation,
.oo-ui-window-frame .oo-ui-panelLayout,
.oo-ui-window-frame .oo-ui-panelLayout-scrollable,
.oo-ui-window-frame .oo-ui-panelLayout-content,
.oo-ui-window-frame .oo-ui-fieldsetLayout,
.oo-ui-window-frame .oo-ui-fieldsetLayout-group,
.oo-ui-window-frame .oo-ui-fieldLayout,
.oo-ui-window-frame .oo-ui-fieldLayout-body,
.oo-ui-window-frame .oo-ui-messageDialog-content,
.oo-ui-window-frame a:not(.oo-ui-buttonElement-button),
.oo-ui-window-frame a:not(.oo-ui-buttonElement-button):visited,
.oo-ui-window-frame a:not(.oo-ui-buttonElement-button):active,
.oo-ui-window-frame a:not(.oo-ui-buttonElement-button):hover {
  color: #000 !important;
  fill: #000 !important;
}

.oo-ui-labelElement-label.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-labelElement:hover,
.oo-ui-labelElement-label.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-labelElement:focus,
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-labelElement:hover *,
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-labelElement:focus * {
  color: #00ff5a !important;
  fill: #00ff5a !important;
}

.oo-ui-icon-close,
.mw-ui-icon-close::before {
  /* background supprimé */
  /* color supprimé pour hériter la couleur par défaut */
}

.oo-ui-window-frame .oo-ui-fieldsetLayout-group.mw-body-content {
  background: #fff !important;
  color: #000 !important;
}

/* Boîtes de dialogue OOUI (VE, enregistrement, etc.) — lisibilité */
.oo-ui-window-frame,
.oo-ui-window-frame .oo-ui-processDialog-content,
.oo-ui-window-frame .oo-ui-processDialog-navigation,
.oo-ui-window-frame .oo-ui-panelLayout,
.oo-ui-window-frame .oo-ui-panelLayout-scrollable,
.oo-ui-window-frame .oo-ui-panelLayout-content,
.oo-ui-window-frame .oo-ui-fieldsetLayout,
.oo-ui-window-frame .oo-ui-fieldsetLayout-group,
.oo-ui-window-frame .oo-ui-fieldLayout,
.oo-ui-window-frame .oo-ui-fieldLayout-body,
.oo-ui-window-frame .oo-ui-messageDialog-content {
  background: #fff !important;
  color: #000 !important;
}

/* Overlay modal OOUI — le backdrop est sur .oo-ui-dialog, pas sur le manager */
.oo-ui-windowManager-modal > .oo-ui-dialog,
.oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-active,
.oo-ui-windowManager-modal > .oo-ui-dialog.oo-ui-window-setup,
.oo-ui-windowManager-modal > .oo-ui-dialog[style*="background"] {
  background-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.65) !important;
}

.ve-ui-overlay-global {
  background-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.65) !important;
}

/* Annuler la règle globale *[style*="background"] dans le contenu des dialogues */
.oo-ui-windowManager-modal .oo-ui-window-frame[style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame [style*="background"],
.oo-ui-windowManager-modal .oo-ui-processDialog-content [style*="background"],
.oo-ui-windowManager-modal .oo-ui-fieldsetLayout-group[style*="background"]:not(#editpage-detail *):not(.editOptions *),
.oo-ui-windowManager-modal .oo-ui-fieldsetLayout-group [style*="background"]:not(#editpage-detail *):not(.editOptions *) {
  background: #fff !important;
  color: #000 !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail[style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail [style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions[style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions [style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-fieldsetLayout[style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-fieldsetLayout-group[style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-fieldsetLayout[style*="background"],
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-fieldsetLayout-group[style*="background"] {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
}

/* Ancienne section — conservée pour compatibilité hors manager modal */
.oo-ui-window-frame[style*="background"],
.oo-ui-window-frame [style*="background"],
.oo-ui-window-frame .oo-ui-processDialog-content [style*="background"],
.oo-ui-window-frame .oo-ui-fieldsetLayout-group[style*="background"],
.oo-ui-window-frame .oo-ui-fieldsetLayout-group [style*="background"] {
  background: #fff !important;
  color: #000 !important;
}

.oo-ui-window-frame .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-fieldLayout-label,
.oo-ui-window-frame .oo-ui-checkboxInputWidget-label,
.oo-ui-window-frame .oo-ui-checkboxInputWidget .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-inputWidget-input,
.oo-ui-window-frame .oo-ui-textInputWidget-input,
.oo-ui-window-frame .oo-ui-textInputWidget textarea {
  color: #000 !important;
}

.oo-ui-window-frame a,
.oo-ui-window-frame a:visited {
  color: #0645ad !important;
}

.oo-ui-window-frame a:hover,
.oo-ui-window-frame a:active {
  color: #0b0080 !important;
}

/* Dialogue VE « Enregistrer vos modifications » — boutons et zone licence */
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
  background: #fff !important;
  color: #202122 !important;
  border: 1px solid #72777d !important;
  fill: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button:hover,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button:focus,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button:focus .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button:hover .oo-ui-iconElement-icon,
.oo-ui-window-frame .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button:focus .oo-ui-iconElement-icon {
  background: #f8f9fa !important;
  color: #000 !important;
  border-color: #202122 !important;
  fill: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button .oo-ui-labelElement-label {
  background: #00ff5a !important;
  color: #000 !important;
  border: 1px solid #00cc48 !important;
  -webkit-text-fill-color: #000 !important;
}

.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button:hover,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button:focus,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button:focus .oo-ui-labelElement-label {
  background: #0dee10 !important;
  color: #000 !important;
  fill: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.oo-ui-window-frame .oo-ui-processDialog-actions,
.oo-ui-window-frame .oo-ui-processDialog-actions-primary,
.oo-ui-window-frame .oo-ui-processDialog-actions-other {
  background: #fff !important;
}

.oo-ui-window-frame #editpage-copywarn,
.oo-ui-window-frame .editOptions {
  background: #f8f9fa !important;
  color: #202122 !important;
  border: 1px solid #c8ccd1 !important;
  padding: 0.75em 1em !important;
  border-radius: 4px !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  padding: 0.75em 1em !important;
  border-radius: 4px !important;
}

.oo-ui-window-frame #editpage-copywarn p,
.oo-ui-window-frame #editpage-copywarn li,
.oo-ui-window-frame .editOptions .oo-ui-fieldLayout-label,
.oo-ui-window-frame .editOptions .oo-ui-labelElement-label,
.oo-ui-window-frame .editOptions .oo-ui-checkboxInputWidget .oo-ui-labelElement-label,
.oo-ui-window-frame .editOptions label {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background-color: transparent !important;
}

.oo-ui-window-frame #editpage-copywarn a,
.oo-ui-window-frame .editOptions a {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
}

.oo-ui-window-frame #editpage-copywarn a:hover,
.oo-ui-window-frame .editOptions a:hover {
  color: #0b0080 !important;
  -webkit-text-fill-color: #0b0080 !important;
}

.oo-ui-window-frame .editOptions .oo-ui-checkboxInputWidget-label,
.oo-ui-window-frame .editOptions .oo-ui-checkboxInputWidget .oo-ui-labelElement-label {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
}

/* Modales DiscussionTools / VE — résumé, avis légal, champs (thème sombre PAS) */
.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-copywarn,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions {
  --color-base: #fff !important;
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-copywarn,
.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-copywarn p,
.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-copywarn li,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-fieldLayout-label,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-labelElement-label,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-checkboxInputWidget .oo-ui-labelElement-label,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions label {
  color: #ccc !important;
  -webkit-text-fill-color: #ccc !important;
  background-color: transparent !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-fieldLayout,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-fieldLayout-body {
  background: transparent !important;
  background-color: transparent !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-inputWidget-input,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .oo-ui-textInputWidget-input,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions textarea,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions .cdx-text-input__input,
.oo-ui-windowManager-modal .oo-ui-window-frame #wpSummary,
.oo-ui-windowManager-modal .oo-ui-window-frame #wpSummaryWidget .oo-ui-inputWidget-input,
.oo-ui-windowManager-modal .oo-ui-window-frame #wpSummaryWidget .oo-ui-textInputWidget-input {
  --color-base: #fff !important;
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #00ff5a !important;
  border: 1px solid rgba(0, 255, 90, 0.55) !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-copywarn a,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions a {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

.oo-ui-windowManager-modal .oo-ui-window-frame #editpage-copywarn a:hover,
.oo-ui-windowManager-modal .oo-ui-window-frame .editOptions a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* DiscussionTools — titre du sujet + champs texte hors VE / editOptions */
html body .oo-ui-windowManager-modal .oo-ui-window-frame .ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-inputWidget-input,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-textInputWidget-input,
html body .oo-ui-windowManager-modal .oo-ui-window-frame h2.ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-inputWidget-input,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-processDialog-content > .oo-ui-fieldLayout .oo-ui-textInputWidget-input,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-processDialog-content > .oo-ui-fieldLayout .oo-ui-inputWidget-input,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-processDialog-content .oo-ui-fieldLayout:not(.editOptions *) .oo-ui-textInputWidget-input:not(.ve-ce-documentNode *) {
  --color-base: #fff !important;
  --color-emphasized: #fff !important;
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #00ff5a !important;
  border: 1px solid rgba(0, 255, 90, 0.55) !important;
}

html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail,
html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-fieldsetLayout,
html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-fieldsetLayout-group,
html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-panelLayout,
html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-panelLayout-content {
  --color-base: #fff !important;
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  border-color: rgba(0, 255, 90, 0.35) !important;
}

html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-labelElement-label,
html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label,
html body .oo-ui-windowManager-modal .oo-ui-window-frame #editpage-detail .oo-ui-fieldLayout-label {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* VE embarqué — barre d'outils lisible (icônes sombres sur fond clair) */
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-toolbar,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .ve-init-target .oo-ui-toolbar-bar {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #c8ccd1 !important;
}

html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-toolbar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body .oo-ui-windowManager-modal .oo-ui-window-frame .oo-ui-toolbar .oo-ui-tool .oo-ui-iconElement-icon path {
  fill: #202122 !important;
}

html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool:hover .oo-ui-iconElement-icon svg,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool:hover .oo-ui-iconElement-icon path,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool-active .oo-ui-iconElement-icon svg,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool-active .oo-ui-iconElement-icon path,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool:focus .oo-ui-iconElement-icon svg,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool:focus .oo-ui-iconElement-icon path {
  fill: #000 !important;
}

html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonWidget {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  border: none !important;
}

html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
html body .oo-ui-windowManager-modal .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-labelElement-label {
  --color-base: #202122 !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: #f8f9fa !important;
}

.oo-ui-widget.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-labelElement.oo-ui-flaggedElement-progressive.oo-ui-flaggedElement-primary.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-widget-disabled:hover,
.oo-ui-widget.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-labelElement.oo-ui-flaggedElement-progressive.oo-ui-flaggedElement-primary.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-widget-disabled:focus,
.oo-ui-widget.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-labelElement.oo-ui-flaggedElement-progressive.oo-ui-flaggedElement-primary.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-widget-disabled:hover *,
.oo-ui-widget.oo-ui-buttonElement.oo-ui-buttonElement-framed.oo-ui-labelElement.oo-ui-flaggedElement-progressive.oo-ui-flaggedElement-primary.oo-ui-buttonWidget.oo-ui-actionWidget.oo-ui-widget-disabled:focus * {
  color: #00ff5a !important;
}

/* Menus déroulants header — pills vertes avec texte, sauf icônes seules */
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label.cdx-button:not(.cdx-button--icon-only),
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only) {
  background: #00ff5a !important;
  color: #000 !important;
  border: 1px solid #00ff5a !important;
  border-radius: 4px;
}

/* Chevron noir par défaut sur tous les dropdowns avec libellé (pills vertes) */
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only)::after,
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label.cdx-button:not(.cdx-button--icon-only)::after {
  background-color: #000 !important;
  background-image: none !important;
  opacity: 1 !important;
}

.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only):hover::after,
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label.cdx-button:not(.cdx-button--icon-only):hover::after,
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only):focus::after,
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label.cdx-button:not(.cdx-button--icon-only):focus::after {
  background-color: #00ff5a !important;
  background-image: none !important;
}

/* Apparence + icônes seules header — fond transparent, icône Vector visible (sauf hamburger) */
#vector-appearance-dropdown .vector-dropdown-label,
#vector-appearance-dropdown .vector-dropdown-label.cdx-button--icon-only,
.vector-user-links .vector-dropdown .vector-dropdown-label.cdx-button--icon-only,
.vector-header .vector-dropdown:not(#vector-main-menu-dropdown) .vector-dropdown-label.cdx-button--icon-only {
  background: transparent !important;
  border: none !important;
  color: #00ff5a !important;
  box-shadow: none !important;
  min-width: auto !important;
  min-height: auto !important;
  padding: 0.25rem !important;
}

#vector-appearance-dropdown .vector-dropdown-label:hover,
#vector-appearance-dropdown .vector-dropdown-label:focus,
.vector-user-links .vector-dropdown .vector-dropdown-label.cdx-button--icon-only:hover,
.vector-header .vector-dropdown .vector-dropdown-label.cdx-button--icon-only:hover {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #00ff5a !important;
  border: none !important;
}

#vector-appearance-dropdown .vector-dropdown-label .vector-icon,
.vector-user-links .vector-dropdown .vector-dropdown-label.cdx-button--icon-only .vector-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  background-color: #00ff5a !important;
  opacity: 1 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

#vector-appearance-dropdown .vector-dropdown-label:hover .vector-icon,
#vector-appearance-dropdown .vector-dropdown-label:focus .vector-icon,
.vector-user-links .vector-dropdown .vector-dropdown-label.cdx-button--icon-only:hover .vector-icon {
  background-color: #fff !important;
}

.vector-user-menu-logged-in.vector-dropdown .vector-dropdown-label,
.vector-user-menu-logged-in .vector-dropdown-label,
#vector-user-links-dropdown.vector-user-menu-logged-in .vector-dropdown-label.cdx-button--icon-only {
  background: transparent !important;
  border: none !important;
  color: #00ff5a !important;
  box-shadow: none !important;
  min-width: auto !important;
  min-height: auto !important;
}

.vector-dropdown .vector-dropdown-label-text,
.vector-dropdown .vector-dropdown-label .vector-dropdown-label-text {
  background: transparent !important;
  color: inherit !important;
}

.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:hover,
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label.cdx-button:hover,
.vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:focus {
  background: #111 !important;
  color: #00ff5a !important;
  border-color: #00ff5a !important;
}

.vector-user-menu-logged-in.vector-dropdown .vector-dropdown-label:hover,
.vector-user-menu-logged-in .vector-dropdown-label:hover,
.vector-user-menu-logged-in.vector-dropdown .vector-dropdown-label:focus,
.vector-user-menu-logged-in .vector-dropdown-label:focus {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #00ff5a !important;
  border-color: transparent !important;
}

/* Sélecteur de langue — fond clair uniquement */
.vector-page-titlebar .mw-portlet-lang .vector-dropdown-content {
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
  border: 1px solid #a2a9b1 !important;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 400;
}

.vector-page-titlebar .mw-portlet-lang .vector-dropdown-content .vector-menu-content {
  background: transparent !important;
  color: #202122 !important;
}

.mw-portlet-empty-language-selector-body {
  color: #54595d !important;
  -webkit-text-fill-color: #54595d !important;
}

/* Sélecteur de langue ULS (popup jquery.uls) */
.uls-menu,
.uls-menu .uls-search,
.uls-menu .uls-lcd,
.uls-menu .uls-language-block,
.uls-menu .uls-languagefilter {
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.uls-menu .uls-lcd-region-title,
.uls-menu .uls-languagefilter {
  color: #54595d !important;
  -webkit-text-fill-color: #54595d !important;
}

.uls-menu a,
.uls-menu .uls-language-block a {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
}

.uls-menu .uls-language-block a:hover,
.uls-menu li:hover,
.uls-menu .uls-language-block li.uls-language-block__highlight {
  background: #eaecf0 !important;
  color: #202122 !important;
}

/* Menus Codex hors recherche */
.cdx-menu:not(.cdx-typeahead-search .cdx-menu) {
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
  border: 1px solid #a2a9b1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cdx-menu:not(.cdx-typeahead-search .cdx-menu) .cdx-menu-item,
.cdx-menu:not(.cdx-typeahead-search .cdx-menu) .cdx-menu-item__content {
  background: #fff !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.cdx-menu:not(.cdx-typeahead-search .cdx-menu) .cdx-menu-item:hover,
.cdx-menu:not(.cdx-typeahead-search .cdx-menu) .cdx-menu-item[aria-selected="true"] {
  background: #eaecf0 !important;
  color: #202122 !important;
}

/* Panneaux latéraux épinglés (Apparence, Outils) — pas les dropdowns header */
.vector-column-end .vector-pinnable-container,
.vector-column-end .vector-pinned-container,
.vector-column-end .vector-unpinned-container {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* Dropdowns header : panneau sombre unique (pas de boite blanche + noire) */
#vector-main-menu-dropdown .vector-dropdown-content,
#vector-user-links-dropdown .vector-dropdown-content,
#vector-appearance-dropdown .vector-dropdown-content,
#vector-page-tools-dropdown .vector-dropdown-content {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65) !important;
  padding: 0 !important;
  z-index: 400;
}

.vector-dropdown-content .vector-pinnable-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#vector-main-menu-dropdown .vector-dropdown-content .vector-menu-content,
#vector-user-links-dropdown .vector-dropdown-content .vector-menu-content,
#vector-appearance-dropdown .vector-dropdown-content .vector-menu-content,
#vector-page-tools-dropdown .vector-dropdown-content .vector-menu-content,
.vector-pinnable-container .vector-menu-content {
  background: transparent !important;
  color: inherit !important;
}

.vector-pinnable-header,
.vector-pinnable-element .vector-menu-heading {
  border-bottom-color: rgba(0, 255, 90, 0.35) !important;
}

.vector-pinnable-header-label,
.vector-pinnable-element .vector-menu-heading {
  color: #00ff5a !important;
}

.vector-appearance label,
.vector-appearance .cdx-label,
.vector-appearance .oo-ui-labelElement-label {
  color: #fff !important;
}

.vector-appearance input[type="radio"],
.vector-appearance input[type="checkbox"] {
  accent-color: #00ff5a;
}

/* Logo header — logo wiki (image unique picto + texte) */
.mw-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Barre de titre — overflow:clip évite le scroll fantôme (scrollHeight ~1600px) sous le footer */
.vector-page-titlebar,
.mw-body-header.vector-page-titlebar {
  overflow: clip !important;
  position: relative;
  z-index: 200;
}

.mw-body .firstHeading,
.mw-body-header .firstHeading,
.mw-body h1.mw-first-heading,
.mw-body-content .mw-heading h1,
.mw-body-content .mw-heading h2,
.mw-body-content .mw-heading h3,
.mw-body-content .mw-heading h4 {
  overflow: visible !important;
  line-height: 1.3 !important;
  max-height: none !important;
}

/* Évite le défilement horizontal fantôme sans scroll sur les titres */
.mw-page-container,
.mw-page-container-inner,
.mw-body {
  overflow-x: clip;
}

.vector-page-titlebar .mw-indicators {
  position: relative;
  z-index: 201;
}

.vector-page-titlebar .mw-indicator {
  position: relative;
  z-index: 202;
}

.vector-body-before-content .mw-indicators {
  position: relative;
  z-index: 200;
}

#contentSub,
#contentSub2 {
  position: relative;
  z-index: 1;
}

.vector-header-start .mw-logo {
  min-width: auto !important;
  flex-shrink: 0;
  gap: 0.75rem;
}

.mw-logo-icon {
  display: none !important;
}

.mw-logo-container {
  max-width: 16rem !important;
  flex-shrink: 0;
  min-width: 0;
}

.mw-logo-container img,
.mw-logo-wordmark {
  width: auto !important;
  height: auto !important;
  max-height: 8rem !important;
  max-width: 100% !important;
  object-fit: contain;
}

@media (min-width: 640px) {
  .mw-logo-container {
    max-width: 18rem !important;
  }

  .mw-logo-container img,
  .mw-logo-wordmark {
    max-height: 9.5rem !important;
  }
}

@media (min-width: 1120px) {
  .mw-logo-container {
    max-width: 22rem !important;
  }

  .mw-logo-container img,
  .mw-logo-wordmark {
    max-height: 11.25rem !important;
  }
}

/* Pied de page — grille CSS (logo centré, licence en dessous) */
html body.skin-vector .mw-footer-container,
html body .mw-footer-container {
  padding-top: 1rem !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .mw-footer {
  display: grid !important;
  grid-template-areas:
    "lastmod lastmod"
    "contributors contributors"
    "places places"
    "license logo";
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 0;
  overflow: visible;
  padding-top: 0.5rem !important;
  padding-bottom: 0.25rem !important;
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border-top: none !important;
}

html body .mw-footer::after {
  content: none;
  display: none;
}

html body #footer-info {
  display: contents !important;
}

html body .pas-footer-bottom {
  display: contents !important;
}

html body #footer-info,
html body #footer-info li,
html body #footer-info-lastmod,
html body .mw-footer li,
html body .vector-body-after-content,
html body .vector-body-after-content #footer-info,
html body .vector-body-after-content #footer-info li {
  color: #fff !important;
}

html body #footer-info-lastmod {
  grid-area: lastmod;
  margin: 0;
  padding: 0.5em 0;
  float: none !important;
}

html body #footer-info-pas-contributors {
  grid-area: contributors;
  margin: 0;
  padding: 0 0 0.5em 0;
  float: none !important;
  color: #fff !important;
}

html body #footer-info-pas-contributors .pas-footer-contributor-name {
  color: #00ff5a !important;
}

html body #footer-places li:not(#footer-places-privacy):not(#footer-places-pas-charter) {
  display: none !important;
}

html body #footer-places-copyright {
  display: none !important;
}

html body #footer-places {
  grid-area: places;
  float: none !important;
  clear: none !important;
  margin: 0 0 0.5rem 0;
}

html body #footer-info-copyright {
  grid-area: license;
  display: block !important;
  float: none !important;
  clear: both !important;
  text-align: center !important;
  align-self: center !important;
  padding: 0.5em 1rem 0.25em !important;
  margin: 0 !important;
  border-top: none !important;
  line-height: 1.5;
  box-sizing: border-box;
  list-style: none;
  color: #fff !important;
}

html body #footer-places li a,
html body .mw-footer #footer-places a {
  color: #00ff5a !important;
}

html body #footer-places li a:hover,
html body .mw-footer #footer-places a:hover {
  color: #fff !important;
}

html body #footer-icons {
  grid-area: logo !important;
  justify-self: end !important;
  align-self: center !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  display: block !important;
  visibility: visible !important;
  margin: 0 !important;
  padding: 0.35em 1.5rem 0.25em 0 !important;
  border-top: none !important;
  z-index: 1;
}

html body #footer-icons li {
  float: none !important;
  margin: 0 !important;
  text-align: right !important;
}

@media (max-width: 720px) {
  html body .mw-footer {
    grid-template-areas:
      "lastmod"
      "contributors"
      "places"
      "license"
      "logo";
    grid-template-columns: minmax(0, 1fr);
  }

  html body #footer-info-copyright {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    border-top: none !important;
  }

  html body #footer-icons {
    justify-self: end !important;
    padding: 0.25em 1rem 0.5em !important;
    border-top: none !important;
  }

  html body #footer-icons-pas-logo .pas-footer-logo-link,
  html body #footer-poweredbyico a.pas-footer-logo-link {
    width: 9rem;
    height: 4.5rem;
  }
}
#footer-icons-pas-logo .pas-footer-logo-link,
#footer-poweredbyico a.pas-footer-logo-link {
  display: inline-block !important;
  width: 11rem;
  height: 5.5rem;
  background-color: transparent !important;
  background-image: url('/skins/PASTheme/resources/assets/footer-logo.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  overflow: hidden;
  text-indent: -9999px;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

#footer-icons-pas-logo img,
.pas-footer-logo-img {
  display: none !important;
}

/* Supprimer l'espace vide : Vector 1fr + padding footer — voir aussi layoutFix.css */
html,
html body {
  height: auto !important;
  min-height: 0 !important;
}

@media (min-width: 1000px) {
  html body .mw-page-container-inner {
    grid-template:
      "siteNotice siteNotice" min-content
      "columnStart pageContent" min-content
      "footer footer" min-content
      / minmax(0, 12.25rem) minmax(0, 1fr) !important;
    align-content: start !important;
  }

  html.vector-feature-main-menu-pinned-disabled.vector-toc-not-available .mw-page-container-inner,
  html.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-0 .mw-page-container-inner {
    grid-template:
      "siteNotice" min-content
      "pageContent" min-content
      "columnStart" min-content
      "footer" min-content
      / minmax(0, 1fr) !important;
    align-content: start !important;
  }

  html body .mw-body {
    position: relative !important;
    display: grid !important;
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
    grid-template-rows: min-content min-content min-content min-content !important;
    align-content: start !important;
    align-items: start !important;
    column-gap: 0 !important;
    padding-right: calc(13rem + 1rem) !important;
    box-sizing: border-box !important;
  }

  html body.vector-feature-limited-width-content-disabled .mw-body,
  html body.vector-feature-limited-width-clientpref-0 .mw-body {
    padding-right: calc(13rem + 1rem) !important;
  }

  html body .vector-page-titlebar {
    grid-area: titlebar !important;
    grid-column: 1 !important;
  }

  html body .vector-page-toolbar {
    grid-area: toolbar !important;
    grid-column: 1 !important;
  }

  html body #bodyContent {
    grid-area: content !important;
    grid-column: 1 !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html body .vector-column-end {
    grid-column: unset !important;
    grid-row: unset !important;
    grid-area: unset !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 13rem !important;
    max-width: 13rem !important;
    margin-top: 0 !important;
    align-self: auto !important;
    overflow: visible !important;
    z-index: 3 !important;
  }

  html body .vector-column-end .vector-sticky-pinned-container {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
}

@media (min-width: 1400px) {
  html body .mw-body {
    padding-right: calc(15.5rem + 1rem) !important;
  }

  html body .vector-column-end {
    max-width: 15.5rem !important;
    width: 15.5rem !important;
  }
}

@media (max-width: 1119px) {
  html body .vector-column-end {
    display: none !important;
  }

  html body .mw-body {
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }

  html body.vector-feature-limited-width-content-disabled .mw-body,
  html body.vector-feature-limited-width-clientpref-0 .mw-body {
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
  }

  html body #vector-appearance-dropdown {
    position: relative !important;
    overflow: visible !important;
  }

  html body #vector-appearance-dropdown .vector-dropdown-content {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 0.25rem !important;
    max-height: min(70vh, 22rem) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 450 !important;
    width: max-content !important;
    min-width: 12rem !important;
    max-width: min(92vw, 18rem) !important;
  }

  html body #vector-appearance-dropdown .vector-pinnable-container,
  html body #vector-appearance-dropdown .vector-unpinned-container,
  html body #vector-appearance-dropdown .vector-sticky-pinned-container {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .vector-user-links .vector-appearance-landmark {
    position: relative !important;
    overflow: visible !important;
  }
}

html body .mw-page-container-inner {
  grid-auto-rows: min-content !important;
  align-content: start !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .mw-page-container,
html body .mw-page-container-inner,
html body .mw-footer-container,
html body .mw-content-container,
html body .vector-column-start,
html body .vector-body-after-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

html body .mw-body {
  grid-auto-rows: min-content !important;
  align-content: start !important;
  height: auto !important;
  min-height: 0 !important;
}

html body #bodyContent {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .mw-page-container {
  min-height: 0 !important;
  padding-bottom: 0 !important;
}

#mw-data-after-content:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Recherche secondaire (Special:Search) — texte lisible, sans doublon visuel */
.mw-search-form-wrapper .oo-ui-inputWidget-input,
#searchInput,
.cdx-typeahead-search .cdx-text-input__input {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #111 !important;
  background-color: #111 !important;
  caret-color: #00ff5a !important;
}

.mw-search-form-wrapper .oo-ui-labelElement-label:empty {
  display: none !important;
}

#footer-info-copyright a,
#footer-places-copyright a,
.mw-footer .pas-footer-license {
  color: #00ff5a !important;
  text-decoration: underline !important;
}

#footer-info-copyright a:hover,
#footer-places-copyright a:hover,
.mw-footer .pas-footer-license:hover {
  color: #fff !important;
}

#footer-copyrightico,
#footer-icons .copyright {
  display: none !important;
}

/* Logo « powered by » — logo officiel PAS (sans style bouton Codex) */
#footer-icons,
#footer-icons li,
#footer-poweredbyico {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

#footer-icons a:not(.pas-footer-logo-link),
#footer-poweredbyico a:not(.pas-footer-logo-link),
#footer-poweredbyico a.cdx-button,
#footer-poweredbyico a.cdx-button--fake-button,
#footer-icons a.cdx-button,
#footer-icons a.cdx-button--fake-button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
}

#footer-poweredbyico a:not(.pas-footer-logo-link):hover,
#footer-poweredbyico a.cdx-button:hover,
#footer-icons a:not(.pas-footer-logo-link):hover,
#footer-icons a.cdx-button:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#footer-poweredbyico img:not(.pas-footer-logo-img),
#footer-icons-pas-logo img,
.pas-footer-logo-img {
  display: none !important;
}

/* Historique des versions (action=history) */
body.action-history #pagehistory li {
  color: #fff !important;
  background: #111 !important;
  border-color: rgba(0, 255, 90, 0.35) !important;
}

body.action-history #pagehistory .mw-changeslist-time,
body.action-history #pagehistory .history-size,
body.action-history #pagehistory .mw-tag-markers,
body.action-history #pagehistory .mw-comment,
body.action-history #pagehistory .comment,
body.action-history #pagehistory .mw-comment-none,
body.action-history .mw-history-histlinks-current,
body.action-history .mw-changeslist-separator,
body.action-history .fr-hist-basic-auto,
body.action-history .fr-hist-basic,
body.action-history [class*="fr-hist-"] {
  color: #fff !important;
}

body.action-history .mw-plusminus-pos,
body.action-history #pagehistory .mw-plusminus-pos {
  color: #00ff5a !important;
}

body.action-history .mw-plusminus-neg,
body.action-history #pagehistory .mw-plusminus-neg {
  color: #ff6b6b !important;
}

body.action-history .mw-plusminus-null,
body.action-history #pagehistory .mw-plusminus-null {
  color: #ccc !important;
}

body.action-history #pagehistory li a {
  color: #00ff5a !important;
}

body.action-history #pagehistory li a:visited {
  color: #888 !important;
}

body.action-history #pagehistory li a:hover {
  color: #fff !important;
}

body.action-history .mw-tag-marker {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #00ff5a !important;
  border: 1px solid rgba(0, 255, 90, 0.45) !important;
  border-radius: 3px;
  padding: 0 4px;
}

body.action-history [class*="flaggedrevs-color-"] {
  background: rgba(0, 255, 90, 0.1) !important;
  color: #fff !important;
}

body.action-history .mw-htmlform .oo-ui-panelLayout-content,
body.action-history .mw-htmlform .oo-ui-fieldLayout-body,
body.action-history .mw-htmlform .oo-ui-fieldLayout .oo-ui-labelElement-label,
body.action-history .mw-htmlform .oo-ui-inputWidget-input,
body.action-history .mw-htmlform .oo-ui-dropdownWidget .oo-ui-labelElement-label {
  background: #111 !important;
  color: #fff !important;
  border-color: #00ff5a !important;
}

body.action-history .mw-htmlform .oo-ui-fieldsetLayout-group {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #00ff5a !important;
  border-radius: 8px;
}

body.action-history .mw-history-revisionactions,
body.action-history .mw-pager-navigation-bar {
  color: #fff !important;
}

/* Page d'accueil : même largeur utile que les autres pages (plus de colonne 59.25rem forcée) */

/* FlaggedRevs — pastille « Non vérifiée » au-dessus du panneau de détails */
.mw-fr-status-indicator-host {
  position: relative !important;
  z-index: 203 !important;
}

#mw-fr-revision-toggle,
.mw-fr-review-status-indicator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35em !important;
  padding: 0.35em 0.65em !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  color: #fff !important;
  background: #111 !important;
  border: 1px solid #00ff5a !important;
  border-radius: 999px;
  vertical-align: middle;
  position: relative !important;
}

#mw-fr-revision-messages {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
}

.mw-fr-revision-details-dialog,
#mw-fr-revision-details {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: absolute !important;
  top: calc(100% + 0.4rem) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 204 !important;
  margin-top: 0 !important;
  width: max(18rem, 100%);
  max-width: 28rem;
}

/* Secours si le JS n'a pas encore déplacé le panneau */
#mw-fr-revision-messages > #mw-fr-revision-details {
  top: 0 !important;
  right: 0 !important;
  z-index: 1 !important;
}

#mw-fr-revision-toggle b,
.mw-fr-review-status-indicator b {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-weight: 600;
}

#mw-fr-revision-toggle [class*="cdx-fr-css-icon"],
.mw-fr-review-status-indicator [class*="cdx-fr-css-icon"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  margin: 0 !important;
  vertical-align: middle;
}

.mw-fr-revision-details-dialog .cdx-dialog,
#mw-fr-revision-details .cdx-dialog {
  margin-top: 0.5rem;
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #00ff5a !important;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.mw-fr-revision-details-dialog .cdx-dialog__header,
.mw-fr-revision-details-dialog .cdx-dialog__body,
.mw-fr-revision-details-dialog .cdx-dialog__header__title-group,
.mw-fr-revision-details-dialog .cdx-dialog__header__title,
.mw-fr-revision-details-dialog .cdx-dialog__header__subtitle,
.mw-fr-revision-details-dialog p,
.mw-fr-revision-details-dialog h2,
.mw-fr-revision-details-dialog b {
  color: #fff !important;
  background: transparent !important;
}

.mw-fr-revision-details-dialog a,
.mw-fr-revision-details-dialog a:visited {
  color: #00ff5a !important;
}

.mw-fr-revision-details-dialog a:hover {
  color: #fff !important;
}

.mw-fr-revision-details-dialog .cdx-dialog__header__close-button {
  background: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}

[class*="flaggedrevs-color-"] {
  background: rgba(0, 255, 90, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.45) !important;
}

/* FlaggedRevs — listes (Pages non relues, modifications récentes, etc.) */
li.flaggedrevs-unreviewed,
li.flaggedrevs-pending,
li.fr-unreviewed-unwatched,
li.fr-pending-long,
li.fr-pending-long2,
li.fr-pending-long3,
.flaggedrevs-unreviewed,
.flaggedrevs-pending,
.mw-fr-reviewlink.flaggedrevs-unreviewed,
.mw-fr-reviewlink.flaggedrevs-pending {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  padding: 0.15em 0.35em !important;
  border-radius: 2px;
}

li.fr-unreviewed-unwatched,
li.fr-pending-long2 {
  background: rgba(255, 100, 80, 0.18) !important;
  border-color: rgba(255, 120, 90, 0.55) !important;
  border-left: 3px solid #ff7850 !important;
}

li.fr-pending-long {
  background: rgba(255, 200, 80, 0.14) !important;
  border-color: rgba(255, 200, 80, 0.45) !important;
  border-left: 3px solid #ffc850 !important;
}

li.flaggedrevs-unreviewed a,
li.flaggedrevs-pending a,
li.fr-unreviewed-unwatched a,
li.fr-pending-long a,
li.fr-pending-long2 a,
li.fr-pending-long3 a,
.flaggedrevs-unreviewed a,
.flaggedrevs-pending a,
.mw-fr-reviewlink a {
  color: #00ff5a !important;
}

li.flaggedrevs-unreviewed a:hover,
li.flaggedrevs-pending a:hover,
li.fr-unreviewed-unwatched a:hover,
li.fr-pending-long a:hover,
li.fr-pending-long2 a:hover,
li.fr-pending-long3 a:hover,
.flaggedrevs-unreviewed a:hover,
.flaggedrevs-pending a:hover,
.mw-fr-reviewlink a:hover {
  color: #fff !important;
}

li.flaggedrevs-unreviewed small,
li.flaggedrevs-pending small,
li.fr-unreviewed-unwatched small,
li.fr-pending-long small,
li.fr-pending-long2 small,
li.fr-pending-long3 small {
  color: rgba(255, 255, 255, 0.78) !important;
}

.mw-fr-pending-changes-table tbody tr:hover,
.mw-fr-pending-changes-table .cdx-table__table tbody tr:hover {
  background: rgba(0, 255, 90, 0.1) !important;
}

.mw-fr-pending-changes-table .cdx-table__table__cell,
.mw-fr-pending-changes-table .cdx-table__table__cell a {
  color: #fff !important;
}

.mw-fr-pending-changes-table .cdx-table__table__cell a {
  color: #00ff5a !important;
}

/* FlaggedRevs — formulaire de relecture et messages */
#mw-fr-reviewform fieldset.flaggedrevs_reviewform,
#mw-fr-reviewform .cdx-card {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #00ff5a !important;
  border-radius: 8px;
  padding: 1rem 1.25rem !important;
  margin-top: 1.5rem;
  box-shadow: none !important;
}

#mw-fr-reviewformlegend,
#mw-fr-reviewform .cdx-card__text__title {
  color: #00ff5a !important;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

#fr-rating-controls,
.fr-rating-controls,
.fr-rating-options,
#mw-fr-reviewform label,
#mw-fr-reviewform p,
#mw-fr-reviewform .fr-rating-controls-disabled {
  color: #fff !important;
}

#mw-fr-reviewform .cdx-text-input {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

#mw-fr-reviewform .cdx-text-input__input,
#mw-fr-commentbox,
.fr-comment-box {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.5) !important;
  border-radius: 4px;
  padding: 0.45em 0.65em !important;
}

#mw-fr-reviewform .cdx-text-input__input::placeholder,
.fr-comment-box::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

#mw-fr-reviewform .cdx-radio__label {
  color: #fff !important;
}

#mw-fr-reviewform .cdx-button--action-progressive,
#mw-fr-submit-accept {
  background: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
  font-weight: 600;
}

#mw-fr-reviewform .cdx-button--action-progressive:hover,
#mw-fr-submit-accept:hover {
  background: #fff !important;
  color: #000 !important;
}

#mw-fr-reviewform .cdx-button--action-destructive,
#mw-fr-submit-reject,
#mw-fr-submit-unaccept {
  background: transparent !important;
  color: #ff7850 !important;
  border: 1px solid #ff7850 !important;
}

#mw-fr-reviewform .cdx-button--action-destructive:hover,
#mw-fr-submit-reject:hover,
#mw-fr-submit-unaccept:hover {
  background: rgba(255, 120, 80, 0.15) !important;
  color: #fff !important;
}

#mw-fr-revision-messages,
#mw-fr-reviewnotice,
.mw-fr-message-box,
.cdx-message.mw-fr-message-box,
.cdx-message.flaggedrevs_preview,
.flaggedrevs_notice,
#mw-fr-revision-tag-old,
#mw-fr-revision-tag-edit {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.45) !important;
  border-radius: 6px;
  padding: 0.75rem 1rem !important;
  margin: 0.75rem 0 !important;
}

#mw-fr-revision-messages .cdx-message__content,
#mw-fr-reviewnotice .cdx-message__content,
.mw-fr-message-box .cdx-message__content {
  color: #fff !important;
}

#mw-fr-revision-messages a,
#mw-fr-reviewnotice a,
.mw-fr-message-box a,
.cdx-message__content a {
  color: #00ff5a !important;
}

#mw-fr-revision-messages a:hover,
.mw-fr-message-box a:hover {
  color: #fff !important;
}

.mw-fr-basic,
div.flaggedrevs_diffnotice,
.flaggedrevs_diffnotice {
  background: rgba(0, 255, 90, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
}

.flaggedrevs_important {
  color: #ffc850 !important;
}

.mw-fr-review-notice-button,
#mw-fr-revision-messages .cdx-button--action-progressive,
#mw-fr-revision-messages a.cdx-button {
  background: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}

.mw-fr-review-notice-button:hover,
#mw-fr-revision-messages .cdx-button--action-progressive:hover {
  background: #fff !important;
  color: #000 !important;
}

#fr-rating-controls input[type="submit"]:disabled,
#mw-fr-reviewform input:disabled {
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   Références (extension Cite) — affichage lecture + édition VisualEditor
   -------------------------------------------------------------------------- */

/* Lecture : liste numérotée en bas d'article */
.mw-parser-output .mw-references-wrap,
.mw-parser-output ol.references,
.mw-parser-output ol.references li {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
}

.mw-parser-output .reference-text,
.mw-parser-output .mw-reference-text {
  background: transparent !important;
  color: #fff !important;
}

.mw-parser-output .mw-cite-backlink,
.mw-parser-output .mw-cite-backlink a,
.mw-parser-output sup.reference a {
  color: #00ff5a !important;
}

.mw-parser-output sup.reference a:hover,
.mw-parser-output .mw-cite-backlink a:hover {
  color: #fff !important;
}

/*
 * VE : liste des références en bas de l'article édité
 * Structure réelle : .ve-ce-mwReferencesListNode > ol.mw-references > li > .reference-text > .ve-ui-mwPreviewElement
 * Spécificité élevée pour battre .vector-body .mw-body-content { color: #fff }
 */
/* VE : aperçu de référence — porte les classes mw-body-content + mw-parser-output */
.mw-body-content.ve-ui-mwPreviewElement,
.mw-body-content.ve-ui-mwPreviewElement.mw-parser-output,
.vector-body .mw-body-content .ve-ui-mwPreviewElement,
.ve-ce-mwReferencesListNode .ve-ui-mwPreviewElement,
.ve-init-mw-desktopArticleTarget .ve-ui-mwPreviewElement,
.oo-ui-window-frame .ve-ui-mwPreviewElement {
  background: #fff !important;
  color: #000 !important;
}

.mw-body-content.ve-ui-mwPreviewElement *,
.vector-body .mw-body-content .ve-ui-mwPreviewElement *,
.ve-ce-mwReferencesListNode .ve-ui-mwPreviewElement *,
.ve-init-mw-desktopArticleTarget .ve-ui-mwPreviewElement *,
.oo-ui-window-frame .ve-ui-mwPreviewElement * {
  background-color: transparent !important;
  color: #000 !important;
}

.mw-body-content.ve-ui-mwPreviewElement [style*="background"],
.mw-body-content.ve-ui-mwPreviewElement [style*="background"] *,
.vector-body .mw-body-content .ve-ui-mwPreviewElement [style*="background"],
.ve-ce-mwReferencesListNode .ve-ui-mwPreviewElement [style*="background"],
.ve-ce-mwReferencesListNode .ve-ui-mwPreviewElement [style*="background"] *,
.ve-init-mw-desktopArticleTarget .ve-ui-mwPreviewElement [style*="background"],
.ve-init-mw-desktopArticleTarget .ve-ui-mwPreviewElement [style*="background"] * {
  background: transparent !important;
  color: #000 !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode {
  background: #f8f9fa !important;
  color: #000 !important;
  border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
  padding: 0.5em 0.75em !important;
  margin-top: 0.75em !important;
  font-family: sans-serif !important;
}

.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .reference-text,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .ve-ce-generated-wrapper,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-cite-backlink,
.vector-body .mw-body-content:not(.ve-ui-mwPreviewElement) .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .ve-ce-mwReferencesListNode-muted {
  background: transparent !important;
  color: #000 !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode ol.mw-references.references > li,
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li {
  color: #000 !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode ol.mw-references.references > li::marker,
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li[style]::marker,
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li::marker {
  color: #000 !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li:hover {
  background: rgba(109, 169, 247, 0.15) !important;
  color: #000 !important;
  cursor: pointer;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode *,
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .ve-ui-mwPreviewElement * {
  color: #000 !important;
  background-color: transparent !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode [style*="background"],
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode [style*="background"] * {
  background: transparent !important;
  color: #000 !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode a,
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode a:visited {
  color: #0645ad !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode a:hover {
  color: #0b0080 !important;
}

/* VE : marqueur inline [1] dans le texte */
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferenceNode,
.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferenceNode * {
  background: transparent !important;
  color: #000 !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferenceNode {
  background: #eaf3ff !important;
  box-shadow: inset 0 0 0 1px rgba(38, 102, 204, 0.55) !important;
  border: none !important;
}

.vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-mwReferenceNode [style*="background"] {
  background: transparent !important;
  color: #000 !important;
}

/* VE : zone d'édition dans la boîte de dialogue « Référence » */
.oo-ui-window-frame .ve-ce-surface,
.oo-ui-window-frame .ve-ui-surface,
.oo-ui-window-frame .ve-ce-documentNode {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
  font-family: sans-serif !important;
}

.ve-ui-overlay *[style*="background"],
.ve-init-mw-desktopArticleTarget .ve-ce-mwReferenceNode *[style*="background"],
.ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode *[style*="background"],
.ve-init-mw-desktopArticleTarget .ve-ce-documentNode *[style*="background"],
.ve-init-mw-desktopArticleTarget .ve-ce-documentNode *[style*="color"],
.oo-ui-window-frame .ve-ce-surface *[style*="background"],
.oo-ui-window-frame .ve-ce-surface *[style*="color"],
.oo-ui-window-frame .ve-ce-documentNode *[style*="background"],
.oo-ui-window-frame .ve-ce-documentNode *[style*="color"] {
  background: transparent !important;
  background-color: transparent !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.oo-ui-window-frame .ve-ce-documentNode [style],
.oo-ui-window-frame .ve-ce-documentNode [style] *,
.oo-ui-window-frame .ve-ce-surface [style],
.oo-ui-window-frame .ve-ce-surface [style] * {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.oo-ui-window-frame .ve-ce-documentNode p,
.oo-ui-window-frame .ve-ce-documentNode span,
.oo-ui-window-frame .ve-ce-surface p,
.oo-ui-window-frame .ve-ce-surface span {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

.oo-ui-window-frame .ve-ce-documentNode a {
  color: #0645ad !important;
}

/* VE : numéro de note (1.) en noir — ::marker hérite mal du thème sombre */
body .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode ol.mw-references,
body .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode ol.mw-references.references {
  color: #000 !important;
}

body .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode ol.mw-references > li,
body .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li {
  color: #000 !important;
}

body .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode ol.mw-references > li::marker,
body .ve-init-mw-desktopArticleTarget .ve-ce-mwReferencesListNode .mw-references > li::marker {
  color: #000 !important;
}

/* VE : liste déroulante « Paragraphe » — texte noir sur fond clair */
.vector-page-toolbar .oo-ui-dropdownWidget,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget,
.vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
  --color-base: #000 !important;
  --color-emphasized: #000 !important;
  --cdx-color-base: #000 !important;
}

.vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  color: #000 !important;
  border: 1px solid #a2a9b1 !important;
}

.vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-labelElement-label,
.vector-page-toolbar .oo-ui-toolbar .oo-ui-dropdownWidget .oo-ui-labelElement-label,
body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-labelElement-label,
body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-labelElement-label,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle .oo-ui-labelElement-label {
  color: #000 !important;
  fill: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-indicatorElement-indicator,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-indicatorElement-indicator {
  color: #000 !important;
  opacity: 1 !important;
}

.vector-page-toolbar .oo-ui-dropdownWidget.oo-ui-widget-enabled:hover .oo-ui-dropdownWidget-handle,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget.oo-ui-widget-enabled:hover .oo-ui-dropdownWidget-handle {
  background: #fff !important;
  color: #000 !important;
}

.vector-page-toolbar .oo-ui-dropdownWidget.oo-ui-widget-enabled:hover .oo-ui-labelElement-label,
.ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget.oo-ui-widget-enabled:hover .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* --------------------------------------------------------------------------
   En-tête Vector — liens utilisateur (quiet) + icônes vertes
   -------------------------------------------------------------------------- */
.vector-user-links .cdx-button--weight-quiet,
.vector-user-links-main .cdx-button--weight-quiet {
  background: transparent !important;
  border: none !important;
  color: #00ff5a !important;
  box-shadow: none !important;
  min-width: auto !important;
  min-height: auto !important;
  height: auto !important;
}

.vector-user-links .cdx-button--weight-quiet .vector-icon,
.vector-user-links-main .cdx-button--weight-quiet.vector-icon,
.vector-user-links-main a.cdx-button.vector-icon {
  background-color: #00ff5a !important;
}

.vector-user-links .cdx-button--weight-quiet:hover,
.vector-user-links-main .cdx-button--weight-quiet:hover {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #fff !important;
}

.vector-user-links .cdx-button--weight-quiet:hover .vector-icon,
.vector-user-links-main .cdx-button--weight-quiet:hover.vector-icon,
.vector-user-links-main a.cdx-button.vector-icon:hover {
  background-color: #fff !important;
}

/* Menu utilisateur connecté — icône avatar visible (fond transparent) */
.vector-user-menu-logged-in .vector-dropdown-label {
  background: transparent !important;
  border: none !important;
  color: #00ff5a !important;
  box-shadow: none !important;
  min-width: auto !important;
  min-height: auto !important;
  height: auto !important;
}

.vector-user-menu-logged-in .vector-dropdown-label .vector-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  background-color: #00ff5a !important;
  opacity: 1 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.vector-user-menu-logged-in .vector-dropdown-label::after {
  background-color: #000 !important;
}

.vector-user-menu-logged-in .vector-dropdown-label:hover {
  background: rgba(0, 255, 90, 0.12) !important;
  color: #00ff5a !important;
}

/* Nom d'utilisateur connecté — plus visible et élégant */
.vector-user-links-main #pt-userpage-2 a,
.vector-user-links-main #pt-userpage-2 a.cdx-button,
.vector-user-links-main #pt-userpage a {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  color: #f5f5f5 !important;
  line-height: 1.2 !important;
  padding: 0.25rem 0.5rem !important;
  text-decoration: none !important;
}

.vector-user-links-main #pt-userpage-2 a:hover,
.vector-user-links-main #pt-userpage-2 a.cdx-button:hover,
.vector-user-links-main #pt-userpage a:hover {
  color: #00ff5a !important;
  text-shadow: 0 0 14px rgba(0, 255, 90, 0.35);
  background: transparent !important;
}

/* Traits / icônes en noir sur le bouton vert hamburger */
#vector-main-menu-dropdown .vector-dropdown-label .vector-icon {
  background-color: #000 !important;
}

#vector-main-menu-dropdown .vector-dropdown-label:hover .vector-icon,
#vector-main-menu-dropdown .vector-dropdown-label:focus .vector-icon {
  background-color: #00ff5a !important;
}

/* Chevron des menus avec libellé — noir par défaut, vert au survol (fond sombre) */
html body .vector-page-titlebar .mw-portlet-lang .vector-dropdown-label::after,
html body .vector-page-toolbar-container .vector-dropdown-label:not(.cdx-button--icon-only)::after,
html body .vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only)::after {
  background-color: #000 !important;
  background-image: none !important;
  opacity: 1 !important;
}

html body .vector-page-titlebar .mw-portlet-lang .vector-dropdown-label:hover::after,
html body .vector-page-titlebar .mw-portlet-lang .vector-dropdown-label:focus::after,
html body .vector-page-toolbar-container .vector-dropdown-label:not(.cdx-button--icon-only):hover::after,
html body .vector-page-toolbar-container .vector-dropdown-label:not(.cdx-button--icon-only):focus::after,
html body .vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only):hover::after,
html body .vector-dropdown:not(.vector-user-menu-logged-in):not(#vector-appearance-dropdown) .vector-dropdown-label:not(.cdx-button--icon-only):focus::after {
  background-color: #00ff5a !important;
  background-image: none !important;
}

/* Icônes loupe (recherche mobile) — surcharge finale */
html body .vector-header .search-toggle .vector-icon,
html body .vector-header-end .search-toggle .vector-icon,
html body .mw-header .search-toggle .vector-icon {
  background-color: #000 !important;
}

html body .vector-header .search-toggle:hover .vector-icon,
html body .vector-header-end .search-toggle:hover .vector-icon,
html body .mw-header .search-toggle:hover .vector-icon,
html body .vector-header .search-toggle:focus .vector-icon,
html body .vector-header-end .search-toggle:focus .vector-icon {
  background-color: #00ff5a !important;
}

.vector-user-menu .vector-dropdown-label-text,
.vector-user-links .vector-dropdown-label-text {
  color: inherit !important;
}

/* Barre d'onglets — une seule ligne, style épuré */
html body .vector-page-toolbar {
  align-self: start !important;
  margin: 0 0 0.25rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html body .vector-page-toolbar-container {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  row-gap: 0 !important;
  gap: 0.5rem !important;
  margin: 0 0 0.35rem 0 !important;
  padding: 0.35rem 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0, 255, 90, 0.18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body #left-navigation,
html body #right-navigation {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  float: none !important;
  min-width: 0 !important;
}

html body #left-navigation {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  justify-content: flex-start !important;
}

html body #right-navigation {
  flex: 0 0 auto !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

html body #left-navigation > nav,
html body #right-navigation > nav:not(.vector-page-tools-landmark) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

html body #right-navigation > nav.vector-page-tools-landmark {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto !important;
  z-index: 5 !important;
}

html body #vector-page-tools-dropdown {
  position: relative !important;
  flex-shrink: 0 !important;
}

html body.vector-feature-page-tools-pinned-enabled .vector-page-toolbar-container .vector-page-tools-landmark {
  display: none !important;
}

html body.vector-feature-page-tools-pinned-disabled .vector-column-end .vector-page-tools-landmark {
  display: none !important;
}

html body .vector-page-toolbar-container > #left-navigation .vector-menu,
html body .vector-page-toolbar-container > #left-navigation .mw-portlet,
html body .vector-page-toolbar-container > #right-navigation > nav:not(.vector-page-tools-landmark) .vector-menu,
html body .vector-page-toolbar-container > #right-navigation > nav:not(.vector-page-tools-landmark) .mw-portlet {
  display: flex !important;
  align-items: center !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

html body .vector-page-toolbar-container > #left-navigation .vector-menu-tabs,
html body .vector-page-toolbar-container > #right-navigation > nav:not(.vector-page-tools-landmark) .vector-menu-tabs {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  background: transparent !important;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item.vector-tab-noicon a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.45rem 1rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 6px 6px 0 0 !important;
  border-bottom: 2px solid transparent !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item.vector-tab-noicon a:hover {
  background: rgba(0, 255, 90, 0.08) !important;
  color: #00ff5a !important;
  border-bottom-color: rgba(0, 255, 90, 0.45) !important;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item.selected a,
html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item.selected a:hover {
  background: transparent !important;
  color: #00ff5a !important;
  border-bottom-color: #00ff5a !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item:not(.vector-tab-noicon) a,
html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item .cdx-button--icon-only {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.85rem !important;
  min-height: 1.85rem !important;
  padding: 0.3rem !important;
  margin: 0 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 255, 90, 0.22) !important;
  background: transparent !important;
}

html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item:not(.vector-tab-noicon) a:hover,
html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list .mw-list-item .cdx-button--icon-only:hover {
  background: rgba(0, 255, 90, 0.12) !important;
  border-color: rgba(0, 255, 90, 0.45) !important;
}

html body .vector-page-toolbar-container .vector-dropdown {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

html body .vector-page-toolbar-container .vector-dropdown-label.cdx-button,
html body .vector-page-toolbar-container .vector-dropdown-label.cdx-button--fake-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  min-height: 1.85rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 255, 90, 0.22) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  box-shadow: none !important;
}

html body .vector-page-toolbar-container .vector-dropdown-label.cdx-button:hover,
html body .vector-page-toolbar-container .vector-dropdown-label.cdx-button:focus {
  background: rgba(0, 255, 90, 0.1) !important;
  color: #00ff5a !important;
  border-color: rgba(0, 255, 90, 0.45) !important;
}

html body .vector-page-toolbar-container .vector-dropdown-label-text {
  color: inherit !important;
}

@media (max-width: 720px) {
  html body .vector-page-toolbar-container {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  html body #left-navigation,
  html body #right-navigation {
    flex: 1 1 100% !important;
    margin-left: 0 !important;
  }

  html body #left-navigation > nav,
  html body #right-navigation > nav {
    flex-wrap: wrap !important;
  }

  html body .vector-page-toolbar .vector-menu-tabs .vector-menu-content-list {
    flex-wrap: wrap !important;
  }
}

/* Réduire l'espace entre la barre d'onglets et le texte de l'article */
html body .vector-page-titlebar {
  margin-bottom: 0 !important;
  padding-bottom: 0.25rem !important;
}

html body .vector-body-before-content {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

html body .vector-body-before-content:empty {
  display: none !important;
}

html body #contentSub:empty,
html body #contentSub2:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #siteSub:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #bodyContent.vector-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .mw-body-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 0 !important;
}

html body #mw-content-text {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html body .vector-column-end {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  contain: none !important;
}

html body .mw-body .vector-page-toolbar {
  grid-row: auto !important;
}

/* VE / édition uniquement : barre d'outils encadrée (wikicode — pas VE desktop sur action=edit) */
body.ve-active .vector-page-toolbar .oo-ui-toolbar,
body.ve-active .vector-page-toolbar .oo-ui-toolbar-bar,
body.action-edit:not(.ve-active) .vector-page-toolbar .oo-ui-toolbar,
body.action-edit:not(.ve-active) .vector-page-toolbar .oo-ui-toolbar-bar {
  background: #111 !important;
  color: #00ff5a !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 4px;
}

/* VE page complète action=edit : toolbar claire, icônes sombres */
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar,
html body.action-edit .vector-page-toolbar .ve-init-mw-desktopArticleTarget ~ .oo-ui-toolbar-bar,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar,
html body.action-edit.ve-active .vector-page-toolbar .oo-ui-toolbar-bar {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  color: #202122 !important;
  border: 1px solid #c8ccd1 !important;
  border-radius: 0 !important;
}

html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path {
  fill: #202122 !important;
  background-color: transparent !important;
  color: #202122 !important;
}

html body.action-edit .oo-ui-toolbar-bar .oo-ui-dropdownWidget-handle {
  background: #f8f9fa !important;
  color: #202122 !important;
}

html body:not(.action-edit) .vector-page-toolbar .oo-ui-toolbar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body:not(.action-edit) .vector-page-toolbar .oo-ui-toolbar .oo-ui-tool .oo-ui-iconElement-icon path,
html body:not(.action-edit) .vector-page-toolbar .oo-ui-toolbar .vector-icon {
  fill: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #00ff5a !important;
}

/* VE : outils au survol / actifs — fond vert, icônes noires (hors toolbar VE action=edit) */
.oo-ui-toolbar .oo-ui-tool:hover,
.oo-ui-toolbar .oo-ui-tool-active,
.oo-ui-toolbar .oo-ui-tool:focus {
  background: #00ff5a !important;
  color: #000 !important;
}

html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool:hover,
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool-active,
html body.action-edit .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-tool:focus,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool:hover,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool-active,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool:focus,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool:hover,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool-active,
html body.action-edit .vector-page-toolbar .oo-ui-toolbar-bar .oo-ui-tool:focus {
  background: #eaecf0 !important;
  color: #202122 !important;
}

.oo-ui-toolbar .oo-ui-tool:hover .oo-ui-iconElement-icon svg,
.oo-ui-toolbar .oo-ui-tool:hover .oo-ui-iconElement-icon path,
.oo-ui-toolbar .oo-ui-tool-active .oo-ui-iconElement-icon svg,
.oo-ui-toolbar .oo-ui-tool-active .oo-ui-iconElement-icon path,
.oo-ui-toolbar .oo-ui-tool:focus .oo-ui-iconElement-icon svg,
.oo-ui-toolbar .oo-ui-tool:focus .oo-ui-iconElement-icon path,
.oo-ui-toolbar .oo-ui-tool:hover .vector-icon,
.oo-ui-toolbar .oo-ui-tool-active .vector-icon,
.oo-ui-toolbar .oo-ui-tool:focus .vector-icon {
  fill: #000 !important;
  background-color: #000 !important;
  color: #000 !important;
}

.oo-ui-toolbar .oo-ui-tool:hover .oo-ui-labelElement-label,
.oo-ui-toolbar .oo-ui-tool-active .oo-ui-labelElement-label {
  color: #000 !important;
}

/* Recherche — icônes SVG blanches (surcharge finale, tous états focus/saisie) */
.vector-search-box .cdx-icon,
.cdx-typeahead-search .cdx-icon,
.cdx-typeahead-search--expanded .cdx-text-input__start-icon,
.cdx-typeahead-search--active .cdx-text-input__start-icon,
.cdx-text-input--focused .cdx-text-input__start-icon {
  color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
}

.cdx-typeahead-search .cdx-typeahead-search__search-footer__icon.cdx-icon {
  color: #aaa !important;
}

.cdx-typeahead-search .cdx-typeahead-search__search-footer__active .cdx-typeahead-search__search-footer__icon.cdx-icon,
.cdx-typeahead-search .cdx-menu-item[aria-selected="true"] .cdx-typeahead-search__search-footer__icon.cdx-icon {
  color: #00ff5a !important;
}

/* Surcharge finale — champs formulaire inscription (priorité maximale) */
html body.ns-special.page-Special_CreateAccount #userloginForm .oo-ui-inputWidget-input,
html body.ns-special.page-Special_CreateAccount #userloginForm .oo-ui-textInputWidget-input,
html body.ns-special.page-Special_CreateAccount #userloginForm textarea,
html body.ns-special.page-Special_CreateAccount #userloginForm .cdx-text-input__input,
html body.ns-special.page-Special_CreateAccount .mw-htmlform input,
html body.ns-special.page-Special_CreateAccount .mw-htmlform textarea {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff !important;
  background-color: #fff !important;
}

/* Surcharge finale — menu « Paragraphe » de l'éditeur visuel */
html body .vector-page-toolbar .oo-ui-dropdownWidget,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget,
html body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
  --color-base: #000 !important;
  --color-emphasized: #000 !important;
  --cdx-color-base: #000 !important;
}

html body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-labelElement-label,
html body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle span,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-labelElement-label,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle span {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* ==========================================================================
   Special:Preferences — lisibilité (dans main.css pour garantir le chargement)
   ========================================================================== */
html body.ns-special.page-Special_Preferences #preferences,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs-wrapper,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs,
html body.ns-special.page-Special_Preferences .mw-prefs-search,
html body.mw-special-Preferences #preferences,
html body.mw-special-Preferences .mw-prefs-tabs-wrapper,
html body.mw-special-Preferences .mw-prefs-tabs,
html body.mw-special-Preferences .mw-prefs-search {
  --color-base: #202122 !important;
  --color-emphasized: #000 !important;
  --color-subtle: #54595d !important;
  --background-color-base: #fff !important;
  --background-color-neutral: #f8f9fa !important;
  --background-color-neutral-subtle: #f8f9fa !important;
  --border-color-subtle: #c8ccd1 !important;
  --border-color-base: #a2a9b1 !important;
}

html body.ns-special.page-Special_Preferences .mw-prefs-tabs-wrapper,
html body.mw-special-Preferences .mw-prefs-tabs-wrapper {
  background: #fff !important;
  color: #202122 !important;
}

html body.ns-special.page-Special_Preferences .mw-prefs-tabs > .oo-ui-menuLayout-menu,
html body.mw-special-Preferences .mw-prefs-tabs > .oo-ui-menuLayout-menu {
  background: #f8f9fa !important;
}

html body.ns-special.page-Special_Preferences .mw-prefs-tabs .oo-ui-tabOptionWidget .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs .oo-ui-fieldLayout-label,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs .oo-ui-labelWidget,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs p,
html body.ns-special.page-Special_Preferences .mw-prefs-tabs li,
html body.ns-special.page-Special_Preferences .mw-prefs-search .oo-ui-fieldLayout-label,
html body.mw-special-Preferences .mw-prefs-tabs .oo-ui-tabOptionWidget .oo-ui-labelElement-label,
html body.mw-special-Preferences .mw-prefs-tabs .oo-ui-labelElement-label,
html body.mw-special-Preferences .mw-prefs-tabs .oo-ui-fieldLayout-label,
html body.mw-special-Preferences .mw-prefs-tabs p,
html body.mw-special-Preferences .mw-prefs-tabs li {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body.ns-special.page-Special_Preferences .mw-prefs-tabs .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label,
html body.mw-special-Preferences .mw-prefs-tabs .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.ns-special.page-Special_Preferences #preferences a,
html body.mw-special-Preferences #preferences a {
  color: #00a650 !important;
}

html body.ns-special.page-Special_Preferences #preferences .oo-ui-inputWidget-input,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-textInputWidget-input,
html body.ns-special.page-Special_Preferences #preferences textarea,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-dropdownWidget-handle,
html body.ns-special.page-Special_Preferences .mw-prefs-search .oo-ui-inputWidget-input,
html body.mw-special-Preferences #preferences .oo-ui-inputWidget-input,
html body.mw-special-Preferences #preferences .oo-ui-textInputWidget-input,
html body.mw-special-Preferences #preferences textarea,
html body.mw-special-Preferences #preferences .oo-ui-dropdownWidget-handle {
  --color-base: #000 !important;
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
}

html body.ns-special.page-Special_Preferences #preferences .oo-ui-dropdownWidget-handle .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-dropdownWidget-handle .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* Barre « Enregistrer les préférences » — hors du panneau encadré */
html body.ns-special.page-Special_Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button,
html body.mw-special-Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button {
  background: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}

html body.ns-special.page-Special_Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-progressive .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-flaggedElement-progressive.oo-ui-buttonWidget .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-progressive .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-flaggedElement-progressive.oo-ui-buttonWidget .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.ns-special.page-Special_Preferences #preferences .mw-htmlform-submit-buttons,
html body.mw-special-Preferences #preferences .mw-htmlform-submit-buttons {
  background: #fff !important;
  color: #202122 !important;
  border-top-color: #c8ccd1 !important;
}

html body.ns-special.page-Special_Preferences #preferences .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button,
html body.mw-special-Preferences #preferences .mw-htmlform-submit-buttons .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
html body.mw-special-Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button {
  background: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}

html body.ns-special.page-Special_Preferences #preferences .mw-htmlform-submit-buttons .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-flaggedElement-primary.oo-ui-buttonWidget .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-flaggedElement-primary.oo-ui-buttonWidget:hover .oo-ui-labelElement-label,
html body.ns-special.page-Special_Preferences #preferences .oo-ui-flaggedElement-primary.oo-ui-buttonWidget:focus .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .mw-htmlform-submit-buttons .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-flaggedElement-primary.oo-ui-buttonWidget .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-flaggedElement-primary.oo-ui-buttonWidget:hover .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-flaggedElement-primary.oo-ui-buttonWidget:focus .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.ns-special.page-Special_Preferences #preferences .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-buttonElement-button,
html body.mw-special-Preferences #preferences .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-buttonElement-button {
  background: #fff !important;
  color: #202122 !important;
  border-color: #a2a9b1 !important;
}

html body.ns-special.page-Special_Preferences #preferences .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-labelElement-label,
html body.mw-special-Preferences #preferences .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-primary):not(.oo-ui-flaggedElement-progressive) .oo-ui-labelElement-label {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

/* ==========================================================================
   VisualEditor — surcharge finale (priorité maximale, toujours via main.css)
   ========================================================================== */
html body .ve-init-mw-desktopArticleTarget,
html body .ve-init-mw-desktopArticleTarget .ve-ui-surface,
html body .ve-init-mw-desktopArticleTarget .ve-ce-surface,
html body .ve-init-mw-desktopArticleTarget .ve-ce-documentNode,
html body .vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-documentNode,
html body .vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .mw-parser-output.ve-ce-documentNode,
html body .vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .mw-parser-output.ve-ce-documentNode p,
html body .vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .ve-ce-documentNode *,
html body .vector-body .mw-body-content .ve-init-mw-desktopArticleTarget .mw-parser-output.ve-ce-documentNode * {
  --color-base: #202122 !important;
  --color-emphasized: #000 !important;
  --color-subtle: #54595d !important;
  --cdx-color-base: #202122 !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body .ve-init-mw-desktopArticleTarget .ve-ce-surface,
html body .ve-init-mw-desktopArticleTarget .ve-ce-documentNode,
html body .ve-init-mw-desktopArticleTarget .ve-ui-surface,
html body .ve-init-mw-desktopArticleTarget {
  background: #fff !important;
  background-color: #fff !important;
}

html body .vector-page-toolbar .oo-ui-dropdownWidget,
html body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
html body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle *,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle * {
  --color-base: #202122 !important;
  --color-emphasized: #000 !important;
  --cdx-color-base: #202122 !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body .vector-page-toolbar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle,
html body .ve-init-mw-desktopArticleTarget .oo-ui-toolbar-bar .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  border: 1px solid #a2a9b1 !important;
}

/* VE : texte collé depuis le wiki (couleurs inline du thème sombre) */
html body .ve-init-mw-desktopArticleTarget .ve-ce-documentNode [style],
html body .ve-init-mw-desktopArticleTarget .ve-ce-documentNode [style] *,
html body .ve-init-mw-desktopArticleTarget .ve-ce-surface [style],
html body .ve-init-mw-desktopArticleTarget .ve-ce-surface [style] * {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body .ve-init-mw-desktopArticleTarget .ve-ce-documentNode a,
html body .ve-init-mw-desktopArticleTarget .ve-ce-documentNode a:visited {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
  text-decoration: underline !important;
}

/* Liens du contenu — surcharge finale (vert, hors VE) */
html body:not(.ve-active) .mw-body-content .mw-parser-output a[href],
html body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:visited {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-underline-offset: 0.1em;
}

html body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:hover,
html body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:focus,
html body:not(.ve-active) .mw-body-content .mw-parser-output a[href]:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-underline-offset: 0.1em;
}

/* Boîtes système (révision, avertissement) — liens lisibles sur fond clair */
html body .mw-body-content .warningbox,
html body .mw-body-content .warningbox p,
html body .mw-body-content .mw-message-box-warning,
html body .mw-body-content .mw-message-box-warning p,
html body .mw-body-content .mw-revision,
html body .mw-body-content .mw-revision p,
html body .mw-body-content #mw-revision-nav,
html body .mw-body-content .previewnote {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body .mw-body-content .warningbox a,
html body .mw-body-content .warningbox a:visited,
html body .mw-body-content .mw-message-box-warning a,
html body .mw-body-content .mw-message-box-warning a:visited,
html body .mw-body-content .mw-revision a,
html body .mw-body-content .mw-revision a:visited,
html body .mw-body-content #mw-revision-nav a,
html body .mw-body-content #mw-revision-nav a:visited,
html body .mw-body-content .previewnote a,
html body .mw-body-content .previewnote a:visited,
html body .mw-parser-output .warningbox a,
html body .mw-parser-output .warningbox a:visited,
html body .mw-parser-output .mw-message-box-warning a,
html body .mw-parser-output .mw-message-box-warning a:visited {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
  text-decoration: underline !important;
}

html body .mw-body-content .warningbox a:hover,
html body .mw-body-content .mw-message-box-warning a:hover,
html body .mw-body-content .mw-revision a:hover,
html body .mw-body-content #mw-revision-nav a:hover,
html body .mw-body-content .previewnote a:hover {
  color: #0b0080 !important;
  -webkit-text-fill-color: #0b0080 !important;
}

/* Boîtes de confirmation / succès — surcharge finale lisibilité */
html body .mw-body-content .successbox,
html body .mw-body-content .mw-message-box-success,
html body .mw-body-content .cdx-message--success,
html body .mw-body-content .mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success),
html body .mw-body-content .mw-message-box-notice,
html body .mw-body-content .cdx-message:not(.cdx-message--warning):not(.cdx-message--error):not(.cdx-message--success),
html body .mw-body-content .success:not(.successbox) {
  background: #eaf3ff !important;
  background-color: #eaf3ff !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  border: 1px solid #36c !important;
}

html body .mw-body-content .successbox a,
html body .mw-body-content .successbox a:visited,
html body .mw-body-content .mw-message-box-success a,
html body .mw-body-content .mw-message-box-success a:visited,
html body .mw-body-content .mw-message-box-notice a,
html body .mw-body-content .mw-message-box-notice a:visited,
html body .mw-body-content .mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success) a,
html body .mw-body-content .mw-message-box:not(.mw-message-box-warning):not(.mw-message-box-error):not(.mw-message-box-success) a:visited {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
  text-decoration: underline !important;
}

/* VE : boîte de dialogue « Référence » et autres modales d'édition */
html body .oo-ui-window-frame .ve-ce-surface,
html body .oo-ui-window-frame .ve-ui-surface,
html body .oo-ui-window-frame .ve-ce-documentNode,
html body .oo-ui-window-frame .ve-ce-documentNode *,
html body .oo-ui-window-frame .ve-ce-surface *,
html body .ve-ui-overlay .ve-ce-surface,
html body .ve-ui-overlay .ve-ce-documentNode,
html body .ve-ui-overlay .ve-ce-documentNode * {
  --color-base: #202122 !important;
  --cdx-color-base: #202122 !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body .oo-ui-window-frame .ve-ce-surface,
html body .oo-ui-window-frame .ve-ui-surface,
html body .oo-ui-window-frame .ve-ce-documentNode,
html body .ve-ui-overlay .ve-ce-surface,
html body .ve-ui-overlay .ve-ce-documentNode {
  background: #fff !important;
  background-color: #fff !important;
}

html body .oo-ui-window-frame .ve-ce-documentNode [style],
html body .oo-ui-window-frame .ve-ce-documentNode [style] *,
html body .oo-ui-window-frame .ve-ce-surface [style],
html body .oo-ui-window-frame .ve-ce-surface [style] * {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body .oo-ui-window-frame .ve-ce-documentNode a,
html body .oo-ui-window-frame .ve-ce-documentNode a:visited {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
}

/* VE : avertissements et boîtes de dialogue (fond clair) */
html body .ve-ui-overlay .oo-ui-window-frame,
html body .ve-ui-overlay .oo-ui-messageDialog-content,
html body .ve-ui-overlay .oo-ui-processDialog-content,
html body .ve-ui-overlay .mw-message-box,
html body .ve-ui-overlay .cdx-message,
html body .ve-ui-overlay .cdx-message__content {
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
}

html body .ve-ui-overlay .mw-message-box-warning,
html body .ve-ui-overlay .cdx-message--warning {
  background: #fef6e7 !important;
  background-color: #fef6e7 !important;
  color: #202122 !important;
  border-color: #fc3 !important;
}

/* VE : erreurs serveur — bouton Réessayer en bleu (pas vert néon) */
html body .ve-ui-overlay .oo-ui-messageDialog .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button {
  background: #3366cc !important;
  background-color: #3366cc !important;
  color: #fff !important;
  border-color: #2a4b8d !important;
  -webkit-text-fill-color: #fff !important;
}

html body .ve-ui-overlay .oo-ui-messageDialog .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button:hover {
  background: #447ff5 !important;
  background-color: #447ff5 !important;
}

/* messageDialog hors VE (permissions, confirmations) — OK vert lisible sur footer sombre */
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-safe,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-primary,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-other {
  background: #111 !important;
  background-color: #111 !important;
  border-top: 1px solid rgba(0, 255, 90, 0.35) !important;
}

html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-safe .oo-ui-buttonElement-button,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-other .oo-ui-buttonElement-button,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-buttonElement-framed .oo-ui-buttonElement-button {
  --background-color-progressive: #00ff5a !important;
  --color-inverted: #000 !important;
  --color-base: #000 !important;
  background: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  border: 1px solid #00ff5a !important;
}

html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-buttonElement-framed .oo-ui-labelElement-label,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-safe .oo-ui-buttonElement-button .oo-ui-labelElement-label,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-primary .oo-ui-buttonElement-button .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: transparent !important;
}

html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:focus,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-safe .oo-ui-buttonElement-button:hover,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-safe .oo-ui-buttonElement-button:focus {
  background: #000 !important;
  background-color: #000 !important;
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  border-color: #00ff5a !important;
}

html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
html body .oo-ui-windowManager-modal .oo-ui-messageDialog .oo-ui-processDialog-actions-safe .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

/* Logo header — surcharge finale (priorité sur styles injectés) */
html body .vector-header-start .mw-logo-container img,
html body .vector-header-start .mw-logo-wordmark {
  width: auto !important;
  height: auto !important;
  max-height: 8rem !important;
  max-width: 100% !important;
}

@media (min-width: 640px) {
  html body .vector-header-start .mw-logo-container img,
  html body .vector-header-start .mw-logo-wordmark {
    max-height: 9.5rem !important;
  }
}

@media (min-width: 1120px) {
  html body .vector-header-start .mw-logo-container {
    max-width: 22rem !important;
  }

  html body .vector-header-start .mw-logo-container img,
  html body .vector-header-start .mw-logo-wordmark {
    max-height: 11.25rem !important;
  }
}

/* Barre de titre — overflow:clip (évite scroll fantôme sous le footer) */
html body .vector-page-titlebar,
html body .mw-body-header.vector-page-titlebar {
  overflow: clip !important;
}

html body .mw-body .firstHeading,
html body .mw-body-header .firstHeading,
html body h1.mw-first-heading {
  overflow: visible !important;
  line-height: 1.3 !important;
  max-height: none !important;
}

/* Formulaires OOUI — menus déroulants (surcharge finale) */
html body .mw-htmlform-ooui .oo-ui-dropdownInputWidget select.oo-ui-inputWidget-input,
html body .mw-htmlform-ooui .oo-ui-dropdownWidget .oo-ui-dropdownWidget-handle {
  background: #fff !important;
  color: #202122 !important;
  border: 1px solid #a2a9b1 !important;
}

html body .oo-ui-menuSelectWidget.oo-ui-element-hidden,
html body .oo-ui-dropdownWidget-menu.oo-ui-element-hidden {
  display: none !important;
}

html body .oo-ui-menuSelectWidget .oo-ui-menuOptionWidget,
html body .oo-ui-dropdownWidget-menu .oo-ui-menuOptionWidget {
  background: #fff !important;
  color: #202122 !important;
}

/* Surcharge finale : Vector grid-template 1fr (syntaxe complète) */
@media (min-width: 1000px) {
  html body .mw-page-container-inner {
    grid-template:
      "siteNotice siteNotice" min-content
      "columnStart pageContent" min-content
      "footer footer" min-content
      / minmax(0, 12.25rem) minmax(0, 1fr) !important;
    align-content: start !important;
  }

  html.vector-feature-main-menu-pinned-disabled.vector-toc-not-available .mw-page-container-inner,
  html.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-0 .mw-page-container-inner {
    grid-template:
      "siteNotice" min-content
      "pageContent" min-content
      "columnStart" min-content
      "footer" min-content
      / minmax(0, 1fr) !important;
    align-content: start !important;
  }

  html body .mw-body {
    position: relative !important;
    display: grid !important;
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
    grid-template-rows: min-content min-content min-content min-content !important;
    align-content: start !important;
    align-items: start !important;
    column-gap: 0 !important;
    padding-right: calc(13rem + 1rem) !important;
    box-sizing: border-box !important;
  }

  html body.vector-feature-limited-width-content-disabled .mw-body,
  html body.vector-feature-limited-width-clientpref-0 .mw-body {
    padding-right: calc(13rem + 1rem) !important;
  }

  html body .vector-page-titlebar {
    grid-area: titlebar !important;
    grid-column: 1 !important;
  }

  html body .vector-page-toolbar {
    grid-area: toolbar !important;
    grid-column: 1 !important;
  }

  html body #bodyContent {
    grid-area: content !important;
    grid-column: 1 !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html body .vector-column-end {
    grid-column: unset !important;
    grid-row: unset !important;
    grid-area: unset !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 13rem !important;
    max-width: 13rem !important;
    margin-top: 0 !important;
    align-self: auto !important;
    overflow: visible !important;
    z-index: 3 !important;
  }

  html body .vector-column-end .vector-sticky-pinned-container {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
}

@media (min-width: 1400px) {
  html body .mw-body {
    padding-right: calc(15.5rem + 1rem) !important;
  }

  html body .vector-column-end {
    max-width: 15.5rem !important;
    width: 15.5rem !important;
  }
}

@media (max-width: 1119px) {
  html body .vector-column-end {
    display: none !important;
  }

  html body .mw-body {
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }

  html body.vector-feature-limited-width-content-disabled .mw-body,
  html body.vector-feature-limited-width-clientpref-0 .mw-body {
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
  }

  html body #vector-appearance-dropdown {
    position: relative !important;
    overflow: visible !important;
  }

  html body #vector-appearance-dropdown .vector-dropdown-content {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 0.25rem !important;
    max-height: min(70vh, 22rem) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 450 !important;
    width: max-content !important;
    min-width: 12rem !important;
    max-width: min(92vw, 18rem) !important;
  }

  html body #vector-appearance-dropdown .vector-pinnable-container,
  html body #vector-appearance-dropdown .vector-unpinned-container,
  html body #vector-appearance-dropdown .vector-sticky-pinned-container {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .vector-user-links .vector-appearance-landmark {
    position: relative !important;
    overflow: visible !important;
  }
}

html body .mw-content-container,
html body #bodyContent,
html body .vector-body {
  height: fit-content !important;
  min-height: 0 !important;
}

html body #mw-content-text:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Menus langue — fond clair uniquement */
html body .vector-page-titlebar .mw-portlet-lang .vector-dropdown-content,
html body .uls-menu,
html body .uls-menu .uls-search,
html body .uls-menu .uls-lcd {
  background: #fff !important;
  background-color: #fff !important;
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  border-color: #a2a9b1 !important;
}

html body .vector-page-titlebar .mw-portlet-lang .vector-dropdown-content a,
html body .uls-menu a,
html body .uls-menu .uls-language-block a {
  color: #0645ad !important;
  -webkit-text-fill-color: #0645ad !important;
}

html body .mw-portlet-empty-language-selector-body {
  color: #54595d !important;
  -webkit-text-fill-color: #54595d !important;
}

/* Menus déroulants / Outils — listes verticales (ne pas hériter du flex toolbar) */
html body .vector-dropdown-content .vector-menu,
html body .vector-page-tools .vector-menu,
html body .vector-pinnable-container .vector-menu {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .vector-dropdown-content .vector-menu-heading,
html body .vector-page-tools .vector-menu-heading,
html body .vector-pinnable-container .vector-menu-heading {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0.5rem 1rem 0.25rem !important;
  float: none !important;
}

html body .vector-dropdown-content .vector-menu-content-list,
html body .vector-page-tools .vector-menu-content-list,
html body .vector-pinnable-container .vector-menu-content-list {
  display: block !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0.5rem 0 !important;
  width: 100% !important;
  float: none !important;
}

html body .vector-dropdown-content .vector-menu-content-list .mw-list-item,
html body .vector-page-tools .vector-menu-content-list .mw-list-item,
html body .vector-pinnable-container .vector-menu-content-list .mw-list-item {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .vector-dropdown-content .vector-menu-content-list a,
html body .vector-page-tools .vector-menu-content-list a,
html body .vector-pinnable-container .vector-menu-content-list a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.45rem 1rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: normal !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

html body .vector-dropdown-content .vector-menu-content-list a:hover,
html body .vector-page-tools .vector-menu-content-list a:hover,
html body .vector-pinnable-container .vector-menu-content-list a:hover {
  box-shadow: none !important;
}

/* Dropdowns header — theme sombre unifie (menu principal, compte, apparence, outils) */
html body #vector-main-menu-dropdown .vector-dropdown-content,
html body #vector-user-links-dropdown .vector-dropdown-content,
html body #vector-page-tools-dropdown .vector-dropdown-content {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65) !important;
  padding: 0 !important;
  overflow: hidden !important;
  min-width: 13rem !important;
}

html body #vector-appearance-dropdown .vector-dropdown-content {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.35) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65) !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-width: 13rem !important;
}

html body #vector-page-tools-dropdown .vector-dropdown-content {
  max-width: 20rem !important;
  right: 0 !important;
  left: auto !important;
}

html body #vector-main-menu-dropdown .vector-pinnable-container,
html body #vector-user-links-dropdown .vector-pinnable-container,
html body #vector-appearance-dropdown .vector-pinnable-container,
html body #vector-page-tools-dropdown .vector-pinnable-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #vector-main-menu-dropdown .vector-pinnable-header,
html body #vector-user-links-dropdown .vector-pinnable-header,
html body #vector-appearance-dropdown .vector-pinnable-header,
html body #vector-page-tools-dropdown .vector-pinnable-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.25rem !important;
  padding: 0.35rem 0.65rem !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  border-bottom: 1px solid rgba(0, 255, 90, 0.2) !important;
  background: rgba(0, 255, 90, 0.04) !important;
}

html body #vector-main-menu-dropdown .vector-pinnable-header-label,
html body #vector-page-tools-dropdown .vector-pinnable-header-label {
  color: #00ff5a !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

html body #vector-main-menu-dropdown .vector-pinnable-header-toggle-button,
html body #vector-page-tools-dropdown .vector-pinnable-header-toggle-button {
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.68rem !important;
  padding: 0.15rem 0.35rem !important;
  border-radius: 2px !important;
  white-space: nowrap !important;
}

html body #vector-main-menu-dropdown .vector-pinnable-header-toggle-button:hover,
html body #vector-main-menu-dropdown .vector-pinnable-header-toggle-button:focus,
html body #vector-page-tools-dropdown .vector-pinnable-header-toggle-button:hover,
html body #vector-page-tools-dropdown .vector-pinnable-header-toggle-button:focus {
  background: rgba(0, 255, 90, 0.1) !important;
  color: #00ff5a !important;
}

html body #vector-main-menu-dropdown .vector-menu-heading,
html body #vector-user-links-dropdown .vector-menu-heading,
html body #vector-page-tools-dropdown .vector-menu-heading {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.35rem 0.65rem 0.1rem !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  border: none !important;
}

html body #vector-main-menu-dropdown .vector-menu-content-list a,
html body #vector-user-links-dropdown .vector-menu-content-list a,
html body #vector-appearance-dropdown .vector-menu-content-list a,
html body #vector-page-tools-dropdown .vector-menu-content-list a,
html body #vector-main-menu-dropdown .vector-dropdown-content a,
html body #vector-user-links-dropdown .vector-dropdown-content a,
html body #vector-appearance-dropdown .vector-dropdown-content a,
html body #vector-page-tools-dropdown .vector-dropdown-content a {
  color: #ddd !important;
  -webkit-text-fill-color: #ddd !important;
  background: transparent !important;
  padding: 0.35rem 0.75rem !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  font-size: 0.8125rem !important;
}

html body #vector-main-menu-dropdown .vector-menu-content-list a:hover,
html body #vector-user-links-dropdown .vector-menu-content-list a:hover,
html body #vector-appearance-dropdown .vector-menu-content-list a:hover,
html body #vector-page-tools-dropdown .vector-menu-content-list a:hover,
html body #vector-main-menu-dropdown .vector-dropdown-content a:hover,
html body #vector-user-links-dropdown .vector-dropdown-content a:hover,
html body #vector-appearance-dropdown .vector-dropdown-content a:hover,
html body #vector-page-tools-dropdown .vector-dropdown-content a:hover {
  background: rgba(0, 255, 90, 0.1) !important;
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

html body #vector-main-menu-dropdown .vector-main-menu-action a,
html body #vector-main-menu-dropdown .vector-main-menu-action .cdx-button {
  color: rgba(255, 255, 255, 0.55) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
  border: none !important;
  font-size: 0.75rem !important;
  padding: 0.4rem 0.75rem !important;
}

html body #vector-main-menu-dropdown .vector-main-menu-action a:hover {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

html body #vector-page-tools-dropdown .vector-menu-content-list {
  padding: 0 0 0.25rem 0 !important;
  margin: 0 !important;
}

html body #vector-page-tools-dropdown .vector-menu-content-list .mw-list-item {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

html body #vector-page-tools-dropdown .vector-menu-content-list a {
  padding: 0.2rem 0.65rem !important;
  line-height: 1.25 !important;
}

/* Header — ne jamais rogner le haut (nom utilisateur / icônes) */
html body .vector-header-container {
  overflow: visible !important;
  padding-top: env(safe-area-inset-top, 0) !important;
}

html body .vector-header-container .mw-header {
  contain: none !important;
  overflow: visible !important;
}

html body .vector-header,
html body .vector-header-start,
html body .vector-header-end,
html body .vector-user-links,
html body .vector-user-links-main {
  overflow: visible !important;
}

html body .mw-footer,
html body #footer-info-copyright {
  border-top: none !important;
}

/* Dropdowns Vector — fermes par defaut, ouverts au clic */
html body .vector-dropdown .vector-dropdown-checkbox:not(:checked) ~ .vector-dropdown-content {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

html body .vector-dropdown .vector-dropdown-checkbox:checked ~ .vector-dropdown-content {
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  max-height: 75vh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}

html body #vector-page-tools-dropdown .vector-dropdown-checkbox:checked ~ .vector-dropdown-content {
  max-width: 20rem !important;
  right: 0 !important;
  left: auto !important;
}

/* Sidebar hors flux — surcharge finale (priorite sur grilles dupliquees dans main.css) */
@media (min-width: 1120px) {
  html body .mw-body {
    position: relative !important;
    grid-template:
      "titlebar-cx" min-content
      "titlebar" min-content
      "toolbar" min-content
      "content" min-content
      / minmax(0, 1fr) !important;
    grid-template-rows: min-content min-content min-content min-content !important;
    padding-right: calc(13rem + 1rem) !important;
    box-sizing: border-box !important;
  }

  html body.vector-feature-limited-width-content-disabled .mw-body,
  html body.vector-feature-limited-width-clientpref-0 .mw-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .vector-column-end {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 13rem !important;
    max-width: 13rem !important;
    max-height: none !important;
    height: auto !important;
    margin-top: 0 !important;
    grid-area: unset !important;
    grid-column: unset !important;
    grid-row: unset !important;
    overflow: visible !important;
    z-index: 3 !important;
  }

  html body.vector-feature-limited-width-content-disabled .vector-column-end,
  html body.vector-feature-limited-width-clientpref-0 .vector-column-end {
    right: 0 !important;
  }

  html body .vector-column-end .vector-sticky-pinned-container {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  html body .vector-column-end .vector-appearance-landmark,
  html body .vector-column-end .vector-pinned-container,
  html body .vector-column-end .vector-pinnable-container,
  html body .vector-column-end .vector-appearance {
    max-height: none !important;
    overflow: visible !important;
  }

  html body .vector-page-titlebar {
    margin-bottom: 0 !important;
  }

  html body #mw-content-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (min-width: 1400px) {
  html body .mw-body {
    padding-right: calc(15.5rem + 1rem) !important;
  }

  html body .vector-column-end {
    width: 15.5rem !important;
    max-width: 15.5rem !important;
    right: 0 !important;
  }
}

@media (max-width: 1119px) {
  html body .vector-column-end {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
  }

  html body .mw-body {
    padding-right: 0 !important;
  }
}

/* Réinitialisation mot de passe — surcharge finale (priorité sur mw-htmlform-ooui générique) */
html body.ns-special.page-Special_PasswordReset .mw-htmlform input,
html body.ns-special.page-Special_PasswordReset .mw-htmlform textarea,
html body.ns-special.page-Special_PasswordReset .oo-ui-inputWidget-input,
html body.ns-special.page-Special_PasswordReset .oo-ui-textInputWidget-input,
html body.ns-special.page-Special_PasswordReset .cdx-text-input__input,
html body.ns-special.page-Special_ResetPassword .mw-htmlform input,
html body.ns-special.page-Special_ResetPassword .mw-htmlform textarea,
html body.ns-special.page-Special_ResetPassword .oo-ui-inputWidget-input,
html body.ns-special.page-Special_ResetPassword .oo-ui-textInputWidget-input,
html body.ns-special.page-Special_ChangePassword .mw-htmlform input,
html body.ns-special.page-Special_ChangePassword .mw-htmlform textarea,
html body.ns-special.page-Special_ChangePassword .oo-ui-inputWidget-input,
html body.ns-special.page-Special_ChangePassword .oo-ui-textInputWidget-input {
  background: #fff !important;
  background-color: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
  border: 1px solid #00ff5a !important;
}

html body.ns-special.page-Special_PasswordReset .mw-htmlform-ooui .oo-ui-panelLayout-framed,
html body.ns-special.page-Special_ResetPassword .mw-htmlform-ooui .oo-ui-panelLayout-framed,
html body.ns-special.page-Special_ChangePassword .mw-htmlform-ooui .oo-ui-panelLayout-framed {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

html body.ns-special.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button,
html body.ns-special.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
html body.ns-special.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button,
html body.ns-special.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
html body.ns-special.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button,
html body.ns-special.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button {
  background: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #000 !important;
  border-color: #00ff5a !important;
}

html body.ns-special.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-labelElement-label,
html body.ns-special.page-Special_PasswordReset .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
html body.ns-special.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-labelElement-label,
html body.ns-special.page-Special_ResetPassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
html body.ns-special.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-destructive .oo-ui-labelElement-label,
html body.ns-special.page-Special_ChangePassword .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* action=edit — bouton Enregistrer : texte noir sur fond vert (bat .oo-ui-buttonWidget { color: #00ff5a }) */
html body.action-edit .mw-editform .oo-ui-flaggedElement-primary.oo-ui-buttonWidget,
html body.action-edit .mw-editform .oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
html body.action-edit .mw-editform .oo-ui-flaggedElement-primary .oo-ui-labelElement-label,
html body.action-edit #wpSaveWidget .oo-ui-labelElement-label,
html body.action-edit #wpSave .oo-ui-labelElement-label {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

html body.action-edit .mw-editform .oo-ui-flaggedElement-primary .oo-ui-buttonElement-button {
  background: #00ff5a !important;
}

/* action=edit — survol Enregistrer : texte vert sur fond noir (bat label #000 ci-dessus) */
html body.action-edit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover,
html body.action-edit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:focus,
html body.action-edit #wpSave:hover,
html body.action-edit #wpSaveWidget .oo-ui-buttonElement-button:hover,
html body.action-submit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover,
html body.action-submit #wpSave:hover {
  background: #000 !important;
  background-color: #000 !important;
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  border-color: #00ff5a !important;
}

html body.action-edit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
html body.action-edit .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:focus .oo-ui-labelElement-label,
html body.action-edit #wpSave:hover .oo-ui-labelElement-label,
html body.action-edit #wpSaveWidget .oo-ui-buttonElement-button:hover .oo-ui-labelElement-label,
html body.action-submit #wpSave:hover .oo-ui-labelElement-label {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  background: transparent !important;
}

/* === action=edit DiscussionTools — toolbar sombre ns-talk === */
html body.ns-talk .ve-init-target .oo-ui-toolbar,
html body.ns-talk .ve-init-target .oo-ui-toolbar-bar,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar,
html body.ns-talk .ext-discussiontools-ui-newTopic .oo-ui-toolbar-bar {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  --color-base: #fff !important;
  border-bottom: 1px solid rgba(0, 255, 90, 0.35) !important;
}

html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path {
  fill: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* === action=edit DiscussionTools — surcharge finale absolue === */
html body.action-edit .ve-init-target .oo-ui-toolbar,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  color: #202122 !important;
  --color-base: #202122 !important;
}

html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-tabPanelLayout-header,
html body.action-edit .ve-init-target .oo-ui-tabPanelLayout-header,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-tabPanelLayout-header,
html body.ns-talk .ve-init-target .oo-ui-tabPanelLayout-header {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  --color-base: #fff !important;
  border-bottom: 1px solid rgba(0, 255, 90, 0.25) !important;
}

html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-tabOptionWidget .oo-ui-labelElement-label,
html body.action-edit .ve-init-target .oo-ui-tabOptionWidget .oo-ui-labelElement-label,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-tabOptionWidget .oo-ui-labelElement-label {
  color: #ccc !important;
  -webkit-text-fill-color: #ccc !important;
}

html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label,
html body.action-edit .ve-init-target .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonElement-button,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-buttonElement-button,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool,
html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool {
  background: #111 !important;
  background-color: #111 !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool-disabled,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool-disabled,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool-disabled {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 0.45 !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon svg,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon path {
  fill: #202122 !important;
  color: #202122 !important;
  opacity: 1 !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget {
  color: #202122 !important;
  -webkit-text-fill-color: #202122 !important;
  background: transparent !important;
}

html body.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool.oo-ui-buttonWidget:hover {
  background: #eaecf0 !important;
  color: #202122 !important;
}

html body.action-edit .ext-discussiontools-ui-newTopic-sectionTitle input,
html body.action-edit .ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-inputWidget-input,
html body.action-edit h2.ext-discussiontools-ui-newTopic-sectionTitle input,
html body.action-edit h2.ext-discussiontools-ui-newTopic-sectionTitle .oo-ui-inputWidget-input,
html body.action-edit .editOptions .oo-ui-inputWidget-input,
html body.action-edit .editOptions .oo-ui-textInputWidget-input,
html body.action-edit .editOptions input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
html body.action-edit #wpSummary,
html body.action-edit #wpSummaryWidget input,
html body.action-edit #wpSummaryWidget .oo-ui-inputWidget-input,
html.skin-theme-clientpref-day body.action-edit .ext-discussiontools-ui-newTopic-sectionTitle input,
html.skin-theme-clientpref-day body.action-edit #wpSummaryWidget input {
  --color-base: #fff !important;
  --color-emphasized: #fff !important;
  --cdx-color-base: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #111 !important;
  background-color: #111 !important;
  caret-color: #00ff5a !important;
}

html body.action-edit #editpage-copywarn,
html body.action-edit #editpage-copywarn p {
  color: #ccc !important;
  -webkit-text-fill-color: #ccc !important;
}

/* === Notifications MW (Changements récupérés, etc.) === */
html body .mw-notification,
html body .mw-notification-area .mw-notification {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 255, 90, 0.45) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55) !important;
}

html body .mw-notification-title {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
  font-weight: bold !important;
}

html body .mw-notification-content,
html body .mw-notification-content p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body .mw-notification-type-success,
html body .mw-notification-type-notice,
html body .mw-notification-type-info {
  border-color: rgba(0, 255, 90, 0.45) !important;
}

/* action=edit — onglets Visuel/Source + toolgroups VE */
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-tabPanelLayout,
html body.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-tabSelectWidget,
html body.action-edit .ve-init-target .oo-ui-tabPanelLayout {
  background: #111 !important;
  background-color: #111 !important;
}

html body.action-edit .oo-ui-tabOptionWidget .oo-ui-labelElement-label {
  color: #ccc !important;
  -webkit-text-fill-color: #ccc !important;
}

html body.action-edit .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label {
  color: #00ff5a !important;
  -webkit-text-fill-color: #00ff5a !important;
}

html body.action-edit .oo-ui-toolGroup,
html body.action-edit .oo-ui-toolGroup-tools,
html body.action-edit .ve-ui-toolGroup {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
}

html body.action-edit .editOptions .oo-ui-panelLayout-framed,
html body.action-edit .editOptions .oo-ui-panelLayout-framed .oo-ui-panelLayout-content,
html body.action-edit .editOptions .oo-ui-fieldsetLayout,
html body.action-edit .editOptions .oo-ui-fieldsetLayout-group,
html.skin-theme-clientpref-day body.action-edit .editOptions .oo-ui-panelLayout-framed,
html.skin-theme-clientpref-day body.action-edit .editOptions .oo-ui-fieldsetLayout-header {
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  border-color: rgba(0, 255, 90, 0.35) !important;
}

html body.action-edit input#wpSave[type="submit"],
html body.action-edit #wpSaveWidget.oo-ui-buttonInputWidget input[type="submit"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #00ff5a !important;
  background-color: #00ff5a !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  border: 1px solid #00ff5a !important;
}

/* Discussion VE — lisibilité (annule transparent / gris Vector sur Résumé) */
html body.pas-talk-edit-isolated.action-edit .editOptions .oo-ui-fieldLayout,
html body.pas-talk-edit-isolated.action-edit .editOptions .oo-ui-fieldLayout-header,
html body.pas-talk-edit-isolated.action-edit .editOptions .oo-ui-fieldLayout-body,
html body.pas-talk-edit-isolated.action-edit .editOptions .oo-ui-fieldsetLayout-group,
html body.ns-talk .ext-discussiontools-ui-newTopic .editOptions .oo-ui-fieldLayout,
html body.ns-talk .ext-discussiontools-ui-newTopic .editOptions .oo-ui-fieldLayout-header,
html body.ns-talk .ext-discussiontools-ui-newTopic .editOptions .oo-ui-fieldLayout-body,
html body.ns-talk .ext-discussiontools-ui-newTopic .editOptions .oo-ui-fieldsetLayout-group,
html body.ns-talk .ext-discussiontools-ui-newTopic .editOptions .oo-ui-panelLayout-content {
  --background-color-base: #111 !important;
  --background-color-neutral-subtle: #111 !important;
  background: #111 !important;
  background-color: #111 !important;
  box-shadow: inset 0 0 0 1000px #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.pas-talk-edit-isolated.action-edit .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.pas-talk-edit-isolated.action-edit .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.ns-talk .ext-discussiontools-ui-targetWidget .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon,
html body.ns-talk .ve-init-target .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-iconElement-icon {
  background-color: transparent !important;
  color: #202122 !important;
  opacity: 1 !important;
}