/**
 * Boutons d'action PAS — surcharge finale (lisibilité garantie).
 * Charge en dernier via LocalSettings (edit + discussion).
 */

/* --- Enregistrer (action=edit) : input OOUI, pas un champ texte --- */
html body.action-edit #wpSaveWidget input,
html body.action-edit #wpSaveWidget.oo-ui-buttonInputWidget input,
html body.action-edit input#wpSave,
html body.action-edit input[name="wpSave"],
html body.action-submit #wpSaveWidget input,
html body.action-submit input#wpSave,
html body.action-edit .oo-ui-buttonInputWidget-input,
html body.action-edit .mw-editform-buttons .oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button,
html body.action-edit .mw-editform-buttons .oo-ui-flaggedElement-primary .oo-ui-buttonElement-button,
html body.action-edit #wpSave .oo-ui-buttonElement-button,
html body.pas-talk-edit-isolated.action-edit #wpSaveWidget input,
html body.pas-talk-edit-isolated.action-edit input#wpSave,
html body.pas-talk-edit-isolated.action-edit .mw-editform-buttons .oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button {
	--background-color-progressive: #00ff5a !important;
	--background-color-interactive: #00ff5a !important;
	--color-base: #000 !important;
	--color-inverted: #000 !important;
	--color-emphasized: #000 !important;
	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;
	font-weight: bold !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

html body.action-edit .mw-editform-buttons .oo-ui-flaggedElement-progressive .oo-ui-labelElement-label,
html body.action-edit .mw-editform-buttons .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;
	background: transparent !important;
	background-color: transparent !important;
}

html body.action-edit #wpSaveWidget input:hover,
html body.action-edit input#wpSave:hover,
html body.action-edit .mw-editform-buttons .oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button:hover,
html body.action-edit .mw-editform-buttons .oo-ui-flaggedElement-primary .oo-ui-buttonElement-button:hover {
	background: #000 !important;
	background-color: #000 !important;
	color: #00ff5a !important;
	-webkit-text-fill-color: #00ff5a !important;
	border-color: #00ff5a !important;
}

/* --- Prévisualiser / Voir les modifications (secondaires) --- */
html body.action-edit #wpPreview,
html body.action-edit #wpDiff,
html body.action-edit .mw-editform-buttons .oo-ui-buttonElement-framed:not(.oo-ui-flaggedElement-progressive):not(.oo-ui-flaggedElement-primary) .oo-ui-buttonElement-button,
html body.action-edit .mw-editform-buttons #wpPreview .oo-ui-buttonElement-button,
html body.action-edit .mw-editform-buttons #wpDiff .oo-ui-buttonElement-button {
	background: #111 !important;
	background-color: #111 !important;
	color: #00ff5a !important;
	-webkit-text-fill-color: #00ff5a !important;
	border: 1px solid #00ff5a !important;
}

/* --- Ajouter un sujet (Vector 2022 : a#ca-addsection, cdx-button--weight-quiet + progressive) --- */
html body.ns-talk a#ca-addsection,
html body.ns-talk a#ca-addsection:visited,
html body.ns-talk #ca-addsection.cdx-button,
html body.ns-talk #ca-addsection a,
html body.ns-talk #ca-addsection a:visited,
html body.ns-talk #ca-addsection .cdx-button,
html body.ns-talk .vector-page-titlebar #ca-addsection,
html body.ns-talk .vector-page-titlebar #ca-addsection.cdx-button,
html body.ns-talk .vector-page-titlebar #ca-addsection .cdx-button,
html body.ns-talk .vector-page-titlebar .cdx-button--action-progressive.cdx-button--weight-quiet,
html body.ns-talk .vector-page-titlebar a.cdx-button,
html body.ns-talk .vector-page-titlebar .vector-button-add-section,
html body.ns-talk .ext-discussiontools-emptystate .oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
html body.ns-talk .ext-discussiontools-emptystate a.oo-ui-buttonElement-button,
html body.ns-talk .ext-discussiontools-emptystate .oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button {
	--background-color-progressive: #00ff5a !important;
	--background-color-progressive-subtle: #00ff5a !important;
	--background-color-interactive: #00ff5a !important;
	--color-base: #000 !important;
	--color-inverted: #000 !important;
	--color-emphasized: #000 !important;
	--color-progressive: #000 !important;
	--cdx-color-base: #000 !important;
	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;
	text-decoration: none !important;
}

html body.ns-talk .ext-discussiontools-emptystate .oo-ui-labelElement-label,
html body.ns-talk #ca-addsection .cdx-button__label,
html body.ns-talk a#ca-addsection .cdx-button__label,
html body.ns-talk #ca-addsection a,
html body.ns-talk a#ca-addsection {
	color: #000 !important;
	-webkit-text-fill-color: #000 !important;
}

html body.ns-talk a#ca-addsection:hover,
html body.ns-talk #ca-addsection a:hover,
html body.ns-talk .vector-page-titlebar .cdx-button--action-progressive:hover,
html body.ns-talk .vector-page-titlebar .cdx-button--action-progressive.cdx-button--weight-quiet:hover,
html body.ns-talk .ext-discussiontools-emptystate a.oo-ui-buttonElement-button:hover {
	background: #000 !important;
	background-color: #000 !important;
	color: #00ff5a !important;
	-webkit-text-fill-color: #00ff5a !important;
	border-color: #00ff5a !important;
}
