html {
	font-size: 16px;
}

/* ==================================================== */
/* ===================== BUTTONS ====================== */
/* ==================================================== */

.btn {
	position: relative;
	height: fit-content;
	border-radius: 8px;

	outline: none !important;
	transition: all .15s;
}

.btn.btn-xs {
	height: 28px;
	min-width: 28px;
	width: fit-content;
	display: inline-flex;
	align-items: center;
	column-gap: 4px;
	justify-content: center;
}

.btn.btn-xl {
	height: 40px;
	width: 100%;
	display: inline-flex;
	align-items: center;
	column-gap: 8px;
	font-size: 1.2rem;
	font-weight: 700;
	justify-content: center;
}

.btn.btn-primary {
	background-color: var(--clr-primary);
	border-color: var(--clr-primary);
}
.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible,
.btn.btn-primary.active {
	background-color: var(--clr-primary-dark) !important;
	border-color: var(--clr-primary-dark) !important;

	transition: all .15s;
}

.btn.btn-secondary {
	background-color: var(--clr-secondary);
	border-color: var(--clr-secondary);
	color: white;
}
.btn.btn-secondary:hover,
.btn.btn-secondary:active,
.btn.btn-secondary:focus,
.btn.btn-secondary:focus-visible {
	background-color: var(--clr-secondary-dark) !important;
	border-color: var(--clr-secondary-dark) !important;
	color: white;

	transition: all .15s;
}

.btn.btn-success {
	background-color: var(--clr-secondary);
	border-color: var(--clr-secondary);
	color: white;
}
.btn.btn-success:hover,
.btn.btn-success:active,
.btn.btn-success:focus,
.btn.btn-success:focus-visible {
	background-color: var(--clr-secondary-dark) !important;
	border-color: var(--clr-secondary-dark) !important;
	color: white;

	transition: all .15s;
}

.btn.btn-alert {
	background-color: var(--clr-alert);
	border-color: var(--clr-alert);
	color: white;
}
.btn.btn-alert:hover,
.btn.btn-alert:active,
.btn.btn-alert:focus,
.btn.btn-alert:focus-visible {
	background-color: var(--clr-alert-dark) !important;
	border-color: var(--clr-alert-dark) !important;
	color: white;

	transition: all .15s;
}

.btn.btn-detail {
	background-color: var(--clr-gray-200);
	border-color: var(--clr-gray-300);
	color: white;
}
.btn.btn-detail:hover,
.btn.btn-detail:active,
.btn.btn-detail:focus,
.btn.btn-detail:focus-visible {
	background-color: var(--clr-gray-300) !important;
	border-color: var(--clr-gray-300) !important;
	color: white;

	transition: all .15s;
}

.btn.btn-text {
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	color: #FFFFFF;
}

.btn-tag {
	position: absolute;
    top: -3px;
    right: -3px;
    height: 10px;
    width: 10px;
    background: red;
    border: 1px solid var(--clr-gray-100);
    border-radius: 10px;
}

/* ==================================================== */
/* ===================== MARGINS ====================== */
/* ==================================================== */

.margin-t-auto {
	margin-top: auto !important;
}

.margin-t-xs {
	margin-top: 4px !important;
}

.margin-t-s {
	margin-top: 8px !important;
}

.margin-t-m {
	margin-top: 16px !important;
}

.margin-b-auto {
	margin-bottom: auto !important;
}

.margin-b-xs {
	margin-bottom: 4px !important;
}

.margin-b-s {
	margin-bottom: 8px !important;
}

.margin-b-m {
	margin-bottom: 16px !important;
}

.margin-l-auto {
	margin-left: auto !important;
}

.margin-l-xs {
	margin-left: 4px !important;
}

.margin-l-s {
	margin-left: 8px !important;
}

.margin-l-m {
	margin-left: 16px !important;
}

.margin-r-auto {
	margin-right: auto !important;
}

.margin-r-xs {
	margin-right: 4px !important;
}

.margin-r-s {
	margin-right: 8px !important;
}

.margin-r-m {
	margin-right: 16px !important;
}

/* ==================================================== */
/* ======================= SIZES ====================== */
/* ==================================================== */

.w-100 {
	width: 100% !important;
}

/* ==================================================== */
/* ====================== TEXTES ====================== */
/* ==================================================== */

.fs-xs {
	font-size: 10px;
}

.fs-s {
	font-size: 13px;
}

.fs-m {
	font-size: 16px;
}

/* ==================================================== */
/* ====================== LAYOUT ====================== */
/* ==================================================== */

.flex-row {
	display: flex;
	flex-direction: row !important;
}

.flex-inline-row {
	display: inline-flex;
	flex-direction: row;
}

.flex-col {
	display: flex;
	flex-direction: column;
}

.align-items-center {
	align-items: center;
}

.justify-content-center {
	justify-content: center;
}

.justify-content-between {
	justify-content: space-between;
}

.justify-content-end {
	justify-content: flex-end;
}

.col-gap-xs {
	column-gap: 4px;
}

.col-gap-s {
	column-gap: 8px;
}

.col-gap-m {
	column-gap: 16px;
}

.row-gap-xs {
	row-gap: 4px;
}

.row-gap-s {
	row-gap: 8px;
}

.row-gap-m {
	row-gap: 16px;
}

.gap-xs {
	gap: 4px;
}

.gap-s {
	gap: 8px;
}

.gap-m {
	gap: 16px;
}

.flex-wrap {
	flex-wrap: wrap;
}

.switch {
	--blue: var(--clr-secondary);
	--g08: #E1E5EB;
	--g04: #848ea1;
}

/* ==================================================== */
/* ====================== INPUTS ====================== */
/* ==================================================== */

.form-control {
	border-radius: 4px;
	margin: 0;
	color: #FFFFFF;
	background: var(--clr-gray-300);
	border-color: rgba(255, 255, 255, 0.1);
}

.form-control.error {
	border-left: 4px solid var(--clr-alert) !important;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
	background: #222;
	cursor: not-allowed;
}

label {
	color: #FFFFFF;
}

/* .form-control {
	border-radius: 8px;
	margin: 0;
} */

.switch .tgl {
	display: none;
}
.switch .tgl,
.switch .tgl:after,
.switch .tgl:before,
.switch .tgl *,
.switch .tgl *:after,
.switch .tgl *:before,
.switch .tgl + .tgl-btn {
	box-sizing: border-box;
}
.switch .tgl::selection,
.switch .tgl:after::selection,
.switch .tgl:before::selection,
.switch .tgl *::selection,
.switch .tgl *:after::selection,
.switch .tgl *:before::selection,
.switch .tgl + .tgl-btn::selection {
	background: none;
}
.switch .tgl + .tgl-btn {
	margin: 0;
	outline: 0;
	display: block;
	width: 64px;
	height: 28px;
	position: relative;
	cursor: pointer;
	user-select: none;
	font-size: .7rem;
	font-weight: 400;
	color: #fff;
}
.switch .tgl + .tgl-btn:after,
.switch .tgl + .tgl-btn:before {
	position: relative;
	display: block;
	content: "";
	/* width: 44%; */
	height: 100%;
	aspect-ratio: 1/1;
}
.switch .tgl + .tgl-btn:after {
	left: 0;
}
.switch .tgl + .tgl-btn:before {
	display: inline;
	position: absolute;
	top: 8px;
}
.switch .tgl:checked + .tgl-btn:after {
	left: 100%;
	transform: translateX(-100%);
}

.switch .tgl-ios + .tgl-btn {
	background: var(--g08);
	border-radius: 20rem;
	padding: 2px;
	transition: all 0.4s ease;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.switch .tgl-ios + .tgl-btn:after {
	border-radius: 2em;
	background: #fff;
	transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.switch .tgl-ios + .tgl-btn:before {
	content: "Inactif";
	left: 28px;
	color: var(--g04);
	transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.switch .tgl-ios + .tgl-btn:active {
	box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);
}
.switch .tgl-ios + .tgl-btn:active:after {
	padding-right: 0.4em;
}
.switch .tgl-ios:checked + .tgl-btn {
	background: var(--blue);
}
.switch .tgl-ios:checked + .tgl-btn:active {
	box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);
}
/* .switch .tgl-ios:checked + .tgl-btn:active:after {
	margin-left: -0.4em;
} */
.switch .tgl-ios:checked + .tgl-btn:before {
	content: "Actif";
	left: 6px;
	color: #fff;
}

/* ==================================================== */
/* ===================== ALERTIFY ===================== */
/* ==================================================== */

.alertify .ajs-dialog {
	background-color: var(--clr-gray-300);
	color: white;
}

.ajs-header,
.ajs-content {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #fff;
}

.ajs-header,
.ajs-footer {
	color: white;
	background-color: var(--clr-gray-300) !important;
}

.ajs-message {
	border-radius: 8px;
}

.ajs-success::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f164";
	margin-right: 10px;
}

.ajs-warning::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f071";
	margin-right: 10px;
}

.ajs-error::before {
	font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f071";
	margin-right: 10px;
}

.ajs-success {
	color: white;
	background: var(--clr-secondary) !important;
}

.ajs-warning {
	color: white;
	background: var(--clr-warning) !important;
}

.ajs-error {
	color: white;
	background: var(--clr-alert) !important;
}

.ajs-notif {
	color: white;
	background: var(--clr-main) !important;
}

.ajs-button {
	display: inline-block;
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.42857143;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-image: none;
	border: 1px solid transparent;
	border-radius: 8px;
	background-color: var(--clr-primary);
	border-color: var(--clr-primary);
	color: #FFFFFF;
}

.ajs-button:hover {
	background-color: var(--clr-primary-dark);
	border-color: var(--clr-primary-dark);
}

.ajs-button:active {
	color: #FFFFFF;
	background-color: #204d74;
	border-color: #122b40;
}

.alertify .ajs-dialog {
	border-radius: 8px;
	/* box-shadow: var(--dflt-shadow); */
}

.alertify .ajs-header {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.alertify .ajs-footer {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* ==================================================== */
/* ====================== MODALS ====================== */
/* ==================================================== */

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	border-color: rgba(255,255,255,0.3);
}

.modal-header::before,
.modal-header::after {
	content: unset;
}

.close {
	color: #FFF;
	opacity: 1;
	text-shadow: none;
}
.close:hover {
	color: var(--clr-alert);
	opacity: 1;
}

.modal-content {
	border-radius: 8px;
	background: var(--clr-gray-200);
	box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.modal-footer {
	border-color: rgba(255,255,255,0.3);
}

/* ==================================================== */
/* ======================= TEXTE ====================== */
/* ==================================================== */

.text-warning {
	color: var(--clr-secondary) !important;
}

/* ==================================================== */
/* ======================= OTHER ====================== */
/* ==================================================== */

hr.separator {
    border-color: var(--clr-gray-300);
}